billboard.js 3.18.0-next.2 → 3.18.0
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/dist/billboard.css +1 -1
- package/dist/billboard.js +319 -100
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +10 -9
- package/dist/billboard.pkgd.js +2059 -1625
- package/dist/billboard.pkgd.min.js +23 -22
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-sparkline.js +305 -79
- package/dist/plugin/billboardjs-plugin-sparkline.min.js +4 -4
- package/dist/plugin/billboardjs-plugin-stanford.js +305 -79
- package/dist/plugin/billboardjs-plugin-stanford.min.js +11 -11
- package/dist/plugin/billboardjs-plugin-tableview.js +305 -79
- package/dist/plugin/billboardjs-plugin-tableview.min.js +6 -5
- package/dist/plugin/billboardjs-plugin-textoverlap.js +305 -79
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +4 -4
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +1743 -1528
- package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +8 -8
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2047 -1606
- package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +10 -10
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2048 -1607
- package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +17 -17
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2049 -1608
- package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +13 -12
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2050 -1609
- package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +10 -10
- package/dist/theme/dark.css +1 -1
- package/dist/theme/dark.min.css +1 -1
- package/dist/theme/datalab.css +1 -1
- package/dist/theme/datalab.min.css +1 -1
- package/dist/theme/graph.css +1 -1
- package/dist/theme/graph.min.css +1 -1
- package/dist/theme/insight.css +1 -1
- package/dist/theme/insight.min.css +1 -1
- package/dist/theme/modern.css +1 -1
- package/dist/theme/modern.min.css +1 -1
- package/dist-esm/billboard.js +441 -135
- package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist-esm/plugin/billboardjs-plugin-tableview.js +416 -102
- package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/package.json +1 -1
- package/src/ChartInternal/ChartInternal.ts +1 -1
- package/src/ChartInternal/internals/tooltip.ts +11 -9
- package/src/config/Options/axis/y2.ts +0 -13
- package/src/config/Options/common/legend.ts +1 -0
- package/src/config/Options/common/point.ts +1 -1
- package/src/config/Options/common/tooltip.ts +3 -1
- package/src/module/sanitize.ts +471 -0
- package/src/module/util.ts +1 -131
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 3.18.0
|
|
8
|
+
* @version 3.18.0
|
|
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.11
|
|
@@ -23,38 +23,39 @@
|
|
|
23
23
|
* - d3-time-format ^4.1.0
|
|
24
24
|
* - d3-transition ^3.0.1
|
|
25
25
|
* - d3-zoom ^3.0.0
|
|
26
|
-
*/(function(Ka,Vn){if(typeof exports=="object"&&typeof module=="object")module.exports=Vn();else if(typeof define=="function"&&define.amd)define([],Vn);else{var Za=Vn();for(var x in Za)(typeof exports=="object"?exports:Ka)[x]=Za[x]}})(this,function(){return(function(){"use strict";var Ds=[(function(x,I,n){n(1),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(112),n(113),n(114),n(115),n(128),n(129),n(131),n(141),n(142),n(143),n(145),n(149),n(152),n(154),n(156),n(157),n(158),n(159),n(161),n(162),n(164),n(165),n(167),n(171),n(172),n(173),n(174),n(179),n(180),n(182),n(183),n(184),n(186),n(190),n(191),n(192),n(193),n(194),n(199),n(201),n(202),n(204),n(207),n(208),n(209),n(210),n(211),n(213),n(224),n(226),n(227),n(229),n(230),n(233),n(236),n(242),n(243),n(244),n(245),n(246),n(247),n(251),n(252),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(263),n(264),n(267),n(268),n(274),n(275),n(276),n(277),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(93),n(290),n(291),n(298),n(300),n(302),n(303),n(304),n(305),n(306),n(308),n(309),n(310),n(311),n(312),n(313),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(327),n(328),n(330),n(332),n(333),n(334),n(335),n(336),n(338),n(340),n(341),n(342),n(343),n(345),n(346),n(348),n(349),n(350),n(351),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(375),n(376),n(377),n(378),n(402),n(403),n(404),n(405),n(406),n(407),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(439),n(441),n(442),n(444),n(445),n(446),n(447),n(448),n(450),n(460),n(462),n(464),n(466),n(468),n(471),n(473),n(474),n(476),n(479),n(480),n(481),n(482),n(483),n(487),n(488),n(490),n(491),n(492),n(493),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(503),n(506),n(509),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(577),n(579),n(581),n(582),n(583),n(584),n(585),n(588),n(590),n(591),n(592),n(595),n(596),n(598),n(599),n(600),n(604),n(605),n(606),n(607),n(610),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(80)}),(function(x,I,n){n(2),n(90),n(92),n(93),n(98)}),(function(x,I,n){var u=n(3),d=n(4),h=n(8),g=n(14),m=n(36),T=n(6),S=n(26),$=n(7),E=n(38),b=n(24),R=n(46),C=n(12),O=n(18),P=n(68),M=n(11),F=n(71),U=n(73),B=n(57),z=n(75),j=n(66),G=n(5),V=n(44),X=n(72),Y=n(10),W=n(47),J=n(77),tt=n(34),k=n(53),_=n(54),et=n(40),rt=n(33),at=n(78),ut=n(79),xt=n(81),pt=n(82),gt=n(51),It=n(83).forEach,At=k("hidden"),Mt="Symbol",ct="prototype",lt=gt.set,Ct=gt.getterFor(Mt),Nt=Object[ct],Gt=d.Symbol,Ot=Gt&&Gt[ct],jt=d.RangeError,re=d.TypeError,ie=d.QObject,ne=G.f,ae=V.f,Ae=z.f,Ie=Y.f,pe=g([].push),le=tt("symbols"),be=tt("op-symbols"),Se=tt("wks"),me=!ie||!ie[ct]||!ie[ct].findChild,wt=function(Lt,Bt,Ut){var Xt=ne(Nt,Bt);Xt&&delete Nt[Bt],ae(Lt,Bt,Ut),Xt&&Lt!==Nt&&ae(Nt,Bt,Xt)},Yt=T&&$(function(){return F(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a!==7})?wt:ae,ue=function(Lt,Bt){var Ut=le[Lt]=F(Ot);return lt(Ut,{type:Mt,tag:Lt,description:Bt}),T||(Ut.description=Bt),Ut},Vt=function(Bt,Ut,Xt){Bt===Nt&&Vt(be,Ut,Xt),R(Bt);var Pt=O(Ut);return R(Xt),E(le,Pt)?(Xt.enumerable?(E(Bt,At)&&Bt[At][Pt]&&(Bt[At][Pt]=!1),Xt=F(Xt,{enumerable:M(0,!1)})):(E(Bt,At)||ae(Bt,At,M(1,F(null))),Bt[At][Pt]=!0),Yt(Bt,Pt,Xt)):ae(Bt,Pt,Xt)},_t=function(Bt,Ut){R(Bt);var Xt=C(Ut),Pt=U(Xt).concat(ht(Xt));return It(Pt,function(ce){(!T||h(Zt,Xt,ce))&&Vt(Bt,ce,Xt[ce])}),Bt},te=function(Bt,Ut){return Ut===void 0?F(Bt):_t(F(Bt),Ut)},Zt=function(Bt){var Ut=O(Bt),Xt=h(Ie,this,Ut);return this===Nt&&E(le,Ut)&&!E(be,Ut)?!1:Xt||!E(this,Ut)||!E(le,Ut)||E(this,At)&&this[At][Ut]?Xt:!0},xe=function(Bt,Ut){var Xt=C(Bt),Pt=O(Ut);if(!(Xt===Nt&&E(le,Pt)&&!E(be,Pt))){var ce=ne(Xt,Pt);return ce&&E(le,Pt)&&!(E(Xt,At)&&Xt[At][Pt])&&(ce.enumerable=!0),ce}},We=function(Bt){var Ut=Ae(C(Bt)),Xt=[];return It(Ut,function(Pt){!E(le,Pt)&&!E(_,Pt)&&pe(Xt,Pt)}),Xt},ht=function(Lt){var Bt=Lt===Nt,Ut=Ae(Bt?be:C(Lt)),Xt=[];return It(Ut,function(Pt){E(le,Pt)&&(!Bt||E(Nt,Pt))&&pe(Xt,le[Pt])}),Xt};S||(Gt=function(){if(b(Ot,this))throw new re("Symbol is not a constructor");var Bt=!arguments.length||arguments[0]===void 0?void 0:P(arguments[0]),Ut=et(Bt),Xt=function(Pt){var ce=this===void 0?d:this;ce===Nt&&h(Xt,be,Pt),E(ce,At)&&E(ce[At],Ut)&&(ce[At][Ut]=!1);var De=M(1,Pt);try{Yt(ce,Ut,De)}catch(Dt){if(!(Dt instanceof jt))throw Dt;wt(ce,Ut,De)}};return T&&me&&Yt(Nt,Ut,{configurable:!0,set:Xt}),ue(Ut,Bt)},Ot=Gt[ct],W(Ot,"toString",function(){return Ct(this).tag}),W(Gt,"withoutSetter",function(Lt){return ue(et(Lt),Lt)}),Y.f=Zt,V.f=Vt,X.f=_t,G.f=xe,B.f=z.f=We,j.f=ht,at.f=function(Lt){return ue(rt(Lt),Lt)},T&&(J(Ot,"description",{configurable:!0,get:function(){return Ct(this).description}}),m||W(Nt,"propertyIsEnumerable",Zt,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!S,sham:!S},{Symbol:Gt}),It(U(Se),function(Lt){ut(Lt)}),u({target:Mt,stat:!0,forced:!S},{useSetter:function(){me=!0},useSimple:function(){me=!1}}),u({target:"Object",stat:!0,forced:!S,sham:!T},{create:te,defineProperty:Vt,defineProperties:_t,getOwnPropertyDescriptor:xe}),u({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:We}),xt(),pt(Gt,Mt),_[At]=!0}),(function(x,I,n){var u=n(4),d=n(5).f,h=n(43),g=n(47),m=n(37),T=n(55),S=n(67);x.exports=function($,E){var b=$.target,R=$.global,C=$.stat,O,P,M,F,U,B;if(R?P=u:C?P=u[b]||m(b,{}):P=u[b]&&u[b].prototype,P)for(M in E){if(U=E[M],$.dontCallGetSet?(B=d(P,M),F=B&&B.value):F=P[M],O=S(R?M:b+(C?".":"#")+M,$.forced),!O&&F!==void 0){if(typeof U==typeof F)continue;T(U,F)}($.sham||F&&F.sham)&&h(U,"sham",!0),g(P,M,U,$)}}}),(function(x){var I=function(n){return n&&n.Math===Math&&n};x.exports=I(typeof globalThis=="object"&&globalThis)||I(typeof window=="object"&&window)||I(typeof self=="object"&&self)||I(typeof global=="object"&&global)||I(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()}),(function(x,I,n){var u=n(6),d=n(8),h=n(10),g=n(11),m=n(12),T=n(18),S=n(38),$=n(41),E=Object.getOwnPropertyDescriptor;I.f=u?E:function(R,C){if(R=m(R),C=T(C),$)try{return E(R,C)}catch(O){}if(S(R,C))return g(!d(h.f,R,C),R[C])}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),(function(x){x.exports=function(I){try{return!!I()}catch(n){return!0}}}),(function(x,I,n){var u=n(9),d=Function.prototype.call;x.exports=u?d.bind(d):function(){return d.apply(d,arguments)}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){var d=(function(){}).bind();return typeof d!="function"||d.hasOwnProperty("prototype")})}),(function(x,I){var n={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!n.call({1:2},1);I.f=d?function(g){var m=u(this,g);return!!m&&m.enumerable}:n}),(function(x){x.exports=function(I,n){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:n}}}),(function(x,I,n){var u=n(13),d=n(16);x.exports=function(h){return u(d(h))}}),(function(x,I,n){var u=n(14),d=n(7),h=n(15),g=Object,m=u("".split);x.exports=d(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?m(T,""):g(T)}:g}),(function(x,I,n){var u=n(9),d=Function.prototype,h=d.call,g=u&&d.bind.bind(h,h);x.exports=u?g:function(m){return function(){return h.apply(m,arguments)}}}),(function(x,I,n){var u=n(14),d=u({}.toString),h=u("".slice);x.exports=function(g){return h(d(g),8,-1)}}),(function(x,I,n){var u=n(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(I){return I==null}}),(function(x,I,n){var u=n(19),d=n(22);x.exports=function(h){var g=u(h,"string");return d(g)?g:g+""}}),(function(x,I,n){var u=n(8),d=n(20),h=n(22),g=n(29),m=n(32),T=n(33),S=TypeError,$=T("toPrimitive");x.exports=function(E,b){if(!d(E)||h(E))return E;var R=g(E,$),C;if(R){if(b===void 0&&(b="default"),C=u(R,E,b),!d(C)||h(C))return C;throw new S("Can't convert object to primitive value")}return b===void 0&&(b="number"),m(E,b)}}),(function(x,I,n){var u=n(21);x.exports=function(d){return typeof d=="object"?d!==null:u(d)}}),(function(x){var I=typeof document=="object"&&document.all;x.exports=typeof I=="undefined"&&I!==void 0?function(n){return typeof n=="function"||n===I}:function(n){return typeof n=="function"}}),(function(x,I,n){var u=n(23),d=n(21),h=n(24),g=n(25),m=Object;x.exports=g?function(T){return typeof T=="symbol"}:function(T){var S=u("Symbol");return d(S)&&h(S.prototype,m(T))}}),(function(x,I,n){var u=n(4),d=n(21),h=function(g){return d(g)?g:void 0};x.exports=function(g,m){return arguments.length<2?h(u[g]):u[g]&&u[g][m]}}),(function(x,I,n){var u=n(14);x.exports=u({}.isPrototypeOf)}),(function(x,I,n){var u=n(26);x.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),(function(x,I,n){var u=n(27),d=n(7),h=n(4),g=h.String;x.exports=!!Object.getOwnPropertySymbols&&!d(function(){var m=Symbol("symbol detection");return!g(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&u&&u<41})}),(function(x,I,n){var u=n(4),d=n(28),h=u.process,g=u.Deno,m=h&&h.versions||g&&g.version,T=m&&m.v8,S,$;T&&(S=T.split("."),$=S[0]>0&&S[0]<4?1:+(S[0]+S[1])),!$&&d&&(S=d.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=d.match(/Chrome\/(\d+)/),S&&($=+S[1]))),x.exports=$}),(function(x,I,n){var u=n(4),d=u.navigator,h=d&&d.userAgent;x.exports=h?String(h):""}),(function(x,I,n){var u=n(30),d=n(17);x.exports=function(h,g){var m=h[g];return d(m)?void 0:u(m)}}),(function(x,I,n){var u=n(21),d=n(31),h=TypeError;x.exports=function(g){if(u(g))return g;throw new h(d(g)+" is not a function")}}),(function(x){var I=String;x.exports=function(n){try{return I(n)}catch(u){return"Object"}}}),(function(x,I,n){var u=n(8),d=n(21),h=n(20),g=TypeError;x.exports=function(m,T){var S,$;if(T==="string"&&d(S=m.toString)&&!h($=u(S,m))||d(S=m.valueOf)&&!h($=u(S,m))||T!=="string"&&d(S=m.toString)&&!h($=u(S,m)))return $;throw new g("Can't convert object to primitive value")}}),(function(x,I,n){var u=n(4),d=n(34),h=n(38),g=n(40),m=n(26),T=n(25),S=u.Symbol,$=d("wks"),E=T?S.for||S:S&&S.withoutSetter||g;x.exports=function(b){return h($,b)||($[b]=m&&h(S,b)?S[b]:E("Symbol."+b)),$[b]}}),(function(x,I,n){var u=n(35);x.exports=function(d,h){return u[d]||(u[d]=h||{})}}),(function(x,I,n){var u=n(36),d=n(4),h=n(37),g="__core-js_shared__",m=x.exports=d[g]||h(g,{});(m.versions||(m.versions=[])).push({version:"3.47.0",mode:u?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),(function(x){x.exports=!1}),(function(x,I,n){var u=n(4),d=Object.defineProperty;x.exports=function(h,g){try{d(u,h,{value:g,configurable:!0,writable:!0})}catch(m){u[h]=g}return g}}),(function(x,I,n){var u=n(14),d=n(39),h=u({}.hasOwnProperty);x.exports=Object.hasOwn||function(m,T){return h(d(m),T)}}),(function(x,I,n){var u=n(16),d=Object;x.exports=function(h){return d(u(h))}}),(function(x,I,n){var u=n(14),d=0,h=Math.random(),g=u(1.1.toString);x.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+g(++d+h,36)}}),(function(x,I,n){var u=n(6),d=n(7),h=n(42);x.exports=!u&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})}),(function(x,I,n){var u=n(4),d=n(20),h=u.document,g=d(h)&&d(h.createElement);x.exports=function(m){return g?h.createElement(m):{}}}),(function(x,I,n){var u=n(6),d=n(44),h=n(11);x.exports=u?function(g,m,T){return d.f(g,m,h(1,T))}:function(g,m,T){return g[m]=T,g}}),(function(x,I,n){var u=n(6),d=n(41),h=n(45),g=n(46),m=n(18),T=TypeError,S=Object.defineProperty,$=Object.getOwnPropertyDescriptor,E="enumerable",b="configurable",R="writable";I.f=u?h?function(O,P,M){if(g(O),P=m(P),g(M),typeof O=="function"&&P==="prototype"&&"value"in M&&R in M&&!M[R]){var F=$(O,P);F&&F[R]&&(O[P]=M.value,M={configurable:b in M?M[b]:F[b],enumerable:E in M?M[E]:F[E],writable:!1})}return S(O,P,M)}:S:function(O,P,M){if(g(O),P=m(P),g(M),d)try{return S(O,P,M)}catch(F){}if("get"in M||"set"in M)throw new T("Accessors not supported");return"value"in M&&(O[P]=M.value),O}}),(function(x,I,n){var u=n(6),d=n(7);x.exports=u&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),(function(x,I,n){var u=n(20),d=String,h=TypeError;x.exports=function(g){if(u(g))return g;throw new h(d(g)+" is not an object")}}),(function(x,I,n){var u=n(21),d=n(44),h=n(48),g=n(37);x.exports=function(m,T,S,$){$||($={});var E=$.enumerable,b=$.name!==void 0?$.name:T;if(u(S)&&h(S,b,$),$.global)E?m[T]=S:g(T,S);else{try{$.unsafe?m[T]&&(E=!0):delete m[T]}catch(R){}E?m[T]=S:d.f(m,T,{value:S,enumerable:!1,configurable:!$.nonConfigurable,writable:!$.nonWritable})}return m}}),(function(x,I,n){var u=n(14),d=n(7),h=n(21),g=n(38),m=n(6),T=n(49).CONFIGURABLE,S=n(50),$=n(51),E=$.enforce,b=$.get,R=String,C=Object.defineProperty,O=u("".slice),P=u("".replace),M=u([].join),F=m&&!d(function(){return C(function(){},"length",{value:8}).length!==8}),U=String(String).split("String"),B=x.exports=function(z,j,G){O(R(j),0,7)==="Symbol("&&(j="["+P(R(j),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),G&&G.getter&&(j="get "+j),G&&G.setter&&(j="set "+j),(!g(z,"name")||T&&z.name!==j)&&(m?C(z,"name",{value:j,configurable:!0}):z.name=j),F&&G&&g(G,"arity")&&z.length!==G.arity&&C(z,"length",{value:G.arity});try{G&&g(G,"constructor")&&G.constructor?m&&C(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch(X){}var V=E(z);return g(V,"source")||(V.source=M(U,typeof j=="string"?j:"")),z};Function.prototype.toString=B(function(){return h(this)&&b(this).source||S(this)},"toString")}),(function(x,I,n){var u=n(6),d=n(38),h=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,m=d(h,"name"),T=m&&(function(){}).name==="something",S=m&&(!u||u&&g(h,"name").configurable);x.exports={EXISTS:m,PROPER:T,CONFIGURABLE:S}}),(function(x,I,n){var u=n(14),d=n(21),h=n(35),g=u(Function.toString);d(h.inspectSource)||(h.inspectSource=function(m){return g(m)}),x.exports=h.inspectSource}),(function(x,I,n){var u=n(52),d=n(4),h=n(20),g=n(43),m=n(38),T=n(35),S=n(53),$=n(54),E="Object already initialized",b=d.TypeError,R=d.WeakMap,C,O,P,M=function(z){return P(z)?O(z):C(z,{})},F=function(z){return function(j){var G;if(!h(j)||(G=O(j)).type!==z)throw new b("Incompatible receiver, "+z+" required");return G}};if(u||T.state){var U=T.state||(T.state=new R);U.get=U.get,U.has=U.has,U.set=U.set,C=function(z,j){if(U.has(z))throw new b(E);return j.facade=z,U.set(z,j),j},O=function(z){return U.get(z)||{}},P=function(z){return U.has(z)}}else{var B=S("state");$[B]=!0,C=function(z,j){if(m(z,B))throw new b(E);return j.facade=z,g(z,B,j),j},O=function(z){return m(z,B)?z[B]:{}},P=function(z){return m(z,B)}}x.exports={set:C,get:O,has:P,enforce:M,getterFor:F}}),(function(x,I,n){var u=n(4),d=n(21),h=u.WeakMap;x.exports=d(h)&&/native code/.test(String(h))}),(function(x,I,n){var u=n(34),d=n(40),h=u("keys");x.exports=function(g){return h[g]||(h[g]=d(g))}}),(function(x){x.exports={}}),(function(x,I,n){var u=n(38),d=n(56),h=n(5),g=n(44);x.exports=function(m,T,S){for(var $=d(T),E=g.f,b=h.f,R=0;R<$.length;R++){var C=$[R];!u(m,C)&&!(S&&u(S,C))&&E(m,C,b(T,C))}}}),(function(x,I,n){var u=n(23),d=n(14),h=n(57),g=n(66),m=n(46),T=d([].concat);x.exports=u("Reflect","ownKeys")||function($){var E=h.f(m($)),b=g.f;return b?T(E,b($)):E}}),(function(x,I,n){var u=n(58),d=n(65),h=d.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(m){return u(m,h)}}),(function(x,I,n){var u=n(14),d=n(38),h=n(12),g=n(59).indexOf,m=n(54),T=u([].push);x.exports=function(S,$){var E=h(S),b=0,R=[],C;for(C in E)!d(m,C)&&d(E,C)&&T(R,C);for(;$.length>b;)d(E,C=$[b++])&&(~g(R,C)||T(R,C));return R}}),(function(x,I,n){var u=n(12),d=n(60),h=n(63),g=function(m){return function(T,S,$){var E=u(T),b=h(E);if(b===0)return!m&&-1;var R=d($,b),C;if(m&&S!==S){for(;b>R;)if(C=E[R++],C!==C)return!0}else for(;b>R;R++)if((m||R in E)&&E[R]===S)return m||R||0;return!m&&-1}};x.exports={includes:g(!0),indexOf:g(!1)}}),(function(x,I,n){var u=n(61),d=Math.max,h=Math.min;x.exports=function(g,m){var T=u(g);return T<0?d(T+m,0):h(T,m)}}),(function(x,I,n){var u=n(62);x.exports=function(d){var h=+d;return h!==h||h===0?0:u(h)}}),(function(x){var I=Math.ceil,n=Math.floor;x.exports=Math.trunc||function(d){var h=+d;return(h>0?n:I)(h)}}),(function(x,I,n){var u=n(64);x.exports=function(d){return u(d.length)}}),(function(x,I,n){var u=n(61),d=Math.min;x.exports=function(h){var g=u(h);return g>0?d(g,9007199254740991):0}}),(function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),(function(x,I){I.f=Object.getOwnPropertySymbols}),(function(x,I,n){var u=n(7),d=n(21),h=/#|\.prototype\./,g=function(E,b){var R=T[m(E)];return R===$?!0:R===S?!1:d(b)?u(b):!!b},m=g.normalize=function(E){return String(E).replace(h,".").toLowerCase()},T=g.data={},S=g.NATIVE="N",$=g.POLYFILL="P";x.exports=g}),(function(x,I,n){var u=n(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,I,n){var u=n(70),d=n(21),h=n(15),g=n(33),m=g("toStringTag"),T=Object,S=h((function(){return arguments})())==="Arguments",$=function(E,b){try{return E[b]}catch(R){}};x.exports=u?h:function(E){var b,R,C;return E===void 0?"Undefined":E===null?"Null":typeof(R=$(b=T(E),m))=="string"?R:S?h(b):(C=h(b))==="Object"&&d(b.callee)?"Arguments":C}}),(function(x,I,n){var u=n(33),d=u("toStringTag"),h={};h[d]="z",x.exports=String(h)==="[object z]"}),(function(x,I,n){var u=n(46),d=n(72),h=n(65),g=n(54),m=n(74),T=n(42),S=n(53),$=">",E="<",b="prototype",R="script",C=S("IE_PROTO"),O=function(){},P=function(z){return E+R+$+z+E+"/"+R+$},M=function(z){z.write(P("")),z.close();var j=z.parentWindow.Object;return z=null,j},F=function(){var z=T("iframe"),j="java"+R+":",G;return z.style.display="none",m.appendChild(z),z.src=String(j),G=z.contentWindow.document,G.open(),G.write(P("document.F=Object")),G.close(),G.F},U,B=function(){try{U=new ActiveXObject("htmlfile")}catch(j){}B=typeof document!="undefined"?document.domain&&U?M(U):F():M(U);for(var z=h.length;z--;)delete B[b][h[z]];return B()};g[C]=!0,x.exports=Object.create||function(j,G){var V;return j!==null?(O[b]=u(j),V=new O,O[b]=null,V[C]=j):V=B(),G===void 0?V:d.f(V,G)}}),(function(x,I,n){var u=n(6),d=n(45),h=n(44),g=n(46),m=n(12),T=n(73);I.f=u&&!d?Object.defineProperties:function($,E){g($);for(var b=m(E),R=T(E),C=R.length,O=0,P;C>O;)h.f($,P=R[O++],b[P]);return $}}),(function(x,I,n){var u=n(58),d=n(65);x.exports=Object.keys||function(g){return u(g,d)}}),(function(x,I,n){var u=n(23);x.exports=u("document","documentElement")}),(function(x,I,n){var u=n(15),d=n(12),h=n(57).f,g=n(76),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(S){try{return h(S)}catch($){return g(m)}};x.exports.f=function($){return m&&u($)==="Window"?T($):h(d($))}}),(function(x,I,n){var u=n(14);x.exports=u([].slice)}),(function(x,I,n){var u=n(48),d=n(44);x.exports=function(h,g,m){return m.get&&u(m.get,g,{getter:!0}),m.set&&u(m.set,g,{setter:!0}),d.f(h,g,m)}}),(function(x,I,n){var u=n(33);I.f=u}),(function(x,I,n){var u=n(80),d=n(38),h=n(78),g=n(44).f;x.exports=function(m){var T=u.Symbol||(u.Symbol={});d(T,m)||g(T,m,{value:h.f(m)})}}),(function(x,I,n){var u=n(4);x.exports=u}),(function(x,I,n){var u=n(8),d=n(23),h=n(33),g=n(47);x.exports=function(){var m=d("Symbol"),T=m&&m.prototype,S=T&&T.valueOf,$=h("toPrimitive");T&&!T[$]&&g(T,$,function(E){return u(S,this)},{arity:1})}}),(function(x,I,n){var u=n(44).f,d=n(38),h=n(33),g=h("toStringTag");x.exports=function(m,T,S){m&&!S&&(m=m.prototype),m&&!d(m,g)&&u(m,g,{configurable:!0,value:T})}}),(function(x,I,n){var u=n(84),d=n(14),h=n(13),g=n(39),m=n(63),T=n(86),S=d([].push),$=function(E){var b=E===1,R=E===2,C=E===3,O=E===4,P=E===6,M=E===7,F=E===5||P;return function(U,B,z,j){for(var G=g(U),V=h(G),X=m(V),Y=u(B,z),W=0,J=j||T,tt=b?J(U,X):R||M?J(U,0):void 0,k,_;X>W;W++)if((F||W in V)&&(k=V[W],_=Y(k,W,G),E))if(b)tt[W]=_;else if(_)switch(E){case 3:return!0;case 5:return k;case 6:return W;case 2:S(tt,k)}else switch(E){case 4:return!1;case 7:S(tt,k)}return P?-1:C||O?O:tt}};x.exports={forEach:$(0),map:$(1),filter:$(2),some:$(3),every:$(4),find:$(5),findIndex:$(6),filterReject:$(7)}}),(function(x,I,n){var u=n(85),d=n(30),h=n(9),g=u(u.bind);x.exports=function(m,T){return d(m),T===void 0?m:h?g(m,T):function(){return m.apply(T,arguments)}}}),(function(x,I,n){var u=n(15),d=n(14);x.exports=function(h){if(u(h)==="Function")return d(h)}}),(function(x,I,n){var u=n(87);x.exports=function(d,h){return new(u(d))(h===0?0:h)}}),(function(x,I,n){var u=n(88),d=n(89),h=n(20),g=n(33),m=g("species"),T=Array;x.exports=function(S){var $;return u(S)&&($=S.constructor,d($)&&($===T||u($.prototype))?$=void 0:h($)&&($=$[m],$===null&&($=void 0))),$===void 0?T:$}}),(function(x,I,n){var u=n(15);x.exports=Array.isArray||function(h){return u(h)==="Array"}}),(function(x,I,n){var u=n(14),d=n(7),h=n(21),g=n(69),m=n(23),T=n(50),S=function(){},$=m("Reflect","construct"),E=/^\s*(?:class|function)\b/,b=u(E.exec),R=!E.test(S),C=function(M){if(!h(M))return!1;try{return $(S,[],M),!0}catch(F){return!1}},O=function(M){if(!h(M))return!1;switch(g(M)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return R||!!b(E,T(M))}catch(F){return!0}};O.sham=!0,x.exports=!$||d(function(){var P;return C(C.call)||!C(Object)||!C(function(){P=!0})||P})?O:C}),(function(x,I,n){var u=n(3),d=n(23),h=n(38),g=n(68),m=n(34),T=n(91),S=m("string-to-symbol-registry"),$=m("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!T},{for:function(E){var b=g(E);if(h(S,b))return S[b];var R=d("Symbol")(b);return S[b]=R,$[R]=b,R}})}),(function(x,I,n){var u=n(26);x.exports=u&&!!Symbol.for&&!!Symbol.keyFor}),(function(x,I,n){var u=n(3),d=n(38),h=n(22),g=n(31),m=n(34),T=n(91),S=m("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!T},{keyFor:function(E){if(!h(E))throw new TypeError(g(E)+" is not a symbol");if(d(S,E))return S[E]}})}),(function(x,I,n){var u=n(3),d=n(23),h=n(94),g=n(8),m=n(14),T=n(7),S=n(88),$=n(21),E=n(95),b=n(22),R=n(15),C=n(68),O=n(76),P=n(96),M=n(40),F=n(26),U=n(97),B=String,z=d("JSON","stringify"),j=m(/./.exec),G=m("".charAt),V=m("".charCodeAt),X=m("".replace),Y=m("".slice),W=m([].push),J=m(1.1.toString),tt=/[\uD800-\uDFFF]/g,k=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,et=M(),rt=et.length,at=!F||T(function(){var It=d("Symbol")("stringify detection");return z([It])!=="[null]"||z({a:It})!=="{}"||z(Object(It))!=="{}"}),ut=T(function(){return z("\uDF06\uD834")!=='"\\udf06\\ud834"'||z("\uDEAD")!=='"\\udead"'}),xt=at?function(It,At){var Mt=O(arguments),ct=gt(At);if(!(!$(ct)&&(It===void 0||b(It))))return Mt[1]=function(lt,Ct){if($(ct)&&(Ct=g(ct,this,B(lt),Ct)),!b(Ct))return Ct},h(z,null,Mt)}:z,pt=function(It,At,Mt){var ct=G(Mt,At-1),lt=G(Mt,At+1);return j(k,It)&&!j(_,lt)||j(_,It)&&!j(k,ct)?"\\u"+J(V(It,0),16):It},gt=function(It){if($(It))return It;if(S(It)){for(var At=It.length,Mt=[],ct=0;ct<At;ct++){var lt=It[ct];typeof lt=="string"?W(Mt,lt):(typeof lt=="number"||R(lt)==="Number"||R(lt)==="String")&&W(Mt,C(lt))}var Ct=Mt.length,Nt=!0;return function(Gt,Ot){if(Nt)return Nt=!1,Ot;if(S(this))return Ot;for(var jt=0;jt<Ct;jt++)if(Mt[jt]===Gt)return Ot}}};z&&u({target:"JSON",stat:!0,arity:3,forced:at||ut||!U},{stringify:function(At,Mt,ct){var lt=gt(Mt),Ct=[],Nt=xt(At,function(ae,Ae){var Ie=$(lt)?g(lt,this,B(ae),Ae):Ae;return!U&&E(Ie)?et+(W(Ct,Ie.rawJSON)-1):Ie},ct);if(typeof Nt!="string"||(ut&&(Nt=X(Nt,tt,pt)),U))return Nt;for(var Gt="",Ot=Nt.length,jt=0;jt<Ot;jt++){var re=G(Nt,jt);if(re==='"'){var ie=P(Nt,++jt).end-1,ne=Y(Nt,jt,ie);Gt+=Y(ne,0,rt)===et?Ct[Y(ne,rt)]:'"'+ne+'"',jt=ie}else Gt+=re}return Gt}})}),(function(x,I,n){var u=n(9),d=Function.prototype,h=d.apply,g=d.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(u?g.bind(h):function(){return g.apply(h,arguments)})}),(function(x,I,n){var u=n(20),d=n(51).get;x.exports=function(g){if(!u(g))return!1;var m=d(g);return!!m&&m.type==="RawJSON"}}),(function(x,I,n){var u=n(14),d=n(38),h=SyntaxError,g=parseInt,m=String.fromCharCode,T=u("".charAt),S=u("".slice),$=u(/./.exec),E={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
27
|
-
`,"\\r":"\r","\\t":" "},b=/^[\da-f]{4}$/i,R=/^[\u0000-\u001F]$/;x.exports=function(C,O){for(var P=!0,M="";O<C.length;){var F=T(C,O);if(F==="\\"){var U=S(C,O,O+2);if(d(E,U))M+=E[U],O+=2;else if(U==="\\u"){O+=2;var B=S(C,O,O+4);if(!$(b,B))throw new h("Bad Unicode escape at: "+O);M+=m(g(B,16)),O+=4}else throw new h('Unknown escape sequence: "'+U+'"')}else if(F==='"'){P=!1,O++;break}else{if($(R,F))throw new h("Bad control character in string literal at: "+O);M+=F,O++}}if(P)throw new h("Unterminated string at: "+O);return{value:M,end:O}}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){var d="9007199254740993",h=JSON.rawJSON(d);return!JSON.isRawJSON(h)||JSON.stringify(h)!==d})}),(function(x,I,n){var u=n(3),d=n(26),h=n(7),g=n(66),m=n(39),T=!d||h(function(){g.f(1)});u({target:"Object",stat:!0,forced:T},{getOwnPropertySymbols:function($){var E=g.f;return E?E(m($)):[]}})}),(function(x,I,n){var u=n(3),d=n(6),h=n(4),g=n(14),m=n(38),T=n(21),S=n(24),$=n(68),E=n(77),b=n(55),R=h.Symbol,C=R&&R.prototype;if(d&&T(R)&&(!("description"in C)||R().description!==void 0)){var O={},P=function(){var V=arguments.length<1||arguments[0]===void 0?void 0:$(arguments[0]),X=S(C,this)?new R(V):V===void 0?R():R(V);return V===""&&(O[X]=!0),X};b(P,R),P.prototype=C,C.constructor=P;var M=String(R("description detection"))==="Symbol(description detection)",F=g(C.valueOf),U=g(C.toString),B=/^Symbol\((.*)\)[^)]+$/,z=g("".replace),j=g("".slice);E(C,"description",{configurable:!0,get:function(){var V=F(this);if(m(O,V))return"";var X=U(V),Y=M?j(X,7,-1):z(X,B,"$1");return Y===""?void 0:Y}}),u({global:!0,constructor:!0,forced:!0},{Symbol:P})}}),(function(x,I,n){var u=n(4),d=n(79),h=n(44).f,g=n(5).f,m=u.Symbol;if(d("asyncDispose"),m){var T=g(m,"asyncDispose");T.enumerable&&T.configurable&&T.writable&&h(m,"asyncDispose",{value:T.value,enumerable:!1,configurable:!1,writable:!1})}}),(function(x,I,n){var u=n(79);u("asyncIterator")}),(function(x,I,n){var u=n(4),d=n(79),h=n(44).f,g=n(5).f,m=u.Symbol;if(d("dispose"),m){var T=g(m,"dispose");T.enumerable&&T.configurable&&T.writable&&h(m,"dispose",{value:T.value,enumerable:!1,configurable:!1,writable:!1})}}),(function(x,I,n){var u=n(79);u("hasInstance")}),(function(x,I,n){var u=n(79);u("isConcatSpreadable")}),(function(x,I,n){var u=n(79);u("iterator")}),(function(x,I,n){var u=n(79);u("match")}),(function(x,I,n){var u=n(79);u("matchAll")}),(function(x,I,n){var u=n(79);u("replace")}),(function(x,I,n){var u=n(79);u("search")}),(function(x,I,n){var u=n(79);u("species")}),(function(x,I,n){var u=n(79);u("split")}),(function(x,I,n){var u=n(79),d=n(81);u("toPrimitive"),d()}),(function(x,I,n){var u=n(23),d=n(79),h=n(82);d("toStringTag"),h(u("Symbol"),"Symbol")}),(function(x,I,n){var u=n(79);u("unscopables")}),(function(x,I,n){var u=n(3),d=n(4),h=n(94),g=n(116),m="WebAssembly",T=d[m],S=new Error("e",{cause:7}).cause!==7,$=function(b,R){var C={};C[b]=g(b,R,S),u({global:!0,constructor:!0,arity:1,forced:S},C)},E=function(b,R){if(T&&T[b]){var C={};C[b]=g(m+"."+b,R,S),u({target:m,stat:!0,constructor:!0,arity:1,forced:S},C)}};$("Error",function(b){return function(C){return h(b,this,arguments)}}),$("EvalError",function(b){return function(C){return h(b,this,arguments)}}),$("RangeError",function(b){return function(C){return h(b,this,arguments)}}),$("ReferenceError",function(b){return function(C){return h(b,this,arguments)}}),$("SyntaxError",function(b){return function(C){return h(b,this,arguments)}}),$("TypeError",function(b){return function(C){return h(b,this,arguments)}}),$("URIError",function(b){return function(C){return h(b,this,arguments)}}),E("CompileError",function(b){return function(C){return h(b,this,arguments)}}),E("LinkError",function(b){return function(C){return h(b,this,arguments)}}),E("RuntimeError",function(b){return function(C){return h(b,this,arguments)}})}),(function(x,I,n){var u=n(23),d=n(38),h=n(43),g=n(24),m=n(117),T=n(55),S=n(121),$=n(122),E=n(123),b=n(124),R=n(125),C=n(6),O=n(36);x.exports=function(P,M,F,U){var B="stackTraceLimit",z=U?2:1,j=P.split("."),G=j[j.length-1],V=u.apply(null,j);if(V){var X=V.prototype;if(!O&&d(X,"cause")&&delete X.cause,!F)return V;var Y=u("Error"),W=M(function(J,tt){var k=E(U?tt:J,void 0),_=U?new V(J):new V;return k!==void 0&&h(_,"message",k),R(_,W,_.stack,2),this&&g(X,this)&&$(_,this,W),arguments.length>z&&b(_,arguments[z]),_});if(W.prototype=X,G!=="Error"?m?m(W,Y):T(W,Y,{name:!0}):C&&B in V&&(S(W,V,B),S(W,V,"prepareStackTrace")),T(W,V),!O)try{X.name!==G&&h(X,"name",G),X.constructor=W}catch(J){}return W}}}),(function(x,I,n){var u=n(118),d=n(20),h=n(16),g=n(119);x.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var m=!1,T={},S;try{S=u(Object.prototype,"__proto__","set"),S(T,[]),m=T instanceof Array}catch($){}return function(E,b){return h(E),g(b),d(E)&&(m?S(E,b):E.__proto__=b),E}})():void 0)}),(function(x,I,n){var u=n(14),d=n(30);x.exports=function(h,g,m){try{return u(d(Object.getOwnPropertyDescriptor(h,g)[m]))}catch(T){}}}),(function(x,I,n){var u=n(120),d=String,h=TypeError;x.exports=function(g){if(u(g))return g;throw new h("Can't set "+d(g)+" as a prototype")}}),(function(x,I,n){var u=n(20);x.exports=function(d){return u(d)||d===null}}),(function(x,I,n){var u=n(44).f;x.exports=function(d,h,g){g in d||u(d,g,{configurable:!0,get:function(){return h[g]},set:function(m){h[g]=m}})}}),(function(x,I,n){var u=n(21),d=n(20),h=n(117);x.exports=function(g,m,T){var S,$;return h&&u(S=m.constructor)&&S!==T&&d($=S.prototype)&&$!==T.prototype&&h(g,$),g}}),(function(x,I,n){var u=n(68);x.exports=function(d,h){return d===void 0?arguments.length<2?"":h:u(d)}}),(function(x,I,n){var u=n(20),d=n(43);x.exports=function(h,g){u(g)&&"cause"in g&&d(h,"cause",g.cause)}}),(function(x,I,n){var u=n(43),d=n(126),h=n(127),g=Error.captureStackTrace;x.exports=function(m,T,S,$){h&&(g?g(m,T):u(m,"stack",d(S,$)))}}),(function(x,I,n){var u=n(14),d=Error,h=u("".replace),g=(function(S){return String(new d(S).stack)})("zxcasd"),m=/\n\s*at [^:]*:[^\n]*/,T=m.test(g);x.exports=function(S,$){if(T&&typeof S=="string"&&!d.prepareStackTrace)for(;$--;)S=h(S,m,"");return S}}),(function(x,I,n){var u=n(7),d=n(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,I,n){var u=n(3),d=n(23),h=n(20),g=n(69),m=n(7),T="Error",S="DOMException",$=Object.setPrototypeOf||{}.__proto__,E=d(S),b=Error,R=b.isError,C=!R||!$||m(function(){return E&&!R(new E(S))||!R(new b(T,{cause:function(){}}))||R(d("Object","create")(b.prototype))});u({target:"Error",stat:!0,sham:!0,forced:C},{isError:function(P){if(!h(P))return!1;var M=g(P);return M===T||M===S}})}),(function(x,I,n){var u=n(47),d=n(130),h=Error.prototype;h.toString!==d&&u(h,"toString",d)}),(function(x,I,n){var u=n(6),d=n(7),h=n(46),g=n(123),m=Error.prototype.toString,T=d(function(){if(u){var S=Object.create(Object.defineProperty({},"name",{get:function(){return this===S}}));if(m.call(S)!=="true")return!0}return m.call({message:1,name:2})!=="2: 1"||m.call({})!=="Error"});x.exports=T?function(){var $=h(this),E=g($.name,"Error"),b=g($.message);return E?b?E+": "+b:E:b}:m}),(function(x,I,n){n(132)}),(function(x,I,n){var u=n(3),d=n(24),h=n(133),g=n(117),m=n(55),T=n(71),S=n(43),$=n(11),E=n(124),b=n(125),R=n(135),C=n(123),O=n(33),P=O("toStringTag"),M=Error,F=[].push,U=function(j,G){var V=d(B,this),X;g?X=g(new M,V?h(this):B):(X=V?this:T(B),S(X,P,"Error")),G!==void 0&&S(X,"message",C(G)),b(X,U,X.stack,1),arguments.length>2&&E(X,arguments[2]);var Y=[];return R(j,F,{that:Y}),S(X,"errors",Y),X};g?g(U,M):m(U,M,{name:!0});var B=U.prototype=T(M.prototype,{constructor:$(1,U),message:$(1,""),name:$(1,"AggregateError")});u({global:!0,constructor:!0,arity:2},{AggregateError:U})}),(function(x,I,n){var u=n(38),d=n(21),h=n(39),g=n(53),m=n(134),T=g("IE_PROTO"),S=Object,$=S.prototype;x.exports=m?S.getPrototypeOf:function(E){var b=h(E);if(u(b,T))return b[T];var R=b.constructor;return d(R)&&b instanceof R?R.prototype:b instanceof S?$:null}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})}),(function(x,I,n){var u=n(84),d=n(8),h=n(46),g=n(31),m=n(136),T=n(63),S=n(24),$=n(138),E=n(139),b=n(140),R=TypeError,C=function(P,M){this.stopped=P,this.result=M},O=C.prototype;x.exports=function(P,M,F){var U=F&&F.that,B=!!(F&&F.AS_ENTRIES),z=!!(F&&F.IS_RECORD),j=!!(F&&F.IS_ITERATOR),G=!!(F&&F.INTERRUPTED),V=u(M,U),X,Y,W,J,tt,k,_,et=function(at){return X&&b(X,"normal"),new C(!0,at)},rt=function(at){return B?(h(at),G?V(at[0],at[1],et):V(at[0],at[1])):G?V(at,et):V(at)};if(z)X=P.iterator;else if(j)X=P;else{if(Y=E(P),!Y)throw new R(g(P)+" is not iterable");if(m(Y)){for(W=0,J=T(P);J>W;W++)if(tt=rt(P[W]),tt&&S(O,tt))return tt;return new C(!1)}X=$(P,Y)}for(k=z?P.next:X.next;!(_=d(k,X)).done;){try{tt=rt(_.value)}catch(at){b(X,"throw",at)}if(typeof tt=="object"&&tt&&S(O,tt))return tt}return new C(!1)}}),(function(x,I,n){var u=n(33),d=n(137),h=u("iterator"),g=Array.prototype;x.exports=function(m){return m!==void 0&&(d.Array===m||g[h]===m)}}),(function(x){x.exports={}}),(function(x,I,n){var u=n(8),d=n(30),h=n(46),g=n(31),m=n(139),T=TypeError;x.exports=function(S,$){var E=arguments.length<2?m(S):$;if(d(E))return h(u(E,S));throw new T(g(S)+" is not iterable")}}),(function(x,I,n){var u=n(69),d=n(29),h=n(17),g=n(137),m=n(33),T=m("iterator");x.exports=function(S){if(!h(S))return d(S,T)||d(S,"@@iterator")||g[u(S)]}}),(function(x,I,n){var u=n(8),d=n(46),h=n(29);x.exports=function(g,m,T){var S,$;d(g);try{if(S=h(g,"return"),!S){if(m==="throw")throw T;return T}S=u(S,g)}catch(E){$=!0,S=E}if(m==="throw")throw T;if($)throw S;return d(S),T}}),(function(x,I,n){var u=n(3),d=n(23),h=n(94),g=n(7),m=n(116),T="AggregateError",S=d(T),$=!g(function(){return S([1]).errors[0]!==1})&&g(function(){return S([1],T,{cause:7}).cause!==7});u({global:!0,constructor:!0,arity:2,forced:$},{AggregateError:m(T,function(E){return function(R,C){return h(E,this,arguments)}},$,!0)})}),(function(x,I,n){var u=n(3),d=n(4),h=n(24),g=n(133),m=n(117),T=n(55),S=n(71),$=n(43),E=n(11),b=n(125),R=n(123),C=n(33),O=n(7),P=n(36),M=d.SuppressedError,F=C("toStringTag"),U=Error,B=!!M&&M.length!==3,z=!!M&&O(function(){return new M(1,2,3,{cause:4}).cause===4}),j=B||z,G=function(Y,W,J){var tt=h(V,this),k;return m?k=j&&(!tt||g(this)===V)?new M:m(new U,tt?g(this):V):(k=tt?this:S(V),$(k,F,"Error")),J!==void 0&&$(k,"message",R(J)),b(k,G,k.stack,1),$(k,"error",Y),$(k,"suppressed",W),k};m?m(G,U):T(G,U,{name:!0});var V=G.prototype=j?M.prototype:S(U.prototype,{constructor:E(1,G),message:E(1,""),name:E(1,"SuppressedError")});j&&!P&&(V.constructor=G),u({global:!0,constructor:!0,arity:3,forced:j},{SuppressedError:G})}),(function(x,I,n){var u=n(3),d=n(39),h=n(63),g=n(61),m=n(144);u({target:"Array",proto:!0},{at:function(S){var $=d(this),E=h($),b=g(S),R=b>=0?b:E+b;return R<0||R>=E?void 0:$[R]}}),m("at")}),(function(x,I,n){var u=n(33),d=n(71),h=n(44).f,g=u("unscopables"),m=Array.prototype;m[g]===void 0&&h(m,g,{configurable:!0,value:d(null)}),x.exports=function(T){m[g][T]=!0}}),(function(x,I,n){var u=n(3),d=n(7),h=n(88),g=n(20),m=n(39),T=n(63),S=n(146),$=n(147),E=n(86),b=n(148),R=n(33),C=n(27),O=R("isConcatSpreadable"),P=C>=51||!d(function(){var U=[];return U[O]=!1,U.concat()[0]!==U}),M=function(U){if(!g(U))return!1;var B=U[O];return B!==void 0?!!B:h(U)},F=!P||!b("concat");u({target:"Array",proto:!0,arity:1,forced:F},{concat:function(B){var z=m(this),j=E(z,0),G=0,V,X,Y,W,J;for(V=-1,Y=arguments.length;V<Y;V++)if(J=V===-1?z:arguments[V],M(J))for(W=T(J),S(G+W),X=0;X<W;X++,G++)X in J&&$(j,G,J[X]);else S(G+1),$(j,G++,J);return j.length=G,j}})}),(function(x){var I=TypeError,n=9007199254740991;x.exports=function(u){if(u>n)throw I("Maximum allowed index exceeded");return u}}),(function(x,I,n){var u=n(6),d=n(44),h=n(11);x.exports=function(g,m,T){u?d.f(g,m,h(0,T)):g[m]=T}}),(function(x,I,n){var u=n(7),d=n(33),h=n(27),g=d("species");x.exports=function(m){return h>=51||!u(function(){var T=[],S=T.constructor={};return S[g]=function(){return{foo:1}},T[m](Boolean).foo!==1})}}),(function(x,I,n){var u=n(3),d=n(150),h=n(144);u({target:"Array",proto:!0},{copyWithin:d}),h("copyWithin")}),(function(x,I,n){var u=n(39),d=n(60),h=n(63),g=n(151),m=Math.min;x.exports=[].copyWithin||function(S,$){var E=u(this),b=h(E),R=d(S,b),C=d($,b),O=arguments.length>2?arguments[2]:void 0,P=m((O===void 0?b:d(O,b))-C,b-R),M=1;for(C<R&&R<C+P&&(M=-1,C+=P-1,R+=P-1);P-- >0;)C in E?E[R]=E[C]:g(E,R),R+=M,C+=M;return E}}),(function(x,I,n){var u=n(31),d=TypeError;x.exports=function(h,g){if(!delete h[g])throw new d("Cannot delete property "+u(g)+" of "+u(h))}}),(function(x,I,n){var u=n(3),d=n(83).every,h=n(153),g=h("every");u({target:"Array",proto:!0,forced:!g},{every:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(7);x.exports=function(d,h){var g=[][d];return!!g&&u(function(){g.call(null,h||function(){return 1},1)})}}),(function(x,I,n){var u=n(3),d=n(155),h=n(144);u({target:"Array",proto:!0},{fill:d}),h("fill")}),(function(x,I,n){var u=n(39),d=n(60),h=n(63);x.exports=function(m){for(var T=u(this),S=h(T),$=arguments.length,E=d($>1?arguments[1]:void 0,S),b=$>2?arguments[2]:void 0,R=b===void 0?S:d(b,S);R>E;)T[E++]=m;return T}}),(function(x,I,n){var u=n(3),d=n(83).filter,h=n(148),g=h("filter");u({target:"Array",proto:!0,forced:!g},{filter:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),d=n(83).find,h=n(144),g="find",m=!0;g in[]&&Array(1)[g](function(){m=!1}),u({target:"Array",proto:!0,forced:m},{find:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}}),h(g)}),(function(x,I,n){var u=n(3),d=n(83).findIndex,h=n(144),g="findIndex",m=!0;g in[]&&Array(1)[g](function(){m=!1}),u({target:"Array",proto:!0,forced:m},{findIndex:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}}),h(g)}),(function(x,I,n){var u=n(3),d=n(160).findLast,h=n(144);u({target:"Array",proto:!0},{findLast:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}}),h("findLast")}),(function(x,I,n){var u=n(84),d=n(13),h=n(39),g=n(63),m=function(T){var S=T===1;return function($,E,b){for(var R=h($),C=d(R),O=g(C),P=u(E,b),M,F;O-- >0;)if(M=C[O],F=P(M,O,R),F)switch(T){case 0:return M;case 1:return O}return S?-1:void 0}};x.exports={findLast:m(0),findLastIndex:m(1)}}),(function(x,I,n){var u=n(3),d=n(160).findLastIndex,h=n(144);u({target:"Array",proto:!0},{findLastIndex:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")}),(function(x,I,n){var u=n(3),d=n(163),h=n(39),g=n(63),m=n(61),T=n(86);u({target:"Array",proto:!0},{flat:function(){var $=arguments.length?arguments[0]:void 0,E=h(this),b=g(E),R=T(E,0);return R.length=d(R,E,E,b,0,$===void 0?1:m($)),R}})}),(function(x,I,n){var u=n(88),d=n(63),h=n(146),g=n(84),m=function(T,S,$,E,b,R,C,O){for(var P=b,M=0,F=C?g(C,O):!1,U,B;M<E;)M in $&&(U=F?F($[M],M,S):$[M],R>0&&u(U)?(B=d(U),P=m(T,S,U,B,P,R-1)-1):(h(P+1),T[P]=U),P++),M++;return P};x.exports=m}),(function(x,I,n){var u=n(3),d=n(163),h=n(30),g=n(39),m=n(63),T=n(86);u({target:"Array",proto:!0},{flatMap:function($){var E=g(this),b=m(E),R;return h($),R=T(E,0),R.length=d(R,E,E,b,0,1,$,arguments.length>1?arguments[1]:void 0),R}})}),(function(x,I,n){var u=n(3),d=n(166);u({target:"Array",proto:!0,forced:[].forEach!==d},{forEach:d})}),(function(x,I,n){var u=n(83).forEach,d=n(153),h=d("forEach");x.exports=h?[].forEach:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}}),(function(x,I,n){var u=n(3),d=n(168),h=n(170),g=!h(function(m){Array.from(m)});u({target:"Array",stat:!0,forced:g},{from:d})}),(function(x,I,n){var u=n(84),d=n(8),h=n(39),g=n(169),m=n(136),T=n(89),S=n(63),$=n(147),E=n(138),b=n(139),R=Array;x.exports=function(O){var P=h(O),M=T(this),F=arguments.length,U=F>1?arguments[1]:void 0,B=U!==void 0;B&&(U=u(U,F>2?arguments[2]:void 0));var z=b(P),j=0,G,V,X,Y,W,J;if(z&&!(this===R&&m(z)))for(V=M?new this:[],Y=E(P,z),W=Y.next;!(X=d(W,Y)).done;j++)J=B?g(Y,U,[X.value,j],!0):X.value,$(V,j,J);else for(G=S(P),V=M?new this(G):R(G);G>j;j++)J=B?U(P[j],j):P[j],$(V,j,J);return V.length=j,V}}),(function(x,I,n){var u=n(46),d=n(140);x.exports=function(h,g,m,T){try{return T?g(u(m)[0],m[1]):g(m)}catch(S){d(h,"throw",S)}}}),(function(x,I,n){var u=n(33),d=u("iterator"),h=!1;try{var g=0,m={next:function(){return{done:!!g++}},return:function(){h=!0}};m[d]=function(){return this},Array.from(m,function(){throw 2})}catch(T){}x.exports=function(T,S){try{if(!S&&!h)return!1}catch(b){return!1}var $=!1;try{var E={};E[d]=function(){return{next:function(){return{done:$=!0}}}},T(E)}catch(b){}return $}}),(function(x,I,n){var u=n(3),d=n(59).includes,h=n(7),g=n(144),m=h(function(){return!Array(1).includes()});u({target:"Array",proto:!0,forced:m},{includes:function(S){return d(this,S,arguments.length>1?arguments[1]:void 0)}}),g("includes")}),(function(x,I,n){var u=n(3),d=n(85),h=n(59).indexOf,g=n(153),m=d([].indexOf),T=!!m&&1/m([1],1,-0)<0,S=T||!g("indexOf");u({target:"Array",proto:!0,forced:S},{indexOf:function(E){var b=arguments.length>1?arguments[1]:void 0;return T?m(this,E,b)||0:h(this,E,b)}})}),(function(x,I,n){var u=n(3),d=n(88);u({target:"Array",stat:!0},{isArray:d})}),(function(x,I,n){var u=n(12),d=n(144),h=n(137),g=n(51),m=n(44).f,T=n(175),S=n(178),$=n(36),E=n(6),b="Array Iterator",R=g.set,C=g.getterFor(b);x.exports=T(Array,"Array",function(P,M){R(this,{type:b,target:u(P),index:0,kind:M})},function(){var P=C(this),M=P.target,F=P.index++;if(!M||F>=M.length)return P.target=null,S(void 0,!0);switch(P.kind){case"keys":return S(F,!1);case"values":return S(M[F],!1)}return S([F,M[F]],!1)},"values");var O=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!$&&E&&O.name!=="values")try{m(O,"name",{value:"values"})}catch(P){}}),(function(x,I,n){var u=n(3),d=n(8),h=n(36),g=n(49),m=n(21),T=n(176),S=n(133),$=n(117),E=n(82),b=n(43),R=n(47),C=n(33),O=n(137),P=n(177),M=g.PROPER,F=g.CONFIGURABLE,U=P.IteratorPrototype,B=P.BUGGY_SAFARI_ITERATORS,z=C("iterator"),j="keys",G="values",V="entries",X=function(){return this};x.exports=function(Y,W,J,tt,k,_,et){T(J,W,tt);var rt=function(lt){if(lt===k&>)return gt;if(!B&<&< in xt)return xt[lt];switch(lt){case j:return function(){return new J(this,lt)};case G:return function(){return new J(this,lt)};case V:return function(){return new J(this,lt)}}return function(){return new J(this)}},at=W+" Iterator",ut=!1,xt=Y.prototype,pt=xt[z]||xt["@@iterator"]||k&&xt[k],gt=!B&&pt||rt(k),It=W==="Array"&&xt.entries||pt,At,Mt,ct;if(It&&(At=S(It.call(new Y)),At!==Object.prototype&&At.next&&(!h&&S(At)!==U&&($?$(At,U):m(At[z])||R(At,z,X)),E(At,at,!0,!0),h&&(O[at]=X))),M&&k===G&&pt&&pt.name!==G&&(!h&&F?b(xt,"name",G):(ut=!0,gt=function(){return d(pt,this)})),k)if(Mt={values:rt(G),keys:_?gt:rt(j),entries:rt(V)},et)for(ct in Mt)(B||ut||!(ct in xt))&&R(xt,ct,Mt[ct]);else u({target:W,proto:!0,forced:B||ut},Mt);return(!h||et)&&xt[z]!==gt&&R(xt,z,gt,{name:k}),O[W]=gt,Mt}}),(function(x,I,n){var u=n(177).IteratorPrototype,d=n(71),h=n(11),g=n(82),m=n(137),T=function(){return this};x.exports=function(S,$,E,b){var R=$+" Iterator";return S.prototype=d(u,{next:h(+!b,E)}),g(S,R,!1,!0),m[R]=T,S}}),(function(x,I,n){var u=n(7),d=n(21),h=n(20),g=n(71),m=n(133),T=n(47),S=n(33),$=n(36),E=S("iterator"),b=!1,R,C,O;[].keys&&(O=[].keys(),"next"in O?(C=m(m(O)),C!==Object.prototype&&(R=C)):b=!0);var P=!h(R)||u(function(){var M={};return R[E].call(M)!==M});P?R={}:$&&(R=g(R)),d(R[E])||T(R,E,function(){return this}),x.exports={IteratorPrototype:R,BUGGY_SAFARI_ITERATORS:b}}),(function(x){x.exports=function(I,n){return{value:I,done:n}}}),(function(x,I,n){var u=n(3),d=n(14),h=n(13),g=n(12),m=n(153),T=d([].join),S=h!==Object,$=S||!m("join",",");u({target:"Array",proto:!0,forced:$},{join:function(b){return T(g(this),b===void 0?",":b)}})}),(function(x,I,n){var u=n(3),d=n(181);u({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})}),(function(x,I,n){var u=n(94),d=n(12),h=n(61),g=n(63),m=n(153),T=Math.min,S=[].lastIndexOf,$=!!S&&1/[1].lastIndexOf(1,-0)<0,E=m("lastIndexOf"),b=$||!E;x.exports=b?function(C){if($)return u(S,this,arguments)||0;var O=d(this),P=g(O);if(P===0)return-1;var M=P-1;for(arguments.length>1&&(M=T(M,h(arguments[1]))),M<0&&(M=P+M);M>=0;M--)if(M in O&&O[M]===C)return M||0;return-1}:S}),(function(x,I,n){var u=n(3),d=n(83).map,h=n(148),g=h("map");u({target:"Array",proto:!0,forced:!g},{map:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),d=n(7),h=n(89),g=n(147),m=Array,T=d(function(){function S(){}return!(m.of.call(S)instanceof S)});u({target:"Array",stat:!0,forced:T},{of:function(){for(var $=0,E=arguments.length,b=new(h(this)?this:m)(E);E>$;)g(b,$,arguments[$++]);return b.length=E,b}})}),(function(x,I,n){var u=n(3),d=n(39),h=n(63),g=n(185),m=n(146),T=n(7),S=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),$=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(b){return b instanceof TypeError}},E=S||!$();u({target:"Array",proto:!0,arity:1,forced:E},{push:function(R){var C=d(this),O=h(C),P=arguments.length;m(O+P);for(var M=0;M<P;M++)C[O]=arguments[M],O++;return g(C,O),O}})}),(function(x,I,n){var u=n(6),d=n(88),h=TypeError,g=Object.getOwnPropertyDescriptor,m=u&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}})();x.exports=m?function(T,S){if(d(T)&&!g(T,"length").writable)throw new h("Cannot set read only .length");return T.length=S}:function(T,S){return T.length=S}}),(function(x,I,n){var u=n(3),d=n(187).left,h=n(153),g=n(27),m=n(188),T=!m&&g>79&&g<83,S=T||!h("reduce");u({target:"Array",proto:!0,forced:S},{reduce:function(E){var b=arguments.length;return d(this,E,b,b>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(30),d=n(39),h=n(13),g=n(63),m=TypeError,T="Reduce of empty array with no initial value",S=function($){return function(E,b,R,C){var O=d(E),P=h(O),M=g(O);if(u(b),M===0&&R<2)throw new m(T);var F=$?M-1:0,U=$?-1:1;if(R<2)for(;;){if(F in P){C=P[F],F+=U;break}if(F+=U,$?F<0:M<=F)throw new m(T)}for(;$?F>=0:M>F;F+=U)F in P&&(C=b(C,P[F],F,O));return C}};x.exports={left:S(!1),right:S(!0)}}),(function(x,I,n){var u=n(189);x.exports=u==="NODE"}),(function(x,I,n){var u=n(4),d=n(28),h=n(15),g=function(m){return d.slice(0,m.length)===m};x.exports=(function(){return g("Bun/")?"BUN":g("Cloudflare-Workers")?"CLOUDFLARE":g("Deno/")?"DENO":g("Node.js/")?"NODE":u.Bun&&typeof Bun.version=="string"?"BUN":u.Deno&&typeof Deno.version=="object"?"DENO":h(u.process)==="process"?"NODE":u.window&&u.document?"BROWSER":"REST"})()}),(function(x,I,n){var u=n(3),d=n(187).right,h=n(153),g=n(27),m=n(188),T=!m&&g>79&&g<83,S=T||!h("reduceRight");u({target:"Array",proto:!0,forced:S},{reduceRight:function(E){return d(this,E,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(88),g=d([].reverse),m=[1,2];u({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),g(this)}})}),(function(x,I,n){var u=n(3),d=n(88),h=n(89),g=n(20),m=n(60),T=n(63),S=n(12),$=n(147),E=n(33),b=n(148),R=n(76),C=b("slice"),O=E("species"),P=Array,M=Math.max;u({target:"Array",proto:!0,forced:!C},{slice:function(U,B){var z=S(this),j=T(z),G=m(U,j),V=m(B===void 0?j:B,j),X,Y,W;if(d(z)&&(X=z.constructor,h(X)&&(X===P||d(X.prototype))?X=void 0:g(X)&&(X=X[O],X===null&&(X=void 0)),X===P||X===void 0))return R(z,G,V);for(Y=new(X===void 0?P:X)(M(V-G,0)),W=0;G<V;G++,W++)G in z&&$(Y,W,z[G]);return Y.length=W,Y}})}),(function(x,I,n){var u=n(3),d=n(83).some,h=n(153),g=h("some");u({target:"Array",proto:!0,forced:!g},{some:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(30),g=n(39),m=n(63),T=n(151),S=n(68),$=n(7),E=n(195),b=n(153),R=n(196),C=n(197),O=n(27),P=n(198),M=[],F=d(M.sort),U=d(M.push),B=$(function(){M.sort(void 0)}),z=$(function(){M.sort(null)}),j=b("sort"),G=!$(function(){if(O)return O<70;if(!(R&&R>3)){if(C)return!0;if(P)return P<603;var Y="",W,J,tt,k;for(W=65;W<76;W++){switch(J=String.fromCharCode(W),W){case 66:case 69:case 70:case 72:tt=3;break;case 68:case 71:tt=4;break;default:tt=2}for(k=0;k<47;k++)M.push({k:J+k,v:tt})}for(M.sort(function(_,et){return et.v-_.v}),k=0;k<M.length;k++)J=M[k].k.charAt(0),Y.charAt(Y.length-1)!==J&&(Y+=J);return Y!=="DGBEFHACIJK"}}),V=B||!z||!j||!G,X=function(Y){return function(W,J){return J===void 0?-1:W===void 0?1:Y!==void 0?+Y(W,J)||0:S(W)>S(J)?1:-1}};u({target:"Array",proto:!0,forced:V},{sort:function(W){W!==void 0&&h(W);var J=g(this);if(G)return W===void 0?F(J):F(J,W);var tt=[],k=m(J),_,et;for(et=0;et<k;et++)et in J&&U(tt,J[et]);for(E(tt,X(W)),_=m(tt),et=0;et<_;)J[et]=tt[et++];for(;et<k;)T(J,et++);return J}})}),(function(x,I,n){var u=n(76),d=Math.floor,h=function(g,m){var T=g.length;if(T<8)for(var S=1,$,E;S<T;){for(E=S,$=g[S];E&&m(g[E-1],$)>0;)g[E]=g[--E];E!==S++&&(g[E]=$)}else for(var b=d(T/2),R=h(u(g,0,b),m),C=h(u(g,b),m),O=R.length,P=C.length,M=0,F=0;M<O||F<P;)g[M+F]=M<O&&F<P?m(R[M],C[F])<=0?R[M++]:C[F++]:M<O?R[M++]:C[F++];return g};x.exports=h}),(function(x,I,n){var u=n(28),d=u.match(/firefox\/(\d+)/i);x.exports=!!d&&+d[1]}),(function(x,I,n){var u=n(28);x.exports=/MSIE|Trident/.test(u)}),(function(x,I,n){var u=n(28),d=u.match(/AppleWebKit\/(\d+)\./);x.exports=!!d&&+d[1]}),(function(x,I,n){var u=n(200);u("Array")}),(function(x,I,n){var u=n(23),d=n(77),h=n(33),g=n(6),m=h("species");x.exports=function(T){var S=u(T);g&&S&&!S[m]&&d(S,m,{configurable:!0,get:function(){return this}})}}),(function(x,I,n){var u=n(3),d=n(39),h=n(60),g=n(61),m=n(63),T=n(185),S=n(146),$=n(86),E=n(147),b=n(151),R=n(148),C=R("splice"),O=Math.max,P=Math.min;u({target:"Array",proto:!0,forced:!C},{splice:function(F,U){var B=d(this),z=m(B),j=h(F,z),G=arguments.length,V,X,Y,W,J,tt;for(G===0?V=X=0:G===1?(V=0,X=z-j):(V=G-2,X=P(O(g(U),0),z-j)),S(z+V-X),Y=$(B,X),W=0;W<X;W++)J=j+W,J in B&&E(Y,W,B[J]);if(Y.length=X,V<X){for(W=j;W<z-X;W++)J=W+X,tt=W+V,J in B?B[tt]=B[J]:b(B,tt);for(W=z;W>z-X+V;W--)b(B,W-1)}else if(V>X)for(W=z-X;W>j;W--)J=W+X-1,tt=W+V-1,J in B?B[tt]=B[J]:b(B,tt);for(W=0;W<V;W++)B[W+j]=arguments[W+2];return T(B,z-X+V),Y}})}),(function(x,I,n){var u=n(3),d=n(203),h=n(12),g=n(144),m=Array;u({target:"Array",proto:!0},{toReversed:function(){return d(h(this),m)}}),g("toReversed")}),(function(x,I,n){var u=n(63);x.exports=function(d,h){for(var g=u(d),m=new h(g),T=0;T<g;T++)m[T]=d[g-T-1];return m}}),(function(x,I,n){var u=n(3),d=n(14),h=n(30),g=n(12),m=n(205),T=n(206),S=n(144),$=Array,E=d(T("Array","sort"));u({target:"Array",proto:!0},{toSorted:function(R){R!==void 0&&h(R);var C=g(this),O=m($,C);return E(O,R)}}),S("toSorted")}),(function(x,I,n){var u=n(63);x.exports=function(d,h,g){for(var m=0,T=arguments.length>2?g:u(h),S=new d(T);T>m;)S[m]=h[m++];return S}}),(function(x,I,n){var u=n(4);x.exports=function(d,h){var g=u[d],m=g&&g.prototype;return m&&m[h]}}),(function(x,I,n){var u=n(3),d=n(144),h=n(146),g=n(63),m=n(60),T=n(12),S=n(61),$=Array,E=Math.max,b=Math.min;u({target:"Array",proto:!0},{toSpliced:function(C,O){var P=T(this),M=g(P),F=m(C,M),U=arguments.length,B=0,z,j,G,V;for(U===0?z=j=0:U===1?(z=0,j=M-F):(z=U-2,j=b(E(S(O),0),M-F)),G=h(M+z-j),V=$(G);B<F;B++)V[B]=P[B];for(;B<F+z;B++)V[B]=arguments[B-F+2];for(;B<G;B++)V[B]=P[B+j-z];return V}}),d("toSpliced")}),(function(x,I,n){var u=n(144);u("flat")}),(function(x,I,n){var u=n(144);u("flatMap")}),(function(x,I,n){var u=n(3),d=n(39),h=n(63),g=n(185),m=n(151),T=n(146),S=[].unshift(0)!==1,$=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(b){return b instanceof TypeError}},E=S||!$();u({target:"Array",proto:!0,arity:1,forced:E},{unshift:function(R){var C=d(this),O=h(C),P=arguments.length;if(P){T(O+P);for(var M=O;M--;){var F=M+P;M in C?C[F]=C[M]:m(C,F)}for(var U=0;U<P;U++)C[U]=arguments[U]}return g(C,O+P)}})}),(function(x,I,n){var u=n(3),d=n(212),h=n(12),g=Array,m=(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(T){return T!==4}})();u({target:"Array",proto:!0,forced:m},{with:function(T,S){return d(h(this),g,T,S)}})}),(function(x,I,n){var u=n(63),d=n(61),h=RangeError;x.exports=function(g,m,T,S){var $=u(g),E=d(T),b=E<0?$+E:E;if(b>=$||b<0)throw new h("Incorrect index");for(var R=new m($),C=0;C<$;C++)R[C]=C===b?S:g[C];return R}}),(function(x,I,n){var u=n(3),d=n(4),h=n(214),g=n(200),m="ArrayBuffer",T=h[m],S=d[m];u({global:!0,constructor:!0,forced:S!==T},{ArrayBuffer:T}),g(m)}),(function(x,I,n){var u=n(4),d=n(14),h=n(6),g=n(215),m=n(49),T=n(43),S=n(77),$=n(216),E=n(7),b=n(217),R=n(61),C=n(64),O=n(218),P=n(219),M=n(223),F=n(133),U=n(117),B=n(155),z=n(76),j=n(122),G=n(55),V=n(82),X=n(51),Y=m.PROPER,W=m.CONFIGURABLE,J="ArrayBuffer",tt="DataView",k="prototype",_="Wrong length",et="Wrong index",rt=X.getterFor(J),at=X.getterFor(tt),ut=X.set,xt=u[J],pt=xt,gt=pt&&pt[k],It=u[tt],At=It&&It[k],Mt=Object.prototype,ct=u.Array,lt=u.RangeError,Ct=d(B),Nt=d([].reverse),Gt=M.pack,Ot=M.unpack,jt=function(wt){return[wt&255]},re=function(wt){return[wt&255,wt>>8&255]},ie=function(wt){return[wt&255,wt>>8&255,wt>>16&255,wt>>24&255]},ne=function(wt){return wt[3]<<24|wt[2]<<16|wt[1]<<8|wt[0]},ae=function(wt){return Gt(P(wt),23,4)},Ae=function(wt){return Gt(wt,52,8)},Ie=function(wt,Yt,ue){S(wt[k],Yt,{configurable:!0,get:function(){return ue(this)[Yt]}})},pe=function(wt,Yt,ue,Vt){var _t=at(wt),te=O(ue),Zt=!!Vt;if(te+Yt>_t.byteLength)throw new lt(et);var xe=_t.bytes,We=te+_t.byteOffset,ht=z(xe,We,We+Yt);return Zt?ht:Nt(ht)},le=function(wt,Yt,ue,Vt,_t,te){var Zt=at(wt),xe=O(ue),We=Vt(+_t),ht=!!te;if(xe+Yt>Zt.byteLength)throw new lt(et);for(var Lt=Zt.bytes,Bt=xe+Zt.byteOffset,Ut=0;Ut<Yt;Ut++)Lt[Bt+Ut]=We[ht?Ut:Yt-Ut-1]};if(!g)pt=function(Yt){b(this,gt);var ue=O(Yt);ut(this,{type:J,bytes:Ct(ct(ue),0),byteLength:ue}),h||(this.byteLength=ue,this.detached=!1)},gt=pt[k],It=function(Yt,ue,Vt){b(this,At),b(Yt,gt);var _t=rt(Yt),te=_t.byteLength,Zt=R(ue);if(Zt<0||Zt>te)throw new lt("Wrong offset");if(Vt=Vt===void 0?te-Zt:C(Vt),Zt+Vt>te)throw new lt(_);ut(this,{type:tt,buffer:Yt,byteLength:Vt,byteOffset:Zt,bytes:_t.bytes}),h||(this.buffer=Yt,this.byteLength=Vt,this.byteOffset=Zt)},At=It[k],h&&(Ie(pt,"byteLength",rt),Ie(It,"buffer",at),Ie(It,"byteLength",at),Ie(It,"byteOffset",at)),$(At,{getInt8:function(Yt){return pe(this,1,Yt)[0]<<24>>24},getUint8:function(Yt){return pe(this,1,Yt)[0]},getInt16:function(Yt){var ue=pe(this,2,Yt,arguments.length>1?arguments[1]:!1);return(ue[1]<<8|ue[0])<<16>>16},getUint16:function(Yt){var ue=pe(this,2,Yt,arguments.length>1?arguments[1]:!1);return ue[1]<<8|ue[0]},getInt32:function(Yt){return ne(pe(this,4,Yt,arguments.length>1?arguments[1]:!1))},getUint32:function(Yt){return ne(pe(this,4,Yt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Yt){return Ot(pe(this,4,Yt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Yt){return Ot(pe(this,8,Yt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Yt,ue){le(this,1,Yt,jt,ue)},setUint8:function(Yt,ue){le(this,1,Yt,jt,ue)},setInt16:function(Yt,ue){le(this,2,Yt,re,ue,arguments.length>2?arguments[2]:!1)},setUint16:function(Yt,ue){le(this,2,Yt,re,ue,arguments.length>2?arguments[2]:!1)},setInt32:function(Yt,ue){le(this,4,Yt,ie,ue,arguments.length>2?arguments[2]:!1)},setUint32:function(Yt,ue){le(this,4,Yt,ie,ue,arguments.length>2?arguments[2]:!1)},setFloat32:function(Yt,ue){le(this,4,Yt,ae,ue,arguments.length>2?arguments[2]:!1)},setFloat64:function(Yt,ue){le(this,8,Yt,Ae,ue,arguments.length>2?arguments[2]:!1)}});else{var be=Y&&xt.name!==J;!E(function(){xt(1)})||!E(function(){new xt(-1)})||E(function(){return new xt,new xt(1.5),new xt(NaN),xt.length!==1||be&&!W})?(pt=function(Yt){return b(this,gt),j(new xt(O(Yt)),this,pt)},pt[k]=gt,gt.constructor=pt,G(pt,xt)):be&&W&&T(xt,"name",J),U&&F(At)!==Mt&&U(At,Mt);var Se=new It(new pt(2)),me=d(At.setInt8);Se.setInt8(0,2147483648),Se.setInt8(1,2147483649),(Se.getInt8(0)||!Se.getInt8(1))&&$(At,{setInt8:function(Yt,ue){me(this,Yt,ue<<24>>24)},setUint8:function(Yt,ue){me(this,Yt,ue<<24>>24)}},{unsafe:!0})}V(pt,J),V(It,tt),x.exports={ArrayBuffer:pt,DataView:It}}),(function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"}),(function(x,I,n){var u=n(47);x.exports=function(d,h,g){for(var m in h)u(d,m,h[m],g);return d}}),(function(x,I,n){var u=n(24),d=TypeError;x.exports=function(h,g){if(u(g,h))return h;throw new d("Incorrect invocation")}}),(function(x,I,n){var u=n(61),d=n(64),h=RangeError;x.exports=function(g){if(g===void 0)return 0;var m=u(g),T=d(m);if(m!==T)throw new h("Wrong length or index");return T}}),(function(x,I,n){var u=n(220),d=11920928955078125e-23,h=34028234663852886e22,g=11754943508222875e-54;x.exports=Math.fround||function(T){return u(T,d,h,g)}}),(function(x,I,n){var u=n(221),d=n(222),h=Math.abs,g=2220446049250313e-31;x.exports=function(m,T,S,$){var E=+m,b=h(E),R=u(E);if(b<$)return R*d(b/$/T)*$*T;var C=(1+T/g)*b,O=C-(C-b);return O>S||O!==O?R*(1/0):R*O}}),(function(x){x.exports=Math.sign||function(n){var u=+n;return u===0||u!==u?u:u<0?-1:1}}),(function(x){var I=2220446049250313e-31,n=1/I;x.exports=function(u){return u+n-n}}),(function(x){var I=Array,n=Math.abs,u=Math.pow,d=Math.floor,h=Math.log,g=Math.LN2,m=function(S,$,E){var b=I(E),R=E*8-$-1,C=(1<<R)-1,O=C>>1,P=$===23?u(2,-24)-u(2,-77):0,M=S<0||S===0&&1/S<0?1:0,F=0,U,B,z;for(S=n(S),S!==S||S===1/0?(B=S!==S?1:0,U=C):(U=d(h(S)/g),z=u(2,-U),S*z<1&&(U--,z*=2),U+O>=1?S+=P/z:S+=P*u(2,1-O),S*z>=2&&(U++,z/=2),U+O>=C?(B=0,U=C):U+O>=1?(B=(S*z-1)*u(2,$),U+=O):(B=S*u(2,O-1)*u(2,$),U=0));$>=8;)b[F++]=B&255,B/=256,$-=8;for(U=U<<$|B,R+=$;R>0;)b[F++]=U&255,U/=256,R-=8;return b[F-1]|=M*128,b},T=function(S,$){var E=S.length,b=E*8-$-1,R=(1<<b)-1,C=R>>1,O=b-7,P=E-1,M=S[P--],F=M&127,U;for(M>>=7;O>0;)F=F*256+S[P--],O-=8;for(U=F&(1<<-O)-1,F>>=-O,O+=$;O>0;)U=U*256+S[P--],O-=8;if(F===0)F=1-C;else{if(F===R)return U?NaN:M?-1/0:1/0;U+=u(2,$),F-=C}return(M?-1:1)*U*u(2,F-$)};x.exports={pack:m,unpack:T}}),(function(x,I,n){var u=n(3),d=n(225),h=d.NATIVE_ARRAY_BUFFER_VIEWS;u({target:"ArrayBuffer",stat:!0,forced:!h},{isView:d.isView})}),(function(x,I,n){var u=n(215),d=n(6),h=n(4),g=n(21),m=n(20),T=n(38),S=n(69),$=n(31),E=n(43),b=n(47),R=n(77),C=n(24),O=n(133),P=n(117),M=n(33),F=n(40),U=n(51),B=U.enforce,z=U.get,j=h.Int8Array,G=j&&j.prototype,V=h.Uint8ClampedArray,X=V&&V.prototype,Y=j&&O(j),W=G&&O(G),J=Object.prototype,tt=h.TypeError,k=M("toStringTag"),_=F("TYPED_ARRAY_TAG"),et="TypedArrayConstructor",rt=u&&!!P&&S(h.opera)!=="Opera",at=!1,ut,xt,pt,gt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},It={BigInt64Array:8,BigUint64Array:8},At=function(jt){if(!m(jt))return!1;var re=S(jt);return re==="DataView"||T(gt,re)||T(It,re)},Mt=function(Ot){var jt=O(Ot);if(m(jt)){var re=z(jt);return re&&T(re,et)?re[et]:Mt(jt)}},ct=function(Ot){if(!m(Ot))return!1;var jt=S(Ot);return T(gt,jt)||T(It,jt)},lt=function(Ot){if(ct(Ot))return Ot;throw new tt("Target is not a typed array")},Ct=function(Ot){if(g(Ot)&&(!P||C(Y,Ot)))return Ot;throw new tt($(Ot)+" is not a typed array constructor")},Nt=function(Ot,jt,re,ie){if(d){if(re)for(var ne in gt){var ae=h[ne];if(ae&&T(ae.prototype,Ot))try{delete ae.prototype[Ot]}catch(Ae){try{ae.prototype[Ot]=jt}catch(Ie){}}}(!W[Ot]||re)&&b(W,Ot,re?jt:rt&&G[Ot]||jt,ie)}},Gt=function(Ot,jt,re){var ie,ne;if(d){if(P){if(re){for(ie in gt)if(ne=h[ie],ne&&T(ne,Ot))try{delete ne[Ot]}catch(ae){}}if(!Y[Ot]||re)try{return b(Y,Ot,re?jt:rt&&Y[Ot]||jt)}catch(ae){}else return}for(ie in gt)ne=h[ie],ne&&(!ne[Ot]||re)&&b(ne,Ot,jt)}};for(ut in gt)xt=h[ut],pt=xt&&xt.prototype,pt?B(pt)[et]=xt:rt=!1;for(ut in It)xt=h[ut],pt=xt&&xt.prototype,pt&&(B(pt)[et]=xt);if((!rt||!g(Y)||Y===Function.prototype)&&(Y=function(){throw new tt("Incorrect invocation")},rt))for(ut in gt)h[ut]&&P(h[ut],Y);if((!rt||!W||W===J)&&(W=Y.prototype,rt))for(ut in gt)h[ut]&&P(h[ut].prototype,W);if(rt&&O(X)!==W&&P(X,W),d&&!T(W,k)){at=!0,R(W,k,{configurable:!0,get:function(){return m(this)?this[_]:void 0}});for(ut in gt)h[ut]&&E(h[ut],_,ut)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:rt,TYPED_ARRAY_TAG:at&&_,aTypedArray:lt,aTypedArrayConstructor:Ct,exportTypedArrayMethod:Nt,exportTypedArrayStaticMethod:Gt,getTypedArrayConstructor:Mt,isView:At,isTypedArray:ct,TypedArray:Y,TypedArrayPrototype:W}}),(function(x,I,n){var u=n(3),d=n(85),h=n(7),g=n(214),m=n(46),T=n(60),S=n(64),$=g.ArrayBuffer,E=g.DataView,b=E.prototype,R=d($.prototype.slice),C=d(b.getUint8),O=d(b.setUint8),P=h(function(){return!new $(2).slice(1,void 0).byteLength});u({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:P},{slice:function(F,U){if(R&&U===void 0)return R(m(this),F);for(var B=m(this).byteLength,z=T(F,B),j=T(U===void 0?B:U,B),G=new $(S(j-z)),V=new E(this),X=new E(G),Y=0;z<j;)O(X,Y++,C(V,z++));return G}})}),(function(x,I,n){n(228)}),(function(x,I,n){var u=n(3),d=n(214),h=n(215);u({global:!0,constructor:!0,forced:!h},{DataView:d.DataView})}),(function(x,I,n){var u=n(3),d=n(14),h=Math.pow,g=31,m=1023,T=h(2,-24),S=.0009765625,$=function(b){var R=b>>>15,C=b>>>10&g,O=b&m;return C===g?O===0?R===0?1/0:-1/0:NaN:C===0?O*(R===0?T:-T):h(2,C-15)*(R===0?1+O*S:-1-O*S)},E=d(DataView.prototype.getUint16);u({target:"DataView",proto:!0},{getFloat16:function(R){return $(E(this,R,arguments.length>1?arguments[1]:!1))}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(231),g=n(218),m=n(232),T=n(222),S=Math.pow,$=65520,E=61005353927612305e-21,b=16777216,R=1024,C=function(P){if(P!==P)return 32256;if(P===0)return(1/P===-1/0)<<15;var M=P<0;if(M&&(P=-P),P>=$)return M<<15|31744;if(P<E)return M<<15|T(P*b);var F=m(P)|0;if(F===-15)return M<<15|R;var U=T((P*S(2,-F)-1)*R);return U===R?M<<15|F+16<<10:M<<15|F+15<<10|U},O=d(DataView.prototype.setUint16);u({target:"DataView",proto:!0},{setFloat16:function(M,F){O(h(this),g(M),C(+F),arguments.length>2?arguments[2]:!1)}})}),(function(x,I,n){var u=n(69),d=TypeError;x.exports=function(h){if(u(h)==="DataView")return h;throw new d("Argument is not a DataView")}}),(function(x){var I=Math.log,n=Math.LN2;x.exports=Math.log2||function(d){return I(d)/n}}),(function(x,I,n){var u=n(6),d=n(77),h=n(234),g=ArrayBuffer.prototype;u&&!("detached"in g)&&d(g,"detached",{configurable:!0,get:function(){return h(this)}})}),(function(x,I,n){var u=n(4),d=n(215),h=n(235),g=u.DataView;x.exports=function(m){if(!d||h(m)!==0)return!1;try{return new g(m),!1}catch(T){return!0}}}),(function(x,I,n){var u=n(4),d=n(118),h=n(15),g=u.ArrayBuffer,m=u.TypeError;x.exports=g&&d(g.prototype,"byteLength","get")||function(T){if(h(T)!=="ArrayBuffer")throw new m("ArrayBuffer expected");return T.byteLength}}),(function(x,I,n){var u=n(3),d=n(237);d&&u({target:"ArrayBuffer",proto:!0},{transfer:function(){return d(this,arguments.length?arguments[0]:void 0,!0)}})}),(function(x,I,n){var u=n(4),d=n(14),h=n(118),g=n(218),m=n(238),T=n(235),S=n(239),$=n(241),E=u.structuredClone,b=u.ArrayBuffer,R=u.DataView,C=Math.min,O=b.prototype,P=R.prototype,M=d(O.slice),F=h(O,"resizable","get"),U=h(O,"maxByteLength","get"),B=d(P.getInt8),z=d(P.setInt8);x.exports=($||S)&&function(j,G,V){var X=T(j),Y=G===void 0?X:g(G),W=!F||!F(j),J;if(m(j),$&&(j=E(j,{transfer:[j]}),X===Y&&(V||W)))return j;if(X>=Y&&(!V||W))J=M(j,0,Y);else{var tt=V&&!W&&U?{maxByteLength:U(j)}:void 0;J=new b(Y,tt);for(var k=new R(j),_=new R(J),et=C(Y,X),rt=0;rt<et;rt++)z(_,rt,B(k,rt))}return $||S(j),J}}),(function(x,I,n){var u=n(234),d=TypeError;x.exports=function(h){if(u(h))throw new d("ArrayBuffer is detached");return h}}),(function(x,I,n){var u=n(4),d=n(240),h=n(241),g=u.structuredClone,m=u.ArrayBuffer,T=u.MessageChannel,S=!1,$,E,b,R;if(h)S=function(C){g(C,{transfer:[C]})};else if(m)try{T||($=d("worker_threads"),$&&(T=$.MessageChannel)),T&&(E=new T,b=new m(2),R=function(C){E.port1.postMessage(null,[C])},b.byteLength===2&&(R(b),b.byteLength===0&&(S=R)))}catch(C){}x.exports=S}),(function(x,I,n){var u=n(4),d=n(188);x.exports=function(h){if(d){try{return u.process.getBuiltinModule(h)}catch(g){}try{return Function('return require("'+h+'")')()}catch(g){}}}}),(function(x,I,n){var u=n(4),d=n(7),h=n(27),g=n(189),m=u.structuredClone;x.exports=!!m&&!d(function(){if(g==="DENO"&&h>92||g==="NODE"&&h>94||g==="BROWSER"&&h>97)return!1;var T=new ArrayBuffer(8),S=m(T,{transfer:[T]});return T.byteLength!==0||S.byteLength!==8})}),(function(x,I,n){var u=n(3),d=n(237);d&&u({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return d(this,arguments.length?arguments[0]:void 0,!1)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(7),g=h(function(){return new Date(16e11).getYear()!==120}),m=d(Date.prototype.getFullYear);u({target:"Date",proto:!0,forced:g},{getYear:function(){return m(this)-1900}})}),(function(x,I,n){var u=n(3),d=n(14),h=Date,g=d(h.prototype.getTime);u({target:"Date",stat:!0},{now:function(){return g(new h)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(61),g=Date.prototype,m=d(g.getTime),T=d(g.setFullYear);u({target:"Date",proto:!0},{setYear:function($){m(this);var E=h($),b=E>=0&&E<=99?E+1900:E;return T(this,b)}})}),(function(x,I,n){var u=n(3);u({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})}),(function(x,I,n){var u=n(3),d=n(248);u({target:"Date",proto:!0,forced:Date.prototype.toISOString!==d},{toISOString:d})}),(function(x,I,n){var u=n(14),d=n(7),h=n(249).start,g=RangeError,m=isFinite,T=Math.abs,S=Date.prototype,$=S.toISOString,E=u(S.getTime),b=u(S.getUTCDate),R=u(S.getUTCFullYear),C=u(S.getUTCHours),O=u(S.getUTCMilliseconds),P=u(S.getUTCMinutes),M=u(S.getUTCMonth),F=u(S.getUTCSeconds);x.exports=d(function(){return $.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!d(function(){$.call(new Date(NaN))})?function(){if(!m(E(this)))throw new g("Invalid time value");var B=this,z=R(B),j=O(B),G=z<0?"-":z>9999?"+":"";return G+h(T(z),G?6:4,0)+"-"+h(M(B)+1,2,0)+"-"+h(b(B),2,0)+"T"+h(C(B),2,0)+":"+h(P(B),2,0)+":"+h(F(B),2,0)+"."+h(j,3,0)+"Z"}:$}),(function(x,I,n){var u=n(14),d=n(64),h=n(68),g=n(250),m=n(16),T=u(g),S=u("".slice),$=Math.ceil,E=function(b){return function(R,C,O){var P=h(m(R)),M=d(C),F=P.length,U=O===void 0?" ":h(O),B,z;return M<=F||U===""?P:(B=M-F,z=T(U,$(B/U.length)),z.length>B&&(z=S(z,0,B)),b?P+z:z+P)}};x.exports={start:E(!1),end:E(!0)}}),(function(x,I,n){var u=n(61),d=n(68),h=n(16),g=RangeError;x.exports=function(T){var S=d(h(this)),$="",E=u(T);if(E<0||E===1/0)throw new g("Wrong number of repetitions");for(;E>0;(E>>>=1)&&(S+=S))E&1&&($+=S);return $}}),(function(x,I,n){var u=n(3),d=n(7),h=n(39),g=n(19),m=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:m},{toJSON:function(S){var $=h(this),E=g($,"number");return typeof E=="number"&&!isFinite(E)?null:$.toISOString()}})}),(function(x,I,n){var u=n(38),d=n(47),h=n(253),g=n(33),m=g("toPrimitive"),T=Date.prototype;u(T,m)||d(T,m,h)}),(function(x,I,n){var u=n(46),d=n(32),h=TypeError;x.exports=function(g){if(u(this),g==="string"||g==="default")g="string";else if(g!=="number")throw new h("Incorrect hint");return d(this,g)}}),(function(x,I,n){var u=n(14),d=n(47),h=Date.prototype,g="Invalid Date",m="toString",T=u(h[m]),S=u(h.getTime);String(new Date(NaN))!==g&&d(h,m,function(){var E=S(this);return E===E?T(this):g})}),(function(x,I,n){var u=n(3),d=n(6),h=n(23),g=n(30),m=n(217),T=n(47),S=n(216),$=n(77),E=n(33),b=n(51),R=n(256),C=h("SuppressedError"),O=ReferenceError,P=E("dispose"),M=E("toStringTag"),F="DisposableStack",U=b.set,B=b.getterFor(F),z="sync-dispose",j="disposed",G="pending",V=function(W){var J=B(W);if(J.state===j)throw new O(F+" already disposed");return J},X=function(){U(m(this,Y),{type:F,state:G,stack:[]}),d||(this.disposed=!1)},Y=X.prototype;S(Y,{dispose:function(){var J=B(this);if(J.state!==j){J.state=j,d||(this.disposed=!0);for(var tt=J.stack,k=tt.length,_=!1,et;k;){var rt=tt[--k];tt[k]=null;try{rt()}catch(at){_?et=new C(at,et):(_=!0,et=at)}}if(J.stack=null,_)throw et}},use:function(J){return R(V(this),J,z),J},adopt:function(J,tt){var k=V(this);return g(tt),R(k,void 0,z,function(){tt(J)}),J},defer:function(J){var tt=V(this);g(J),R(tt,void 0,z,J)},move:function(){var J=V(this),tt=new X;return B(tt).stack=J.stack,J.stack=[],J.state=j,d||(this.disposed=!0),tt}}),d&&$(Y,"disposed",{configurable:!0,get:function(){return B(this).state===j}}),T(Y,P,Y.dispose,{name:"dispose"}),T(Y,M,F,{nonWritable:!0}),u({global:!0,constructor:!0},{DisposableStack:X})}),(function(x,I,n){var u=n(23),d=n(8),h=n(14),g=n(84),m=n(46),T=n(30),S=n(17),$=n(29),E=n(33),b=E("asyncDispose"),R=E("dispose"),C=h([].push),O=function(M,F){if(F==="async-dispose"){var U=$(M,b);return U!==void 0||(U=$(M,R),U===void 0)?U:function(){var B=this,z=u("Promise");return new z(function(j){d(U,B),j(void 0)})}}return $(M,R)},P=function(M,F,U){return arguments.length<3&&!S(M)&&(U=T(O(m(M),F))),U===void 0?function(){}:g(U,M)};x.exports=function(M,F,U,B){var z;if(arguments.length<4){if(S(F)&&U==="sync-dispose")return;z=P(F,U)}else z=P(void 0,U,B);C(M.stack,z)}}),(function(x,I,n){var u=n(3),d=n(14),h=n(68),g=d("".charAt),m=d("".charCodeAt),T=d(/./.exec),S=d(1.1.toString),$=d("".toUpperCase),E=/[\w*+\-./@]/,b=function(R,C){for(var O=S(R,16);O.length<C;)O="0"+O;return O};u({global:!0},{escape:function(C){for(var O=h(C),P="",M=O.length,F=0,U,B;F<M;)U=g(O,F++),T(E,U)?P+=U:(B=m(U,0),B<256?P+="%"+b(B,2):P+="%u"+$(b(B,4)));return P}})}),(function(x,I,n){var u=n(3),d=n(259);u({target:"Function",proto:!0,forced:Function.bind!==d},{bind:d})}),(function(x,I,n){var u=n(14),d=n(30),h=n(20),g=n(38),m=n(76),T=n(9),S=Function,$=u([].concat),E=u([].join),b={},R=function(C,O,P){if(!g(b,O)){for(var M=[],F=0;F<O;F++)M[F]="a["+F+"]";b[O]=S("C,a","return new C("+E(M,",")+")")}return b[O](C,P)};x.exports=T?S.bind:function(O){var P=d(this),M=P.prototype,F=m(arguments,1),U=function(){var z=$(F,m(arguments));return this instanceof U?R(P,z.length,z):P.apply(O,z)};return h(M)&&(U.prototype=M),U}}),(function(x,I,n){var u=n(21),d=n(20),h=n(44),g=n(24),m=n(33),T=n(48),S=m("hasInstance"),$=Function.prototype;S in $||h.f($,S,{value:T(function(E){if(!u(this)||!d(E))return!1;var b=this.prototype;return d(b)?g(b,E):E instanceof this},S)})}),(function(x,I,n){var u=n(6),d=n(49).EXISTS,h=n(14),g=n(77),m=Function.prototype,T=h(m.toString),S=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$=h(S.exec),E="name";u&&!d&&g(m,E,{configurable:!0,get:function(){try{return $(S,T(this))[1]}catch(b){return""}}})}),(function(x,I,n){var u=n(3),d=n(4);u({global:!0,forced:d.globalThis!==d},{globalThis:d})}),(function(x,I,n){var u=n(3),d=n(4),h=n(217),g=n(46),m=n(21),T=n(133),S=n(77),$=n(147),E=n(7),b=n(38),R=n(33),C=n(177).IteratorPrototype,O=n(6),P=n(36),M="constructor",F="Iterator",U=R("toStringTag"),B=TypeError,z=d[F],j=P||!m(z)||z.prototype!==C||!E(function(){z({})}),G=function(){if(h(this,C),T(this)===C)throw new B("Abstract class Iterator not directly constructable")},V=function(X,Y){O?S(C,X,{configurable:!0,get:function(){return Y},set:function(W){if(g(this),this===C)throw new B("You can't redefine this property");b(this,X)?this[X]=W:$(this,X,W)}}):C[X]=Y};b(C,U)||V(U,F),(j||!b(C,M)||C[M]===Object)&&V(M,G),G.prototype=C,u({global:!0,constructor:!0,forced:j},{Iterator:G})}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(46),m=n(139),T=n(265),S=Array,$=T(function(){for(;;){var E=this.iterator;if(!E){var b=this.nextIterableIndex++,R=this.iterables;if(b>=R.length){this.done=!0;return}var C=R[b];this.iterables[b]=null,E=this.iterator=d(C.method,C.iterable),this.next=E.next}var O=g(d(this.next,E));if(O.done){this.iterator=null,this.next=null;continue}return O.value}});u({target:"Iterator",stat:!0},{concat:function(){for(var b=arguments.length,R=S(b),C=0;C<b;C++){var O=g(arguments[C]);R[C]={iterable:O,method:h(m(O))}}return new $({iterables:R,nextIterableIndex:0,iterator:null,next:null})}})}),(function(x,I,n){var u=n(8),d=n(71),h=n(43),g=n(216),m=n(33),T=n(51),S=n(29),$=n(177).IteratorPrototype,E=n(178),b=n(140),R=n(266),C=m("toStringTag"),O="IteratorHelper",P="WrapForValidIterator",M="normal",F="throw",U=T.set,B=function(G){var V=T.getterFor(G?P:O);return g(d($),{next:function(){var Y=V(this);if(G)return Y.nextHandler();if(Y.done)return E(void 0,!0);try{var W=Y.nextHandler();return Y.returnHandlerResult?W:E(W,Y.done)}catch(J){throw Y.done=!0,J}},return:function(){var X=V(this),Y=X.iterator;if(X.done=!0,G){var W=S(Y,"return");return W?u(W,Y):E(void 0,!0)}if(X.inner)try{b(X.inner.iterator,M)}catch(J){return b(Y,F,J)}if(X.openIters)try{R(X.openIters,M)}catch(J){return b(Y,F,J)}return Y&&b(Y,M),E(void 0,!0)}})},z=B(!0),j=B(!1);h(j,C,"Iterator Helper"),x.exports=function(G,V,X){var Y=function(J,tt){tt?(tt.iterator=J.iterator,tt.next=J.next):tt=J,tt.type=V?P:O,tt.returnHandlerResult=!!X,tt.nextHandler=G,tt.counter=0,tt.done=!1,U(this,tt)};return Y.prototype=V?z:j,Y}}),(function(x,I,n){var u=n(140);x.exports=function(d,h,g){for(var m=d.length-1;m>=0;m--)if(d[m]!==void 0)try{g=u(d[m].iterator,h,g)}catch(T){h="throw",g=T}if(h==="throw")throw g;return g}}),(function(x,I,n){var u=n(8),d=n(47),h=n(29),g=n(38),m=n(33),T=n(177).IteratorPrototype,S=m("dispose");g(T,S)||d(T,S,function(){var $=h(this,"return");$&&u($,this)})}),(function(x,I,n){var u=n(3),d=n(8),h=n(46),g=n(269),m=n(270),T=n(271),S=n(140),$=n(265),E=n(272),b=n(273),R=n(36),C=!R&&!E("drop",0),O=!R&&!C&&b("drop",RangeError),P=R||C||O,M=$(function(){for(var F=this.iterator,U=this.next,B,z;this.remaining;)if(this.remaining--,B=h(d(U,F)),z=this.done=!!B.done,z)return;if(B=h(d(U,F)),z=this.done=!!B.done,!z)return B.value});u({target:"Iterator",proto:!0,real:!0,forced:P},{drop:function(U){h(this);var B;try{B=T(m(+U))}catch(z){S(this,"throw",z)}return O?d(O,this,B):new M(g(this),{remaining:B})}})}),(function(x){x.exports=function(I){return{iterator:I,next:I.next,done:!1}}}),(function(x){var I=RangeError;x.exports=function(n){if(n===n)return n;throw new I("NaN is not allowed")}}),(function(x,I,n){var u=n(61),d=RangeError;x.exports=function(h){var g=u(h);if(g<0)throw new d("The argument can't be less than 0");return g}}),(function(x){x.exports=function(I,n){var u=typeof Iterator=="function"&&Iterator.prototype[I];if(u)try{u.call({next:null},n).next()}catch(d){return!0}}}),(function(x,I,n){var u=n(4);x.exports=function(d,h){var g=u.Iterator,m=g&&g.prototype,T=m&&m[d],S=!1;if(T)try{T.call({next:function(){return{done:!0}},return:function(){S=!0}},-1)}catch($){$ instanceof h||(S=!1)}if(!S)return T}}),(function(x,I,n){var u=n(3),d=n(8),h=n(135),g=n(30),m=n(46),T=n(269),S=n(140),$=n(273),E=$("every",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{every:function(R){m(this);try{g(R)}catch(P){S(this,"throw",P)}if(E)return d(E,this,R);var C=T(this),O=0;return!h(C,function(P,M){if(!R(P,O++))return M()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(46),m=n(269),T=n(265),S=n(169),$=n(36),E=n(140),b=n(272),R=n(273),C=!$&&!b("filter",function(){}),O=!$&&!C&&R("filter",TypeError),P=$||C||O,M=T(function(){for(var F=this.iterator,U=this.predicate,B=this.next,z,j,G;;){if(z=g(d(B,F)),j=this.done=!!z.done,j)return;if(G=z.value,S(F,U,[G,this.counter++],!0))return G}});u({target:"Iterator",proto:!0,real:!0,forced:P},{filter:function(U){g(this);try{h(U)}catch(B){E(this,"throw",B)}return O?d(O,this,U):new M(m(this),{predicate:U})}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(135),g=n(30),m=n(46),T=n(269),S=n(140),$=n(273),E=$("find",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{find:function(R){m(this);try{g(R)}catch(P){S(this,"throw",P)}if(E)return d(E,this,R);var C=T(this),O=0;return h(C,function(P,M){if(R(P,O++))return M(P)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(46),m=n(269),T=n(278),S=n(265),$=n(140),E=n(36),b=n(272),R=n(273),C=!E&&!b("flatMap",function(){}),O=!E&&!C&&R("flatMap",TypeError),P=E||C||O,M=S(function(){for(var F=this.iterator,U=this.mapper,B,z;;){if(z=this.inner)try{if(B=g(d(z.next,z.iterator)),!B.done)return B.value;this.inner=null}catch(j){$(F,"throw",j)}if(B=g(d(this.next,F)),this.done=!!B.done)return;try{this.inner=T(U(B.value,this.counter++),!1)}catch(j){$(F,"throw",j)}}});u({target:"Iterator",proto:!0,real:!0,forced:P},{flatMap:function(U){g(this);try{h(U)}catch(B){$(this,"throw",B)}return O?d(O,this,U):new M(m(this),{mapper:U,inner:null})}})}),(function(x,I,n){var u=n(8),d=n(46),h=n(269),g=n(139);x.exports=function(m,T){(!T||typeof m!="string")&&d(m);var S=g(m);return h(d(S!==void 0?u(S,m):m))}}),(function(x,I,n){var u=n(3),d=n(8),h=n(135),g=n(30),m=n(46),T=n(269),S=n(140),$=n(273),E=$("forEach",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{forEach:function(R){m(this);try{g(R)}catch(P){S(this,"throw",P)}if(E)return d(E,this,R);var C=T(this),O=0;h(C,function(P){R(P,O++)},{IS_RECORD:!0})}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(39),g=n(24),m=n(177).IteratorPrototype,T=n(265),S=n(278),$=n(36),E=$||(function(){try{Iterator.from({return:null}).return()}catch(R){return!0}})(),b=T(function(){return d(this.next,this.iterator)},!0);u({target:"Iterator",stat:!0,forced:E},{from:function(C){var O=S(typeof C=="string"?h(C):C,!0);return g(m,O.iterator)?O.iterator:new b(O)}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(46),m=n(269),T=n(265),S=n(169),$=n(140),E=n(272),b=n(273),R=n(36),C=!R&&!E("map",function(){}),O=!R&&!C&&b("map",TypeError),P=R||C||O,M=T(function(){var F=this.iterator,U=g(d(this.next,F)),B=this.done=!!U.done;if(!B)return S(F,this.mapper,[U.value,this.counter++],!0)});u({target:"Iterator",proto:!0,real:!0,forced:P},{map:function(U){g(this);try{h(U)}catch(B){$(this,"throw",B)}return O?d(O,this,U):new M(m(this),{mapper:U})}})}),(function(x,I,n){var u=n(3),d=n(135),h=n(30),g=n(46),m=n(269),T=n(140),S=n(273),$=n(94),E=n(7),b=TypeError,R=E(function(){[].keys().reduce(function(){},void 0)}),C=!R&&S("reduce",b);u({target:"Iterator",proto:!0,real:!0,forced:R||C},{reduce:function(P){g(this);try{h(P)}catch(z){T(this,"throw",z)}var M=arguments.length<2,F=M?void 0:arguments[1];if(C)return $(C,this,M?[P]:[P,F]);var U=m(this),B=0;if(d(U,function(z){M?(M=!1,F=z):F=P(F,z,B),B++},{IS_RECORD:!0}),M)throw new b("Reduce of empty iterator with no initial value");return F}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(135),g=n(30),m=n(46),T=n(269),S=n(140),$=n(273),E=$("some",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{some:function(R){m(this);try{g(R)}catch(P){S(this,"throw",P)}if(E)return d(E,this,R);var C=T(this),O=0;return h(C,function(P,M){if(R(P,O++))return M()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(46),g=n(269),m=n(270),T=n(271),S=n(265),$=n(140),E=n(273),b=n(36),R=!b&&E("take",RangeError),C=S(function(){var O=this.iterator;if(!this.remaining--)return this.done=!0,$(O,"normal",void 0);var P=h(d(this.next,O)),M=this.done=!!P.done;if(!M)return P.value});u({target:"Iterator",proto:!0,real:!0,forced:b||R},{take:function(P){h(this);var M;try{M=T(m(+P))}catch(F){$(this,"throw",F)}return R?d(R,this,M):new C(g(this),{remaining:M})}})}),(function(x,I,n){var u=n(3),d=n(46),h=n(135),g=n(269),m=[].push;u({target:"Iterator",proto:!0,real:!0},{toArray:function(){var S=[];return h(g(d(this)),m,{that:S,IS_RECORD:!0}),S}})}),(function(x,I,n){var u=n(3),d=n(97),h=n(95);u({target:"JSON",stat:!0,forced:!d},{isRawJSON:h})}),(function(x,I,n){var u=n(3),d=n(6),h=n(4),g=n(23),m=n(14),T=n(8),S=n(21),$=n(20),E=n(88),b=n(38),R=n(68),C=n(63),O=n(147),P=n(7),M=n(96),F=n(26),U=h.JSON,B=h.Number,z=h.SyntaxError,j=U&&U.parse,G=g("Object","keys"),V=Object.getOwnPropertyDescriptor,X=m("".charAt),Y=m("".slice),W=m(/./.exec),J=m([].push),tt=/^\d$/,k=/^[1-9]$/,_=/^[\d-]$/,et=/^[\t\n\r ]$/,rt=0,at=1,ut=function(ct,lt){ct=R(ct);var Ct=new It(ct,0,""),Nt=Ct.parse(),Gt=Nt.value,Ot=Ct.skip(et,Nt.end);if(Ot<ct.length)throw new z('Unexpected extra character: "'+X(ct,Ot)+'" after the parsed data at: '+Ot);return S(lt)?xt({"":Gt},"",lt,Nt):Gt},xt=function(ct,lt,Ct,Nt){var Gt=ct[lt],Ot=Nt&&Gt===Nt.value,jt=Ot&&typeof Nt.source=="string"?{source:Nt.source}:{},re,ie,ne,ae,Ae;if($(Gt)){var Ie=E(Gt),pe=Ot?Nt.nodes:Ie?[]:{};if(Ie)for(re=pe.length,ne=C(Gt),ae=0;ae<ne;ae++)pt(Gt,ae,xt(Gt,""+ae,Ct,ae<re?pe[ae]:void 0));else for(ie=G(Gt),ne=C(ie),ae=0;ae<ne;ae++)Ae=ie[ae],pt(Gt,Ae,xt(Gt,Ae,Ct,b(pe,Ae)?pe[Ae]:void 0))}return T(Ct,ct,lt,Gt,jt)},pt=function(ct,lt,Ct){if(d){var Nt=V(ct,lt);if(Nt&&!Nt.configurable)return}Ct===void 0?delete ct[lt]:O(ct,lt,Ct)},gt=function(ct,lt,Ct,Nt){this.value=ct,this.end=lt,this.source=Ct,this.nodes=Nt},It=function(ct,lt){this.source=ct,this.index=lt};It.prototype={fork:function(ct){return new It(this.source,ct)},parse:function(){var ct=this.source,lt=this.skip(et,this.index),Ct=this.fork(lt),Nt=X(ct,lt);if(W(_,Nt))return Ct.number();switch(Nt){case"{":return Ct.object();case"[":return Ct.array();case'"':return Ct.string();case"t":return Ct.keyword(!0);case"f":return Ct.keyword(!1);case"n":return Ct.keyword(null)}throw new z('Unexpected character: "'+Nt+'" at: '+lt)},node:function(ct,lt,Ct,Nt,Gt){return new gt(lt,Nt,ct?null:Y(this.source,Ct,Nt),Gt)},object:function(){for(var ct=this.source,lt=this.index+1,Ct=!1,Nt={},Gt={};lt<ct.length;){if(lt=this.until(['"',"}"],lt),X(ct,lt)==="}"&&!Ct){lt++;break}var Ot=this.fork(lt).string(),jt=Ot.value;lt=Ot.end,lt=this.until([":"],lt)+1,lt=this.skip(et,lt),Ot=this.fork(lt).parse(),O(Gt,jt,Ot),O(Nt,jt,Ot.value),lt=this.until([",","}"],Ot.end);var re=X(ct,lt);if(re===",")Ct=!0,lt++;else if(re==="}"){lt++;break}}return this.node(at,Nt,this.index,lt,Gt)},array:function(){for(var ct=this.source,lt=this.index+1,Ct=!1,Nt=[],Gt=[];lt<ct.length;){if(lt=this.skip(et,lt),X(ct,lt)==="]"&&!Ct){lt++;break}var Ot=this.fork(lt).parse();if(J(Gt,Ot),J(Nt,Ot.value),lt=this.until([",","]"],Ot.end),X(ct,lt)===",")Ct=!0,lt++;else if(X(ct,lt)==="]"){lt++;break}}return this.node(at,Nt,this.index,lt,Gt)},string:function(){var ct=this.index,lt=M(this.source,this.index+1);return this.node(rt,lt.value,ct,lt.end)},number:function(){var ct=this.source,lt=this.index,Ct=lt;if(X(ct,Ct)==="-"&&Ct++,X(ct,Ct)==="0")Ct++;else if(W(k,X(ct,Ct)))Ct=this.skip(tt,Ct+1);else throw new z("Failed to parse number at: "+Ct);if(X(ct,Ct)==="."&&(Ct=this.skip(tt,Ct+1)),X(ct,Ct)==="e"||X(ct,Ct)==="E"){Ct++,(X(ct,Ct)==="+"||X(ct,Ct)==="-")&&Ct++;var Nt=Ct;if(Ct=this.skip(tt,Ct),Nt===Ct)throw new z("Failed to parse number's exponent value at: "+Ct)}return this.node(rt,B(Y(ct,lt,Ct)),lt,Ct)},keyword:function(ct){var lt=""+ct,Ct=this.index,Nt=Ct+lt.length;if(Y(this.source,Ct,Nt)!==lt)throw new z("Failed to parse value at: "+Ct);return this.node(rt,ct,Ct,Nt)},skip:function(ct,lt){for(var Ct=this.source;lt<Ct.length&&W(ct,X(Ct,lt));lt++);return lt},until:function(ct,lt){lt=this.skip(et,lt);for(var Ct=X(this.source,lt),Nt=0;Nt<ct.length;Nt++)if(ct[Nt]===Ct)return lt;throw new z('Unexpected character: "'+Ct+'" at: '+lt)}};var At=P(function(){var ct="9007199254740993",lt;return j(ct,function(Ct,Nt,Gt){lt=Gt.source}),lt!==ct}),Mt=F&&!P(function(){return 1/j("-0 ")!==-1/0});u({target:"JSON",stat:!0,forced:At},{parse:function(lt,Ct){return Mt&&!S(Ct)?j(lt):ut(lt,Ct)}})}),(function(x,I,n){var u=n(3),d=n(289),h=n(97),g=n(23),m=n(14),T=n(68),S=n(147),$=n(51).set,E=SyntaxError,b=g("JSON","parse"),R=g("Object","create"),C=g("Object","freeze"),O=m("".charAt),P="Unacceptable as raw JSON",M=function(F){return F===" "||F===" "||F===`
|
|
28
|
-
`||F==="\r"};u({target:"JSON",stat:!0,forced:!h},{rawJSON:function(U){var B=T(U);if(B===""||M(O(B,0))||M(O(B,B.length-1)))throw new E(P);var z=b(B);if(typeof z=="object"&&z!==null)throw new E(P);var j=R(null);return $(j,{type:"RawJSON"}),S(j,"rawJSON",B),d?C(j):j}})}),(function(x,I,n){var u=n(7);x.exports=!u(function(){return Object.isExtensible(Object.preventExtensions({}))})}),(function(x,I,n){var u=n(4),d=n(82);d(u.JSON,"JSON",!0)}),(function(x,I,n){n(292)}),(function(x,I,n){var u=n(293),d=n(297);u("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)}),(function(x,I,n){var u=n(3),d=n(4),h=n(14),g=n(67),m=n(47),T=n(294),S=n(135),$=n(217),E=n(21),b=n(17),R=n(20),C=n(7),O=n(170),P=n(82),M=n(122);x.exports=function(F,U,B){var z=F.indexOf("Map")!==-1,j=F.indexOf("Weak")!==-1,G=z?"set":"add",V=d[F],X=V&&V.prototype,Y=V,W={},J=function(ut){var xt=h(X[ut]);m(X,ut,ut==="add"?function(gt){return xt(this,gt===0?0:gt),this}:ut==="delete"?function(pt){return j&&!R(pt)?!1:xt(this,pt===0?0:pt)}:ut==="get"?function(gt){return j&&!R(gt)?void 0:xt(this,gt===0?0:gt)}:ut==="has"?function(gt){return j&&!R(gt)?!1:xt(this,gt===0?0:gt)}:function(gt,It){return xt(this,gt===0?0:gt,It),this})},tt=g(F,!E(V)||!(j||X.forEach&&!C(function(){new V().entries().next()})));if(tt)Y=B.getConstructor(U,F,z,G),T.enable();else if(g(F,!0)){var k=new Y,_=k[G](j?{}:-0,1)!==k,et=C(function(){k.has(1)}),rt=O(function(ut){new V(ut)}),at=!j&&C(function(){for(var ut=new V,xt=5;xt--;)ut[G](xt,xt);return!ut.has(-0)});rt||(Y=U(function(ut,xt){$(ut,X);var pt=M(new V,ut,Y);return b(xt)||S(xt,pt[G],{that:pt,AS_ENTRIES:z}),pt}),Y.prototype=X,X.constructor=Y),(et||at)&&(J("delete"),J("has"),z&&J("get")),(at||_)&&J(G),j&&X.clear&&delete X.clear}return W[F]=Y,u({global:!0,constructor:!0,forced:Y!==V},W),P(Y,F),j||B.setStrong(Y,F,z),Y}}),(function(x,I,n){var u=n(3),d=n(14),h=n(54),g=n(20),m=n(38),T=n(44).f,S=n(57),$=n(75),E=n(295),b=n(40),R=n(289),C=!1,O=b("meta"),P=0,M=function(G){T(G,O,{value:{objectID:"O"+P++,weakData:{}}})},F=function(G,V){if(!g(G))return typeof G=="symbol"?G:(typeof G=="string"?"S":"P")+G;if(!m(G,O)){if(!E(G))return"F";if(!V)return"E";M(G)}return G[O].objectID},U=function(G,V){if(!m(G,O)){if(!E(G))return!0;if(!V)return!1;M(G)}return G[O].weakData},B=function(G){return R&&C&&E(G)&&!m(G,O)&&M(G),G},z=function(){j.enable=function(){},C=!0;var G=S.f,V=d([].splice),X={};X[O]=1,G(X).length&&(S.f=function(Y){for(var W=G(Y),J=0,tt=W.length;J<tt;J++)if(W[J]===O){V(W,J,1);break}return W},u({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$.f}))},j=x.exports={enable:z,fastKey:F,getWeakData:U,onFreeze:B};h[O]=!0}),(function(x,I,n){var u=n(7),d=n(20),h=n(15),g=n(296),m=Object.isExtensible,T=u(function(){m(1)});x.exports=T||g?function($){return!d($)||g&&h($)==="ArrayBuffer"?!1:m?m($):!0}:m}),(function(x,I,n){var u=n(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,I,n){var u=n(71),d=n(77),h=n(216),g=n(84),m=n(217),T=n(17),S=n(135),$=n(175),E=n(178),b=n(200),R=n(6),C=n(294).fastKey,O=n(51),P=O.set,M=O.getterFor;x.exports={getConstructor:function(F,U,B,z){var j=F(function(W,J){m(W,G),P(W,{type:U,index:u(null),first:null,last:null,size:0}),R||(W.size=0),T(J)||S(J,W[z],{that:W,AS_ENTRIES:B})}),G=j.prototype,V=M(U),X=function(W,J,tt){var k=V(W),_=Y(W,J),et,rt;return _?_.value=tt:(k.last=_={index:rt=C(J,!0),key:J,value:tt,previous:et=k.last,next:null,removed:!1},k.first||(k.first=_),et&&(et.next=_),R?k.size++:W.size++,rt!=="F"&&(k.index[rt]=_)),W},Y=function(W,J){var tt=V(W),k=C(J),_;if(k!=="F")return tt.index[k];for(_=tt.first;_;_=_.next)if(_.key===J)return _};return h(G,{clear:function(){for(var J=this,tt=V(J),k=tt.first;k;)k.removed=!0,k.previous&&(k.previous=k.previous.next=null),k=k.next;tt.first=tt.last=null,tt.index=u(null),R?tt.size=0:J.size=0},delete:function(W){var J=this,tt=V(J),k=Y(J,W);if(k){var _=k.next,et=k.previous;delete tt.index[k.index],k.removed=!0,et&&(et.next=_),_&&(_.previous=et),tt.first===k&&(tt.first=_),tt.last===k&&(tt.last=et),R?tt.size--:J.size--}return!!k},forEach:function(J){for(var tt=V(this),k=g(J,arguments.length>1?arguments[1]:void 0),_;_=_?_.next:tt.first;)for(k(_.value,_.key,this);_&&_.removed;)_=_.previous},has:function(J){return!!Y(this,J)}}),h(G,B?{get:function(J){var tt=Y(this,J);return tt&&tt.value},set:function(J,tt){return X(this,J===0?0:J,tt)}}:{add:function(J){return X(this,J=J===0?0:J,J)}}),R&&d(G,"size",{configurable:!0,get:function(){return V(this).size}}),j},setStrong:function(F,U,B){var z=U+" Iterator",j=M(U),G=M(z);$(F,U,function(V,X){P(this,{type:z,target:V,state:j(V),kind:X,last:null})},function(){for(var V=G(this),X=V.kind,Y=V.last;Y&&Y.removed;)Y=Y.previous;return!V.target||!(V.last=Y=Y?Y.next:V.state.first)?(V.target=null,E(void 0,!0)):E(X==="keys"?Y.key:X==="values"?Y.value:[Y.key,Y.value],!1)},B?"entries":"values",!B,!0),b(U)}}}),(function(x,I,n){var u=n(3),d=n(14),h=n(30),g=n(16),m=n(135),T=n(299),S=n(36),$=n(7),E=T.Map,b=T.has,R=T.get,C=T.set,O=d([].push),P=S||$(function(){return E.groupBy("ab",function(M){return M}).get("a").length!==1});u({target:"Map",stat:!0,forced:S||P},{groupBy:function(F,U){g(F),h(U);var B=new E,z=0;return m(F,function(j){var G=U(j,z++);b(B,G)?O(R(B,G),j):C(B,G,[j])}),B}})}),(function(x,I,n){var u=n(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,I,n){var u=n(3),d=n(301),h=Math.acosh,g=Math.log,m=Math.sqrt,T=Math.LN2,S=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;u({target:"Math",stat:!0,forced:S},{acosh:function(E){var b=+E;return b<1?NaN:b>9490626562425156e-8?g(b)+T:d(b-1+m(b-1)*m(b+1))}})}),(function(x){var I=Math.log;x.exports=Math.log1p||function(u){var d=+u;return d>-1e-8&&d<1e-8?d-d*d/2:I(1+d)}}),(function(x,I,n){var u=n(3),d=Math.asinh,h=Math.log,g=Math.sqrt;function m(S){var $=+S;return!isFinite($)||$===0?$:$<0?-m(-$):h($+g($*$+1))}var T=!(d&&1/d(0)>0);u({target:"Math",stat:!0,forced:T},{asinh:m})}),(function(x,I,n){var u=n(3),d=Math.atanh,h=Math.log,g=!(d&&1/d(-0)<0);u({target:"Math",stat:!0,forced:g},{atanh:function(T){var S=+T;return S===0?S:h((1+S)/(1-S))/2}})}),(function(x,I,n){var u=n(3),d=n(221),h=Math.abs,g=Math.pow;u({target:"Math",stat:!0},{cbrt:function(T){var S=+T;return d(S)*g(h(S),.3333333333333333)}})}),(function(x,I,n){var u=n(3),d=Math.floor,h=Math.log,g=Math.LOG2E;u({target:"Math",stat:!0},{clz32:function(T){var S=T>>>0;return S?31-d(h(S+.5)*g):32}})}),(function(x,I,n){var u=n(3),d=n(307),h=Math.cosh,g=Math.abs,m=Math.E,T=!h||h(710)===1/0;u({target:"Math",stat:!0,forced:T},{cosh:function($){var E=d(g($)-1)+1;return(E+1/(E*m*m))*(m/2)}})}),(function(x){var I=Math.expm1,n=Math.exp;x.exports=!I||I(10)>22025.465794806718||I(10)<22025.465794806718||I(-2e-17)!==-2e-17?function(d){var h=+d;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:n(h)-1}:I}),(function(x,I,n){var u=n(3),d=n(307);u({target:"Math",stat:!0,forced:d!==Math.expm1},{expm1:d})}),(function(x,I,n){var u=n(3),d=n(219);u({target:"Math",stat:!0},{fround:d})}),(function(x,I,n){var u=n(3),d=n(220),h=.0009765625,g=65504,m=6103515625e-14;u({target:"Math",stat:!0},{f16round:function(S){return d(S,h,g,m)}})}),(function(x,I,n){var u=n(3),d=Math.hypot,h=Math.abs,g=Math.sqrt,m=!!d&&d(1/0,NaN)!==1/0;u({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(S,$){for(var E=0,b=0,R=arguments.length,C=0,O,P;b<R;)O=h(arguments[b++]),C<O?(P=C/O,E=E*P*P+1,C=O):O>0?(P=O/C,E+=P*P):E+=O;return C===1/0?1/0:C*g(E)}})}),(function(x,I,n){var u=n(3),d=n(7),h=Math.imul,g=d(function(){return h(4294967295,5)!==-5||h.length!==2});u({target:"Math",stat:!0,forced:g},{imul:function(T,S){var $=65535,E=+T,b=+S,R=$&E,C=$&b;return 0|R*C+(($&E>>>16)*C+R*($&b>>>16)<<16>>>0)}})}),(function(x,I,n){var u=n(3),d=n(314);u({target:"Math",stat:!0},{log10:d})}),(function(x){var I=Math.log,n=Math.LOG10E;x.exports=Math.log10||function(d){return I(d)*n}}),(function(x,I,n){var u=n(3),d=n(301);u({target:"Math",stat:!0},{log1p:d})}),(function(x,I,n){var u=n(3),d=n(232);u({target:"Math",stat:!0},{log2:d})}),(function(x,I,n){var u=n(3),d=n(221);u({target:"Math",stat:!0},{sign:d})}),(function(x,I,n){var u=n(3),d=n(7),h=n(307),g=Math.abs,m=Math.exp,T=Math.E,S=d(function(){return Math.sinh(-2e-17)!==-2e-17});u({target:"Math",stat:!0,forced:S},{sinh:function(E){var b=+E;return g(b)<1?(h(b)-h(-b))/2:(m(b-1)-m(-b-1))*(T/2)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(135),g=RangeError,m=TypeError,T=1/0,S=NaN,$=Math.abs,E=Math.pow,b=d([].push),R=E(2,1023),C=E(2,53)-1,O=Number.MAX_VALUE,P=E(2,971),M={},F={},U={},B={},z={},j=function(G,V){var X=G+V,Y=V-(X-G);return{hi:X,lo:Y}};u({target:"Math",stat:!0},{sumPrecise:function(V){var X=[],Y=0,W=B;switch(h(V,function(ct){if(++Y>=C)throw new g("Maximum allowed index exceeded");if(typeof ct!="number")throw new m("Value is not a number");W!==M&&(ct!==ct?W=M:ct===T?W=W===F?M:U:ct===-T?W=W===U?M:F:(ct!==0||1/ct===T)&&(W===B||W===z)&&(W=z,b(X,ct)))}),W){case M:return S;case F:return-T;case U:return T;case B:return-0}for(var J=[],tt=0,k,_,et,rt,at,ut,xt=0;xt<X.length;xt++){k=X[xt];for(var pt=0,gt=0;gt<J.length;gt++){if(_=J[gt],$(k)<$(_)&&(ut=k,k=_,_=ut),et=j(k,_),rt=et.hi,at=et.lo,$(rt)===T){var It=rt===T?1:-1;tt+=It,k=k-It*R-It*R,$(k)<$(_)&&(ut=k,k=_,_=ut),et=j(k,_),rt=et.hi,at=et.lo}at!==0&&(J[pt++]=at),k=rt}J.length=pt,k!==0&&b(J,k)}var At=J.length-1;if(rt=0,at=0,tt!==0){var Mt=At>=0?J[At]:0;if(At--,$(tt)>1||tt>0&&Mt>0||tt<0&&Mt<0)return tt>0?T:-T;if(et=j(tt*R,Mt/2),rt=et.hi,at=et.lo,at*=2,$(2*rt)===T)return rt>0?rt===R&&at===-(P/2)&&At>=0&&J[At]<0?O:T:rt===-R&&at===P/2&&At>=0&&J[At]>0?-O:-T;at!==0&&(J[++At]=at,at=0),rt*=2}for(;At>=0&&(et=j(rt,J[At--]),rt=et.hi,at=et.lo,at===0););return At>=0&&(at<0&&J[At]<0||at>0&&J[At]>0)&&(_=at*2,k=rt+_,_===k-rt&&(rt=k)),rt}})}),(function(x,I,n){var u=n(3),d=n(307),h=Math.exp;u({target:"Math",stat:!0},{tanh:function(m){var T=+m,S=d(T),$=d(-T);return S===1/0?1:$===1/0?-1:(S-$)/(h(T)+h(-T))}})}),(function(x,I,n){var u=n(82);u(Math,"Math",!0)}),(function(x,I,n){var u=n(3),d=n(62);u({target:"Math",stat:!0},{trunc:d})}),(function(x,I,n){var u=n(3),d=n(36),h=n(6),g=n(4),m=n(80),T=n(14),S=n(67),$=n(38),E=n(122),b=n(24),R=n(22),C=n(19),O=n(7),P=n(57).f,M=n(5).f,F=n(44).f,U=n(324),B=n(325).trim,z="Number",j=g[z],G=m[z],V=j.prototype,X=g.TypeError,Y=T("".slice),W=T("".charCodeAt),J=function(at){var ut=C(at,"number");return typeof ut=="bigint"?ut:tt(ut)},tt=function(at){var ut=C(at,"number"),xt,pt,gt,It,At,Mt,ct,lt;if(R(ut))throw new X("Cannot convert a Symbol value to a number");if(typeof ut=="string"&&ut.length>2){if(ut=B(ut),xt=W(ut,0),xt===43||xt===45){if(pt=W(ut,2),pt===88||pt===120)return NaN}else if(xt===48){switch(W(ut,1)){case 66:case 98:gt=2,It=49;break;case 79:case 111:gt=8,It=55;break;default:return+ut}for(At=Y(ut,2),Mt=At.length,ct=0;ct<Mt;ct++)if(lt=W(At,ct),lt<48||lt>It)return NaN;return parseInt(At,gt)}}return+ut},k=S(z,!j(" 0o1")||!j("0b1")||j("+0x1")),_=function(at){return b(V,at)&&O(function(){U(at)})},et=function(ut){var xt=arguments.length<1?0:j(J(ut));return _(this)?E(Object(xt),this,et):xt};et.prototype=V,k&&!d&&(V.constructor=et),u({global:!0,constructor:!0,wrap:!0,forced:k},{Number:et});var rt=function(at,ut){for(var xt=h?P(ut):"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(","),pt=0,gt;xt.length>pt;pt++)$(ut,gt=xt[pt])&&!$(at,gt)&&F(at,gt,M(ut,gt))};d&&G&&rt(m[z],G),(k||d)&&rt(m[z],j)}),(function(x,I,n){var u=n(14);x.exports=u(1.1.valueOf)}),(function(x,I,n){var u=n(14),d=n(16),h=n(68),g=n(326),m=u("".replace),T=RegExp("^["+g+"]+"),S=RegExp("(^|[^"+g+"])["+g+"]+$"),$=function(E){return function(b){var R=h(d(b));return E&1&&(R=m(R,T,"")),E&2&&(R=m(R,S,"$1")),R}};x.exports={start:$(1),end:$(2),trim:$(3)}}),(function(x){x.exports=`
|
|
29
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})}),(function(x,I,n){var u=n(3),d=n(329);u({target:"Number",stat:!0},{isFinite:d})}),(function(x,I,n){var u=n(4),d=u.isFinite;x.exports=Number.isFinite||function(g){return typeof g=="number"&&d(g)}}),(function(x,I,n){var u=n(3),d=n(331);u({target:"Number",stat:!0},{isInteger:d})}),(function(x,I,n){var u=n(20),d=Math.floor;x.exports=Number.isInteger||function(g){return!u(g)&&isFinite(g)&&d(g)===g}}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})}),(function(x,I,n){var u=n(3),d=n(331),h=Math.abs;u({target:"Number",stat:!0},{isSafeInteger:function(m){return d(m)&&h(m)<=9007199254740991}})}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})}),(function(x,I,n){var u=n(3),d=n(337);u({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d})}),(function(x,I,n){var u=n(4),d=n(7),h=n(14),g=n(68),m=n(325).trim,T=n(326),S=h("".charAt),$=u.parseFloat,E=u.Symbol,b=E&&E.iterator,R=1/$(T+"-0")!==-1/0||b&&!d(function(){$(Object(b))});x.exports=R?function(O){var P=m(g(O)),M=$(P);return M===0&&S(P,0)==="-"?-0:M}:$}),(function(x,I,n){var u=n(3),d=n(339);u({target:"Number",stat:!0,forced:Number.parseInt!==d},{parseInt:d})}),(function(x,I,n){var u=n(4),d=n(7),h=n(14),g=n(68),m=n(325).trim,T=n(326),S=u.parseInt,$=u.Symbol,E=$&&$.iterator,b=/^[+-]?0x/i,R=h(b.exec),C=S(T+"08")!==8||S(T+"0x16")!==22||E&&!d(function(){S(Object(E))});x.exports=C?function(P,M){var F=m(g(P));return S(F,M>>>0||(R(b,F)?16:10))}:S}),(function(x,I,n){var u=n(3),d=n(14),h=n(61),g=n(324),m=n(250),T=n(314),S=n(7),$=RangeError,E=String,b=isFinite,R=Math.abs,C=Math.floor,O=Math.pow,P=Math.round,M=d(1.1.toExponential),F=d(m),U=d("".slice),B=M(-69e-12,4)==="-6.9000e-11"&&M(1.255,2)==="1.25e+0"&&M(12345,3)==="1.235e+4"&&M(25,0)==="3e+1",z=function(){return S(function(){M(1,1/0)})&&S(function(){M(1,-1/0)})},j=function(){return!S(function(){M(1/0,1/0),M(NaN,1/0)})},G=!B||!z()||!j();u({target:"Number",proto:!0,forced:G},{toExponential:function(X){var Y=g(this);if(X===void 0)return M(Y);var W=h(X);if(!b(Y))return String(Y);if(W<0||W>20)throw new $("Incorrect fraction digits");if(B)return M(Y,W);var J="",tt,k,_,et;if(Y<0&&(J="-",Y=-Y),Y===0)k=0,tt=F("0",W+1);else{var rt=T(Y);k=C(rt);var at=O(10,k-W),ut=P(Y/at);2*Y>=(2*ut+1)*at&&(ut+=1),ut>=O(10,W+1)&&(ut/=10,k+=1),tt=E(ut)}return W!==0&&(tt=U(tt,0,1)+"."+U(tt,1)),k===0?(_="+",et="0"):(_=k>0?"+":"-",et=E(R(k))),tt+="e"+_+et,J+tt}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(61),g=n(324),m=n(250),T=n(7),S=RangeError,$=String,E=Math.floor,b=d(m),R=d("".slice),C=d(1.1.toFixed),O=function(z,j,G){return j===0?G:j%2===1?O(z,j-1,G*z):O(z*z,j/2,G)},P=function(z){for(var j=0,G=z;G>=4096;)j+=12,G/=4096;for(;G>=2;)j+=1,G/=2;return j},M=function(z,j,G){for(var V=-1,X=G;++V<6;)X+=j*z[V],z[V]=X%1e7,X=E(X/1e7)},F=function(z,j){for(var G=6,V=0;--G>=0;)V+=z[G],z[G]=E(V/j),V=V%j*1e7},U=function(z){for(var j=6,G="";--j>=0;)if(G!==""||j===0||z[j]!==0){var V=$(z[j]);G=G===""?V:G+b("0",7-V.length)+V}return G},B=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:B},{toFixed:function(j){var G=g(this),V=h(j),X=[0,0,0,0,0,0],Y="",W="0",J,tt,k,_;if(V<0||V>20)throw new S("Incorrect fraction digits");if(G!==G)return"NaN";if(G<=-1e21||G>=1e21)return $(G);if(G<0&&(Y="-",G=-G),G>1e-21)if(J=P(G*O(2,69,1))-69,tt=J<0?G*O(2,-J,1):G/O(2,J,1),tt*=4503599627370496,J=52-J,J>0){for(M(X,0,tt),k=V;k>=7;)M(X,1e7,0),k-=7;for(M(X,O(10,k,1),0),k=J-1;k>=23;)F(X,8388608),k-=23;F(X,1<<k),M(X,1,1),F(X,2),W=U(X)}else M(X,0,tt),M(X,1<<-J,0),W=U(X)+b("0",V);return V>0?(_=W.length,W=Y+(_<=V?"0."+b("0",V-_)+W:R(W,0,_-V)+"."+R(W,_-V))):W=Y+W,W}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(7),g=n(324),m=d(1.1.toPrecision),T=h(function(){return m(1,void 0)!=="1"})||!h(function(){m({})});u({target:"Number",proto:!0,forced:T},{toPrecision:function($){return $===void 0?m(g(this)):m(g(this),$)}})}),(function(x,I,n){var u=n(3),d=n(344);u({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})}),(function(x,I,n){var u=n(6),d=n(14),h=n(8),g=n(7),m=n(73),T=n(66),S=n(10),$=n(39),E=n(13),b=Object.assign,R=Object.defineProperty,C=d([].concat);x.exports=!b||g(function(){if(u&&b({b:1},b(R({},"a",{enumerable:!0,get:function(){R(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var O={},P={},M=Symbol("assign detection"),F="abcdefghijklmnopqrst";return O[M]=7,F.split("").forEach(function(U){P[U]=U}),b({},O)[M]!==7||m(b({},P)).join("")!==F})?function(P,M){for(var F=$(P),U=arguments.length,B=1,z=T.f,j=S.f;U>B;)for(var G=E(arguments[B++]),V=z?C(m(G),z(G)):m(G),X=V.length,Y=0,W;X>Y;)W=V[Y++],(!u||h(j,G,W))&&(F[W]=G[W]);return F}:b}),(function(x,I,n){var u=n(3),d=n(6),h=n(71);u({target:"Object",stat:!0,sham:!d},{create:h})}),(function(x,I,n){var u=n(3),d=n(6),h=n(347),g=n(30),m=n(39),T=n(44);d&&u({target:"Object",proto:!0,forced:h},{__defineGetter__:function($,E){T.f(m(this),$,{get:g(E),enumerable:!0,configurable:!0})}})}),(function(x,I,n){var u=n(36),d=n(4),h=n(7),g=n(198);x.exports=u||!h(function(){if(!(g&&g<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete d[m]}})}),(function(x,I,n){var u=n(3),d=n(6),h=n(72).f;u({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!d},{defineProperties:h})}),(function(x,I,n){var u=n(3),d=n(6),h=n(44).f;u({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!d},{defineProperty:h})}),(function(x,I,n){var u=n(3),d=n(6),h=n(347),g=n(30),m=n(39),T=n(44);d&&u({target:"Object",proto:!0,forced:h},{__defineSetter__:function($,E){T.f(m(this),$,{set:g(E),enumerable:!0,configurable:!0})}})}),(function(x,I,n){var u=n(3),d=n(352).entries;u({target:"Object",stat:!0},{entries:function(g){return d(g)}})}),(function(x,I,n){var u=n(6),d=n(7),h=n(14),g=n(133),m=n(73),T=n(12),S=n(10).f,$=h(S),E=h([].push),b=u&&d(function(){var C=Object.create(null);return C[2]=2,!$(C,2)}),R=function(C){return function(O){for(var P=T(O),M=m(P),F=b&&g(P)===null,U=M.length,B=0,z=[],j;U>B;)j=M[B++],(!u||(F?j in P:$(P,j)))&&E(z,C?[j,P[j]]:P[j]);return z}};x.exports={entries:R(!0),values:R(!1)}}),(function(x,I,n){var u=n(3),d=n(289),h=n(7),g=n(20),m=n(294).onFreeze,T=Object.freeze,S=h(function(){T(1)});u({target:"Object",stat:!0,forced:S,sham:!d},{freeze:function(E){return T&&g(E)?T(m(E)):E}})}),(function(x,I,n){var u=n(3),d=n(135),h=n(147);u({target:"Object",stat:!0},{fromEntries:function(m){var T={};return d(m,function(S,$){h(T,S,$)},{AS_ENTRIES:!0}),T}})}),(function(x,I,n){var u=n(3),d=n(7),h=n(12),g=n(5).f,m=n(6),T=!m||d(function(){g(1)});u({target:"Object",stat:!0,forced:T,sham:!m},{getOwnPropertyDescriptor:function($,E){return g(h($),E)}})}),(function(x,I,n){var u=n(3),d=n(6),h=n(56),g=n(12),m=n(5),T=n(147);u({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function($){for(var E=g($),b=m.f,R=h(E),C={},O=0,P,M;R.length>O;)M=b(E,P=R[O++]),M!==void 0&&T(C,P,M);return C}})}),(function(x,I,n){var u=n(3),d=n(7),h=n(75).f,g=d(function(){return!Object.getOwnPropertyNames(1)});u({target:"Object",stat:!0,forced:g},{getOwnPropertyNames:h})}),(function(x,I,n){var u=n(3),d=n(7),h=n(39),g=n(133),m=n(134),T=d(function(){g(1)});u({target:"Object",stat:!0,forced:T,sham:!m},{getPrototypeOf:function($){return g(h($))}})}),(function(x,I,n){var u=n(3),d=n(147),h=n(23),g=n(14),m=n(30),T=n(16),S=n(18),$=n(135),E=n(7),b=Object.groupBy,R=h("Object","create"),C=g([].push),O=!b||E(function(){return b("ab",function(P){return P}).a.length!==1});u({target:"Object",stat:!0,forced:O},{groupBy:function(M,F){T(M),m(F);var U=R(null),B=0;return $(M,function(z){var j=S(F(z,B++));j in U?C(U[j],z):d(U,j,[z])}),U}})}),(function(x,I,n){var u=n(3),d=n(38);u({target:"Object",stat:!0},{hasOwn:d})}),(function(x,I,n){var u=n(3),d=n(362);u({target:"Object",stat:!0},{is:d})}),(function(x){x.exports=Object.is||function(n,u){return n===u?n!==0||1/n===1/u:n!==n&&u!==u}}),(function(x,I,n){var u=n(3),d=n(295);u({target:"Object",stat:!0,forced:Object.isExtensible!==d},{isExtensible:d})}),(function(x,I,n){var u=n(3),d=n(7),h=n(20),g=n(15),m=n(296),T=Object.isFrozen,S=m||d(function(){T(1)});u({target:"Object",stat:!0,forced:S},{isFrozen:function(E){return!h(E)||m&&g(E)==="ArrayBuffer"?!0:T?T(E):!1}})}),(function(x,I,n){var u=n(3),d=n(7),h=n(20),g=n(15),m=n(296),T=Object.isSealed,S=m||d(function(){T(1)});u({target:"Object",stat:!0,forced:S},{isSealed:function(E){return!h(E)||m&&g(E)==="ArrayBuffer"?!0:T?T(E):!1}})}),(function(x,I,n){var u=n(3),d=n(39),h=n(73),g=n(7),m=g(function(){h(1)});u({target:"Object",stat:!0,forced:m},{keys:function(S){return h(d(S))}})}),(function(x,I,n){var u=n(3),d=n(6),h=n(347),g=n(39),m=n(18),T=n(133),S=n(5).f;d&&u({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(E){var b=g(this),R=m(E),C;do if(C=S(b,R))return C.get;while(b=T(b))}})}),(function(x,I,n){var u=n(3),d=n(6),h=n(347),g=n(39),m=n(18),T=n(133),S=n(5).f;d&&u({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(E){var b=g(this),R=m(E),C;do if(C=S(b,R))return C.set;while(b=T(b))}})}),(function(x,I,n){var u=n(3),d=n(20),h=n(294).onFreeze,g=n(289),m=n(7),T=Object.preventExtensions,S=m(function(){T(1)});u({target:"Object",stat:!0,forced:S,sham:!g},{preventExtensions:function(E){return T&&d(E)?T(h(E)):E}})}),(function(x,I,n){var u=n(6),d=n(77),h=n(20),g=n(120),m=n(39),T=n(16),S=Object.getPrototypeOf,$=Object.setPrototypeOf,E=Object.prototype,b="__proto__";if(u&&S&&$&&!(b in E))try{d(E,b,{configurable:!0,get:function(){return S(m(this))},set:function(C){var O=T(this);g(C)&&h(O)&&$(O,C)}})}catch(R){}}),(function(x,I,n){var u=n(3),d=n(20),h=n(294).onFreeze,g=n(289),m=n(7),T=Object.seal,S=m(function(){T(1)});u({target:"Object",stat:!0,forced:S,sham:!g},{seal:function(E){return T&&d(E)?T(h(E)):E}})}),(function(x,I,n){var u=n(3),d=n(117);u({target:"Object",stat:!0},{setPrototypeOf:d})}),(function(x,I,n){var u=n(70),d=n(47),h=n(374);u||d(Object.prototype,"toString",h,{unsafe:!0})}),(function(x,I,n){var u=n(70),d=n(69);x.exports=u?{}.toString:function(){return"[object "+d(this)+"]"}}),(function(x,I,n){var u=n(3),d=n(352).values;u({target:"Object",stat:!0},{values:function(g){return d(g)}})}),(function(x,I,n){var u=n(3),d=n(337);u({global:!0,forced:parseFloat!==d},{parseFloat:d})}),(function(x,I,n){var u=n(3),d=n(339);u({global:!0,forced:parseInt!==d},{parseInt:d})}),(function(x,I,n){n(379),n(395),n(397),n(398),n(399),n(400)}),(function(x,I,n){var u=n(3),d=n(36),h=n(188),g=n(4),m=n(80),T=n(8),S=n(47),$=n(117),E=n(82),b=n(200),R=n(30),C=n(21),O=n(20),P=n(217),M=n(380),F=n(382).set,U=n(385),B=n(390),z=n(391),j=n(387),G=n(51),V=n(392),X=n(393),Y=n(394),W="Promise",J=X.CONSTRUCTOR,tt=X.REJECTION_EVENT,k=X.SUBCLASSING,_=G.getterFor(W),et=G.set,rt=V&&V.prototype,at=V,ut=rt,xt=g.TypeError,pt=g.document,gt=g.process,It=Y.f,At=It,Mt=!!(pt&&pt.createEvent&&g.dispatchEvent),ct="unhandledrejection",lt="rejectionhandled",Ct=0,Nt=1,Gt=2,Ot=1,jt=2,re,ie,ne,ae,Ae=function(Vt){var _t;return O(Vt)&&C(_t=Vt.then)?_t:!1},Ie=function(Vt,_t){var te=_t.value,Zt=_t.state===Nt,xe=Zt?Vt.ok:Vt.fail,We=Vt.resolve,ht=Vt.reject,Lt=Vt.domain,Bt,Ut,Xt;try{xe?(Zt||(_t.rejection===jt&&me(_t),_t.rejection=Ot),xe===!0?Bt=te:(Lt&&Lt.enter(),Bt=xe(te),Lt&&(Lt.exit(),Xt=!0)),Bt===Vt.promise?ht(new xt("Promise-chain cycle")):(Ut=Ae(Bt))?T(Ut,Bt,We,ht):We(Bt)):ht(te)}catch(Pt){Lt&&!Xt&&Lt.exit(),ht(Pt)}},pe=function(Vt,_t){Vt.notified||(Vt.notified=!0,U(function(){for(var te=Vt.reactions,Zt;Zt=te.get();)Ie(Zt,Vt);Vt.notified=!1,_t&&!Vt.rejection&&be(Vt)}))},le=function(Vt,_t,te){var Zt,xe;Mt?(Zt=pt.createEvent("Event"),Zt.promise=_t,Zt.reason=te,Zt.initEvent(Vt,!1,!0),g.dispatchEvent(Zt)):Zt={promise:_t,reason:te},!tt&&(xe=g["on"+Vt])?xe(Zt):Vt===ct&&B("Unhandled promise rejection",te)},be=function(Vt){T(F,g,function(){var _t=Vt.facade,te=Vt.value,Zt=Se(Vt),xe;if(Zt&&(xe=z(function(){h?gt.emit("unhandledRejection",te,_t):le(ct,_t,te)}),Vt.rejection=h||Se(Vt)?jt:Ot,xe.error))throw xe.value})},Se=function(Vt){return Vt.rejection!==Ot&&!Vt.parent},me=function(Vt){T(F,g,function(){var _t=Vt.facade;h?gt.emit("rejectionHandled",_t):le(lt,_t,Vt.value)})},wt=function(Vt,_t,te){return function(Zt){Vt(_t,Zt,te)}},Yt=function(Vt,_t,te){Vt.done||(Vt.done=!0,te&&(Vt=te),Vt.value=_t,Vt.state=Gt,pe(Vt,!0))},ue=function(Vt,_t,te){if(!Vt.done){Vt.done=!0,te&&(Vt=te);try{if(Vt.facade===_t)throw new xt("Promise can't be resolved itself");var Zt=Ae(_t);Zt?U(function(){var xe={done:!1};try{T(Zt,_t,wt(ue,xe,Vt),wt(Yt,xe,Vt))}catch(We){Yt(xe,We,Vt)}}):(Vt.value=_t,Vt.state=Nt,pe(Vt,!1))}catch(xe){Yt({done:!1},xe,Vt)}}};if(J&&(at=function(_t){P(this,ut),R(_t),T(re,this);var te=_(this);try{_t(wt(ue,te),wt(Yt,te))}catch(Zt){Yt(te,Zt)}},ut=at.prototype,re=function(_t){et(this,{type:W,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:Ct,value:null})},re.prototype=S(ut,"then",function(_t,te){var Zt=_(this),xe=It(M(this,at));return Zt.parent=!0,xe.ok=C(_t)?_t:!0,xe.fail=C(te)&&te,xe.domain=h?gt.domain:void 0,Zt.state===Ct?Zt.reactions.add(xe):U(function(){Ie(xe,Zt)}),xe.promise}),ie=function(){var Vt=new re,_t=_(Vt);this.promise=Vt,this.resolve=wt(ue,_t),this.reject=wt(Yt,_t)},Y.f=It=function(Vt){return Vt===at||Vt===ne?new ie(Vt):At(Vt)},!d&&C(V)&&rt!==Object.prototype)){ae=rt.then,k||S(rt,"then",function(_t,te){var Zt=this;return new at(function(xe,We){T(ae,Zt,xe,We)}).then(_t,te)},{unsafe:!0});try{delete rt.constructor}catch(Vt){}$&&$(rt,ut)}u({global:!0,constructor:!0,wrap:!0,forced:J},{Promise:at}),ne=m.Promise,E(at,W,!1,!0),b(W)}),(function(x,I,n){var u=n(46),d=n(381),h=n(17),g=n(33),m=g("species");x.exports=function(T,S){var $=u(T).constructor,E;return $===void 0||h(E=u($)[m])?S:d(E)}}),(function(x,I,n){var u=n(89),d=n(31),h=TypeError;x.exports=function(g){if(u(g))return g;throw new h(d(g)+" is not a constructor")}}),(function(x,I,n){var u=n(4),d=n(94),h=n(84),g=n(21),m=n(38),T=n(7),S=n(74),$=n(76),E=n(42),b=n(383),R=n(384),C=n(188),O=u.setImmediate,P=u.clearImmediate,M=u.process,F=u.Dispatch,U=u.Function,B=u.MessageChannel,z=u.String,j=0,G={},V="onreadystatechange",X,Y,W,J;T(function(){X=u.location});var tt=function(rt){if(m(G,rt)){var at=G[rt];delete G[rt],at()}},k=function(rt){return function(){tt(rt)}},_=function(rt){tt(rt.data)},et=function(rt){u.postMessage(z(rt),X.protocol+"//"+X.host)};(!O||!P)&&(O=function(at){b(arguments.length,1);var ut=g(at)?at:U(at),xt=$(arguments,1);return G[++j]=function(){d(ut,void 0,xt)},Y(j),j},P=function(at){delete G[at]},C?Y=function(rt){M.nextTick(k(rt))}:F&&F.now?Y=function(rt){F.now(k(rt))}:B&&!R?(W=new B,J=W.port2,W.port1.onmessage=_,Y=h(J.postMessage,J)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&X&&X.protocol!=="file:"&&!T(et)?(Y=et,u.addEventListener("message",_,!1)):V in E("script")?Y=function(rt){S.appendChild(E("script"))[V]=function(){S.removeChild(this),tt(rt)}}:Y=function(rt){setTimeout(k(rt),0)}),x.exports={set:O,clear:P}}),(function(x){var I=TypeError;x.exports=function(n,u){if(n<u)throw new I("Not enough arguments");return n}}),(function(x,I,n){var u=n(28);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)}),(function(x,I,n){var u=n(4),d=n(386),h=n(84),g=n(382).set,m=n(387),T=n(384),S=n(388),$=n(389),E=n(188),b=u.MutationObserver||u.WebKitMutationObserver,R=u.document,C=u.process,O=u.Promise,P=d("queueMicrotask"),M,F,U,B,z;if(!P){var j=new m,G=function(){var V,X;for(E&&(V=C.domain)&&V.exit();X=j.get();)try{X()}catch(Y){throw j.head&&M(),Y}V&&V.enter()};!T&&!E&&!$&&b&&R?(F=!0,U=R.createTextNode(""),new b(G).observe(U,{characterData:!0}),M=function(){U.data=F=!F}):!S&&O&&O.resolve?(B=O.resolve(void 0),B.constructor=O,z=h(B.then,B),M=function(){z(G)}):E?M=function(){C.nextTick(G)}:(g=h(g,u),M=function(){g(G)}),P=function(V){j.head||M(),j.add(V)}}x.exports=P}),(function(x,I,n){var u=n(4),d=n(6),h=Object.getOwnPropertyDescriptor;x.exports=function(g){if(!d)return u[g];var m=h(u,g);return m&&m.value}}),(function(x){var I=function(){this.head=null,this.tail=null};I.prototype={add:function(n){var u={item:n,next:null},d=this.tail;d?d.next=u:this.head=u,this.tail=u},get:function(){var n=this.head;if(n){var u=this.head=n.next;return u===null&&(this.tail=null),n.item}}},x.exports=I}),(function(x,I,n){var u=n(28);x.exports=/ipad|iphone|ipod/i.test(u)&&typeof Pebble!="undefined"}),(function(x,I,n){var u=n(28);x.exports=/web0s(?!.*chrome)/i.test(u)}),(function(x){x.exports=function(I,n){try{arguments.length===1?console.error(I):console.error(I,n)}catch(u){}}}),(function(x){x.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}}),(function(x,I,n){var u=n(4);x.exports=u.Promise}),(function(x,I,n){var u=n(4),d=n(392),h=n(21),g=n(67),m=n(50),T=n(33),S=n(189),$=n(36),E=n(27),b=d&&d.prototype,R=T("species"),C=!1,O=h(u.PromiseRejectionEvent),P=g("Promise",function(){var M=m(d),F=M!==String(d);if(!F&&E===66||$&&!(b.catch&&b.finally))return!0;if(!E||E<51||!/native code/.test(M)){var U=new d(function(j){j(1)}),B=function(j){j(function(){},function(){})},z=U.constructor={};if(z[R]=B,C=U.then(function(){})instanceof B,!C)return!0}return!F&&(S==="BROWSER"||S==="DENO")&&!O});x.exports={CONSTRUCTOR:P,REJECTION_EVENT:O,SUBCLASSING:C}}),(function(x,I,n){var u=n(30),d=TypeError,h=function(g){var m,T;this.promise=new g(function(S,$){if(m!==void 0||T!==void 0)throw new d("Bad Promise constructor");m=S,T=$}),this.resolve=u(m),this.reject=u(T)};x.exports.f=function(g){return new h(g)}}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(394),m=n(391),T=n(135),S=n(396);u({target:"Promise",stat:!0,forced:S},{all:function(E){var b=this,R=g.f(b),C=R.resolve,O=R.reject,P=m(function(){var M=h(b.resolve),F=[],U=0,B=1;T(E,function(z){var j=U++,G=!1;B++,d(M,b,z).then(function(V){G||(G=!0,F[j]=V,--B||C(F))},O)}),--B||C(F)});return P.error&&O(P.value),R.promise}})}),(function(x,I,n){var u=n(392),d=n(170),h=n(393).CONSTRUCTOR;x.exports=h||!d(function(g){u.all(g).then(void 0,function(){})})}),(function(x,I,n){var u=n(3),d=n(36),h=n(393).CONSTRUCTOR,g=n(392),m=n(23),T=n(21),S=n(47),$=g&&g.prototype;if(u({target:"Promise",proto:!0,forced:h,real:!0},{catch:function(b){return this.then(void 0,b)}}),!d&&T(g)){var E=m("Promise").prototype.catch;$.catch!==E&&S($,"catch",E,{unsafe:!0})}}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(394),m=n(391),T=n(135),S=n(396);u({target:"Promise",stat:!0,forced:S},{race:function(E){var b=this,R=g.f(b),C=R.reject,O=m(function(){var P=h(b.resolve);T(E,function(M){d(P,b,M).then(R.resolve,C)})});return O.error&&C(O.value),R.promise}})}),(function(x,I,n){var u=n(3),d=n(394),h=n(393).CONSTRUCTOR;u({target:"Promise",stat:!0,forced:h},{reject:function(m){var T=d.f(this),S=T.reject;return S(m),T.promise}})}),(function(x,I,n){var u=n(3),d=n(23),h=n(36),g=n(392),m=n(393).CONSTRUCTOR,T=n(401),S=d("Promise"),$=h&&!m;u({target:"Promise",stat:!0,forced:h||m},{resolve:function(b){return T($&&this===S?g:this,b)}})}),(function(x,I,n){var u=n(46),d=n(20),h=n(394);x.exports=function(g,m){if(u(g),d(m)&&m.constructor===g)return m;var T=h.f(g),S=T.resolve;return S(m),T.promise}}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(394),m=n(391),T=n(135),S=n(396);u({target:"Promise",stat:!0,forced:S},{allSettled:function(E){var b=this,R=g.f(b),C=R.resolve,O=R.reject,P=m(function(){var M=h(b.resolve),F=[],U=0,B=1;T(E,function(z){var j=U++,G=!1;B++,d(M,b,z).then(function(V){G||(G=!0,F[j]={status:"fulfilled",value:V},--B||C(F))},function(V){G||(G=!0,F[j]={status:"rejected",reason:V},--B||C(F))})}),--B||C(F)});return P.error&&O(P.value),R.promise}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(30),g=n(23),m=n(394),T=n(391),S=n(135),$=n(396),E="No one promise resolved";u({target:"Promise",stat:!0,forced:$},{any:function(R){var C=this,O=g("AggregateError"),P=m.f(C),M=P.resolve,F=P.reject,U=T(function(){var B=h(C.resolve),z=[],j=0,G=1,V=!1;S(R,function(X){var Y=j++,W=!1;G++,d(B,C,X).then(function(J){W||V||(V=!0,M(J))},function(J){W||V||(W=!0,z[Y]=J,--G||F(new O(z,E)))})}),--G||F(new O(z,E))});return U.error&&F(U.value),P.promise}})}),(function(x,I,n){var u=n(3),d=n(36),h=n(392),g=n(7),m=n(23),T=n(21),S=n(380),$=n(401),E=n(47),b=h&&h.prototype,R=!!h&&g(function(){b.finally.call({then:function(){}},function(){})});if(u({target:"Promise",proto:!0,real:!0,forced:R},{finally:function(O){var P=S(this,m("Promise")),M=T(O);return this.then(M?function(F){return $(P,O()).then(function(){return F})}:O,M?function(F){return $(P,O()).then(function(){throw F})}:O)}}),!d&&T(h)){var C=m("Promise").prototype.finally;b.finally!==C&&E(b,"finally",C,{unsafe:!0})}}),(function(x,I,n){var u=n(3),d=n(4),h=n(94),g=n(76),m=n(394),T=n(30),S=n(391),$=d.Promise,E=!1,b=!$||!$.try||S(function(){$.try(function(R){E=R===8},8)}).error||!E;u({target:"Promise",stat:!0,forced:b},{try:function(R){var C=arguments.length>1?g(arguments,1):[],O=m.f(this),P=S(function(){return h(T(R),void 0,C)});return(P.error?O.reject:O.resolve)(P.value),O.promise}})}),(function(x,I,n){var u=n(3),d=n(394);u({target:"Promise",stat:!0},{withResolvers:function(){var g=d.f(this);return{promise:g.promise,resolve:g.resolve,reject:g.reject}}})}),(function(x,I,n){var u=n(3),d=n(408),h=n(7),g=Array.fromAsync,m=!g||h(function(){var T=0;return g.call(function(){return T++,[]},{length:0}),T!==1});u({target:"Array",stat:!0,forced:m},{fromAsync:d})}),(function(x,I,n){var u=n(84),d=n(14),h=n(39),g=n(89),m=n(409),T=n(138),S=n(269),$=n(139),E=n(29),b=n(23),R=n(206),C=n(33),O=n(410),P=n(412).toArray,M=C("asyncIterator"),F=d(R("Array","values")),U=d(F([]).next),B=function(){return new z(this)},z=function(j){this.iterator=F(j)};z.prototype.next=function(){return U(this.iterator)},x.exports=function(G){var V=this,X=arguments.length,Y=X>1?arguments[1]:void 0,W=X>2?arguments[2]:void 0;return new(b("Promise"))(function(J){var tt=h(G);Y!==void 0&&(Y=u(Y,W));var k=E(tt,M),_=k?void 0:$(tt)||B,et=g(V)?new V:[],rt=k?m(tt,k):new O(S(T(tt,_)));J(P(rt,Y,et))})}}),(function(x,I,n){var u=n(8),d=n(410),h=n(46),g=n(138),m=n(269),T=n(29),S=n(33),$=S("asyncIterator");x.exports=function(E,b){var R=arguments.length<2?T(E,$):b;return R?h(u(R,E)):new d(m(g(E)))}}),(function(x,I,n){var u=n(8),d=n(46),h=n(71),g=n(29),m=n(216),T=n(51),S=n(140),$=n(23),E=n(411),b=n(178),R=$("Promise"),C="AsyncFromSyncIterator",O=T.set,P=T.getterFor(C),M=function(U,B,z,j,G){var V=U.done;R.resolve(U.value).then(function(X){B(b(X,V))},function(X){if(!V&&G)try{S(j,"throw",X)}catch(Y){X=Y}z(X)})},F=function(B){B.type=C,O(this,B)};F.prototype=m(h(E),{next:function(){var B=P(this);return new R(function(z,j){var G=d(u(B.next,B.iterator));M(G,z,j,B.iterator,!0)})},return:function(){var U=P(this).iterator;return new R(function(B,z){var j=g(U,"return");if(j===void 0)return B(b(void 0,!0));var G=d(u(j,U));M(G,B,z,U)})}}),x.exports=F}),(function(x,I,n){var u=n(4),d=n(35),h=n(21),g=n(71),m=n(133),T=n(47),S=n(33),$=n(36),E="USE_FUNCTION_CONSTRUCTOR",b=S("asyncIterator"),R=u.AsyncIterator,C=d.AsyncIteratorPrototype,O,P;if(C)O=C;else if(h(R))O=R.prototype;else if(d[E]||u[E])try{P=m(m(m(Function("return async function*(){}()")()))),m(P)===Object.prototype&&(O=P)}catch(M){}O?$&&(O=g(O)):O={},h(O[b])||T(O,b,function(){return this}),x.exports=O}),(function(x,I,n){var u=n(8),d=n(30),h=n(46),g=n(20),m=n(146),T=n(23),S=n(269),$=n(413),E=function(b){var R=b===0,C=b===1,O=b===2,P=b===3;return function(M,F,U){h(M);var B=F!==void 0;(B||!R)&&d(F);var z=S(M),j=T("Promise"),G=z.iterator,V=z.next,X=0;return new j(function(Y,W){var J=function(k){$(G,W,k,W)},tt=function(){try{if(B)try{m(X)}catch(k){J(k)}j.resolve(h(u(V,G))).then(function(k){try{if(h(k).done)R?(U.length=X,Y(U)):Y(P?!1:O||void 0);else{var _=k.value;try{if(B){var et=F(_,X),rt=function(at){if(C)tt();else if(O)at?tt():$(G,Y,!1,W);else if(R)try{U[X++]=at,tt()}catch(ut){J(ut)}else at?$(G,Y,P||_,W):tt()};g(et)?j.resolve(et).then(rt,J):rt(et)}else U[X++]=_,tt()}catch(at){J(at)}}}catch(at){W(at)}},W)}catch(k){W(k)}};tt()})}};x.exports={toArray:E(0),forEach:E(1),every:E(2),some:E(3),find:E(4)}}),(function(x,I,n){var u=n(8),d=n(23),h=n(29);x.exports=function(g,m,T,S){try{var $=h(g,"return");if($)return d("Promise").resolve(u($,g)).then(function(){m(T)},function(E){S(E)})}catch(E){return S(E)}m(T)}}),(function(x,I,n){var u=n(3),d=n(6),h=n(23),g=n(30),m=n(217),T=n(47),S=n(216),$=n(77),E=n(33),b=n(51),R=n(256),C=n(27),O=h("Promise"),P=h("SuppressedError"),M=ReferenceError,F=E("asyncDispose"),U=E("toStringTag"),B="AsyncDisposableStack",z=b.set,j=b.getterFor(B),G="async-dispose",V="disposed",X="pending",Y=function(k){var _=j(k);if(_.state===V)throw new M(B+" already disposed");return _},W=function(){z(m(this,J),{type:B,state:X,stack:[]}),d||(this.disposed=!1)},J=W.prototype;S(J,{disposeAsync:function(){var _=this;return new O(function(et,rt){var at=j(_);if(at.state===V)return et(void 0);at.state=V,d||(_.disposed=!0);var ut=at.stack,xt=ut.length,pt=!1,gt,It=function(Mt){pt?gt=new P(Mt,gt):(pt=!0,gt=Mt),At()},At=function(){if(xt){var Mt=ut[--xt];ut[xt]=null;try{O.resolve(Mt()).then(At,It)}catch(ct){It(ct)}}else at.stack=null,pt?rt(gt):et(void 0)};At()})},use:function(_){return R(Y(this),_,G),_},adopt:function(_,et){var rt=Y(this);return g(et),R(rt,void 0,G,function(){return et(_)}),_},defer:function(_){var et=Y(this);g(_),R(et,void 0,G,_)},move:function(){var _=Y(this),et=new W;return j(et).stack=_.stack,_.stack=[],_.state=V,d||(this.disposed=!0),et}}),d&&$(J,"disposed",{configurable:!0,get:function(){return j(this).state===V}}),T(J,F,J.disposeAsync,{name:"disposeAsync"}),T(J,U,B,{nonWritable:!0});var tt=C&&C<136;u({global:!0,constructor:!0,forced:tt},{AsyncDisposableStack:W})}),(function(x,I,n){var u=n(8),d=n(47),h=n(23),g=n(29),m=n(38),T=n(33),S=n(411),$=T("asyncDispose"),E=h("Promise");m(S,$)||d(S,$,function(){var b=this;return new E(function(R,C){var O=g(b,"return");O?E.resolve(u(O,b)).then(function(){R(void 0)},C):R(void 0)})})}),(function(x,I,n){var u=n(3),d=n(94),h=n(30),g=n(46),m=n(7),T=!m(function(){Reflect.apply(function(){})});u({target:"Reflect",stat:!0,forced:T},{apply:function($,E,b){return d(h($),E,g(b))}})}),(function(x,I,n){var u=n(3),d=n(23),h=n(94),g=n(259),m=n(381),T=n(46),S=n(20),$=n(71),E=n(7),b=d("Reflect","construct"),R=Object.prototype,C=[].push,O=E(function(){function F(){}return!(b(function(){},[],F)instanceof F)}),P=!E(function(){b(function(){})}),M=O||P;u({target:"Reflect",stat:!0,forced:M,sham:M},{construct:function(U,B){m(U),T(B);var z=arguments.length<3?U:m(arguments[2]);if(P&&!O)return b(U,B,z);if(U===z){switch(B.length){case 0:return new U;case 1:return new U(B[0]);case 2:return new U(B[0],B[1]);case 3:return new U(B[0],B[1],B[2]);case 4:return new U(B[0],B[1],B[2],B[3])}var j=[null];return h(C,j,B),new(h(g,U,j))}var G=z.prototype,V=$(S(G)?G:R),X=h(U,V,B);return S(X)?X:V}})}),(function(x,I,n){var u=n(3),d=n(6),h=n(46),g=n(18),m=n(44),T=n(7),S=T(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});u({target:"Reflect",stat:!0,forced:S,sham:!d},{defineProperty:function(E,b,R){h(E);var C=g(b);h(R);try{return m.f(E,C,R),!0}catch(O){return!1}}})}),(function(x,I,n){var u=n(3),d=n(46),h=n(5).f;u({target:"Reflect",stat:!0},{deleteProperty:function(m,T){var S=h(d(m),T);return S&&!S.configurable?!1:delete m[T]}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(20),g=n(46),m=n(421),T=n(5),S=n(133);function $(E,b){var R=arguments.length<3?E:arguments[2],C,O;if(g(E)===R)return E[b];if(C=T.f(E,b),C)return m(C)?C.value:C.get===void 0?void 0:d(C.get,R);if(h(O=S(E)))return $(O,b,R)}u({target:"Reflect",stat:!0},{get:$})}),(function(x,I,n){var u=n(38);x.exports=function(d){return d!==void 0&&(u(d,"value")||u(d,"writable"))}}),(function(x,I,n){var u=n(3),d=n(6),h=n(46),g=n(5);u({target:"Reflect",stat:!0,sham:!d},{getOwnPropertyDescriptor:function(T,S){return g.f(h(T),S)}})}),(function(x,I,n){var u=n(3),d=n(46),h=n(133),g=n(134);u({target:"Reflect",stat:!0,sham:!g},{getPrototypeOf:function(T){return h(d(T))}})}),(function(x,I,n){var u=n(3);u({target:"Reflect",stat:!0},{has:function(h,g){return g in h}})}),(function(x,I,n){var u=n(3),d=n(46),h=n(295);u({target:"Reflect",stat:!0},{isExtensible:function(m){return d(m),h(m)}})}),(function(x,I,n){var u=n(3),d=n(56);u({target:"Reflect",stat:!0},{ownKeys:d})}),(function(x,I,n){var u=n(3),d=n(23),h=n(46),g=n(289);u({target:"Reflect",stat:!0,sham:!g},{preventExtensions:function(T){h(T);try{var S=d("Object","preventExtensions");return S&&S(T),!0}catch($){return!1}}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(46),g=n(20),m=n(421),T=n(7),S=n(44),$=n(5),E=n(133),b=n(11);function R(O,P,M){var F=arguments.length<4?O:arguments[3],U=$.f(h(O),P),B,z,j;if(!U){if(g(z=E(O)))return R(z,P,M,F);U=b(0)}if(m(U)){if(U.writable===!1||!g(F))return!1;if(B=$.f(F,P)){if(B.get||B.set||B.writable===!1)return!1;B.value=M,S.f(F,P,B)}else S.f(F,P,b(0,M))}else{if(j=U.set,j===void 0)return!1;d(j,F,M)}return!0}var C=T(function(){var O=function(){},P=S.f(new O,"a",{configurable:!0});return Reflect.set(O.prototype,"a",1,P)!==!1});u({target:"Reflect",stat:!0,forced:C},{set:R})}),(function(x,I,n){var u=n(3),d=n(46),h=n(119),g=n(117);g&&u({target:"Reflect",stat:!0},{setPrototypeOf:function(T,S){d(T),h(S);try{return g(T,S),!0}catch($){return!1}}})}),(function(x,I,n){var u=n(3),d=n(4),h=n(82);u({global:!0},{Reflect:{}}),h(d.Reflect,"Reflect",!0)}),(function(x,I,n){var u=n(6),d=n(4),h=n(14),g=n(67),m=n(122),T=n(43),S=n(71),$=n(57).f,E=n(24),b=n(432),R=n(68),C=n(433),O=n(436),P=n(121),M=n(47),F=n(7),U=n(38),B=n(51).enforce,z=n(200),j=n(33),G=n(437),V=n(438),X=j("match"),Y=d.RegExp,W=Y.prototype,J=d.SyntaxError,tt=h(W.exec),k=h("".charAt),_=h("".replace),et=h("".indexOf),rt=h("".slice),at=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ut=/a/g,xt=/a/g,pt=new Y(ut)!==ut,gt=O.MISSED_STICKY,It=O.UNSUPPORTED_Y,At=u&&(!pt||gt||G||V||F(function(){return xt[X]=!1,Y(ut)!==ut||Y(xt)===xt||String(Y(ut,"i"))!=="/a/i"})),Mt=function(Gt){for(var Ot=Gt.length,jt=0,re="",ie=!1,ne;jt<=Ot;jt++){if(ne=k(Gt,jt),ne==="\\"){re+=ne+k(Gt,++jt);continue}!ie&&ne==="."?re+="[\\s\\S]":(ne==="["?ie=!0:ne==="]"&&(ie=!1),re+=ne)}return re},ct=function(Gt){for(var Ot=Gt.length,jt=0,re="",ie=[],ne=S(null),ae=!1,Ae=!1,Ie=0,pe="",le;jt<=Ot;jt++){if(le=k(Gt,jt),le==="\\")le+=k(Gt,++jt);else if(le==="]")ae=!1;else if(!ae)switch(!0){case le==="[":ae=!0;break;case le==="(":if(re+=le,rt(Gt,jt+1,jt+3)==="?:")continue;tt(at,rt(Gt,jt+1))&&(jt+=2,Ae=!0),Ie++;continue;case(le===">"&&Ae):if(pe===""||U(ne,pe))throw new J("Invalid capture group name");ne[pe]=!0,ie[ie.length]=[pe,Ie],Ae=!1,pe="";continue}Ae?pe+=le:re+=le}return[re,ie]};if(g("RegExp",At)){for(var lt=function(Ot,jt){var re=E(W,this),ie=b(Ot),ne=jt===void 0,ae=[],Ae=Ot,Ie,pe,le,be,Se,me;if(!re&&ie&&ne&&Ot.constructor===lt)return Ot;if((ie||E(W,Ot))&&(Ot=Ot.source,ne&&(jt=C(Ae))),Ot=Ot===void 0?"":R(Ot),jt=jt===void 0?"":R(jt),Ae=Ot,G&&"dotAll"in ut&&(pe=!!jt&&et(jt,"s")>-1,pe&&(jt=_(jt,/s/g,""))),Ie=jt,gt&&"sticky"in ut&&(le=!!jt&&et(jt,"y")>-1,le&&It&&(jt=_(jt,/y/g,""))),V&&(be=ct(Ot),Ot=be[0],ae=be[1]),Se=m(Y(Ot,jt),re?this:W,lt),(pe||le||ae.length)&&(me=B(Se),pe&&(me.dotAll=!0,me.raw=lt(Mt(Ot),Ie)),le&&(me.sticky=!0),ae.length&&(me.groups=ae)),Ot!==Ae)try{T(Se,"source",Ae===""?"(?:)":Ae)}catch(wt){}return Se},Ct=$(Y),Nt=0;Ct.length>Nt;)P(lt,Y,Ct[Nt++]);W.constructor=lt,lt.prototype=W,M(d,"RegExp",lt,{constructor:!0})}z("RegExp")}),(function(x,I,n){var u=n(20),d=n(15),h=n(33),g=h("match");x.exports=function(m){var T;return u(m)&&((T=m[g])!==void 0?!!T:d(m)==="RegExp")}}),(function(x,I,n){var u=n(8),d=n(38),h=n(24),g=n(434),m=n(435),T=RegExp.prototype;x.exports=g.correct?function(S){return S.flags}:function(S){return!g.correct&&h(T,S)&&!d(S,"flags")?u(m,S):S.flags}}),(function(x,I,n){var u=n(4),d=n(7),h=u.RegExp,g=!d(function(){var m=!0;try{h(".","d")}catch(O){m=!1}var T={},S="",$=m?"dgimsy":"gimsy",E=function(O,P){Object.defineProperty(T,O,{get:function(){return S+=P,!0}})},b={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};m&&(b.hasIndices="d");for(var R in b)E(R,b[R]);var C=Object.getOwnPropertyDescriptor(h.prototype,"flags").get.call(T);return C!==$||S!==$});x.exports={correct:g}}),(function(x,I,n){var u=n(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,I,n){var u=n(7),d=n(4),h=d.RegExp,g=u(function(){var S=h("a","y");return S.lastIndex=2,S.exec("abcd")!==null}),m=g||u(function(){return!h("a","y").sticky}),T=g||u(function(){var S=h("^r","gy");return S.lastIndex=2,S.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:m,UNSUPPORTED_Y:g}}),(function(x,I,n){var u=n(7),d=n(4),h=d.RegExp;x.exports=u(function(){var g=h(".","s");return!(g.dotAll&&g.test(`
|
|
30
|
-
`)&&
|
|
31
|
-
`)&&(At="(?: "+At+")",ct=" "+ct,Mt++),_=new RegExp("^(?:"+At+")",It)),j&&(_=new RegExp("^"+At+"$(?!\\s)",It)),B&&(et=Y.lastIndex),rt=u(C,gt?_:Y,ct),gt?rt?(rt.input=U(rt.input,Mt),rt[0]=U(rt[0],Mt),rt.index=Y.lastIndex,Y.lastIndex+=rt[0].length):Y.lastIndex=0:B&&rt&&(Y.lastIndex=Y.global?rt.index+rt[0].length:et),j&&rt&&rt.length>1&&u(R,rt[0],_,function(){for(at=1;at<arguments.length-2;at++)arguments[at]===void 0&&(rt[at]=void 0)}),rt&&pt)for(rt.groups=ut=S(null),at=0;at<pt.length;at++)xt=pt[at],ut[xt[0]]=rt[xt[1]];return rt}),x.exports=O}),(function(x,I,n){var u=n(6),d=n(77),h=n(434),g=n(435);u&&!h.correct&&(d(RegExp.prototype,"flags",{configurable:!0,get:g}),h.correct=!0)}),(function(x,I,n){var u=n(6),d=n(436).MISSED_STICKY,h=n(15),g=n(77),m=n(51).get,T=RegExp.prototype,S=TypeError;u&&d&&g(T,"sticky",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!m(this).sticky;throw new S("Incompatible receiver, RegExp required")}}})}),(function(x,I,n){n(442);var u=n(3),d=n(8),h=n(21),g=n(46),m=n(68),T=(function(){var $=!1,E=/[ac]/;return E.exec=function(){return $=!0,/./.exec.apply(this,arguments)},E.test("abc")===!0&&$})(),S=/./.test;u({target:"RegExp",proto:!0,forced:!T},{test:function($){var E=g(this),b=m($),R=E.exec;if(!h(R))return d(S,E,b);var C=d(R,E,b);return C===null?!1:(g(C),!0)}})}),(function(x,I,n){var u=n(49).PROPER,d=n(47),h=n(46),g=n(68),m=n(7),T=n(433),S="toString",$=RegExp.prototype,E=$[S],b=m(function(){return E.call({source:"a",flags:"b"})!=="/a/b"}),R=u&&E.name!==S;(b||R)&&d($,S,function(){var O=h(this),P=g(O.source),M=g(T(O));return"/"+P+"/"+M},{unsafe:!0})}),(function(x,I,n){n(449)}),(function(x,I,n){var u=n(293),d=n(297);u("Set",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)}),(function(x,I,n){var u=n(3),d=n(451),h=n(7),g=n(459),m=!g("difference",function(S){return S.size===0}),T=m||h(function(){var S={size:1,has:function(){return!0},keys:function(){var E=0;return{next:function(){var b=E++>1;return $.has(1)&&$.clear(),{done:b,value:2}}}}},$=new Set([1,2,3,4]);return $.difference(S).size!==3});u({target:"Set",proto:!0,real:!0,forced:T},{difference:d})}),(function(x,I,n){var u=n(452),d=n(453),h=n(454),g=n(457),m=n(458),T=n(455),S=n(456),$=d.has,E=d.remove;x.exports=function(R){var C=u(this),O=m(R),P=h(C);return g(C)<=O.size?T(C,function(M){O.includes(M)&&E(P,M)}):S(O.getIterator(),function(M){$(P,M)&&E(P,M)}),P}}),(function(x,I,n){var u=n(453).has;x.exports=function(d){return u(d),d}}),(function(x,I,n){var u=n(14),d=Set.prototype;x.exports={Set,add:u(d.add),has:u(d.has),remove:u(d.delete),proto:d}}),(function(x,I,n){var u=n(453),d=n(455),h=u.Set,g=u.add;x.exports=function(m){var T=new h;return d(m,function(S){g(T,S)}),T}}),(function(x,I,n){var u=n(14),d=n(456),h=n(453),g=h.Set,m=h.proto,T=u(m.forEach),S=u(m.keys),$=S(new g).next;x.exports=function(E,b,R){return R?d({iterator:S(E),next:$},b):T(E,b)}}),(function(x,I,n){var u=n(8);x.exports=function(d,h,g){for(var m=g?d:d.iterator,T=d.next,S,$;!(S=u(T,m)).done;)if($=h(S.value),$!==void 0)return $}}),(function(x,I,n){var u=n(118),d=n(453);x.exports=u(d.proto,"size","get")||function(h){return h.size}}),(function(x,I,n){var u=n(30),d=n(46),h=n(8),g=n(61),m=n(269),T="Invalid size",S=RangeError,$=TypeError,E=Math.max,b=function(R,C){this.set=R,this.size=E(C,0),this.has=u(R.has),this.keys=u(R.keys)};b.prototype={getIterator:function(){return m(d(h(this.keys,this.set)))},includes:function(R){return h(this.has,this.set,R)}},x.exports=function(R){d(R);var C=+R.size;if(C!==C)throw new $(T);var O=g(C);if(O<0)throw new S(T);return new b(R,O)}}),(function(x,I,n){var u=n(23),d=function(g){return{size:g,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},h=function(g){return{size:g,has:function(){return!0},keys:function(){throw new Error("e")}}};x.exports=function(g,m){var T=u("Set");try{new T()[g](d(0));try{return new T()[g](d(-1)),!1}catch($){if(!m)return!0;try{return new T()[g](h(-1/0)),!1}catch(E){var S=new T([1,2]);return m(S[g](h(1/0)))}}}catch($){return!1}}}),(function(x,I,n){var u=n(3),d=n(7),h=n(461),g=n(459),m=!g("intersection",function(T){return T.size===2&&T.has(1)&&T.has(2)})||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:m},{intersection:h})}),(function(x,I,n){var u=n(452),d=n(453),h=n(457),g=n(458),m=n(455),T=n(456),S=d.Set,$=d.add,E=d.has;x.exports=function(R){var C=u(this),O=g(R),P=new S;return h(C)>O.size?T(O.getIterator(),function(M){E(C,M)&&$(P,M)}):m(C,function(M){O.includes(M)&&$(P,M)}),P}}),(function(x,I,n){var u=n(3),d=n(463),h=n(459),g=!h("isDisjointFrom",function(m){return!m});u({target:"Set",proto:!0,real:!0,forced:g},{isDisjointFrom:d})}),(function(x,I,n){var u=n(452),d=n(453).has,h=n(457),g=n(458),m=n(455),T=n(456),S=n(140);x.exports=function(E){var b=u(this),R=g(E);if(h(b)<=R.size)return m(b,function(O){if(R.includes(O))return!1},!0)!==!1;var C=R.getIterator();return T(C,function(O){if(d(b,O))return S(C,"normal",!1)})!==!1}}),(function(x,I,n){var u=n(3),d=n(465),h=n(459),g=!h("isSubsetOf",function(m){return m});u({target:"Set",proto:!0,real:!0,forced:g},{isSubsetOf:d})}),(function(x,I,n){var u=n(452),d=n(457),h=n(455),g=n(458);x.exports=function(T){var S=u(this),$=g(T);return d(S)>$.size?!1:h(S,function(E){if(!$.includes(E))return!1},!0)!==!1}}),(function(x,I,n){var u=n(3),d=n(467),h=n(459),g=!h("isSupersetOf",function(m){return!m});u({target:"Set",proto:!0,real:!0,forced:g},{isSupersetOf:d})}),(function(x,I,n){var u=n(452),d=n(453).has,h=n(457),g=n(458),m=n(456),T=n(140);x.exports=function($){var E=u(this),b=g($);if(h(E)<b.size)return!1;var R=b.getIterator();return m(R,function(C){if(!d(E,C))return T(R,"normal",!1)})!==!1}}),(function(x,I,n){var u=n(3),d=n(469),h=n(470),g=n(459),m=!g("symmetricDifference")||!h("symmetricDifference");u({target:"Set",proto:!0,real:!0,forced:m},{symmetricDifference:d})}),(function(x,I,n){var u=n(452),d=n(453),h=n(454),g=n(458),m=n(456),T=d.add,S=d.has,$=d.remove;x.exports=function(b){var R=u(this),C=g(b).getIterator(),O=h(R);return m(C,function(P){S(R,P)?$(O,P):T(O,P)}),O}}),(function(x){x.exports=function(I){try{var n=new Set,u={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return n.clear(),n.add(4),function(){return{done:!0}}}})}},d=n[I](u);return d.size===1&&d.values().next().value===4}catch(h){return!1}}}),(function(x,I,n){var u=n(3),d=n(472),h=n(470),g=n(459),m=!g("union")||!h("union");u({target:"Set",proto:!0,real:!0,forced:m},{union:d})}),(function(x,I,n){var u=n(452),d=n(453).add,h=n(454),g=n(458),m=n(456);x.exports=function(S){var $=u(this),E=g(S).getIterator(),b=h($);return m(E,function(R){d(b,R)}),b}}),(function(x,I,n){var u=n(3),d=n(14),h=n(16),g=n(61),m=n(68),T=n(7),S=d("".charAt),$=T(function(){return"\u{20BB7}".at(-2)!=="\uD842"});u({target:"String",proto:!0,forced:$},{at:function(b){var R=m(h(this)),C=R.length,O=g(b),P=O>=0?O:C+O;return P<0||P>=C?void 0:S(R,P)}})}),(function(x,I,n){var u=n(3),d=n(475).codeAt;u({target:"String",proto:!0},{codePointAt:function(g){return d(this,g)}})}),(function(x,I,n){var u=n(14),d=n(61),h=n(68),g=n(16),m=u("".charAt),T=u("".charCodeAt),S=u("".slice),$=function(E){return function(b,R){var C=h(g(b)),O=d(R),P=C.length,M,F;return O<0||O>=P?E?"":void 0:(M=T(C,O),M<55296||M>56319||O+1===P||(F=T(C,O+1))<56320||F>57343?E?m(C,O):M:E?S(C,O,O+2):(M-55296<<10)+(F-56320)+65536)}};x.exports={codeAt:$(!1),charAt:$(!0)}}),(function(x,I,n){var u=n(3),d=n(85),h=n(5).f,g=n(64),m=n(68),T=n(477),S=n(16),$=n(478),E=n(36),b=d("".slice),R=Math.min,C=$("endsWith"),O=!E&&!C&&!!(function(){var P=h(String.prototype,"endsWith");return P&&!P.writable})();u({target:"String",proto:!0,forced:!O&&!C},{endsWith:function(M){var F=m(S(this));T(M);var U=arguments.length>1?arguments[1]:void 0,B=F.length,z=U===void 0?B:R(g(U),B),j=m(M);return b(F,z-j.length,z)===j}})}),(function(x,I,n){var u=n(432),d=TypeError;x.exports=function(h){if(u(h))throw new d("The method doesn't accept regular expressions");return h}}),(function(x,I,n){var u=n(33),d=u("match");x.exports=function(h){var g=/./;try{"/./"[h](g)}catch(m){try{return g[d]=!1,"/./"[h](g)}catch(T){}}return!1}}),(function(x,I,n){var u=n(3),d=n(14),h=n(60),g=RangeError,m=String.fromCharCode,T=String.fromCodePoint,S=d([].join),$=!!T&&T.length!==1;u({target:"String",stat:!0,arity:1,forced:$},{fromCodePoint:function(b){for(var R=[],C=arguments.length,O=0,P;C>O;){if(P=+arguments[O++],h(P,1114111)!==P)throw new g(P+" is not a valid code point");R[O]=P<65536?m(P):m(((P-=65536)>>10)+55296,P%1024+56320)}return S(R,"")}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(477),g=n(16),m=n(68),T=n(478),S=d("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(E){return!!~S(m(g(this)),m(h(E)),arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(16),g=n(68),m=d("".charCodeAt);u({target:"String",proto:!0},{isWellFormed:function(){for(var S=g(h(this)),$=S.length,E=0;E<$;E++){var b=m(S,E);if((b&63488)===55296&&(b>=56320||++E>=$||(m(S,E)&64512)!==56320))return!1}return!0}})}),(function(x,I,n){var u=n(475).charAt,d=n(68),h=n(51),g=n(175),m=n(178),T="String Iterator",S=h.set,$=h.getterFor(T);g(String,"String",function(E){S(this,{type:T,string:d(E),index:0})},function(){var b=$(this),R=b.string,C=b.index,O;return C>=R.length?m(void 0,!0):(O=u(R,C),b.index+=O.length,m(O,!1))})}),(function(x,I,n){var u=n(8),d=n(14),h=n(484),g=n(46),m=n(20),T=n(64),S=n(68),$=n(16),E=n(29),b=n(485),R=n(433),C=n(486),O=d("".indexOf);h("match",function(P,M,F){return[function(B){var z=$(this),j=m(B)?E(B,P):void 0;return j?u(j,B,z):new RegExp(B)[P](S(z))},function(U){var B=g(this),z=S(U),j=F(M,B,z);if(j.done)return j.value;var G=S(R(B));if(O(G,"g")===-1)return C(B,z);var V=O(G,"u")!==-1;B.lastIndex=0;for(var X=[],Y=0,W;(W=C(B,z))!==null;){var J=S(W[0]);X[Y]=J,J===""&&(B.lastIndex=b(z,T(B.lastIndex),V)),Y++}return Y===0?null:X}]})}),(function(x,I,n){n(442);var u=n(8),d=n(47),h=n(443),g=n(7),m=n(33),T=n(43),S=m("species"),$=RegExp.prototype;x.exports=function(E,b,R,C){var O=m(E),P=!g(function(){var B={};return B[O]=function(){return 7},""[E](B)!==7}),M=P&&!g(function(){var B=!1,z=/a/;if(E==="split"){var j={};j[S]=function(){return z},z={constructor:j,flags:""},z[O]=/./[O]}return z.exec=function(){return B=!0,null},z[O](""),!B});if(!P||!M||R){var F=/./[O],U=b(O,""[E],function(B,z,j,G,V){var X=z.exec;return X===h||X===$.exec?P&&!V?{done:!0,value:u(F,z,j,G)}:{done:!0,value:u(B,j,z,G)}:{done:!1}});d(String.prototype,E,U[0]),d($,O,U[1])}C&&T($[O],"sham",!0)}}),(function(x,I,n){var u=n(475).charAt;x.exports=function(d,h,g){return h+(g?u(d,h).length:1)}}),(function(x,I,n){var u=n(8),d=n(46),h=n(21),g=n(15),m=n(443),T=TypeError;x.exports=function(S,$){var E=S.exec;if(h(E)){var b=u(E,S,$);return b!==null&&d(b),b}if(g(S)==="RegExp")return u(m,S,$);throw new T("RegExp#exec called on incompatible receiver")}}),(function(x,I,n){var u=n(3),d=n(8),h=n(85),g=n(176),m=n(178),T=n(16),S=n(64),$=n(68),E=n(46),b=n(20),R=n(15),C=n(432),O=n(433),P=n(29),M=n(47),F=n(7),U=n(33),B=n(380),z=n(485),j=n(486),G=n(51),V=n(36),X=U("matchAll"),Y="RegExp String",W=Y+" Iterator",J=G.set,tt=G.getterFor(W),k=RegExp.prototype,_=TypeError,et=h("".indexOf),rt=h("".matchAll),at=!!rt&&!F(function(){rt("a",/./)}),ut=g(function(gt,It,At,Mt){J(this,{type:W,regexp:gt,string:It,global:At,unicode:Mt,done:!1})},Y,function(){var gt=tt(this);if(gt.done)return m(void 0,!0);var It=gt.regexp,At=gt.string,Mt=j(It,At);return Mt===null?(gt.done=!0,m(void 0,!0)):gt.global?($(Mt[0])===""&&(It.lastIndex=z(At,S(It.lastIndex),gt.unicode)),m(Mt,!1)):(gt.done=!0,m(Mt,!1))}),xt=function(pt){var gt=E(this),It=$(pt),At=B(gt,RegExp),Mt=$(O(gt)),ct,lt,Ct;return ct=new At(At===RegExp?gt.source:gt,Mt),lt=!!~et(Mt,"g"),Ct=!!~et(Mt,"u"),ct.lastIndex=S(gt.lastIndex),new ut(ct,It,lt,Ct)};u({target:"String",proto:!0,forced:at},{matchAll:function(gt){var It=T(this),At,Mt,ct,lt;if(b(gt)){if(C(gt)&&(At=$(T(O(gt))),!~et(At,"g")))throw new _("`.matchAll` does not allow non-global regexes");if(at)return rt(It,gt);if(ct=P(gt,X),ct===void 0&&V&&R(gt)==="RegExp"&&(ct=xt),ct)return d(ct,gt,It)}else if(at)return rt(It,gt);return Mt=$(It),lt=new RegExp(gt,"g"),V?d(xt,lt,Mt):lt[X](Mt)}}),V||X in k||M(k,X,xt)}),(function(x,I,n){var u=n(3),d=n(249).end,h=n(489);u({target:"String",proto:!0,forced:h},{padEnd:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(u)}),(function(x,I,n){var u=n(3),d=n(249).start,h=n(489);u({target:"String",proto:!0,forced:h},{padStart:function(m){return d(this,m,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(12),g=n(39),m=n(68),T=n(63),S=d([].push),$=d([].join);u({target:"String",stat:!0},{raw:function(b){var R=h(g(b).raw),C=T(R);if(!C)return"";for(var O=arguments.length,P=[],M=0;;){if(S(P,m(R[M++])),M===C)return $(P,"");M<O&&S(P,m(arguments[M]))}}})}),(function(x,I,n){var u=n(3),d=n(250);u({target:"String",proto:!0},{repeat:d})}),(function(x,I,n){var u=n(94),d=n(8),h=n(14),g=n(484),m=n(7),T=n(46),S=n(21),$=n(20),E=n(61),b=n(64),R=n(68),C=n(16),O=n(485),P=n(29),M=n(494),F=n(433),U=n(486),B=n(33),z=B("replace"),j=Math.max,G=Math.min,V=h([].concat),X=h([].push),Y=h("".indexOf),W=h("".slice),J=function(et){return et===void 0?et:String(et)},tt=(function(){return"a".replace(/./,"$0")==="$0"})(),k=(function(){return/./[z]?/./[z]("a","$0")==="":!1})(),_=!m(function(){var et=/./;return et.exec=function(){var rt=[];return rt.groups={a:"7"},rt},"".replace(et,"$<a>")!=="7"});g("replace",function(et,rt,at){var ut=k?"$":"$0";return[function(pt,gt){var It=C(this),At=$(pt)?P(pt,z):void 0;return At?d(At,pt,It,gt):d(rt,R(It),pt,gt)},function(xt,pt){var gt=T(this),It=R(xt);if(typeof pt=="string"&&Y(pt,ut)===-1&&Y(pt,"$<")===-1){var At=at(rt,gt,It,pt);if(At.done)return At.value}var Mt=S(pt);Mt||(pt=R(pt));var ct=R(F(gt)),lt=Y(ct,"g")!==-1,Ct;lt&&(Ct=Y(ct,"u")!==-1,gt.lastIndex=0);for(var Nt=[],Gt;Gt=U(gt,It),!(Gt===null||(X(Nt,Gt),!lt));){var Ot=R(Gt[0]);Ot===""&&(gt.lastIndex=O(It,b(gt.lastIndex),Ct))}for(var jt="",re=0,ie=0;ie<Nt.length;ie++){Gt=Nt[ie];for(var ne=R(Gt[0]),ae=j(G(E(Gt.index),It.length),0),Ae=[],Ie,pe=1;pe<Gt.length;pe++)X(Ae,J(Gt[pe]));var le=Gt.groups;if(Mt){var be=V([ne],Ae,ae,It);le!==void 0&&X(be,le),Ie=R(u(pt,void 0,be))}else Ie=M(ne,It,ae,Ae,le,pt);ae>=re&&(jt+=W(It,re,ae)+Ie,re=ae+ne.length)}return jt+W(It,re)}]},!_||!tt||k)}),(function(x,I,n){var u=n(14),d=n(39),h=Math.floor,g=u("".charAt),m=u("".replace),T=u("".slice),S=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$=/\$([$&'`]|\d{1,2})/g;x.exports=function(E,b,R,C,O,P){var M=R+E.length,F=C.length,U=$;return O!==void 0&&(O=d(O),U=S),m(P,U,function(B,z){var j;switch(g(z,0)){case"$":return"$";case"&":return E;case"`":return T(b,0,R);case"'":return T(b,M);case"<":j=O[T(z,1,-1)];break;default:var G=+z;if(G===0)return B;if(G>F){var V=h(G/10);return V===0?B:V<=F?C[V-1]===void 0?g(z,1):C[V-1]+g(z,1):B}j=C[G-1]}return j===void 0?"":j})}}),(function(x,I,n){var u=n(3),d=n(8),h=n(14),g=n(16),m=n(21),T=n(20),S=n(432),$=n(68),E=n(29),b=n(433),R=n(494),C=n(33),O=n(36),P=C("replace"),M=TypeError,F=h("".indexOf),U=h("".replace),B=h("".slice),z=Math.max;u({target:"String",proto:!0},{replaceAll:function(G,V){var X=g(this),Y,W,J,tt,k,_,et,rt,at,ut,xt=0,pt="";if(T(G)){if(Y=S(G),Y&&(W=$(g(b(G))),!~F(W,"g")))throw new M("`.replaceAll` does not allow non-global regexes");if(J=E(G,P),J)return d(J,G,X,V);if(O&&Y)return U($(X),G,V)}for(tt=$(X),k=$(G),_=m(V),_||(V=$(V)),et=k.length,rt=z(1,et),at=F(tt,k);at!==-1;)ut=_?$(V(k,at,tt)):R(k,tt,at,[],void 0,V),pt+=B(tt,xt,at)+ut,xt=at+et,at=at+rt>tt.length?-1:F(tt,k,at+rt);return xt<tt.length&&(pt+=B(tt,xt)),pt}})}),(function(x,I,n){var u=n(8),d=n(484),h=n(46),g=n(20),m=n(16),T=n(362),S=n(68),$=n(29),E=n(486);d("search",function(b,R,C){return[function(P){var M=m(this),F=g(P)?$(P,b):void 0;return F?u(F,P,M):new RegExp(P)[b](S(M))},function(O){var P=h(this),M=S(O),F=C(R,P,M);if(F.done)return F.value;var U=P.lastIndex;T(U,0)||(P.lastIndex=0);var B=E(P,M);return T(P.lastIndex,U)||(P.lastIndex=U),B===null?-1:B.index}]})}),(function(x,I,n){var u=n(8),d=n(14),h=n(484),g=n(46),m=n(20),T=n(16),S=n(380),$=n(485),E=n(64),b=n(68),R=n(29),C=n(486),O=n(436),P=n(7),M=O.UNSUPPORTED_Y,F=4294967295,U=Math.min,B=d([].push),z=d("".slice),j=!P(function(){var V=/(?:)/,X=V.exec;V.exec=function(){return X.apply(this,arguments)};var Y="ab".split(V);return Y.length!==2||Y[0]!=="a"||Y[1]!=="b"}),G="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,X,Y){var W="0".split(void 0,0).length?function(J,tt){return J===void 0&&tt===0?[]:u(X,this,J,tt)}:X;return[function(tt,k){var _=T(this),et=m(tt)?R(tt,V):void 0;return et?u(et,tt,_,k):u(W,b(_),tt,k)},function(J,tt){var k=g(this),_=b(J);if(!G){var et=Y(W,k,_,tt,W!==X);if(et.done)return et.value}var rt=S(k,RegExp),at=k.unicode,ut=(k.ignoreCase?"i":"")+(k.multiline?"m":"")+(k.unicode?"u":"")+(M?"g":"y"),xt=new rt(M?"^(?:"+k.source+")":k,ut),pt=tt===void 0?F:tt>>>0;if(pt===0)return[];if(_.length===0)return C(xt,_)===null?[_]:[];for(var gt=0,It=0,At=[];It<_.length;){xt.lastIndex=M?0:It;var Mt=C(xt,M?z(_,It):_),ct;if(Mt===null||(ct=U(E(xt.lastIndex+(M?It:0)),_.length))===gt)It=$(_,It,at);else{if(B(At,z(_,gt,It)),At.length===pt)return At;for(var lt=1;lt<=Mt.length-1;lt++)if(B(At,Mt[lt]),At.length===pt)return At;It=gt=ct}}return B(At,z(_,gt)),At}]},G||!j,M)}),(function(x,I,n){var u=n(3),d=n(85),h=n(5).f,g=n(64),m=n(68),T=n(477),S=n(16),$=n(478),E=n(36),b=d("".slice),R=Math.min,C=$("startsWith"),O=!E&&!C&&!!(function(){var P=h(String.prototype,"startsWith");return P&&!P.writable})();u({target:"String",proto:!0,forced:!O&&!C},{startsWith:function(M){var F=m(S(this));T(M);var U=g(R(arguments.length>1?arguments[1]:void 0,F.length)),B=m(M);return b(F,U,U+B.length)===B}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(16),g=n(61),m=n(68),T=d("".slice),S=Math.max,$=Math.min,E=!"".substr||"ab".substr(-1)!=="b";u({target:"String",proto:!0,forced:E},{substr:function(R,C){var O=m(h(this)),P=O.length,M=g(R),F,U;return M===1/0&&(M=0),M<0&&(M=S(P+M,0)),F=C===void 0?P:g(C),F<=0||F===1/0?"":(U=$(M+F,P),M>=U?"":T(O,M,U))}})}),(function(x,I,n){var u=n(3),d=n(8),h=n(14),g=n(16),m=n(68),T=n(7),S=Array,$=h("".charAt),E=h("".charCodeAt),b=h([].join),R="".toWellFormed,C="\uFFFD",O=R&&T(function(){return d(R,1)!=="1"});u({target:"String",proto:!0,forced:O},{toWellFormed:function(){var M=m(g(this));if(O)return d(R,M);for(var F=M.length,U=S(F),B=0;B<F;B++){var z=E(M,B);(z&63488)!==55296?U[B]=$(M,B):z>=56320||B+1>=F||(E(M,B+1)&64512)!==56320?U[B]=C:(U[B]=$(M,B),U[++B]=$(M,B))}return b(U,"")}})}),(function(x,I,n){var u=n(3),d=n(325).trim,h=n(502);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})}),(function(x,I,n){var u=n(49).PROPER,d=n(7),h=n(326),g="\u200B\x85\u180E";x.exports=function(m){return d(function(){return!!h[m]()||g[m]()!==g||u&&h[m].name!==m})}}),(function(x,I,n){n(504);var u=n(3),d=n(505);u({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==d},{trimEnd:d})}),(function(x,I,n){var u=n(3),d=n(505);u({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==d},{trimRight:d})}),(function(x,I,n){var u=n(325).end,d=n(502);x.exports=d("trimEnd")?function(){return u(this)}:"".trimEnd}),(function(x,I,n){n(507);var u=n(3),d=n(508);u({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==d},{trimStart:d})}),(function(x,I,n){var u=n(3),d=n(508);u({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==d},{trimLeft:d})}),(function(x,I,n){var u=n(325).start,d=n(502);x.exports=d("trimStart")?function(){return u(this)}:"".trimStart}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("anchor")},{anchor:function(m){return d(this,"a","name",m)}})}),(function(x,I,n){var u=n(14),d=n(16),h=n(68),g=/"/g,m=u("".replace);x.exports=function(T,S,$,E){var b=h(d(T)),R="<"+S;return $!==""&&(R+=" "+$+'="'+m(h(E),g,""")+'"'),R+">"+b+"</"+S+">"}}),(function(x,I,n){var u=n(7);x.exports=function(d){return u(function(){var h=""[d]('"');return h!==h.toLowerCase()||h.split('"').length>3})}}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("big")},{big:function(){return d(this,"big","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("blink")},{blink:function(){return d(this,"blink","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("bold")},{bold:function(){return d(this,"b","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return d(this,"tt","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(m){return d(this,"font","color",m)}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(m){return d(this,"font","size",m)}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("italics")},{italics:function(){return d(this,"i","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("link")},{link:function(m){return d(this,"a","href",m)}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("small")},{small:function(){return d(this,"small","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("strike")},{strike:function(){return d(this,"strike","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("sub")},{sub:function(){return d(this,"sub","","")}})}),(function(x,I,n){var u=n(3),d=n(510),h=n(511);u({target:"String",proto:!0,forced:h("sup")},{sup:function(){return d(this,"sup","","")}})}),(function(x,I,n){var u=n(525);u("Float32",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(3),d=n(4),h=n(8),g=n(6),m=n(526),T=n(225),S=n(214),$=n(217),E=n(11),b=n(43),R=n(331),C=n(64),O=n(218),P=n(527),M=n(528),F=n(18),U=n(38),B=n(69),z=n(20),j=n(22),G=n(71),V=n(24),X=n(117),Y=n(57).f,W=n(529),J=n(83).forEach,tt=n(200),k=n(77),_=n(44),et=n(5),rt=n(205),at=n(51),ut=n(122),xt=at.get,pt=at.set,gt=at.enforce,It=_.f,At=et.f,Mt=d.RangeError,ct=S.ArrayBuffer,lt=ct.prototype,Ct=S.DataView,Nt=T.NATIVE_ARRAY_BUFFER_VIEWS,Gt=T.TYPED_ARRAY_TAG,Ot=T.TypedArray,jt=T.TypedArrayPrototype,re=T.isTypedArray,ie="BYTES_PER_ELEMENT",ne="Wrong length",ae=function(be,Se){k(be,Se,{configurable:!0,get:function(){return xt(this)[Se]}})},Ae=function(be){var Se;return V(lt,be)||(Se=B(be))==="ArrayBuffer"||Se==="SharedArrayBuffer"},Ie=function(be,Se){return re(be)&&!j(Se)&&Se in be&&R(+Se)&&Se>=0},pe=function(Se,me){return me=F(me),Ie(Se,me)?E(2,Se[me]):At(Se,me)},le=function(Se,me,wt){return me=F(me),Ie(Se,me)&&z(wt)&&U(wt,"value")&&!U(wt,"get")&&!U(wt,"set")&&!wt.configurable&&(!U(wt,"writable")||wt.writable)&&(!U(wt,"enumerable")||wt.enumerable)?(Se[me]=wt.value,Se):It(Se,me,wt)};g?(Nt||(et.f=pe,_.f=le,ae(jt,"buffer"),ae(jt,"byteOffset"),ae(jt,"byteLength"),ae(jt,"length")),u({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyDescriptor:pe,defineProperty:le}),x.exports=function(be,Se,me){var wt=be.match(/\d+/)[0]/8,Yt=be+(me?"Clamped":"")+"Array",ue="get"+be,Vt="set"+be,_t=d[Yt],te=_t,Zt=te&&te.prototype,xe={},We=function(Ut,Xt){var Pt=xt(Ut);return Pt.view[ue](Xt*wt+Pt.byteOffset,!0)},ht=function(Ut,Xt,Pt){var ce=xt(Ut);ce.view[Vt](Xt*wt+ce.byteOffset,me?M(Pt):Pt,!0)},Lt=function(Ut,Xt){It(Ut,Xt,{get:function(){return We(this,Xt)},set:function(Pt){return ht(this,Xt,Pt)},enumerable:!0})};Nt?m&&(te=Se(function(Ut,Xt,Pt,ce){return $(Ut,Zt),ut((function(){return z(Xt)?Ae(Xt)?ce!==void 0?new _t(Xt,P(Pt,wt),ce):Pt!==void 0?new _t(Xt,P(Pt,wt)):new _t(Xt):re(Xt)?rt(te,Xt):h(W,te,Xt):new _t(O(Xt))})(),Ut,te)}),X&&X(te,Ot),J(Y(_t),function(Ut){Ut in te||b(te,Ut,_t[Ut])}),te.prototype=Zt):(te=Se(function(Ut,Xt,Pt,ce){$(Ut,Zt);var De=0,Dt=0,Jt,Qt,qt;if(!z(Xt))qt=O(Xt),Qt=qt*wt,Jt=new ct(Qt);else if(Ae(Xt)){Jt=Xt,Dt=P(Pt,wt);var ve=Xt.byteLength;if(ce===void 0){if(ve%wt)throw new Mt(ne);if(Qt=ve-Dt,Qt<0)throw new Mt(ne)}else if(Qt=C(ce)*wt,Qt+Dt>ve)throw new Mt(ne);qt=Qt/wt}else return re(Xt)?rt(te,Xt):h(W,te,Xt);for(pt(Ut,{buffer:Jt,byteOffset:Dt,byteLength:Qt,length:qt,view:new Ct(Jt)});De<qt;)Lt(Ut,De++)}),X&&X(te,Ot),Zt=te.prototype=G(jt)),Zt.constructor!==te&&b(Zt,"constructor",te),gt(Zt).TypedArrayConstructor=te,Gt&&b(Zt,Gt,Yt);var Bt=te!==_t;xe[Yt]=te,u({global:!0,constructor:!0,forced:Bt,sham:!Nt},xe),ie in te||b(te,ie,wt),ie in Zt||b(Zt,ie,wt),tt(Yt)}):x.exports=function(){}}),(function(x,I,n){var u=n(4),d=n(7),h=n(170),g=n(225).NATIVE_ARRAY_BUFFER_VIEWS,m=u.ArrayBuffer,T=u.Int8Array;x.exports=!g||!d(function(){T(1)})||!d(function(){new T(-1)})||!h(function(S){new T,new T(null),new T(1.5),new T(S)},!0)||d(function(){return new T(new m(2),1,void 0).length!==1})}),(function(x,I,n){var u=n(271),d=RangeError;x.exports=function(h,g){var m=u(h);if(m%g)throw new d("Wrong offset");return m}}),(function(x){var I=Math.round;x.exports=function(n){var u=I(n);return u<0?0:u>255?255:u&255}}),(function(x,I,n){var u=n(84),d=n(8),h=n(381),g=n(39),m=n(63),T=n(138),S=n(139),$=n(136),E=n(530),b=n(225).aTypedArrayConstructor,R=n(531);x.exports=function(O){var P=h(this),M=g(O),F=arguments.length,U=F>1?arguments[1]:void 0,B=U!==void 0,z=S(M),j,G,V,X,Y,W,J,tt;if(z&&!$(z))for(J=T(M,z),tt=J.next,M=[];!(W=d(tt,J)).done;)M.push(W.value);for(B&&F>2&&(U=u(U,arguments[2])),G=m(M),V=new(b(P))(G),X=E(V),j=0;G>j;j++)Y=B?U(M[j],j):M[j],V[j]=X?R(Y):+Y;return V}}),(function(x,I,n){var u=n(69);x.exports=function(d){var h=u(d);return h==="BigInt64Array"||h==="BigUint64Array"}}),(function(x,I,n){var u=n(19),d=TypeError;x.exports=function(h){var g=u(h,"number");if(typeof g=="number")throw new d("Can't convert number to bigint");return BigInt(g)}}),(function(x,I,n){var u=n(525);u("Float64",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(525);u("Int8",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(525);u("Int16",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(525);u("Int32",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(525);u("Uint8",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(525);u("Uint8",function(d){return function(g,m,T){return d(this,g,m,T)}},!0)}),(function(x,I,n){var u=n(525);u("Uint16",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(525);u("Uint32",function(d){return function(g,m,T){return d(this,g,m,T)}})}),(function(x,I,n){var u=n(225),d=n(63),h=n(61),g=u.aTypedArray,m=u.exportTypedArrayMethod;m("at",function(S){var $=g(this),E=d($),b=h(S),R=b>=0?b:E+b;return R<0||R>=E?void 0:$[R]})}),(function(x,I,n){var u=n(14),d=n(225),h=n(150),g=u(h),m=d.aTypedArray,T=d.exportTypedArrayMethod;T("copyWithin",function($,E){return g(m(this),$,E,arguments.length>2?arguments[2]:void 0)})}),(function(x,I,n){var u=n(225),d=n(83).every,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("every",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(155),h=n(531),g=n(69),m=n(8),T=n(14),S=n(7),$=u.aTypedArray,E=u.exportTypedArrayMethod,b=T("".slice),R=S(function(){var C=0;return new Int8Array(2).fill({valueOf:function(){return C++}}),C!==1});E("fill",function(O){var P=arguments.length;$(this);var M=b(g(this),0,3)==="Big"?h(O):+O;return m(d,this,M,P>1?arguments[1]:void 0,P>2?arguments[2]:void 0)},R)}),(function(x,I,n){var u=n(225),d=n(83).filter,h=n(545),g=u.aTypedArray,m=u.exportTypedArrayMethod;m("filter",function(S){var $=d(g(this),S,arguments.length>1?arguments[1]:void 0);return h(this,$)})}),(function(x,I,n){var u=n(205),d=n(225).getTypedArrayConstructor;x.exports=function(h,g){return u(d(h),g)}}),(function(x,I,n){var u=n(225),d=n(83).find,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("find",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(83).findIndex,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("findIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(160).findLast,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("findLast",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(160).findLastIndex,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("findLastIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(83).forEach,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("forEach",function(T){d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(526),d=n(225).exportTypedArrayStaticMethod,h=n(529);d("from",h,u)}),(function(x,I,n){var u=n(225),d=n(59).includes,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("includes",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(59).indexOf,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("indexOf",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(4),d=n(7),h=n(14),g=n(225),m=n(174),T=n(33),S=T("iterator"),$=u.Uint8Array,E=h(m.values),b=h(m.keys),R=h(m.entries),C=g.aTypedArray,O=g.exportTypedArrayMethod,P=$&&$.prototype,M=!d(function(){P[S].call([1])}),F=!!P&&P.values&&P[S]===P.values&&P.values.name==="values",U=function(){return E(C(this))};O("entries",function(){return R(C(this))},M),O("keys",function(){return b(C(this))},M),O("values",U,M||!F,{name:"values"}),O(S,U,M||!F,{name:"values"})}),(function(x,I,n){var u=n(225),d=n(14),h=u.aTypedArray,g=u.exportTypedArrayMethod,m=d([].join);g("join",function(S){return m(h(this),S)})}),(function(x,I,n){var u=n(225),d=n(94),h=n(181),g=u.aTypedArray,m=u.exportTypedArrayMethod;m("lastIndexOf",function(S){var $=arguments.length;return d(h,g(this),$>1?[S,arguments[1]]:[S])})}),(function(x,I,n){var u=n(225),d=n(83).map,h=u.aTypedArray,g=u.getTypedArrayConstructor,m=u.exportTypedArrayMethod;m("map",function(S){return d(h(this),S,arguments.length>1?arguments[1]:void 0,function($,E){return new(g($))(E)})})}),(function(x,I,n){var u=n(225),d=n(526),h=u.aTypedArrayConstructor,g=u.exportTypedArrayStaticMethod;g("of",function(){for(var T=0,S=arguments.length,$=new(h(this))(S);S>T;)$[T]=arguments[T++];return $},d)}),(function(x,I,n){var u=n(225),d=n(187).left,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("reduce",function(T){var S=arguments.length;return d(h(this),T,S,S>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=n(187).right,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("reduceRight",function(T){var S=arguments.length;return d(h(this),T,S,S>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(225),d=u.aTypedArray,h=u.exportTypedArrayMethod,g=Math.floor;h("reverse",function(){for(var T=this,S=d(T).length,$=g(S/2),E=0,b;E<$;)b=T[E],T[E++]=T[--S],T[S]=b;return T})}),(function(x,I,n){var u=n(4),d=n(8),h=n(225),g=n(63),m=n(527),T=n(39),S=n(7),$=u.RangeError,E=u.Int8Array,b=E&&E.prototype,R=b&&b.set,C=h.aTypedArray,O=h.exportTypedArrayMethod,P=!S(function(){var F=new Uint8ClampedArray(2);return d(R,F,{length:1,0:3},1),F[1]!==3}),M=P&&h.NATIVE_ARRAY_BUFFER_VIEWS&&S(function(){var F=new E(2);return F.set(1),F.set("2",1),F[0]!==0||F[1]!==2});O("set",function(U){C(this);var B=m(arguments.length>1?arguments[1]:void 0,1),z=T(U);if(P)return d(R,this,z,B);var j=this.length,G=g(z),V=0;if(G+B>j)throw new $("Wrong length");for(;V<G;)this[B+V]=z[V++]},!P||M)}),(function(x,I,n){var u=n(225),d=n(7),h=n(76),g=u.aTypedArray,m=u.getTypedArrayConstructor,T=u.exportTypedArrayMethod,S=d(function(){new Int8Array(1).slice()});T("slice",function(E,b){for(var R=h(g(this),E,b),C=m(this),O=0,P=R.length,M=new C(P);P>O;)M[O]=R[O++];return M},S)}),(function(x,I,n){var u=n(225),d=n(83).some,h=u.aTypedArray,g=u.exportTypedArrayMethod;g("some",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(4),d=n(85),h=n(7),g=n(30),m=n(195),T=n(225),S=n(196),$=n(197),E=n(27),b=n(198),R=T.aTypedArray,C=T.exportTypedArrayMethod,O=u.Uint16Array,P=O&&d(O.prototype.sort),M=!!P&&!(h(function(){P(new O(2),null)})&&h(function(){P(new O(2),{})})),F=!!P&&!h(function(){if(E)return E<74;if(S)return S<67;if($)return!0;if(b)return b<602;var B=new O(516),z=Array(516),j,G;for(j=0;j<516;j++)G=j%4,B[j]=515-j,z[j]=j-2*G+3;for(P(B,function(V,X){return(V/4|0)-(X/4|0)}),j=0;j<516;j++)if(B[j]!==z[j])return!0}),U=function(B){return function(z,j){return B!==void 0?+B(z,j)||0:j!==j?-1:z!==z?1:z===0&&j===0?1/z>0&&1/j<0?1:-1:z>j}};C("sort",function(z){return z!==void 0&&g(z),F?P(this,z):m(R(this),U(z))},!F||M)}),(function(x,I,n){var u=n(225),d=n(64),h=n(60),g=u.aTypedArray,m=u.getTypedArrayConstructor,T=u.exportTypedArrayMethod;T("subarray",function($,E){var b=g(this),R=b.length,C=h($,R),O=m(b);return new O(b.buffer,b.byteOffset+C*b.BYTES_PER_ELEMENT,d((E===void 0?R:h(E,R))-C))})}),(function(x,I,n){var u=n(4),d=n(94),h=n(225),g=n(7),m=n(76),T=u.Int8Array,S=h.aTypedArray,$=h.exportTypedArrayMethod,E=[].toLocaleString,b=!!T&&g(function(){E.call(new T(1))}),R=g(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!g(function(){T.prototype.toLocaleString.call([1,2])});$("toLocaleString",function(){return d(E,b?m(S(this)):S(this),m(arguments))},R)}),(function(x,I,n){var u=n(203),d=n(225),h=d.aTypedArray,g=d.exportTypedArrayMethod,m=d.getTypedArrayConstructor;g("toReversed",function(){return u(h(this),m(this))})}),(function(x,I,n){var u=n(225),d=n(14),h=n(30),g=n(205),m=u.aTypedArray,T=u.getTypedArrayConstructor,S=u.exportTypedArrayMethod,$=d(u.TypedArrayPrototype.sort);S("toSorted",function(b){b!==void 0&&h(b);var R=m(this),C=g(T(R),R);return $(C,b)})}),(function(x,I,n){var u=n(225).exportTypedArrayMethod,d=n(7),h=n(4),g=n(14),m=h.Uint8Array,T=m&&m.prototype||{},S=[].toString,$=g([].join);d(function(){S.call({})})&&(S=function(){return $(this)});var E=T.toString!==S;u("toString",S,E)}),(function(x,I,n){var u=n(212),d=n(225),h=n(530),g=n(61),m=n(531),T=d.aTypedArray,S=d.getTypedArrayConstructor,$=d.exportTypedArrayMethod,E=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(R){return R===8}})(),b=E&&(function(){try{new Int8Array(1).with(-.5,1)}catch(R){return!0}})();$("with",function(R,C){var O=T(this),P=g(R),M=h(O)?m(C):+C;return u(O,S(O),P,M)},!E||b)}),(function(x,I,n){var u=n(3),d=n(4),h=n(205),g=n(573),m=d.Uint8Array,T=!m||!m.fromBase64||!(function(){try{m.fromBase64("a");return}catch(S){}try{m.fromBase64("",null)}catch(S){return!0}})();m&&u({target:"Uint8Array",stat:!0,forced:T},{fromBase64:function($){var E=g($,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return h(m,E.bytes)}})}),(function(x,I,n){var u=n(4),d=n(14),h=n(574),g=n(440),m=n(38),T=n(575),S=n(576),$=n(238),E=T.c2i,b=T.c2iUrl,R=u.SyntaxError,C=u.TypeError,O=d("".charAt),P=function(U,B){for(var z=U.length;B<z;B++){var j=O(U,B);if(j!==" "&&j!==" "&&j!==`
|
|
32
|
-
`&&j!=="\f"&&j!=="\r")break}return B},M=function(U,B,z){var j=U.length;j<4&&(U+=j===2?"AA":"A");var G=(B[O(U,0)]<<18)+(B[O(U,1)]<<12)+(B[O(U,2)]<<6)+B[O(U,3)],V=[G>>16&255,G>>8&255,G&255];if(j===2){if(z&&V[1]!==0)throw new R("Extra bits");return[V[0]]}if(j===3){if(z&&V[2]!==0)throw new R("Extra bits");return[V[0],V[1]]}return V},F=function(U,B,z){for(var j=B.length,G=0;G<j;G++)U[z+G]=B[G];return z+j};x.exports=function(U,B,z,j){g(U),h(B);var G=S(B)==="base64"?E:b,V=B?B.lastChunkHandling:void 0;if(V===void 0&&(V="loose"),V!=="loose"&&V!=="strict"&&V!=="stop-before-partial")throw new C("Incorrect `lastChunkHandling` option");z&&$(z.buffer);var X=U.length,Y=z||[],W=0,J=0,tt="",k=0;if(j)for(;;){if(k=P(U,k),k===X){if(tt.length>0){if(V==="stop-before-partial")break;if(V==="loose"){if(tt.length===1)throw new R("Malformed padding: exactly one additional character");W=F(Y,M(tt,G,!1),W)}else throw new R("Missing padding")}J=X;break}var _=O(U,k);if(++k,_==="="){if(tt.length<2)throw new R("Padding is too early");if(k=P(U,k),tt.length===2){if(k===X){if(V==="stop-before-partial")break;throw new R("Malformed padding: only one =")}O(U,k)==="="&&(++k,k=P(U,k))}if(k<X)throw new R("Unexpected character after padding");W=F(Y,M(tt,G,V==="strict"),W),J=X;break}if(!m(G,_))throw new R("Unexpected character");var et=j-W;if(et===1&&tt.length===2||et===2&&tt.length===3||(tt+=_,tt.length===4&&(W=F(Y,M(tt,G,!1),W),tt="",J=k,W===j)))break}return{bytes:Y,read:J,written:W}}}),(function(x,I,n){var u=n(20),d=String,h=TypeError;x.exports=function(g){if(g===void 0||u(g))return g;throw new h(d(g)+" is not an object or undefined")}}),(function(x){var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=I+"+/",u=I+"-_",d=function(h){for(var g={},m=0;m<64;m++)g[h.charAt(m)]=m;return g};x.exports={i2c:n,c2i:d(n),i2cUrl:u,c2iUrl:d(u)}}),(function(x){var I=TypeError;x.exports=function(n){var u=n&&n.alphabet;if(u===void 0||u==="base64"||u==="base64url")return u||"base64";throw new I("Incorrect `alphabet` option")}}),(function(x,I,n){var u=n(3),d=n(4),h=n(440),g=n(578);d.Uint8Array&&u({target:"Uint8Array",stat:!0},{fromHex:function(T){return g(h(T)).bytes}})}),(function(x,I,n){var u=n(4),d=n(14),h=u.Uint8Array,g=u.SyntaxError,m=u.parseInt,T=Math.min,S=/[^\da-f]/i,$=d(S.exec),E=d("".slice);x.exports=function(b,R){var C=b.length;if(C%2!==0)throw new g("String should be an even number of characters");for(var O=R?T(R.length,C/2):C/2,P=R||new h(O),M=0,F=0;F<O;){var U=E(b,M,M+=2);if($(S,U))throw new g("String should only contain hex characters");P[F++]=m(U,16)}return{bytes:P,read:M}}}),(function(x,I,n){var u=n(3),d=n(4),h=n(573),g=n(580),m=d.Uint8Array,T=!m||!m.prototype.setFromBase64||!(function(){var S=new m([255,255,255,255,255]);try{S.setFromBase64("",null);return}catch($){}try{S.setFromBase64("a");return}catch($){}try{S.setFromBase64("MjYyZg===")}catch($){return S[0]===50&&S[1]===54&&S[2]===50&&S[3]===255&&S[4]===255}})();m&&u({target:"Uint8Array",proto:!0,forced:T},{setFromBase64:function($){g(this);var E=h($,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:E.read,written:E.written}}})}),(function(x,I,n){var u=n(69),d=TypeError;x.exports=function(h){if(u(h)==="Uint8Array")return h;throw new d("Argument is not an Uint8Array")}}),(function(x,I,n){var u=n(3),d=n(4),h=n(440),g=n(580),m=n(238),T=n(578);d.Uint8Array&&u({target:"Uint8Array",proto:!0},{setFromHex:function($){g(this),h($),m(this.buffer);var E=T($,this).read;return{read:E,written:E/2}}})}),(function(x,I,n){var u=n(3),d=n(4),h=n(14),g=n(574),m=n(580),T=n(238),S=n(575),$=n(576),E=S.i2c,b=S.i2cUrl,R=h("".charAt),C=d.Uint8Array,O=!C||!C.prototype.toBase64||!(function(){try{var P=new C;P.toBase64(null)}catch(M){return!0}})();C&&u({target:"Uint8Array",proto:!0,forced:O},{toBase64:function(){var M=m(this),F=arguments.length?g(arguments[0]):void 0,U=$(F)==="base64"?E:b,B=!!F&&!!F.omitPadding;T(this.buffer);for(var z="",j=0,G=M.length,V,X=function(Y){return R(U,V>>6*Y&63)};j+2<G;j+=3)V=(M[j]<<16)+(M[j+1]<<8)+M[j+2],z+=X(3)+X(2)+X(1)+X(0);return j+2===G?(V=(M[j]<<16)+(M[j+1]<<8),z+=X(3)+X(2)+X(1)+(B?"":"=")):j+1===G&&(V=M[j]<<16,z+=X(3)+X(2)+(B?"":"==")),z}})}),(function(x,I,n){var u=n(3),d=n(4),h=n(14),g=n(580),m=n(238),T=h(1.1.toString),S=d.Uint8Array,$=!S||!S.prototype.toHex||!(function(){try{var E=new S([255,255,255,255,255,255,255,255]);return E.toHex()==="ffffffffffffffff"}catch(b){return!1}})();S&&u({target:"Uint8Array",proto:!0,forced:$},{toHex:function(){g(this),m(this.buffer);for(var b="",R=0,C=this.length;R<C;R++){var O=T(this[R],16);b+=O.length===1?"0"+O:O}return b}})}),(function(x,I,n){var u=n(3),d=n(14),h=n(68),g=String.fromCharCode,m=d("".charAt),T=d(/./.exec),S=d("".slice),$=/^[\da-f]{2}$/i,E=/^[\da-f]{4}$/i;u({global:!0},{unescape:function(R){for(var C=h(R),O="",P=C.length,M=0,F,U;M<P;){if(F=m(C,M++),F==="%"){if(m(C,M)==="u"){if(U=S(C,M+1,M+5),T(E,U)){O+=g(parseInt(U,16)),M+=5;continue}}else if(U=S(C,M,M+2),T($,U)){O+=g(parseInt(U,16)),M+=2;continue}}O+=F}return O}})}),(function(x,I,n){n(586)}),(function(x,I,n){var u=n(289),d=n(4),h=n(14),g=n(216),m=n(294),T=n(293),S=n(587),$=n(20),E=n(51).enforce,b=n(7),R=n(52),C=Object,O=Array.isArray,P=C.isExtensible,M=C.isFrozen,F=C.isSealed,U=C.freeze,B=C.seal,z=!d.ActiveXObject&&"ActiveXObject"in d,j,G=function(_){return function(){return _(this,arguments.length?arguments[0]:void 0)}},V=T("WeakMap",G,S),X=V.prototype,Y=h(X.set),W=function(){return u&&b(function(){var _=U([]);return Y(new V,_,1),!M(_)})};if(R)if(z){j=S.getConstructor(G,"WeakMap",!0),m.enable();var J=h(X.delete),tt=h(X.has),k=h(X.get);g(X,{delete:function(_){if($(_)&&!P(_)){var et=E(this);return et.frozen||(et.frozen=new j),J(this,_)||et.frozen.delete(_)}return J(this,_)},has:function(et){if($(et)&&!P(et)){var rt=E(this);return rt.frozen||(rt.frozen=new j),tt(this,et)||rt.frozen.has(et)}return tt(this,et)},get:function(et){if($(et)&&!P(et)){var rt=E(this);return rt.frozen||(rt.frozen=new j),tt(this,et)?k(this,et):rt.frozen.get(et)}return k(this,et)},set:function(et,rt){if($(et)&&!P(et)){var at=E(this);at.frozen||(at.frozen=new j),tt(this,et)?Y(this,et,rt):at.frozen.set(et,rt)}else Y(this,et,rt);return this}})}else W()&&g(X,{set:function(et,rt){var at;return O(et)&&(M(et)?at=U:F(et)&&(at=B)),Y(this,et,rt),at&&at(et),this}})}),(function(x,I,n){var u=n(14),d=n(216),h=n(294).getWeakData,g=n(217),m=n(46),T=n(17),S=n(20),$=n(135),E=n(83),b=n(38),R=n(51),C=R.set,O=R.getterFor,P=E.find,M=E.findIndex,F=u([].splice),U=0,B=function(G){return G.frozen||(G.frozen=new z)},z=function(){this.entries=[]},j=function(G,V){return P(G.entries,function(X){return X[0]===V})};z.prototype={get:function(G){var V=j(this,G);if(V)return V[1]},has:function(G){return!!j(this,G)},set:function(G,V){var X=j(this,G);X?X[1]=V:this.entries.push([G,V])},delete:function(G){var V=M(this.entries,function(X){return X[0]===G});return~V&&F(this.entries,V,1),!!~V}},x.exports={getConstructor:function(G,V,X,Y){var W=G(function(_,et){g(_,J),C(_,{type:V,id:U++,frozen:null}),T(et)||$(et,_[Y],{that:_,AS_ENTRIES:X})}),J=W.prototype,tt=O(V),k=function(_,et,rt){var at=tt(_),ut=h(m(et),!0);return ut===!0?B(at).set(et,rt):ut[at.id]=rt,_};return d(J,{delete:function(_){var et=tt(this);if(!S(_))return!1;var rt=h(_);return rt===!0?B(et).delete(_):rt&&b(rt,et.id)&&delete rt[et.id]},has:function(et){var rt=tt(this);if(!S(et))return!1;var at=h(et);return at===!0?B(rt).has(et):at&&b(at,rt.id)}}),d(J,X?{get:function(et){var rt=tt(this);if(S(et)){var at=h(et);if(at===!0)return B(rt).get(et);if(at)return at[rt.id]}},set:function(et,rt){return k(this,et,rt)}}:{add:function(et){return k(this,et,!0)}}),W}}}),(function(x,I,n){n(589)}),(function(x,I,n){var u=n(293),d=n(587);u("WeakSet",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},d)}),(function(x,I,n){var u=n(3),d=n(4),h=n(23),g=n(14),m=n(8),T=n(7),S=n(68),$=n(383),E=n(575).c2i,b=/[^\d+/a-z]/i,R=/[\t\n\f\r ]+/g,C=/[=]{1,2}$/,O=h("atob"),P=String.fromCharCode,M=g("".charAt),F=g("".replace),U=g(b.exec),B=!!O&&!T(function(){return O("aGk=")!=="hi"}),z=B&&T(function(){return O(" ")!==""}),j=B&&!T(function(){O("a")}),G=B&&!T(function(){O()}),V=B&&O.length!==1,X=!B||z||j||G||V;u({global:!0,bind:!0,enumerable:!0,forced:X},{atob:function(W){if($(arguments.length,1),B&&!z&&!j)return m(O,d,W);var J=F(S(W),R,""),tt="",k=0,_=0,et,rt,at;if(J.length%4===0&&(J=F(J,C,"")),et=J.length,et%4===1||U(b,J))throw new(h("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;k<et;)rt=M(J,k++),at=_%4?at*64+E[rt]:E[rt],_++%4&&(tt+=P(255&at>>(-2*_&6)));return tt}})}),(function(x,I,n){var u=n(3),d=n(4),h=n(23),g=n(14),m=n(8),T=n(7),S=n(68),$=n(383),E=n(575).i2c,b=h("btoa"),R=g("".charAt),C=g("".charCodeAt),O=!!b&&!T(function(){return b("hi")!=="aGk="}),P=O&&!T(function(){b()}),M=O&&T(function(){return b(null)!=="bnVsbA=="}),F=O&&b.length!==1;u({global:!0,bind:!0,enumerable:!0,forced:!O||P||M||F},{btoa:function(B){if($(arguments.length,1),O)return m(b,d,S(B));for(var z=S(B),j="",G=0,V=E,X,Y;R(z,G)||(V="=",G%1);){if(Y=C(z,G+=.75),Y>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");X=X<<8|Y,j+=R(V,63&X>>8-G%1*8)}return j}})}),(function(x,I,n){var u=n(4),d=n(593),h=n(594),g=n(166),m=n(43),T=function($){if($&&$.forEach!==g)try{m($,"forEach",g)}catch(E){$.forEach=g}};for(var S in d)d[S]&&T(u[S]&&u[S].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,I,n){var u=n(42),d=u("span").classList,h=d&&d.constructor&&d.constructor.prototype;x.exports=h===Object.prototype?void 0:h}),(function(x,I,n){var u=n(4),d=n(593),h=n(594),g=n(174),m=n(43),T=n(82),S=n(33),$=S("iterator"),E=g.values,b=function(C,O){if(C){if(C[$]!==E)try{m(C,$,E)}catch(M){C[$]=E}if(T(C,O,!0),d[O]){for(var P in g)if(C[P]!==g[P])try{m(C,P,g[P])}catch(M){C[P]=g[P]}}}};for(var R in d)b(u[R]&&u[R].prototype,R);b(h,"DOMTokenList")}),(function(x,I,n){var u=n(3),d=n(23),h=n(240),g=n(7),m=n(71),T=n(11),S=n(44).f,$=n(47),E=n(77),b=n(38),R=n(217),C=n(46),O=n(130),P=n(123),M=n(597),F=n(126),U=n(51),B=n(6),z=n(36),j="DOMException",G="DATA_CLONE_ERR",V=d("Error"),X=d(j)||(function(){try{var Ot=d("MessageChannel")||h("worker_threads").MessageChannel;new Ot().port1.postMessage(new WeakMap)}catch(jt){if(jt.name===G&&jt.code===25)return jt.constructor}})(),Y=X&&X.prototype,W=V.prototype,J=U.set,tt=U.getterFor(j),k="stack"in new V(j),_=function(Ot){return b(M,Ot)&&M[Ot].m?M[Ot].c:0},et=function(){R(this,rt);var jt=arguments.length,re=P(jt<1?void 0:arguments[0]),ie=P(jt<2?void 0:arguments[1],"Error"),ne=_(ie);if(J(this,{type:j,name:ie,message:re,code:ne}),B||(this.name=ie,this.message=re,this.code=ne),k){var ae=new V(re);ae.name=j,S(this,"stack",T(1,F(ae.stack,1)))}},rt=et.prototype=m(W),at=function(Ot){return{enumerable:!0,configurable:!0,get:Ot}},ut=function(Ot){return at(function(){return tt(this)[Ot]})};B&&(E(rt,"code",ut("code")),E(rt,"message",ut("message")),E(rt,"name",ut("name"))),S(rt,"constructor",T(1,et));var xt=g(function(){return!(new X instanceof V)}),pt=xt||g(function(){return W.toString!==O||String(new X(1,2))!=="2: 1"}),gt=xt||g(function(){return new X(1,"DataCloneError").code!==25}),It=xt||X[G]!==25||Y[G]!==25,At=z?pt||gt||It:xt;u({global:!0,constructor:!0,forced:At},{DOMException:At?et:X});var Mt=d(j),ct=Mt.prototype;pt&&(z||X===Mt)&&$(ct,"toString",O),gt&&B&&X===Mt&&E(ct,"code",at(function(){return _(C(this).name)}));for(var lt in M)if(b(M,lt)){var Ct=M[lt],Nt=Ct.s,Gt=T(6,Ct.c);b(Mt,Nt)||S(Mt,Nt,Gt),b(ct,Nt)||S(ct,Nt,Gt)}}),(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,I,n){var u=n(3),d=n(4),h=n(23),g=n(11),m=n(44).f,T=n(38),S=n(217),$=n(122),E=n(123),b=n(597),R=n(126),C=n(6),O=n(36),P="DOMException",M=h("Error"),F=h(P),U=function(){S(this,B);var et=arguments.length,rt=E(et<1?void 0:arguments[0]),at=E(et<2?void 0:arguments[1],"Error"),ut=new F(rt,at),xt=new M(rt);return xt.name=P,m(ut,"stack",g(1,R(xt.stack,1))),$(ut,this,U),ut},B=U.prototype=F.prototype,z="stack"in new M(P),j="stack"in new F(1,2),G=F&&C&&Object.getOwnPropertyDescriptor(d,P),V=!!G&&!(G.writable&&G.configurable),X=z&&!V&&!j;u({global:!0,constructor:!0,forced:O||X},{DOMException:X?U:F});var Y=h(P),W=Y.prototype;if(W.constructor!==Y){O||m(W,"constructor",g(1,Y));for(var J in b)if(T(b,J)){var tt=b[J],k=tt.s;T(Y,k)||m(Y,k,g(6,tt.c))}}}),(function(x,I,n){var u=n(23),d=n(82),h="DOMException";d(u(h),h)}),(function(x,I,n){n(601),n(602)}),(function(x,I,n){var u=n(3),d=n(4),h=n(382).clear;u({global:!0,bind:!0,enumerable:!0,forced:d.clearImmediate!==h},{clearImmediate:h})}),(function(x,I,n){var u=n(3),d=n(4),h=n(382).set,g=n(603),m=d.setImmediate?g(h,!1):h;u({global:!0,bind:!0,enumerable:!0,forced:d.setImmediate!==m},{setImmediate:m})}),(function(x,I,n){var u=n(4),d=n(94),h=n(21),g=n(189),m=n(28),T=n(76),S=n(383),$=u.Function,E=/MSIE .\./.test(m)||g==="BUN"&&(function(){var b=u.Bun.version.split(".");return b.length<3||b[0]==="0"&&(b[1]<3||b[1]==="3"&&b[2]==="0")})();x.exports=function(b,R){var C=R?2:1;return E?function(O,P){var M=S(arguments.length,1)>C,F=h(O)?O:$(O),U=M?T(arguments,C):[],B=M?function(){d(F,this,U)}:F;return R?b(B,P):b(B)}:b}}),(function(x,I,n){var u=n(3),d=n(4),h=n(385),g=n(30),m=n(383),T=n(7),S=n(6),$=T(function(){return S&&Object.getOwnPropertyDescriptor(d,"queueMicrotask").value.length!==1});u({global:!0,enumerable:!0,dontCallGetSet:!0,forced:$},{queueMicrotask:function(b){m(arguments.length,1),h(g(b))}})}),(function(x,I,n){var u=n(3),d=n(4),h=n(77),g=n(6),m=TypeError,T=Object.defineProperty,S=d.self!==d;try{if(g){var $=Object.getOwnPropertyDescriptor(d,"self");(S||!$||!$.get||!$.enumerable)&&h(d,"self",{get:function(){return d},set:function(b){if(this!==d)throw new m("Illegal invocation");T(d,"self",{value:b,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else u({global:!0,simple:!0,forced:S},{self:d})}catch(E){}}),(function(x,I,n){var u=n(36),d=n(3),h=n(4),g=n(23),m=n(14),T=n(7),S=n(40),$=n(21),E=n(89),b=n(17),R=n(20),C=n(22),O=n(135),P=n(46),M=n(69),F=n(38),U=n(147),B=n(43),z=n(63),j=n(383),G=n(433),V=n(299),X=n(453),Y=n(455),W=n(239),J=n(127),tt=n(241),k=h.Object,_=h.Array,et=h.Date,rt=h.Error,at=h.TypeError,ut=h.PerformanceMark,xt=g("DOMException"),pt=V.Map,gt=V.has,It=V.get,At=V.set,Mt=X.Set,ct=X.add,lt=X.has,Ct=g("Object","keys"),Nt=m([].push),Gt=m((!0).valueOf),Ot=m(1.1.valueOf),jt=m("".valueOf),re=m(et.prototype.getTime),ie=S("structuredClone"),ne="DataCloneError",ae="Transferring",Ae=function(ht){return!T(function(){var Lt=new h.Set([7]),Bt=ht(Lt),Ut=ht(k(7));return Bt===Lt||!Bt.has(7)||!R(Ut)||+Ut!=7})&&ht},Ie=function(ht,Lt){return!T(function(){var Bt=new Lt,Ut=ht({a:Bt,b:Bt});return!(Ut&&Ut.a===Ut.b&&Ut.a instanceof Lt&&Ut.a.stack===Bt.stack)})},pe=function(ht){return!T(function(){var Lt=ht(new h.AggregateError([1],ie,{cause:3}));return Lt.name!=="AggregateError"||Lt.errors[0]!==1||Lt.message!==ie||Lt.cause!==3})},le=h.structuredClone,be=u||!Ie(le,rt)||!Ie(le,xt)||!pe(le),Se=!le&&Ae(function(ht){return new ut(ie,{detail:ht}).detail}),me=Ae(le)||Se,wt=function(ht){throw new xt("Uncloneable type: "+ht,ne)},Yt=function(ht,Lt){throw new xt((Lt||"Cloning")+" of "+ht+" cannot be properly polyfilled in this engine",ne)},ue=function(ht,Lt){return me||Yt(Lt),me(ht)},Vt=function(){var ht;try{ht=new h.DataTransfer}catch(Lt){try{ht=new h.ClipboardEvent("").clipboardData}catch(Bt){}}return ht&&ht.items&&ht.files?ht:null},_t=function(ht,Lt,Bt){if(gt(Lt,ht))return It(Lt,ht);var Ut=Bt||M(ht),Xt,Pt,ce,De,Dt,Jt;if(Ut==="SharedArrayBuffer")me?Xt=me(ht):Xt=ht;else{var Qt=h.DataView;!Qt&&!$(ht.slice)&&Yt("ArrayBuffer");try{if($(ht.slice)&&!ht.resizable)Xt=ht.slice(0);else for(Pt=ht.byteLength,ce=("maxByteLength"in ht)?{maxByteLength:ht.maxByteLength}:void 0,Xt=new ArrayBuffer(Pt,ce),De=new Qt(ht),Dt=new Qt(Xt),Jt=0;Jt<Pt;Jt++)Dt.setUint8(Jt,De.getUint8(Jt))}catch(qt){throw new xt("ArrayBuffer is detached",ne)}}return At(Lt,ht,Xt),Xt},te=function(ht,Lt,Bt,Ut,Xt){var Pt=h[Lt];return R(Pt)||Yt(Lt),new Pt(_t(ht.buffer,Xt),Bt,Ut)},Zt=function(ht,Lt){if(C(ht)&&wt("Symbol"),!R(ht))return ht;if(Lt){if(gt(Lt,ht))return It(Lt,ht)}else Lt=new pt;var Bt=M(ht),Ut,Xt,Pt,ce,De,Dt,Jt,Qt;switch(Bt){case"Array":Pt=_(z(ht));break;case"Object":Pt={};break;case"Map":Pt=new pt;break;case"Set":Pt=new Mt;break;case"RegExp":Pt=new RegExp(ht.source,G(ht));break;case"Error":switch(Xt=ht.name,Xt){case"AggregateError":Pt=new(g(Xt))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":Pt=new(g(Xt));break;case"CompileError":case"LinkError":case"RuntimeError":Pt=new(g("WebAssembly",Xt));break;default:Pt=new rt}break;case"DOMException":Pt=new xt(ht.message,ht.name);break;case"ArrayBuffer":case"SharedArrayBuffer":Pt=_t(ht,Lt,Bt);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":Dt=Bt==="DataView"?ht.byteLength:ht.length,Pt=te(ht,Bt,ht.byteOffset,Dt,Lt);break;case"DOMQuad":try{Pt=new DOMQuad(Zt(ht.p1,Lt),Zt(ht.p2,Lt),Zt(ht.p3,Lt),Zt(ht.p4,Lt))}catch(qt){Pt=ue(ht,Bt)}break;case"File":if(me)try{Pt=me(ht),M(Pt)!==Bt&&(Pt=void 0)}catch(qt){}if(!Pt)try{Pt=new File([ht],ht.name,ht)}catch(qt){}Pt||Yt(Bt);break;case"FileList":if(ce=Vt(),ce){for(De=0,Dt=z(ht);De<Dt;De++)ce.items.add(Zt(ht[De],Lt));Pt=ce.files}else Pt=ue(ht,Bt);break;case"ImageData":try{Pt=new ImageData(Zt(ht.data,Lt),ht.width,ht.height,{colorSpace:ht.colorSpace})}catch(qt){Pt=ue(ht,Bt)}break;default:if(me)Pt=me(ht);else switch(Bt){case"BigInt":Pt=k(ht.valueOf());break;case"Boolean":Pt=k(Gt(ht));break;case"Number":Pt=k(Ot(ht));break;case"String":Pt=k(jt(ht));break;case"Date":Pt=new et(re(ht));break;case"Blob":try{Pt=ht.slice(0,ht.size,ht.type)}catch(qt){Yt(Bt)}break;case"DOMPoint":case"DOMPointReadOnly":Ut=h[Bt];try{Pt=Ut.fromPoint?Ut.fromPoint(ht):new Ut(ht.x,ht.y,ht.z,ht.w)}catch(qt){Yt(Bt)}break;case"DOMRect":case"DOMRectReadOnly":Ut=h[Bt];try{Pt=Ut.fromRect?Ut.fromRect(ht):new Ut(ht.x,ht.y,ht.width,ht.height)}catch(qt){Yt(Bt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":Ut=h[Bt];try{Pt=Ut.fromMatrix?Ut.fromMatrix(ht):new Ut(ht)}catch(qt){Yt(Bt)}break;case"AudioData":case"VideoFrame":$(ht.clone)||Yt(Bt);try{Pt=ht.clone()}catch(qt){wt(Bt)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Yt(Bt);default:wt(Bt)}}switch(At(Lt,ht,Pt),Bt){case"Array":case"Object":for(Jt=Ct(ht),De=0,Dt=z(Jt);De<Dt;De++)Qt=Jt[De],U(Pt,Qt,Zt(ht[Qt],Lt));break;case"Map":ht.forEach(function(qt,ve){At(Pt,Zt(ve,Lt),Zt(qt,Lt))});break;case"Set":ht.forEach(function(qt){ct(Pt,Zt(qt,Lt))});break;case"Error":B(Pt,"message",Zt(ht.message,Lt)),F(ht,"cause")&&B(Pt,"cause",Zt(ht.cause,Lt)),Xt==="AggregateError"?Pt.errors=Zt(ht.errors,Lt):Xt==="SuppressedError"&&(Pt.error=Zt(ht.error,Lt),Pt.suppressed=Zt(ht.suppressed,Lt));case"DOMException":J&&B(Pt,"stack",Zt(ht.stack,Lt))}return Pt},xe=function(ht,Lt){if(!R(ht))throw new at("Transfer option cannot be converted to a sequence");var Bt=[];O(ht,function(ve){Nt(Bt,P(ve))});for(var Ut=0,Xt=z(Bt),Pt=new Mt,ce,De,Dt,Jt,Qt,qt;Ut<Xt;){if(ce=Bt[Ut++],De=M(ce),De==="ArrayBuffer"?lt(Pt,ce):gt(Lt,ce))throw new xt("Duplicate transferable",ne);if(De==="ArrayBuffer"){ct(Pt,ce);continue}if(tt)Jt=le(ce,{transfer:[ce]});else switch(De){case"ImageBitmap":Dt=h.OffscreenCanvas,E(Dt)||Yt(De,ae);try{Qt=new Dt(ce.width,ce.height),qt=Qt.getContext("bitmaprenderer"),qt.transferFromImageBitmap(ce),Jt=Qt.transferToImageBitmap()}catch(ve){}break;case"AudioData":case"VideoFrame":(!$(ce.clone)||!$(ce.close))&&Yt(De,ae);try{Jt=ce.clone(),ce.close()}catch(ve){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":Yt(De,ae)}if(Jt===void 0)throw new xt("This object cannot be transferred: "+De,ne);At(Lt,ce,Jt)}return Pt},We=function(ht){Y(ht,function(Lt){tt?me(Lt,{transfer:[Lt]}):$(Lt.transfer)?Lt.transfer():W?W(Lt):Yt("ArrayBuffer",ae)})};d({global:!0,enumerable:!0,sham:!tt,forced:be},{structuredClone:function(Lt){var Bt=j(arguments.length,1)>1&&!b(arguments[1])?P(arguments[1]):void 0,Ut=Bt?Bt.transfer:void 0,Xt,Pt;Ut!==void 0&&(Xt=new pt,Pt=xe(Ut,Xt));var ce=Zt(Lt,Xt);return Pt&&We(Pt),ce}})}),(function(x,I,n){n(608),n(609)}),(function(x,I,n){var u=n(3),d=n(4),h=n(603),g=h(d.setInterval,!0);u({global:!0,bind:!0,forced:d.setInterval!==g},{setInterval:g})}),(function(x,I,n){var u=n(3),d=n(4),h=n(603),g=h(d.setTimeout,!0);u({global:!0,bind:!0,forced:d.setTimeout!==g},{setTimeout:g})}),(function(x,I,n){n(611)}),(function(x,I,n){n(482);var u=n(3),d=n(6),h=n(612),g=n(4),m=n(84),T=n(14),S=n(47),$=n(77),E=n(217),b=n(38),R=n(344),C=n(168),O=n(76),P=n(475).codeAt,M=n(613),F=n(68),U=n(82),B=n(383),z=n(614),j=n(51),G=j.set,V=j.getterFor("URL"),X=z.URLSearchParams,Y=z.getState,W=g.URL,J=g.TypeError,tt=g.parseInt,k=Math.floor,_=Math.pow,et=T("".charAt),rt=T(/./.exec),at=T([].join),ut=T(1.1.toString),xt=T([].pop),pt=T([].push),gt=T("".replace),It=T([].shift),At=T("".split),Mt=T("".slice),ct=T("".toLowerCase),lt=T([].unshift),Ct="Invalid authority",Nt="Invalid scheme",Gt="Invalid host",Ot="Invalid port",jt=/[a-z]/i,re=/[\d+-.a-z]/i,ie=/\d/,ne=/^0x/i,ae=/^[0-7]+$/,Ae=/^\d+$/,Ie=/^[\da-f]+$/i,pe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,le=/[\0\t\n\r #/:<>?@[\\\]^|]/,be=/^[\u0000-\u0020]+/,Se=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,me=/[\t\n\r]/g,wt,Yt=function(ft){var zt=At(ft,"."),St,st,Ft,Te,oe,Pe,rn;if(zt.length&&zt[zt.length-1]===""&&zt.length--,St=zt.length,St>4)return ft;for(st=[],Ft=0;Ft<St;Ft++){if(Te=zt[Ft],Te==="")return ft;if(oe=10,Te.length>1&&et(Te,0)==="0"&&(oe=rt(ne,Te)?16:8,Te=Mt(Te,oe===8?1:2)),Te==="")Pe=0;else{if(!rt(oe===10?Ae:oe===8?ae:Ie,Te))return ft;Pe=tt(Te,oe)}pt(st,Pe)}for(Ft=0;Ft<St;Ft++)if(Pe=st[Ft],Ft===St-1){if(Pe>=_(256,5-St))return null}else if(Pe>255)return null;for(rn=xt(st),Ft=0;Ft<st.length;Ft++)rn+=st[Ft]*_(256,3-Ft);return rn},ue=function(ft){var zt=[0,0,0,0,0,0,0,0],St=0,st=null,Ft=0,Te,oe,Pe,rn,vn,xn,it,an=function(){return et(ft,Ft)};if(an()===":"){if(et(ft,1)!==":")return;Ft+=2,St++,st=St}for(;an();){if(St===8)return;if(an()===":"){if(st!==null)return;Ft++,St++,st=St;continue}for(Te=oe=0;oe<4&&rt(Ie,an());)Te=Te*16+tt(an(),16),Ft++,oe++;if(an()==="."){if(oe===0||(Ft-=oe,St>6))return;for(Pe=0;an();){if(rn=null,Pe>0)if(an()==="."&&Pe<4)Ft++;else return;if(!rt(ie,an()))return;for(;rt(ie,an());){if(vn=tt(an(),10),rn===null)rn=vn;else{if(rn===0)return;rn=rn*10+vn}if(rn>255)return;Ft++}zt[St]=zt[St]*256+rn,Pe++,(Pe===2||Pe===4)&&St++}if(Pe!==4)return;break}else if(an()===":"){if(Ft++,!an())return}else if(an())return;zt[St++]=Te}if(st!==null)for(xn=St-st,St=7;St!==0&&xn>0;)it=zt[St],zt[St--]=zt[st+xn-1],zt[st+--xn]=it;else if(St!==8)return;return zt},Vt=function(ft){for(var zt=null,St=1,st=null,Ft=0,Te=0;Te<8;Te++)ft[Te]!==0?(Ft>St&&(zt=st,St=Ft),st=null,Ft=0):(st===null&&(st=Te),++Ft);return Ft>St?st:zt},_t=function(ft){var zt,St,st,Ft;if(typeof ft=="number"){for(zt=[],St=0;St<4;St++)lt(zt,ft%256),ft=k(ft/256);return at(zt,".")}if(typeof ft=="object"){for(zt="",st=Vt(ft),St=0;St<8;St++)Ft&&ft[St]===0||(Ft&&(Ft=!1),st===St?(zt+=St?":":"::",Ft=!0):(zt+=ut(ft[St],16),St<7&&(zt+=":")));return"["+zt+"]"}return ft},te={},Zt=R({},te,{" ":1,'"':1,"<":1,">":1,"`":1}),xe=R({},Zt,{"#":1,"?":1,"{":1,"}":1}),We=R({},xe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(ft,zt){var St=P(ft,0);return St>32&&St<127&&!b(zt,ft)?ft:encodeURIComponent(ft)},Lt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Bt=function(ft,zt){var St;return ft.length===2&&rt(jt,et(ft,0))&&((St=et(ft,1))===":"||!zt&&St==="|")},Ut=function(ft){var zt;return ft.length>1&&Bt(Mt(ft,0,2))&&(ft.length===2||(zt=et(ft,2))==="/"||zt==="\\"||zt==="?"||zt==="#")},Xt=function(ft){return ft==="."||ct(ft)==="%2e"},Pt=function(ft){return ft=ct(ft),ft===".."||ft==="%2e."||ft===".%2e"||ft==="%2e%2e"},ce={},De={},Dt={},Jt={},Qt={},qt={},ve={},Re={},Ye={},Je={},nn={},yn={},Xn={},Kr={},Ja={},xa={},Tr={},Hn={},Qa={},sr={},Qn={},Ta=function(ft,zt,St){var st=F(ft),Ft,Te,oe;if(zt){if(Te=this.parse(st),Te)throw new J(Te);this.searchParams=null}else{if(St!==void 0&&(Ft=new Ta(St,!0)),Te=this.parse(st,null,Ft),Te)throw new J(Te);oe=Y(new X),oe.bindURL(this),this.searchParams=oe}};Ta.prototype={type:"URL",parse:function(ft,zt,St){var st=this,Ft=zt||ce,Te=0,oe="",Pe=!1,rn=!1,vn=!1,xn,it,an,Bn;for(ft=F(ft),zt||(st.scheme="",st.username="",st.password="",st.host=null,st.port=null,st.path=[],st.query=null,st.fragment=null,st.cannotBeABaseURL=!1,ft=gt(ft,be,""),ft=gt(ft,Se,"$1")),ft=gt(ft,me,""),xn=C(ft);Te<=xn.length;){switch(it=xn[Te],Ft){case ce:if(it&&rt(jt,it))oe+=ct(it),Ft=De;else{if(zt)return Nt;Ft=Dt;continue}break;case De:if(it&&(rt(re,it)||it==="+"||it==="-"||it==="."))oe+=ct(it);else if(it===":"){if(zt&&(st.isSpecial()!==b(Lt,oe)||oe==="file"&&(st.includesCredentials()||st.port!==null)||st.scheme==="file"&&!st.host))return;if(st.scheme=oe,zt){st.isSpecial()&&Lt[st.scheme]===st.port&&(st.port=null);return}oe="",st.scheme==="file"?Ft=Kr:st.isSpecial()&&St&&St.scheme===st.scheme?Ft=Jt:st.isSpecial()?Ft=Re:xn[Te+1]==="/"?(Ft=Qt,Te++):(st.cannotBeABaseURL=!0,pt(st.path,""),Ft=Qa)}else{if(zt)return Nt;oe="",Ft=Dt,Te=0;continue}break;case Dt:if(!St||St.cannotBeABaseURL&&it!=="#")return Nt;if(St.cannotBeABaseURL&&it==="#"){st.scheme=St.scheme,st.path=O(St.path),st.query=St.query,st.fragment="",st.cannotBeABaseURL=!0,Ft=Qn;break}Ft=St.scheme==="file"?Kr:qt;continue;case Jt:if(it==="/"&&xn[Te+1]==="/")Ft=Ye,Te++;else{Ft=qt;continue}break;case Qt:if(it==="/"){Ft=Je;break}else{Ft=Hn;continue}case qt:if(st.scheme=St.scheme,it===wt)st.username=St.username,st.password=St.password,st.host=St.host,st.port=St.port,st.path=O(St.path),st.query=St.query;else if(it==="/"||it==="\\"&&st.isSpecial())Ft=ve;else if(it==="?")st.username=St.username,st.password=St.password,st.host=St.host,st.port=St.port,st.path=O(St.path),st.query="",Ft=sr;else if(it==="#")st.username=St.username,st.password=St.password,st.host=St.host,st.port=St.port,st.path=O(St.path),st.query=St.query,st.fragment="",Ft=Qn;else{st.username=St.username,st.password=St.password,st.host=St.host,st.port=St.port,st.path=O(St.path),st.path.length--,Ft=Hn;continue}break;case ve:if(st.isSpecial()&&(it==="/"||it==="\\"))Ft=Ye;else if(it==="/")Ft=Je;else{st.username=St.username,st.password=St.password,st.host=St.host,st.port=St.port,Ft=Hn;continue}break;case Re:if(Ft=Ye,it!=="/"||et(oe,Te+1)!=="/")continue;Te++;break;case Ye:if(it!=="/"&&it!=="\\"){Ft=Je;continue}break;case Je:if(it==="@"){Pe&&(oe="%40"+oe),Pe=!0,an=C(oe);for(var en=0;en<an.length;en++){var Wn=an[en];if(Wn===":"&&!vn){vn=!0;continue}var Mn=ht(Wn,We);vn?st.password+=Mn:st.username+=Mn}oe=""}else if(it===wt||it==="/"||it==="?"||it==="#"||it==="\\"&&st.isSpecial()){if(Pe&&oe==="")return Ct;Te-=C(oe).length+1,oe="",Ft=nn}else oe+=it;break;case nn:case yn:if(zt&&st.scheme==="file"){Ft=xa;continue}else if(it===":"&&!rn){if(oe==="")return Gt;if(Bn=st.parseHost(oe),Bn)return Bn;if(oe="",Ft=Xn,zt===yn)return}else if(it===wt||it==="/"||it==="?"||it==="#"||it==="\\"&&st.isSpecial()){if(st.isSpecial()&&oe==="")return Gt;if(zt&&oe===""&&(st.includesCredentials()||st.port!==null))return;if(Bn=st.parseHost(oe),Bn)return Bn;if(oe="",Ft=Tr,zt)return;continue}else it==="["?rn=!0:it==="]"&&(rn=!1),oe+=it;break;case Xn:if(rt(ie,it))oe+=it;else if(it===wt||it==="/"||it==="?"||it==="#"||it==="\\"&&st.isSpecial()||zt){if(oe!==""){var Un=tt(oe,10);if(Un>65535)return Ot;st.port=st.isSpecial()&&Un===Lt[st.scheme]?null:Un,oe=""}if(zt)return;Ft=Tr;continue}else return Ot;break;case Kr:if(st.scheme="file",it==="/"||it==="\\")Ft=Ja;else if(St&&St.scheme==="file")switch(it){case wt:st.host=St.host,st.path=O(St.path),st.query=St.query;break;case"?":st.host=St.host,st.path=O(St.path),st.query="",Ft=sr;break;case"#":st.host=St.host,st.path=O(St.path),st.query=St.query,st.fragment="",Ft=Qn;break;default:Ut(at(O(xn,Te),""))||(st.host=St.host,st.path=O(St.path),st.shortenPath()),Ft=Hn;continue}else{Ft=Hn;continue}break;case Ja:if(it==="/"||it==="\\"){Ft=xa;break}St&&St.scheme==="file"&&!Ut(at(O(xn,Te),""))&&(Bt(St.path[0],!0)?pt(st.path,St.path[0]):st.host=St.host),Ft=Hn;continue;case xa:if(it===wt||it==="/"||it==="\\"||it==="?"||it==="#"){if(!zt&&Bt(oe))Ft=Hn;else if(oe===""){if(st.host="",zt)return;Ft=Tr}else{if(Bn=st.parseHost(oe),Bn)return Bn;if(st.host==="localhost"&&(st.host=""),zt)return;oe="",Ft=Tr}continue}else oe+=it;break;case Tr:if(st.isSpecial()){if(Ft=Hn,it!=="/"&&it!=="\\")continue}else if(!zt&&it==="?")st.query="",Ft=sr;else if(!zt&&it==="#")st.fragment="",Ft=Qn;else if(it!==wt&&(Ft=Hn,it!=="/"))continue;break;case Hn:if(it===wt||it==="/"||it==="\\"&&st.isSpecial()||!zt&&(it==="?"||it==="#")){if(Pt(oe)?(st.shortenPath(),it!=="/"&&!(it==="\\"&&st.isSpecial())&&pt(st.path,"")):Xt(oe)?it!=="/"&&!(it==="\\"&&st.isSpecial())&&pt(st.path,""):(st.scheme==="file"&&!st.path.length&&Bt(oe)&&(st.host&&(st.host=""),oe=et(oe,0)+":"),pt(st.path,oe)),oe="",st.scheme==="file"&&(it===wt||it==="?"||it==="#"))for(;st.path.length>1&&st.path[0]==="";)It(st.path);it==="?"?(st.query="",Ft=sr):it==="#"&&(st.fragment="",Ft=Qn)}else oe+=ht(it,xe);break;case Qa:it==="?"?(st.query="",Ft=sr):it==="#"?(st.fragment="",Ft=Qn):it!==wt&&(st.path[0]+=ht(it,te));break;case sr:!zt&&it==="#"?(st.fragment="",Ft=Qn):it!==wt&&(it==="'"&&st.isSpecial()?st.query+="%27":it==="#"?st.query+="%23":st.query+=ht(it,te));break;case Qn:it!==wt&&(st.fragment+=ht(it,Zt));break}Te++}},parseHost:function(ft){var zt,St,st;if(et(ft,0)==="["){if(et(ft,ft.length-1)!=="]"||(zt=ue(Mt(ft,1,-1)),!zt))return Gt;this.host=zt}else if(this.isSpecial()){if(ft=M(ft),rt(pe,ft)||(zt=Yt(ft),zt===null))return Gt;this.host=zt}else{if(rt(le,ft))return Gt;for(zt="",St=C(ft),st=0;st<St.length;st++)zt+=ht(St[st],te);this.host=zt}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return b(Lt,this.scheme)},shortenPath:function(){var ft=this.path,zt=ft.length;zt&&(this.scheme!=="file"||zt!==1||!Bt(ft[0],!0))&&ft.length--},serialize:function(){var ft=this,zt=ft.scheme,St=ft.username,st=ft.password,Ft=ft.host,Te=ft.port,oe=ft.path,Pe=ft.query,rn=ft.fragment,vn=zt+":";return Ft!==null?(vn+="//",ft.includesCredentials()&&(vn+=St+(st?":"+st:"")+"@"),vn+=_t(Ft),Te!==null&&(vn+=":"+Te)):zt==="file"&&(vn+="//"),vn+=ft.cannotBeABaseURL?oe[0]:oe.length?"/"+at(oe,"/"):"",Pe!==null&&(vn+="?"+Pe),rn!==null&&(vn+="#"+rn),vn},setHref:function(ft){var zt=this.parse(ft);if(zt)throw new J(zt);this.searchParams.update()},getOrigin:function(){var ft=this.scheme,zt=this.port;if(ft==="blob")try{return new Sr(ft.path[0]).origin}catch(St){return"null"}return ft==="file"||!this.isSpecial()?"null":ft+"://"+_t(this.host)+(zt!==null?":"+zt:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(ft){this.parse(F(ft)+":",ce)},getUsername:function(){return this.username},setUsername:function(ft){var zt=C(F(ft));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var St=0;St<zt.length;St++)this.username+=ht(zt[St],We)}},getPassword:function(){return this.password},setPassword:function(ft){var zt=C(F(ft));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var St=0;St<zt.length;St++)this.password+=ht(zt[St],We)}},getHost:function(){var ft=this.host,zt=this.port;return ft===null?"":zt===null?_t(ft):_t(ft)+":"+zt},setHost:function(ft){this.cannotBeABaseURL||this.parse(ft,nn)},getHostname:function(){var ft=this.host;return ft===null?"":_t(ft)},setHostname:function(ft){this.cannotBeABaseURL||this.parse(ft,yn)},getPort:function(){var ft=this.port;return ft===null?"":F(ft)},setPort:function(ft){this.cannotHaveUsernamePasswordPort()||(ft=F(ft),ft===""?this.port=null:this.parse(ft,Xn))},getPathname:function(){var ft=this.path;return this.cannotBeABaseURL?ft[0]:ft.length?"/"+at(ft,"/"):""},setPathname:function(ft){this.cannotBeABaseURL||(this.path=[],this.parse(ft,Tr))},getSearch:function(){var ft=this.query;return ft?"?"+ft:""},setSearch:function(ft){ft=F(ft),ft===""?this.query=null:(et(ft,0)==="?"&&(ft=Mt(ft,1)),this.query="",this.parse(ft,sr)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var ft=this.fragment;return ft?"#"+ft:""},setHash:function(ft){if(ft=F(ft),ft===""){this.fragment=null;return}et(ft,0)==="#"&&(ft=Mt(ft,1)),this.fragment="",this.parse(ft,Qn)},update:function(){this.query=this.searchParams.serialize()||null}};var Sr=function(zt){var St=E(this,An),st=B(arguments.length,1)>1?arguments[1]:void 0,Ft=G(St,new Ta(zt,!1,st));d||(St.href=Ft.serialize(),St.origin=Ft.getOrigin(),St.protocol=Ft.getProtocol(),St.username=Ft.getUsername(),St.password=Ft.getPassword(),St.host=Ft.getHost(),St.hostname=Ft.getHostname(),St.port=Ft.getPort(),St.pathname=Ft.getPathname(),St.search=Ft.getSearch(),St.searchParams=Ft.getSearchParams(),St.hash=Ft.getHash())},An=Sr.prototype,Nn=function(ft,zt){return{get:function(){return V(this)[ft]()},set:zt&&function(St){return V(this)[zt](St)},configurable:!0,enumerable:!0}};if(d&&($(An,"href",Nn("serialize","setHref")),$(An,"origin",Nn("getOrigin")),$(An,"protocol",Nn("getProtocol","setProtocol")),$(An,"username",Nn("getUsername","setUsername")),$(An,"password",Nn("getPassword","setPassword")),$(An,"host",Nn("getHost","setHost")),$(An,"hostname",Nn("getHostname","setHostname")),$(An,"port",Nn("getPort","setPort")),$(An,"pathname",Nn("getPathname","setPathname")),$(An,"search",Nn("getSearch","setSearch")),$(An,"searchParams",Nn("getSearchParams")),$(An,"hash",Nn("getHash","setHash"))),S(An,"toJSON",function(){return V(this).serialize()},{enumerable:!0}),S(An,"toString",function(){return V(this).serialize()},{enumerable:!0}),W){var ka=W.createObjectURL,qa=W.revokeObjectURL;ka&&S(Sr,"createObjectURL",m(ka,W)),qa&&S(Sr,"revokeObjectURL",m(qa,W))}U(Sr,"URL"),u({global:!0,constructor:!0,forced:!h,sham:!d},{URL:Sr})}),(function(x,I,n){var u=n(7),d=n(33),h=n(6),g=n(36),m=d("iterator");x.exports=!u(function(){var T=new URL("b?a=1&b=2&c=3","https://a"),S=T.searchParams,$=new URLSearchParams("a=1&a=2&b=3"),E="";return T.pathname="c%20d",S.forEach(function(b,R){S.delete("b"),E+=R+b}),$.delete("a",2),$.delete("b",void 0),g&&(!T.toJSON||!$.has("a",1)||$.has("a",2)||!$.has("a",void 0)||$.has("b"))||!S.size&&(g||!h)||!S.sort||T.href!=="https://a/c%20d?a=1&c=3"||S.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!S[m]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("https://a#\u0431").hash!=="#%D0%B1"||E!=="a1c3"||new URL("https://x",void 0).host!=="x"})}),(function(x,I,n){var u=n(14),d=2147483647,h=36,g=1,m=26,T=38,S=700,$=72,E=128,b="-",R=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,O="Overflow: input needs wider integers to process",P=h-g,M=RangeError,F=u(C.exec),U=Math.floor,B=String.fromCharCode,z=u("".charCodeAt),j=u([].join),G=u([].push),V=u("".replace),X=u("".split),Y=u("".toLowerCase),W=function(_){for(var et=[],rt=0,at=_.length;rt<at;){var ut=z(_,rt++);if(ut>=55296&&ut<=56319&&rt<at){var xt=z(_,rt++);(xt&64512)===56320?G(et,((ut&1023)<<10)+(xt&1023)+65536):(G(et,ut),rt--)}else G(et,ut)}return et},J=function(_){return _+22+75*(_<26)},tt=function(_,et,rt){var at=0;for(_=rt?U(_/S):_>>1,_+=U(_/et);_>P*m>>1;)_=U(_/P),at+=h;return U(at+(P+1)*_/(_+T))},k=function(_){var et=[];_=W(_);var rt=_.length,at=E,ut=0,xt=$,pt,gt;for(pt=0;pt<_.length;pt++)gt=_[pt],gt<128&&G(et,B(gt));var It=et.length,At=It;for(It&&G(et,b);At<rt;){var Mt=d;for(pt=0;pt<_.length;pt++)gt=_[pt],gt>=at&><Mt&&(Mt=gt);var ct=At+1;if(Mt-at>U((d-ut)/ct))throw new M(O);for(ut+=(Mt-at)*ct,at=Mt,pt=0;pt<_.length;pt++){if(gt=_[pt],gt<at&&++ut>d)throw new M(O);if(gt===at){for(var lt=ut,Ct=h;;){var Nt=Ct<=xt?g:Ct>=xt+m?m:Ct-xt;if(lt<Nt)break;var Gt=lt-Nt,Ot=h-Nt;G(et,B(J(Nt+Gt%Ot))),lt=U(Gt/Ot),Ct+=h}G(et,B(J(lt))),xt=tt(ut,ct,At===It),ut=0,At++}}ut++,at++}return j(et,"")};x.exports=function(_){var et=[],rt=X(V(Y(_),C,"."),"."),at,ut;for(at=0;at<rt.length;at++)ut=rt[at],G(et,F(R,ut)?"xn--"+k(ut):ut);return j(et,".")}}),(function(x,I,n){n(174),n(479);var u=n(3),d=n(4),h=n(386),g=n(23),m=n(8),T=n(14),S=n(6),$=n(612),E=n(47),b=n(77),R=n(216),C=n(82),O=n(176),P=n(51),M=n(217),F=n(21),U=n(38),B=n(84),z=n(69),j=n(46),G=n(20),V=n(68),X=n(71),Y=n(11),W=n(138),J=n(139),tt=n(178),k=n(383),_=n(33),et=n(195),rt=_("iterator"),at="URLSearchParams",ut=at+"Iterator",xt=P.set,pt=P.getterFor(at),gt=P.getterFor(ut),It=h("fetch"),At=h("Request"),Mt=h("Headers"),ct=At&&At.prototype,lt=Mt&&Mt.prototype,Ct=d.TypeError,Nt=d.encodeURIComponent,Gt=String.fromCharCode,Ot=g("String","fromCodePoint"),jt=parseInt,re=T("".charAt),ie=T([].join),ne=T([].push),ae=T("".replace),Ae=T([].shift),Ie=T([].splice),pe=T("".split),le=T("".slice),be=T(/./.exec),Se=/\+/g,me="\uFFFD",wt=/^[0-9a-f]+$/i,Yt=function(Dt,Jt){var Qt=le(Dt,Jt,Jt+2);return be(wt,Qt)?jt(Qt,16):NaN},ue=function(Dt){for(var Jt=0,Qt=128;Qt>0&&(Dt&Qt)!==0;Qt>>=1)Jt++;return Jt},Vt=function(Dt){var Jt=null;switch(Dt.length){case 1:Jt=Dt[0];break;case 2:Jt=(Dt[0]&31)<<6|Dt[1]&63;break;case 3:Jt=(Dt[0]&15)<<12|(Dt[1]&63)<<6|Dt[2]&63;break;case 4:Jt=(Dt[0]&7)<<18|(Dt[1]&63)<<12|(Dt[2]&63)<<6|Dt[3]&63;break}return Jt>1114111?null:Jt},_t=function(Dt){Dt=ae(Dt,Se," ");for(var Jt=Dt.length,Qt="",qt=0;qt<Jt;){var ve=re(Dt,qt);if(ve==="%"){if(re(Dt,qt+1)==="%"||qt+3>Jt){Qt+="%",qt++;continue}var Re=Yt(Dt,qt+1);if(Re!==Re){Qt+=ve,qt++;continue}qt+=2;var Ye=ue(Re);if(Ye===0)ve=Gt(Re);else{if(Ye===1||Ye>4){Qt+=me,qt++;continue}for(var Je=[Re],nn=1;nn<Ye&&(qt++,!(qt+3>Jt||re(Dt,qt)!=="%"));){var yn=Yt(Dt,qt+1);if(yn!==yn){qt+=3;break}if(yn>191||yn<128)break;ne(Je,yn),qt+=2,nn++}if(Je.length!==Ye){Qt+=me;continue}var Xn=Vt(Je);Xn===null?Qt+=me:ve=Ot(Xn)}}Qt+=ve,qt++}return Qt},te=/[!'()~]|%20/g,Zt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xe=function(Dt){return Zt[Dt]},We=function(Dt){return ae(Nt(Dt),te,xe)},ht=O(function(Jt,Qt){xt(this,{type:ut,target:pt(Jt).entries,index:0,kind:Qt})},at,function(){var Jt=gt(this),Qt=Jt.target,qt=Jt.index++;if(!Qt||qt>=Qt.length)return Jt.target=null,tt(void 0,!0);var ve=Qt[qt];switch(Jt.kind){case"keys":return tt(ve.key,!1);case"values":return tt(ve.value,!1)}return tt([ve.key,ve.value],!1)},!0),Lt=function(Dt){this.entries=[],this.url=null,Dt!==void 0&&(G(Dt)?this.parseObject(Dt):this.parseQuery(typeof Dt=="string"?re(Dt,0)==="?"?le(Dt,1):Dt:V(Dt)))};Lt.prototype={type:at,bindURL:function(Dt){this.url=Dt,this.update()},parseObject:function(Dt){var Jt=this.entries,Qt=J(Dt),qt,ve,Re,Ye,Je,nn,yn;if(Qt)for(qt=W(Dt,Qt),ve=qt.next;!(Re=m(ve,qt)).done;){if(Ye=W(j(Re.value)),Je=Ye.next,(nn=m(Je,Ye)).done||(yn=m(Je,Ye)).done||!m(Je,Ye).done)throw new Ct("Expected sequence with length 2");ne(Jt,{key:V(nn.value),value:V(yn.value)})}else for(var Xn in Dt)U(Dt,Xn)&&ne(Jt,{key:Xn,value:V(Dt[Xn])})},parseQuery:function(Dt){if(Dt)for(var Jt=this.entries,Qt=pe(Dt,"&"),qt=0,ve,Re;qt<Qt.length;)ve=Qt[qt++],ve.length&&(Re=pe(ve,"="),ne(Jt,{key:_t(Ae(Re)),value:_t(ie(Re,"="))}))},serialize:function(){for(var Dt=this.entries,Jt=[],Qt=0,qt;Qt<Dt.length;)qt=Dt[Qt++],ne(Jt,We(qt.key)+"="+We(qt.value));return ie(Jt,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Bt=function(){M(this,Ut);var Jt=arguments.length>0?arguments[0]:void 0,Qt=xt(this,new Lt(Jt));S||(this.size=Qt.entries.length)},Ut=Bt.prototype;if(R(Ut,{append:function(Jt,Qt){var qt=pt(this);k(arguments.length,2),ne(qt.entries,{key:V(Jt),value:V(Qt)}),S||this.size++,qt.updateURL()},delete:function(Dt){for(var Jt=pt(this),Qt=k(arguments.length,1),qt=Jt.entries,ve=V(Dt),Re=Qt<2?void 0:arguments[1],Ye=Re===void 0?Re:V(Re),Je=0;Je<qt.length;){var nn=qt[Je];if(nn.key===ve&&(Ye===void 0||nn.value===Ye)){if(Ie(qt,Je,1),Ye!==void 0)break}else Je++}S||(this.size=qt.length),Jt.updateURL()},get:function(Jt){var Qt=pt(this).entries;k(arguments.length,1);for(var qt=V(Jt),ve=0;ve<Qt.length;ve++)if(Qt[ve].key===qt)return Qt[ve].value;return null},getAll:function(Jt){var Qt=pt(this).entries;k(arguments.length,1);for(var qt=V(Jt),ve=[],Re=0;Re<Qt.length;Re++)Qt[Re].key===qt&&ne(ve,Qt[Re].value);return ve},has:function(Jt){for(var Qt=pt(this).entries,qt=k(arguments.length,1),ve=V(Jt),Re=qt<2?void 0:arguments[1],Ye=Re===void 0?Re:V(Re),Je=0;Je<Qt.length;){var nn=Qt[Je++];if(nn.key===ve&&(Ye===void 0||nn.value===Ye))return!0}return!1},set:function(Jt,Qt){var qt=pt(this);k(arguments.length,1);for(var ve=qt.entries,Re=!1,Ye=V(Jt),Je=V(Qt),nn=0,yn;nn<ve.length;nn++)yn=ve[nn],yn.key===Ye&&(Re?Ie(ve,nn--,1):(Re=!0,yn.value=Je));Re||ne(ve,{key:Ye,value:Je}),S||(this.size=ve.length),qt.updateURL()},sort:function(){var Jt=pt(this);et(Jt.entries,function(Qt,qt){return Qt.key>qt.key?1:-1}),Jt.updateURL()},forEach:function(Jt){for(var Qt=pt(this).entries,qt=B(Jt,arguments.length>1?arguments[1]:void 0),ve=0,Re;ve<Qt.length;)Re=Qt[ve++],qt(Re.value,Re.key,this)},keys:function(){return new ht(this,"keys")},values:function(){return new ht(this,"values")},entries:function(){return new ht(this,"entries")}},{enumerable:!0}),E(Ut,rt,Ut.entries,{name:"entries"}),E(Ut,"toString",function(){return pt(this).serialize()},{enumerable:!0}),S&&b(Ut,"size",{get:function(){return pt(this).entries.length},configurable:!0,enumerable:!0}),C(Bt,at),u({global:!0,constructor:!0,forced:!$},{URLSearchParams:Bt}),!$&&F(Mt)){var Xt=T(lt.has),Pt=T(lt.set),ce=function(Dt){if(G(Dt)){var Jt=Dt.body,Qt;if(z(Jt)===at)return Qt=Dt.headers?new Mt(Dt.headers):new Mt,Xt(Qt,"content-type")||Pt(Qt,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Dt,{body:Y(0,V(Jt)),headers:Y(0,Qt)})}return Dt};if(F(It)&&u({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(Jt){return It(Jt,arguments.length>1?ce(arguments[1]):{})}}),F(At)){var De=function(Jt){return M(this,ct),new At(Jt,arguments.length>1?ce(arguments[1]):{})};ct.constructor=De,De.prototype=ct,u({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:De})}}x.exports={URLSearchParams:Bt,getState:pt}}),(function(x,I,n){var u=n(3),d=n(23),h=n(7),g=n(383),m=n(68),T=n(612),S=d("URL"),$=T&&h(function(){S.canParse()}),E=h(function(){return S.canParse.length!==1});u({target:"URL",stat:!0,forced:!$||E},{canParse:function(R){var C=g(arguments.length,1),O=m(R),P=C<2||arguments[1]===void 0?void 0:m(arguments[1]);try{return!!new S(O,P)}catch(M){return!1}}})}),(function(x,I,n){var u=n(3),d=n(23),h=n(383),g=n(68),m=n(612),T=d("URL");u({target:"URL",stat:!0,forced:!m},{parse:function($){var E=h(arguments.length,1),b=g($),R=E<2||arguments[1]===void 0?void 0:g(arguments[1]);try{return new T(b,R)}catch(C){return null}}})}),(function(x,I,n){var u=n(3),d=n(8);u({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return d(URL.prototype.toString,this)}})}),(function(x,I,n){n(614)}),(function(x,I,n){var u=n(47),d=n(14),h=n(68),g=n(383),m=URLSearchParams,T=m.prototype,S=d(T.append),$=d(T.delete),E=d(T.forEach),b=d([].push),R=new m("a=1&a=2&b=3");R.delete("a",1),R.delete("b",void 0),R+""!="a=2"&&u(T,"delete",function(C){var O=arguments.length,P=O<2?void 0:arguments[1];if(O&&P===void 0)return $(this,C);var M=[];E(this,function(X,Y){b(M,{key:Y,value:X})}),g(O,1);for(var F=h(C),U=h(P),B=0,z=0,j=!1,G=M.length,V;B<G;)V=M[B++],j||V.key===F?(j=!0,$(this,V.key)):z++;for(;z<G;)V=M[z++],V.key===F&&V.value===U||S(this,V.key,V.value)},{enumerable:!0,unsafe:!0})}),(function(x,I,n){var u=n(47),d=n(14),h=n(68),g=n(383),m=URLSearchParams,T=m.prototype,S=d(T.getAll),$=d(T.has),E=new m("a=1");(E.has("a",2)||!E.has("a",void 0))&&u(T,"has",function(R){var C=arguments.length,O=C<2?void 0:arguments[1];if(C&&O===void 0)return $(this,R);var P=S(this,R);g(C,1);for(var M=h(O),F=0;F<P.length;)if(P[F++]===M)return!0;return!1},{enumerable:!0,unsafe:!0})}),(function(x,I,n){var u=n(6),d=n(14),h=n(77),g=URLSearchParams.prototype,m=d(g.forEach);u&&!("size"in g)&&h(g,"size",{get:function(){var S=0;return m(this,function(){S++}),S},configurable:!0,enumerable:!0})}),(function(x,I,n){n.r(I),n.d(I,{bb:function(){return jf},default:function(){return jf}});var u={};n.r(u),n.d(u,{selection:function(){return Iu},subchart:function(){return bu},zoom:function(){return Ru}});var d={};n.r(d),n.d(d,{area:function(){return Tf},areaLineRange:function(){return Sf},areaSpline:function(){return Af},areaSplineRange:function(){return Ef},areaStep:function(){return If},areaStepRange:function(){return $f},bar:function(){return Nf},bubble:function(){return Lf},candlestick:function(){return Ff},donut:function(){return Cf},funnel:function(){return Uf},gauge:function(){return Pf},line:function(){return bf},pie:function(){return Mf},polar:function(){return wf},radar:function(){return Df},scatter:function(){return Bf},spline:function(){return Rf},step:function(){return Of},treemap:function(){return zf}});function h(){}function g(t){return t==null?h:function(){return this.querySelector(t)}}function m(t){typeof t!="function"&&(t=g(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var i=e[o],s=i.length,l=a[o]=new Array(s),c,f,v=0;v<s;++v)(c=i[v])&&(f=t.call(c,c.__data__,v,i))&&("__data__"in c&&(f.__data__=c.__data__),l[v]=f);return new Pe(a,this._parents)}function T(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function S(){return[]}function $(t){return t==null?S:function(){return this.querySelectorAll(t)}}function E(t){return function(){return T(t.apply(this,arguments))}}function b(t){typeof t=="function"?t=E(t):t=$(t);for(var e=this._groups,r=e.length,a=[],o=[],i=0;i<r;++i)for(var s=e[i],l=s.length,c,f=0;f<l;++f)(c=s[f])&&(a.push(t.call(c,c.__data__,f,s)),o.push(c));return new Pe(a,o)}function R(t){return function(){return this.matches(t)}}function C(t){return function(e){return e.matches(t)}}var O=Array.prototype.find;function P(t){return function(){return O.call(this.children,t)}}function M(){return this.firstElementChild}function F(t){return this.select(t==null?M:P(typeof t=="function"?t:C(t)))}var U=Array.prototype.filter;function B(){return Array.from(this.children)}function z(t){return function(){return U.call(this.children,t)}}function j(t){return this.selectAll(t==null?B:z(typeof t=="function"?t:C(t)))}function G(t){typeof t!="function"&&(t=R(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var i=e[o],s=i.length,l=a[o]=[],c,f=0;f<s;++f)(c=i[f])&&t.call(c,c.__data__,f,i)&&l.push(c);return new Pe(a,this._parents)}function V(t){return new Array(t.length)}function X(){return new Pe(this._enter||this._groups.map(V),this._parents)}function Y(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Y.prototype={constructor:Y,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 W(t){return function(){return t}}function J(t,e,r,a,o,i){for(var s=0,l,c=e.length,f=i.length;s<f;++s)(l=e[s])?(l.__data__=i[s],a[s]=l):r[s]=new Y(t,i[s]);for(;s<c;++s)(l=e[s])&&(o[s]=l)}function tt(t,e,r,a,o,i,s){var l,c,f=new Map,v=e.length,p=i.length,y=new Array(v),A;for(l=0;l<v;++l)(c=e[l])&&(y[l]=A=s.call(c,c.__data__,l,e)+"",f.has(A)?o[l]=c:f.set(A,c));for(l=0;l<p;++l)A=s.call(t,i[l],l,i)+"",(c=f.get(A))?(a[l]=c,c.__data__=i[l],f.delete(A)):r[l]=new Y(t,i[l]);for(l=0;l<v;++l)(c=e[l])&&f.get(y[l])===c&&(o[l]=c)}function k(t){return t.__data__}function _(t,e){if(!arguments.length)return Array.from(this,k);var r=e?tt:J,a=this._parents,o=this._groups;typeof t!="function"&&(t=W(t));for(var i=o.length,s=new Array(i),l=new Array(i),c=new Array(i),f=0;f<i;++f){var v=a[f],p=o[f],y=p.length,A=et(t.call(v,v&&v.__data__,f,a)),w=A.length,L=l[f]=new Array(w),N=s[f]=new Array(w),D=c[f]=new Array(y);r(v,p,L,N,D,A,e);for(var K=0,Z=0,H,nt;K<w;++K)if(H=L[K]){for(K>=Z&&(Z=K+1);!(nt=N[Z])&&++Z<w;);H._next=nt||null}}return s=new Pe(s,a),s._enter=l,s._exit=c,s}function et(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function rt(){return new Pe(this._exit||this._groups.map(V),this._parents)}function at(t,e,r){var a=this.enter(),o=this,i=this.exit();return typeof t=="function"?(a=t(a),a&&(a=a.selection())):a=a.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),r==null?i.remove():r(i),a&&o?a.merge(o).order():o}function ut(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,o=r.length,i=a.length,s=Math.min(o,i),l=new Array(o),c=0;c<s;++c)for(var f=r[c],v=a[c],p=f.length,y=l[c]=new Array(p),A,w=0;w<p;++w)(A=f[w]||v[w])&&(y[w]=A);for(;c<o;++c)l[c]=r[c];return new Pe(l,this._parents)}function xt(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a=t[e],o=a.length-1,i=a[o],s;--o>=0;)(s=a[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function pt(t){t||(t=gt);function e(p,y){return p&&y?t(p.__data__,y.__data__):!p-!y}for(var r=this._groups,a=r.length,o=new Array(a),i=0;i<a;++i){for(var s=r[i],l=s.length,c=o[i]=new Array(l),f,v=0;v<l;++v)(f=s[v])&&(c[v]=f);c.sort(e)}return new Pe(o,this._parents).order()}function gt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function It(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function At(){return Array.from(this)}function Mt(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],o=0,i=a.length;o<i;++o){var s=a[o];if(s)return s}return null}function ct(){let t=0;for(const e of this)++t;return t}function lt(){return!this.node()}function Ct(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var o=e[r],i=0,s=o.length,l;i<s;++i)(l=o[i])&&t.call(l,l.__data__,i,o);return this}var Nt="http://www.w3.org/1999/xhtml",Gt={svg:"http://www.w3.org/2000/svg",xhtml:Nt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Gt.hasOwnProperty(e)?{space:Gt[e],local:t}:t}function jt(t){return function(){this.removeAttribute(t)}}function re(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ie(t,e){return function(){this.setAttribute(t,e)}}function ne(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ae(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Ae(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Ie(t,e){var r=Ot(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?re:jt:typeof e=="function"?r.local?Ae:ae:r.local?ne:ie)(r,e))}function pe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function le(t){return function(){this.style.removeProperty(t)}}function be(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Se(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function me(t,e,r){return arguments.length>1?this.each((e==null?le:typeof e=="function"?Se:be)(t,e,r==null?"":r)):wt(this.node(),t)}function wt(t,e){return t.style.getPropertyValue(e)||pe(t).getComputedStyle(t,null).getPropertyValue(e)}function Yt(t){return function(){delete this[t]}}function ue(t,e){return function(){this[t]=e}}function Vt(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function _t(t,e){return arguments.length>1?this.each((e==null?Yt:typeof e=="function"?Vt:ue)(t,e)):this.node()[t]}function te(t){return t.trim().split(/^|\s+/)}function Zt(t){return t.classList||new xe(t)}function xe(t){this._node=t,this._names=te(t.getAttribute("class")||"")}xe.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 We(t,e){for(var r=Zt(t),a=-1,o=e.length;++a<o;)r.add(e[a])}function ht(t,e){for(var r=Zt(t),a=-1,o=e.length;++a<o;)r.remove(e[a])}function Lt(t){return function(){We(this,t)}}function Bt(t){return function(){ht(this,t)}}function Ut(t,e){return function(){(e.apply(this,arguments)?We:ht)(this,t)}}function Xt(t,e){var r=te(t+"");if(arguments.length<2){for(var a=Zt(this.node()),o=-1,i=r.length;++o<i;)if(!a.contains(r[o]))return!1;return!0}return this.each((typeof e=="function"?Ut:e?Lt:Bt)(r,e))}function Pt(){this.textContent=""}function ce(t){return function(){this.textContent=t}}function De(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Dt(t){return arguments.length?this.each(t==null?Pt:(typeof t=="function"?De:ce)(t)):this.node().textContent}function Jt(){this.innerHTML=""}function Qt(t){return function(){this.innerHTML=t}}function qt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function ve(t){return arguments.length?this.each(t==null?Jt:(typeof t=="function"?qt:Qt)(t)):this.node().innerHTML}function Re(){this.nextSibling&&this.parentNode.appendChild(this)}function Ye(){return this.each(Re)}function Je(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nn(){return this.each(Je)}function yn(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Nt&&e.documentElement.namespaceURI===Nt?e.createElement(t):e.createElementNS(r,t)}}function Xn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Kr(t){var e=Ot(t);return(e.local?Xn:yn)(e)}function Ja(t){var e=typeof t=="function"?t:Kr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function xa(){return null}function Tr(t,e){var r=typeof t=="function"?t:Kr(t),a=e==null?xa:typeof e=="function"?e:g(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function Hn(){var t=this.parentNode;t&&t.removeChild(this)}function Qa(){return this.each(Hn)}function sr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ta(t){return this.select(t?Qn:sr)}function Sr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function An(t){return function(e){t.call(this,e,this.__data__)}}function Nn(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function ka(t){return function(){var e=this.__on;if(e){for(var r=0,a=-1,o=e.length,i;r<o;++r)i=e[r],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++a]=i;++a?e.length=a:delete this.__on}}}function qa(t,e,r){return function(){var a=this.__on,o,i=An(e);if(a){for(var s=0,l=a.length;s<l;++s)if((o=a[s]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=r),o.value=e;return}}this.addEventListener(t.type,i,r),o={type:t.type,name:t.name,value:e,listener:i,options:r},a?a.push(o):this.__on=[o]}}function ft(t,e,r){var a=Nn(t+""),o,i=a.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,f=l.length,v;c<f;++c)for(o=0,v=l[c];o<i;++o)if((s=a[o]).type===v.type&&s.name===v.name)return v.value}return}for(l=e?qa:ka,o=0;o<i;++o)this.each(l(a[o],e,r));return this}function zt(t,e,r){var a=pe(t),o=a.CustomEvent;typeof o=="function"?o=new o(e,r):(o=a.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function St(t,e){return function(){return zt(this,t,e)}}function st(t,e){return function(){return zt(this,t,e.apply(this,arguments))}}function Ft(t,e){return this.each((typeof e=="function"?st:St)(t,e))}function*Te(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],o=0,i=a.length,s;o<i;++o)(s=a[o])&&(yield s)}var oe=[null];function Pe(t,e){this._groups=t,this._parents=e}function rn(){return new Pe([[document.documentElement]],oe)}function vn(){return this}Pe.prototype=rn.prototype={constructor:Pe,select:m,selectAll:b,selectChild:F,selectChildren:j,filter:G,data:_,enter:X,exit:rt,join:at,merge:ut,selection:vn,order:xt,sort:pt,call:It,nodes:At,node:Mt,size:ct,empty:lt,each:Ct,attr:Ie,style:me,property:_t,classed:Xt,text:Dt,html:ve,raise:Ye,lower:nn,append:Ja,insert:Tr,remove:Qa,clone:Ta,datum:Sr,on:ft,dispatch:Ft,[Symbol.iterator]:Te};var xn=rn;function it(t){return typeof t=="string"?new Pe([[document.querySelector(t)]],[document.documentElement]):new Pe([[t]],oe)}const an=new Date,Bn=new Date;function en(t,e,r,a){function o(i){return t(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(t(i=new Date(+i)),i),o.ceil=i=>(t(i=new Date(i-1)),e(i,1),t(i),i),o.round=i=>{const s=o(i),l=o.ceil(i);return i-s<l-i?s:l},o.offset=(i,s)=>(e(i=new Date(+i),s==null?1:Math.floor(s)),i),o.range=(i,s,l)=>{const c=[];if(i=o.ceil(i),l=l==null?1:Math.floor(l),!(i<s)||!(l>0))return c;let f;do c.push(f=new Date(+i)),e(i,l),t(i);while(f<i&&i<s);return c},o.filter=i=>en(s=>{if(s>=s)for(;t(s),!i(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;e(s,-1),!i(s););else for(;--l>=0;)for(;e(s,1),!i(s););}),r&&(o.count=(i,s)=>(an.setTime(+i),Bn.setTime(+s),t(an),t(Bn),Math.floor(r(an,Bn))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(a?s=>a(s)%i===0:s=>o.count(0,s)%i===0):o)),o}const Wn=1e3,Mn=Wn*60,Un=Mn*60,lr=Un*24,ii=lr*7,Ns=lr*30,si=lr*365;function Cr(t){return en(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/ii)}const _a=Cr(0),to=Cr(1),Vf=Cr(2),Xf=Cr(3),Zr=Cr(4),Hf=Cr(5),Wf=Cr(6),d1=_a.range,h1=to.range,v1=Vf.range,g1=Xf.range,p1=Zr.range,m1=Hf.range,y1=Wf.range;function Pr(t){return en(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/ii)}const eo=Pr(0),no=Pr(1),Yf=Pr(2),Kf=Pr(3),Jr=Pr(4),Zf=Pr(5),Jf=Pr(6),x1=eo.range,T1=no.range,S1=Yf.range,$1=Kf.range,A1=Jr.range,E1=Zf.range,I1=Jf.range,Sa=en(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Mn)/lr,t=>t.getDate()-1),b1=Sa.range,ro=en(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/lr,t=>t.getUTCDate()-1),R1=ro.range,Ls=en(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/lr,t=>Math.floor(t/lr)),O1=Ls.range,cr=en(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());cr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:en(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});const C1=cr.range,ur=en(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());ur.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:en(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});const P1=ur.range;function li(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 ci(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 $a(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function Qf(t){var e=t.dateTime,r=t.date,a=t.time,o=t.periods,i=t.days,s=t.shortDays,l=t.months,c=t.shortMonths,f=Aa(o),v=Ea(o),p=Aa(i),y=Ea(i),A=Aa(s),w=Ea(s),L=Aa(l),N=Ea(l),D=Aa(c),K=Ea(c),Z={a:Rt,A:kt,b:Ht,B:Kt,c:null,d:Gs,e:Gs,f:xd,g:Cd,G:Md,H:pd,I:md,j:yd,L:Vs,m:Td,M:Sd,p:se,q:he,Q:Zs,s:Js,S:$d,u:Ad,U:Ed,V:Id,w:bd,W:Rd,x:null,X:null,y:Od,Y:Pd,Z:wd,"%":Ks},H={a:Oe,A:Me,b:we,B:Ke,c:null,d:Hs,e:Hs,f:Fd,g:Yd,G:Zd,H:Dd,I:Nd,j:Ld,L:Ws,m:Bd,M:Ud,p:ze,q:hn,Q:Zs,s:Js,S:zd,u:jd,U:Gd,V:Vd,w:Xd,W:Hd,x:null,X:null,y:Wd,Y:Kd,Z:Jd,"%":Ks},nt={a:Tt,A:mt,b:bt,B:yt,c:q,d:zs,e:zs,f:dd,g:Us,G:Bs,H:js,I:js,j:ld,L:fd,m:sd,M:cd,p:$t,q:id,Q:vd,s:gd,S:ud,u:ed,U:nd,V:rd,w:td,W:ad,x:Et,X:dt,y:Us,Y:Bs,Z:od,"%":hd};Z.x=Q(r,Z),Z.X=Q(a,Z),Z.c=Q(e,Z),H.x=Q(r,H),H.X=Q(a,H),H.c=Q(e,H);function Q(ee,$e){return function(Ce){var Wt=[],un=-1,He=0,wn=ee.length,Dn,ge,fn;for(Ce instanceof Date||(Ce=new Date(+Ce));++un<wn;)ee.charCodeAt(un)===37&&(Wt.push(ee.slice(He,un)),(ge=Fs[Dn=ee.charAt(++un)])!=null?Dn=ee.charAt(++un):ge=Dn==="e"?" ":"0",(fn=$e[Dn])&&(Dn=fn(Ce,ge)),Wt.push(Dn),He=un+1);return Wt.push(ee.slice(He,un)),Wt.join("")}}function ot(ee,$e){return function(Ce){var Wt=$a(1900,void 0,1),un=vt(Wt,ee,Ce+="",0),He,wn;if(un!=Ce.length)return null;if("Q"in Wt)return new Date(Wt.Q);if("s"in Wt)return new Date(Wt.s*1e3+("L"in Wt?Wt.L:0));if($e&&!("Z"in Wt)&&(Wt.Z=0),"p"in Wt&&(Wt.H=Wt.H%12+Wt.p*12),Wt.m===void 0&&(Wt.m="q"in Wt?Wt.q:0),"V"in Wt){if(Wt.V<1||Wt.V>53)return null;"w"in Wt||(Wt.w=1),"Z"in Wt?(He=ci($a(Wt.y,0,1)),wn=He.getUTCDay(),He=wn>4||wn===0?no.ceil(He):no(He),He=ro.offset(He,(Wt.V-1)*7),Wt.y=He.getUTCFullYear(),Wt.m=He.getUTCMonth(),Wt.d=He.getUTCDate()+(Wt.w+6)%7):(He=li($a(Wt.y,0,1)),wn=He.getDay(),He=wn>4||wn===0?to.ceil(He):to(He),He=Sa.offset(He,(Wt.V-1)*7),Wt.y=He.getFullYear(),Wt.m=He.getMonth(),Wt.d=He.getDate()+(Wt.w+6)%7)}else("W"in Wt||"U"in Wt)&&("w"in Wt||(Wt.w="u"in Wt?Wt.u%7:"W"in Wt?1:0),wn="Z"in Wt?ci($a(Wt.y,0,1)).getUTCDay():li($a(Wt.y,0,1)).getDay(),Wt.m=0,Wt.d="W"in Wt?(Wt.w+6)%7+Wt.W*7-(wn+5)%7:Wt.w+Wt.U*7-(wn+6)%7);return"Z"in Wt?(Wt.H+=Wt.Z/100|0,Wt.M+=Wt.Z%100,ci(Wt)):li(Wt)}}function vt(ee,$e,Ce,Wt){for(var un=0,He=$e.length,wn=Ce.length,Dn,ge;un<He;){if(Wt>=wn)return-1;if(Dn=$e.charCodeAt(un++),Dn===37){if(Dn=$e.charAt(un++),ge=nt[Dn in Fs?$e.charAt(un++):Dn],!ge||(Wt=ge(ee,Ce,Wt))<0)return-1}else if(Dn!=Ce.charCodeAt(Wt++))return-1}return Wt}function $t(ee,$e,Ce){var Wt=f.exec($e.slice(Ce));return Wt?(ee.p=v.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function Tt(ee,$e,Ce){var Wt=A.exec($e.slice(Ce));return Wt?(ee.w=w.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function mt(ee,$e,Ce){var Wt=p.exec($e.slice(Ce));return Wt?(ee.w=y.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function bt(ee,$e,Ce){var Wt=D.exec($e.slice(Ce));return Wt?(ee.m=K.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function yt(ee,$e,Ce){var Wt=L.exec($e.slice(Ce));return Wt?(ee.m=N.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function q(ee,$e,Ce){return vt(ee,e,$e,Ce)}function Et(ee,$e,Ce){return vt(ee,r,$e,Ce)}function dt(ee,$e,Ce){return vt(ee,a,$e,Ce)}function Rt(ee){return s[ee.getDay()]}function kt(ee){return i[ee.getDay()]}function Ht(ee){return c[ee.getMonth()]}function Kt(ee){return l[ee.getMonth()]}function se(ee){return o[+(ee.getHours()>=12)]}function he(ee){return 1+~~(ee.getMonth()/3)}function Oe(ee){return s[ee.getUTCDay()]}function Me(ee){return i[ee.getUTCDay()]}function we(ee){return c[ee.getUTCMonth()]}function Ke(ee){return l[ee.getUTCMonth()]}function ze(ee){return o[+(ee.getUTCHours()>=12)]}function hn(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var $e=Q(ee+="",Z);return $e.toString=function(){return ee},$e},parse:function(ee){var $e=ot(ee+="",!1);return $e.toString=function(){return ee},$e},utcFormat:function(ee){var $e=Q(ee+="",H);return $e.toString=function(){return ee},$e},utcParse:function(ee){var $e=ot(ee+="",!0);return $e.toString=function(){return ee},$e}}}var Fs={"-":"",_:" ",0:"0"},Tn=/^\s*\d+/,kf=/^%/,qf=/[\\^$*+?|[\]().{}]/g;function Be(t,e,r){var a=t<0?"-":"",o=(a?-t:t)+"",i=o.length;return a+(i<r?new Array(r-i+1).join(e)+o:o)}function _f(t){return t.replace(qf,"\\$&")}function Aa(t){return new RegExp("^(?:"+t.map(_f).join("|")+")","i")}function Ea(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function td(t,e,r){var a=Tn.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function ed(t,e,r){var a=Tn.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function nd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function rd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function ad(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Bs(t,e,r){var a=Tn.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function Us(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function od(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function id(t,e,r){var a=Tn.exec(e.slice(r,r+1));return a?(t.q=a[0]*3-3,r+a[0].length):-1}function sd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function zs(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function ld(t,e,r){var a=Tn.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function js(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function cd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function ud(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function fd(t,e,r){var a=Tn.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function dd(t,e,r){var a=Tn.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function hd(t,e,r){var a=kf.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function vd(t,e,r){var a=Tn.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function gd(t,e,r){var a=Tn.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Gs(t,e){return Be(t.getDate(),e,2)}function pd(t,e){return Be(t.getHours(),e,2)}function md(t,e){return Be(t.getHours()%12||12,e,2)}function yd(t,e){return Be(1+Sa.count(cr(t),t),e,3)}function Vs(t,e){return Be(t.getMilliseconds(),e,3)}function xd(t,e){return Vs(t,e)+"000"}function Td(t,e){return Be(t.getMonth()+1,e,2)}function Sd(t,e){return Be(t.getMinutes(),e,2)}function $d(t,e){return Be(t.getSeconds(),e,2)}function Ad(t){var e=t.getDay();return e===0?7:e}function Ed(t,e){return Be(_a.count(cr(t)-1,t),e,2)}function Xs(t){var e=t.getDay();return e>=4||e===0?Zr(t):Zr.ceil(t)}function Id(t,e){return t=Xs(t),Be(Zr.count(cr(t),t)+(cr(t).getDay()===4),e,2)}function bd(t){return t.getDay()}function Rd(t,e){return Be(to.count(cr(t)-1,t),e,2)}function Od(t,e){return Be(t.getFullYear()%100,e,2)}function Cd(t,e){return t=Xs(t),Be(t.getFullYear()%100,e,2)}function Pd(t,e){return Be(t.getFullYear()%1e4,e,4)}function Md(t,e){var r=t.getDay();return t=r>=4||r===0?Zr(t):Zr.ceil(t),Be(t.getFullYear()%1e4,e,4)}function wd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Be(e/60|0,"0",2)+Be(e%60,"0",2)}function Hs(t,e){return Be(t.getUTCDate(),e,2)}function Dd(t,e){return Be(t.getUTCHours(),e,2)}function Nd(t,e){return Be(t.getUTCHours()%12||12,e,2)}function Ld(t,e){return Be(1+ro.count(ur(t),t),e,3)}function Ws(t,e){return Be(t.getUTCMilliseconds(),e,3)}function Fd(t,e){return Ws(t,e)+"000"}function Bd(t,e){return Be(t.getUTCMonth()+1,e,2)}function Ud(t,e){return Be(t.getUTCMinutes(),e,2)}function zd(t,e){return Be(t.getUTCSeconds(),e,2)}function jd(t){var e=t.getUTCDay();return e===0?7:e}function Gd(t,e){return Be(eo.count(ur(t)-1,t),e,2)}function Ys(t){var e=t.getUTCDay();return e>=4||e===0?Jr(t):Jr.ceil(t)}function Vd(t,e){return t=Ys(t),Be(Jr.count(ur(t),t)+(ur(t).getUTCDay()===4),e,2)}function Xd(t){return t.getUTCDay()}function Hd(t,e){return Be(no.count(ur(t)-1,t),e,2)}function Wd(t,e){return Be(t.getUTCFullYear()%100,e,2)}function Yd(t,e){return t=Ys(t),Be(t.getUTCFullYear()%100,e,2)}function Kd(t,e){return Be(t.getUTCFullYear()%1e4,e,4)}function Zd(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Jr(t):Jr.ceil(t),Be(t.getUTCFullYear()%1e4,e,4)}function Jd(){return"+0000"}function Ks(){return"%"}function Zs(t){return+t}function Js(t){return Math.floor(+t/1e3)}var Qr,ui,Qs,fi,ks;Qd({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 Qd(t){return Qr=Qf(t),ui=Qr.format,Qs=Qr.parse,fi=Qr.utcFormat,ks=Qr.utcParse,Qr}var kd=Object.defineProperty,qs=Object.getOwnPropertySymbols,qd=Object.prototype.hasOwnProperty,_d=Object.prototype.propertyIsEnumerable,_s=(t,e,r)=>e in t?kd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ke=(t,e)=>{for(var r in e||(e={}))qd.call(e,r)&&_s(t,r,e[r]);if(qs)for(var r of qs(e))_d.call(e,r)&&_s(t,r,e[r]);return t};const Ee={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},Le={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",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"},ao={area:"bb-area",areas:"bb-areas"},gn={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",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},zn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},fr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},En={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},di={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Mr={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ia={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},jn={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"},Ze={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"},dr={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},kn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},qe={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},on={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"},$r={level:"bb-level",levels:"bb-levels"},tl={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},ba={region:"bb-region",regions:"bb-regions"},tn={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},sn={shape:"bb-shape",shapes:"bb-shapes"},el={brush:"bb-brush",subchart:"bb-subchart"},pn={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},oo={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},nl={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},hi={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ve=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke({},Ee),Le),ao),gn),zn),fr),En),di),Mr),jn),Ze),dr),kn),qe),Ia),on),tl),ba),tn),sn),el),pn),oo),nl),hi),th={boost_useCssRule:!1,boost_useWorker:!1},eh={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},nh={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},rh={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:[]},ah={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},oh={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},ih={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_labels_imgUrl:void 0,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:""},sh={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{},interaction_onout:!0},lh={value:()=>{}};function rl(){for(var t=0,e=arguments.length,r={},a;t<e;++t){if(!(a=arguments[t]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new io(r)}function io(t){this._=t}function ch(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",o=r.indexOf(".");if(o>=0&&(a=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}io.prototype=rl.prototype={constructor:io,on:function(t,e){var r=this._,a=ch(t+"",r),o,i=-1,s=a.length;if(arguments.length<2){for(;++i<s;)if((o=(t=a[i]).type)&&(o=uh(r[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<s;)if(o=(t=a[i]).type)r[o]=al(r[o],t.name,e);else if(e==null)for(o in r)r[o]=al(r[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new io(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var r=new Array(o),a=0,o,i;a<o;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],a=0,o=i.length;a<o;++a)i[a].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],o=0,i=a.length;o<i;++o)a[o].value.apply(e,r)}};function uh(t,e){for(var r=0,a=t.length,o;r<a;++r)if((o=t[r]).name===e)return o.value}function al(t,e,r){for(var a=0,o=t.length;a<o;++a)if(t[a].name===e){t[a]=lh,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}var so=rl;const fh={passive:!1},Ra={capture:!0,passive:!1};function vi(t){t.stopImmediatePropagation()}function kr(t){t.preventDefault(),t.stopImmediatePropagation()}function gi(t){var e=t.document.documentElement,r=it(t).on("dragstart.drag",kr,Ra);"onselectstart"in e?r.on("selectstart.drag",kr,Ra):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function pi(t,e){var r=t.document.documentElement,a=it(t).on("dragstart.drag",null);e&&(a.on("click.drag",kr,Ra),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function mi(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function ol(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function Oa(){}var Ca=.7,lo=1/Ca,qr="\\s*([+-]?\\d+)\\s*",Pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dh=/^#([0-9a-f]{3,8})$/,hh=new RegExp(`^rgb\\(${qr},${qr},${qr}\\)$`),vh=new RegExp(`^rgb\\(${nr},${nr},${nr}\\)$`),gh=new RegExp(`^rgba\\(${qr},${qr},${qr},${Pa}\\)$`),ph=new RegExp(`^rgba\\(${nr},${nr},${nr},${Pa}\\)$`),mh=new RegExp(`^hsl\\(${Pa},${nr},${nr}\\)$`),yh=new RegExp(`^hsla\\(${Pa},${nr},${nr},${Pa}\\)$`),il={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};mi(Oa,wr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:sl,formatHex:sl,formatHex8:xh,formatHsl:Th,formatRgb:ll,toString:ll});function sl(){return this.rgb().formatHex()}function xh(){return this.rgb().formatHex8()}function Th(){return hl(this).formatHsl()}function ll(){return this.rgb().formatRgb()}function wr(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=dh.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?cl(e):r===3?new Ln(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?co(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?co(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=hh.exec(t))?new Ln(e[1],e[2],e[3],1):(e=vh.exec(t))?new Ln(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=gh.exec(t))?co(e[1],e[2],e[3],e[4]):(e=ph.exec(t))?co(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=mh.exec(t))?dl(e[1],e[2]/100,e[3]/100,1):(e=yh.exec(t))?dl(e[1],e[2]/100,e[3]/100,e[4]):il.hasOwnProperty(t)?cl(il[t]):t==="transparent"?new Ln(NaN,NaN,NaN,0):null}function cl(t){return new Ln(t>>16&255,t>>8&255,t&255,1)}function co(t,e,r,a){return a<=0&&(t=e=r=NaN),new Ln(t,e,r,a)}function Sh(t){return t instanceof Oa||(t=wr(t)),t?(t=t.rgb(),new Ln(t.r,t.g,t.b,t.opacity)):new Ln}function uo(t,e,r,a){return arguments.length===1?Sh(t):new Ln(t,e,r,a==null?1:a)}function Ln(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}mi(Ln,uo,ol(Oa,{brighter(t){return t=t==null?lo:Math.pow(lo,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ca:Math.pow(Ca,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ln(Dr(this.r),Dr(this.g),Dr(this.b),fo(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:ul,formatHex:ul,formatHex8:$h,formatRgb:fl,toString:fl}));function ul(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}`}function $h(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}${Nr((isNaN(this.opacity)?1:this.opacity)*255)}`}function fl(){const t=fo(this.opacity);return`${t===1?"rgb(":"rgba("}${Dr(this.r)}, ${Dr(this.g)}, ${Dr(this.b)}${t===1?")":`, ${t})`}`}function fo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Dr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Nr(t){return t=Dr(t),(t<16?"0":"")+t.toString(16)}function dl(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new qn(t,e,r,a)}function hl(t){if(t instanceof qn)return new qn(t.h,t.s,t.l,t.opacity);if(t instanceof Oa||(t=wr(t)),!t)return new qn;if(t instanceof qn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,a=t.b/255,o=Math.min(e,r,a),i=Math.max(e,r,a),s=NaN,l=i-o,c=(i+o)/2;return l?(e===i?s=(r-a)/l+(r<a)*6:r===i?s=(a-e)/l+2:s=(e-r)/l+4,l/=c<.5?i+o:2-i-o,s*=60):l=c>0&&c<1?0:s,new qn(s,l,c,t.opacity)}function Ah(t,e,r,a){return arguments.length===1?hl(t):new qn(t,e,r,a==null?1:a)}function qn(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}mi(qn,Ah,ol(Oa,{brighter(t){return t=t==null?lo:Math.pow(lo,t),new qn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ca:Math.pow(Ca,t),new qn(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,r=this.l,a=r+(r<.5?r:1-r)*e,o=2*r-a;return new Ln(yi(t>=240?t-240:t+120,o,a),yi(t,o,a),yi(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new qn(vl(this.h),ho(this.s),ho(this.l),fo(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=fo(this.opacity);return`${t===1?"hsl(":"hsla("}${vl(this.h)}, ${ho(this.s)*100}%, ${ho(this.l)*100}%${t===1?")":`, ${t})`}`}}));function vl(t){return t=(t||0)%360,t<0?t+360:t}function ho(t){return Math.max(0,Math.min(1,t||0))}function yi(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function gl(t,e,r,a,o){var i=t*t,s=i*t;return((1-3*t+3*i-s)*e+(4-6*i+3*s)*r+(1+3*t+3*i-3*s)*a+s*o)/6}function Eh(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[a],i=t[a+1],s=a>0?t[a-1]:2*o-i,l=a<e-1?t[a+2]:2*i-o;return gl((r-a/e)*e,s,o,i,l)}}function Ih(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e),o=t[(a+e-1)%e],i=t[a%e],s=t[(a+1)%e],l=t[(a+2)%e];return gl((r-a/e)*e,o,i,s,l)}}var vo=(t=>()=>t);function pl(t,e){return function(r){return t+r*e}}function bh(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(a){return Math.pow(t+a*e,r)}}function M1(t,e){var r=e-t;return r?pl(t,r>180||r<-180?r-360*Math.round(r/360):r):vo(isNaN(t)?e:t)}function Rh(t){return(t=+t)==1?ml:function(e,r){return r-e?bh(e,r,t):vo(isNaN(e)?r:e)}}function ml(t,e){var r=e-t;return r?pl(t,r):vo(isNaN(t)?e:t)}var go=(function t(e){var r=Rh(e);function a(o,i){var s=r((o=uo(o)).r,(i=uo(i)).r),l=r(o.g,i.g),c=r(o.b,i.b),f=ml(o.opacity,i.opacity);return function(v){return o.r=s(v),o.g=l(v),o.b=c(v),o.opacity=f(v),o+""}}return a.gamma=t,a})(1);function yl(t){return function(e){var r=e.length,a=new Array(r),o=new Array(r),i=new Array(r),s,l;for(s=0;s<r;++s)l=uo(e[s]),a[s]=l.r||0,o[s]=l.g||0,i[s]=l.b||0;return a=t(a),o=t(o),i=t(i),l.opacity=1,function(c){return l.r=a(c),l.g=o(c),l.b=i(c),l+""}}}var w1=yl(Eh),D1=yl(Ih);function xl(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,a=e.slice(),o;return function(i){for(o=0;o<r;++o)a[o]=t[o]*(1-i)+e[o]*i;return a}}function Tl(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function N1(t,e){return(Tl(e)?xl:Sl)(t,e)}function Sl(t,e){var r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),i=new Array(r),s;for(s=0;s<a;++s)o[s]=_r(t[s],e[s]);for(;s<r;++s)i[s]=e[s];return function(l){for(s=0;s<a;++s)i[s]=o[s](l);return i}}function Oh(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function _n(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ch(t,e){var r={},a={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?r[o]=_r(t[o],e[o]):a[o]=e[o];return function(i){for(o in r)a[o]=r[o](i);return a}}var xi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ti=new RegExp(xi.source,"g");function Ph(t){return function(){return t}}function Mh(t){return function(e){return t(e)+""}}function $l(t,e){var r=xi.lastIndex=Ti.lastIndex=0,a,o,i,s=-1,l=[],c=[];for(t=t+"",e=e+"";(a=xi.exec(t))&&(o=Ti.exec(e));)(i=o.index)>r&&(i=e.slice(r,i),l[s]?l[s]+=i:l[++s]=i),(a=a[0])===(o=o[0])?l[s]?l[s]+=o:l[++s]=o:(l[++s]=null,c.push({i:s,x:_n(a,o)})),r=Ti.lastIndex;return r<e.length&&(i=e.slice(r),l[s]?l[s]+=i:l[++s]=i),l.length<2?c[0]?Mh(c[0].x):Ph(e):(e=c.length,function(f){for(var v=0,p;v<e;++v)l[(p=c[v]).i]=p.x(f);return l.join("")})}function _r(t,e){var r=typeof e,a;return e==null||r==="boolean"?vo(e):(r==="number"?_n:r==="string"?(a=wr(e))?(e=a,go):$l:e instanceof wr?go:e instanceof Date?Oh:Tl(e)?xl:Array.isArray(e)?Sl:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Ch:_n)(t,e)}function wh(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Yn(t,e){if(t=wh(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,a=a.matrixTransform(e.getScreenCTM().inverse()),[a.x,a.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var ta=0,Ma=0,wa=0,Al=1e3,po,Da,mo=0,Lr=0,yo=0,Na=typeof performance=="object"&&performance.now?performance:Date,El=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Si(){return Lr||(El(Dh),Lr=Na.now()+yo)}function Dh(){Lr=0}function xo(){this._call=this._time=this._next=null}xo.prototype=Il.prototype={constructor:xo,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Si():+r)+(e==null?0:+e),!this._next&&Da!==this&&(Da?Da._next=this:po=this,Da=this),this._call=t,this._time=r,$i()},stop:function(){this._call&&(this._call=null,this._time=1/0,$i())}};function Il(t,e,r){var a=new xo;return a.restart(t,e,r),a}function Nh(){Si(),++ta;for(var t=po,e;t;)(e=Lr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--ta}function bl(){Lr=(mo=Na.now())+yo,ta=Ma=0;try{Nh()}finally{ta=0,Fh(),Lr=0}}function Lh(){var t=Na.now(),e=t-mo;e>Al&&(yo-=e,mo=t)}function Fh(){for(var t,e=po,r,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:po=r);Da=t,$i(a)}function $i(t){if(!ta){Ma&&(Ma=clearTimeout(Ma));var e=t-Lr;e>24?(t<1/0&&(Ma=setTimeout(bl,t-Na.now()-yo)),wa&&(wa=clearInterval(wa))):(wa||(mo=Na.now(),wa=setInterval(Lh,Al)),ta=1,El(bl))}}function Rl(t,e,r){var a=new xo;return e=e==null?0:+e,a.restart(o=>{a.stop(),t(o+e)},e,r),a}var Bh=so("start","end","cancel","interrupt"),Uh=[],Ol=0,Cl=1,Ai=2,To=3,Pl=4,Ei=5,So=6;function $o(t,e,r,a,o,i){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;zh(t,r,{name:e,index:a,group:o,on:Bh,tween:Uh,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:Ol})}function Ii(t,e){var r=tr(t,e);if(r.state>Ol)throw new Error("too late; already scheduled");return r}function rr(t,e){var r=tr(t,e);if(r.state>To)throw new Error("too late; already running");return r}function tr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function zh(t,e,r){var a=t.__transition,o;a[e]=r,r.timer=Il(i,0,r.time);function i(f){r.state=Cl,r.timer.restart(s,r.delay,r.time),r.delay<=f&&s(f-r.delay)}function s(f){var v,p,y,A;if(r.state!==Cl)return c();for(v in a)if(A=a[v],A.name===r.name){if(A.state===To)return Rl(s);A.state===Pl?(A.state=So,A.timer.stop(),A.on.call("interrupt",t,t.__data__,A.index,A.group),delete a[v]):+v<e&&(A.state=So,A.timer.stop(),A.on.call("cancel",t,t.__data__,A.index,A.group),delete a[v])}if(Rl(function(){r.state===To&&(r.state=Pl,r.timer.restart(l,r.delay,r.time),l(f))}),r.state=Ai,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Ai){for(r.state=To,o=new Array(y=r.tween.length),v=0,p=-1;v<y;++v)(A=r.tween[v].value.call(t,t.__data__,r.index,r.group))&&(o[++p]=A);o.length=p+1}}function l(f){for(var v=f<r.duration?r.ease.call(null,f/r.duration):(r.timer.restart(c),r.state=Ei,1),p=-1,y=o.length;++p<y;)o[p].call(t,v);r.state===Ei&&(r.on.call("end",t,t.__data__,r.index,r.group),c())}function c(){r.state=So,r.timer.stop(),delete a[e];for(var f in a)return;delete t.__transition}}function ea(t,e){var r=t.__transition,a,o,i=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((a=r[s]).name!==e){i=!1;continue}o=a.state>Ai&&a.state<Ei,a.state=So,a.timer.stop(),a.on.call(o?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete r[s]}i&&delete t.__transition}}function jh(t){return this.each(function(){ea(this,t)})}var Ml=180/Math.PI,bi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wl(t,e,r,a,o,i){var s,l,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*r+e*a)&&(r-=t*c,a-=e*c),(l=Math.sqrt(r*r+a*a))&&(r/=l,a/=l,c/=l),t*a<e*r&&(t=-t,e=-e,c=-c,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(e,t)*Ml,skewX:Math.atan(c)*Ml,scaleX:s,scaleY:l}}var Ao;function Gh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?bi:wl(e.a,e.b,e.c,e.d,e.e,e.f)}function Vh(t){return t==null||(Ao||(Ao=document.createElementNS("http://www.w3.org/2000/svg","g")),Ao.setAttribute("transform",t),!(t=Ao.transform.baseVal.consolidate()))?bi:(t=t.matrix,wl(t.a,t.b,t.c,t.d,t.e,t.f))}function Dl(t,e,r,a){function o(f){return f.length?f.pop()+" ":""}function i(f,v,p,y,A,w){if(f!==p||v!==y){var L=A.push("translate(",null,e,null,r);w.push({i:L-4,x:_n(f,p)},{i:L-2,x:_n(v,y)})}else(p||y)&&A.push("translate("+p+e+y+r)}function s(f,v,p,y){f!==v?(f-v>180?v+=360:v-f>180&&(f+=360),y.push({i:p.push(o(p)+"rotate(",null,a)-2,x:_n(f,v)})):v&&p.push(o(p)+"rotate("+v+a)}function l(f,v,p,y){f!==v?y.push({i:p.push(o(p)+"skewX(",null,a)-2,x:_n(f,v)}):v&&p.push(o(p)+"skewX("+v+a)}function c(f,v,p,y,A,w){if(f!==p||v!==y){var L=A.push(o(A)+"scale(",null,",",null,")");w.push({i:L-4,x:_n(f,p)},{i:L-2,x:_n(v,y)})}else(p!==1||y!==1)&&A.push(o(A)+"scale("+p+","+y+")")}return function(f,v){var p=[],y=[];return f=t(f),v=t(v),i(f.translateX,f.translateY,v.translateX,v.translateY,p,y),s(f.rotate,v.rotate,p,y),l(f.skewX,v.skewX,p,y),c(f.scaleX,f.scaleY,v.scaleX,v.scaleY,p,y),f=v=null,function(A){for(var w=-1,L=y.length,N;++w<L;)p[(N=y[w]).i]=N.x(A);return p.join("")}}}var Xh=Dl(Gh,"px, ","px)","deg)"),Hh=Dl(Vh,", ",")",")");function Wh(t,e){var r,a;return function(){var o=rr(this,t),i=o.tween;if(i!==r){a=r=i;for(var s=0,l=a.length;s<l;++s)if(a[s].name===e){a=a.slice(),a.splice(s,1);break}}o.tween=a}}function Yh(t,e,r){var a,o;if(typeof r!="function")throw new Error;return function(){var i=rr(this,t),s=i.tween;if(s!==a){o=(a=s).slice();for(var l={name:e,value:r},c=0,f=o.length;c<f;++c)if(o[c].name===e){o[c]=l;break}c===f&&o.push(l)}i.tween=o}}function Kh(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a=tr(this.node(),r).tween,o=0,i=a.length,s;o<i;++o)if((s=a[o]).name===t)return s.value;return null}return this.each((e==null?Wh:Yh)(r,t,e))}function Ri(t,e,r){var a=t._id;return t.each(function(){var o=rr(this,a);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return tr(o,a).value[e]}}function Nl(t,e){var r;return(typeof e=="number"?_n:e instanceof wr?go:(r=wr(e))?(e=r,go):$l)(t,e)}function Zh(t){return function(){this.removeAttribute(t)}}function Jh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Qh(t,e,r){var a,o=r+"",i;return function(){var s=this.getAttribute(t);return s===o?null:s===a?i:i=e(a=s,r)}}function kh(t,e,r){var a,o=r+"",i;return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===a?i:i=e(a=s,r)}}function qh(t,e,r){var a,o,i;return function(){var s,l=r(this),c;return l==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=l+"",s===c?null:s===a&&c===o?i:(o=c,i=e(a=s,l)))}}function _h(t,e,r){var a,o,i;return function(){var s,l=r(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=l+"",s===c?null:s===a&&c===o?i:(o=c,i=e(a=s,l)))}}function tv(t,e){var r=Ot(t),a=r==="transform"?Hh:Nl;return this.attrTween(t,typeof e=="function"?(r.local?_h:qh)(r,a,Ri(this,"attr."+t,e)):e==null?(r.local?Jh:Zh)(r):(r.local?kh:Qh)(r,a,e))}function ev(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function nv(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function rv(t,e){var r,a;function o(){var i=e.apply(this,arguments);return i!==a&&(r=(a=i)&&nv(t,i)),r}return o._value=e,o}function av(t,e){var r,a;function o(){var i=e.apply(this,arguments);return i!==a&&(r=(a=i)&&ev(t,i)),r}return o._value=e,o}function ov(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var a=Ot(t);return this.tween(r,(a.local?rv:av)(a,e))}function iv(t,e){return function(){Ii(this,t).delay=+e.apply(this,arguments)}}function sv(t,e){return e=+e,function(){Ii(this,t).delay=e}}function lv(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?iv:sv)(e,t)):tr(this.node(),e).delay}function cv(t,e){return function(){rr(this,t).duration=+e.apply(this,arguments)}}function uv(t,e){return e=+e,function(){rr(this,t).duration=e}}function fv(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?cv:uv)(e,t)):tr(this.node(),e).duration}function dv(t,e){if(typeof e!="function")throw new Error;return function(){rr(this,t).ease=e}}function hv(t){var e=this._id;return arguments.length?this.each(dv(e,t)):tr(this.node(),e).ease}function vv(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;rr(this,t).ease=r}}function gv(t){if(typeof t!="function")throw new Error;return this.each(vv(this._id,t))}function pv(t){typeof t!="function"&&(t=R(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var i=e[o],s=i.length,l=a[o]=[],c,f=0;f<s;++f)(c=i[f])&&t.call(c,c.__data__,f,i)&&l.push(c);return new hr(a,this._parents,this._name,this._id)}function mv(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,o=r.length,i=Math.min(a,o),s=new Array(a),l=0;l<i;++l)for(var c=e[l],f=r[l],v=c.length,p=s[l]=new Array(v),y,A=0;A<v;++A)(y=c[A]||f[A])&&(p[A]=y);for(;l<a;++l)s[l]=e[l];return new hr(s,this._parents,this._name,this._id)}function yv(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function xv(t,e,r){var a,o,i=yv(e)?Ii:rr;return function(){var s=i(this,t),l=s.on;l!==a&&(o=(a=l).copy()).on(e,r),s.on=o}}function Tv(t,e){var r=this._id;return arguments.length<2?tr(this.node(),r).on.on(t):this.each(xv(r,t,e))}function Sv(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function $v(){return this.on("end.remove",Sv(this._id))}function Av(t){var e=this._name,r=this._id;typeof t!="function"&&(t=g(t));for(var a=this._groups,o=a.length,i=new Array(o),s=0;s<o;++s)for(var l=a[s],c=l.length,f=i[s]=new Array(c),v,p,y=0;y<c;++y)(v=l[y])&&(p=t.call(v,v.__data__,y,l))&&("__data__"in v&&(p.__data__=v.__data__),f[y]=p,$o(f[y],e,r,y,f,tr(v,r)));return new hr(i,this._parents,e,r)}function Ev(t){var e=this._name,r=this._id;typeof t!="function"&&(t=$(t));for(var a=this._groups,o=a.length,i=[],s=[],l=0;l<o;++l)for(var c=a[l],f=c.length,v,p=0;p<f;++p)if(v=c[p]){for(var y=t.call(v,v.__data__,p,c),A,w=tr(v,r),L=0,N=y.length;L<N;++L)(A=y[L])&&$o(A,e,r,L,y,w);i.push(y),s.push(v)}return new hr(i,s,e,r)}var Iv=xn.prototype.constructor;function bv(){return new Iv(this._groups,this._parents)}function Rv(t,e){var r,a,o;return function(){var i=wt(this,t),s=(this.style.removeProperty(t),wt(this,t));return i===s?null:i===r&&s===a?o:o=e(r=i,a=s)}}function Ll(t){return function(){this.style.removeProperty(t)}}function Ov(t,e,r){var a,o=r+"",i;return function(){var s=wt(this,t);return s===o?null:s===a?i:i=e(a=s,r)}}function Cv(t,e,r){var a,o,i;return function(){var s=wt(this,t),l=r(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),wt(this,t))),s===c?null:s===a&&c===o?i:(o=c,i=e(a=s,l))}}function Pv(t,e){var r,a,o,i="style."+e,s="end."+i,l;return function(){var c=rr(this,t),f=c.on,v=c.value[i]==null?l||(l=Ll(e)):void 0;(f!==r||o!==v)&&(a=(r=f).copy()).on(s,o=v),c.on=a}}function Mv(t,e,r){var a=(t+="")=="transform"?Xh:Nl;return e==null?this.styleTween(t,Rv(t,a)).on("end.style."+t,Ll(t)):typeof e=="function"?this.styleTween(t,Cv(t,a,Ri(this,"style."+t,e))).each(Pv(this._id,t)):this.styleTween(t,Ov(t,a,e),r).on("end.style."+t,null)}function wv(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Dv(t,e,r){var a,o;function i(){var s=e.apply(this,arguments);return s!==o&&(a=(o=s)&&wv(t,s,r)),a}return i._value=e,i}function Nv(t,e,r){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,Dv(t,e,r==null?"":r))}function Lv(t){return function(){this.textContent=t}}function Fv(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Bv(t){return this.tween("text",typeof t=="function"?Fv(Ri(this,"text",t)):Lv(t==null?"":t+""))}function Uv(t){return function(e){this.textContent=t.call(this,e)}}function zv(t){var e,r;function a(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&Uv(o)),e}return a._value=t,a}function jv(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,zv(t))}function Gv(){for(var t=this._name,e=this._id,r=Bl(),a=this._groups,o=a.length,i=0;i<o;++i)for(var s=a[i],l=s.length,c,f=0;f<l;++f)if(c=s[f]){var v=tr(c,e);$o(c,t,r,f,s,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new hr(a,this._parents,t,r)}function Vv(){var t,e,r=this,a=r._id,o=r.size();return new Promise(function(i,s){var l={value:s},c={value:function(){--o===0&&i()}};r.each(function(){var f=rr(this,a),v=f.on;v!==t&&(e=(t=v).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),f.on=e}),o===0&&i()})}var Xv=0;function hr(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Fl(t){return xn().transition(t)}function Bl(){return++Xv}var vr=xn.prototype;hr.prototype=Fl.prototype={constructor:hr,select:Av,selectAll:Ev,selectChild:vr.selectChild,selectChildren:vr.selectChildren,filter:pv,merge:mv,selection:bv,transition:Gv,call:vr.call,nodes:vr.nodes,node:vr.node,size:vr.size,empty:vr.empty,each:vr.each,on:Tv,attr:tv,attrTween:ov,style:Mv,styleTween:Nv,text:Bv,textTween:jv,remove:$v,tween:Kh,delay:lv,duration:fv,ease:hv,easeVarying:gv,end:Vv,[Symbol.iterator]:vr[Symbol.iterator]};function L1(t){return t*t*t}function F1(t){return--t*t*t+1}function Hv(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Wv={time:null,delay:0,duration:250,ease:Hv};function Yv(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function Kv(t){var e,r;t instanceof hr?(e=t._id,t=t._name):(e=Bl(),(r=Wv).time=Si(),t=t==null?null:t+"");for(var a=this._groups,o=a.length,i=0;i<o;++i)for(var s=a[i],l=s.length,c,f=0;f<l;++f)(c=s[f])&&$o(c,t,e,f,s,r||Yv(c,e));return new hr(a,this._parents,t,e)}xn.prototype.interrupt=jh,xn.prototype.transition=Kv;var Oi=(t=>()=>t);function Zv(t,{sourceEvent:e,target:r,selection:a,mode:o,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:i}})}function Jv(t){t.stopImmediatePropagation()}function Ci(t){t.preventDefault(),t.stopImmediatePropagation()}var Ul={name:"drag"},Pi={name:"space"},na={name:"handle"},ra={name:"center"};const{abs:zl,max:In,min:bn}=Math;function jl(t){return[+t[0],+t[1]]}function Mi(t){return[jl(t[0]),jl(t[1])]}var Eo={name:"x",handles:["w","e"].map(La),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]]}},Io={name:"y",handles:["n","s"].map(La),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]]}},Qv={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(La),input:function(t){return t==null?null:Mi(t)},output:function(t){return t}},gr={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"},Gl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Vl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},kv={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},qv={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function La(t){return{type:t}}function _v(t){return!t.ctrlKey&&!t.button}function tg(){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 eg(){return navigator.maxTouchPoints||"ontouchstart"in this}function wi(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ng(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Xl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function rg(){return Di(Eo)}function ag(){return Di(Io)}function B1(){return Di(Qv)}function Di(t){var e=tg,r=_v,a=eg,o=!0,i=so("start","brush","end"),s=6,l;function c(N){var D=N.property("__brush",L).selectAll(".overlay").data([La("overlay")]);D.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",gr.overlay).merge(D).each(function(){var Z=wi(this).extent;it(this).attr("x",Z[0][0]).attr("y",Z[0][1]).attr("width",Z[1][0]-Z[0][0]).attr("height",Z[1][1]-Z[0][1])}),N.selectAll(".selection").data([La("selection")]).enter().append("rect").attr("class","selection").attr("cursor",gr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var K=N.selectAll(".handle").data(t.handles,function(Z){return Z.type});K.exit().remove(),K.enter().append("rect").attr("class",function(Z){return"handle handle--"+Z.type}).attr("cursor",function(Z){return gr[Z.type]}),N.each(f).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",y).filter(a).on("touchstart.brush",y).on("touchmove.brush",A).on("touchend.brush touchcancel.brush",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(N,D,K){N.tween?N.on("start.brush",function(Z){v(this,arguments).beforestart().start(Z)}).on("interrupt.brush end.brush",function(Z){v(this,arguments).end(Z)}).tween("brush",function(){var Z=this,H=Z.__brush,nt=v(Z,arguments),Q=H.selection,ot=t.input(typeof D=="function"?D.apply(this,arguments):D,H.extent),vt=_r(Q,ot);function $t(Tt){H.selection=Tt===1&&ot===null?null:vt(Tt),f.call(Z),nt.brush()}return Q!==null&&ot!==null?$t:$t(1)}):N.each(function(){var Z=this,H=arguments,nt=Z.__brush,Q=t.input(typeof D=="function"?D.apply(Z,H):D,nt.extent),ot=v(Z,H).beforestart();ea(Z),nt.selection=Q===null?null:Q,f.call(Z),ot.start(K).brush(K).end(K)})},c.clear=function(N,D){c.move(N,null,D)};function f(){var N=it(this),D=wi(this).selection;D?(N.selectAll(".selection").style("display",null).attr("x",D[0][0]).attr("y",D[0][1]).attr("width",D[1][0]-D[0][0]).attr("height",D[1][1]-D[0][1]),N.selectAll(".handle").style("display",null).attr("x",function(K){return K.type[K.type.length-1]==="e"?D[1][0]-s/2:D[0][0]-s/2}).attr("y",function(K){return K.type[0]==="s"?D[1][1]-s/2:D[0][1]-s/2}).attr("width",function(K){return K.type==="n"||K.type==="s"?D[1][0]-D[0][0]+s:s}).attr("height",function(K){return K.type==="e"||K.type==="w"?D[1][1]-D[0][1]+s:s})):N.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function v(N,D,K){var Z=N.__brush.emitter;return Z&&(!K||!Z.clean)?Z:new p(N,D,K)}function p(N,D,K){this.that=N,this.args=D,this.state=N.__brush,this.active=0,this.clean=K}p.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(N,D){return this.starting?(this.starting=!1,this.emit("start",N,D)):this.emit("brush",N),this},brush:function(N,D){return this.emit("brush",N,D),this},end:function(N,D){return--this.active===0&&(delete this.state.emitter,this.emit("end",N,D)),this},emit:function(N,D,K){var Z=it(this.that).datum();i.call(N,this.that,new Zv(N,{sourceEvent:D,target:c,selection:t.output(this.state.selection),mode:K,dispatch:i}),Z)}};function y(N){if(l&&!N.touches||!r.apply(this,arguments))return;var D=this,K=N.target.__data__.type,Z=(o&&N.metaKey?K="overlay":K)==="selection"?Ul:o&&N.altKey?ra:na,H=t===Io?null:kv[K],nt=t===Eo?null:qv[K],Q=wi(D),ot=Q.extent,vt=Q.selection,$t=ot[0][0],Tt,mt,bt=ot[0][1],yt,q,Et=ot[1][0],dt,Rt,kt=ot[1][1],Ht,Kt,se=0,he=0,Oe,Me=H&&nt&&o&&N.shiftKey,we,Ke,ze=Array.from(N.touches||[N],ge=>{const fn=ge.identifier;return ge=Yn(ge,D),ge.point0=ge.slice(),ge.identifier=fn,ge});ea(D);var hn=v(D,arguments,!0).beforestart();if(K==="overlay"){vt&&(Oe=!0);const ge=[ze[0],ze[1]||ze[0]];Q.selection=vt=[[Tt=t===Io?$t:bn(ge[0][0],ge[1][0]),yt=t===Eo?bt:bn(ge[0][1],ge[1][1])],[dt=t===Io?Et:In(ge[0][0],ge[1][0]),Ht=t===Eo?kt:In(ge[0][1],ge[1][1])]],ze.length>1&&un(N)}else Tt=vt[0][0],yt=vt[0][1],dt=vt[1][0],Ht=vt[1][1];mt=Tt,q=yt,Rt=dt,Kt=Ht;var ee=it(D).attr("pointer-events","none"),$e=ee.selectAll(".overlay").attr("cursor",gr[K]);if(N.touches)hn.moved=Wt,hn.ended=He;else{var Ce=it(N.view).on("mousemove.brush",Wt,!0).on("mouseup.brush",He,!0);o&&Ce.on("keydown.brush",wn,!0).on("keyup.brush",Dn,!0),gi(N.view)}f.call(D),hn.start(N,Z.name);function Wt(ge){for(const fn of ge.changedTouches||[ge])for(const Ya of ze)Ya.identifier===fn.identifier&&(Ya.cur=Yn(fn,D));if(Me&&!we&&!Ke&&ze.length===1){const fn=ze[0];zl(fn.cur[0]-fn[0])>zl(fn.cur[1]-fn[1])?Ke=!0:we=!0}for(const fn of ze)fn.cur&&(fn[0]=fn.cur[0],fn[1]=fn.cur[1]);Oe=!0,Ci(ge),un(ge)}function un(ge){const fn=ze[0],Ya=fn.point0;var Or;switch(se=fn[0]-Ya[0],he=fn[1]-Ya[1],Z){case Pi:case Ul:{H&&(se=In($t-Tt,bn(Et-dt,se)),mt=Tt+se,Rt=dt+se),nt&&(he=In(bt-yt,bn(kt-Ht,he)),q=yt+he,Kt=Ht+he);break}case na:{ze[1]?(H&&(mt=In($t,bn(Et,ze[0][0])),Rt=In($t,bn(Et,ze[1][0])),H=1),nt&&(q=In(bt,bn(kt,ze[0][1])),Kt=In(bt,bn(kt,ze[1][1])),nt=1)):(H<0?(se=In($t-Tt,bn(Et-Tt,se)),mt=Tt+se,Rt=dt):H>0&&(se=In($t-dt,bn(Et-dt,se)),mt=Tt,Rt=dt+se),nt<0?(he=In(bt-yt,bn(kt-yt,he)),q=yt+he,Kt=Ht):nt>0&&(he=In(bt-Ht,bn(kt-Ht,he)),q=yt,Kt=Ht+he));break}case ra:{H&&(mt=In($t,bn(Et,Tt-se*H)),Rt=In($t,bn(Et,dt+se*H))),nt&&(q=In(bt,bn(kt,yt-he*nt)),Kt=In(bt,bn(kt,Ht+he*nt)));break}}Rt<mt&&(H*=-1,Or=Tt,Tt=dt,dt=Or,Or=mt,mt=Rt,Rt=Or,K in Gl&&$e.attr("cursor",gr[K=Gl[K]])),Kt<q&&(nt*=-1,Or=yt,yt=Ht,Ht=Or,Or=q,q=Kt,Kt=Or,K in Vl&&$e.attr("cursor",gr[K=Vl[K]])),Q.selection&&(vt=Q.selection),we&&(mt=vt[0][0],Rt=vt[1][0]),Ke&&(q=vt[0][1],Kt=vt[1][1]),(vt[0][0]!==mt||vt[0][1]!==q||vt[1][0]!==Rt||vt[1][1]!==Kt)&&(Q.selection=[[mt,q],[Rt,Kt]],f.call(D),hn.brush(ge,Z.name))}function He(ge){if(Jv(ge),ge.touches){if(ge.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else pi(ge.view,Oe),Ce.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ee.attr("pointer-events","all"),$e.attr("cursor",gr.overlay),Q.selection&&(vt=Q.selection),ng(vt)&&(Q.selection=null,f.call(D)),hn.end(ge,Z.name)}function wn(ge){switch(ge.keyCode){case 16:{Me=H&&nt;break}case 18:{Z===na&&(H&&(dt=Rt-se*H,Tt=mt+se*H),nt&&(Ht=Kt-he*nt,yt=q+he*nt),Z=ra,un(ge));break}case 32:{(Z===na||Z===ra)&&(H<0?dt=Rt-se:H>0&&(Tt=mt-se),nt<0?Ht=Kt-he:nt>0&&(yt=q-he),Z=Pi,$e.attr("cursor",gr.selection),un(ge));break}default:return}Ci(ge)}function Dn(ge){switch(ge.keyCode){case 16:{Me&&(we=Ke=Me=!1,un(ge));break}case 18:{Z===ra&&(H<0?dt=Rt:H>0&&(Tt=mt),nt<0?Ht=Kt:nt>0&&(yt=q),Z=na,un(ge));break}case 32:{Z===Pi&&(ge.altKey?(H&&(dt=Rt-se*H,Tt=mt+se*H),nt&&(Ht=Kt-he*nt,yt=q+he*nt),Z=ra):(H<0?dt=Rt:H>0&&(Tt=mt),nt<0?Ht=Kt:nt>0&&(yt=q),Z=na),$e.attr("cursor",gr[K]),un(ge));break}default:return}Ci(ge)}}function A(N){v(this,arguments).moved(N)}function w(N){v(this,arguments).ended(N)}function L(){var N=this.__brush||{selection:null};return N.extent=Mi(e.apply(this,arguments)),N.dim=t,N}return c.extent=function(N){return arguments.length?(e=typeof N=="function"?N:Oi(Mi(N)),c):e},c.filter=function(N){return arguments.length?(r=typeof N=="function"?N:Oi(!!N),c):r},c.touchable=function(N){return arguments.length?(a=typeof N=="function"?N:Oi(!!N),c):a},c.handleSize=function(N){return arguments.length?(s=+N,c):s},c.keyModifiers=function(N){return arguments.length?(o=!!N,c):o},c.on=function(){var N=i.on.apply(i,arguments);return N===i?c:N},c}function og(){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 ig(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",r=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=i=>setTimeout(i,1),o=i=>clearTimeout(i);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:o,r?t.requestIdleCallback:a,r?t.cancelIdleCallback:o]}const je=og(),mn=je==null?void 0:je.document,[sg,U1,Hl,z1]=ig(je);var lg=Object.defineProperty,Wl=Object.getOwnPropertySymbols,cg=Object.prototype.hasOwnProperty,ug=Object.prototype.propertyIsEnumerable,Yl=(t,e,r)=>e in t?lg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Kl=(t,e)=>{for(var r in e||(e={}))cg.call(e,r)&&Yl(t,r,e[r]);if(Wl)for(var r of Wl(e))ug.call(e,r)&&Yl(t,r,e[r]);return t};function Zl(t,e,r=!1){const a=o=>o[t?"getBoundingClientRect":"getBBox"]();return r?a(e):!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+(e.getAttribute("width")||0)?e.rect=a(e):e.rect}function Jl(t,e){for(let r=0;r<t.length;r++){const a=t[r];a&&e(a,r)}}const aa=(()=>{const t="script|iframe|object|embed|form|input|button|textarea|select|style|link|meta|base|math|isindex",e={quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165},r=60,a=62,o=10,i={tags:new RegExp(`<(${t})\\b[\\s\\S]*?>([\\s\\S]*?<\\/(${t})\\s*>)?`,"gi"),htmlEntity:/&#x([0-9a-f]+);?|&#([0-9]+);?|&([a-z]+);/gi,controlChar:/[\x00-\x1F\x7F]/g,eventHandler:/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|`[^`]*`|[^\s>]*)|on\w+\s*=\s*(?:"[^"]*"|'[^']*'|`[^`]*`|[^\s>]*)/gi,dangerousUri:/(href|src|action|xlink:href)\s*=\s*(['"`]?)([^'"`>\s]*)\2/gi,dangerousProtocol:/^(javascript|data|vbscript):/};return{ENTITY_MAP:e,LT_CODE:r,GT_CODE:a,MAX_ITERATIONS:o,rx:i,decodeEntities(s){return s.replace(i.htmlEntity,(l,c,f,v)=>{const p=c?parseInt(c,16):f?parseInt(f,10):v&&e[v.toLowerCase()]||0;return p&&p!==r&&p!==a?String.fromCharCode(p):l})},removeDangerousUris(s){return s.replace(i.dangerousUri,(l,c,f,v)=>{const p=v.toLowerCase().replace(/\s/g,"");return i.dangerousProtocol.test(p)?`${c}=${f}${f}`:l})}}})(),Ne=t=>t||t===0,de=t=>typeof t=="function",Ue=t=>typeof t=="string",ye=t=>typeof t=="number",ln=t=>typeof t=="undefined",Qe=t=>typeof t!="undefined",Ni=t=>typeof t=="boolean",fg=t=>Math.ceil(t/10)*10,bo=t=>Math.ceil(t)+.5,Fr=t=>t[1]-t[0],Gn=t=>typeof t=="object",dg=t=>{for(const e in t)return!1;return!0},Kn=t=>ln(t)||t===null||Ue(t)&&t.length===0||Gn(t)&&!(t instanceof Date)&&dg(t)||ye(t)&&isNaN(t),dn=t=>!Kn(t),Xe=t=>Array.isArray(t),Ge=t=>t&&!(t!=null&&t.nodeType)&&Gn(t)&&!Xe(t);function Ar(t,e,r){return Qe(t[e])?t[e]:r}function hg(t,e){let r=!1;return Object.keys(t).forEach(a=>t[a]===e&&(r=!0)),r}function _e(t,e,...r){const a=de(t);return a&&t.call(e,...r),a}function Ro(t,e){let r=0;const a=function(...o){!--r&&e.apply(this,...o)};"duration"in t?t.each(()=>++r).on("end",a):(++r,t.call(a))}function pr(t){if(!Ue(t)||!t||t.indexOf("<")===-1)return t;let e=t,r,a=0;do if(r=e,e=aa.decodeEntities(e).replace(aa.rx.controlChar,"").replace(aa.rx.tags,"").replace(aa.rx.eventHandler,""),e=aa.removeDangerousUris(e),++a>=aa.MAX_ITERATIONS)break;while(e!==r);return e}function oa(t,e,r=[-1,1],a=!1){if(!(!t||!Ue(e)))if(e.indexOf(`
|
|
33
|
-
`)
|
|
34
|
-
`),s=a?i.length-1:1;t.html(""),i.forEach((l,c)=>{t.append("tspan").attr("x",0).attr("dy",`${c===0?r[0]*s:r[1]}em`).text(l)})}}}function Ql(t){const{x:e,y:r,width:a,height:o}=t.getBBox();return[{x:e,y:r+o},{x:e,y:r},{x:e+a,y:r},{x:e+a,y:r+o}]}function kl(t){const{width:e,height:r}=Sn(t),a=Ql(t),o=a[0].x,i=Math.min(a[0].y,a[1].y);return{x:o,y:i,width:e,height:r}}function Zn(t,e){var r;const a=t&&((r=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:r[0]);let o=[0,0];try{o=Yn(a||t,e)}catch(i){}return o.map(i=>isNaN(i)?0:i)}function ql(t){const{event:e,$el:r}=t,a=r.subchart.main||r.main;let o;return e&&e.type==="brush"?o=e.selection:a&&(o=a.select(".bb-brush").node())&&(o=Xl(o)),o}function Sn(t,e=!1){return Zl(!0,t,e)}function Er(t,e=!1){return Zl(!1,t,e)}function ar(t=!0,e=0,r=1e4){const a=je.crypto||je.msCrypto,o=a?e+a.getRandomValues(new Uint32Array(1))[0]%(r-e+1):Math.floor(Math.random()*(r-e)+e);return t?String(o):o}function Li(t,e,r,a,o){if(r>a)return-1;const i=Math.floor((r+a)/2);let{x:s,w:l=0}=t[i];return o&&(s=t[i].y,l=t[i].h),e>=s&&e<=s+l?i:e<s?Li(t,e,r,i-1,o):Li(t,e,i+1,a,o)}function _l(t){const e=ql(t);return e?e[0]===e[1]:!0}function vg(...t){const e=r=>{if(Ge(r)&&r.constructor){const a=new r.constructor;for(const o in r)a[o]=e(r[o]);return a}return r};return t.map(r=>e(r)).reduce((r,a)=>Kl(Kl({},r),a))}function $n(t={},e){Xe(e)&&e.forEach(r=>$n(t,r));for(const r in e)/^\d+$/.test(r)||r in t||(t[r]=e[r]);return t}const Rn=t=>t.charAt(0).toUpperCase()+t.slice(1);function gg(t,e="-"){return t.split(e).map((r,a)=>a?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()).join("")}const Br=t=>[].slice.call(t);function pg(t,e,r){const{rootSelector:a="",sheet:o}=t,s=`${a} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(e)} {${r.join(";")}}`;return o[o.insertRule?"insertRule":"addRule"](s,o.cssRules.length)}function mg(t){let e=[];return t.forEach(r=>{var a;try{r.cssRules&&r.cssRules.length&&(e=e.concat(Br(r.cssRules)))}catch(o){(a=je.console)==null||a.warn(`Error while reading rules from ${r.href}: ${o.toString()}`)}}),e}function tc(t){var e,r,a,o,i,s;return{x:((r=(e=je.pageXOffset)!=null?e:je.scrollX)!=null?r:0)+((a=t.scrollLeft)!=null?a:0),y:((i=(o=je.pageYOffset)!=null?o:je.scrollY)!=null?i:0)+((s=t.scrollTop)!=null?s:0)}}function Oo(t,e=0,r=0,a=!0){const o=new DOMPoint(e,r),i=t.getScreenCTM(),s=o.matrixTransform(a?i==null?void 0:i.inverse():i);if(a===!1){const l=Sn(t);s.x-=l.x,s.y-=l.y}return s}function ec(t){const e=t?t.transform:null,r=e&&e.baseVal;return r&&r.numberOfItems?r.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Fi(t){const e=t[0]instanceof Date,r=(e?t.map(Number):t).filter((a,o,i)=>i.indexOf(a)===o);return e?r.map(a=>new Date(a)):r}function nc(t){return t&&t.length?t.reduce((e,r)=>e.concat(r)):[]}function ia(t,...e){if(!e.length||e.length===1&&!e[0])return t;const r=e.shift();return Ge(t)&&Ge(r)&&Object.keys(r).forEach(a=>{if(!/^(__proto__|constructor|prototype)$/i.test(a)){const o=r[a];Ge(o)?(!t[a]&&(t[a]={}),t[a]=ia(t[a],o)):t[a]=Xe(o)?o.concat():o}}),ia(t,...e)}function sa(t,e=!0){let r;return t[0]instanceof Date?r=e?(a,o)=>a-o:(a,o)=>o-a:e&&!t.every(isNaN)?r=(a,o)=>a-o:e||(r=(a,o)=>a>o&&-1||a<o&&1||a===o&&0),t.concat().sort(r)}function er(t,e){let r=e.filter(a=>dn(a));return r.length?ye(r[0])?r=Math[t](...r):r[0]instanceof Date&&(r=sa(r,t==="min")[0]):r=void 0,r}const Co=(t,e,r=1)=>{const a=[],o=Math.max(0,Math.ceil((e-t)/r))|0;for(let i=t;i<o;i++)a.push(t+i*r);return a},yg={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,r,a=t())=>{e.dispatchEvent(new MouseEvent(r,a))}}catch(e){return(r,a,o=t())=>{const i=mn.createEvent("MouseEvent");i.initMouseEvent(a,o.bubbles,o.cancelable,je,0,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),r.dispatchEvent(i)}}})(),touch:(t,e,r)=>{const a=new Touch(ia({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},r));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[a],targetTouches:[],changedTouches:[a]}))}};function Fa(t,e){let r=t;for(const a in e)r=r.replace(new RegExp(`{=${a}}`,"g"),e[a]);return pr(r)}function Jn(t){var e;let r;if(t instanceof Date)r=t;else if(Ue(t)){const{config:a,format:o}=this;r=(e=o.dataTime(a.data_xFormat)(t))!=null?e:new Date(t)}else ye(t)&&!isNaN(t)&&(r=new Date(+t));return(!r||isNaN(+r))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),r}function Bi(t){const e=t.attr("viewBox");return e?/(\d+(\.\d+)?){3}/.test(e):!1}function xg(t,e,r=!1){const a=!!t.node;let o=!1;for(const[i,s]of Object.entries(e))if(o=a?t.style(i)===s:t.style[i]===s,r===!1&&o)break;return o}function Ba(){var t,e;return((t=mn)==null?void 0:t.hidden)===!1||((e=mn)==null?void 0:e.visibilityState)==="visible"}function Tg(t,e){const{DocumentTouch:r,matchMedia:a,navigator:o}=je,i=a==null?void 0:a("(pointer:coarse)").matches;let s=!1;if(e)if(o&&"maxTouchPoints"in o)s=o.maxTouchPoints>0;else if("ontouchmove"in je||r&&mn instanceof r)s=!0;else if(i)s=!0;else{const c=o.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return t&&!i&&(a==null?void 0:a("(pointer:fine)").matches)&&"mouse"||s&&"touch"||"mouse"}function rc(t,e){e()===!1?sg(()=>rc(t,e)):t()}function Sg(t){if(Ge(t)&&!Ue(t)){const s=t;return{top:s.top||0,right:s.right||0,bottom:s.bottom||0,left:s.left||0}}const e=(Ue(t)?t.trim().split(/\s+/):[t]).map(s=>+s||0),[r,a=r,o=r,i=a]=e;return{top:r,right:a,bottom:o,left:i}}function ac(t,e){t.pendingRaf!==null?(je.cancelAnimationFrame(t.pendingRaf),t.pendingRaf=je.requestAnimationFrame(()=>{t.pendingRaf=null,e()})):(t.pendingRaf=je.requestAnimationFrame(()=>{t.pendingRaf=null}),e())}function oc(t,e=(r=>r)){const r=new Set;return Jl(t,(a,o)=>{r.add(e(a,o))}),r}function ic(t,e,r=(a=>a)){const a=new Map;return Jl(t,(o,i)=>{a.set(e(o,i),r(o,i))}),a}var $g=Object.defineProperty,sc=Object.getOwnPropertySymbols,Ag=Object.prototype.hasOwnProperty,Eg=Object.prototype.propertyIsEnumerable,Ui=(t,e,r)=>e in t?$g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,lc=(t,e)=>{for(var r in e||(e={}))Ag.call(e,r)&&Ui(t,r,e[r]);if(sc)for(var r of sc(e))Eg.call(e,r)&&Ui(t,r,e[r]);return t},Ig=(t,e,r)=>Ui(t,typeof e!="symbol"?e+"":e,r);const cc=class Gf{static setOptions(e){this.data=e.reduce((r,a)=>lc(lc({},r),a),this.data)}constructor(){return vg(rh,th,ih,eh,sh,nh,ah,oh,Gf.data)}};Ig(cc,"data",{});let Ur=cc;class bg{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 Rg{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:{},loading:void 0,domain:void 0,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,zoomDomain:null},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},pendingRaf:null,rafBatchQueue:[]}}}const uc={element:bg,state:Rg};class Og{constructor(){Object.keys(uc).forEach(e=>{this[e]=new uc[e]})}getStore(e){return this[e]}}var Cg=Object.defineProperty,Pg=(t,e,r)=>e in t?Cg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mg=(t,e,r)=>Pg(t,typeof e!="symbol"?e+"":e,r);const cn={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",domainMinMax:"$domainMinMax",filteredTargets:"$filteredTargets",filteredNullish:"$filteredNullish",visibilityChecksum:"visibilityChecksum",legendItemTextBox:"legendItemTextBox",legendItemMap:"$legendItemMap",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect",shapeOffset:"$shapeOffset"};class wg{constructor(){Mg(this,"cache",{})}add(e,r,a=!1){return this.cache[e]=a?this.cloneTarget(r):r,this.cache[e]}remove(e){(Ue(e)?[e]:e).forEach(r=>delete this.cache[r])}get(e,r=!1){if(r&&Array.isArray(e)){const a=[];for(let o=0,i;i=e[o];o++)i in this.cache&&a.push(this.cloneTarget(this.cache[i]));return a}else{const a=this.cache[e];return Ne(a)?a:null}}has(e){return e in this.cache&&this.cache[e]!==null}getKeys(){return Object.keys(this.cache)}reset(e){const r=this;for(const a in r.cache)(e||/^\$/.test(a))&&(r.cache[a]=null)}cloneTarget(e){return{id:e.id,id_org:e.id_org,values:e.values.map(r=>({x:r.x,value:r.value,id:r.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",AREA_STEP_RANGE:"area-step-range",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"},zi={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"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"},Ir={Area:[fe.AREA,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE,fe.AREA_STEP,fe.AREA_STEP_RANGE],AreaRange:[fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE,fe.AREA_STEP_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,fe.AREA_STEP_RANGE],Step:[fe.STEP,fe.AREA_STEP,fe.AREA_STEP_RANGE],Spline:[fe.SPLINE,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE]};function Dg(t){const e=t,{config:r}=e;let a="";if(Kn(r.data_type||r.data_types)&&!e[zi.LINE])a="line";else for(const o in zi){const i=fe[o];if(e.hasType(i)&&!e[zi[o]]){a=i;break}}a&&Ng(`Please, make sure if %c${gg(a)}`,"module has been imported and specified correctly.","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")}function Ng(t,e,r){var a;const o="[billboard.js]";if((a=je.console)==null?void 0:a.error){const s=e?["background:red;color:white;display:block;font-size:15px",e]:[];console.error(`\u274C ${o} ${t}`,"background:red;color:white;display:block;font-size:15px",...s),r&&console.info("%c\u2139\uFE0F","font-size:15px",r)}throw Error(`${o} ${t.replace(/\%c([a-z-]+)/i,"'$1' ")} ${e!=null?e:""}`)}const{setTimeout:Lg,clearTimeout:Fg}=je;function Bg(t){const e=[];let r;const a=function(){a.clear(),t===!1?Hl(()=>{e.forEach(o=>o())},{timeout:200}):r=Lg(()=>{e.forEach(o=>o())},ye(t)?t:200)};return a.clear=()=>{r&&(Fg(r),r=null)},a.add=o=>e.push(o),a.remove=o=>e.splice(e.indexOf(o),1),a}function fc(){let t=[];const e=function(r,a){function o(){var i;let s=0;for(let l=0,c;c=t[l];l++){if(c===!0||(i=c.empty)!=null&&i.call(c)){s++;continue}if(Ba()===!1){s=t.length;break}try{c.transition()}catch(f){s++}}return s===t.length}rc(()=>{a==null||a()},o)};return e.add=function(r){Xe(r)?t=t.concat(r):t.push(r)},e}const ji={};function Ug(t,e){var r;const a=t.toString(),o=a.replace(/(function|[\s\W\n])/g,"").substring(0,15);return o in ji||(ji[o]=new je.Blob([`${(r=e==null?void 0:e.map(String).join(";"))!=null?r:""}
|
|
26
|
+
*/(function(Ya,Vn){if(typeof exports=="object"&&typeof module=="object")module.exports=Vn();else if(typeof define=="function"&&define.amd)define([],Vn);else{var Ka=Vn();for(var x in Ka)(typeof exports=="object"?exports:Ya)[x]=Ka[x]}})(this,function(){return(function(){"use strict";var Ni=[(function(x,I,n){n(1),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(112),n(113),n(114),n(115),n(116),n(129),n(130),n(132),n(142),n(143),n(144),n(146),n(150),n(153),n(155),n(157),n(158),n(159),n(160),n(162),n(163),n(165),n(166),n(168),n(172),n(173),n(174),n(175),n(180),n(181),n(183),n(184),n(185),n(186),n(190),n(191),n(192),n(193),n(194),n(199),n(201),n(202),n(203),n(206),n(207),n(208),n(209),n(210),n(211),n(222),n(224),n(225),n(227),n(228),n(231),n(234),n(240),n(241),n(242),n(243),n(244),n(245),n(249),n(250),n(252),n(253),n(255),n(256),n(258),n(259),n(260),n(261),n(262),n(265),n(266),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(285),n(286),n(94),n(288),n(289),n(296),n(298),n(300),n(301),n(303),n(304),n(305),n(306),n(307),n(309),n(310),n(311),n(312),n(313),n(314),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(328),n(329),n(331),n(333),n(334),n(335),n(336),n(337),n(339),n(341),n(342),n(343),n(344),n(346),n(347),n(349),n(350),n(351),n(352),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(376),n(377),n(378),n(379),n(403),n(404),n(405),n(406),n(407),n(408),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(440),n(442),n(443),n(445),n(446),n(447),n(448),n(449),n(451),n(461),n(463),n(465),n(467),n(469),n(472),n(474),n(475),n(477),n(480),n(481),n(482),n(483),n(484),n(488),n(489),n(491),n(492),n(493),n(494),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(504),n(507),n(510),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(578),n(580),n(582),n(583),n(584),n(585),n(586),n(589),n(592),n(594),n(596),n(597),n(598),n(601),n(602),n(604),n(605),n(606),n(610),n(611),n(612),n(613),n(616),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(80)}),(function(x,I,n){n(2),n(91),n(93),n(94),n(99)}),(function(x,I,n){var u=n(3),f=n(4),h=n(8),v=n(14),m=n(36),T=n(6),S=n(26),$=n(7),E=n(38),R=n(24),b=n(46),O=n(12),C=n(18),M=n(68),P=n(11),L=n(71),z=n(73),B=n(57),U=n(75),j=n(66),G=n(5),V=n(44),X=n(72),H=n(10),Y=n(47),Z=n(77),k=n(34),et=n(53),_=n(54),tt=n(40),nt=n(33),at=n(78),ct=n(79),gt=n(81),pt=n(82),mt=n(51),It=n(83).forEach,At=et("hidden"),Mt="Symbol",ut="prototype",lt=mt.set,Ct=mt.getterFor(Mt),Nt=Object[ut],Gt=f.Symbol,Ot=Gt&&Gt[ut],jt=f.RangeError,re=f.TypeError,se=f.QObject,ne=G.f,ae=V.f,Ae=U.f,Ie=H.f,pe=v([].push),le=k("symbols"),Re=k("op-symbols"),Se=k("wks"),me=!se||!se[ut]||!se[ut].findChild,wt=function(Lt,Bt,Ut){var Xt=ne(Nt,Bt);Xt&&delete Nt[Bt],ae(Lt,Bt,Ut),Xt&&Lt!==Nt&&ae(Nt,Bt,Xt)},Yt=T&&$(function(){return L(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a!==7})?wt:ae,ue=function(Lt,Bt){var Ut=le[Lt]=L(Ot);return lt(Ut,{type:Mt,tag:Lt,description:Bt}),T||(Ut.description=Bt),Ut},Vt=function(Bt,Ut,Xt){Bt===Nt&&Vt(Re,Ut,Xt),b(Bt);var Pt=C(Ut);return b(Xt),E(le,Pt)?(Xt.enumerable?(E(Bt,At)&&Bt[At][Pt]&&(Bt[At][Pt]=!1),Xt=L(Xt,{enumerable:P(0,!1)})):(E(Bt,At)||ae(Bt,At,P(1,L(null))),Bt[At][Pt]=!0),Yt(Bt,Pt,Xt)):ae(Bt,Pt,Xt)},_t=function(Bt,Ut){b(Bt);var Xt=O(Ut),Pt=z(Xt).concat(ht(Xt));return It(Pt,function(ce){(!T||h(Zt,Xt,ce))&&Vt(Bt,ce,Xt[ce])}),Bt},te=function(Bt,Ut){return Ut===void 0?L(Bt):_t(L(Bt),Ut)},Zt=function(Bt){var Ut=C(Bt),Xt=h(Ie,this,Ut);return this===Nt&&E(le,Ut)&&!E(Re,Ut)?!1:Xt||!E(this,Ut)||!E(le,Ut)||E(this,At)&&this[At][Ut]?Xt:!0},xe=function(Bt,Ut){var Xt=O(Bt),Pt=C(Ut);if(!(Xt===Nt&&E(le,Pt)&&!E(Re,Pt))){var ce=ne(Xt,Pt);return ce&&E(le,Pt)&&!(E(Xt,At)&&Xt[At][Pt])&&(ce.enumerable=!0),ce}},We=function(Bt){var Ut=Ae(O(Bt)),Xt=[];return It(Ut,function(Pt){!E(le,Pt)&&!E(_,Pt)&&pe(Xt,Pt)}),Xt},ht=function(Lt){var Bt=Lt===Nt,Ut=Ae(Bt?Re:O(Lt)),Xt=[];return It(Ut,function(Pt){E(le,Pt)&&(!Bt||E(Nt,Pt))&&pe(Xt,le[Pt])}),Xt};S||(Gt=function(){if(R(Ot,this))throw new re("Symbol is not a constructor");var Bt=!arguments.length||arguments[0]===void 0?void 0:M(arguments[0]),Ut=tt(Bt),Xt=function(Pt){var ce=this===void 0?f:this;ce===Nt&&h(Xt,Re,Pt),E(ce,At)&&E(ce[At],Ut)&&(ce[At][Ut]=!1);var De=P(1,Pt);try{Yt(ce,Ut,De)}catch(Dt){if(!(Dt instanceof jt))throw Dt;wt(ce,Ut,De)}};return T&&me&&Yt(Nt,Ut,{configurable:!0,set:Xt}),ue(Ut,Bt)},Ot=Gt[ut],Y(Ot,"toString",function(){return Ct(this).tag}),Y(Gt,"withoutSetter",function(Lt){return ue(tt(Lt),Lt)}),H.f=Zt,V.f=Vt,X.f=_t,G.f=xe,B.f=U.f=We,j.f=ht,at.f=function(Lt){return ue(nt(Lt),Lt)},T&&(Z(Ot,"description",{configurable:!0,get:function(){return Ct(this).description}}),m||Y(Nt,"propertyIsEnumerable",Zt,{unsafe:!0}))),u({global:!0,constructor:!0,wrap:!0,forced:!S,sham:!S},{Symbol:Gt}),It(z(Se),function(Lt){ct(Lt)}),u({target:Mt,stat:!0,forced:!S},{useSetter:function(){me=!0},useSimple:function(){me=!1}}),u({target:"Object",stat:!0,forced:!S,sham:!T},{create:te,defineProperty:Vt,defineProperties:_t,getOwnPropertyDescriptor:xe}),u({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:We}),gt(),pt(Gt,Mt),_[At]=!0}),(function(x,I,n){var u=n(4),f=n(5).f,h=n(43),v=n(47),m=n(37),T=n(55),S=n(67);x.exports=function($,E){var R=$.target,b=$.global,O=$.stat,C,M,P,L,z,B;if(b?M=u:O?M=u[R]||m(R,{}):M=u[R]&&u[R].prototype,M)for(P in E){if(z=E[P],$.dontCallGetSet?(B=f(M,P),L=B&&B.value):L=M[P],C=S(b?P:R+(O?".":"#")+P,$.forced),!C&&L!==void 0){if(typeof z==typeof L)continue;T(z,L)}($.sham||L&&L.sham)&&h(z,"sham",!0),v(M,P,z,$)}}}),(function(x){var I=function(n){return n&&n.Math===Math&&n};x.exports=I(typeof globalThis=="object"&&globalThis)||I(typeof window=="object"&&window)||I(typeof self=="object"&&self)||I(typeof global=="object"&&global)||I(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()}),(function(x,I,n){var u=n(6),f=n(8),h=n(10),v=n(11),m=n(12),T=n(18),S=n(38),$=n(41),E=Object.getOwnPropertyDescriptor;I.f=u?E:function(b,O){if(b=m(b),O=T(O),$)try{return E(b,O)}catch(C){}if(S(b,O))return v(!f(h.f,b,O),b[O])}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),(function(x){x.exports=function(I){try{return!!I()}catch(n){return!0}}}),(function(x,I,n){var u=n(9),f=Function.prototype.call;x.exports=u?f.bind(f):function(){return f.apply(f,arguments)}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){var f=(function(){}).bind();return typeof f!="function"||f.hasOwnProperty("prototype")})}),(function(x,I){var n={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,f=u&&!n.call({1:2},1);I.f=f?function(v){var m=u(this,v);return!!m&&m.enumerable}:n}),(function(x){x.exports=function(I,n){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:n}}}),(function(x,I,n){var u=n(13),f=n(16);x.exports=function(h){return u(f(h))}}),(function(x,I,n){var u=n(14),f=n(7),h=n(15),v=Object,m=u("".split);x.exports=f(function(){return!v("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?m(T,""):v(T)}:v}),(function(x,I,n){var u=n(9),f=Function.prototype,h=f.call,v=u&&f.bind.bind(h,h);x.exports=u?v:function(m){return function(){return h.apply(m,arguments)}}}),(function(x,I,n){var u=n(14),f=u({}.toString),h=u("".slice);x.exports=function(v){return h(f(v),8,-1)}}),(function(x,I,n){var u=n(17),f=TypeError;x.exports=function(h){if(u(h))throw new f("Can't call method on "+h);return h}}),(function(x){x.exports=function(I){return I==null}}),(function(x,I,n){var u=n(19),f=n(22);x.exports=function(h){var v=u(h,"string");return f(v)?v:v+""}}),(function(x,I,n){var u=n(8),f=n(20),h=n(22),v=n(29),m=n(32),T=n(33),S=TypeError,$=T("toPrimitive");x.exports=function(E,R){if(!f(E)||h(E))return E;var b=v(E,$),O;if(b){if(R===void 0&&(R="default"),O=u(b,E,R),!f(O)||h(O))return O;throw new S("Can't convert object to primitive value")}return R===void 0&&(R="number"),m(E,R)}}),(function(x,I,n){var u=n(21);x.exports=function(f){return typeof f=="object"?f!==null:u(f)}}),(function(x){var I=typeof document=="object"&&document.all;x.exports=typeof I=="undefined"&&I!==void 0?function(n){return typeof n=="function"||n===I}:function(n){return typeof n=="function"}}),(function(x,I,n){var u=n(23),f=n(21),h=n(24),v=n(25),m=Object;x.exports=v?function(T){return typeof T=="symbol"}:function(T){var S=u("Symbol");return f(S)&&h(S.prototype,m(T))}}),(function(x,I,n){var u=n(4),f=n(21),h=function(v){return f(v)?v:void 0};x.exports=function(v,m){return arguments.length<2?h(u[v]):u[v]&&u[v][m]}}),(function(x,I,n){var u=n(14);x.exports=u({}.isPrototypeOf)}),(function(x,I,n){var u=n(26);x.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),(function(x,I,n){var u=n(27),f=n(7),h=n(4),v=h.String;x.exports=!!Object.getOwnPropertySymbols&&!f(function(){var m=Symbol("symbol detection");return!v(m)||!(Object(m)instanceof Symbol)||!Symbol.sham&&u&&u<41})}),(function(x,I,n){var u=n(4),f=n(28),h=u.process,v=u.Deno,m=h&&h.versions||v&&v.version,T=m&&m.v8,S,$;T&&(S=T.split("."),$=S[0]>0&&S[0]<4?1:+(S[0]+S[1])),!$&&f&&(S=f.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=f.match(/Chrome\/(\d+)/),S&&($=+S[1]))),x.exports=$}),(function(x,I,n){var u=n(4),f=u.navigator,h=f&&f.userAgent;x.exports=h?String(h):""}),(function(x,I,n){var u=n(30),f=n(17);x.exports=function(h,v){var m=h[v];return f(m)?void 0:u(m)}}),(function(x,I,n){var u=n(21),f=n(31),h=TypeError;x.exports=function(v){if(u(v))return v;throw new h(f(v)+" is not a function")}}),(function(x){var I=String;x.exports=function(n){try{return I(n)}catch(u){return"Object"}}}),(function(x,I,n){var u=n(8),f=n(21),h=n(20),v=TypeError;x.exports=function(m,T){var S,$;if(T==="string"&&f(S=m.toString)&&!h($=u(S,m))||f(S=m.valueOf)&&!h($=u(S,m))||T!=="string"&&f(S=m.toString)&&!h($=u(S,m)))return $;throw new v("Can't convert object to primitive value")}}),(function(x,I,n){var u=n(4),f=n(34),h=n(38),v=n(40),m=n(26),T=n(25),S=u.Symbol,$=f("wks"),E=T?S.for||S:S&&S.withoutSetter||v;x.exports=function(R){return h($,R)||($[R]=m&&h(S,R)?S[R]:E("Symbol."+R)),$[R]}}),(function(x,I,n){var u=n(35);x.exports=function(f,h){return u[f]||(u[f]=h||{})}}),(function(x,I,n){var u=n(36),f=n(4),h=n(37),v="__core-js_shared__",m=x.exports=f[v]||h(v,{});(m.versions||(m.versions=[])).push({version:"3.48.0",mode:u?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),(function(x){x.exports=!1}),(function(x,I,n){var u=n(4),f=Object.defineProperty;x.exports=function(h,v){try{f(u,h,{value:v,configurable:!0,writable:!0})}catch(m){u[h]=v}return v}}),(function(x,I,n){var u=n(14),f=n(39),h=u({}.hasOwnProperty);x.exports=Object.hasOwn||function(m,T){return h(f(m),T)}}),(function(x,I,n){var u=n(16),f=Object;x.exports=function(h){return f(u(h))}}),(function(x,I,n){var u=n(14),f=0,h=Math.random(),v=u(1.1.toString);x.exports=function(m){return"Symbol("+(m===void 0?"":m)+")_"+v(++f+h,36)}}),(function(x,I,n){var u=n(6),f=n(7),h=n(42);x.exports=!u&&!f(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})}),(function(x,I,n){var u=n(4),f=n(20),h=u.document,v=f(h)&&f(h.createElement);x.exports=function(m){return v?h.createElement(m):{}}}),(function(x,I,n){var u=n(6),f=n(44),h=n(11);x.exports=u?function(v,m,T){return f.f(v,m,h(1,T))}:function(v,m,T){return v[m]=T,v}}),(function(x,I,n){var u=n(6),f=n(41),h=n(45),v=n(46),m=n(18),T=TypeError,S=Object.defineProperty,$=Object.getOwnPropertyDescriptor,E="enumerable",R="configurable",b="writable";I.f=u?h?function(C,M,P){if(v(C),M=m(M),v(P),typeof C=="function"&&M==="prototype"&&"value"in P&&b in P&&!P[b]){var L=$(C,M);L&&L[b]&&(C[M]=P.value,P={configurable:R in P?P[R]:L[R],enumerable:E in P?P[E]:L[E],writable:!1})}return S(C,M,P)}:S:function(C,M,P){if(v(C),M=m(M),v(P),f)try{return S(C,M,P)}catch(L){}if("get"in P||"set"in P)throw new T("Accessors not supported");return"value"in P&&(C[M]=P.value),C}}),(function(x,I,n){var u=n(6),f=n(7);x.exports=u&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})}),(function(x,I,n){var u=n(20),f=String,h=TypeError;x.exports=function(v){if(u(v))return v;throw new h(f(v)+" is not an object")}}),(function(x,I,n){var u=n(21),f=n(44),h=n(48),v=n(37);x.exports=function(m,T,S,$){$||($={});var E=$.enumerable,R=$.name!==void 0?$.name:T;if(u(S)&&h(S,R,$),$.global)E?m[T]=S:v(T,S);else{try{$.unsafe?m[T]&&(E=!0):delete m[T]}catch(b){}E?m[T]=S:f.f(m,T,{value:S,enumerable:!1,configurable:!$.nonConfigurable,writable:!$.nonWritable})}return m}}),(function(x,I,n){var u=n(14),f=n(7),h=n(21),v=n(38),m=n(6),T=n(49).CONFIGURABLE,S=n(50),$=n(51),E=$.enforce,R=$.get,b=String,O=Object.defineProperty,C=u("".slice),M=u("".replace),P=u([].join),L=m&&!f(function(){return O(function(){},"length",{value:8}).length!==8}),z=String(String).split("String"),B=x.exports=function(U,j,G){C(b(j),0,7)==="Symbol("&&(j="["+M(b(j),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),G&&G.getter&&(j="get "+j),G&&G.setter&&(j="set "+j),(!v(U,"name")||T&&U.name!==j)&&(m?O(U,"name",{value:j,configurable:!0}):U.name=j),L&&G&&v(G,"arity")&&U.length!==G.arity&&O(U,"length",{value:G.arity});try{G&&v(G,"constructor")&&G.constructor?m&&O(U,"prototype",{writable:!1}):U.prototype&&(U.prototype=void 0)}catch(X){}var V=E(U);return v(V,"source")||(V.source=P(z,typeof j=="string"?j:"")),U};Function.prototype.toString=B(function(){return h(this)&&R(this).source||S(this)},"toString")}),(function(x,I,n){var u=n(6),f=n(38),h=Function.prototype,v=u&&Object.getOwnPropertyDescriptor,m=f(h,"name"),T=m&&(function(){}).name==="something",S=m&&(!u||u&&v(h,"name").configurable);x.exports={EXISTS:m,PROPER:T,CONFIGURABLE:S}}),(function(x,I,n){var u=n(14),f=n(21),h=n(35),v=u(Function.toString);f(h.inspectSource)||(h.inspectSource=function(m){return v(m)}),x.exports=h.inspectSource}),(function(x,I,n){var u=n(52),f=n(4),h=n(20),v=n(43),m=n(38),T=n(35),S=n(53),$=n(54),E="Object already initialized",R=f.TypeError,b=f.WeakMap,O,C,M,P=function(U){return M(U)?C(U):O(U,{})},L=function(U){return function(j){var G;if(!h(j)||(G=C(j)).type!==U)throw new R("Incompatible receiver, "+U+" required");return G}};if(u||T.state){var z=T.state||(T.state=new b);z.get=z.get,z.has=z.has,z.set=z.set,O=function(U,j){if(z.has(U))throw new R(E);return j.facade=U,z.set(U,j),j},C=function(U){return z.get(U)||{}},M=function(U){return z.has(U)}}else{var B=S("state");$[B]=!0,O=function(U,j){if(m(U,B))throw new R(E);return j.facade=U,v(U,B,j),j},C=function(U){return m(U,B)?U[B]:{}},M=function(U){return m(U,B)}}x.exports={set:O,get:C,has:M,enforce:P,getterFor:L}}),(function(x,I,n){var u=n(4),f=n(21),h=u.WeakMap;x.exports=f(h)&&/native code/.test(String(h))}),(function(x,I,n){var u=n(34),f=n(40),h=u("keys");x.exports=function(v){return h[v]||(h[v]=f(v))}}),(function(x){x.exports={}}),(function(x,I,n){var u=n(38),f=n(56),h=n(5),v=n(44);x.exports=function(m,T,S){for(var $=f(T),E=v.f,R=h.f,b=0;b<$.length;b++){var O=$[b];!u(m,O)&&!(S&&u(S,O))&&E(m,O,R(T,O))}}}),(function(x,I,n){var u=n(23),f=n(14),h=n(57),v=n(66),m=n(46),T=f([].concat);x.exports=u("Reflect","ownKeys")||function($){var E=h.f(m($)),R=v.f;return R?T(E,R($)):E}}),(function(x,I,n){var u=n(58),f=n(65),h=f.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(m){return u(m,h)}}),(function(x,I,n){var u=n(14),f=n(38),h=n(12),v=n(59).indexOf,m=n(54),T=u([].push);x.exports=function(S,$){var E=h(S),R=0,b=[],O;for(O in E)!f(m,O)&&f(E,O)&&T(b,O);for(;$.length>R;)f(E,O=$[R++])&&(~v(b,O)||T(b,O));return b}}),(function(x,I,n){var u=n(12),f=n(60),h=n(63),v=function(m){return function(T,S,$){var E=u(T),R=h(E);if(R===0)return!m&&-1;var b=f($,R),O;if(m&&S!==S){for(;R>b;)if(O=E[b++],O!==O)return!0}else for(;R>b;b++)if((m||b in E)&&E[b]===S)return m||b||0;return!m&&-1}};x.exports={includes:v(!0),indexOf:v(!1)}}),(function(x,I,n){var u=n(61),f=Math.max,h=Math.min;x.exports=function(v,m){var T=u(v);return T<0?f(T+m,0):h(T,m)}}),(function(x,I,n){var u=n(62);x.exports=function(f){var h=+f;return h!==h||h===0?0:u(h)}}),(function(x){var I=Math.ceil,n=Math.floor;x.exports=Math.trunc||function(f){var h=+f;return(h>0?n:I)(h)}}),(function(x,I,n){var u=n(64);x.exports=function(f){return u(f.length)}}),(function(x,I,n){var u=n(61),f=Math.min;x.exports=function(h){var v=u(h);return v>0?f(v,9007199254740991):0}}),(function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),(function(x,I){I.f=Object.getOwnPropertySymbols}),(function(x,I,n){var u=n(7),f=n(21),h=/#|\.prototype\./,v=function(E,R){var b=T[m(E)];return b===$?!0:b===S?!1:f(R)?u(R):!!R},m=v.normalize=function(E){return String(E).replace(h,".").toLowerCase()},T=v.data={},S=v.NATIVE="N",$=v.POLYFILL="P";x.exports=v}),(function(x,I,n){var u=n(69),f=String;x.exports=function(h){if(u(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return f(h)}}),(function(x,I,n){var u=n(70),f=n(21),h=n(15),v=n(33),m=v("toStringTag"),T=Object,S=h((function(){return arguments})())==="Arguments",$=function(E,R){try{return E[R]}catch(b){}};x.exports=u?h:function(E){var R,b,O;return E===void 0?"Undefined":E===null?"Null":typeof(b=$(R=T(E),m))=="string"?b:S?h(R):(O=h(R))==="Object"&&f(R.callee)?"Arguments":O}}),(function(x,I,n){var u=n(33),f=u("toStringTag"),h={};h[f]="z",x.exports=String(h)==="[object z]"}),(function(x,I,n){var u=n(46),f=n(72),h=n(65),v=n(54),m=n(74),T=n(42),S=n(53),$=">",E="<",R="prototype",b="script",O=S("IE_PROTO"),C=function(){},M=function(U){return E+b+$+U+E+"/"+b+$},P=function(U){U.write(M("")),U.close();var j=U.parentWindow.Object;return U=null,j},L=function(){var U=T("iframe"),j="java"+b+":",G;return U.style.display="none",m.appendChild(U),U.src=String(j),G=U.contentWindow.document,G.open(),G.write(M("document.F=Object")),G.close(),G.F},z,B=function(){try{z=new ActiveXObject("htmlfile")}catch(j){}B=typeof document!="undefined"?document.domain&&z?P(z):L():P(z);for(var U=h.length;U--;)delete B[R][h[U]];return B()};v[O]=!0,x.exports=Object.create||function(j,G){var V;return j!==null?(C[R]=u(j),V=new C,C[R]=null,V[O]=j):V=B(),G===void 0?V:f.f(V,G)}}),(function(x,I,n){var u=n(6),f=n(45),h=n(44),v=n(46),m=n(12),T=n(73);I.f=u&&!f?Object.defineProperties:function($,E){v($);for(var R=m(E),b=T(E),O=b.length,C=0,M;O>C;)h.f($,M=b[C++],R[M]);return $}}),(function(x,I,n){var u=n(58),f=n(65);x.exports=Object.keys||function(v){return u(v,f)}}),(function(x,I,n){var u=n(23);x.exports=u("document","documentElement")}),(function(x,I,n){var u=n(15),f=n(12),h=n(57).f,v=n(76),m=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(S){try{return h(S)}catch($){return v(m)}};x.exports.f=function($){return m&&u($)==="Window"?T($):h(f($))}}),(function(x,I,n){var u=n(14);x.exports=u([].slice)}),(function(x,I,n){var u=n(48),f=n(44);x.exports=function(h,v,m){return m.get&&u(m.get,v,{getter:!0}),m.set&&u(m.set,v,{setter:!0}),f.f(h,v,m)}}),(function(x,I,n){var u=n(33);I.f=u}),(function(x,I,n){var u=n(80),f=n(38),h=n(78),v=n(44).f;x.exports=function(m){var T=u.Symbol||(u.Symbol={});f(T,m)||v(T,m,{value:h.f(m)})}}),(function(x,I,n){var u=n(4);x.exports=u}),(function(x,I,n){var u=n(8),f=n(23),h=n(33),v=n(47);x.exports=function(){var m=f("Symbol"),T=m&&m.prototype,S=T&&T.valueOf,$=h("toPrimitive");T&&!T[$]&&v(T,$,function(E){return u(S,this)},{arity:1})}}),(function(x,I,n){var u=n(44).f,f=n(38),h=n(33),v=h("toStringTag");x.exports=function(m,T,S){m&&!S&&(m=m.prototype),m&&!f(m,v)&&u(m,v,{configurable:!0,value:T})}}),(function(x,I,n){var u=n(84),f=n(13),h=n(39),v=n(63),m=n(86),T=n(90),S=function($){var E=$===1,R=$===2,b=$===3,O=$===4,C=$===6,M=$===7,P=$===5||C;return function(L,z,B){for(var U=h(L),j=f(U),G=v(j),V=u(z,B),X=0,H=0,Y=E?m(L,G):R||M?m(L,0):void 0,Z,k;G>X;X++)if((P||X in j)&&(Z=j[X],k=V(Z,X,U),$))if(E)T(Y,X,k);else if(k)switch($){case 3:return!0;case 5:return Z;case 6:return X;case 2:T(Y,H++,Z)}else switch($){case 4:return!1;case 7:T(Y,H++,Z)}return C?-1:b||O?O:Y}};x.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6),filterReject:S(7)}}),(function(x,I,n){var u=n(85),f=n(30),h=n(9),v=u(u.bind);x.exports=function(m,T){return f(m),T===void 0?m:h?v(m,T):function(){return m.apply(T,arguments)}}}),(function(x,I,n){var u=n(15),f=n(14);x.exports=function(h){if(u(h)==="Function")return f(h)}}),(function(x,I,n){var u=n(87);x.exports=function(f,h){return new(u(f))(h===0?0:h)}}),(function(x,I,n){var u=n(88),f=n(89),h=n(20),v=n(33),m=v("species"),T=Array;x.exports=function(S){var $;return u(S)&&($=S.constructor,f($)&&($===T||u($.prototype))?$=void 0:h($)&&($=$[m],$===null&&($=void 0))),$===void 0?T:$}}),(function(x,I,n){var u=n(15);x.exports=Array.isArray||function(h){return u(h)==="Array"}}),(function(x,I,n){var u=n(14),f=n(7),h=n(21),v=n(69),m=n(23),T=n(50),S=function(){},$=m("Reflect","construct"),E=/^\s*(?:class|function)\b/,R=u(E.exec),b=!E.test(S),O=function(P){if(!h(P))return!1;try{return $(S,[],P),!0}catch(L){return!1}},C=function(P){if(!h(P))return!1;switch(v(P)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return b||!!R(E,T(P))}catch(L){return!0}};C.sham=!0,x.exports=!$||f(function(){var M;return O(O.call)||!O(Object)||!O(function(){M=!0})||M})?C:O}),(function(x,I,n){var u=n(6),f=n(44),h=n(11);x.exports=function(v,m,T){u?f.f(v,m,h(0,T)):v[m]=T}}),(function(x,I,n){var u=n(3),f=n(23),h=n(38),v=n(68),m=n(34),T=n(92),S=m("string-to-symbol-registry"),$=m("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!T},{for:function(E){var R=v(E);if(h(S,R))return S[R];var b=f("Symbol")(R);return S[R]=b,$[b]=R,b}})}),(function(x,I,n){var u=n(26);x.exports=u&&!!Symbol.for&&!!Symbol.keyFor}),(function(x,I,n){var u=n(3),f=n(38),h=n(22),v=n(31),m=n(34),T=n(92),S=m("symbol-to-string-registry");u({target:"Symbol",stat:!0,forced:!T},{keyFor:function(E){if(!h(E))throw new TypeError(v(E)+" is not a symbol");if(f(S,E))return S[E]}})}),(function(x,I,n){var u=n(3),f=n(23),h=n(95),v=n(8),m=n(14),T=n(7),S=n(88),$=n(21),E=n(96),R=n(22),b=n(15),O=n(68),C=n(76),M=n(97),P=n(40),L=n(26),z=n(98),B=String,U=f("JSON","stringify"),j=m(/./.exec),G=m("".charAt),V=m("".charCodeAt),X=m("".replace),H=m("".slice),Y=m([].push),Z=m(1.1.toString),k=/[\uD800-\uDFFF]/g,et=/^[\uD800-\uDBFF]$/,_=/^[\uDC00-\uDFFF]$/,tt=P(),nt=tt.length,at=!L||T(function(){var It=f("Symbol")("stringify detection");return U([It])!=="[null]"||U({a:It})!=="{}"||U(Object(It))!=="{}"}),ct=T(function(){return U("\uDF06\uD834")!=='"\\udf06\\ud834"'||U("\uDEAD")!=='"\\udead"'}),gt=at?function(It,At){var Mt=C(arguments),ut=mt(At);if(!(!$(ut)&&(It===void 0||R(It))))return Mt[1]=function(lt,Ct){if($(ut)&&(Ct=v(ut,this,B(lt),Ct)),!R(Ct))return Ct},h(U,null,Mt)}:U,pt=function(It,At,Mt){var ut=G(Mt,At-1),lt=G(Mt,At+1);return j(et,It)&&!j(_,lt)||j(_,It)&&!j(et,ut)?"\\u"+Z(V(It,0),16):It},mt=function(It){if($(It))return It;if(S(It)){for(var At=It.length,Mt=[],ut=0;ut<At;ut++){var lt=It[ut];typeof lt=="string"?Y(Mt,lt):(typeof lt=="number"||b(lt)==="Number"||b(lt)==="String")&&Y(Mt,O(lt))}var Ct=Mt.length,Nt=!0;return function(Gt,Ot){if(Nt)return Nt=!1,Ot;if(S(this))return Ot;for(var jt=0;jt<Ct;jt++)if(Mt[jt]===Gt)return Ot}}};U&&u({target:"JSON",stat:!0,arity:3,forced:at||ct||!z},{stringify:function(At,Mt,ut){var lt=mt(Mt),Ct=[],Nt=gt(At,function(ae,Ae){var Ie=$(lt)?v(lt,this,B(ae),Ae):Ae;return!z&&E(Ie)?tt+(Y(Ct,Ie.rawJSON)-1):Ie},ut);if(typeof Nt!="string"||(ct&&(Nt=X(Nt,k,pt)),z))return Nt;for(var Gt="",Ot=Nt.length,jt=0;jt<Ot;jt++){var re=G(Nt,jt);if(re==='"'){var se=M(Nt,++jt).end-1,ne=H(Nt,jt,se);Gt+=H(ne,0,nt)===tt?Ct[H(ne,nt)]:'"'+ne+'"',jt=se}else Gt+=re}return Gt}})}),(function(x,I,n){var u=n(9),f=Function.prototype,h=f.apply,v=f.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(u?v.bind(h):function(){return v.apply(h,arguments)})}),(function(x,I,n){var u=n(20),f=n(51).get;x.exports=function(v){if(!u(v))return!1;var m=f(v);return!!m&&m.type==="RawJSON"}}),(function(x,I,n){var u=n(14),f=n(38),h=SyntaxError,v=parseInt,m=String.fromCharCode,T=u("".charAt),S=u("".slice),$=u(/./.exec),E={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
27
|
+
`,"\\r":"\r","\\t":" "},R=/^[\da-f]{4}$/i,b=/^[\u0000-\u001F]$/;x.exports=function(O,C){for(var M=!0,P="";C<O.length;){var L=T(O,C);if(L==="\\"){var z=S(O,C,C+2);if(f(E,z))P+=E[z],C+=2;else if(z==="\\u"){C+=2;var B=S(O,C,C+4);if(!$(R,B))throw new h("Bad Unicode escape at: "+C);P+=m(v(B,16)),C+=4}else throw new h('Unknown escape sequence: "'+z+'"')}else if(L==='"'){M=!1,C++;break}else{if($(b,L))throw new h("Bad control character in string literal at: "+C);P+=L,C++}}if(M)throw new h("Unterminated string at: "+C);return{value:P,end:C}}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){var f="9007199254740993",h=JSON.rawJSON(f);return!JSON.isRawJSON(h)||JSON.stringify(h)!==f})}),(function(x,I,n){var u=n(3),f=n(26),h=n(7),v=n(66),m=n(39),T=!f||h(function(){v.f(1)});u({target:"Object",stat:!0,forced:T},{getOwnPropertySymbols:function($){var E=v.f;return E?E(m($)):[]}})}),(function(x,I,n){var u=n(3),f=n(6),h=n(4),v=n(14),m=n(38),T=n(21),S=n(24),$=n(68),E=n(77),R=n(55),b=h.Symbol,O=b&&b.prototype;if(f&&T(b)&&(!("description"in O)||b().description!==void 0)){var C={},M=function(){var V=arguments.length<1||arguments[0]===void 0?void 0:$(arguments[0]),X=S(O,this)?new b(V):V===void 0?b():b(V);return V===""&&(C[X]=!0),X};R(M,b),M.prototype=O,O.constructor=M;var P=String(b("description detection"))==="Symbol(description detection)",L=v(O.valueOf),z=v(O.toString),B=/^Symbol\((.*)\)[^)]+$/,U=v("".replace),j=v("".slice);E(O,"description",{configurable:!0,get:function(){var V=L(this);if(m(C,V))return"";var X=z(V),H=P?j(X,7,-1):U(X,B,"$1");return H===""?void 0:H}}),u({global:!0,constructor:!0,forced:!0},{Symbol:M})}}),(function(x,I,n){var u=n(4),f=n(79),h=n(44).f,v=n(5).f,m=u.Symbol;if(f("asyncDispose"),m){var T=v(m,"asyncDispose");T.enumerable&&T.configurable&&T.writable&&h(m,"asyncDispose",{value:T.value,enumerable:!1,configurable:!1,writable:!1})}}),(function(x,I,n){var u=n(79);u("asyncIterator")}),(function(x,I,n){var u=n(4),f=n(79),h=n(44).f,v=n(5).f,m=u.Symbol;if(f("dispose"),m){var T=v(m,"dispose");T.enumerable&&T.configurable&&T.writable&&h(m,"dispose",{value:T.value,enumerable:!1,configurable:!1,writable:!1})}}),(function(x,I,n){var u=n(79);u("hasInstance")}),(function(x,I,n){var u=n(79);u("isConcatSpreadable")}),(function(x,I,n){var u=n(79);u("iterator")}),(function(x,I,n){var u=n(79);u("match")}),(function(x,I,n){var u=n(79);u("matchAll")}),(function(x,I,n){var u=n(79);u("replace")}),(function(x,I,n){var u=n(79);u("search")}),(function(x,I,n){var u=n(79);u("species")}),(function(x,I,n){var u=n(79);u("split")}),(function(x,I,n){var u=n(79),f=n(81);u("toPrimitive"),f()}),(function(x,I,n){var u=n(23),f=n(79),h=n(82);f("toStringTag"),h(u("Symbol"),"Symbol")}),(function(x,I,n){var u=n(79);u("unscopables")}),(function(x,I,n){var u=n(3),f=n(4),h=n(95),v=n(117),m="WebAssembly",T=f[m],S=new Error("e",{cause:7}).cause!==7,$=function(R,b){var O={};O[R]=v(R,b,S),u({global:!0,constructor:!0,arity:1,forced:S},O)},E=function(R,b){if(T&&T[R]){var O={};O[R]=v(m+"."+R,b,S),u({target:m,stat:!0,constructor:!0,arity:1,forced:S},O)}};$("Error",function(R){return function(O){return h(R,this,arguments)}}),$("EvalError",function(R){return function(O){return h(R,this,arguments)}}),$("RangeError",function(R){return function(O){return h(R,this,arguments)}}),$("ReferenceError",function(R){return function(O){return h(R,this,arguments)}}),$("SyntaxError",function(R){return function(O){return h(R,this,arguments)}}),$("TypeError",function(R){return function(O){return h(R,this,arguments)}}),$("URIError",function(R){return function(O){return h(R,this,arguments)}}),E("CompileError",function(R){return function(O){return h(R,this,arguments)}}),E("LinkError",function(R){return function(O){return h(R,this,arguments)}}),E("RuntimeError",function(R){return function(O){return h(R,this,arguments)}})}),(function(x,I,n){var u=n(23),f=n(38),h=n(43),v=n(24),m=n(118),T=n(55),S=n(122),$=n(123),E=n(124),R=n(125),b=n(126),O=n(6),C=n(36);x.exports=function(M,P,L,z){var B="stackTraceLimit",U=z?2:1,j=M.split("."),G=j[j.length-1],V=u.apply(null,j);if(V){var X=V.prototype;if(!C&&f(X,"cause")&&delete X.cause,!L)return V;var H=u("Error"),Y=P(function(Z,k){var et=E(z?k:Z,void 0),_=z?new V(Z):new V;return et!==void 0&&h(_,"message",et),b(_,Y,_.stack,2),this&&v(X,this)&&$(_,this,Y),arguments.length>U&&R(_,arguments[U]),_});if(Y.prototype=X,G!=="Error"?m?m(Y,H):T(Y,H,{name:!0}):O&&B in V&&(S(Y,V,B),S(Y,V,"prepareStackTrace")),T(Y,V),!C)try{X.name!==G&&h(X,"name",G),X.constructor=Y}catch(Z){}return Y}}}),(function(x,I,n){var u=n(119),f=n(20),h=n(16),v=n(120);x.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var m=!1,T={},S;try{S=u(Object.prototype,"__proto__","set"),S(T,[]),m=T instanceof Array}catch($){}return function(E,R){return h(E),v(R),f(E)&&(m?S(E,R):E.__proto__=R),E}})():void 0)}),(function(x,I,n){var u=n(14),f=n(30);x.exports=function(h,v,m){try{return u(f(Object.getOwnPropertyDescriptor(h,v)[m]))}catch(T){}}}),(function(x,I,n){var u=n(121),f=String,h=TypeError;x.exports=function(v){if(u(v))return v;throw new h("Can't set "+f(v)+" as a prototype")}}),(function(x,I,n){var u=n(20);x.exports=function(f){return u(f)||f===null}}),(function(x,I,n){var u=n(44).f;x.exports=function(f,h,v){v in f||u(f,v,{configurable:!0,get:function(){return h[v]},set:function(m){h[v]=m}})}}),(function(x,I,n){var u=n(21),f=n(20),h=n(118);x.exports=function(v,m,T){var S,$;return h&&u(S=m.constructor)&&S!==T&&f($=S.prototype)&&$!==T.prototype&&h(v,$),v}}),(function(x,I,n){var u=n(68);x.exports=function(f,h){return f===void 0?arguments.length<2?"":h:u(f)}}),(function(x,I,n){var u=n(20),f=n(43);x.exports=function(h,v){u(v)&&"cause"in v&&f(h,"cause",v.cause)}}),(function(x,I,n){var u=n(43),f=n(127),h=n(128),v=Error.captureStackTrace;x.exports=function(m,T,S,$){h&&(v?v(m,T):u(m,"stack",f(S,$)))}}),(function(x,I,n){var u=n(14),f=Error,h=u("".replace),v=(function(S){return String(new f(S).stack)})("zxcasd"),m=/\n\s*at [^:]*:[^\n]*/,T=m.test(v);x.exports=function(S,$){if(T&&typeof S=="string"&&!f.prepareStackTrace)for(;$--;)S=h(S,m,"");return S}}),(function(x,I,n){var u=n(7),f=n(11);x.exports=!u(function(){var h=new Error("a");return"stack"in h?(Object.defineProperty(h,"stack",f(1,7)),h.stack!==7):!0})}),(function(x,I,n){var u=n(3),f=n(23),h=n(20),v=n(69),m=n(7),T="Error",S="DOMException",$=Object.setPrototypeOf||{}.__proto__,E=f(S),R=Error,b=R.isError,O=!b||!$||m(function(){return E&&!b(new E(S))||!b(new R(T,{cause:function(){}}))||b(f("Object","create")(R.prototype))});u({target:"Error",stat:!0,sham:!0,forced:O},{isError:function(M){if(!h(M))return!1;var P=v(M);return P===T||P===S}})}),(function(x,I,n){var u=n(47),f=n(131),h=Error.prototype;h.toString!==f&&u(h,"toString",f)}),(function(x,I,n){var u=n(6),f=n(7),h=n(46),v=n(124),m=Error.prototype.toString,T=f(function(){if(u){var S=Object.create(Object.defineProperty({},"name",{get:function(){return this===S}}));if(m.call(S)!=="true")return!0}return m.call({message:1,name:2})!=="2: 1"||m.call({})!=="Error"});x.exports=T?function(){var $=h(this),E=v($.name,"Error"),R=v($.message);return E?R?E+": "+R:E:R}:m}),(function(x,I,n){n(133)}),(function(x,I,n){var u=n(3),f=n(24),h=n(134),v=n(118),m=n(55),T=n(71),S=n(43),$=n(11),E=n(125),R=n(126),b=n(136),O=n(124),C=n(33),M=C("toStringTag"),P=Error,L=[].push,z=function(j,G){var V=f(B,this),X;v?X=v(new P,V?h(this):B):(X=V?this:T(B),S(X,M,"Error")),G!==void 0&&S(X,"message",O(G)),R(X,z,X.stack,1),arguments.length>2&&E(X,arguments[2]);var H=[];return b(j,L,{that:H}),S(X,"errors",H),X};v?v(z,P):m(z,P,{name:!0});var B=z.prototype=T(P.prototype,{constructor:$(1,z),message:$(1,""),name:$(1,"AggregateError")});u({global:!0,constructor:!0,arity:2},{AggregateError:z})}),(function(x,I,n){var u=n(38),f=n(21),h=n(39),v=n(53),m=n(135),T=v("IE_PROTO"),S=Object,$=S.prototype;x.exports=m?S.getPrototypeOf:function(E){var R=h(E);if(u(R,T))return R[T];var b=R.constructor;return f(b)&&R instanceof b?b.prototype:R instanceof S?$:null}}),(function(x,I,n){var u=n(7);x.exports=!u(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})}),(function(x,I,n){var u=n(84),f=n(8),h=n(46),v=n(31),m=n(137),T=n(63),S=n(24),$=n(139),E=n(140),R=n(141),b=TypeError,O=function(M,P){this.stopped=M,this.result=P},C=O.prototype;x.exports=function(M,P,L){var z=L&&L.that,B=!!(L&&L.AS_ENTRIES),U=!!(L&&L.IS_RECORD),j=!!(L&&L.IS_ITERATOR),G=!!(L&&L.INTERRUPTED),V=u(P,z),X,H,Y,Z,k,et,_,tt=function(at){return X&&R(X,"normal"),new O(!0,at)},nt=function(at){return B?(h(at),G?V(at[0],at[1],tt):V(at[0],at[1])):G?V(at,tt):V(at)};if(U)X=M.iterator;else if(j)X=M;else{if(H=E(M),!H)throw new b(v(M)+" is not iterable");if(m(H)){for(Y=0,Z=T(M);Z>Y;Y++)if(k=nt(M[Y]),k&&S(C,k))return k;return new O(!1)}X=$(M,H)}for(et=U?M.next:X.next;!(_=f(et,X)).done;){try{k=nt(_.value)}catch(at){R(X,"throw",at)}if(typeof k=="object"&&k&&S(C,k))return k}return new O(!1)}}),(function(x,I,n){var u=n(33),f=n(138),h=u("iterator"),v=Array.prototype;x.exports=function(m){return m!==void 0&&(f.Array===m||v[h]===m)}}),(function(x){x.exports={}}),(function(x,I,n){var u=n(8),f=n(30),h=n(46),v=n(31),m=n(140),T=TypeError;x.exports=function(S,$){var E=arguments.length<2?m(S):$;if(f(E))return h(u(E,S));throw new T(v(S)+" is not iterable")}}),(function(x,I,n){var u=n(69),f=n(29),h=n(17),v=n(138),m=n(33),T=m("iterator");x.exports=function(S){if(!h(S))return f(S,T)||f(S,"@@iterator")||v[u(S)]}}),(function(x,I,n){var u=n(8),f=n(46),h=n(29);x.exports=function(v,m,T){var S,$;f(v);try{if(S=h(v,"return"),!S){if(m==="throw")throw T;return T}S=u(S,v)}catch(E){$=!0,S=E}if(m==="throw")throw T;if($)throw S;return f(S),T}}),(function(x,I,n){var u=n(3),f=n(23),h=n(95),v=n(7),m=n(117),T="AggregateError",S=f(T),$=!v(function(){return S([1]).errors[0]!==1})&&v(function(){return S([1],T,{cause:7}).cause!==7});u({global:!0,constructor:!0,arity:2,forced:$},{AggregateError:m(T,function(E){return function(b,O){return h(E,this,arguments)}},$,!0)})}),(function(x,I,n){var u=n(3),f=n(4),h=n(24),v=n(134),m=n(118),T=n(55),S=n(71),$=n(43),E=n(11),R=n(126),b=n(124),O=n(33),C=n(7),M=n(36),P=f.SuppressedError,L=O("toStringTag"),z=Error,B=!!P&&P.length!==3,U=!!P&&C(function(){return new P(1,2,3,{cause:4}).cause===4}),j=B||U,G=function(H,Y,Z){var k=h(V,this),et;return m?et=j&&(!k||v(this)===V)?new P:m(new z,k?v(this):V):(et=k?this:S(V),$(et,L,"Error")),Z!==void 0&&$(et,"message",b(Z)),R(et,G,et.stack,1),$(et,"error",H),$(et,"suppressed",Y),et};m?m(G,z):T(G,z,{name:!0});var V=G.prototype=j?P.prototype:S(z.prototype,{constructor:E(1,G),message:E(1,""),name:E(1,"SuppressedError")});j&&!M&&(V.constructor=G),u({global:!0,constructor:!0,arity:3,forced:j},{SuppressedError:G})}),(function(x,I,n){var u=n(3),f=n(39),h=n(63),v=n(61),m=n(145);u({target:"Array",proto:!0},{at:function(S){var $=f(this),E=h($),R=v(S),b=R>=0?R:E+R;return b<0||b>=E?void 0:$[b]}}),m("at")}),(function(x,I,n){var u=n(33),f=n(71),h=n(44).f,v=u("unscopables"),m=Array.prototype;m[v]===void 0&&h(m,v,{configurable:!0,value:f(null)}),x.exports=function(T){m[v][T]=!0}}),(function(x,I,n){var u=n(3),f=n(7),h=n(88),v=n(20),m=n(39),T=n(63),S=n(147),$=n(90),E=n(148),R=n(86),b=n(149),O=n(33),C=n(27),M=O("isConcatSpreadable"),P=C>=51||!f(function(){var B=[];return B[M]=!1,B.concat()[0]!==B}),L=function(B){if(!v(B))return!1;var U=B[M];return U!==void 0?!!U:h(B)},z=!P||!b("concat");u({target:"Array",proto:!0,arity:1,forced:z},{concat:function(U){var j=m(this),G=R(j,0),V=0,X,H,Y,Z,k;for(X=-1,Y=arguments.length;X<Y;X++)if(k=X===-1?j:arguments[X],L(k))for(Z=T(k),S(V+Z),H=0;H<Z;H++,V++)H in k&&$(G,V,k[H]);else S(V+1),$(G,V++,k);return E(G,V),G}})}),(function(x){var I=TypeError,n=9007199254740991;x.exports=function(u){if(u>n)throw I("Maximum allowed index exceeded");return u}}),(function(x,I,n){var u=n(6),f=n(88),h=TypeError,v=Object.getOwnPropertyDescriptor,m=u&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}})();x.exports=m?function(T,S){if(f(T)&&!v(T,"length").writable)throw new h("Cannot set read only .length");return T.length=S}:function(T,S){return T.length=S}}),(function(x,I,n){var u=n(7),f=n(33),h=n(27),v=f("species");x.exports=function(m){return h>=51||!u(function(){var T=[],S=T.constructor={};return S[v]=function(){return{foo:1}},T[m](Boolean).foo!==1})}}),(function(x,I,n){var u=n(3),f=n(151),h=n(145);u({target:"Array",proto:!0},{copyWithin:f}),h("copyWithin")}),(function(x,I,n){var u=n(39),f=n(60),h=n(63),v=n(152),m=Math.min;x.exports=[].copyWithin||function(S,$){var E=u(this),R=h(E),b=f(S,R),O=f($,R),C=arguments.length>2?arguments[2]:void 0,M=m((C===void 0?R:f(C,R))-O,R-b),P=1;for(O<b&&b<O+M&&(P=-1,O+=M-1,b+=M-1);M-- >0;)O in E?E[b]=E[O]:v(E,b),b+=P,O+=P;return E}}),(function(x,I,n){var u=n(31),f=TypeError;x.exports=function(h,v){if(!delete h[v])throw new f("Cannot delete property "+u(v)+" of "+u(h))}}),(function(x,I,n){var u=n(3),f=n(83).every,h=n(154),v=h("every");u({target:"Array",proto:!0,forced:!v},{every:function(T){return f(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(7);x.exports=function(f,h){var v=[][f];return!!v&&u(function(){v.call(null,h||function(){return 1},1)})}}),(function(x,I,n){var u=n(3),f=n(156),h=n(145);u({target:"Array",proto:!0},{fill:f}),h("fill")}),(function(x,I,n){var u=n(39),f=n(60),h=n(63);x.exports=function(m){for(var T=u(this),S=h(T),$=arguments.length,E=f($>1?arguments[1]:void 0,S),R=$>2?arguments[2]:void 0,b=R===void 0?S:f(R,S);b>E;)T[E++]=m;return T}}),(function(x,I,n){var u=n(3),f=n(83).filter,h=n(149),v=h("filter");u({target:"Array",proto:!0,forced:!v},{filter:function(T){return f(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),f=n(83).find,h=n(145),v="find",m=!0;v in[]&&Array(1)[v](function(){m=!1}),u({target:"Array",proto:!0,forced:m},{find:function(S){return f(this,S,arguments.length>1?arguments[1]:void 0)}}),h(v)}),(function(x,I,n){var u=n(3),f=n(83).findIndex,h=n(145),v="findIndex",m=!0;v in[]&&Array(1)[v](function(){m=!1}),u({target:"Array",proto:!0,forced:m},{findIndex:function(S){return f(this,S,arguments.length>1?arguments[1]:void 0)}}),h(v)}),(function(x,I,n){var u=n(3),f=n(161).findLast,h=n(145);u({target:"Array",proto:!0},{findLast:function(m){return f(this,m,arguments.length>1?arguments[1]:void 0)}}),h("findLast")}),(function(x,I,n){var u=n(84),f=n(13),h=n(39),v=n(63),m=function(T){var S=T===1;return function($,E,R){for(var b=h($),O=f(b),C=v(O),M=u(E,R),P,L;C-- >0;)if(P=O[C],L=M(P,C,b),L)switch(T){case 0:return P;case 1:return C}return S?-1:void 0}};x.exports={findLast:m(0),findLastIndex:m(1)}}),(function(x,I,n){var u=n(3),f=n(161).findLastIndex,h=n(145);u({target:"Array",proto:!0},{findLastIndex:function(m){return f(this,m,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")}),(function(x,I,n){var u=n(3),f=n(164),h=n(39),v=n(63),m=n(61),T=n(86);u({target:"Array",proto:!0},{flat:function(){var $=arguments.length?arguments[0]:void 0,E=h(this),R=v(E),b=T(E,0);return f(b,E,E,R,0,$===void 0?1:m($)),b}})}),(function(x,I,n){var u=n(88),f=n(63),h=n(147),v=n(84),m=n(90),T=function(S,$,E,R,b,O,C,M){for(var P=b,L=0,z=C?v(C,M):!1,B,U;L<R;)L in E&&(B=z?z(E[L],L,$):E[L],O>0&&u(B)?(U=f(B),P=T(S,$,B,U,P,O-1)-1):(h(P+1),m(S,P,B)),P++),L++;return P};x.exports=T}),(function(x,I,n){var u=n(3),f=n(164),h=n(30),v=n(39),m=n(63),T=n(86);u({target:"Array",proto:!0},{flatMap:function($){var E=v(this),R=m(E),b;return h($),b=T(E,0),f(b,E,E,R,0,1,$,arguments.length>1?arguments[1]:void 0),b}})}),(function(x,I,n){var u=n(3),f=n(167);u({target:"Array",proto:!0,forced:[].forEach!==f},{forEach:f})}),(function(x,I,n){var u=n(83).forEach,f=n(154),h=f("forEach");x.exports=h?[].forEach:function(m){return u(this,m,arguments.length>1?arguments[1]:void 0)}}),(function(x,I,n){var u=n(3),f=n(169),h=n(171),v=!h(function(m){Array.from(m)});u({target:"Array",stat:!0,forced:v},{from:f})}),(function(x,I,n){var u=n(84),f=n(8),h=n(39),v=n(170),m=n(137),T=n(89),S=n(63),$=n(90),E=n(148),R=n(139),b=n(140),O=Array;x.exports=function(M){var P=h(M),L=T(this),z=arguments.length,B=z>1?arguments[1]:void 0,U=B!==void 0;U&&(B=u(B,z>2?arguments[2]:void 0));var j=b(P),G=0,V,X,H,Y,Z,k;if(j&&!(this===O&&m(j)))for(X=L?new this:[],Y=R(P,j),Z=Y.next;!(H=f(Z,Y)).done;G++)k=U?v(Y,B,[H.value,G],!0):H.value,$(X,G,k);else for(V=S(P),X=L?new this(V):O(V);V>G;G++)k=U?B(P[G],G):P[G],$(X,G,k);return E(X,G),X}}),(function(x,I,n){var u=n(46),f=n(141);x.exports=function(h,v,m,T){try{return T?v(u(m)[0],m[1]):v(m)}catch(S){f(h,"throw",S)}}}),(function(x,I,n){var u=n(33),f=u("iterator"),h=!1;try{var v=0,m={next:function(){return{done:!!v++}},return:function(){h=!0}};m[f]=function(){return this},Array.from(m,function(){throw 2})}catch(T){}x.exports=function(T,S){try{if(!S&&!h)return!1}catch(R){return!1}var $=!1;try{var E={};E[f]=function(){return{next:function(){return{done:$=!0}}}},T(E)}catch(R){}return $}}),(function(x,I,n){var u=n(3),f=n(59).includes,h=n(7),v=n(145),m=h(function(){return!Array(1).includes()});u({target:"Array",proto:!0,forced:m},{includes:function(S){return f(this,S,arguments.length>1?arguments[1]:void 0)}}),v("includes")}),(function(x,I,n){var u=n(3),f=n(85),h=n(59).indexOf,v=n(154),m=f([].indexOf),T=!!m&&1/m([1],1,-0)<0,S=T||!v("indexOf");u({target:"Array",proto:!0,forced:S},{indexOf:function(E){var R=arguments.length>1?arguments[1]:void 0;return T?m(this,E,R)||0:h(this,E,R)}})}),(function(x,I,n){var u=n(3),f=n(88);u({target:"Array",stat:!0},{isArray:f})}),(function(x,I,n){var u=n(12),f=n(145),h=n(138),v=n(51),m=n(44).f,T=n(176),S=n(179),$=n(36),E=n(6),R="Array Iterator",b=v.set,O=v.getterFor(R);x.exports=T(Array,"Array",function(M,P){b(this,{type:R,target:u(M),index:0,kind:P})},function(){var M=O(this),P=M.target,L=M.index++;if(!P||L>=P.length)return M.target=null,S(void 0,!0);switch(M.kind){case"keys":return S(L,!1);case"values":return S(P[L],!1)}return S([L,P[L]],!1)},"values");var C=h.Arguments=h.Array;if(f("keys"),f("values"),f("entries"),!$&&E&&C.name!=="values")try{m(C,"name",{value:"values"})}catch(M){}}),(function(x,I,n){var u=n(3),f=n(8),h=n(36),v=n(49),m=n(21),T=n(177),S=n(134),$=n(118),E=n(82),R=n(43),b=n(47),O=n(33),C=n(138),M=n(178),P=v.PROPER,L=v.CONFIGURABLE,z=M.IteratorPrototype,B=M.BUGGY_SAFARI_ITERATORS,U=O("iterator"),j="keys",G="values",V="entries",X=function(){return this};x.exports=function(H,Y,Z,k,et,_,tt){T(Z,Y,k);var nt=function(lt){if(lt===et&&mt)return mt;if(!B&<&< in gt)return gt[lt];switch(lt){case j:return function(){return new Z(this,lt)};case G:return function(){return new Z(this,lt)};case V:return function(){return new Z(this,lt)}}return function(){return new Z(this)}},at=Y+" Iterator",ct=!1,gt=H.prototype,pt=gt[U]||gt["@@iterator"]||et&>[et],mt=!B&&pt||nt(et),It=Y==="Array"&>.entries||pt,At,Mt,ut;if(It&&(At=S(It.call(new H)),At!==Object.prototype&&At.next&&(!h&&S(At)!==z&&($?$(At,z):m(At[U])||b(At,U,X)),E(At,at,!0,!0),h&&(C[at]=X))),P&&et===G&&pt&&pt.name!==G&&(!h&&L?R(gt,"name",G):(ct=!0,mt=function(){return f(pt,this)})),et)if(Mt={values:nt(G),keys:_?mt:nt(j),entries:nt(V)},tt)for(ut in Mt)(B||ct||!(ut in gt))&&b(gt,ut,Mt[ut]);else u({target:Y,proto:!0,forced:B||ct},Mt);return(!h||tt)&>[U]!==mt&&b(gt,U,mt,{name:et}),C[Y]=mt,Mt}}),(function(x,I,n){var u=n(178).IteratorPrototype,f=n(71),h=n(11),v=n(82),m=n(138),T=function(){return this};x.exports=function(S,$,E,R){var b=$+" Iterator";return S.prototype=f(u,{next:h(+!R,E)}),v(S,b,!1,!0),m[b]=T,S}}),(function(x,I,n){var u=n(7),f=n(21),h=n(20),v=n(71),m=n(134),T=n(47),S=n(33),$=n(36),E=S("iterator"),R=!1,b,O,C;[].keys&&(C=[].keys(),"next"in C?(O=m(m(C)),O!==Object.prototype&&(b=O)):R=!0);var M=!h(b)||u(function(){var P={};return b[E].call(P)!==P});M?b={}:$&&(b=v(b)),f(b[E])||T(b,E,function(){return this}),x.exports={IteratorPrototype:b,BUGGY_SAFARI_ITERATORS:R}}),(function(x){x.exports=function(I,n){return{value:I,done:n}}}),(function(x,I,n){var u=n(3),f=n(14),h=n(13),v=n(12),m=n(154),T=f([].join),S=h!==Object,$=S||!m("join",",");u({target:"Array",proto:!0,forced:$},{join:function(R){return T(v(this),R===void 0?",":R)}})}),(function(x,I,n){var u=n(3),f=n(182);u({target:"Array",proto:!0,forced:f!==[].lastIndexOf},{lastIndexOf:f})}),(function(x,I,n){var u=n(95),f=n(12),h=n(61),v=n(63),m=n(154),T=Math.min,S=[].lastIndexOf,$=!!S&&1/[1].lastIndexOf(1,-0)<0,E=m("lastIndexOf"),R=$||!E;x.exports=R?function(O){if($)return u(S,this,arguments)||0;var C=f(this),M=v(C);if(M===0)return-1;var P=M-1;for(arguments.length>1&&(P=T(P,h(arguments[1]))),P<0&&(P=M+P);P>=0;P--)if(P in C&&C[P]===O)return P||0;return-1}:S}),(function(x,I,n){var u=n(3),f=n(83).map,h=n(149),v=h("map");u({target:"Array",proto:!0,forced:!v},{map:function(T){return f(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),f=n(7),h=n(89),v=n(90),m=n(148),T=Array,S=f(function(){function $(){}return!(T.of.call($)instanceof $)});u({target:"Array",stat:!0,forced:S},{of:function(){for(var E=0,R=arguments.length,b=new(h(this)?this:T)(R);R>E;)v(b,E,arguments[E++]);return m(b,R),b}})}),(function(x,I,n){var u=n(3),f=n(39),h=n(63),v=n(148),m=n(147),T=n(7),S=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),$=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(R){return R instanceof TypeError}},E=S||!$();u({target:"Array",proto:!0,arity:1,forced:E},{push:function(b){var O=f(this),C=h(O),M=arguments.length;m(C+M);for(var P=0;P<M;P++)O[C]=arguments[P],C++;return v(O,C),C}})}),(function(x,I,n){var u=n(3),f=n(187).left,h=n(154),v=n(27),m=n(188),T=!m&&v>79&&v<83,S=T||!h("reduce");u({target:"Array",proto:!0,forced:S},{reduce:function(E){var R=arguments.length;return f(this,E,R,R>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(30),f=n(39),h=n(13),v=n(63),m=TypeError,T="Reduce of empty array with no initial value",S=function($){return function(E,R,b,O){var C=f(E),M=h(C),P=v(C);if(u(R),P===0&&b<2)throw new m(T);var L=$?P-1:0,z=$?-1:1;if(b<2)for(;;){if(L in M){O=M[L],L+=z;break}if(L+=z,$?L<0:P<=L)throw new m(T)}for(;$?L>=0:P>L;L+=z)L in M&&(O=R(O,M[L],L,C));return O}};x.exports={left:S(!1),right:S(!0)}}),(function(x,I,n){var u=n(189);x.exports=u==="NODE"}),(function(x,I,n){var u=n(4),f=n(28),h=n(15),v=function(m){return f.slice(0,m.length)===m};x.exports=(function(){return v("Bun/")?"BUN":v("Cloudflare-Workers")?"CLOUDFLARE":v("Deno/")?"DENO":v("Node.js/")?"NODE":u.Bun&&typeof Bun.version=="string"?"BUN":u.Deno&&typeof Deno.version=="object"?"DENO":h(u.process)==="process"?"NODE":u.window&&u.document?"BROWSER":"REST"})()}),(function(x,I,n){var u=n(3),f=n(187).right,h=n(154),v=n(27),m=n(188),T=!m&&v>79&&v<83,S=T||!h("reduceRight");u({target:"Array",proto:!0,forced:S},{reduceRight:function(E){return f(this,E,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(88),v=f([].reverse),m=[1,2];u({target:"Array",proto:!0,forced:String(m)===String(m.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),v(this)}})}),(function(x,I,n){var u=n(3),f=n(88),h=n(89),v=n(20),m=n(60),T=n(63),S=n(12),$=n(90),E=n(148),R=n(33),b=n(149),O=n(76),C=b("slice"),M=R("species"),P=Array,L=Math.max;u({target:"Array",proto:!0,forced:!C},{slice:function(B,U){var j=S(this),G=T(j),V=m(B,G),X=m(U===void 0?G:U,G),H,Y,Z;if(f(j)&&(H=j.constructor,h(H)&&(H===P||f(H.prototype))?H=void 0:v(H)&&(H=H[M],H===null&&(H=void 0)),H===P||H===void 0))return O(j,V,X);for(Y=new(H===void 0?P:H)(L(X-V,0)),Z=0;V<X;V++,Z++)V in j&&$(Y,Z,j[V]);return E(Y,Z),Y}})}),(function(x,I,n){var u=n(3),f=n(83).some,h=n(154),v=h("some");u({target:"Array",proto:!0,forced:!v},{some:function(T){return f(this,T,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(30),v=n(39),m=n(63),T=n(152),S=n(68),$=n(7),E=n(195),R=n(154),b=n(196),O=n(197),C=n(27),M=n(198),P=[],L=f(P.sort),z=f(P.push),B=$(function(){P.sort(void 0)}),U=$(function(){P.sort(null)}),j=R("sort"),G=!$(function(){if(C)return C<70;if(!(b&&b>3)){if(O)return!0;if(M)return M<603;var H="",Y,Z,k,et;for(Y=65;Y<76;Y++){switch(Z=String.fromCharCode(Y),Y){case 66:case 69:case 70:case 72:k=3;break;case 68:case 71:k=4;break;default:k=2}for(et=0;et<47;et++)P.push({k:Z+et,v:k})}for(P.sort(function(_,tt){return tt.v-_.v}),et=0;et<P.length;et++)Z=P[et].k.charAt(0),H.charAt(H.length-1)!==Z&&(H+=Z);return H!=="DGBEFHACIJK"}}),V=B||!U||!j||!G,X=function(H){return function(Y,Z){return Z===void 0?-1:Y===void 0?1:H!==void 0?+H(Y,Z)||0:S(Y)>S(Z)?1:-1}};u({target:"Array",proto:!0,forced:V},{sort:function(Y){Y!==void 0&&h(Y);var Z=v(this);if(G)return Y===void 0?L(Z):L(Z,Y);var k=[],et=m(Z),_,tt;for(tt=0;tt<et;tt++)tt in Z&&z(k,Z[tt]);for(E(k,X(Y)),_=m(k),tt=0;tt<_;)Z[tt]=k[tt++];for(;tt<et;)T(Z,tt++);return Z}})}),(function(x,I,n){var u=n(76),f=Math.floor,h=function(v,m){var T=v.length;if(T<8)for(var S=1,$,E;S<T;){for(E=S,$=v[S];E&&m(v[E-1],$)>0;)v[E]=v[--E];E!==S++&&(v[E]=$)}else for(var R=f(T/2),b=h(u(v,0,R),m),O=h(u(v,R),m),C=b.length,M=O.length,P=0,L=0;P<C||L<M;)v[P+L]=P<C&&L<M?m(b[P],O[L])<=0?b[P++]:O[L++]:P<C?b[P++]:O[L++];return v};x.exports=h}),(function(x,I,n){var u=n(28),f=u.match(/firefox\/(\d+)/i);x.exports=!!f&&+f[1]}),(function(x,I,n){var u=n(28);x.exports=/MSIE|Trident/.test(u)}),(function(x,I,n){var u=n(28),f=u.match(/AppleWebKit\/(\d+)\./);x.exports=!!f&&+f[1]}),(function(x,I,n){var u=n(200);u("Array")}),(function(x,I,n){var u=n(23),f=n(77),h=n(33),v=n(6),m=h("species");x.exports=function(T){var S=u(T);v&&S&&!S[m]&&f(S,m,{configurable:!0,get:function(){return this}})}}),(function(x,I,n){var u=n(3),f=n(39),h=n(60),v=n(61),m=n(63),T=n(148),S=n(147),$=n(86),E=n(90),R=n(152),b=n(149),O=b("splice"),C=Math.max,M=Math.min;u({target:"Array",proto:!0,forced:!O},{splice:function(L,z){var B=f(this),U=m(B),j=h(L,U),G=arguments.length,V,X,H,Y,Z,k;for(G===0?V=X=0:G===1?(V=0,X=U-j):(V=G-2,X=M(C(v(z),0),U-j)),S(U+V-X),H=$(B,X),Y=0;Y<X;Y++)Z=j+Y,Z in B&&E(H,Y,B[Z]);if(T(H,X),V<X){for(Y=j;Y<U-X;Y++)Z=Y+X,k=Y+V,Z in B?B[k]=B[Z]:R(B,k);for(Y=U;Y>U-X+V;Y--)R(B,Y-1)}else if(V>X)for(Y=U-X;Y>j;Y--)Z=Y+X-1,k=Y+V-1,Z in B?B[k]=B[Z]:R(B,k);for(Y=0;Y<V;Y++)B[Y+j]=arguments[Y+2];return T(B,U-X+V),H}})}),(function(x,I,n){var u=n(3),f=n(63),h=n(12),v=n(90),m=n(145),T=Array;u({target:"Array",proto:!0},{toReversed:function(){for(var $=h(this),E=f($),R=new T(E),b=0;b<E;b++)v(R,b,$[E-b-1]);return R}}),m("toReversed")}),(function(x,I,n){var u=n(3),f=n(14),h=n(30),v=n(12),m=n(204),T=n(205),S=n(145),$=Array,E=f(T("Array","sort"));u({target:"Array",proto:!0},{toSorted:function(b){b!==void 0&&h(b);var O=v(this),C=m($,O);return E(C,b)}}),S("toSorted")}),(function(x,I,n){var u=n(63);x.exports=function(f,h,v){for(var m=0,T=arguments.length>2?v:u(h),S=new f(T);T>m;)S[m]=h[m++];return S}}),(function(x,I,n){var u=n(4);x.exports=function(f,h){var v=u[f],m=v&&v.prototype;return m&&m[h]}}),(function(x,I,n){var u=n(3),f=n(145),h=n(147),v=n(63),m=n(60),T=n(12),S=n(61),$=n(90),E=Array,R=Math.max,b=Math.min;u({target:"Array",proto:!0},{toSpliced:function(C,M){var P=T(this),L=v(P),z=m(C,L),B=arguments.length,U=0,j,G,V,X;for(B===0?j=G=0:B===1?(j=0,G=L-z):(j=B-2,G=b(R(S(M),0),L-z)),V=h(L+j-G),X=E(V);U<z;U++)$(X,U,P[U]);for(;U<z+j;U++)$(X,U,arguments[U-z+2]);for(;U<V;U++)$(X,U,P[U+G-j]);return X}}),f("toSpliced")}),(function(x,I,n){var u=n(145);u("flat")}),(function(x,I,n){var u=n(145);u("flatMap")}),(function(x,I,n){var u=n(3),f=n(39),h=n(63),v=n(148),m=n(152),T=n(147),S=[].unshift(0)!==1,$=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(R){return R instanceof TypeError}},E=S||!$();u({target:"Array",proto:!0,arity:1,forced:E},{unshift:function(b){var O=f(this),C=h(O),M=arguments.length;if(M){T(C+M);for(var P=C;P--;){var L=P+M;P in O?O[L]=O[P]:m(O,L)}for(var z=0;z<M;z++)O[z]=arguments[z]}return v(O,C+M)}})}),(function(x,I,n){var u=n(3),f=n(63),h=n(61),v=n(12),m=n(90),T=Array,S=RangeError,$=(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(E){return E!==4}})();u({target:"Array",proto:!0,forced:$},{with:function(E,R){var b=v(this),O=f(b),C=h(E),M=C<0?O+C:C;if(M>=O||M<0)throw new S("Incorrect index");for(var P=new T(O),L=0;L<O;L++)m(P,L,L===M?R:b[L]);return P}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(212),v=n(200),m="ArrayBuffer",T=h[m],S=f[m];u({global:!0,constructor:!0,forced:S!==T},{ArrayBuffer:T}),v(m)}),(function(x,I,n){var u=n(4),f=n(14),h=n(6),v=n(213),m=n(49),T=n(43),S=n(77),$=n(214),E=n(7),R=n(215),b=n(61),O=n(64),C=n(216),M=n(217),P=n(221),L=n(134),z=n(118),B=n(156),U=n(76),j=n(123),G=n(55),V=n(82),X=n(51),H=m.PROPER,Y=m.CONFIGURABLE,Z="ArrayBuffer",k="DataView",et="prototype",_="Wrong length",tt="Wrong index",nt=X.getterFor(Z),at=X.getterFor(k),ct=X.set,gt=u[Z],pt=gt,mt=pt&&pt[et],It=u[k],At=It&&It[et],Mt=Object.prototype,ut=u.Array,lt=u.RangeError,Ct=f(B),Nt=f([].reverse),Gt=P.pack,Ot=P.unpack,jt=function(wt){return[wt&255]},re=function(wt){return[wt&255,wt>>8&255]},se=function(wt){return[wt&255,wt>>8&255,wt>>16&255,wt>>24&255]},ne=function(wt){return wt[3]<<24|wt[2]<<16|wt[1]<<8|wt[0]},ae=function(wt){return Gt(M(wt),23,4)},Ae=function(wt){return Gt(wt,52,8)},Ie=function(wt,Yt,ue){S(wt[et],Yt,{configurable:!0,get:function(){return ue(this)[Yt]}})},pe=function(wt,Yt,ue,Vt){var _t=at(wt),te=C(ue),Zt=!!Vt;if(te+Yt>_t.byteLength)throw new lt(tt);var xe=_t.bytes,We=te+_t.byteOffset,ht=U(xe,We,We+Yt);return Zt?ht:Nt(ht)},le=function(wt,Yt,ue,Vt,_t,te){var Zt=at(wt),xe=C(ue),We=Vt(+_t),ht=!!te;if(xe+Yt>Zt.byteLength)throw new lt(tt);for(var Lt=Zt.bytes,Bt=xe+Zt.byteOffset,Ut=0;Ut<Yt;Ut++)Lt[Bt+Ut]=We[ht?Ut:Yt-Ut-1]};if(!v)pt=function(Yt){R(this,mt);var ue=C(Yt);ct(this,{type:Z,bytes:Ct(ut(ue),0),byteLength:ue}),h||(this.byteLength=ue,this.detached=!1)},mt=pt[et],It=function(Yt,ue,Vt){R(this,At),R(Yt,mt);var _t=nt(Yt),te=_t.byteLength,Zt=b(ue);if(Zt<0||Zt>te)throw new lt("Wrong offset");if(Vt=Vt===void 0?te-Zt:O(Vt),Zt+Vt>te)throw new lt(_);ct(this,{type:k,buffer:Yt,byteLength:Vt,byteOffset:Zt,bytes:_t.bytes}),h||(this.buffer=Yt,this.byteLength=Vt,this.byteOffset=Zt)},At=It[et],h&&(Ie(pt,"byteLength",nt),Ie(It,"buffer",at),Ie(It,"byteLength",at),Ie(It,"byteOffset",at)),$(At,{getInt8:function(Yt){return pe(this,1,Yt)[0]<<24>>24},getUint8:function(Yt){return pe(this,1,Yt)[0]},getInt16:function(Yt){var ue=pe(this,2,Yt,arguments.length>1?arguments[1]:!1);return(ue[1]<<8|ue[0])<<16>>16},getUint16:function(Yt){var ue=pe(this,2,Yt,arguments.length>1?arguments[1]:!1);return ue[1]<<8|ue[0]},getInt32:function(Yt){return ne(pe(this,4,Yt,arguments.length>1?arguments[1]:!1))},getUint32:function(Yt){return ne(pe(this,4,Yt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Yt){return Ot(pe(this,4,Yt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Yt){return Ot(pe(this,8,Yt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Yt,ue){le(this,1,Yt,jt,ue)},setUint8:function(Yt,ue){le(this,1,Yt,jt,ue)},setInt16:function(Yt,ue){le(this,2,Yt,re,ue,arguments.length>2?arguments[2]:!1)},setUint16:function(Yt,ue){le(this,2,Yt,re,ue,arguments.length>2?arguments[2]:!1)},setInt32:function(Yt,ue){le(this,4,Yt,se,ue,arguments.length>2?arguments[2]:!1)},setUint32:function(Yt,ue){le(this,4,Yt,se,ue,arguments.length>2?arguments[2]:!1)},setFloat32:function(Yt,ue){le(this,4,Yt,ae,ue,arguments.length>2?arguments[2]:!1)},setFloat64:function(Yt,ue){le(this,8,Yt,Ae,ue,arguments.length>2?arguments[2]:!1)}});else{var Re=H&>.name!==Z;!E(function(){gt(1)})||!E(function(){new gt(-1)})||E(function(){return new gt,new gt(1.5),new gt(NaN),gt.length!==1||Re&&!Y})?(pt=function(Yt){return R(this,mt),j(new gt(C(Yt)),this,pt)},pt[et]=mt,mt.constructor=pt,G(pt,gt)):Re&&Y&&T(gt,"name",Z),z&&L(At)!==Mt&&z(At,Mt);var Se=new It(new pt(2)),me=f(At.setInt8);Se.setInt8(0,2147483648),Se.setInt8(1,2147483649),(Se.getInt8(0)||!Se.getInt8(1))&&$(At,{setInt8:function(Yt,ue){me(this,Yt,ue<<24>>24)},setUint8:function(Yt,ue){me(this,Yt,ue<<24>>24)}},{unsafe:!0})}V(pt,Z),V(It,k),x.exports={ArrayBuffer:pt,DataView:It}}),(function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"}),(function(x,I,n){var u=n(47);x.exports=function(f,h,v){for(var m in h)u(f,m,h[m],v);return f}}),(function(x,I,n){var u=n(24),f=TypeError;x.exports=function(h,v){if(u(v,h))return h;throw new f("Incorrect invocation")}}),(function(x,I,n){var u=n(61),f=n(64),h=RangeError;x.exports=function(v){if(v===void 0)return 0;var m=u(v),T=f(m);if(m!==T)throw new h("Wrong length or index");return T}}),(function(x,I,n){var u=n(218),f=11920928955078125e-23,h=34028234663852886e22,v=11754943508222875e-54;x.exports=Math.fround||function(T){return u(T,f,h,v)}}),(function(x,I,n){var u=n(219),f=n(220),h=Math.abs,v=2220446049250313e-31;x.exports=function(m,T,S,$){var E=+m,R=h(E),b=u(E);if(R<$)return b*f(R/$/T)*$*T;var O=(1+T/v)*R,C=O-(O-R);return C>S||C!==C?b*(1/0):b*C}}),(function(x){x.exports=Math.sign||function(n){var u=+n;return u===0||u!==u?u:u<0?-1:1}}),(function(x){var I=2220446049250313e-31,n=1/I;x.exports=function(u){return u+n-n}}),(function(x){var I=Array,n=Math.abs,u=Math.pow,f=Math.floor,h=Math.log,v=Math.LN2,m=function(S,$,E){var R=I(E),b=E*8-$-1,O=(1<<b)-1,C=O>>1,M=$===23?u(2,-24)-u(2,-77):0,P=S<0||S===0&&1/S<0?1:0,L=0,z,B,U;for(S=n(S),S!==S||S===1/0?(B=S!==S?1:0,z=O):(z=f(h(S)/v),U=u(2,-z),S*U<1&&(z--,U*=2),z+C>=1?S+=M/U:S+=M*u(2,1-C),S*U>=2&&(z++,U/=2),z+C>=O?(B=0,z=O):z+C>=1?(B=(S*U-1)*u(2,$),z+=C):(B=S*u(2,C-1)*u(2,$),z=0));$>=8;)R[L++]=B&255,B/=256,$-=8;for(z=z<<$|B,b+=$;b>0;)R[L++]=z&255,z/=256,b-=8;return R[L-1]|=P*128,R},T=function(S,$){var E=S.length,R=E*8-$-1,b=(1<<R)-1,O=b>>1,C=R-7,M=E-1,P=S[M--],L=P&127,z;for(P>>=7;C>0;)L=L*256+S[M--],C-=8;for(z=L&(1<<-C)-1,L>>=-C,C+=$;C>0;)z=z*256+S[M--],C-=8;if(L===0)L=1-O;else{if(L===b)return z?NaN:P?-1/0:1/0;z+=u(2,$),L-=O}return(P?-1:1)*z*u(2,L-$)};x.exports={pack:m,unpack:T}}),(function(x,I,n){var u=n(3),f=n(223),h=f.NATIVE_ARRAY_BUFFER_VIEWS;u({target:"ArrayBuffer",stat:!0,forced:!h},{isView:f.isView})}),(function(x,I,n){var u=n(213),f=n(6),h=n(4),v=n(21),m=n(20),T=n(38),S=n(69),$=n(31),E=n(43),R=n(47),b=n(77),O=n(24),C=n(134),M=n(118),P=n(33),L=n(40),z=n(51),B=z.enforce,U=z.get,j=h.Int8Array,G=j&&j.prototype,V=h.Uint8ClampedArray,X=V&&V.prototype,H=j&&C(j),Y=G&&C(G),Z=Object.prototype,k=h.TypeError,et=P("toStringTag"),_=L("TYPED_ARRAY_TAG"),tt="TypedArrayConstructor",nt=u&&!!M&&S(h.opera)!=="Opera",at=!1,ct,gt,pt,mt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},It={BigInt64Array:8,BigUint64Array:8},At=function(jt){if(!m(jt))return!1;var re=S(jt);return re==="DataView"||T(mt,re)||T(It,re)},Mt=function(Ot){var jt=C(Ot);if(m(jt)){var re=U(jt);return re&&T(re,tt)?re[tt]:Mt(jt)}},ut=function(Ot){if(!m(Ot))return!1;var jt=S(Ot);return T(mt,jt)||T(It,jt)},lt=function(Ot){if(ut(Ot))return Ot;throw new k("Target is not a typed array")},Ct=function(Ot){if(v(Ot)&&(!M||O(H,Ot)))return Ot;throw new k($(Ot)+" is not a typed array constructor")},Nt=function(Ot,jt,re,se){if(f){if(re)for(var ne in mt){var ae=h[ne];if(ae&&T(ae.prototype,Ot))try{delete ae.prototype[Ot]}catch(Ae){try{ae.prototype[Ot]=jt}catch(Ie){}}}(!Y[Ot]||re)&&R(Y,Ot,re?jt:nt&&G[Ot]||jt,se)}},Gt=function(Ot,jt,re){var se,ne;if(f){if(M){if(re){for(se in mt)if(ne=h[se],ne&&T(ne,Ot))try{delete ne[Ot]}catch(ae){}}if(!H[Ot]||re)try{return R(H,Ot,re?jt:nt&&H[Ot]||jt)}catch(ae){}else return}for(se in mt)ne=h[se],ne&&(!ne[Ot]||re)&&R(ne,Ot,jt)}};for(ct in mt)gt=h[ct],pt=gt&>.prototype,pt?B(pt)[tt]=gt:nt=!1;for(ct in It)gt=h[ct],pt=gt&>.prototype,pt&&(B(pt)[tt]=gt);if((!nt||!v(H)||H===Function.prototype)&&(H=function(){throw new k("Incorrect invocation")},nt))for(ct in mt)h[ct]&&M(h[ct],H);if((!nt||!Y||Y===Z)&&(Y=H.prototype,nt))for(ct in mt)h[ct]&&M(h[ct].prototype,Y);if(nt&&C(X)!==Y&&M(X,Y),f&&!T(Y,et)){at=!0,b(Y,et,{configurable:!0,get:function(){return m(this)?this[_]:void 0}});for(ct in mt)h[ct]&&E(h[ct],_,ct)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:nt,TYPED_ARRAY_TAG:at&&_,aTypedArray:lt,aTypedArrayConstructor:Ct,exportTypedArrayMethod:Nt,exportTypedArrayStaticMethod:Gt,getTypedArrayConstructor:Mt,isView:At,isTypedArray:ut,TypedArray:H,TypedArrayPrototype:Y}}),(function(x,I,n){var u=n(3),f=n(85),h=n(7),v=n(212),m=n(46),T=n(60),S=n(64),$=v.ArrayBuffer,E=v.DataView,R=E.prototype,b=f($.prototype.slice),O=f(R.getUint8),C=f(R.setUint8),M=h(function(){return!new $(2).slice(1,void 0).byteLength});u({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:M},{slice:function(L,z){if(b&&z===void 0)return b(m(this),L);for(var B=m(this).byteLength,U=T(L,B),j=T(z===void 0?B:z,B),G=new $(S(j-U)),V=new E(this),X=new E(G),H=0;U<j;)C(X,H++,O(V,U++));return G}})}),(function(x,I,n){n(226)}),(function(x,I,n){var u=n(3),f=n(212),h=n(213);u({global:!0,constructor:!0,forced:!h},{DataView:f.DataView})}),(function(x,I,n){var u=n(3),f=n(14),h=Math.pow,v=31,m=1023,T=h(2,-24),S=.0009765625,$=function(R){var b=R>>>15,O=R>>>10&v,C=R&m;return O===v?C===0?b===0?1/0:-1/0:NaN:O===0?C*(b===0?T:-T):h(2,O-15)*(b===0?1+C*S:-1-C*S)},E=f(DataView.prototype.getUint16);u({target:"DataView",proto:!0},{getFloat16:function(b){return $(E(this,b,arguments.length>1?arguments[1]:!1))}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(229),v=n(216),m=n(230),T=n(220),S=Math.pow,$=65520,E=61005353927612305e-21,R=16777216,b=1024,O=function(M){if(M!==M)return 32256;if(M===0)return(1/M===-1/0)<<15;var P=M<0;if(P&&(M=-M),M>=$)return P<<15|31744;if(M<E)return P<<15|T(M*R);var L=m(M)|0;if(L===-15)return P<<15|b;var z=T((M*S(2,-L)-1)*b);return z===b?P<<15|L+16<<10:P<<15|L+15<<10|z},C=f(DataView.prototype.setUint16);u({target:"DataView",proto:!0},{setFloat16:function(P,L){C(h(this),v(P),O(+L),arguments.length>2?arguments[2]:!1)}})}),(function(x,I,n){var u=n(69),f=TypeError;x.exports=function(h){if(u(h)==="DataView")return h;throw new f("Argument is not a DataView")}}),(function(x){var I=Math.log,n=Math.LN2;x.exports=Math.log2||function(f){return I(f)/n}}),(function(x,I,n){var u=n(6),f=n(77),h=n(232),v=ArrayBuffer.prototype;u&&!("detached"in v)&&f(v,"detached",{configurable:!0,get:function(){return h(this)}})}),(function(x,I,n){var u=n(4),f=n(213),h=n(233),v=u.DataView;x.exports=function(m){if(!f||h(m)!==0)return!1;try{return new v(m),!1}catch(T){return!0}}}),(function(x,I,n){var u=n(4),f=n(119),h=n(15),v=u.ArrayBuffer,m=u.TypeError;x.exports=v&&f(v.prototype,"byteLength","get")||function(T){if(h(T)!=="ArrayBuffer")throw new m("ArrayBuffer expected");return T.byteLength}}),(function(x,I,n){var u=n(3),f=n(235);f&&u({target:"ArrayBuffer",proto:!0},{transfer:function(){return f(this,arguments.length?arguments[0]:void 0,!0)}})}),(function(x,I,n){var u=n(4),f=n(14),h=n(119),v=n(216),m=n(236),T=n(233),S=n(237),$=n(239),E=u.structuredClone,R=u.ArrayBuffer,b=u.DataView,O=Math.min,C=R.prototype,M=b.prototype,P=f(C.slice),L=h(C,"resizable","get"),z=h(C,"maxByteLength","get"),B=f(M.getInt8),U=f(M.setInt8);x.exports=($||S)&&function(j,G,V){var X=T(j),H=G===void 0?X:v(G),Y=!L||!L(j),Z;if(m(j),$&&(j=E(j,{transfer:[j]}),X===H&&(V||Y)))return j;if(X>=H&&(!V||Y))Z=P(j,0,H);else{var k=V&&!Y&&z?{maxByteLength:z(j)}:void 0;Z=new R(H,k);for(var et=new b(j),_=new b(Z),tt=O(H,X),nt=0;nt<tt;nt++)U(_,nt,B(et,nt))}return $||S(j),Z}}),(function(x,I,n){var u=n(232),f=TypeError;x.exports=function(h){if(u(h))throw new f("ArrayBuffer is detached");return h}}),(function(x,I,n){var u=n(4),f=n(238),h=n(239),v=u.structuredClone,m=u.ArrayBuffer,T=u.MessageChannel,S=!1,$,E,R,b;if(h)S=function(O){v(O,{transfer:[O]})};else if(m)try{T||($=f("worker_threads"),$&&(T=$.MessageChannel)),T&&(E=new T,R=new m(2),b=function(O){E.port1.postMessage(null,[O])},R.byteLength===2&&(b(R),R.byteLength===0&&(S=b)))}catch(O){}x.exports=S}),(function(x,I,n){var u=n(4),f=n(188);x.exports=function(h){if(f){try{return u.process.getBuiltinModule(h)}catch(v){}try{return Function('return require("'+h+'")')()}catch(v){}}}}),(function(x,I,n){var u=n(4),f=n(7),h=n(27),v=n(189),m=u.structuredClone;x.exports=!!m&&!f(function(){if(v==="DENO"&&h>92||v==="NODE"&&h>94||v==="BROWSER"&&h>97)return!1;var T=new ArrayBuffer(8),S=m(T,{transfer:[T]});return T.byteLength!==0||S.byteLength!==8})}),(function(x,I,n){var u=n(3),f=n(235);f&&u({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return f(this,arguments.length?arguments[0]:void 0,!1)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(7),v=h(function(){return new Date(16e11).getYear()!==120}),m=f(Date.prototype.getFullYear);u({target:"Date",proto:!0,forced:v},{getYear:function(){return m(this)-1900}})}),(function(x,I,n){var u=n(3),f=n(14),h=Date,v=f(h.prototype.getTime);u({target:"Date",stat:!0},{now:function(){return v(new h)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(61),v=Date.prototype,m=f(v.getTime),T=f(v.setFullYear);u({target:"Date",proto:!0},{setYear:function($){m(this);var E=h($),R=E>=0&&E<=99?E+1900:E;return T(this,R)}})}),(function(x,I,n){var u=n(3);u({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})}),(function(x,I,n){var u=n(3),f=n(246);u({target:"Date",proto:!0,forced:Date.prototype.toISOString!==f},{toISOString:f})}),(function(x,I,n){var u=n(14),f=n(7),h=n(247).start,v=RangeError,m=isFinite,T=Math.abs,S=Date.prototype,$=S.toISOString,E=u(S.getTime),R=u(S.getUTCDate),b=u(S.getUTCFullYear),O=u(S.getUTCHours),C=u(S.getUTCMilliseconds),M=u(S.getUTCMinutes),P=u(S.getUTCMonth),L=u(S.getUTCSeconds);x.exports=f(function(){return $.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!f(function(){$.call(new Date(NaN))})?function(){if(!m(E(this)))throw new v("Invalid time value");var B=this,U=b(B),j=C(B),G=U<0?"-":U>9999?"+":"";return G+h(T(U),G?6:4,0)+"-"+h(P(B)+1,2,0)+"-"+h(R(B),2,0)+"T"+h(O(B),2,0)+":"+h(M(B),2,0)+":"+h(L(B),2,0)+"."+h(j,3,0)+"Z"}:$}),(function(x,I,n){var u=n(14),f=n(64),h=n(68),v=n(248),m=n(16),T=u(v),S=u("".slice),$=Math.ceil,E=function(R){return function(b,O,C){var M=h(m(b)),P=f(O),L=M.length,z=C===void 0?" ":h(C),B,U;return P<=L||z===""?M:(B=P-L,U=T(z,$(B/z.length)),U.length>B&&(U=S(U,0,B)),R?M+U:U+M)}};x.exports={start:E(!1),end:E(!0)}}),(function(x,I,n){var u=n(61),f=n(68),h=n(16),v=RangeError;x.exports=function(T){var S=f(h(this)),$="",E=u(T);if(E<0||E===1/0)throw new v("Wrong number of repetitions");for(;E>0;(E>>>=1)&&(S+=S))E&1&&($+=S);return $}}),(function(x,I,n){var u=n(3),f=n(7),h=n(39),v=n(19),m=f(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});u({target:"Date",proto:!0,arity:1,forced:m},{toJSON:function(S){var $=h(this),E=v($,"number");return typeof E=="number"&&!isFinite(E)?null:$.toISOString()}})}),(function(x,I,n){var u=n(38),f=n(47),h=n(251),v=n(33),m=v("toPrimitive"),T=Date.prototype;u(T,m)||f(T,m,h)}),(function(x,I,n){var u=n(46),f=n(32),h=TypeError;x.exports=function(v){if(u(this),v==="string"||v==="default")v="string";else if(v!=="number")throw new h("Incorrect hint");return f(this,v)}}),(function(x,I,n){var u=n(14),f=n(47),h=Date.prototype,v="Invalid Date",m="toString",T=u(h[m]),S=u(h.getTime);String(new Date(NaN))!==v&&f(h,m,function(){var E=S(this);return E===E?T(this):v})}),(function(x,I,n){var u=n(3),f=n(6),h=n(23),v=n(30),m=n(215),T=n(47),S=n(214),$=n(77),E=n(33),R=n(51),b=n(254),O=h("SuppressedError"),C=ReferenceError,M=E("dispose"),P=E("toStringTag"),L="DisposableStack",z=R.set,B=R.getterFor(L),U="sync-dispose",j="disposed",G="pending",V=function(Y){var Z=B(Y);if(Z.state===j)throw new C(L+" already disposed");return Z},X=function(){z(m(this,H),{type:L,state:G,stack:[]}),f||(this.disposed=!1)},H=X.prototype;S(H,{dispose:function(){var Z=B(this);if(Z.state!==j){Z.state=j,f||(this.disposed=!0);for(var k=Z.stack,et=k.length,_=!1,tt;et;){var nt=k[--et];k[et]=null;try{nt()}catch(at){_?tt=new O(at,tt):(_=!0,tt=at)}}if(Z.stack=null,_)throw tt}},use:function(Z){return b(V(this),Z,U),Z},adopt:function(Z,k){var et=V(this);return v(k),b(et,void 0,U,function(){k(Z)}),Z},defer:function(Z){var k=V(this);v(Z),b(k,void 0,U,Z)},move:function(){var Z=V(this),k=new X;return B(k).stack=Z.stack,Z.stack=[],Z.state=j,f||(this.disposed=!0),k}}),f&&$(H,"disposed",{configurable:!0,get:function(){return B(this).state===j}}),T(H,M,H.dispose,{name:"dispose"}),T(H,P,L,{nonWritable:!0}),u({global:!0,constructor:!0},{DisposableStack:X})}),(function(x,I,n){var u=n(23),f=n(8),h=n(14),v=n(84),m=n(46),T=n(30),S=n(17),$=n(29),E=n(33),R=E("asyncDispose"),b=E("dispose"),O=h([].push),C=function(P,L){if(L==="async-dispose"){var z=$(P,R);return z!==void 0||(z=$(P,b),z===void 0)?z:function(){var B=this,U=u("Promise");return new U(function(j){f(z,B),j(void 0)})}}return $(P,b)},M=function(P,L,z){return arguments.length<3&&!S(P)&&(z=T(C(m(P),L))),z===void 0?function(){}:v(z,P)};x.exports=function(P,L,z,B){var U;if(arguments.length<4){if(S(L)&&z==="sync-dispose")return;U=M(L,z)}else U=M(void 0,z,B);O(P.stack,U)}}),(function(x,I,n){var u=n(3),f=n(14),h=n(68),v=f("".charAt),m=f("".charCodeAt),T=f(/./.exec),S=f(1.1.toString),$=f("".toUpperCase),E=/[\w*+\-./@]/,R=function(b,O){for(var C=S(b,16);C.length<O;)C="0"+C;return C};u({global:!0},{escape:function(O){for(var C=h(O),M="",P=C.length,L=0,z,B;L<P;)z=v(C,L++),T(E,z)?M+=z:(B=m(z,0),B<256?M+="%"+R(B,2):M+="%u"+$(R(B,4)));return M}})}),(function(x,I,n){var u=n(3),f=n(257);u({target:"Function",proto:!0,forced:Function.bind!==f},{bind:f})}),(function(x,I,n){var u=n(14),f=n(30),h=n(20),v=n(38),m=n(76),T=n(9),S=Function,$=u([].concat),E=u([].join),R={},b=function(O,C,M){if(!v(R,C)){for(var P=[],L=0;L<C;L++)P[L]="a["+L+"]";R[C]=S("C,a","return new C("+E(P,",")+")")}return R[C](O,M)};x.exports=T?S.bind:function(C){var M=f(this),P=M.prototype,L=m(arguments,1),z=function(){var U=$(L,m(arguments));return this instanceof z?b(M,U.length,U):M.apply(C,U)};return h(P)&&(z.prototype=P),z}}),(function(x,I,n){var u=n(21),f=n(20),h=n(44),v=n(24),m=n(33),T=n(48),S=m("hasInstance"),$=Function.prototype;S in $||h.f($,S,{value:T(function(E){if(!u(this)||!f(E))return!1;var R=this.prototype;return f(R)?v(R,E):E instanceof this},S)})}),(function(x,I,n){var u=n(6),f=n(49).EXISTS,h=n(14),v=n(77),m=Function.prototype,T=h(m.toString),S=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$=h(S.exec),E="name";u&&!f&&v(m,E,{configurable:!0,get:function(){try{return $(S,T(this))[1]}catch(R){return""}}})}),(function(x,I,n){var u=n(3),f=n(4);u({global:!0,forced:f.globalThis!==f},{globalThis:f})}),(function(x,I,n){var u=n(3),f=n(4),h=n(215),v=n(46),m=n(21),T=n(134),S=n(77),$=n(90),E=n(7),R=n(38),b=n(33),O=n(178).IteratorPrototype,C=n(6),M=n(36),P="constructor",L="Iterator",z=b("toStringTag"),B=TypeError,U=f[L],j=M||!m(U)||U.prototype!==O||!E(function(){U({})}),G=function(){if(h(this,O),T(this)===O)throw new B("Abstract class Iterator not directly constructable")},V=function(X,H){C?S(O,X,{configurable:!0,get:function(){return H},set:function(Y){if(v(this),this===O)throw new B("You can't redefine this property");R(this,X)?this[X]=Y:$(this,X,Y)}}):O[X]=H};R(O,z)||V(z,L),(j||!R(O,P)||O[P]===Object)&&V(P,G),G.prototype=O,u({global:!0,constructor:!0,forced:j},{Iterator:G})}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(46),m=n(140),T=n(263),S=Array,$=T(function(){for(;;){var E=this.iterator;if(!E){var R=this.nextIterableIndex++,b=this.iterables;if(R>=b.length){this.done=!0;return}var O=b[R];this.iterables[R]=null,E=this.iterator=f(O.method,O.iterable),this.next=E.next}var C=v(f(this.next,E));if(C.done){this.iterator=null,this.next=null;continue}return C.value}});u({target:"Iterator",stat:!0},{concat:function(){for(var R=arguments.length,b=S(R),O=0;O<R;O++){var C=v(arguments[O]);b[O]={iterable:C,method:h(m(C))}}return new $({iterables:b,nextIterableIndex:0,iterator:null,next:null})}})}),(function(x,I,n){var u=n(8),f=n(71),h=n(43),v=n(214),m=n(33),T=n(51),S=n(29),$=n(178).IteratorPrototype,E=n(179),R=n(141),b=n(264),O=m("toStringTag"),C="IteratorHelper",M="WrapForValidIterator",P="normal",L="throw",z=T.set,B=function(G){var V=T.getterFor(G?M:C);return v(f($),{next:function(){var H=V(this);if(G)return H.nextHandler();if(H.done)return E(void 0,!0);try{var Y=H.nextHandler();return H.returnHandlerResult?Y:E(Y,H.done)}catch(Z){throw H.done=!0,Z}},return:function(){var X=V(this),H=X.iterator;if(X.done=!0,G){var Y=S(H,"return");return Y?u(Y,H):E(void 0,!0)}if(X.inner)try{R(X.inner.iterator,P)}catch(Z){return R(H,L,Z)}if(X.openIters)try{b(X.openIters,P)}catch(Z){return R(H,L,Z)}return H&&R(H,P),E(void 0,!0)}})},U=B(!0),j=B(!1);h(j,O,"Iterator Helper"),x.exports=function(G,V,X){var H=function(Z,k){k?(k.iterator=Z.iterator,k.next=Z.next):k=Z,k.type=V?M:C,k.returnHandlerResult=!!X,k.nextHandler=G,k.counter=0,k.done=!1,z(this,k)};return H.prototype=V?U:j,H}}),(function(x,I,n){var u=n(141);x.exports=function(f,h,v){for(var m=f.length-1;m>=0;m--)if(f[m]!==void 0)try{v=u(f[m].iterator,h,v)}catch(T){h="throw",v=T}if(h==="throw")throw v;return v}}),(function(x,I,n){var u=n(8),f=n(47),h=n(29),v=n(38),m=n(33),T=n(178).IteratorPrototype,S=m("dispose");v(T,S)||f(T,S,function(){var $=h(this,"return");$&&u($,this)})}),(function(x,I,n){var u=n(3),f=n(8),h=n(46),v=n(267),m=n(268),T=n(269),S=n(141),$=n(263),E=n(270),R=n(271),b=n(36),O=!b&&!E("drop",0),C=!b&&!O&&R("drop",RangeError),M=b||O||C,P=$(function(){for(var L=this.iterator,z=this.next,B,U;this.remaining;)if(this.remaining--,B=h(f(z,L)),U=this.done=!!B.done,U)return;if(B=h(f(z,L)),U=this.done=!!B.done,!U)return B.value});u({target:"Iterator",proto:!0,real:!0,forced:M},{drop:function(z){h(this);var B;try{B=T(m(+z))}catch(U){S(this,"throw",U)}return C?f(C,this,B):new P(v(this),{remaining:B})}})}),(function(x){x.exports=function(I){return{iterator:I,next:I.next,done:!1}}}),(function(x){var I=RangeError;x.exports=function(n){if(n===n)return n;throw new I("NaN is not allowed")}}),(function(x,I,n){var u=n(61),f=RangeError;x.exports=function(h){var v=u(h);if(v<0)throw new f("The argument can't be less than 0");return v}}),(function(x){x.exports=function(I,n){var u=typeof Iterator=="function"&&Iterator.prototype[I];if(u)try{u.call({next:null},n).next()}catch(f){return!0}}}),(function(x,I,n){var u=n(4);x.exports=function(f,h){var v=u.Iterator,m=v&&v.prototype,T=m&&m[f],S=!1;if(T)try{T.call({next:function(){return{done:!0}},return:function(){S=!0}},-1)}catch($){$ instanceof h||(S=!1)}if(!S)return T}}),(function(x,I,n){var u=n(3),f=n(8),h=n(136),v=n(30),m=n(46),T=n(267),S=n(141),$=n(271),E=$("every",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{every:function(b){m(this);try{v(b)}catch(M){S(this,"throw",M)}if(E)return f(E,this,b);var O=T(this),C=0;return!h(O,function(M,P){if(!b(M,C++))return P()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(46),m=n(267),T=n(263),S=n(170),$=n(36),E=n(141),R=n(270),b=n(271),O=!$&&!R("filter",function(){}),C=!$&&!O&&b("filter",TypeError),M=$||O||C,P=T(function(){for(var L=this.iterator,z=this.predicate,B=this.next,U,j,G;;){if(U=v(f(B,L)),j=this.done=!!U.done,j)return;if(G=U.value,S(L,z,[G,this.counter++],!0))return G}});u({target:"Iterator",proto:!0,real:!0,forced:M},{filter:function(z){v(this);try{h(z)}catch(B){E(this,"throw",B)}return C?f(C,this,z):new P(m(this),{predicate:z})}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(136),v=n(30),m=n(46),T=n(267),S=n(141),$=n(271),E=$("find",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{find:function(b){m(this);try{v(b)}catch(M){S(this,"throw",M)}if(E)return f(E,this,b);var O=T(this),C=0;return h(O,function(M,P){if(b(M,C++))return P(M)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(46),m=n(267),T=n(276),S=n(263),$=n(141),E=n(36),R=n(270),b=n(271);function O(){try{var z=Iterator.prototype.flatMap.call(new Map([[4,5]]).entries(),function(B){return B});z.next(),z.return()}catch(B){return!0}}var C=!E&&!R("flatMap",function(){}),M=!E&&!C&&b("flatMap",TypeError),P=E||C||M||O(),L=S(function(){for(var z=this.iterator,B=this.mapper,U,j;;){if(j=this.inner)try{if(U=v(f(j.next,j.iterator)),!U.done)return U.value;this.inner=null}catch(G){$(z,"throw",G)}if(U=v(f(this.next,z)),this.done=!!U.done)return;try{this.inner=T(B(U.value,this.counter++),!1)}catch(G){$(z,"throw",G)}}});u({target:"Iterator",proto:!0,real:!0,forced:P},{flatMap:function(B){v(this);try{h(B)}catch(U){$(this,"throw",U)}return M?f(M,this,B):new L(m(this),{mapper:B,inner:null})}})}),(function(x,I,n){var u=n(8),f=n(46),h=n(267),v=n(140);x.exports=function(m,T){(!T||typeof m!="string")&&f(m);var S=v(m);return h(f(S!==void 0?u(S,m):m))}}),(function(x,I,n){var u=n(3),f=n(8),h=n(136),v=n(30),m=n(46),T=n(267),S=n(141),$=n(271),E=$("forEach",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{forEach:function(b){m(this);try{v(b)}catch(M){S(this,"throw",M)}if(E)return f(E,this,b);var O=T(this),C=0;h(O,function(M){b(M,C++)},{IS_RECORD:!0})}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(39),v=n(24),m=n(178).IteratorPrototype,T=n(263),S=n(276),$=n(36),E=$||(function(){try{Iterator.from({return:null}).return()}catch(b){return!0}})(),R=T(function(){return f(this.next,this.iterator)},!0);u({target:"Iterator",stat:!0,forced:E},{from:function(O){var C=S(typeof O=="string"?h(O):O,!0);return v(m,C.iterator)?C.iterator:new R(C)}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(46),m=n(267),T=n(263),S=n(170),$=n(141),E=n(270),R=n(271),b=n(36),O=!b&&!E("map",function(){}),C=!b&&!O&&R("map",TypeError),M=b||O||C,P=T(function(){var L=this.iterator,z=v(f(this.next,L)),B=this.done=!!z.done;if(!B)return S(L,this.mapper,[z.value,this.counter++],!0)});u({target:"Iterator",proto:!0,real:!0,forced:M},{map:function(z){v(this);try{h(z)}catch(B){$(this,"throw",B)}return C?f(C,this,z):new P(m(this),{mapper:z})}})}),(function(x,I,n){var u=n(3),f=n(136),h=n(30),v=n(46),m=n(267),T=n(141),S=n(271),$=n(95),E=n(7),R=TypeError,b=E(function(){[].keys().reduce(function(){},void 0)}),O=!b&&S("reduce",R);u({target:"Iterator",proto:!0,real:!0,forced:b||O},{reduce:function(M){v(this);try{h(M)}catch(U){T(this,"throw",U)}var P=arguments.length<2,L=P?void 0:arguments[1];if(O)return $(O,this,P?[M]:[M,L]);var z=m(this),B=0;if(f(z,function(U){P?(P=!1,L=U):L=M(L,U,B),B++},{IS_RECORD:!0}),P)throw new R("Reduce of empty iterator with no initial value");return L}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(136),v=n(30),m=n(46),T=n(267),S=n(141),$=n(271),E=$("some",TypeError);u({target:"Iterator",proto:!0,real:!0,forced:E},{some:function(b){m(this);try{v(b)}catch(M){S(this,"throw",M)}if(E)return f(E,this,b);var O=T(this),C=0;return h(O,function(M,P){if(b(M,C++))return P()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(46),v=n(267),m=n(268),T=n(269),S=n(263),$=n(141),E=n(271),R=n(36),b=!R&&E("take",RangeError),O=S(function(){var C=this.iterator;if(!this.remaining--)return this.done=!0,$(C,"normal",void 0);var M=h(f(this.next,C)),P=this.done=!!M.done;if(!P)return M.value});u({target:"Iterator",proto:!0,real:!0,forced:R||b},{take:function(M){h(this);var P;try{P=T(m(+M))}catch(L){$(this,"throw",L)}return b?f(b,this,P):new O(v(this),{remaining:P})}})}),(function(x,I,n){var u=n(3),f=n(46),h=n(90),v=n(136),m=n(267);u({target:"Iterator",proto:!0,real:!0},{toArray:function(){var S=[],$=0;return v(m(f(this)),function(E){h(S,$++,E)},{IS_RECORD:!0}),S}})}),(function(x,I,n){var u=n(3),f=n(98),h=n(96);u({target:"JSON",stat:!0,forced:!f},{isRawJSON:h})}),(function(x,I,n){var u=n(3),f=n(6),h=n(4),v=n(23),m=n(14),T=n(8),S=n(21),$=n(20),E=n(88),R=n(38),b=n(68),O=n(63),C=n(90),M=n(7),P=n(97),L=n(26),z=h.JSON,B=h.Number,U=h.SyntaxError,j=z&&z.parse,G=v("Object","keys"),V=Object.getOwnPropertyDescriptor,X=m("".charAt),H=m("".slice),Y=m(/./.exec),Z=m([].push),k=/^\d$/,et=/^[1-9]$/,_=/^[\d-]$/,tt=/^[\t\n\r ]$/,nt=0,at=1,ct=function(ut,lt){ut=b(ut);var Ct=new It(ut,0,""),Nt=Ct.parse(),Gt=Nt.value,Ot=Ct.skip(tt,Nt.end);if(Ot<ut.length)throw new U('Unexpected extra character: "'+X(ut,Ot)+'" after the parsed data at: '+Ot);return S(lt)?gt({"":Gt},"",lt,Nt):Gt},gt=function(ut,lt,Ct,Nt){var Gt=ut[lt],Ot=Nt&&Gt===Nt.value,jt=Ot&&typeof Nt.source=="string"?{source:Nt.source}:{},re,se,ne,ae,Ae;if($(Gt)){var Ie=E(Gt),pe=Ot?Nt.nodes:Ie?[]:{};if(Ie)for(re=pe.length,ne=O(Gt),ae=0;ae<ne;ae++)pt(Gt,ae,gt(Gt,""+ae,Ct,ae<re?pe[ae]:void 0));else for(se=G(Gt),ne=O(se),ae=0;ae<ne;ae++)Ae=se[ae],pt(Gt,Ae,gt(Gt,Ae,Ct,R(pe,Ae)?pe[Ae]:void 0))}return T(Ct,ut,lt,Gt,jt)},pt=function(ut,lt,Ct){if(f){var Nt=V(ut,lt);if(Nt&&!Nt.configurable)return}Ct===void 0?delete ut[lt]:C(ut,lt,Ct)},mt=function(ut,lt,Ct,Nt){this.value=ut,this.end=lt,this.source=Ct,this.nodes=Nt},It=function(ut,lt){this.source=ut,this.index=lt};It.prototype={fork:function(ut){return new It(this.source,ut)},parse:function(){var ut=this.source,lt=this.skip(tt,this.index),Ct=this.fork(lt),Nt=X(ut,lt);if(Y(_,Nt))return Ct.number();switch(Nt){case"{":return Ct.object();case"[":return Ct.array();case'"':return Ct.string();case"t":return Ct.keyword(!0);case"f":return Ct.keyword(!1);case"n":return Ct.keyword(null)}throw new U('Unexpected character: "'+Nt+'" at: '+lt)},node:function(ut,lt,Ct,Nt,Gt){return new mt(lt,Nt,ut?null:H(this.source,Ct,Nt),Gt)},object:function(){for(var ut=this.source,lt=this.index+1,Ct=!1,Nt={},Gt={};lt<ut.length;){if(lt=this.until(['"',"}"],lt),X(ut,lt)==="}"&&!Ct){lt++;break}var Ot=this.fork(lt).string(),jt=Ot.value;lt=Ot.end,lt=this.until([":"],lt)+1,lt=this.skip(tt,lt),Ot=this.fork(lt).parse(),C(Gt,jt,Ot),C(Nt,jt,Ot.value),lt=this.until([",","}"],Ot.end);var re=X(ut,lt);if(re===",")Ct=!0,lt++;else if(re==="}"){lt++;break}}return this.node(at,Nt,this.index,lt,Gt)},array:function(){for(var ut=this.source,lt=this.index+1,Ct=!1,Nt=[],Gt=[];lt<ut.length;){if(lt=this.skip(tt,lt),X(ut,lt)==="]"&&!Ct){lt++;break}var Ot=this.fork(lt).parse();if(Z(Gt,Ot),Z(Nt,Ot.value),lt=this.until([",","]"],Ot.end),X(ut,lt)===",")Ct=!0,lt++;else if(X(ut,lt)==="]"){lt++;break}}return this.node(at,Nt,this.index,lt,Gt)},string:function(){var ut=this.index,lt=P(this.source,this.index+1);return this.node(nt,lt.value,ut,lt.end)},number:function(){var ut=this.source,lt=this.index,Ct=lt;if(X(ut,Ct)==="-"&&Ct++,X(ut,Ct)==="0")Ct++;else if(Y(et,X(ut,Ct)))Ct=this.skip(k,Ct+1);else throw new U("Failed to parse number at: "+Ct);if(X(ut,Ct)==="."&&(Ct=this.skip(k,Ct+1)),X(ut,Ct)==="e"||X(ut,Ct)==="E"){Ct++,(X(ut,Ct)==="+"||X(ut,Ct)==="-")&&Ct++;var Nt=Ct;if(Ct=this.skip(k,Ct),Nt===Ct)throw new U("Failed to parse number's exponent value at: "+Ct)}return this.node(nt,B(H(ut,lt,Ct)),lt,Ct)},keyword:function(ut){var lt=""+ut,Ct=this.index,Nt=Ct+lt.length;if(H(this.source,Ct,Nt)!==lt)throw new U("Failed to parse value at: "+Ct);return this.node(nt,ut,Ct,Nt)},skip:function(ut,lt){for(var Ct=this.source;lt<Ct.length&&Y(ut,X(Ct,lt));lt++);return lt},until:function(ut,lt){lt=this.skip(tt,lt);for(var Ct=X(this.source,lt),Nt=0;Nt<ut.length;Nt++)if(ut[Nt]===Ct)return lt;throw new U('Unexpected character: "'+Ct+'" at: '+lt)}};var At=M(function(){var ut="9007199254740993",lt;return j(ut,function(Ct,Nt,Gt){lt=Gt.source}),lt!==ut}),Mt=L&&!M(function(){return 1/j("-0 ")!==-1/0});u({target:"JSON",stat:!0,forced:At},{parse:function(lt,Ct){return Mt&&!S(Ct)?j(lt):ct(lt,Ct)}})}),(function(x,I,n){var u=n(3),f=n(287),h=n(98),v=n(23),m=n(14),T=n(68),S=n(90),$=n(51).set,E=SyntaxError,R=v("JSON","parse"),b=v("Object","create"),O=v("Object","freeze"),C=m("".charAt),M="Unacceptable as raw JSON",P=function(L){return L===" "||L===" "||L===`
|
|
28
|
+
`||L==="\r"};u({target:"JSON",stat:!0,forced:!h},{rawJSON:function(z){var B=T(z);if(B===""||P(C(B,0))||P(C(B,B.length-1)))throw new E(M);var U=R(B);if(typeof U=="object"&&U!==null)throw new E(M);var j=b(null);return $(j,{type:"RawJSON"}),S(j,"rawJSON",B),f?O(j):j}})}),(function(x,I,n){var u=n(7);x.exports=!u(function(){return Object.isExtensible(Object.preventExtensions({}))})}),(function(x,I,n){var u=n(4),f=n(82);f(u.JSON,"JSON",!0)}),(function(x,I,n){n(290)}),(function(x,I,n){var u=n(291),f=n(295);u("Map",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},f)}),(function(x,I,n){var u=n(3),f=n(4),h=n(14),v=n(67),m=n(47),T=n(292),S=n(136),$=n(215),E=n(21),R=n(17),b=n(20),O=n(7),C=n(171),M=n(82),P=n(123);x.exports=function(L,z,B){var U=L.indexOf("Map")!==-1,j=L.indexOf("Weak")!==-1,G=U?"set":"add",V=f[L],X=V&&V.prototype,H=V,Y={},Z=function(ct){var gt=h(X[ct]);m(X,ct,ct==="add"?function(mt){return gt(this,mt===0?0:mt),this}:ct==="delete"?function(pt){return j&&!b(pt)?!1:gt(this,pt===0?0:pt)}:ct==="get"?function(mt){return j&&!b(mt)?void 0:gt(this,mt===0?0:mt)}:ct==="has"?function(mt){return j&&!b(mt)?!1:gt(this,mt===0?0:mt)}:function(mt,It){return gt(this,mt===0?0:mt,It),this})},k=v(L,!E(V)||!(j||X.forEach&&!O(function(){new V().entries().next()})));if(k)H=B.getConstructor(z,L,U,G),T.enable();else if(v(L,!0)){var et=new H,_=et[G](j?{}:-0,1)!==et,tt=O(function(){et.has(1)}),nt=C(function(ct){new V(ct)}),at=!j&&O(function(){for(var ct=new V,gt=5;gt--;)ct[G](gt,gt);return!ct.has(-0)});nt||(H=z(function(ct,gt){$(ct,X);var pt=P(new V,ct,H);return R(gt)||S(gt,pt[G],{that:pt,AS_ENTRIES:U}),pt}),H.prototype=X,X.constructor=H),(tt||at)&&(Z("delete"),Z("has"),U&&Z("get")),(at||_)&&Z(G),j&&X.clear&&delete X.clear}return Y[L]=H,u({global:!0,constructor:!0,forced:H!==V},Y),M(H,L),j||B.setStrong(H,L,U),H}}),(function(x,I,n){var u=n(3),f=n(14),h=n(54),v=n(20),m=n(38),T=n(44).f,S=n(57),$=n(75),E=n(293),R=n(40),b=n(287),O=!1,C=R("meta"),M=0,P=function(G){T(G,C,{value:{objectID:"O"+M++,weakData:{}}})},L=function(G,V){if(!v(G))return typeof G=="symbol"?G:(typeof G=="string"?"S":"P")+G;if(!m(G,C)){if(!E(G))return"F";if(!V)return"E";P(G)}return G[C].objectID},z=function(G,V){if(!m(G,C)){if(!E(G))return!0;if(!V)return!1;P(G)}return G[C].weakData},B=function(G){return b&&O&&E(G)&&!m(G,C)&&P(G),G},U=function(){j.enable=function(){},O=!0;var G=S.f,V=f([].splice),X={};X[C]=1,G(X).length&&(S.f=function(H){for(var Y=G(H),Z=0,k=Y.length;Z<k;Z++)if(Y[Z]===C){V(Y,Z,1);break}return Y},u({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:$.f}))},j=x.exports={enable:U,fastKey:L,getWeakData:z,onFreeze:B};h[C]=!0}),(function(x,I,n){var u=n(7),f=n(20),h=n(15),v=n(294),m=Object.isExtensible,T=u(function(){m(1)});x.exports=T||v?function($){return!f($)||v&&h($)==="ArrayBuffer"?!1:m?m($):!0}:m}),(function(x,I,n){var u=n(7);x.exports=u(function(){if(typeof ArrayBuffer=="function"){var f=new ArrayBuffer(8);Object.isExtensible(f)&&Object.defineProperty(f,"a",{value:8})}})}),(function(x,I,n){var u=n(71),f=n(77),h=n(214),v=n(84),m=n(215),T=n(17),S=n(136),$=n(176),E=n(179),R=n(200),b=n(6),O=n(292).fastKey,C=n(51),M=C.set,P=C.getterFor;x.exports={getConstructor:function(L,z,B,U){var j=L(function(Y,Z){m(Y,G),M(Y,{type:z,index:u(null),first:null,last:null,size:0}),b||(Y.size=0),T(Z)||S(Z,Y[U],{that:Y,AS_ENTRIES:B})}),G=j.prototype,V=P(z),X=function(Y,Z,k){var et=V(Y),_=H(Y,Z),tt,nt;return _?_.value=k:(et.last=_={index:nt=O(Z,!0),key:Z,value:k,previous:tt=et.last,next:null,removed:!1},et.first||(et.first=_),tt&&(tt.next=_),b?et.size++:Y.size++,nt!=="F"&&(et.index[nt]=_)),Y},H=function(Y,Z){var k=V(Y),et=O(Z),_;if(et!=="F")return k.index[et];for(_=k.first;_;_=_.next)if(_.key===Z)return _};return h(G,{clear:function(){for(var Z=this,k=V(Z),et=k.first;et;)et.removed=!0,et.previous&&(et.previous=et.previous.next=null),et=et.next;k.first=k.last=null,k.index=u(null),b?k.size=0:Z.size=0},delete:function(Y){var Z=this,k=V(Z),et=H(Z,Y);if(et){var _=et.next,tt=et.previous;delete k.index[et.index],et.removed=!0,tt&&(tt.next=_),_&&(_.previous=tt),k.first===et&&(k.first=_),k.last===et&&(k.last=tt),b?k.size--:Z.size--}return!!et},forEach:function(Z){for(var k=V(this),et=v(Z,arguments.length>1?arguments[1]:void 0),_;_=_?_.next:k.first;)for(et(_.value,_.key,this);_&&_.removed;)_=_.previous},has:function(Z){return!!H(this,Z)}}),h(G,B?{get:function(Z){var k=H(this,Z);return k&&k.value},set:function(Z,k){return X(this,Z===0?0:Z,k)}}:{add:function(Z){return X(this,Z=Z===0?0:Z,Z)}}),b&&f(G,"size",{configurable:!0,get:function(){return V(this).size}}),j},setStrong:function(L,z,B){var U=z+" Iterator",j=P(z),G=P(U);$(L,z,function(V,X){M(this,{type:U,target:V,state:j(V),kind:X,last:null})},function(){for(var V=G(this),X=V.kind,H=V.last;H&&H.removed;)H=H.previous;return!V.target||!(V.last=H=H?H.next:V.state.first)?(V.target=null,E(void 0,!0)):E(X==="keys"?H.key:X==="values"?H.value:[H.key,H.value],!1)},B?"entries":"values",!B,!0),R(z)}}}),(function(x,I,n){var u=n(3),f=n(14),h=n(30),v=n(16),m=n(136),T=n(297),S=n(36),$=n(7),E=T.Map,R=T.has,b=T.get,O=T.set,C=f([].push),M=S||$(function(){return E.groupBy("ab",function(P){return P}).get("a").length!==1});u({target:"Map",stat:!0,forced:S||M},{groupBy:function(L,z){v(L),h(z);var B=new E,U=0;return m(L,function(j){var G=z(j,U++);R(B,G)?C(b(B,G),j):O(B,G,[j])}),B}})}),(function(x,I,n){var u=n(14),f=Map.prototype;x.exports={Map,set:u(f.set),get:u(f.get),has:u(f.has),remove:u(f.delete),proto:f}}),(function(x,I,n){var u=n(3),f=n(299),h=n(297),v=n(36),m=h.get,T=h.has,S=h.set;u({target:"Map",proto:!0,real:!0,forced:v},{getOrInsert:function(E,R){return T(f(this),E)?m(this,E):(S(this,E,R),R)}})}),(function(x,I,n){var u=n(297).has;x.exports=function(f){return u(f),f}}),(function(x,I,n){var u=n(3),f=n(30),h=n(299),v=n(297),m=n(36),T=v.get,S=v.has,$=v.set;u({target:"Map",proto:!0,real:!0,forced:m},{getOrInsertComputed:function(R,b){if(h(this),f(b),S(this,R))return T(this,R);R===0&&1/R===-1/0&&(R=0);var O=b(R);return $(this,R,O),O}})}),(function(x,I,n){var u=n(3),f=n(302),h=Math.acosh,v=Math.log,m=Math.sqrt,T=Math.LN2,S=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;u({target:"Math",stat:!0,forced:S},{acosh:function(E){var R=+E;return R<1?NaN:R>9490626562425156e-8?v(R)+T:f(R-1+m(R-1)*m(R+1))}})}),(function(x){var I=Math.log;x.exports=Math.log1p||function(u){var f=+u;return f>-1e-8&&f<1e-8?f-f*f/2:I(1+f)}}),(function(x,I,n){var u=n(3),f=Math.asinh,h=Math.log,v=Math.sqrt;function m(S){var $=+S;return!isFinite($)||$===0?$:$<0?-m(-$):h($+v($*$+1))}var T=!(f&&1/f(0)>0);u({target:"Math",stat:!0,forced:T},{asinh:m})}),(function(x,I,n){var u=n(3),f=Math.atanh,h=Math.log,v=!(f&&1/f(-0)<0);u({target:"Math",stat:!0,forced:v},{atanh:function(T){var S=+T;return S===0?S:h((1+S)/(1-S))/2}})}),(function(x,I,n){var u=n(3),f=n(219),h=Math.abs,v=Math.pow;u({target:"Math",stat:!0},{cbrt:function(T){var S=+T;return f(S)*v(h(S),.3333333333333333)}})}),(function(x,I,n){var u=n(3),f=Math.floor,h=Math.log,v=Math.LOG2E;u({target:"Math",stat:!0},{clz32:function(T){var S=T>>>0;return S?31-f(h(S+.5)*v):32}})}),(function(x,I,n){var u=n(3),f=n(308),h=Math.cosh,v=Math.abs,m=Math.E,T=!h||h(710)===1/0;u({target:"Math",stat:!0,forced:T},{cosh:function($){var E=f(v($)-1)+1;return(E+1/(E*m*m))*(m/2)}})}),(function(x){var I=Math.expm1,n=Math.exp;x.exports=!I||I(10)>22025.465794806718||I(10)<22025.465794806718||I(-2e-17)!==-2e-17?function(f){var h=+f;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:n(h)-1}:I}),(function(x,I,n){var u=n(3),f=n(308);u({target:"Math",stat:!0,forced:f!==Math.expm1},{expm1:f})}),(function(x,I,n){var u=n(3),f=n(217);u({target:"Math",stat:!0},{fround:f})}),(function(x,I,n){var u=n(3),f=n(218),h=.0009765625,v=65504,m=6103515625e-14;u({target:"Math",stat:!0},{f16round:function(S){return f(S,h,v,m)}})}),(function(x,I,n){var u=n(3),f=Math.hypot,h=Math.abs,v=Math.sqrt,m=!!f&&f(1/0,NaN)!==1/0;u({target:"Math",stat:!0,arity:2,forced:m},{hypot:function(S,$){for(var E=0,R=0,b=arguments.length,O=0,C,M;R<b;)C=h(arguments[R++]),O<C?(M=O/C,E=E*M*M+1,O=C):C>0?(M=C/O,E+=M*M):E+=C;return O===1/0?1/0:O*v(E)}})}),(function(x,I,n){var u=n(3),f=n(7),h=Math.imul,v=f(function(){return h(4294967295,5)!==-5||h.length!==2});u({target:"Math",stat:!0,forced:v},{imul:function(T,S){var $=65535,E=+T,R=+S,b=$&E,O=$&R;return 0|b*O+(($&E>>>16)*O+b*($&R>>>16)<<16>>>0)}})}),(function(x,I,n){var u=n(3),f=n(315);u({target:"Math",stat:!0},{log10:f})}),(function(x){var I=Math.log,n=Math.LOG10E;x.exports=Math.log10||function(f){return I(f)*n}}),(function(x,I,n){var u=n(3),f=n(302);u({target:"Math",stat:!0},{log1p:f})}),(function(x,I,n){var u=n(3),f=n(230);u({target:"Math",stat:!0},{log2:f})}),(function(x,I,n){var u=n(3),f=n(219);u({target:"Math",stat:!0},{sign:f})}),(function(x,I,n){var u=n(3),f=n(7),h=n(308),v=Math.abs,m=Math.exp,T=Math.E,S=f(function(){return Math.sinh(-2e-17)!==-2e-17});u({target:"Math",stat:!0,forced:S},{sinh:function(E){var R=+E;return v(R)<1?(h(R)-h(-R))/2:(m(R-1)-m(-R-1))*(T/2)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(136),v=RangeError,m=TypeError,T=1/0,S=NaN,$=Math.abs,E=Math.pow,R=f([].push),b=E(2,1023),O=E(2,53)-1,C=Number.MAX_VALUE,M=E(2,971),P={},L={},z={},B={},U={},j=function(G,V){var X=G+V,H=V-(X-G);return{hi:X,lo:H}};u({target:"Math",stat:!0},{sumPrecise:function(V){var X=[],H=0,Y=B;switch(h(V,function(ut){if(++H>=O)throw new v("Maximum allowed index exceeded");if(typeof ut!="number")throw new m("Value is not a number");Y!==P&&(ut!==ut?Y=P:ut===T?Y=Y===L?P:z:ut===-T?Y=Y===z?P:L:(ut!==0||1/ut===T)&&(Y===B||Y===U)&&(Y=U,R(X,ut)))}),Y){case P:return S;case L:return-T;case z:return T;case B:return-0}for(var Z=[],k=0,et,_,tt,nt,at,ct,gt=0;gt<X.length;gt++){et=X[gt];for(var pt=0,mt=0;mt<Z.length;mt++){if(_=Z[mt],$(et)<$(_)&&(ct=et,et=_,_=ct),tt=j(et,_),nt=tt.hi,at=tt.lo,$(nt)===T){var It=nt===T?1:-1;k+=It,et=et-It*b-It*b,$(et)<$(_)&&(ct=et,et=_,_=ct),tt=j(et,_),nt=tt.hi,at=tt.lo}at!==0&&(Z[pt++]=at),et=nt}Z.length=pt,et!==0&&R(Z,et)}var At=Z.length-1;if(nt=0,at=0,k!==0){var Mt=At>=0?Z[At]:0;if(At--,$(k)>1||k>0&&Mt>0||k<0&&Mt<0)return k>0?T:-T;if(tt=j(k*b,Mt/2),nt=tt.hi,at=tt.lo,at*=2,$(2*nt)===T)return nt>0?nt===b&&at===-(M/2)&&At>=0&&Z[At]<0?C:T:nt===-b&&at===M/2&&At>=0&&Z[At]>0?-C:-T;at!==0&&(Z[++At]=at,at=0),nt*=2}for(;At>=0&&(tt=j(nt,Z[At--]),nt=tt.hi,at=tt.lo,at===0););return At>=0&&(at<0&&Z[At]<0||at>0&&Z[At]>0)&&(_=at*2,et=nt+_,_===et-nt&&(nt=et)),nt}})}),(function(x,I,n){var u=n(3),f=n(308),h=Math.exp;u({target:"Math",stat:!0},{tanh:function(m){var T=+m,S=f(T),$=f(-T);return S===1/0?1:$===1/0?-1:(S-$)/(h(T)+h(-T))}})}),(function(x,I,n){var u=n(82);u(Math,"Math",!0)}),(function(x,I,n){var u=n(3),f=n(62);u({target:"Math",stat:!0},{trunc:f})}),(function(x,I,n){var u=n(3),f=n(36),h=n(6),v=n(4),m=n(80),T=n(14),S=n(67),$=n(38),E=n(123),R=n(24),b=n(22),O=n(19),C=n(7),M=n(57).f,P=n(5).f,L=n(44).f,z=n(325),B=n(326).trim,U="Number",j=v[U],G=m[U],V=j.prototype,X=v.TypeError,H=T("".slice),Y=T("".charCodeAt),Z=function(at){var ct=O(at,"number");return typeof ct=="bigint"?ct:k(ct)},k=function(at){var ct=O(at,"number"),gt,pt,mt,It,At,Mt,ut,lt;if(b(ct))throw new X("Cannot convert a Symbol value to a number");if(typeof ct=="string"&&ct.length>2){if(ct=B(ct),gt=Y(ct,0),gt===43||gt===45){if(pt=Y(ct,2),pt===88||pt===120)return NaN}else if(gt===48){switch(Y(ct,1)){case 66:case 98:mt=2,It=49;break;case 79:case 111:mt=8,It=55;break;default:return+ct}for(At=H(ct,2),Mt=At.length,ut=0;ut<Mt;ut++)if(lt=Y(At,ut),lt<48||lt>It)return NaN;return parseInt(At,mt)}}return+ct},et=S(U,!j(" 0o1")||!j("0b1")||j("+0x1")),_=function(at){return R(V,at)&&C(function(){z(at)})},tt=function(ct){var gt=arguments.length<1?0:j(Z(ct));return _(this)?E(Object(gt),this,tt):gt};tt.prototype=V,et&&!f&&(V.constructor=tt),u({global:!0,constructor:!0,wrap:!0,forced:et},{Number:tt});var nt=function(at,ct){for(var gt=h?M(ct):"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(","),pt=0,mt;gt.length>pt;pt++)$(ct,mt=gt[pt])&&!$(at,mt)&&L(at,mt,P(ct,mt))};f&&G&&nt(m[U],G),(et||f)&&nt(m[U],j)}),(function(x,I,n){var u=n(14);x.exports=u(1.1.valueOf)}),(function(x,I,n){var u=n(14),f=n(16),h=n(68),v=n(327),m=u("".replace),T=RegExp("^["+v+"]+"),S=RegExp("(^|[^"+v+"])["+v+"]+$"),$=function(E){return function(R){var b=h(f(R));return E&1&&(b=m(b,T,"")),E&2&&(b=m(b,S,"$1")),b}};x.exports={start:$(1),end:$(2),trim:$(3)}}),(function(x){x.exports=`
|
|
29
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})}),(function(x,I,n){var u=n(3),f=n(330);u({target:"Number",stat:!0},{isFinite:f})}),(function(x,I,n){var u=n(4),f=u.isFinite;x.exports=Number.isFinite||function(v){return typeof v=="number"&&f(v)}}),(function(x,I,n){var u=n(3),f=n(332);u({target:"Number",stat:!0},{isInteger:f})}),(function(x,I,n){var u=n(20),f=Math.floor;x.exports=Number.isInteger||function(v){return!u(v)&&isFinite(v)&&f(v)===v}}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})}),(function(x,I,n){var u=n(3),f=n(332),h=Math.abs;u({target:"Number",stat:!0},{isSafeInteger:function(m){return f(m)&&h(m)<=9007199254740991}})}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})}),(function(x,I,n){var u=n(3);u({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})}),(function(x,I,n){var u=n(3),f=n(338);u({target:"Number",stat:!0,forced:Number.parseFloat!==f},{parseFloat:f})}),(function(x,I,n){var u=n(4),f=n(7),h=n(14),v=n(68),m=n(326).trim,T=n(327),S=h("".charAt),$=u.parseFloat,E=u.Symbol,R=E&&E.iterator,b=1/$(T+"-0")!==-1/0||R&&!f(function(){$(Object(R))});x.exports=b?function(C){var M=m(v(C)),P=$(M);return P===0&&S(M,0)==="-"?-0:P}:$}),(function(x,I,n){var u=n(3),f=n(340);u({target:"Number",stat:!0,forced:Number.parseInt!==f},{parseInt:f})}),(function(x,I,n){var u=n(4),f=n(7),h=n(14),v=n(68),m=n(326).trim,T=n(327),S=u.parseInt,$=u.Symbol,E=$&&$.iterator,R=/^[+-]?0x/i,b=h(R.exec),O=S(T+"08")!==8||S(T+"0x16")!==22||E&&!f(function(){S(Object(E))});x.exports=O?function(M,P){var L=m(v(M));return S(L,P>>>0||(b(R,L)?16:10))}:S}),(function(x,I,n){var u=n(3),f=n(14),h=n(61),v=n(325),m=n(248),T=n(315),S=n(7),$=RangeError,E=String,R=isFinite,b=Math.abs,O=Math.floor,C=Math.pow,M=Math.round,P=f(1.1.toExponential),L=f(m),z=f("".slice),B=P(-69e-12,4)==="-6.9000e-11"&&P(1.255,2)==="1.25e+0"&&P(12345,3)==="1.235e+4"&&P(25,0)==="3e+1",U=function(){return S(function(){P(1,1/0)})&&S(function(){P(1,-1/0)})},j=function(){return!S(function(){P(1/0,1/0),P(NaN,1/0)})},G=!B||!U()||!j();u({target:"Number",proto:!0,forced:G},{toExponential:function(X){var H=v(this);if(X===void 0)return P(H);var Y=h(X);if(!R(H))return String(H);if(Y<0||Y>20)throw new $("Incorrect fraction digits");if(B)return P(H,Y);var Z="",k,et,_,tt;if(H<0&&(Z="-",H=-H),H===0)et=0,k=L("0",Y+1);else{var nt=T(H);et=O(nt);var at=C(10,et-Y),ct=M(H/at);2*H>=(2*ct+1)*at&&(ct+=1),ct>=C(10,Y+1)&&(ct/=10,et+=1),k=E(ct)}return Y!==0&&(k=z(k,0,1)+"."+z(k,1)),et===0?(_="+",tt="0"):(_=et>0?"+":"-",tt=E(b(et))),k+="e"+_+tt,Z+k}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(61),v=n(325),m=n(248),T=n(7),S=RangeError,$=String,E=Math.floor,R=f(m),b=f("".slice),O=f(1.1.toFixed),C=function(U,j,G){return j===0?G:j%2===1?C(U,j-1,G*U):C(U*U,j/2,G)},M=function(U){for(var j=0,G=U;G>=4096;)j+=12,G/=4096;for(;G>=2;)j+=1,G/=2;return j},P=function(U,j,G){for(var V=-1,X=G;++V<6;)X+=j*U[V],U[V]=X%1e7,X=E(X/1e7)},L=function(U,j){for(var G=6,V=0;--G>=0;)V+=U[G],U[G]=E(V/j),V=V%j*1e7},z=function(U){for(var j=6,G="";--j>=0;)if(G!==""||j===0||U[j]!==0){var V=$(U[j]);G=G===""?V:G+R("0",7-V.length)+V}return G},B=T(function(){return O(8e-5,3)!=="0.000"||O(.9,0)!=="1"||O(1.255,2)!=="1.25"||O(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!T(function(){O({})});u({target:"Number",proto:!0,forced:B},{toFixed:function(j){var G=v(this),V=h(j),X=[0,0,0,0,0,0],H="",Y="0",Z,k,et,_;if(V<0||V>20)throw new S("Incorrect fraction digits");if(G!==G)return"NaN";if(G<=-1e21||G>=1e21)return $(G);if(G<0&&(H="-",G=-G),G>1e-21)if(Z=M(G*C(2,69,1))-69,k=Z<0?G*C(2,-Z,1):G/C(2,Z,1),k*=4503599627370496,Z=52-Z,Z>0){for(P(X,0,k),et=V;et>=7;)P(X,1e7,0),et-=7;for(P(X,C(10,et,1),0),et=Z-1;et>=23;)L(X,8388608),et-=23;L(X,1<<et),P(X,1,1),L(X,2),Y=z(X)}else P(X,0,k),P(X,1<<-Z,0),Y=z(X)+R("0",V);return V>0?(_=Y.length,Y=H+(_<=V?"0."+R("0",V-_)+Y:b(Y,0,_-V)+"."+b(Y,_-V))):Y=H+Y,Y}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(7),v=n(325),m=f(1.1.toPrecision),T=h(function(){return m(1,void 0)!=="1"})||!h(function(){m({})});u({target:"Number",proto:!0,forced:T},{toPrecision:function($){return $===void 0?m(v(this)):m(v(this),$)}})}),(function(x,I,n){var u=n(3),f=n(345);u({target:"Object",stat:!0,arity:2,forced:Object.assign!==f},{assign:f})}),(function(x,I,n){var u=n(6),f=n(14),h=n(8),v=n(7),m=n(73),T=n(66),S=n(10),$=n(39),E=n(13),R=Object.assign,b=Object.defineProperty,O=f([].concat);x.exports=!R||v(function(){if(u&&R({b:1},R(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var C={},M={},P=Symbol("assign detection"),L="abcdefghijklmnopqrst";return C[P]=7,L.split("").forEach(function(z){M[z]=z}),R({},C)[P]!==7||m(R({},M)).join("")!==L})?function(M,P){for(var L=$(M),z=arguments.length,B=1,U=T.f,j=S.f;z>B;)for(var G=E(arguments[B++]),V=U?O(m(G),U(G)):m(G),X=V.length,H=0,Y;X>H;)Y=V[H++],(!u||h(j,G,Y))&&(L[Y]=G[Y]);return L}:R}),(function(x,I,n){var u=n(3),f=n(6),h=n(71);u({target:"Object",stat:!0,sham:!f},{create:h})}),(function(x,I,n){var u=n(3),f=n(6),h=n(348),v=n(30),m=n(39),T=n(44);f&&u({target:"Object",proto:!0,forced:h},{__defineGetter__:function($,E){T.f(m(this),$,{get:v(E),enumerable:!0,configurable:!0})}})}),(function(x,I,n){var u=n(36),f=n(4),h=n(7),v=n(198);x.exports=u||!h(function(){if(!(v&&v<535)){var m=Math.random();__defineSetter__.call(null,m,function(){}),delete f[m]}})}),(function(x,I,n){var u=n(3),f=n(6),h=n(72).f;u({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!f},{defineProperties:h})}),(function(x,I,n){var u=n(3),f=n(6),h=n(44).f;u({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!f},{defineProperty:h})}),(function(x,I,n){var u=n(3),f=n(6),h=n(348),v=n(30),m=n(39),T=n(44);f&&u({target:"Object",proto:!0,forced:h},{__defineSetter__:function($,E){T.f(m(this),$,{set:v(E),enumerable:!0,configurable:!0})}})}),(function(x,I,n){var u=n(3),f=n(353).entries;u({target:"Object",stat:!0},{entries:function(v){return f(v)}})}),(function(x,I,n){var u=n(6),f=n(7),h=n(14),v=n(134),m=n(73),T=n(12),S=n(10).f,$=h(S),E=h([].push),R=u&&f(function(){var O=Object.create(null);return O[2]=2,!$(O,2)}),b=function(O){return function(C){for(var M=T(C),P=m(M),L=R&&v(M)===null,z=P.length,B=0,U=[],j;z>B;)j=P[B++],(!u||(L?j in M:$(M,j)))&&E(U,O?[j,M[j]]:M[j]);return U}};x.exports={entries:b(!0),values:b(!1)}}),(function(x,I,n){var u=n(3),f=n(287),h=n(7),v=n(20),m=n(292).onFreeze,T=Object.freeze,S=h(function(){T(1)});u({target:"Object",stat:!0,forced:S,sham:!f},{freeze:function(E){return T&&v(E)?T(m(E)):E}})}),(function(x,I,n){var u=n(3),f=n(136),h=n(90);u({target:"Object",stat:!0},{fromEntries:function(m){var T={};return f(m,function(S,$){h(T,S,$)},{AS_ENTRIES:!0}),T}})}),(function(x,I,n){var u=n(3),f=n(7),h=n(12),v=n(5).f,m=n(6),T=!m||f(function(){v(1)});u({target:"Object",stat:!0,forced:T,sham:!m},{getOwnPropertyDescriptor:function($,E){return v(h($),E)}})}),(function(x,I,n){var u=n(3),f=n(6),h=n(56),v=n(12),m=n(5),T=n(90);u({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function($){for(var E=v($),R=m.f,b=h(E),O={},C=0,M,P;b.length>C;)P=R(E,M=b[C++]),P!==void 0&&T(O,M,P);return O}})}),(function(x,I,n){var u=n(3),f=n(7),h=n(75).f,v=f(function(){return!Object.getOwnPropertyNames(1)});u({target:"Object",stat:!0,forced:v},{getOwnPropertyNames:h})}),(function(x,I,n){var u=n(3),f=n(7),h=n(39),v=n(134),m=n(135),T=f(function(){v(1)});u({target:"Object",stat:!0,forced:T,sham:!m},{getPrototypeOf:function($){return v(h($))}})}),(function(x,I,n){var u=n(3),f=n(90),h=n(23),v=n(14),m=n(30),T=n(16),S=n(18),$=n(136),E=n(7),R=Object.groupBy,b=h("Object","create"),O=v([].push),C=!R||E(function(){return R("ab",function(M){return M}).a.length!==1});u({target:"Object",stat:!0,forced:C},{groupBy:function(P,L){T(P),m(L);var z=b(null),B=0;return $(P,function(U){var j=S(L(U,B++));j in z?O(z[j],U):f(z,j,[U])}),z}})}),(function(x,I,n){var u=n(3),f=n(38);u({target:"Object",stat:!0},{hasOwn:f})}),(function(x,I,n){var u=n(3),f=n(363);u({target:"Object",stat:!0},{is:f})}),(function(x){x.exports=Object.is||function(n,u){return n===u?n!==0||1/n===1/u:n!==n&&u!==u}}),(function(x,I,n){var u=n(3),f=n(293);u({target:"Object",stat:!0,forced:Object.isExtensible!==f},{isExtensible:f})}),(function(x,I,n){var u=n(3),f=n(7),h=n(20),v=n(15),m=n(294),T=Object.isFrozen,S=m||f(function(){T(1)});u({target:"Object",stat:!0,forced:S},{isFrozen:function(E){return!h(E)||m&&v(E)==="ArrayBuffer"?!0:T?T(E):!1}})}),(function(x,I,n){var u=n(3),f=n(7),h=n(20),v=n(15),m=n(294),T=Object.isSealed,S=m||f(function(){T(1)});u({target:"Object",stat:!0,forced:S},{isSealed:function(E){return!h(E)||m&&v(E)==="ArrayBuffer"?!0:T?T(E):!1}})}),(function(x,I,n){var u=n(3),f=n(39),h=n(73),v=n(7),m=v(function(){h(1)});u({target:"Object",stat:!0,forced:m},{keys:function(S){return h(f(S))}})}),(function(x,I,n){var u=n(3),f=n(6),h=n(348),v=n(39),m=n(18),T=n(134),S=n(5).f;f&&u({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(E){var R=v(this),b=m(E),O;do if(O=S(R,b))return O.get;while(R=T(R))}})}),(function(x,I,n){var u=n(3),f=n(6),h=n(348),v=n(39),m=n(18),T=n(134),S=n(5).f;f&&u({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(E){var R=v(this),b=m(E),O;do if(O=S(R,b))return O.set;while(R=T(R))}})}),(function(x,I,n){var u=n(3),f=n(20),h=n(292).onFreeze,v=n(287),m=n(7),T=Object.preventExtensions,S=m(function(){T(1)});u({target:"Object",stat:!0,forced:S,sham:!v},{preventExtensions:function(E){return T&&f(E)?T(h(E)):E}})}),(function(x,I,n){var u=n(6),f=n(77),h=n(20),v=n(121),m=n(39),T=n(16),S=Object.getPrototypeOf,$=Object.setPrototypeOf,E=Object.prototype,R="__proto__";if(u&&S&&$&&!(R in E))try{f(E,R,{configurable:!0,get:function(){return S(m(this))},set:function(O){var C=T(this);v(O)&&h(C)&&$(C,O)}})}catch(b){}}),(function(x,I,n){var u=n(3),f=n(20),h=n(292).onFreeze,v=n(287),m=n(7),T=Object.seal,S=m(function(){T(1)});u({target:"Object",stat:!0,forced:S,sham:!v},{seal:function(E){return T&&f(E)?T(h(E)):E}})}),(function(x,I,n){var u=n(3),f=n(118);u({target:"Object",stat:!0},{setPrototypeOf:f})}),(function(x,I,n){var u=n(70),f=n(47),h=n(375);u||f(Object.prototype,"toString",h,{unsafe:!0})}),(function(x,I,n){var u=n(70),f=n(69);x.exports=u?{}.toString:function(){return"[object "+f(this)+"]"}}),(function(x,I,n){var u=n(3),f=n(353).values;u({target:"Object",stat:!0},{values:function(v){return f(v)}})}),(function(x,I,n){var u=n(3),f=n(338);u({global:!0,forced:parseFloat!==f},{parseFloat:f})}),(function(x,I,n){var u=n(3),f=n(340);u({global:!0,forced:parseInt!==f},{parseInt:f})}),(function(x,I,n){n(380),n(396),n(398),n(399),n(400),n(401)}),(function(x,I,n){var u=n(3),f=n(36),h=n(188),v=n(4),m=n(80),T=n(8),S=n(47),$=n(118),E=n(82),R=n(200),b=n(30),O=n(21),C=n(20),M=n(215),P=n(381),L=n(383).set,z=n(386),B=n(391),U=n(392),j=n(388),G=n(51),V=n(393),X=n(394),H=n(395),Y="Promise",Z=X.CONSTRUCTOR,k=X.REJECTION_EVENT,et=X.SUBCLASSING,_=G.getterFor(Y),tt=G.set,nt=V&&V.prototype,at=V,ct=nt,gt=v.TypeError,pt=v.document,mt=v.process,It=H.f,At=It,Mt=!!(pt&&pt.createEvent&&v.dispatchEvent),ut="unhandledrejection",lt="rejectionhandled",Ct=0,Nt=1,Gt=2,Ot=1,jt=2,re,se,ne,ae,Ae=function(Vt){var _t;return C(Vt)&&O(_t=Vt.then)?_t:!1},Ie=function(Vt,_t){var te=_t.value,Zt=_t.state===Nt,xe=Zt?Vt.ok:Vt.fail,We=Vt.resolve,ht=Vt.reject,Lt=Vt.domain,Bt,Ut,Xt;try{xe?(Zt||(_t.rejection===jt&&me(_t),_t.rejection=Ot),xe===!0?Bt=te:(Lt&&Lt.enter(),Bt=xe(te),Lt&&(Lt.exit(),Xt=!0)),Bt===Vt.promise?ht(new gt("Promise-chain cycle")):(Ut=Ae(Bt))?T(Ut,Bt,We,ht):We(Bt)):ht(te)}catch(Pt){Lt&&!Xt&&Lt.exit(),ht(Pt)}},pe=function(Vt,_t){Vt.notified||(Vt.notified=!0,z(function(){for(var te=Vt.reactions,Zt;Zt=te.get();)Ie(Zt,Vt);Vt.notified=!1,_t&&!Vt.rejection&&Re(Vt)}))},le=function(Vt,_t,te){var Zt,xe;Mt?(Zt=pt.createEvent("Event"),Zt.promise=_t,Zt.reason=te,Zt.initEvent(Vt,!1,!0),v.dispatchEvent(Zt)):Zt={promise:_t,reason:te},!k&&(xe=v["on"+Vt])?xe(Zt):Vt===ut&&B("Unhandled promise rejection",te)},Re=function(Vt){T(L,v,function(){var _t=Vt.facade,te=Vt.value,Zt=Se(Vt),xe;if(Zt&&(xe=U(function(){h?mt.emit("unhandledRejection",te,_t):le(ut,_t,te)}),Vt.rejection=h||Se(Vt)?jt:Ot,xe.error))throw xe.value})},Se=function(Vt){return Vt.rejection!==Ot&&!Vt.parent},me=function(Vt){T(L,v,function(){var _t=Vt.facade;h?mt.emit("rejectionHandled",_t):le(lt,_t,Vt.value)})},wt=function(Vt,_t,te){return function(Zt){Vt(_t,Zt,te)}},Yt=function(Vt,_t,te){Vt.done||(Vt.done=!0,te&&(Vt=te),Vt.value=_t,Vt.state=Gt,pe(Vt,!0))},ue=function(Vt,_t,te){if(!Vt.done){Vt.done=!0,te&&(Vt=te);try{if(Vt.facade===_t)throw new gt("Promise can't be resolved itself");var Zt=Ae(_t);Zt?z(function(){var xe={done:!1};try{T(Zt,_t,wt(ue,xe,Vt),wt(Yt,xe,Vt))}catch(We){Yt(xe,We,Vt)}}):(Vt.value=_t,Vt.state=Nt,pe(Vt,!1))}catch(xe){Yt({done:!1},xe,Vt)}}};if(Z&&(at=function(_t){M(this,ct),b(_t),T(re,this);var te=_(this);try{_t(wt(ue,te),wt(Yt,te))}catch(Zt){Yt(te,Zt)}},ct=at.prototype,re=function(_t){tt(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:Ct,value:null})},re.prototype=S(ct,"then",function(_t,te){var Zt=_(this),xe=It(P(this,at));return Zt.parent=!0,xe.ok=O(_t)?_t:!0,xe.fail=O(te)&&te,xe.domain=h?mt.domain:void 0,Zt.state===Ct?Zt.reactions.add(xe):z(function(){Ie(xe,Zt)}),xe.promise}),se=function(){var Vt=new re,_t=_(Vt);this.promise=Vt,this.resolve=wt(ue,_t),this.reject=wt(Yt,_t)},H.f=It=function(Vt){return Vt===at||Vt===ne?new se(Vt):At(Vt)},!f&&O(V)&&nt!==Object.prototype)){ae=nt.then,et||S(nt,"then",function(_t,te){var Zt=this;return new at(function(xe,We){T(ae,Zt,xe,We)}).then(_t,te)},{unsafe:!0});try{delete nt.constructor}catch(Vt){}$&&$(nt,ct)}u({global:!0,constructor:!0,wrap:!0,forced:Z},{Promise:at}),ne=m.Promise,E(at,Y,!1,!0),R(Y)}),(function(x,I,n){var u=n(46),f=n(382),h=n(17),v=n(33),m=v("species");x.exports=function(T,S){var $=u(T).constructor,E;return $===void 0||h(E=u($)[m])?S:f(E)}}),(function(x,I,n){var u=n(89),f=n(31),h=TypeError;x.exports=function(v){if(u(v))return v;throw new h(f(v)+" is not a constructor")}}),(function(x,I,n){var u=n(4),f=n(95),h=n(84),v=n(21),m=n(38),T=n(7),S=n(74),$=n(76),E=n(42),R=n(384),b=n(385),O=n(188),C=u.setImmediate,M=u.clearImmediate,P=u.process,L=u.Dispatch,z=u.Function,B=u.MessageChannel,U=u.String,j=0,G={},V="onreadystatechange",X,H,Y,Z;T(function(){X=u.location});var k=function(nt){if(m(G,nt)){var at=G[nt];delete G[nt],at()}},et=function(nt){return function(){k(nt)}},_=function(nt){k(nt.data)},tt=function(nt){u.postMessage(U(nt),X.protocol+"//"+X.host)};(!C||!M)&&(C=function(at){R(arguments.length,1);var ct=v(at)?at:z(at),gt=$(arguments,1);return G[++j]=function(){f(ct,void 0,gt)},H(j),j},M=function(at){delete G[at]},O?H=function(nt){P.nextTick(et(nt))}:L&&L.now?H=function(nt){L.now(et(nt))}:B&&!b?(Y=new B,Z=Y.port2,Y.port1.onmessage=_,H=h(Z.postMessage,Z)):u.addEventListener&&v(u.postMessage)&&!u.importScripts&&X&&X.protocol!=="file:"&&!T(tt)?(H=tt,u.addEventListener("message",_,!1)):V in E("script")?H=function(nt){S.appendChild(E("script"))[V]=function(){S.removeChild(this),k(nt)}}:H=function(nt){setTimeout(et(nt),0)}),x.exports={set:C,clear:M}}),(function(x){var I=TypeError;x.exports=function(n,u){if(n<u)throw new I("Not enough arguments");return n}}),(function(x,I,n){var u=n(28);x.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)}),(function(x,I,n){var u=n(4),f=n(387),h=n(84),v=n(383).set,m=n(388),T=n(385),S=n(389),$=n(390),E=n(188),R=u.MutationObserver||u.WebKitMutationObserver,b=u.document,O=u.process,C=u.Promise,M=f("queueMicrotask"),P,L,z,B,U;if(!M){var j=new m,G=function(){var V,X;for(E&&(V=O.domain)&&V.exit();X=j.get();)try{X()}catch(H){throw j.head&&P(),H}V&&V.enter()};!T&&!E&&!$&&R&&b?(L=!0,z=b.createTextNode(""),new R(G).observe(z,{characterData:!0}),P=function(){z.data=L=!L}):!S&&C&&C.resolve?(B=C.resolve(void 0),B.constructor=C,U=h(B.then,B),P=function(){U(G)}):E?P=function(){O.nextTick(G)}:(v=h(v,u),P=function(){v(G)}),M=function(V){j.head||P(),j.add(V)}}x.exports=M}),(function(x,I,n){var u=n(4),f=n(6),h=Object.getOwnPropertyDescriptor;x.exports=function(v){if(!f)return u[v];var m=h(u,v);return m&&m.value}}),(function(x){var I=function(){this.head=null,this.tail=null};I.prototype={add:function(n){var u={item:n,next:null},f=this.tail;f?f.next=u:this.head=u,this.tail=u},get:function(){var n=this.head;if(n){var u=this.head=n.next;return u===null&&(this.tail=null),n.item}}},x.exports=I}),(function(x,I,n){var u=n(28);x.exports=/ipad|iphone|ipod/i.test(u)&&typeof Pebble!="undefined"}),(function(x,I,n){var u=n(28);x.exports=/web0s(?!.*chrome)/i.test(u)}),(function(x){x.exports=function(I,n){try{arguments.length===1?console.error(I):console.error(I,n)}catch(u){}}}),(function(x){x.exports=function(I){try{return{error:!1,value:I()}}catch(n){return{error:!0,value:n}}}}),(function(x,I,n){var u=n(4);x.exports=u.Promise}),(function(x,I,n){var u=n(4),f=n(393),h=n(21),v=n(67),m=n(50),T=n(33),S=n(189),$=n(36),E=n(27),R=f&&f.prototype,b=T("species"),O=!1,C=h(u.PromiseRejectionEvent),M=v("Promise",function(){var P=m(f),L=P!==String(f);if(!L&&E===66||$&&!(R.catch&&R.finally))return!0;if(!E||E<51||!/native code/.test(P)){var z=new f(function(j){j(1)}),B=function(j){j(function(){},function(){})},U=z.constructor={};if(U[b]=B,O=z.then(function(){})instanceof B,!O)return!0}return!L&&(S==="BROWSER"||S==="DENO")&&!C});x.exports={CONSTRUCTOR:M,REJECTION_EVENT:C,SUBCLASSING:O}}),(function(x,I,n){var u=n(30),f=TypeError,h=function(v){var m,T;this.promise=new v(function(S,$){if(m!==void 0||T!==void 0)throw new f("Bad Promise constructor");m=S,T=$}),this.resolve=u(m),this.reject=u(T)};x.exports.f=function(v){return new h(v)}}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(395),m=n(392),T=n(136),S=n(397);u({target:"Promise",stat:!0,forced:S},{all:function(E){var R=this,b=v.f(R),O=b.resolve,C=b.reject,M=m(function(){var P=h(R.resolve),L=[],z=0,B=1;T(E,function(U){var j=z++,G=!1;B++,f(P,R,U).then(function(V){G||(G=!0,L[j]=V,--B||O(L))},C)}),--B||O(L)});return M.error&&C(M.value),b.promise}})}),(function(x,I,n){var u=n(393),f=n(171),h=n(394).CONSTRUCTOR;x.exports=h||!f(function(v){u.all(v).then(void 0,function(){})})}),(function(x,I,n){var u=n(3),f=n(36),h=n(394).CONSTRUCTOR,v=n(393),m=n(23),T=n(21),S=n(47),$=v&&v.prototype;if(u({target:"Promise",proto:!0,forced:h,real:!0},{catch:function(R){return this.then(void 0,R)}}),!f&&T(v)){var E=m("Promise").prototype.catch;$.catch!==E&&S($,"catch",E,{unsafe:!0})}}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(395),m=n(392),T=n(136),S=n(397);u({target:"Promise",stat:!0,forced:S},{race:function(E){var R=this,b=v.f(R),O=b.reject,C=m(function(){var M=h(R.resolve);T(E,function(P){f(M,R,P).then(b.resolve,O)})});return C.error&&O(C.value),b.promise}})}),(function(x,I,n){var u=n(3),f=n(395),h=n(394).CONSTRUCTOR;u({target:"Promise",stat:!0,forced:h},{reject:function(m){var T=f.f(this),S=T.reject;return S(m),T.promise}})}),(function(x,I,n){var u=n(3),f=n(23),h=n(36),v=n(393),m=n(394).CONSTRUCTOR,T=n(402),S=f("Promise"),$=h&&!m;u({target:"Promise",stat:!0,forced:h||m},{resolve:function(R){return T($&&this===S?v:this,R)}})}),(function(x,I,n){var u=n(46),f=n(20),h=n(395);x.exports=function(v,m){if(u(v),f(m)&&m.constructor===v)return m;var T=h.f(v),S=T.resolve;return S(m),T.promise}}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(395),m=n(392),T=n(136),S=n(397);u({target:"Promise",stat:!0,forced:S},{allSettled:function(E){var R=this,b=v.f(R),O=b.resolve,C=b.reject,M=m(function(){var P=h(R.resolve),L=[],z=0,B=1;T(E,function(U){var j=z++,G=!1;B++,f(P,R,U).then(function(V){G||(G=!0,L[j]={status:"fulfilled",value:V},--B||O(L))},function(V){G||(G=!0,L[j]={status:"rejected",reason:V},--B||O(L))})}),--B||O(L)});return M.error&&C(M.value),b.promise}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(30),v=n(23),m=n(395),T=n(392),S=n(136),$=n(397),E="No one promise resolved";u({target:"Promise",stat:!0,forced:$},{any:function(b){var O=this,C=v("AggregateError"),M=m.f(O),P=M.resolve,L=M.reject,z=T(function(){var B=h(O.resolve),U=[],j=0,G=1,V=!1;S(b,function(X){var H=j++,Y=!1;G++,f(B,O,X).then(function(Z){Y||V||(V=!0,P(Z))},function(Z){Y||V||(Y=!0,U[H]=Z,--G||L(new C(U,E)))})}),--G||L(new C(U,E))});return z.error&&L(z.value),M.promise}})}),(function(x,I,n){var u=n(3),f=n(36),h=n(393),v=n(7),m=n(23),T=n(21),S=n(381),$=n(402),E=n(47),R=h&&h.prototype,b=!!h&&v(function(){R.finally.call({then:function(){}},function(){})});if(u({target:"Promise",proto:!0,real:!0,forced:b},{finally:function(C){var M=S(this,m("Promise")),P=T(C);return this.then(P?function(L){return $(M,C()).then(function(){return L})}:C,P?function(L){return $(M,C()).then(function(){throw L})}:C)}}),!f&&T(h)){var O=m("Promise").prototype.finally;R.finally!==O&&E(R,"finally",O,{unsafe:!0})}}),(function(x,I,n){var u=n(3),f=n(4),h=n(95),v=n(76),m=n(395),T=n(30),S=n(392),$=f.Promise,E=!1,R=!$||!$.try||S(function(){$.try(function(b){E=b===8},8)}).error||!E;u({target:"Promise",stat:!0,forced:R},{try:function(b){var O=arguments.length>1?v(arguments,1):[],C=m.f(this),M=S(function(){return h(T(b),void 0,O)});return(M.error?C.reject:C.resolve)(M.value),C.promise}})}),(function(x,I,n){var u=n(3),f=n(395);u({target:"Promise",stat:!0},{withResolvers:function(){var v=f.f(this);return{promise:v.promise,resolve:v.resolve,reject:v.reject}}})}),(function(x,I,n){var u=n(3),f=n(409),h=n(7),v=Array.fromAsync,m=!v||h(function(){var T=0;return v.call(function(){return T++,[]},{length:0}),T!==1});u({target:"Array",stat:!0,forced:m},{fromAsync:f})}),(function(x,I,n){var u=n(84),f=n(14),h=n(39),v=n(89),m=n(410),T=n(139),S=n(267),$=n(140),E=n(29),R=n(23),b=n(205),O=n(33),C=n(411),M=n(413).toArray,P=O("asyncIterator"),L=f(b("Array","values")),z=f(L([]).next),B=function(){return new U(this)},U=function(j){this.iterator=L(j)};U.prototype.next=function(){return z(this.iterator)},x.exports=function(G){var V=this,X=arguments.length,H=X>1?arguments[1]:void 0,Y=X>2?arguments[2]:void 0;return new(R("Promise"))(function(Z){var k=h(G);H!==void 0&&(H=u(H,Y));var et=E(k,P),_=et?void 0:$(k)||B,tt=v(V)?new V:[],nt=et?m(k,et):new C(S(T(k,_)));Z(M(nt,H,tt))})}}),(function(x,I,n){var u=n(8),f=n(411),h=n(46),v=n(139),m=n(267),T=n(29),S=n(33),$=S("asyncIterator");x.exports=function(E,R){var b=arguments.length<2?T(E,$):R;return b?h(u(b,E)):new f(m(v(E)))}}),(function(x,I,n){var u=n(8),f=n(46),h=n(71),v=n(29),m=n(214),T=n(51),S=n(141),$=n(23),E=n(412),R=n(179),b=$("Promise"),O="AsyncFromSyncIterator",C=T.set,M=T.getterFor(O),P=function(z,B,U,j,G){var V=z.done;b.resolve(z.value).then(function(X){B(R(X,V))},function(X){if(!V&&G)try{S(j,"throw",X)}catch(H){X=H}U(X)})},L=function(B){B.type=O,C(this,B)};L.prototype=m(h(E),{next:function(){var B=M(this);return new b(function(U,j){var G=f(u(B.next,B.iterator));P(G,U,j,B.iterator,!0)})},return:function(){var z=M(this).iterator;return new b(function(B,U){var j=v(z,"return");if(j===void 0)return B(R(void 0,!0));var G=f(u(j,z));P(G,B,U,z)})}}),x.exports=L}),(function(x,I,n){var u=n(4),f=n(35),h=n(21),v=n(71),m=n(134),T=n(47),S=n(33),$=n(36),E="USE_FUNCTION_CONSTRUCTOR",R=S("asyncIterator"),b=u.AsyncIterator,O=f.AsyncIteratorPrototype,C,M;if(O)C=O;else if(h(b))C=b.prototype;else if(f[E]||u[E])try{M=m(m(m(Function("return async function*(){}()")()))),m(M)===Object.prototype&&(C=M)}catch(P){}C?$&&(C=v(C)):C={},h(C[R])||T(C,R,function(){return this}),x.exports=C}),(function(x,I,n){var u=n(8),f=n(30),h=n(46),v=n(20),m=n(147),T=n(23),S=n(90),$=n(148),E=n(267),R=n(414),b=function(O){var C=O===0,M=O===1,P=O===2,L=O===3;return function(z,B,U){h(z);var j=B!==void 0;(j||!C)&&f(B);var G=E(z),V=T("Promise"),X=G.iterator,H=G.next,Y=0;return new V(function(Z,k){var et=function(tt){R(X,k,tt,k)},_=function(){try{if(j)try{m(Y)}catch(tt){et(tt)}V.resolve(h(u(H,X))).then(function(tt){try{if(h(tt).done)C?($(U,Y),Z(U)):Z(L?!1:P||void 0);else{var nt=tt.value;try{if(j){var at=B(nt,Y),ct=function(gt){if(M)_();else if(P)gt?_():R(X,Z,!1,k);else if(C)try{S(U,Y++,gt),_()}catch(pt){et(pt)}else gt?R(X,Z,L||nt,k):_()};v(at)?V.resolve(at).then(ct,et):ct(at)}else S(U,Y++,nt),_()}catch(gt){et(gt)}}}catch(gt){k(gt)}},k)}catch(tt){k(tt)}};_()})}};x.exports={toArray:b(0),forEach:b(1),every:b(2),some:b(3),find:b(4)}}),(function(x,I,n){var u=n(8),f=n(23),h=n(29);x.exports=function(v,m,T,S){try{var $=h(v,"return");if($)return f("Promise").resolve(u($,v)).then(function(){m(T)},function(E){S(E)})}catch(E){return S(E)}m(T)}}),(function(x,I,n){var u=n(3),f=n(6),h=n(23),v=n(30),m=n(215),T=n(47),S=n(214),$=n(77),E=n(33),R=n(51),b=n(254),O=n(27),C=h("Promise"),M=h("SuppressedError"),P=ReferenceError,L=E("asyncDispose"),z=E("toStringTag"),B="AsyncDisposableStack",U=R.set,j=R.getterFor(B),G="async-dispose",V="disposed",X="pending",H=function(et){var _=j(et);if(_.state===V)throw new P(B+" already disposed");return _},Y=function(){U(m(this,Z),{type:B,state:X,stack:[]}),f||(this.disposed=!1)},Z=Y.prototype;S(Z,{disposeAsync:function(){var _=this;return new C(function(tt,nt){var at=j(_);if(at.state===V)return tt(void 0);at.state=V,f||(_.disposed=!0);var ct=at.stack,gt=ct.length,pt=!1,mt,It=function(Mt){pt?mt=new M(Mt,mt):(pt=!0,mt=Mt),At()},At=function(){if(gt){var Mt=ct[--gt];ct[gt]=null;try{C.resolve(Mt()).then(At,It)}catch(ut){It(ut)}}else at.stack=null,pt?nt(mt):tt(void 0)};At()})},use:function(_){return b(H(this),_,G),_},adopt:function(_,tt){var nt=H(this);return v(tt),b(nt,void 0,G,function(){return tt(_)}),_},defer:function(_){var tt=H(this);v(_),b(tt,void 0,G,_)},move:function(){var _=H(this),tt=new Y;return j(tt).stack=_.stack,_.stack=[],_.state=V,f||(this.disposed=!0),tt}}),f&&$(Z,"disposed",{configurable:!0,get:function(){return j(this).state===V}}),T(Z,L,Z.disposeAsync,{name:"disposeAsync"}),T(Z,z,B,{nonWritable:!0});var k=O&&O<136;u({global:!0,constructor:!0,forced:k},{AsyncDisposableStack:Y})}),(function(x,I,n){var u=n(8),f=n(47),h=n(23),v=n(29),m=n(38),T=n(33),S=n(412),$=T("asyncDispose"),E=h("Promise");m(S,$)||f(S,$,function(){var R=this;return new E(function(b,O){var C=v(R,"return");C?E.resolve(u(C,R)).then(function(){b(void 0)},O):b(void 0)})})}),(function(x,I,n){var u=n(3),f=n(95),h=n(30),v=n(46),m=n(7),T=!m(function(){Reflect.apply(function(){})});u({target:"Reflect",stat:!0,forced:T},{apply:function($,E,R){return f(h($),E,v(R))}})}),(function(x,I,n){var u=n(3),f=n(23),h=n(95),v=n(257),m=n(382),T=n(46),S=n(20),$=n(71),E=n(7),R=f("Reflect","construct"),b=Object.prototype,O=[].push,C=E(function(){function L(){}return!(R(function(){},[],L)instanceof L)}),M=!E(function(){R(function(){})}),P=C||M;u({target:"Reflect",stat:!0,forced:P,sham:P},{construct:function(z,B){m(z),T(B);var U=arguments.length<3?z:m(arguments[2]);if(M&&!C)return R(z,B,U);if(z===U){switch(B.length){case 0:return new z;case 1:return new z(B[0]);case 2:return new z(B[0],B[1]);case 3:return new z(B[0],B[1],B[2]);case 4:return new z(B[0],B[1],B[2],B[3])}var j=[null];return h(O,j,B),new(h(v,z,j))}var G=U.prototype,V=$(S(G)?G:b),X=h(z,V,B);return S(X)?X:V}})}),(function(x,I,n){var u=n(3),f=n(6),h=n(46),v=n(18),m=n(44),T=n(7),S=T(function(){Reflect.defineProperty(m.f({},1,{value:1}),1,{value:2})});u({target:"Reflect",stat:!0,forced:S,sham:!f},{defineProperty:function(E,R,b){h(E);var O=v(R);h(b);try{return m.f(E,O,b),!0}catch(C){return!1}}})}),(function(x,I,n){var u=n(3),f=n(46),h=n(5).f;u({target:"Reflect",stat:!0},{deleteProperty:function(m,T){var S=h(f(m),T);return S&&!S.configurable?!1:delete m[T]}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(20),v=n(46),m=n(422),T=n(5),S=n(134);function $(E,R){var b=arguments.length<3?E:arguments[2],O,C;if(v(E)===b)return E[R];if(O=T.f(E,R),O)return m(O)?O.value:O.get===void 0?void 0:f(O.get,b);if(h(C=S(E)))return $(C,R,b)}u({target:"Reflect",stat:!0},{get:$})}),(function(x,I,n){var u=n(38);x.exports=function(f){return f!==void 0&&(u(f,"value")||u(f,"writable"))}}),(function(x,I,n){var u=n(3),f=n(6),h=n(46),v=n(5);u({target:"Reflect",stat:!0,sham:!f},{getOwnPropertyDescriptor:function(T,S){return v.f(h(T),S)}})}),(function(x,I,n){var u=n(3),f=n(46),h=n(134),v=n(135);u({target:"Reflect",stat:!0,sham:!v},{getPrototypeOf:function(T){return h(f(T))}})}),(function(x,I,n){var u=n(3);u({target:"Reflect",stat:!0},{has:function(h,v){return v in h}})}),(function(x,I,n){var u=n(3),f=n(46),h=n(293);u({target:"Reflect",stat:!0},{isExtensible:function(m){return f(m),h(m)}})}),(function(x,I,n){var u=n(3),f=n(56);u({target:"Reflect",stat:!0},{ownKeys:f})}),(function(x,I,n){var u=n(3),f=n(23),h=n(46),v=n(287);u({target:"Reflect",stat:!0,sham:!v},{preventExtensions:function(T){h(T);try{var S=f("Object","preventExtensions");return S&&S(T),!0}catch($){return!1}}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(46),v=n(20),m=n(422),T=n(7),S=n(44),$=n(5),E=n(134),R=n(11);function b(C,M,P){var L=arguments.length<4?C:arguments[3],z=$.f(h(C),M),B,U,j;if(!z){if(v(U=E(C)))return b(U,M,P,L);z=R(0)}if(m(z)){if(z.writable===!1||!v(L))return!1;if(B=$.f(L,M)){if(B.get||B.set||B.writable===!1)return!1;B.value=P,S.f(L,M,B)}else S.f(L,M,R(0,P))}else{if(j=z.set,j===void 0)return!1;f(j,L,P)}return!0}var O=T(function(){var C=function(){},M=S.f(new C,"a",{configurable:!0});return Reflect.set(C.prototype,"a",1,M)!==!1});u({target:"Reflect",stat:!0,forced:O},{set:b})}),(function(x,I,n){var u=n(3),f=n(46),h=n(120),v=n(118);v&&u({target:"Reflect",stat:!0},{setPrototypeOf:function(T,S){f(T),h(S);try{return v(T,S),!0}catch($){return!1}}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(82);u({global:!0},{Reflect:{}}),h(f.Reflect,"Reflect",!0)}),(function(x,I,n){var u=n(6),f=n(4),h=n(14),v=n(67),m=n(123),T=n(43),S=n(71),$=n(57).f,E=n(24),R=n(433),b=n(68),O=n(434),C=n(437),M=n(122),P=n(47),L=n(7),z=n(38),B=n(51).enforce,U=n(200),j=n(33),G=n(438),V=n(439),X=j("match"),H=f.RegExp,Y=H.prototype,Z=f.SyntaxError,k=h(Y.exec),et=h("".charAt),_=h("".replace),tt=h("".indexOf),nt=h("".slice),at=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,ct=/a/g,gt=/a/g,pt=new H(ct)!==ct,mt=C.MISSED_STICKY,It=C.UNSUPPORTED_Y,At=u&&(!pt||mt||G||V||L(function(){return gt[X]=!1,H(ct)!==ct||H(gt)===gt||String(H(ct,"i"))!=="/a/i"})),Mt=function(Gt){for(var Ot=Gt.length,jt=0,re="",se=!1,ne;jt<Ot;jt++){if(ne=et(Gt,jt),ne==="\\"){re+=ne+et(Gt,++jt);continue}!se&&ne==="."?re+="[\\s\\S]":(ne==="["?se=!0:ne==="]"&&(se=!1),re+=ne)}return re},ut=function(Gt){for(var Ot=Gt.length,jt=0,re="",se=[],ne=S(null),ae=!1,Ae=!1,Ie=0,pe="",le;jt<Ot;jt++){if(le=et(Gt,jt),le==="\\")le+=et(Gt,++jt);else if(le==="]")ae=!1;else if(!ae)switch(!0){case le==="[":ae=!0;break;case le==="(":if(re+=le,nt(Gt,jt+1,jt+3)==="?:")continue;k(at,nt(Gt,jt+1))&&(jt+=2,Ae=!0),Ie++;continue;case(le===">"&&Ae):if(pe===""||z(ne,pe))throw new Z("Invalid capture group name");ne[pe]=!0,se[se.length]=[pe,Ie],Ae=!1,pe="";continue}Ae?pe+=le:re+=le}return[re,se]};if(v("RegExp",At)){for(var lt=function(Ot,jt){var re=E(Y,this),se=R(Ot),ne=jt===void 0,ae=[],Ae=Ot,Ie,pe,le,Re,Se,me;if(!re&&se&&ne&&Ot.constructor===lt)return Ot;if((se||E(Y,Ot))&&(Ot=Ot.source,ne&&(jt=O(Ae))),Ot=Ot===void 0?"":b(Ot),jt=jt===void 0?"":b(jt),Ae=Ot,G&&"dotAll"in ct&&(pe=!!jt&&tt(jt,"s")>-1,pe&&(jt=_(jt,/s/g,""))),Ie=jt,mt&&"sticky"in ct&&(le=!!jt&&tt(jt,"y")>-1,le&&It&&(jt=_(jt,/y/g,""))),V&&(Re=ut(Ot),Ot=Re[0],ae=Re[1]),Se=m(H(Ot,jt),re?this:Y,lt),(pe||le||ae.length)&&(me=B(Se),pe&&(me.dotAll=!0,me.raw=lt(Mt(Ot),Ie)),le&&(me.sticky=!0),ae.length&&(me.groups=ae)),Ot!==Ae)try{T(Se,"source",Ae===""?"(?:)":Ae)}catch(wt){}return Se},Ct=$(H),Nt=0;Ct.length>Nt;)M(lt,H,Ct[Nt++]);Y.constructor=lt,lt.prototype=Y,P(f,"RegExp",lt,{constructor:!0})}U("RegExp")}),(function(x,I,n){var u=n(20),f=n(15),h=n(33),v=h("match");x.exports=function(m){var T;return u(m)&&((T=m[v])!==void 0?!!T:f(m)==="RegExp")}}),(function(x,I,n){var u=n(8),f=n(38),h=n(24),v=n(435),m=n(436),T=RegExp.prototype;x.exports=v.correct?function(S){return S.flags}:function(S){return!v.correct&&h(T,S)&&!f(S,"flags")?u(m,S):S.flags}}),(function(x,I,n){var u=n(4),f=n(7),h=u.RegExp,v=!f(function(){var m=!0;try{h(".","d")}catch(C){m=!1}var T={},S="",$=m?"dgimsy":"gimsy",E=function(C,M){Object.defineProperty(T,C,{get:function(){return S+=M,!0}})},R={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};m&&(R.hasIndices="d");for(var b in R)E(b,R[b]);var O=Object.getOwnPropertyDescriptor(h.prototype,"flags").get.call(T);return O!==$||S!==$});x.exports={correct:v}}),(function(x,I,n){var u=n(46);x.exports=function(){var f=u(this),h="";return f.hasIndices&&(h+="d"),f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),f.dotAll&&(h+="s"),f.unicode&&(h+="u"),f.unicodeSets&&(h+="v"),f.sticky&&(h+="y"),h}}),(function(x,I,n){var u=n(7),f=n(4),h=f.RegExp,v=u(function(){var S=h("a","y");return S.lastIndex=2,S.exec("abcd")!==null}),m=v||u(function(){return!h("a","y").sticky}),T=v||u(function(){var S=h("^r","gy");return S.lastIndex=2,S.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:m,UNSUPPORTED_Y:v}}),(function(x,I,n){var u=n(7),f=n(4),h=f.RegExp;x.exports=u(function(){var v=h(".","s");return!(v.dotAll&&v.test(`
|
|
30
|
+
`)&&v.flags==="s")})}),(function(x,I,n){var u=n(7),f=n(4),h=f.RegExp;x.exports=u(function(){var v=h("(?<a>b)","g");return v.exec("b").groups.a!=="b"||"b".replace(v,"$<a>c")!=="bc"})}),(function(x,I,n){var u=n(3),f=n(14),h=n(441),v=n(38),m=n(247).start,T=n(327),S=Array,$=RegExp.escape,E=f("".charAt),R=f("".charCodeAt),b=f(1.1.toString),O=f([].join),C=/^[0-9a-z]/i,M=/^[$()*+./?[\\\]^{|}]/,P=RegExp("^[!\"#%&',\\-:;<=>@`~"+T+"]"),L=f(C.exec),z={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},B=function(j){var G=b(R(j,0),16);return G.length<3?"\\x"+m(G,2,"0"):"\\u"+m(G,4,"0")},U=!$||$("ab")!=="\\x61b";u({target:"RegExp",stat:!0,forced:U},{escape:function(G){h(G);for(var V=G.length,X=S(V),H=0;H<V;H++){var Y=E(G,H);if(H===0&&L(C,Y))X[H]=B(Y);else if(v(z,Y))X[H]="\\"+z[Y];else if(L(M,Y))X[H]="\\"+Y;else if(L(P,Y))X[H]=B(Y);else{var Z=R(Y,0);(Z&63488)!==55296?X[H]=Y:Z>=56320||H+1>=V||(R(G,H+1)&64512)!==56320?X[H]=B(Y):(X[H]=Y,X[++H]=E(G,H))}}return O(X,"")}})}),(function(x){var I=TypeError;x.exports=function(n){if(typeof n=="string")return n;throw new I("Argument is not a string")}}),(function(x,I,n){var u=n(6),f=n(438),h=n(15),v=n(77),m=n(51).get,T=RegExp.prototype,S=TypeError;u&&f&&v(T,"dotAll",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!m(this).dotAll;throw new S("Incompatible receiver, RegExp required")}}})}),(function(x,I,n){var u=n(3),f=n(444);u({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})}),(function(x,I,n){var u=n(8),f=n(14),h=n(68),v=n(436),m=n(437),T=n(34),S=n(71),$=n(51).get,E=n(438),R=n(439),b=T("native-string-replace",String.prototype.replace),O=RegExp.prototype.exec,C=O,M=f("".charAt),P=f("".indexOf),L=f("".replace),z=f("".slice),B=(function(){var V=/a/,X=/b*/g;return u(O,V,"a"),u(O,X,"a"),V.lastIndex!==0||X.lastIndex!==0})(),U=m.BROKEN_CARET,j=/()??/.exec("")[1]!==void 0,G=B||j||U||E||R;G&&(C=function(X){var H=this,Y=$(H),Z=h(X),k=Y.raw,et,_,tt,nt,at,ct,gt;if(k)return k.lastIndex=H.lastIndex,et=u(C,k,Z),H.lastIndex=k.lastIndex,et;var pt=Y.groups,mt=U&&H.sticky,It=u(v,H),At=H.source,Mt=0,ut=Z;if(mt&&(It=L(It,"y",""),P(It,"g")===-1&&(It+="g"),ut=z(Z,H.lastIndex),H.lastIndex>0&&(!H.multiline||H.multiline&&M(Z,H.lastIndex-1)!==`
|
|
31
|
+
`)&&(At="(?: "+At+")",ut=" "+ut,Mt++),_=new RegExp("^(?:"+At+")",It)),j&&(_=new RegExp("^"+At+"$(?!\\s)",It)),B&&(tt=H.lastIndex),nt=u(O,mt?_:H,ut),mt?nt?(nt.input=z(nt.input,Mt),nt[0]=z(nt[0],Mt),nt.index=H.lastIndex,H.lastIndex+=nt[0].length):H.lastIndex=0:B&&nt&&(H.lastIndex=H.global?nt.index+nt[0].length:tt),j&&nt&&nt.length>1&&u(b,nt[0],_,function(){for(at=1;at<arguments.length-2;at++)arguments[at]===void 0&&(nt[at]=void 0)}),nt&&pt)for(nt.groups=ct=S(null),at=0;at<pt.length;at++)gt=pt[at],ct[gt[0]]=nt[gt[1]];return nt}),x.exports=C}),(function(x,I,n){var u=n(6),f=n(77),h=n(435),v=n(436);u&&!h.correct&&(f(RegExp.prototype,"flags",{configurable:!0,get:v}),h.correct=!0)}),(function(x,I,n){var u=n(6),f=n(437).MISSED_STICKY,h=n(15),v=n(77),m=n(51).get,T=RegExp.prototype,S=TypeError;u&&f&&v(T,"sticky",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!m(this).sticky;throw new S("Incompatible receiver, RegExp required")}}})}),(function(x,I,n){n(443);var u=n(3),f=n(8),h=n(21),v=n(46),m=n(68),T=(function(){var $=!1,E=/[ac]/;return E.exec=function(){return $=!0,/./.exec.apply(this,arguments)},E.test("abc")===!0&&$})(),S=/./.test;u({target:"RegExp",proto:!0,forced:!T},{test:function($){var E=v(this),R=m($),b=E.exec;if(!h(b))return f(S,E,R);var O=f(b,E,R);return O===null?!1:(v(O),!0)}})}),(function(x,I,n){var u=n(49).PROPER,f=n(47),h=n(46),v=n(68),m=n(7),T=n(434),S="toString",$=RegExp.prototype,E=$[S],R=m(function(){return E.call({source:"a",flags:"b"})!=="/a/b"}),b=u&&E.name!==S;(R||b)&&f($,S,function(){var C=h(this),M=v(C.source),P=v(T(C));return"/"+M+"/"+P},{unsafe:!0})}),(function(x,I,n){n(450)}),(function(x,I,n){var u=n(291),f=n(295);u("Set",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},f)}),(function(x,I,n){var u=n(3),f=n(452),h=n(7),v=n(460),m=!v("difference",function(S){return S.size===0}),T=m||h(function(){var S={size:1,has:function(){return!0},keys:function(){var E=0;return{next:function(){var R=E++>1;return $.has(1)&&$.clear(),{done:R,value:2}}}}},$=new Set([1,2,3,4]);return $.difference(S).size!==3});u({target:"Set",proto:!0,real:!0,forced:T},{difference:f})}),(function(x,I,n){var u=n(453),f=n(454),h=n(455),v=n(458),m=n(459),T=n(456),S=n(457),$=f.has,E=f.remove;x.exports=function(b){var O=u(this),C=m(b),M=h(O);return v(O)<=C.size?T(O,function(P){C.includes(P)&&E(M,P)}):S(C.getIterator(),function(P){$(M,P)&&E(M,P)}),M}}),(function(x,I,n){var u=n(454).has;x.exports=function(f){return u(f),f}}),(function(x,I,n){var u=n(14),f=Set.prototype;x.exports={Set,add:u(f.add),has:u(f.has),remove:u(f.delete),proto:f}}),(function(x,I,n){var u=n(454),f=n(456),h=u.Set,v=u.add;x.exports=function(m){var T=new h;return f(m,function(S){v(T,S)}),T}}),(function(x,I,n){var u=n(14),f=n(457),h=n(454),v=h.Set,m=h.proto,T=u(m.forEach),S=u(m.keys),$=S(new v).next;x.exports=function(E,R,b){return b?f({iterator:S(E),next:$},R):T(E,R)}}),(function(x,I,n){var u=n(8);x.exports=function(f,h,v){for(var m=v?f:f.iterator,T=f.next,S,$;!(S=u(T,m)).done;)if($=h(S.value),$!==void 0)return $}}),(function(x,I,n){var u=n(119),f=n(454);x.exports=u(f.proto,"size","get")||function(h){return h.size}}),(function(x,I,n){var u=n(30),f=n(46),h=n(8),v=n(61),m=n(267),T="Invalid size",S=RangeError,$=TypeError,E=Math.max,R=function(b,O){this.set=b,this.size=E(O,0),this.has=u(b.has),this.keys=u(b.keys)};R.prototype={getIterator:function(){return m(f(h(this.keys,this.set)))},includes:function(b){return h(this.has,this.set,b)}},x.exports=function(b){f(b);var O=+b.size;if(O!==O)throw new $(T);var C=v(O);if(C<0)throw new S(T);return new R(b,C)}}),(function(x,I,n){var u=n(23),f=function(v){return{size:v,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},h=function(v){return{size:v,has:function(){return!0},keys:function(){throw new Error("e")}}};x.exports=function(v,m){var T=u("Set");try{new T()[v](f(0));try{return new T()[v](f(-1)),!1}catch($){if(!m)return!0;try{return new T()[v](h(-1/0)),!1}catch(E){var S=new T([1,2]);return m(S[v](h(1/0)))}}}catch($){return!1}}}),(function(x,I,n){var u=n(3),f=n(7),h=n(462),v=n(460),m=!v("intersection",function(T){return T.size===2&&T.has(1)&&T.has(2)})||f(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:m},{intersection:h})}),(function(x,I,n){var u=n(453),f=n(454),h=n(458),v=n(459),m=n(456),T=n(457),S=f.Set,$=f.add,E=f.has;x.exports=function(b){var O=u(this),C=v(b),M=new S;return h(O)>C.size?T(C.getIterator(),function(P){E(O,P)&&$(M,P)}):m(O,function(P){C.includes(P)&&$(M,P)}),M}}),(function(x,I,n){var u=n(3),f=n(464),h=n(460),v=!h("isDisjointFrom",function(m){return!m});u({target:"Set",proto:!0,real:!0,forced:v},{isDisjointFrom:f})}),(function(x,I,n){var u=n(453),f=n(454).has,h=n(458),v=n(459),m=n(456),T=n(457),S=n(141);x.exports=function(E){var R=u(this),b=v(E);if(h(R)<=b.size)return m(R,function(C){if(b.includes(C))return!1},!0)!==!1;var O=b.getIterator();return T(O,function(C){if(f(R,C))return S(O,"normal",!1)})!==!1}}),(function(x,I,n){var u=n(3),f=n(466),h=n(460),v=!h("isSubsetOf",function(m){return m});u({target:"Set",proto:!0,real:!0,forced:v},{isSubsetOf:f})}),(function(x,I,n){var u=n(453),f=n(458),h=n(456),v=n(459);x.exports=function(T){var S=u(this),$=v(T);return f(S)>$.size?!1:h(S,function(E){if(!$.includes(E))return!1},!0)!==!1}}),(function(x,I,n){var u=n(3),f=n(468),h=n(460),v=!h("isSupersetOf",function(m){return!m});u({target:"Set",proto:!0,real:!0,forced:v},{isSupersetOf:f})}),(function(x,I,n){var u=n(453),f=n(454).has,h=n(458),v=n(459),m=n(457),T=n(141);x.exports=function($){var E=u(this),R=v($);if(h(E)<R.size)return!1;var b=R.getIterator();return m(b,function(O){if(!f(E,O))return T(b,"normal",!1)})!==!1}}),(function(x,I,n){var u=n(3),f=n(470),h=n(471),v=n(460),m=!v("symmetricDifference")||!h("symmetricDifference");u({target:"Set",proto:!0,real:!0,forced:m},{symmetricDifference:f})}),(function(x,I,n){var u=n(453),f=n(454),h=n(455),v=n(459),m=n(457),T=f.add,S=f.has,$=f.remove;x.exports=function(R){var b=u(this),O=v(R).getIterator(),C=h(b);return m(O,function(M){S(b,M)?$(C,M):T(C,M)}),C}}),(function(x){x.exports=function(I){try{var n=new Set,u={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return n.clear(),n.add(4),function(){return{done:!0}}}})}},f=n[I](u);return f.size===1&&f.values().next().value===4}catch(h){return!1}}}),(function(x,I,n){var u=n(3),f=n(473),h=n(471),v=n(460),m=!v("union")||!h("union");u({target:"Set",proto:!0,real:!0,forced:m},{union:f})}),(function(x,I,n){var u=n(453),f=n(454).add,h=n(455),v=n(459),m=n(457);x.exports=function(S){var $=u(this),E=v(S).getIterator(),R=h($);return m(E,function(b){f(R,b)}),R}}),(function(x,I,n){var u=n(3),f=n(14),h=n(16),v=n(61),m=n(68),T=n(7),S=f("".charAt),$=T(function(){return"\u{20BB7}".at(-2)!=="\uD842"});u({target:"String",proto:!0,forced:$},{at:function(R){var b=m(h(this)),O=b.length,C=v(R),M=C>=0?C:O+C;return M<0||M>=O?void 0:S(b,M)}})}),(function(x,I,n){var u=n(3),f=n(476).codeAt;u({target:"String",proto:!0},{codePointAt:function(v){return f(this,v)}})}),(function(x,I,n){var u=n(14),f=n(61),h=n(68),v=n(16),m=u("".charAt),T=u("".charCodeAt),S=u("".slice),$=function(E){return function(R,b){var O=h(v(R)),C=f(b),M=O.length,P,L;return C<0||C>=M?E?"":void 0:(P=T(O,C),P<55296||P>56319||C+1===M||(L=T(O,C+1))<56320||L>57343?E?m(O,C):P:E?S(O,C,C+2):(P-55296<<10)+(L-56320)+65536)}};x.exports={codeAt:$(!1),charAt:$(!0)}}),(function(x,I,n){var u=n(3),f=n(85),h=n(5).f,v=n(64),m=n(68),T=n(478),S=n(16),$=n(479),E=n(36),R=f("".slice),b=Math.min,O=$("endsWith"),C=!E&&!O&&!!(function(){var M=h(String.prototype,"endsWith");return M&&!M.writable})();u({target:"String",proto:!0,forced:!C&&!O},{endsWith:function(P){var L=m(S(this));T(P);var z=arguments.length>1?arguments[1]:void 0,B=L.length,U=z===void 0?B:b(v(z),B),j=m(P);return R(L,U-j.length,U)===j}})}),(function(x,I,n){var u=n(433),f=TypeError;x.exports=function(h){if(u(h))throw new f("The method doesn't accept regular expressions");return h}}),(function(x,I,n){var u=n(33),f=u("match");x.exports=function(h){var v=/./;try{"/./"[h](v)}catch(m){try{return v[f]=!1,"/./"[h](v)}catch(T){}}return!1}}),(function(x,I,n){var u=n(3),f=n(14),h=n(60),v=RangeError,m=String.fromCharCode,T=String.fromCodePoint,S=f([].join),$=!!T&&T.length!==1;u({target:"String",stat:!0,arity:1,forced:$},{fromCodePoint:function(R){for(var b=[],O=arguments.length,C=0,M;O>C;){if(M=+arguments[C++],h(M,1114111)!==M)throw new v(M+" is not a valid code point");b[C]=M<65536?m(M):m(((M-=65536)>>10)+55296,M%1024+56320)}return S(b,"")}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(478),v=n(16),m=n(68),T=n(479),S=f("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(E){return!!~S(m(v(this)),m(h(E)),arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(16),v=n(68),m=f("".charCodeAt);u({target:"String",proto:!0},{isWellFormed:function(){for(var S=v(h(this)),$=S.length,E=0;E<$;E++){var R=m(S,E);if((R&63488)===55296&&(R>=56320||++E>=$||(m(S,E)&64512)!==56320))return!1}return!0}})}),(function(x,I,n){var u=n(476).charAt,f=n(68),h=n(51),v=n(176),m=n(179),T="String Iterator",S=h.set,$=h.getterFor(T);v(String,"String",function(E){S(this,{type:T,string:f(E),index:0})},function(){var R=$(this),b=R.string,O=R.index,C;return O>=b.length?m(void 0,!0):(C=u(b,O),R.index+=C.length,m(C,!1))})}),(function(x,I,n){var u=n(8),f=n(14),h=n(485),v=n(46),m=n(20),T=n(64),S=n(68),$=n(16),E=n(29),R=n(486),b=n(434),O=n(487),C=f("".indexOf);h("match",function(M,P,L){return[function(B){var U=$(this),j=m(B)?E(B,M):void 0;return j?u(j,B,U):new RegExp(B)[M](S(U))},function(z){var B=v(this),U=S(z),j=L(P,B,U);if(j.done)return j.value;var G=S(b(B));if(C(G,"g")===-1)return O(B,U);var V=C(G,"u")!==-1;B.lastIndex=0;for(var X=[],H=0,Y;(Y=O(B,U))!==null;){var Z=S(Y[0]);X[H]=Z,Z===""&&(B.lastIndex=R(U,T(B.lastIndex),V)),H++}return H===0?null:X}]})}),(function(x,I,n){n(443);var u=n(8),f=n(47),h=n(444),v=n(7),m=n(33),T=n(43),S=m("species"),$=RegExp.prototype;x.exports=function(E,R,b,O){var C=m(E),M=!v(function(){var B={};return B[C]=function(){return 7},""[E](B)!==7}),P=M&&!v(function(){var B=!1,U=/a/;if(E==="split"){var j={};j[S]=function(){return U},U={constructor:j,flags:""},U[C]=/./[C]}return U.exec=function(){return B=!0,null},U[C](""),!B});if(!M||!P||b){var L=/./[C],z=R(C,""[E],function(B,U,j,G,V){var X=U.exec;return X===h||X===$.exec?M&&!V?{done:!0,value:u(L,U,j,G)}:{done:!0,value:u(B,j,U,G)}:{done:!1}});f(String.prototype,E,z[0]),f($,C,z[1])}O&&T($[C],"sham",!0)}}),(function(x,I,n){var u=n(476).charAt;x.exports=function(f,h,v){return h+(v?u(f,h).length:1)}}),(function(x,I,n){var u=n(8),f=n(46),h=n(21),v=n(15),m=n(444),T=TypeError;x.exports=function(S,$){var E=S.exec;if(h(E)){var R=u(E,S,$);return R!==null&&f(R),R}if(v(S)==="RegExp")return u(m,S,$);throw new T("RegExp#exec called on incompatible receiver")}}),(function(x,I,n){var u=n(3),f=n(8),h=n(85),v=n(177),m=n(179),T=n(16),S=n(64),$=n(68),E=n(46),R=n(20),b=n(15),O=n(433),C=n(434),M=n(29),P=n(47),L=n(7),z=n(33),B=n(381),U=n(486),j=n(487),G=n(51),V=n(36),X=z("matchAll"),H="RegExp String",Y=H+" Iterator",Z=G.set,k=G.getterFor(Y),et=RegExp.prototype,_=TypeError,tt=h("".indexOf),nt=h("".matchAll),at=!!nt&&!L(function(){nt("a",/./)}),ct=v(function(mt,It,At,Mt){Z(this,{type:Y,regexp:mt,string:It,global:At,unicode:Mt,done:!1})},H,function(){var mt=k(this);if(mt.done)return m(void 0,!0);var It=mt.regexp,At=mt.string,Mt=j(It,At);return Mt===null?(mt.done=!0,m(void 0,!0)):mt.global?($(Mt[0])===""&&(It.lastIndex=U(At,S(It.lastIndex),mt.unicode)),m(Mt,!1)):(mt.done=!0,m(Mt,!1))}),gt=function(pt){var mt=E(this),It=$(pt),At=B(mt,RegExp),Mt=$(C(mt)),ut,lt,Ct;return ut=new At(At===RegExp?mt.source:mt,Mt),lt=!!~tt(Mt,"g"),Ct=!!~tt(Mt,"u"),ut.lastIndex=S(mt.lastIndex),new ct(ut,It,lt,Ct)};u({target:"String",proto:!0,forced:at},{matchAll:function(mt){var It=T(this),At,Mt,ut,lt;if(R(mt)){if(O(mt)&&(At=$(T(C(mt))),!~tt(At,"g")))throw new _("`.matchAll` does not allow non-global regexes");if(at)return nt(It,mt);if(ut=M(mt,X),ut===void 0&&V&&b(mt)==="RegExp"&&(ut=gt),ut)return f(ut,mt,It)}else if(at)return nt(It,mt);return Mt=$(It),lt=new RegExp(mt,"g"),V?f(gt,lt,Mt):lt[X](Mt)}}),V||X in et||P(et,X,gt)}),(function(x,I,n){var u=n(3),f=n(247).end,h=n(490);u({target:"String",proto:!0,forced:h},{padEnd:function(m){return f(this,m,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(u)}),(function(x,I,n){var u=n(3),f=n(247).start,h=n(490);u({target:"String",proto:!0,forced:h},{padStart:function(m){return f(this,m,arguments.length>1?arguments[1]:void 0)}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(12),v=n(39),m=n(68),T=n(63),S=f([].push),$=f([].join);u({target:"String",stat:!0},{raw:function(R){var b=h(v(R).raw),O=T(b);if(!O)return"";for(var C=arguments.length,M=[],P=0;;){if(S(M,m(b[P++])),P===O)return $(M,"");P<C&&S(M,m(arguments[P]))}}})}),(function(x,I,n){var u=n(3),f=n(248);u({target:"String",proto:!0},{repeat:f})}),(function(x,I,n){var u=n(95),f=n(8),h=n(14),v=n(485),m=n(7),T=n(46),S=n(21),$=n(20),E=n(61),R=n(64),b=n(68),O=n(16),C=n(486),M=n(29),P=n(495),L=n(434),z=n(487),B=n(33),U=B("replace"),j=Math.max,G=Math.min,V=h([].concat),X=h([].push),H=h("".indexOf),Y=h("".slice),Z=function(tt){return tt===void 0?tt:String(tt)},k=(function(){return"a".replace(/./,"$0")==="$0"})(),et=(function(){return/./[U]?/./[U]("a","$0")==="":!1})(),_=!m(function(){var tt=/./;return tt.exec=function(){var nt=[];return nt.groups={a:"7"},nt},"".replace(tt,"$<a>")!=="7"});v("replace",function(tt,nt,at){var ct=et?"$":"$0";return[function(pt,mt){var It=O(this),At=$(pt)?M(pt,U):void 0;return At?f(At,pt,It,mt):f(nt,b(It),pt,mt)},function(gt,pt){var mt=T(this),It=b(gt);if(typeof pt=="string"&&H(pt,ct)===-1&&H(pt,"$<")===-1){var At=at(nt,mt,It,pt);if(At.done)return At.value}var Mt=S(pt);Mt||(pt=b(pt));var ut=b(L(mt)),lt=H(ut,"g")!==-1,Ct;lt&&(Ct=H(ut,"u")!==-1,mt.lastIndex=0);for(var Nt=[],Gt;Gt=z(mt,It),!(Gt===null||(X(Nt,Gt),!lt));){var Ot=b(Gt[0]);Ot===""&&(mt.lastIndex=C(It,R(mt.lastIndex),Ct))}for(var jt="",re=0,se=0;se<Nt.length;se++){Gt=Nt[se];for(var ne=b(Gt[0]),ae=j(G(E(Gt.index),It.length),0),Ae=[],Ie,pe=1;pe<Gt.length;pe++)X(Ae,Z(Gt[pe]));var le=Gt.groups;if(Mt){var Re=V([ne],Ae,ae,It);le!==void 0&&X(Re,le),Ie=b(u(pt,void 0,Re))}else Ie=P(ne,It,ae,Ae,le,pt);ae>=re&&(jt+=Y(It,re,ae)+Ie,re=ae+ne.length)}return jt+Y(It,re)}]},!_||!k||et)}),(function(x,I,n){var u=n(14),f=n(39),h=Math.floor,v=u("".charAt),m=u("".replace),T=u("".slice),S=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$=/\$([$&'`]|\d{1,2})/g;x.exports=function(E,R,b,O,C,M){var P=b+E.length,L=O.length,z=$;return C!==void 0&&(C=f(C),z=S),m(M,z,function(B,U){var j;switch(v(U,0)){case"$":return"$";case"&":return E;case"`":return T(R,0,b);case"'":return T(R,P);case"<":j=C[T(U,1,-1)];break;default:var G=+U;if(G===0)return B;if(G>L){var V=h(G/10);return V===0?B:V<=L?O[V-1]===void 0?v(U,1):O[V-1]+v(U,1):B}j=O[G-1]}return j===void 0?"":j})}}),(function(x,I,n){var u=n(3),f=n(8),h=n(14),v=n(16),m=n(21),T=n(20),S=n(433),$=n(68),E=n(29),R=n(434),b=n(495),O=n(33),C=n(36),M=O("replace"),P=TypeError,L=h("".indexOf),z=h("".replace),B=h("".slice),U=Math.max;u({target:"String",proto:!0},{replaceAll:function(G,V){var X=v(this),H,Y,Z,k,et,_,tt,nt,at,ct,gt=0,pt="";if(T(G)){if(H=S(G),H&&(Y=$(v(R(G))),!~L(Y,"g")))throw new P("`.replaceAll` does not allow non-global regexes");if(Z=E(G,M),Z)return f(Z,G,X,V);if(C&&H)return z($(X),G,V)}for(k=$(X),et=$(G),_=m(V),_||(V=$(V)),tt=et.length,nt=U(1,tt),at=L(k,et);at!==-1;)ct=_?$(V(et,at,k)):b(et,k,at,[],void 0,V),pt+=B(k,gt,at)+ct,gt=at+tt,at=at+nt>k.length?-1:L(k,et,at+nt);return gt<k.length&&(pt+=B(k,gt)),pt}})}),(function(x,I,n){var u=n(8),f=n(485),h=n(46),v=n(20),m=n(16),T=n(363),S=n(68),$=n(29),E=n(487);f("search",function(R,b,O){return[function(M){var P=m(this),L=v(M)?$(M,R):void 0;return L?u(L,M,P):new RegExp(M)[R](S(P))},function(C){var M=h(this),P=S(C),L=O(b,M,P);if(L.done)return L.value;var z=M.lastIndex;T(z,0)||(M.lastIndex=0);var B=E(M,P);return T(M.lastIndex,z)||(M.lastIndex=z),B===null?-1:B.index}]})}),(function(x,I,n){var u=n(8),f=n(14),h=n(485),v=n(46),m=n(20),T=n(16),S=n(381),$=n(486),E=n(64),R=n(68),b=n(29),O=n(487),C=n(437),M=n(7),P=C.UNSUPPORTED_Y,L=4294967295,z=Math.min,B=f([].push),U=f("".slice),j=!M(function(){var V=/(?:)/,X=V.exec;V.exec=function(){return X.apply(this,arguments)};var H="ab".split(V);return H.length!==2||H[0]!=="a"||H[1]!=="b"}),G="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,X,H){var Y="0".split(void 0,0).length?function(Z,k){return Z===void 0&&k===0?[]:u(X,this,Z,k)}:X;return[function(k,et){var _=T(this),tt=m(k)?b(k,V):void 0;return tt?u(tt,k,_,et):u(Y,R(_),k,et)},function(Z,k){var et=v(this),_=R(Z);if(!G){var tt=H(Y,et,_,k,Y!==X);if(tt.done)return tt.value}var nt=S(et,RegExp),at=et.unicode,ct=(et.ignoreCase?"i":"")+(et.multiline?"m":"")+(et.unicode?"u":"")+(P?"g":"y"),gt=new nt(P?"^(?:"+et.source+")":et,ct),pt=k===void 0?L:k>>>0;if(pt===0)return[];if(_.length===0)return O(gt,_)===null?[_]:[];for(var mt=0,It=0,At=[];It<_.length;){gt.lastIndex=P?0:It;var Mt=O(gt,P?U(_,It):_),ut;if(Mt===null||(ut=z(E(gt.lastIndex+(P?It:0)),_.length))===mt)It=$(_,It,at);else{if(B(At,U(_,mt,It)),At.length===pt)return At;for(var lt=1;lt<=Mt.length-1;lt++)if(B(At,Mt[lt]),At.length===pt)return At;It=mt=ut}}return B(At,U(_,mt)),At}]},G||!j,P)}),(function(x,I,n){var u=n(3),f=n(85),h=n(5).f,v=n(64),m=n(68),T=n(478),S=n(16),$=n(479),E=n(36),R=f("".slice),b=Math.min,O=$("startsWith"),C=!E&&!O&&!!(function(){var M=h(String.prototype,"startsWith");return M&&!M.writable})();u({target:"String",proto:!0,forced:!C&&!O},{startsWith:function(P){var L=m(S(this));T(P);var z=v(b(arguments.length>1?arguments[1]:void 0,L.length)),B=m(P);return R(L,z,z+B.length)===B}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(16),v=n(61),m=n(68),T=f("".slice),S=Math.max,$=Math.min,E=!"".substr||"ab".substr(-1)!=="b";u({target:"String",proto:!0,forced:E},{substr:function(b,O){var C=m(h(this)),M=C.length,P=v(b),L,z;return P===1/0&&(P=0),P<0&&(P=S(M+P,0)),L=O===void 0?M:v(O),L<=0||L===1/0?"":(z=$(P+L,M),P>=z?"":T(C,P,z))}})}),(function(x,I,n){var u=n(3),f=n(8),h=n(14),v=n(16),m=n(68),T=n(7),S=Array,$=h("".charAt),E=h("".charCodeAt),R=h([].join),b="".toWellFormed,O="\uFFFD",C=b&&T(function(){return f(b,1)!=="1"});u({target:"String",proto:!0,forced:C},{toWellFormed:function(){var P=m(v(this));if(C)return f(b,P);for(var L=P.length,z=S(L),B=0;B<L;B++){var U=E(P,B);(U&63488)!==55296?z[B]=$(P,B):U>=56320||B+1>=L||(E(P,B+1)&64512)!==56320?z[B]=O:(z[B]=$(P,B),z[++B]=$(P,B))}return R(z,"")}})}),(function(x,I,n){var u=n(3),f=n(326).trim,h=n(503);u({target:"String",proto:!0,forced:h("trim")},{trim:function(){return f(this)}})}),(function(x,I,n){var u=n(49).PROPER,f=n(7),h=n(327),v="\u200B\x85\u180E";x.exports=function(m){return f(function(){return!!h[m]()||v[m]()!==v||u&&h[m].name!==m})}}),(function(x,I,n){n(505);var u=n(3),f=n(506);u({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==f},{trimEnd:f})}),(function(x,I,n){var u=n(3),f=n(506);u({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==f},{trimRight:f})}),(function(x,I,n){var u=n(326).end,f=n(503);x.exports=f("trimEnd")?function(){return u(this)}:"".trimEnd}),(function(x,I,n){n(508);var u=n(3),f=n(509);u({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==f},{trimStart:f})}),(function(x,I,n){var u=n(3),f=n(509);u({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==f},{trimLeft:f})}),(function(x,I,n){var u=n(326).start,f=n(503);x.exports=f("trimStart")?function(){return u(this)}:"".trimStart}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("anchor")},{anchor:function(m){return f(this,"a","name",m)}})}),(function(x,I,n){var u=n(14),f=n(16),h=n(68),v=/"/g,m=u("".replace);x.exports=function(T,S,$,E){var R=h(f(T)),b="<"+S;return $!==""&&(b+=" "+$+'="'+m(h(E),v,""")+'"'),b+">"+R+"</"+S+">"}}),(function(x,I,n){var u=n(7);x.exports=function(f){return u(function(){var h=""[f]('"');return h!==h.toLowerCase()||h.split('"').length>3})}}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("big")},{big:function(){return f(this,"big","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("blink")},{blink:function(){return f(this,"blink","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("bold")},{bold:function(){return f(this,"b","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return f(this,"tt","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(m){return f(this,"font","color",m)}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(m){return f(this,"font","size",m)}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("italics")},{italics:function(){return f(this,"i","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("link")},{link:function(m){return f(this,"a","href",m)}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("small")},{small:function(){return f(this,"small","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("strike")},{strike:function(){return f(this,"strike","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("sub")},{sub:function(){return f(this,"sub","","")}})}),(function(x,I,n){var u=n(3),f=n(511),h=n(512);u({target:"String",proto:!0,forced:h("sup")},{sup:function(){return f(this,"sup","","")}})}),(function(x,I,n){var u=n(526);u("Float32",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(8),v=n(6),m=n(527),T=n(223),S=n(212),$=n(215),E=n(11),R=n(43),b=n(332),O=n(64),C=n(216),M=n(528),P=n(529),L=n(18),z=n(38),B=n(69),U=n(20),j=n(22),G=n(71),V=n(24),X=n(118),H=n(57).f,Y=n(530),Z=n(83).forEach,k=n(200),et=n(77),_=n(44),tt=n(5),nt=n(204),at=n(51),ct=n(123),gt=at.get,pt=at.set,mt=at.enforce,It=_.f,At=tt.f,Mt=f.RangeError,ut=S.ArrayBuffer,lt=ut.prototype,Ct=S.DataView,Nt=T.NATIVE_ARRAY_BUFFER_VIEWS,Gt=T.TYPED_ARRAY_TAG,Ot=T.TypedArray,jt=T.TypedArrayPrototype,re=T.isTypedArray,se="BYTES_PER_ELEMENT",ne="Wrong length",ae=function(Re,Se){et(Re,Se,{configurable:!0,get:function(){return gt(this)[Se]}})},Ae=function(Re){var Se;return V(lt,Re)||(Se=B(Re))==="ArrayBuffer"||Se==="SharedArrayBuffer"},Ie=function(Re,Se){return re(Re)&&!j(Se)&&Se in Re&&b(+Se)&&Se>=0},pe=function(Se,me){return me=L(me),Ie(Se,me)?E(2,Se[me]):At(Se,me)},le=function(Se,me,wt){return me=L(me),Ie(Se,me)&&U(wt)&&z(wt,"value")&&!z(wt,"get")&&!z(wt,"set")&&!wt.configurable&&(!z(wt,"writable")||wt.writable)&&(!z(wt,"enumerable")||wt.enumerable)?(Se[me]=wt.value,Se):It(Se,me,wt)};v?(Nt||(tt.f=pe,_.f=le,ae(jt,"buffer"),ae(jt,"byteOffset"),ae(jt,"byteLength"),ae(jt,"length")),u({target:"Object",stat:!0,forced:!Nt},{getOwnPropertyDescriptor:pe,defineProperty:le}),x.exports=function(Re,Se,me){var wt=Re.match(/\d+/)[0]/8,Yt=Re+(me?"Clamped":"")+"Array",ue="get"+Re,Vt="set"+Re,_t=f[Yt],te=_t,Zt=te&&te.prototype,xe={},We=function(Ut,Xt){var Pt=gt(Ut);return Pt.view[ue](Xt*wt+Pt.byteOffset,!0)},ht=function(Ut,Xt,Pt){var ce=gt(Ut);ce.view[Vt](Xt*wt+ce.byteOffset,me?P(Pt):Pt,!0)},Lt=function(Ut,Xt){It(Ut,Xt,{get:function(){return We(this,Xt)},set:function(Pt){return ht(this,Xt,Pt)},enumerable:!0})};Nt?m&&(te=Se(function(Ut,Xt,Pt,ce){return $(Ut,Zt),ct((function(){return U(Xt)?Ae(Xt)?ce!==void 0?new _t(Xt,M(Pt,wt),ce):Pt!==void 0?new _t(Xt,M(Pt,wt)):new _t(Xt):re(Xt)?nt(te,Xt):h(Y,te,Xt):new _t(C(Xt))})(),Ut,te)}),X&&X(te,Ot),Z(H(_t),function(Ut){Ut in te||R(te,Ut,_t[Ut])}),te.prototype=Zt):(te=Se(function(Ut,Xt,Pt,ce){$(Ut,Zt);var De=0,Dt=0,Jt,Qt,qt;if(!U(Xt))qt=C(Xt),Qt=qt*wt,Jt=new ut(Qt);else if(Ae(Xt)){Jt=Xt,Dt=M(Pt,wt);var ve=Xt.byteLength;if(ce===void 0){if(ve%wt)throw new Mt(ne);if(Qt=ve-Dt,Qt<0)throw new Mt(ne)}else if(Qt=O(ce)*wt,Qt+Dt>ve)throw new Mt(ne);qt=Qt/wt}else return re(Xt)?nt(te,Xt):h(Y,te,Xt);for(pt(Ut,{buffer:Jt,byteOffset:Dt,byteLength:Qt,length:qt,view:new Ct(Jt)});De<qt;)Lt(Ut,De++)}),X&&X(te,Ot),Zt=te.prototype=G(jt)),Zt.constructor!==te&&R(Zt,"constructor",te),mt(Zt).TypedArrayConstructor=te,Gt&&R(Zt,Gt,Yt);var Bt=te!==_t;xe[Yt]=te,u({global:!0,constructor:!0,forced:Bt,sham:!Nt},xe),se in te||R(te,se,wt),se in Zt||R(Zt,se,wt),k(Yt)}):x.exports=function(){}}),(function(x,I,n){var u=n(4),f=n(7),h=n(171),v=n(223).NATIVE_ARRAY_BUFFER_VIEWS,m=u.ArrayBuffer,T=u.Int8Array;x.exports=!v||!f(function(){T(1)})||!f(function(){new T(-1)})||!h(function(S){new T,new T(null),new T(1.5),new T(S)},!0)||f(function(){return new T(new m(2),1,void 0).length!==1})}),(function(x,I,n){var u=n(269),f=RangeError;x.exports=function(h,v){var m=u(h);if(m%v)throw new f("Wrong offset");return m}}),(function(x){var I=Math.round;x.exports=function(n){var u=I(n);return u<0?0:u>255?255:u&255}}),(function(x,I,n){var u=n(84),f=n(8),h=n(382),v=n(39),m=n(63),T=n(139),S=n(140),$=n(137),E=n(531),R=n(223).aTypedArrayConstructor,b=n(532);x.exports=function(C){var M=h(this),P=v(C),L=arguments.length,z=L>1?arguments[1]:void 0,B=z!==void 0,U=S(P),j,G,V,X,H,Y,Z,k;if(U&&!$(U))for(Z=T(P,U),k=Z.next,P=[];!(Y=f(k,Z)).done;)P.push(Y.value);for(B&&L>2&&(z=u(z,arguments[2])),G=m(P),V=new(R(M))(G),X=E(V),j=0;G>j;j++)H=B?z(P[j],j):P[j],V[j]=X?b(H):+H;return V}}),(function(x,I,n){var u=n(69);x.exports=function(f){var h=u(f);return h==="BigInt64Array"||h==="BigUint64Array"}}),(function(x,I,n){var u=n(19),f=TypeError;x.exports=function(h){var v=u(h,"number");if(typeof v=="number")throw new f("Can't convert number to bigint");return BigInt(v)}}),(function(x,I,n){var u=n(526);u("Float64",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(526);u("Int8",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(526);u("Int16",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(526);u("Int32",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(526);u("Uint8",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(526);u("Uint8",function(f){return function(v,m,T){return f(this,v,m,T)}},!0)}),(function(x,I,n){var u=n(526);u("Uint16",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(526);u("Uint32",function(f){return function(v,m,T){return f(this,v,m,T)}})}),(function(x,I,n){var u=n(223),f=n(63),h=n(61),v=u.aTypedArray,m=u.exportTypedArrayMethod;m("at",function(S){var $=v(this),E=f($),R=h(S),b=R>=0?R:E+R;return b<0||b>=E?void 0:$[b]})}),(function(x,I,n){var u=n(14),f=n(223),h=n(151),v=u(h),m=f.aTypedArray,T=f.exportTypedArrayMethod;T("copyWithin",function($,E){return v(m(this),$,E,arguments.length>2?arguments[2]:void 0)})}),(function(x,I,n){var u=n(223),f=n(83).every,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("every",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(156),h=n(532),v=n(69),m=n(8),T=n(14),S=n(7),$=u.aTypedArray,E=u.exportTypedArrayMethod,R=T("".slice),b=S(function(){var O=0;return new Int8Array(2).fill({valueOf:function(){return O++}}),O!==1});E("fill",function(C){var M=arguments.length;$(this);var P=R(v(this),0,3)==="Big"?h(C):+C;return m(f,this,P,M>1?arguments[1]:void 0,M>2?arguments[2]:void 0)},b)}),(function(x,I,n){var u=n(223),f=n(83).filter,h=n(546),v=u.aTypedArray,m=u.exportTypedArrayMethod;m("filter",function(S){var $=f(v(this),S,arguments.length>1?arguments[1]:void 0);return h(this,$)})}),(function(x,I,n){var u=n(204),f=n(223).getTypedArrayConstructor;x.exports=function(h,v){return u(f(h),v)}}),(function(x,I,n){var u=n(223),f=n(83).find,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("find",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(83).findIndex,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("findIndex",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(161).findLast,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("findLast",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(161).findLastIndex,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("findLastIndex",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(83).forEach,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("forEach",function(T){f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(527),f=n(223).exportTypedArrayStaticMethod,h=n(530);f("from",h,u)}),(function(x,I,n){var u=n(223),f=n(59).includes,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("includes",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(59).indexOf,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("indexOf",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(4),f=n(7),h=n(14),v=n(223),m=n(175),T=n(33),S=T("iterator"),$=u.Uint8Array,E=h(m.values),R=h(m.keys),b=h(m.entries),O=v.aTypedArray,C=v.exportTypedArrayMethod,M=$&&$.prototype,P=!f(function(){M[S].call([1])}),L=!!M&&M.values&&M[S]===M.values&&M.values.name==="values",z=function(){return E(O(this))};C("entries",function(){return b(O(this))},P),C("keys",function(){return R(O(this))},P),C("values",z,P||!L,{name:"values"}),C(S,z,P||!L,{name:"values"})}),(function(x,I,n){var u=n(223),f=n(14),h=u.aTypedArray,v=u.exportTypedArrayMethod,m=f([].join);v("join",function(S){return m(h(this),S)})}),(function(x,I,n){var u=n(223),f=n(95),h=n(182),v=u.aTypedArray,m=u.exportTypedArrayMethod;m("lastIndexOf",function(S){var $=arguments.length;return f(h,v(this),$>1?[S,arguments[1]]:[S])})}),(function(x,I,n){var u=n(223),f=n(83).map,h=n(546),v=u.aTypedArray,m=u.exportTypedArrayMethod;m("map",function(S){var $=f(v(this),S,arguments.length>1?arguments[1]:void 0);return h(this,$)})}),(function(x,I,n){var u=n(223),f=n(527),h=u.aTypedArrayConstructor,v=u.exportTypedArrayStaticMethod;v("of",function(){for(var T=0,S=arguments.length,$=new(h(this))(S);S>T;)$[T]=arguments[T++];return $},f)}),(function(x,I,n){var u=n(223),f=n(187).left,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("reduce",function(T){var S=arguments.length;return f(h(this),T,S,S>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=n(187).right,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("reduceRight",function(T){var S=arguments.length;return f(h(this),T,S,S>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(223),f=u.aTypedArray,h=u.exportTypedArrayMethod,v=Math.floor;h("reverse",function(){for(var T=this,S=f(T).length,$=v(S/2),E=0,R;E<$;)R=T[E],T[E++]=T[--S],T[S]=R;return T})}),(function(x,I,n){var u=n(4),f=n(8),h=n(223),v=n(63),m=n(528),T=n(39),S=n(7),$=u.RangeError,E=u.Int8Array,R=E&&E.prototype,b=R&&R.set,O=h.aTypedArray,C=h.exportTypedArrayMethod,M=!S(function(){var L=new Uint8ClampedArray(2);return f(b,L,{length:1,0:3},1),L[1]!==3}),P=M&&h.NATIVE_ARRAY_BUFFER_VIEWS&&S(function(){var L=new E(2);return L.set(1),L.set("2",1),L[0]!==0||L[1]!==2});C("set",function(z){O(this);var B=m(arguments.length>1?arguments[1]:void 0,1),U=T(z);if(M)return f(b,this,U,B);var j=this.length,G=v(U),V=0;if(G+B>j)throw new $("Wrong length");for(;V<G;)this[B+V]=U[V++]},!M||P)}),(function(x,I,n){var u=n(223),f=n(7),h=n(76),v=u.aTypedArray,m=u.getTypedArrayConstructor,T=u.exportTypedArrayMethod,S=f(function(){new Int8Array(1).slice()});T("slice",function(E,R){for(var b=h(v(this),E,R),O=m(this),C=0,M=b.length,P=new O(M);M>C;)P[C]=b[C++];return P},S)}),(function(x,I,n){var u=n(223),f=n(83).some,h=u.aTypedArray,v=u.exportTypedArrayMethod;v("some",function(T){return f(h(this),T,arguments.length>1?arguments[1]:void 0)})}),(function(x,I,n){var u=n(4),f=n(85),h=n(7),v=n(30),m=n(195),T=n(223),S=n(196),$=n(197),E=n(27),R=n(198),b=T.aTypedArray,O=T.exportTypedArrayMethod,C=u.Uint16Array,M=C&&f(C.prototype.sort),P=!!M&&!(h(function(){M(new C(2),null)})&&h(function(){M(new C(2),{})})),L=!!M&&!h(function(){if(E)return E<74;if(S)return S<67;if($)return!0;if(R)return R<602;var B=new C(516),U=Array(516),j,G;for(j=0;j<516;j++)G=j%4,B[j]=515-j,U[j]=j-2*G+3;for(M(B,function(V,X){return(V/4|0)-(X/4|0)}),j=0;j<516;j++)if(B[j]!==U[j])return!0}),z=function(B){return function(U,j){return B!==void 0?+B(U,j)||0:j!==j?-1:U!==U?1:U===0&&j===0?1/U>0&&1/j<0?1:-1:U>j}};O("sort",function(U){return U!==void 0&&v(U),L?M(this,U):m(b(this),z(U))},!L||P)}),(function(x,I,n){var u=n(223),f=n(64),h=n(60),v=u.aTypedArray,m=u.getTypedArrayConstructor,T=u.exportTypedArrayMethod;T("subarray",function($,E){var R=v(this),b=R.length,O=h($,b),C=m(R);return new C(R.buffer,R.byteOffset+O*R.BYTES_PER_ELEMENT,f((E===void 0?b:h(E,b))-O))})}),(function(x,I,n){var u=n(4),f=n(95),h=n(223),v=n(7),m=n(76),T=u.Int8Array,S=h.aTypedArray,$=h.exportTypedArrayMethod,E=[].toLocaleString,R=!!T&&v(function(){E.call(new T(1))}),b=v(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!v(function(){T.prototype.toLocaleString.call([1,2])});$("toLocaleString",function(){return f(E,R?m(S(this)):S(this),m(arguments))},b)}),(function(x,I,n){var u=n(63),f=n(223),h=f.aTypedArray,v=f.exportTypedArrayMethod,m=f.getTypedArrayConstructor;v("toReversed",function(){for(var S=h(this),$=u(S),E=new(m(S))($),R=0;R<$;R++)E[R]=S[$-R-1];return E})}),(function(x,I,n){var u=n(223),f=n(14),h=n(30),v=n(204),m=u.aTypedArray,T=u.getTypedArrayConstructor,S=u.exportTypedArrayMethod,$=f(u.TypedArrayPrototype.sort);S("toSorted",function(R){R!==void 0&&h(R);var b=m(this),O=v(T(b),b);return $(O,R)})}),(function(x,I,n){var u=n(223).exportTypedArrayMethod,f=n(7),h=n(4),v=n(14),m=h.Uint8Array,T=m&&m.prototype||{},S=[].toString,$=v([].join);f(function(){S.call({})})&&(S=function(){return $(this)});var E=T.toString!==S;u("toString",S,E)}),(function(x,I,n){var u=n(223),f=n(531),h=n(63),v=n(61),m=n(532),T=u.aTypedArray,S=u.getTypedArrayConstructor,$=u.exportTypedArrayMethod,E=RangeError,R=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(O){return O===8}})(),b=R&&(function(){try{new Int8Array(1).with(-.5,1)}catch(O){return!0}})();$("with",function(O,C){var M=T(this),P=h(M),L=v(O),z=L<0?P+L:L,B=f(M)?m(C):+C;if(z>=P||z<0)throw new E("Incorrect index");for(var U=new(S(M))(P),j=0;j<P;j++)U[j]=j===z?B:M[j];return U},!R||b)}),(function(x,I,n){var u=n(3),f=n(4),h=n(204),v=n(574),m=f.Uint8Array,T=!m||!m.fromBase64||!(function(){try{m.fromBase64("a");return}catch(S){}try{m.fromBase64("",null)}catch(S){return!0}})();m&&u({target:"Uint8Array",stat:!0,forced:T},{fromBase64:function($){var E=v($,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return h(m,E.bytes)}})}),(function(x,I,n){var u=n(4),f=n(14),h=n(575),v=n(441),m=n(38),T=n(576),S=n(577),$=n(236),E=T.c2i,R=T.c2iUrl,b=u.SyntaxError,O=u.TypeError,C=f("".charAt),M=function(z,B){for(var U=z.length;B<U;B++){var j=C(z,B);if(j!==" "&&j!==" "&&j!==`
|
|
32
|
+
`&&j!=="\f"&&j!=="\r")break}return B},P=function(z,B,U){var j=z.length;j<4&&(z+=j===2?"AA":"A");var G=(B[C(z,0)]<<18)+(B[C(z,1)]<<12)+(B[C(z,2)]<<6)+B[C(z,3)],V=[G>>16&255,G>>8&255,G&255];if(j===2){if(U&&V[1]!==0)throw new b("Extra bits");return[V[0]]}if(j===3){if(U&&V[2]!==0)throw new b("Extra bits");return[V[0],V[1]]}return V},L=function(z,B,U){for(var j=B.length,G=0;G<j;G++)z[U+G]=B[G];return U+j};x.exports=function(z,B,U,j){v(z),h(B);var G=S(B)==="base64"?E:R,V=B?B.lastChunkHandling:void 0;if(V===void 0&&(V="loose"),V!=="loose"&&V!=="strict"&&V!=="stop-before-partial")throw new O("Incorrect `lastChunkHandling` option");U&&$(U.buffer);var X=z.length,H=U||[],Y=0,Z=0,k="",et=0;if(j)for(;;){if(et=M(z,et),et===X){if(k.length>0){if(V==="stop-before-partial")break;if(V==="loose"){if(k.length===1)throw new b("Malformed padding: exactly one additional character");Y=L(H,P(k,G,!1),Y)}else throw new b("Missing padding")}Z=X;break}var _=C(z,et);if(++et,_==="="){if(k.length<2)throw new b("Padding is too early");if(et=M(z,et),k.length===2){if(et===X){if(V==="stop-before-partial")break;throw new b("Malformed padding: only one =")}C(z,et)==="="&&(++et,et=M(z,et))}if(et<X)throw new b("Unexpected character after padding");Y=L(H,P(k,G,V==="strict"),Y),Z=X;break}if(!m(G,_))throw new b("Unexpected character");var tt=j-Y;if(tt===1&&k.length===2||tt===2&&k.length===3||(k+=_,k.length===4&&(Y=L(H,P(k,G,!1),Y),k="",Z=et,Y===j)))break}return{bytes:H,read:Z,written:Y}}}),(function(x,I,n){var u=n(20),f=String,h=TypeError;x.exports=function(v){if(v===void 0||u(v))return v;throw new h(f(v)+" is not an object or undefined")}}),(function(x){var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=I+"+/",u=I+"-_",f=function(h){for(var v={},m=0;m<64;m++)v[h.charAt(m)]=m;return v};x.exports={i2c:n,c2i:f(n),i2cUrl:u,c2iUrl:f(u)}}),(function(x){var I=TypeError;x.exports=function(n){var u=n&&n.alphabet;if(u===void 0||u==="base64"||u==="base64url")return u||"base64";throw new I("Incorrect `alphabet` option")}}),(function(x,I,n){var u=n(3),f=n(4),h=n(441),v=n(579);f.Uint8Array&&u({target:"Uint8Array",stat:!0},{fromHex:function(T){return v(h(T)).bytes}})}),(function(x,I,n){var u=n(4),f=n(14),h=u.Uint8Array,v=u.SyntaxError,m=u.parseInt,T=Math.min,S=/[^\da-f]/i,$=f(S.exec),E=f("".slice);x.exports=function(R,b){var O=R.length;if(O%2!==0)throw new v("String should be an even number of characters");for(var C=b?T(b.length,O/2):O/2,M=b||new h(C),P=0,L=0;L<C;){var z=E(R,P,P+=2);if($(S,z))throw new v("String should only contain hex characters");M[L++]=m(z,16)}return{bytes:M,read:P}}}),(function(x,I,n){var u=n(3),f=n(4),h=n(574),v=n(581),m=f.Uint8Array,T=!m||!m.prototype.setFromBase64||!(function(){var S=new m([255,255,255,255,255]);try{S.setFromBase64("",null);return}catch($){}try{S.setFromBase64("a");return}catch($){}try{S.setFromBase64("MjYyZg===")}catch($){return S[0]===50&&S[1]===54&&S[2]===50&&S[3]===255&&S[4]===255}})();m&&u({target:"Uint8Array",proto:!0,forced:T},{setFromBase64:function($){v(this);var E=h($,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:E.read,written:E.written}}})}),(function(x,I,n){var u=n(69),f=TypeError;x.exports=function(h){if(u(h)==="Uint8Array")return h;throw new f("Argument is not an Uint8Array")}}),(function(x,I,n){var u=n(3),f=n(4),h=n(441),v=n(581),m=n(236),T=n(579);function S(){try{var $=new ArrayBuffer(16,{maxByteLength:1024});new Uint8Array($).setFromHex("cafed00d")}catch(E){return!0}}f.Uint8Array&&u({target:"Uint8Array",proto:!0,forced:S()},{setFromHex:function(E){v(this),h(E),m(this.buffer);var R=T(E,this).read;return{read:R,written:R/2}}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(14),v=n(575),m=n(581),T=n(236),S=n(576),$=n(577),E=S.i2c,R=S.i2cUrl,b=h("".charAt),O=f.Uint8Array,C=!O||!O.prototype.toBase64||!(function(){try{var M=new O;M.toBase64(null)}catch(P){return!0}})();O&&u({target:"Uint8Array",proto:!0,forced:C},{toBase64:function(){var P=m(this),L=arguments.length?v(arguments[0]):void 0,z=$(L)==="base64"?E:R,B=!!L&&!!L.omitPadding;T(this.buffer);for(var U="",j=0,G=P.length,V,X=function(H){return b(z,V>>6*H&63)};j+2<G;j+=3)V=(P[j]<<16)+(P[j+1]<<8)+P[j+2],U+=X(3)+X(2)+X(1)+X(0);return j+2===G?(V=(P[j]<<16)+(P[j+1]<<8),U+=X(3)+X(2)+X(1)+(B?"":"=")):j+1===G&&(V=P[j]<<16,U+=X(3)+X(2)+(B?"":"==")),U}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(14),v=n(581),m=n(236),T=h(1.1.toString),S=f.Uint8Array,$=!S||!S.prototype.toHex||!(function(){try{var E=new S([255,255,255,255,255,255,255,255]);return E.toHex()==="ffffffffffffffff"}catch(R){return!1}})();S&&u({target:"Uint8Array",proto:!0,forced:$},{toHex:function(){v(this),m(this.buffer);for(var R="",b=0,O=this.length;b<O;b++){var C=T(this[b],16);R+=C.length===1?"0"+C:C}return R}})}),(function(x,I,n){var u=n(3),f=n(14),h=n(68),v=String.fromCharCode,m=f("".charAt),T=f(/./.exec),S=f("".slice),$=/^[\da-f]{2}$/i,E=/^[\da-f]{4}$/i;u({global:!0},{unescape:function(b){for(var O=h(b),C="",M=O.length,P=0,L,z;P<M;){if(L=m(O,P++),L==="%"){if(m(O,P)==="u"){if(z=S(O,P+1,P+5),T(E,z)){C+=v(parseInt(z,16)),P+=5;continue}}else if(z=S(O,P,P+2),T($,z)){C+=v(parseInt(z,16)),P+=2;continue}}C+=L}return C}})}),(function(x,I,n){n(587)}),(function(x,I,n){var u=n(287),f=n(4),h=n(14),v=n(214),m=n(292),T=n(291),S=n(588),$=n(20),E=n(51).enforce,R=n(7),b=n(52),O=Object,C=Array.isArray,M=O.isExtensible,P=O.isFrozen,L=O.isSealed,z=O.freeze,B=O.seal,U=!f.ActiveXObject&&"ActiveXObject"in f,j,G=function(_){return function(){return _(this,arguments.length?arguments[0]:void 0)}},V=T("WeakMap",G,S),X=V.prototype,H=h(X.set),Y=function(){return u&&R(function(){var _=z([]);return H(new V,_,1),!P(_)})};if(b)if(U){j=S.getConstructor(G,"WeakMap",!0),m.enable();var Z=h(X.delete),k=h(X.has),et=h(X.get);v(X,{delete:function(_){if($(_)&&!M(_)){var tt=E(this);return tt.frozen||(tt.frozen=new j),Z(this,_)||tt.frozen.delete(_)}return Z(this,_)},has:function(tt){if($(tt)&&!M(tt)){var nt=E(this);return nt.frozen||(nt.frozen=new j),k(this,tt)||nt.frozen.has(tt)}return k(this,tt)},get:function(tt){if($(tt)&&!M(tt)){var nt=E(this);return nt.frozen||(nt.frozen=new j),k(this,tt)?et(this,tt):nt.frozen.get(tt)}return et(this,tt)},set:function(tt,nt){if($(tt)&&!M(tt)){var at=E(this);at.frozen||(at.frozen=new j),k(this,tt)?H(this,tt,nt):at.frozen.set(tt,nt)}else H(this,tt,nt);return this}})}else Y()&&v(X,{set:function(tt,nt){var at;return C(tt)&&(P(tt)?at=z:L(tt)&&(at=B)),H(this,tt,nt),at&&at(tt),this}})}),(function(x,I,n){var u=n(14),f=n(214),h=n(292).getWeakData,v=n(215),m=n(46),T=n(17),S=n(20),$=n(136),E=n(83),R=n(38),b=n(51),O=b.set,C=b.getterFor,M=E.find,P=E.findIndex,L=u([].splice),z=0,B=function(G){return G.frozen||(G.frozen=new U)},U=function(){this.entries=[]},j=function(G,V){return M(G.entries,function(X){return X[0]===V})};U.prototype={get:function(G){var V=j(this,G);if(V)return V[1]},has:function(G){return!!j(this,G)},set:function(G,V){var X=j(this,G);X?X[1]=V:this.entries.push([G,V])},delete:function(G){var V=P(this.entries,function(X){return X[0]===G});return~V&&L(this.entries,V,1),!!~V}},x.exports={getConstructor:function(G,V,X,H){var Y=G(function(_,tt){v(_,Z),O(_,{type:V,id:z++,frozen:null}),T(tt)||$(tt,_[H],{that:_,AS_ENTRIES:X})}),Z=Y.prototype,k=C(V),et=function(_,tt,nt){var at=k(_),ct=h(m(tt),!0);return ct===!0?B(at).set(tt,nt):ct[at.id]=nt,_};return f(Z,{delete:function(_){var tt=k(this);if(!S(_))return!1;var nt=h(_);return nt===!0?B(tt).delete(_):nt&&R(nt,tt.id)&&delete nt[tt.id]},has:function(tt){var nt=k(this);if(!S(tt))return!1;var at=h(tt);return at===!0?B(nt).has(tt):at&&R(at,nt.id)}}),f(Z,X?{get:function(tt){var nt=k(this);if(S(tt)){var at=h(tt);if(at===!0)return B(nt).get(tt);if(at)return at[nt.id]}},set:function(tt,nt){return et(this,tt,nt)}}:{add:function(tt){return et(this,tt,!0)}}),Y}}}),(function(x,I,n){var u=n(3),f=n(590),h=n(591),v=n(36),m=h.get,T=h.has,S=h.set;u({target:"WeakMap",proto:!0,real:!0,forced:v},{getOrInsert:function(E,R){return T(f(this),E)?m(this,E):(S(this,E,R),R)}})}),(function(x,I,n){var u=n(591).has;x.exports=function(f){return u(f),f}}),(function(x,I,n){var u=n(14),f=WeakMap.prototype;x.exports={WeakMap,set:u(f.set),get:u(f.get),has:u(f.has),remove:u(f.delete)}}),(function(x,I,n){var u=n(3),f=n(30),h=n(590),v=n(593),m=n(591),T=n(36),S=m.get,$=m.has,E=m.set,R=T||!(function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(b){return b instanceof TypeError}})();u({target:"WeakMap",proto:!0,real:!0,forced:R},{getOrInsertComputed:function(O,C){if(h(this),v(O),f(C),$(this,O))return S(this,O);var M=C(O);return E(this,O,M),M}})}),(function(x,I,n){var u=n(591),f=new u.WeakMap,h=u.set,v=u.remove;x.exports=function(m){return h(f,m,1),v(f,m),m}}),(function(x,I,n){n(595)}),(function(x,I,n){var u=n(291),f=n(588);u("WeakSet",function(h){return function(){return h(this,arguments.length?arguments[0]:void 0)}},f)}),(function(x,I,n){var u=n(3),f=n(4),h=n(23),v=n(14),m=n(8),T=n(7),S=n(68),$=n(384),E=n(576).c2i,R=/[^\d+/a-z]/i,b=/[\t\n\f\r ]+/g,O=/[=]{1,2}$/,C=h("atob"),M=String.fromCharCode,P=v("".charAt),L=v("".replace),z=v(R.exec),B=!!C&&!T(function(){return C("aGk=")!=="hi"}),U=B&&T(function(){return C(" ")!==""}),j=B&&!T(function(){C("a")}),G=B&&!T(function(){C()}),V=B&&C.length!==1,X=!B||U||j||G||V;u({global:!0,bind:!0,enumerable:!0,forced:X},{atob:function(Y){if($(arguments.length,1),B&&!U&&!j)return m(C,f,Y);var Z=L(S(Y),b,""),k="",et=0,_=0,tt,nt,at;if(Z.length%4===0&&(Z=L(Z,O,"")),tt=Z.length,tt%4===1||z(R,Z))throw new(h("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;et<tt;)nt=P(Z,et++),at=_%4?at*64+E[nt]:E[nt],_++%4&&(k+=M(255&at>>(-2*_&6)));return k}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(23),v=n(14),m=n(8),T=n(7),S=n(68),$=n(384),E=n(576).i2c,R=h("btoa"),b=v("".charAt),O=v("".charCodeAt),C=!!R&&!T(function(){return R("hi")!=="aGk="}),M=C&&!T(function(){R()}),P=C&&T(function(){return R(null)!=="bnVsbA=="}),L=C&&R.length!==1;u({global:!0,bind:!0,enumerable:!0,forced:!C||M||P||L},{btoa:function(B){if($(arguments.length,1),C)return m(R,f,S(B));for(var U=S(B),j="",G=0,V=E,X,H;b(U,G)||(V="=",G%1);){if(H=O(U,G+=.75),H>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");X=X<<8|H,j+=b(V,63&X>>8-G%1*8)}return j}})}),(function(x,I,n){var u=n(4),f=n(599),h=n(600),v=n(167),m=n(43),T=function($){if($&&$.forEach!==v)try{m($,"forEach",v)}catch(E){$.forEach=v}};for(var S in f)f[S]&&T(u[S]&&u[S].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,I,n){var u=n(42),f=u("span").classList,h=f&&f.constructor&&f.constructor.prototype;x.exports=h===Object.prototype?void 0:h}),(function(x,I,n){var u=n(4),f=n(599),h=n(600),v=n(175),m=n(43),T=n(82),S=n(33),$=S("iterator"),E=v.values,R=function(O,C){if(O){if(O[$]!==E)try{m(O,$,E)}catch(P){O[$]=E}if(T(O,C,!0),f[C]){for(var M in v)if(O[M]!==v[M])try{m(O,M,v[M])}catch(P){O[M]=v[M]}}}};for(var b in f)R(u[b]&&u[b].prototype,b);R(h,"DOMTokenList")}),(function(x,I,n){var u=n(3),f=n(23),h=n(238),v=n(7),m=n(71),T=n(11),S=n(44).f,$=n(47),E=n(77),R=n(38),b=n(215),O=n(46),C=n(131),M=n(124),P=n(603),L=n(127),z=n(51),B=n(6),U=n(36),j="DOMException",G="DATA_CLONE_ERR",V=f("Error"),X=f(j)||(function(){try{var Ot=f("MessageChannel")||h("worker_threads").MessageChannel;new Ot().port1.postMessage(new WeakMap)}catch(jt){if(jt.name===G&&jt.code===25)return jt.constructor}})(),H=X&&X.prototype,Y=V.prototype,Z=z.set,k=z.getterFor(j),et="stack"in new V(j),_=function(Ot){return R(P,Ot)&&P[Ot].m?P[Ot].c:0},tt=function(){b(this,nt);var jt=arguments.length,re=M(jt<1?void 0:arguments[0]),se=M(jt<2?void 0:arguments[1],"Error"),ne=_(se);if(Z(this,{type:j,name:se,message:re,code:ne}),B||(this.name=se,this.message=re,this.code=ne),et){var ae=new V(re);ae.name=j,S(this,"stack",T(1,L(ae.stack,1)))}},nt=tt.prototype=m(Y),at=function(Ot){return{enumerable:!0,configurable:!0,get:Ot}},ct=function(Ot){return at(function(){return k(this)[Ot]})};B&&(E(nt,"code",ct("code")),E(nt,"message",ct("message")),E(nt,"name",ct("name"))),S(nt,"constructor",T(1,tt));var gt=v(function(){return!(new X instanceof V)}),pt=gt||v(function(){return Y.toString!==C||String(new X(1,2))!=="2: 1"}),mt=gt||v(function(){return new X(1,"DataCloneError").code!==25}),It=gt||X[G]!==25||H[G]!==25,At=U?pt||mt||It:gt;u({global:!0,constructor:!0,forced:At},{DOMException:At?tt:X});var Mt=f(j),ut=Mt.prototype;pt&&(U||X===Mt)&&$(ut,"toString",C),mt&&B&&X===Mt&&E(ut,"code",at(function(){return _(O(this).name)}));for(var lt in P)if(R(P,lt)){var Ct=P[lt],Nt=Ct.s,Gt=T(6,Ct.c);R(Mt,Nt)||S(Mt,Nt,Gt),R(ut,Nt)||S(ut,Nt,Gt)}}),(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,I,n){var u=n(3),f=n(4),h=n(23),v=n(11),m=n(44).f,T=n(38),S=n(215),$=n(123),E=n(124),R=n(603),b=n(127),O=n(6),C=n(36),M="DOMException",P=h("Error"),L=h(M),z=function(){S(this,B);var tt=arguments.length,nt=E(tt<1?void 0:arguments[0]),at=E(tt<2?void 0:arguments[1],"Error"),ct=new L(nt,at),gt=new P(nt);return gt.name=M,m(ct,"stack",v(1,b(gt.stack,1))),$(ct,this,z),ct},B=z.prototype=L.prototype,U="stack"in new P(M),j="stack"in new L(1,2),G=L&&O&&Object.getOwnPropertyDescriptor(f,M),V=!!G&&!(G.writable&&G.configurable),X=U&&!V&&!j;u({global:!0,constructor:!0,forced:C||X},{DOMException:X?z:L});var H=h(M),Y=H.prototype;if(Y.constructor!==H){C||m(Y,"constructor",v(1,H));for(var Z in R)if(T(R,Z)){var k=R[Z],et=k.s;T(H,et)||m(H,et,v(6,k.c))}}}),(function(x,I,n){var u=n(23),f=n(82),h="DOMException";f(u(h),h)}),(function(x,I,n){n(607),n(608)}),(function(x,I,n){var u=n(3),f=n(4),h=n(383).clear;u({global:!0,bind:!0,enumerable:!0,forced:f.clearImmediate!==h},{clearImmediate:h})}),(function(x,I,n){var u=n(3),f=n(4),h=n(383).set,v=n(609),m=f.setImmediate?v(h,!1):h;u({global:!0,bind:!0,enumerable:!0,forced:f.setImmediate!==m},{setImmediate:m})}),(function(x,I,n){var u=n(4),f=n(95),h=n(21),v=n(189),m=n(28),T=n(76),S=n(384),$=u.Function,E=/MSIE .\./.test(m)||v==="BUN"&&(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,b){var O=b?2:1;return E?function(C,M){var P=S(arguments.length,1)>O,L=h(C)?C:$(C),z=P?T(arguments,O):[],B=P?function(){f(L,this,z)}:L;return b?R(B,M):R(B)}:R}}),(function(x,I,n){var u=n(3),f=n(4),h=n(386),v=n(30),m=n(384),T=n(7),S=n(6),$=T(function(){return S&&Object.getOwnPropertyDescriptor(f,"queueMicrotask").value.length!==1});u({global:!0,enumerable:!0,dontCallGetSet:!0,forced:$},{queueMicrotask:function(R){m(arguments.length,1),h(v(R))}})}),(function(x,I,n){var u=n(3),f=n(4),h=n(77),v=n(6),m=TypeError,T=Object.defineProperty,S=f.self!==f;try{if(v){var $=Object.getOwnPropertyDescriptor(f,"self");(S||!$||!$.get||!$.enumerable)&&h(f,"self",{get:function(){return f},set:function(R){if(this!==f)throw new m("Illegal invocation");T(f,"self",{value:R,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else u({global:!0,simple:!0,forced:S},{self:f})}catch(E){}}),(function(x,I,n){var u=n(36),f=n(3),h=n(4),v=n(23),m=n(14),T=n(7),S=n(40),$=n(21),E=n(89),R=n(17),b=n(20),O=n(22),C=n(136),M=n(46),P=n(69),L=n(38),z=n(90),B=n(43),U=n(63),j=n(384),G=n(434),V=n(297),X=n(454),H=n(456),Y=n(237),Z=n(128),k=n(239),et=h.Object,_=h.Array,tt=h.Date,nt=h.Error,at=h.TypeError,ct=h.PerformanceMark,gt=v("DOMException"),pt=V.Map,mt=V.has,It=V.get,At=V.set,Mt=X.Set,ut=X.add,lt=X.has,Ct=v("Object","keys"),Nt=m([].push),Gt=m((!0).valueOf),Ot=m(1.1.valueOf),jt=m("".valueOf),re=m(tt.prototype.getTime),se=S("structuredClone"),ne="DataCloneError",ae="Transferring",Ae=function(ht){return!T(function(){var Lt=new h.Set([7]),Bt=ht(Lt),Ut=ht(et(7));return Bt===Lt||!Bt.has(7)||!b(Ut)||+Ut!=7})&&ht},Ie=function(ht,Lt){return!T(function(){var Bt=new Lt,Ut=ht({a:Bt,b:Bt});return!(Ut&&Ut.a===Ut.b&&Ut.a instanceof Lt&&Ut.a.stack===Bt.stack)})},pe=function(ht){return!T(function(){var Lt=ht(new h.AggregateError([1],se,{cause:3}));return Lt.name!=="AggregateError"||Lt.errors[0]!==1||Lt.message!==se||Lt.cause!==3})},le=h.structuredClone,Re=u||!Ie(le,nt)||!Ie(le,gt)||!pe(le),Se=!le&&Ae(function(ht){return new ct(se,{detail:ht}).detail}),me=Ae(le)||Se,wt=function(ht){throw new gt("Uncloneable type: "+ht,ne)},Yt=function(ht,Lt){throw new gt((Lt||"Cloning")+" of "+ht+" cannot be properly polyfilled in this engine",ne)},ue=function(ht,Lt){return me||Yt(Lt),me(ht)},Vt=function(){var ht;try{ht=new h.DataTransfer}catch(Lt){try{ht=new h.ClipboardEvent("").clipboardData}catch(Bt){}}return ht&&ht.items&&ht.files?ht:null},_t=function(ht,Lt,Bt){if(mt(Lt,ht))return It(Lt,ht);var Ut=Bt||P(ht),Xt,Pt,ce,De,Dt,Jt;if(Ut==="SharedArrayBuffer")me?Xt=me(ht):Xt=ht;else{var Qt=h.DataView;!Qt&&!$(ht.slice)&&Yt("ArrayBuffer");try{if($(ht.slice)&&!ht.resizable)Xt=ht.slice(0);else for(Pt=ht.byteLength,ce=("maxByteLength"in ht)?{maxByteLength:ht.maxByteLength}:void 0,Xt=new ArrayBuffer(Pt,ce),De=new Qt(ht),Dt=new Qt(Xt),Jt=0;Jt<Pt;Jt++)Dt.setUint8(Jt,De.getUint8(Jt))}catch(qt){throw new gt("ArrayBuffer is detached",ne)}}return At(Lt,ht,Xt),Xt},te=function(ht,Lt,Bt,Ut,Xt){var Pt=h[Lt];return b(Pt)||Yt(Lt),new Pt(_t(ht.buffer,Xt),Bt,Ut)},Zt=function(ht,Lt){if(O(ht)&&wt("Symbol"),!b(ht))return ht;if(Lt){if(mt(Lt,ht))return It(Lt,ht)}else Lt=new pt;var Bt=P(ht),Ut,Xt,Pt,ce,De,Dt,Jt,Qt;switch(Bt){case"Array":Pt=_(U(ht));break;case"Object":Pt={};break;case"Map":Pt=new pt;break;case"Set":Pt=new Mt;break;case"RegExp":Pt=new RegExp(ht.source,G(ht));break;case"Error":switch(Xt=ht.name,Xt){case"AggregateError":Pt=new(v(Xt))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":Pt=new(v(Xt));break;case"CompileError":case"LinkError":case"RuntimeError":Pt=new(v("WebAssembly",Xt));break;default:Pt=new nt}break;case"DOMException":Pt=new gt(ht.message,ht.name);break;case"ArrayBuffer":case"SharedArrayBuffer":Pt=_t(ht,Lt,Bt);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":Dt=Bt==="DataView"?ht.byteLength:ht.length,Pt=te(ht,Bt,ht.byteOffset,Dt,Lt);break;case"DOMQuad":try{Pt=new DOMQuad(Zt(ht.p1,Lt),Zt(ht.p2,Lt),Zt(ht.p3,Lt),Zt(ht.p4,Lt))}catch(qt){Pt=ue(ht,Bt)}break;case"File":if(me)try{Pt=me(ht),P(Pt)!==Bt&&(Pt=void 0)}catch(qt){}if(!Pt)try{Pt=new File([ht],ht.name,ht)}catch(qt){}Pt||Yt(Bt);break;case"FileList":if(ce=Vt(),ce){for(De=0,Dt=U(ht);De<Dt;De++)ce.items.add(Zt(ht[De],Lt));Pt=ce.files}else Pt=ue(ht,Bt);break;case"ImageData":try{Pt=new ImageData(Zt(ht.data,Lt),ht.width,ht.height,{colorSpace:ht.colorSpace})}catch(qt){Pt=ue(ht,Bt)}break;default:if(me)Pt=me(ht);else switch(Bt){case"BigInt":Pt=et(ht.valueOf());break;case"Boolean":Pt=et(Gt(ht));break;case"Number":Pt=et(Ot(ht));break;case"String":Pt=et(jt(ht));break;case"Date":Pt=new tt(re(ht));break;case"Blob":try{Pt=ht.slice(0,ht.size,ht.type)}catch(qt){Yt(Bt)}break;case"DOMPoint":case"DOMPointReadOnly":Ut=h[Bt];try{Pt=Ut.fromPoint?Ut.fromPoint(ht):new Ut(ht.x,ht.y,ht.z,ht.w)}catch(qt){Yt(Bt)}break;case"DOMRect":case"DOMRectReadOnly":Ut=h[Bt];try{Pt=Ut.fromRect?Ut.fromRect(ht):new Ut(ht.x,ht.y,ht.width,ht.height)}catch(qt){Yt(Bt)}break;case"DOMMatrix":case"DOMMatrixReadOnly":Ut=h[Bt];try{Pt=Ut.fromMatrix?Ut.fromMatrix(ht):new Ut(ht)}catch(qt){Yt(Bt)}break;case"AudioData":case"VideoFrame":$(ht.clone)||Yt(Bt);try{Pt=ht.clone()}catch(qt){wt(Bt)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Yt(Bt);default:wt(Bt)}}switch(At(Lt,ht,Pt),Bt){case"Array":case"Object":for(Jt=Ct(ht),De=0,Dt=U(Jt);De<Dt;De++)Qt=Jt[De],z(Pt,Qt,Zt(ht[Qt],Lt));break;case"Map":ht.forEach(function(qt,ve){At(Pt,Zt(ve,Lt),Zt(qt,Lt))});break;case"Set":ht.forEach(function(qt){ut(Pt,Zt(qt,Lt))});break;case"Error":B(Pt,"message",Zt(ht.message,Lt)),L(ht,"cause")&&B(Pt,"cause",Zt(ht.cause,Lt)),Xt==="AggregateError"?Pt.errors=Zt(ht.errors,Lt):Xt==="SuppressedError"&&(Pt.error=Zt(ht.error,Lt),Pt.suppressed=Zt(ht.suppressed,Lt));case"DOMException":Z&&B(Pt,"stack",Zt(ht.stack,Lt))}return Pt},xe=function(ht,Lt){if(!b(ht))throw new at("Transfer option cannot be converted to a sequence");var Bt=[];C(ht,function(ve){Nt(Bt,M(ve))});for(var Ut=0,Xt=U(Bt),Pt=new Mt,ce,De,Dt,Jt,Qt,qt;Ut<Xt;){if(ce=Bt[Ut++],De=P(ce),De==="ArrayBuffer"?lt(Pt,ce):mt(Lt,ce))throw new gt("Duplicate transferable",ne);if(De==="ArrayBuffer"){ut(Pt,ce);continue}if(k)Jt=le(ce,{transfer:[ce]});else switch(De){case"ImageBitmap":Dt=h.OffscreenCanvas,E(Dt)||Yt(De,ae);try{Qt=new Dt(ce.width,ce.height),qt=Qt.getContext("bitmaprenderer"),qt.transferFromImageBitmap(ce),Jt=Qt.transferToImageBitmap()}catch(ve){}break;case"AudioData":case"VideoFrame":(!$(ce.clone)||!$(ce.close))&&Yt(De,ae);try{Jt=ce.clone(),ce.close()}catch(ve){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":Yt(De,ae)}if(Jt===void 0)throw new gt("This object cannot be transferred: "+De,ne);At(Lt,ce,Jt)}return Pt},We=function(ht){H(ht,function(Lt){k?me(Lt,{transfer:[Lt]}):$(Lt.transfer)?Lt.transfer():Y?Y(Lt):Yt("ArrayBuffer",ae)})};f({global:!0,enumerable:!0,sham:!k,forced:Re},{structuredClone:function(Lt){var Bt=j(arguments.length,1)>1&&!R(arguments[1])?M(arguments[1]):void 0,Ut=Bt?Bt.transfer:void 0,Xt,Pt;Ut!==void 0&&(Xt=new pt,Pt=xe(Ut,Xt));var ce=Zt(Lt,Xt);return Pt&&We(Pt),ce}})}),(function(x,I,n){n(614),n(615)}),(function(x,I,n){var u=n(3),f=n(4),h=n(609),v=h(f.setInterval,!0);u({global:!0,bind:!0,forced:f.setInterval!==v},{setInterval:v})}),(function(x,I,n){var u=n(3),f=n(4),h=n(609),v=h(f.setTimeout,!0);u({global:!0,bind:!0,forced:f.setTimeout!==v},{setTimeout:v})}),(function(x,I,n){n(617)}),(function(x,I,n){n(483);var u=n(3),f=n(6),h=n(618),v=n(4),m=n(84),T=n(14),S=n(47),$=n(77),E=n(215),R=n(38),b=n(345),O=n(169),C=n(76),M=n(476).codeAt,P=n(619),L=n(68),z=n(82),B=n(384),U=n(620),j=n(51),G=j.set,V=j.getterFor("URL"),X=U.URLSearchParams,H=U.getState,Y=v.URL,Z=v.TypeError,k=v.parseInt,et=Math.floor,_=Math.pow,tt=T("".charAt),nt=T(/./.exec),at=T([].join),ct=T(1.1.toString),gt=T([].pop),pt=T([].push),mt=T("".replace),It=T([].shift),At=T("".split),Mt=T("".slice),ut=T("".toLowerCase),lt=T([].unshift),Ct="Invalid authority",Nt="Invalid scheme",Gt="Invalid host",Ot="Invalid port",jt=/[a-z]/i,re=/[\d+-.a-z]/i,se=/\d/,ne=/^0x/i,ae=/^[0-7]+$/,Ae=/^\d+$/,Ie=/^[\da-f]+$/i,pe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,le=/[\0\t\n\r #/:<>?@[\\\]^|]/,Re=/^[\u0000-\u0020]+/,Se=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,me=/[\t\n\r]/g,wt,Yt=function(ft){var zt=At(ft,"."),St,it,Ft,Te,oe,Pe,rn;if(zt.length&&zt[zt.length-1]===""&&zt.length--,St=zt.length,St>4)return ft;for(it=[],Ft=0;Ft<St;Ft++){if(Te=zt[Ft],Te==="")return ft;if(oe=10,Te.length>1&&tt(Te,0)==="0"&&(oe=nt(ne,Te)?16:8,Te=Mt(Te,oe===8?1:2)),Te==="")Pe=0;else{if(!nt(oe===10?Ae:oe===8?ae:Ie,Te))return ft;Pe=k(Te,oe)}pt(it,Pe)}for(Ft=0;Ft<St;Ft++)if(Pe=it[Ft],Ft===St-1){if(Pe>=_(256,5-St))return null}else if(Pe>255)return null;for(rn=gt(it),Ft=0;Ft<it.length;Ft++)rn+=it[Ft]*_(256,3-Ft);return rn},ue=function(ft){var zt=[0,0,0,0,0,0,0,0],St=0,it=null,Ft=0,Te,oe,Pe,rn,vn,xn,st,an=function(){return tt(ft,Ft)};if(an()===":"){if(tt(ft,1)!==":")return;Ft+=2,St++,it=St}for(;an();){if(St===8)return;if(an()===":"){if(it!==null)return;Ft++,St++,it=St;continue}for(Te=oe=0;oe<4&&nt(Ie,an());)Te=Te*16+k(an(),16),Ft++,oe++;if(an()==="."){if(oe===0||(Ft-=oe,St>6))return;for(Pe=0;an();){if(rn=null,Pe>0)if(an()==="."&&Pe<4)Ft++;else return;if(!nt(se,an()))return;for(;nt(se,an());){if(vn=k(an(),10),rn===null)rn=vn;else{if(rn===0)return;rn=rn*10+vn}if(rn>255)return;Ft++}zt[St]=zt[St]*256+rn,Pe++,(Pe===2||Pe===4)&&St++}if(Pe!==4)return;break}else if(an()===":"){if(Ft++,!an())return}else if(an())return;zt[St++]=Te}if(it!==null)for(xn=St-it,St=7;St!==0&&xn>0;)st=zt[St],zt[St--]=zt[it+xn-1],zt[it+--xn]=st;else if(St!==8)return;return zt},Vt=function(ft){for(var zt=null,St=1,it=null,Ft=0,Te=0;Te<8;Te++)ft[Te]!==0?(Ft>St&&(zt=it,St=Ft),it=null,Ft=0):(it===null&&(it=Te),++Ft);return Ft>St?it:zt},_t=function(ft){var zt,St,it,Ft;if(typeof ft=="number"){for(zt=[],St=0;St<4;St++)lt(zt,ft%256),ft=et(ft/256);return at(zt,".")}if(typeof ft=="object"){for(zt="",it=Vt(ft),St=0;St<8;St++)Ft&&ft[St]===0||(Ft&&(Ft=!1),it===St?(zt+=St?":":"::",Ft=!0):(zt+=ct(ft[St],16),St<7&&(zt+=":")));return"["+zt+"]"}return ft},te={},Zt=b({},te,{" ":1,'"':1,"<":1,">":1,"`":1}),xe=b({},Zt,{"#":1,"?":1,"{":1,"}":1}),We=b({},xe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(ft,zt){var St=M(ft,0);return St>32&&St<127&&!R(zt,ft)?ft:encodeURIComponent(ft)},Lt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Bt=function(ft,zt){var St;return ft.length===2&&nt(jt,tt(ft,0))&&((St=tt(ft,1))===":"||!zt&&St==="|")},Ut=function(ft){var zt;return ft.length>1&&Bt(Mt(ft,0,2))&&(ft.length===2||(zt=tt(ft,2))==="/"||zt==="\\"||zt==="?"||zt==="#")},Xt=function(ft){return ft==="."||ut(ft)==="%2e"},Pt=function(ft){return ft=ut(ft),ft===".."||ft==="%2e."||ft===".%2e"||ft==="%2e%2e"},ce={},De={},Dt={},Jt={},Qt={},qt={},ve={},be={},Ye={},Je={},nn={},yn={},Xn={},Yr={},Za={},ya={},xr={},Hn={},Ja={},ir={},Qn={},xa=function(ft,zt,St){var it=L(ft),Ft,Te,oe;if(zt){if(Te=this.parse(it),Te)throw new Z(Te);this.searchParams=null}else{if(St!==void 0&&(Ft=new xa(St,!0)),Te=this.parse(it,null,Ft),Te)throw new Z(Te);oe=H(new X),oe.bindURL(this),this.searchParams=oe}};xa.prototype={type:"URL",parse:function(ft,zt,St){var it=this,Ft=zt||ce,Te=0,oe="",Pe=!1,rn=!1,vn=!1,xn,st,an,Bn;for(ft=L(ft),zt||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ft=mt(ft,Re,""),ft=mt(ft,Se,"$1")),ft=mt(ft,me,""),xn=O(ft);Te<=xn.length;){switch(st=xn[Te],Ft){case ce:if(st&&nt(jt,st))oe+=ut(st),Ft=De;else{if(zt)return Nt;Ft=Dt;continue}break;case De:if(st&&(nt(re,st)||st==="+"||st==="-"||st==="."))oe+=ut(st);else if(st===":"){if(zt&&(it.isSpecial()!==R(Lt,oe)||oe==="file"&&(it.includesCredentials()||it.port!==null)||it.scheme==="file"&&!it.host))return;if(it.scheme=oe,zt){it.isSpecial()&&Lt[it.scheme]===it.port&&(it.port=null);return}oe="",it.scheme==="file"?Ft=Yr:it.isSpecial()&&St&&St.scheme===it.scheme?Ft=Jt:it.isSpecial()?Ft=be:xn[Te+1]==="/"?(Ft=Qt,Te++):(it.cannotBeABaseURL=!0,pt(it.path,""),Ft=Ja)}else{if(zt)return Nt;oe="",Ft=Dt,Te=0;continue}break;case Dt:if(!St||St.cannotBeABaseURL&&st!=="#")return Nt;if(St.cannotBeABaseURL&&st==="#"){it.scheme=St.scheme,it.path=C(St.path),it.query=St.query,it.fragment="",it.cannotBeABaseURL=!0,Ft=Qn;break}Ft=St.scheme==="file"?Yr:qt;continue;case Jt:if(st==="/"&&xn[Te+1]==="/")Ft=Ye,Te++;else{Ft=qt;continue}break;case Qt:if(st==="/"){Ft=Je;break}else{Ft=Hn;continue}case qt:if(it.scheme=St.scheme,st===wt)it.username=St.username,it.password=St.password,it.host=St.host,it.port=St.port,it.path=C(St.path),it.query=St.query;else if(st==="/"||st==="\\"&&it.isSpecial())Ft=ve;else if(st==="?")it.username=St.username,it.password=St.password,it.host=St.host,it.port=St.port,it.path=C(St.path),it.query="",Ft=ir;else if(st==="#")it.username=St.username,it.password=St.password,it.host=St.host,it.port=St.port,it.path=C(St.path),it.query=St.query,it.fragment="",Ft=Qn;else{it.username=St.username,it.password=St.password,it.host=St.host,it.port=St.port,it.path=C(St.path),it.path.length--,Ft=Hn;continue}break;case ve:if(it.isSpecial()&&(st==="/"||st==="\\"))Ft=Ye;else if(st==="/")Ft=Je;else{it.username=St.username,it.password=St.password,it.host=St.host,it.port=St.port,Ft=Hn;continue}break;case be:if(Ft=Ye,st!=="/"||tt(oe,Te+1)!=="/")continue;Te++;break;case Ye:if(st!=="/"&&st!=="\\"){Ft=Je;continue}break;case Je:if(st==="@"){Pe&&(oe="%40"+oe),Pe=!0,an=O(oe);for(var en=0;en<an.length;en++){var Wn=an[en];if(Wn===":"&&!vn){vn=!0;continue}var Mn=ht(Wn,We);vn?it.password+=Mn:it.username+=Mn}oe=""}else if(st===wt||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(Pe&&oe==="")return Ct;Te-=O(oe).length+1,oe="",Ft=nn}else oe+=st;break;case nn:case yn:if(zt&&it.scheme==="file"){Ft=ya;continue}else if(st===":"&&!rn){if(oe==="")return Gt;if(Bn=it.parseHost(oe),Bn)return Bn;if(oe="",Ft=Xn,zt===yn)return}else if(st===wt||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(it.isSpecial()&&oe==="")return Gt;if(zt&&oe===""&&(it.includesCredentials()||it.port!==null))return;if(Bn=it.parseHost(oe),Bn)return Bn;if(oe="",Ft=xr,zt)return;continue}else st==="["?rn=!0:st==="]"&&(rn=!1),oe+=st;break;case Xn:if(nt(se,st))oe+=st;else if(st===wt||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()||zt){if(oe!==""){var Un=k(oe,10);if(Un>65535)return Ot;it.port=it.isSpecial()&&Un===Lt[it.scheme]?null:Un,oe=""}if(zt)return;Ft=xr;continue}else return Ot;break;case Yr:if(it.scheme="file",st==="/"||st==="\\")Ft=Za;else if(St&&St.scheme==="file")switch(st){case wt:it.host=St.host,it.path=C(St.path),it.query=St.query;break;case"?":it.host=St.host,it.path=C(St.path),it.query="",Ft=ir;break;case"#":it.host=St.host,it.path=C(St.path),it.query=St.query,it.fragment="",Ft=Qn;break;default:Ut(at(C(xn,Te),""))||(it.host=St.host,it.path=C(St.path),it.shortenPath()),Ft=Hn;continue}else{Ft=Hn;continue}break;case Za:if(st==="/"||st==="\\"){Ft=ya;break}St&&St.scheme==="file"&&!Ut(at(C(xn,Te),""))&&(Bt(St.path[0],!0)?pt(it.path,St.path[0]):it.host=St.host),Ft=Hn;continue;case ya:if(st===wt||st==="/"||st==="\\"||st==="?"||st==="#"){if(!zt&&Bt(oe))Ft=Hn;else if(oe===""){if(it.host="",zt)return;Ft=xr}else{if(Bn=it.parseHost(oe),Bn)return Bn;if(it.host==="localhost"&&(it.host=""),zt)return;oe="",Ft=xr}continue}else oe+=st;break;case xr:if(it.isSpecial()){if(Ft=Hn,st!=="/"&&st!=="\\")continue}else if(!zt&&st==="?")it.query="",Ft=ir;else if(!zt&&st==="#")it.fragment="",Ft=Qn;else if(st!==wt&&(Ft=Hn,st!=="/"))continue;break;case Hn:if(st===wt||st==="/"||st==="\\"&&it.isSpecial()||!zt&&(st==="?"||st==="#")){if(Pt(oe)?(it.shortenPath(),st!=="/"&&!(st==="\\"&&it.isSpecial())&&pt(it.path,"")):Xt(oe)?st!=="/"&&!(st==="\\"&&it.isSpecial())&&pt(it.path,""):(it.scheme==="file"&&!it.path.length&&Bt(oe)&&(it.host&&(it.host=""),oe=tt(oe,0)+":"),pt(it.path,oe)),oe="",it.scheme==="file"&&(st===wt||st==="?"||st==="#"))for(;it.path.length>1&&it.path[0]==="";)It(it.path);st==="?"?(it.query="",Ft=ir):st==="#"&&(it.fragment="",Ft=Qn)}else oe+=ht(st,xe);break;case Ja:st==="?"?(it.query="",Ft=ir):st==="#"?(it.fragment="",Ft=Qn):st!==wt&&(it.path[0]+=ht(st,te));break;case ir:!zt&&st==="#"?(it.fragment="",Ft=Qn):st!==wt&&(st==="'"&&it.isSpecial()?it.query+="%27":st==="#"?it.query+="%23":it.query+=ht(st,te));break;case Qn:st!==wt&&(it.fragment+=ht(st,Zt));break}Te++}},parseHost:function(ft){var zt,St,it;if(tt(ft,0)==="["){if(tt(ft,ft.length-1)!=="]"||(zt=ue(Mt(ft,1,-1)),!zt))return Gt;this.host=zt}else if(this.isSpecial()){if(ft=P(ft),nt(pe,ft)||(zt=Yt(ft),zt===null))return Gt;this.host=zt}else{if(nt(le,ft))return Gt;for(zt="",St=O(ft),it=0;it<St.length;it++)zt+=ht(St[it],te);this.host=zt}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return R(Lt,this.scheme)},shortenPath:function(){var ft=this.path,zt=ft.length;zt&&(this.scheme!=="file"||zt!==1||!Bt(ft[0],!0))&&ft.length--},serialize:function(){var ft=this,zt=ft.scheme,St=ft.username,it=ft.password,Ft=ft.host,Te=ft.port,oe=ft.path,Pe=ft.query,rn=ft.fragment,vn=zt+":";return Ft!==null?(vn+="//",ft.includesCredentials()&&(vn+=St+(it?":"+it:"")+"@"),vn+=_t(Ft),Te!==null&&(vn+=":"+Te)):zt==="file"&&(vn+="//"),vn+=ft.cannotBeABaseURL?oe[0]:oe.length?"/"+at(oe,"/"):"",Pe!==null&&(vn+="?"+Pe),rn!==null&&(vn+="#"+rn),vn},setHref:function(ft){var zt=this.parse(ft);if(zt)throw new Z(zt);this.searchParams.update()},getOrigin:function(){var ft=this.scheme,zt=this.port;if(ft==="blob")try{return new Tr(ft.path[0]).origin}catch(St){return"null"}return ft==="file"||!this.isSpecial()?"null":ft+"://"+_t(this.host)+(zt!==null?":"+zt:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(ft){this.parse(L(ft)+":",ce)},getUsername:function(){return this.username},setUsername:function(ft){var zt=O(L(ft));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var St=0;St<zt.length;St++)this.username+=ht(zt[St],We)}},getPassword:function(){return this.password},setPassword:function(ft){var zt=O(L(ft));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var St=0;St<zt.length;St++)this.password+=ht(zt[St],We)}},getHost:function(){var ft=this.host,zt=this.port;return ft===null?"":zt===null?_t(ft):_t(ft)+":"+zt},setHost:function(ft){this.cannotBeABaseURL||this.parse(ft,nn)},getHostname:function(){var ft=this.host;return ft===null?"":_t(ft)},setHostname:function(ft){this.cannotBeABaseURL||this.parse(ft,yn)},getPort:function(){var ft=this.port;return ft===null?"":L(ft)},setPort:function(ft){this.cannotHaveUsernamePasswordPort()||(ft=L(ft),ft===""?this.port=null:this.parse(ft,Xn))},getPathname:function(){var ft=this.path;return this.cannotBeABaseURL?ft[0]:ft.length?"/"+at(ft,"/"):""},setPathname:function(ft){this.cannotBeABaseURL||(this.path=[],this.parse(ft,xr))},getSearch:function(){var ft=this.query;return ft?"?"+ft:""},setSearch:function(ft){ft=L(ft),ft===""?this.query=null:(tt(ft,0)==="?"&&(ft=Mt(ft,1)),this.query="",this.parse(ft,ir)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var ft=this.fragment;return ft?"#"+ft:""},setHash:function(ft){if(ft=L(ft),ft===""){this.fragment=null;return}tt(ft,0)==="#"&&(ft=Mt(ft,1)),this.fragment="",this.parse(ft,Qn)},update:function(){this.query=this.searchParams.serialize()||null}};var Tr=function(zt){var St=E(this,An),it=B(arguments.length,1)>1?arguments[1]:void 0,Ft=G(St,new xa(zt,!1,it));f||(St.href=Ft.serialize(),St.origin=Ft.getOrigin(),St.protocol=Ft.getProtocol(),St.username=Ft.getUsername(),St.password=Ft.getPassword(),St.host=Ft.getHost(),St.hostname=Ft.getHostname(),St.port=Ft.getPort(),St.pathname=Ft.getPathname(),St.search=Ft.getSearch(),St.searchParams=Ft.getSearchParams(),St.hash=Ft.getHash())},An=Tr.prototype,Nn=function(ft,zt){return{get:function(){return V(this)[ft]()},set:zt&&function(St){return V(this)[zt](St)},configurable:!0,enumerable:!0}};if(f&&($(An,"href",Nn("serialize","setHref")),$(An,"origin",Nn("getOrigin")),$(An,"protocol",Nn("getProtocol","setProtocol")),$(An,"username",Nn("getUsername","setUsername")),$(An,"password",Nn("getPassword","setPassword")),$(An,"host",Nn("getHost","setHost")),$(An,"hostname",Nn("getHostname","setHostname")),$(An,"port",Nn("getPort","setPort")),$(An,"pathname",Nn("getPathname","setPathname")),$(An,"search",Nn("getSearch","setSearch")),$(An,"searchParams",Nn("getSearchParams")),$(An,"hash",Nn("getHash","setHash"))),S(An,"toJSON",function(){return V(this).serialize()},{enumerable:!0}),S(An,"toString",function(){return V(this).serialize()},{enumerable:!0}),Y){var Qa=Y.createObjectURL,ka=Y.revokeObjectURL;Qa&&S(Tr,"createObjectURL",m(Qa,Y)),ka&&S(Tr,"revokeObjectURL",m(ka,Y))}z(Tr,"URL"),u({global:!0,constructor:!0,forced:!h,sham:!f},{URL:Tr})}),(function(x,I,n){var u=n(7),f=n(33),h=n(6),v=n(36),m=f("iterator");x.exports=!u(function(){var T=new URL("b?a=1&b=2&c=3","https://a"),S=T.searchParams,$=new URLSearchParams("a=1&a=2&b=3"),E="";return T.pathname="c%20d",S.forEach(function(R,b){S.delete("b"),E+=b+R}),$.delete("a",2),$.delete("b",void 0),v&&(!T.toJSON||!$.has("a",1)||$.has("a",2)||!$.has("a",void 0)||$.has("b"))||!S.size&&(v||!h)||!S.sort||T.href!=="https://a/c%20d?a=1&c=3"||S.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!S[m]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("https://a#\u0431").hash!=="#%D0%B1"||E!=="a1c3"||new URL("https://x",void 0).host!=="x"})}),(function(x,I,n){var u=n(14),f=2147483647,h=36,v=1,m=26,T=38,S=700,$=72,E=128,R="-",b=/[^\0-\u007E]/,O=/[.\u3002\uFF0E\uFF61]/g,C="Overflow: input needs wider integers to process",M=h-v,P=RangeError,L=u(O.exec),z=Math.floor,B=String.fromCharCode,U=u("".charCodeAt),j=u([].join),G=u([].push),V=u("".replace),X=u("".split),H=u("".toLowerCase),Y=function(_){for(var tt=[],nt=0,at=_.length;nt<at;){var ct=U(_,nt++);if(ct>=55296&&ct<=56319&&nt<at){var gt=U(_,nt++);(gt&64512)===56320?G(tt,((ct&1023)<<10)+(gt&1023)+65536):(G(tt,ct),nt--)}else G(tt,ct)}return tt},Z=function(_){return _+22+75*(_<26)},k=function(_,tt,nt){var at=0;for(_=nt?z(_/S):_>>1,_+=z(_/tt);_>M*m>>1;)_=z(_/M),at+=h;return z(at+(M+1)*_/(_+T))},et=function(_){var tt=[];_=Y(_);var nt=_.length,at=E,ct=0,gt=$,pt,mt;for(pt=0;pt<_.length;pt++)mt=_[pt],mt<128&&G(tt,B(mt));var It=tt.length,At=It;for(It&&G(tt,R);At<nt;){var Mt=f;for(pt=0;pt<_.length;pt++)mt=_[pt],mt>=at&&mt<Mt&&(Mt=mt);var ut=At+1;if(Mt-at>z((f-ct)/ut))throw new P(C);for(ct+=(Mt-at)*ut,at=Mt,pt=0;pt<_.length;pt++){if(mt=_[pt],mt<at&&++ct>f)throw new P(C);if(mt===at){for(var lt=ct,Ct=h;;){var Nt=Ct<=gt?v:Ct>=gt+m?m:Ct-gt;if(lt<Nt)break;var Gt=lt-Nt,Ot=h-Nt;G(tt,B(Z(Nt+Gt%Ot))),lt=z(Gt/Ot),Ct+=h}G(tt,B(Z(lt))),gt=k(ct,ut,At===It),ct=0,At++}}ct++,at++}return j(tt,"")};x.exports=function(_){var tt=[],nt=X(V(H(_),O,"."),"."),at,ct;for(at=0;at<nt.length;at++)ct=nt[at],G(tt,L(b,ct)?"xn--"+et(ct):ct);return j(tt,".")}}),(function(x,I,n){n(175),n(480);var u=n(3),f=n(4),h=n(387),v=n(23),m=n(8),T=n(14),S=n(6),$=n(618),E=n(47),R=n(77),b=n(214),O=n(82),C=n(177),M=n(51),P=n(215),L=n(21),z=n(38),B=n(84),U=n(69),j=n(46),G=n(20),V=n(68),X=n(71),H=n(11),Y=n(139),Z=n(140),k=n(179),et=n(384),_=n(33),tt=n(195),nt=_("iterator"),at="URLSearchParams",ct=at+"Iterator",gt=M.set,pt=M.getterFor(at),mt=M.getterFor(ct),It=h("fetch"),At=h("Request"),Mt=h("Headers"),ut=At&&At.prototype,lt=Mt&&Mt.prototype,Ct=f.TypeError,Nt=f.encodeURIComponent,Gt=String.fromCharCode,Ot=v("String","fromCodePoint"),jt=parseInt,re=T("".charAt),se=T([].join),ne=T([].push),ae=T("".replace),Ae=T([].shift),Ie=T([].splice),pe=T("".split),le=T("".slice),Re=T(/./.exec),Se=/\+/g,me="\uFFFD",wt=/^[0-9a-f]+$/i,Yt=function(Dt,Jt){var Qt=le(Dt,Jt,Jt+2);return Re(wt,Qt)?jt(Qt,16):NaN},ue=function(Dt){for(var Jt=0,Qt=128;Qt>0&&(Dt&Qt)!==0;Qt>>=1)Jt++;return Jt},Vt=function(Dt){var Jt=null;switch(Dt.length){case 1:Jt=Dt[0];break;case 2:Jt=(Dt[0]&31)<<6|Dt[1]&63;break;case 3:Jt=(Dt[0]&15)<<12|(Dt[1]&63)<<6|Dt[2]&63;break;case 4:Jt=(Dt[0]&7)<<18|(Dt[1]&63)<<12|(Dt[2]&63)<<6|Dt[3]&63;break}return Jt>1114111?null:Jt},_t=function(Dt){Dt=ae(Dt,Se," ");for(var Jt=Dt.length,Qt="",qt=0;qt<Jt;){var ve=re(Dt,qt);if(ve==="%"){if(re(Dt,qt+1)==="%"||qt+3>Jt){Qt+="%",qt++;continue}var be=Yt(Dt,qt+1);if(be!==be){Qt+=ve,qt++;continue}qt+=2;var Ye=ue(be);if(Ye===0)ve=Gt(be);else{if(Ye===1||Ye>4){Qt+=me,qt++;continue}for(var Je=[be],nn=1;nn<Ye&&(qt++,!(qt+3>Jt||re(Dt,qt)!=="%"));){var yn=Yt(Dt,qt+1);if(yn!==yn){qt+=3;break}if(yn>191||yn<128)break;ne(Je,yn),qt+=2,nn++}if(Je.length!==Ye){Qt+=me;continue}var Xn=Vt(Je);Xn===null?Qt+=me:ve=Ot(Xn)}}Qt+=ve,qt++}return Qt},te=/[!'()~]|%20/g,Zt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xe=function(Dt){return Zt[Dt]},We=function(Dt){return ae(Nt(Dt),te,xe)},ht=C(function(Jt,Qt){gt(this,{type:ct,target:pt(Jt).entries,index:0,kind:Qt})},at,function(){var Jt=mt(this),Qt=Jt.target,qt=Jt.index++;if(!Qt||qt>=Qt.length)return Jt.target=null,k(void 0,!0);var ve=Qt[qt];switch(Jt.kind){case"keys":return k(ve.key,!1);case"values":return k(ve.value,!1)}return k([ve.key,ve.value],!1)},!0),Lt=function(Dt){this.entries=[],this.url=null,Dt!==void 0&&(G(Dt)?this.parseObject(Dt):this.parseQuery(typeof Dt=="string"?re(Dt,0)==="?"?le(Dt,1):Dt:V(Dt)))};Lt.prototype={type:at,bindURL:function(Dt){this.url=Dt,this.update()},parseObject:function(Dt){var Jt=this.entries,Qt=Z(Dt),qt,ve,be,Ye,Je,nn,yn;if(Qt)for(qt=Y(Dt,Qt),ve=qt.next;!(be=m(ve,qt)).done;){if(Ye=Y(j(be.value)),Je=Ye.next,(nn=m(Je,Ye)).done||(yn=m(Je,Ye)).done||!m(Je,Ye).done)throw new Ct("Expected sequence with length 2");ne(Jt,{key:V(nn.value),value:V(yn.value)})}else for(var Xn in Dt)z(Dt,Xn)&&ne(Jt,{key:Xn,value:V(Dt[Xn])})},parseQuery:function(Dt){if(Dt)for(var Jt=this.entries,Qt=pe(Dt,"&"),qt=0,ve,be;qt<Qt.length;)ve=Qt[qt++],ve.length&&(be=pe(ve,"="),ne(Jt,{key:_t(Ae(be)),value:_t(se(be,"="))}))},serialize:function(){for(var Dt=this.entries,Jt=[],Qt=0,qt;Qt<Dt.length;)qt=Dt[Qt++],ne(Jt,We(qt.key)+"="+We(qt.value));return se(Jt,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Bt=function(){P(this,Ut);var Jt=arguments.length>0?arguments[0]:void 0,Qt=gt(this,new Lt(Jt));S||(this.size=Qt.entries.length)},Ut=Bt.prototype;if(b(Ut,{append:function(Jt,Qt){var qt=pt(this);et(arguments.length,2),ne(qt.entries,{key:V(Jt),value:V(Qt)}),S||this.size++,qt.updateURL()},delete:function(Dt){for(var Jt=pt(this),Qt=et(arguments.length,1),qt=Jt.entries,ve=V(Dt),be=Qt<2?void 0:arguments[1],Ye=be===void 0?be:V(be),Je=0;Je<qt.length;){var nn=qt[Je];if(nn.key===ve&&(Ye===void 0||nn.value===Ye)){if(Ie(qt,Je,1),Ye!==void 0)break}else Je++}S||(this.size=qt.length),Jt.updateURL()},get:function(Jt){var Qt=pt(this).entries;et(arguments.length,1);for(var qt=V(Jt),ve=0;ve<Qt.length;ve++)if(Qt[ve].key===qt)return Qt[ve].value;return null},getAll:function(Jt){var Qt=pt(this).entries;et(arguments.length,1);for(var qt=V(Jt),ve=[],be=0;be<Qt.length;be++)Qt[be].key===qt&&ne(ve,Qt[be].value);return ve},has:function(Jt){for(var Qt=pt(this).entries,qt=et(arguments.length,1),ve=V(Jt),be=qt<2?void 0:arguments[1],Ye=be===void 0?be:V(be),Je=0;Je<Qt.length;){var nn=Qt[Je++];if(nn.key===ve&&(Ye===void 0||nn.value===Ye))return!0}return!1},set:function(Jt,Qt){var qt=pt(this);et(arguments.length,1);for(var ve=qt.entries,be=!1,Ye=V(Jt),Je=V(Qt),nn=0,yn;nn<ve.length;nn++)yn=ve[nn],yn.key===Ye&&(be?Ie(ve,nn--,1):(be=!0,yn.value=Je));be||ne(ve,{key:Ye,value:Je}),S||(this.size=ve.length),qt.updateURL()},sort:function(){var Jt=pt(this);tt(Jt.entries,function(Qt,qt){return Qt.key>qt.key?1:-1}),Jt.updateURL()},forEach:function(Jt){for(var Qt=pt(this).entries,qt=B(Jt,arguments.length>1?arguments[1]:void 0),ve=0,be;ve<Qt.length;)be=Qt[ve++],qt(be.value,be.key,this)},keys:function(){return new ht(this,"keys")},values:function(){return new ht(this,"values")},entries:function(){return new ht(this,"entries")}},{enumerable:!0}),E(Ut,nt,Ut.entries,{name:"entries"}),E(Ut,"toString",function(){return pt(this).serialize()},{enumerable:!0}),S&&R(Ut,"size",{get:function(){return pt(this).entries.length},configurable:!0,enumerable:!0}),O(Bt,at),u({global:!0,constructor:!0,forced:!$},{URLSearchParams:Bt}),!$&&L(Mt)){var Xt=T(lt.has),Pt=T(lt.set),ce=function(Dt){if(G(Dt)){var Jt=Dt.body,Qt;if(U(Jt)===at)return Qt=Dt.headers?new Mt(Dt.headers):new Mt,Xt(Qt,"content-type")||Pt(Qt,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),X(Dt,{body:H(0,V(Jt)),headers:H(0,Qt)})}return Dt};if(L(It)&&u({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(Jt){return It(Jt,arguments.length>1?ce(arguments[1]):{})}}),L(At)){var De=function(Jt){return P(this,ut),new At(Jt,arguments.length>1?ce(arguments[1]):{})};ut.constructor=De,De.prototype=ut,u({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:De})}}x.exports={URLSearchParams:Bt,getState:pt}}),(function(x,I,n){var u=n(3),f=n(23),h=n(7),v=n(384),m=n(68),T=n(618),S=f("URL"),$=T&&h(function(){S.canParse()}),E=h(function(){return S.canParse.length!==1});u({target:"URL",stat:!0,forced:!$||E},{canParse:function(b){var O=v(arguments.length,1),C=m(b),M=O<2||arguments[1]===void 0?void 0:m(arguments[1]);try{return!!new S(C,M)}catch(P){return!1}}})}),(function(x,I,n){var u=n(3),f=n(23),h=n(384),v=n(68),m=n(618),T=f("URL");u({target:"URL",stat:!0,forced:!m},{parse:function($){var E=h(arguments.length,1),R=v($),b=E<2||arguments[1]===void 0?void 0:v(arguments[1]);try{return new T(R,b)}catch(O){return null}}})}),(function(x,I,n){var u=n(3),f=n(8);u({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return f(URL.prototype.toString,this)}})}),(function(x,I,n){n(620)}),(function(x,I,n){var u=n(47),f=n(14),h=n(68),v=n(384),m=URLSearchParams,T=m.prototype,S=f(T.append),$=f(T.delete),E=f(T.forEach),R=f([].push),b=new m("a=1&a=2&b=3");b.delete("a",1),b.delete("b",void 0),b+""!="a=2"&&u(T,"delete",function(O){var C=arguments.length,M=C<2?void 0:arguments[1];if(C&&M===void 0)return $(this,O);var P=[];E(this,function(X,H){R(P,{key:H,value:X})}),v(C,1);for(var L=h(O),z=h(M),B=0,U=0,j=!1,G=P.length,V;B<G;)V=P[B++],j||V.key===L?(j=!0,$(this,V.key)):U++;for(;U<G;)V=P[U++],V.key===L&&V.value===z||S(this,V.key,V.value)},{enumerable:!0,unsafe:!0})}),(function(x,I,n){var u=n(47),f=n(14),h=n(68),v=n(384),m=URLSearchParams,T=m.prototype,S=f(T.getAll),$=f(T.has),E=new m("a=1");(E.has("a",2)||!E.has("a",void 0))&&u(T,"has",function(b){var O=arguments.length,C=O<2?void 0:arguments[1];if(O&&C===void 0)return $(this,b);var M=S(this,b);v(O,1);for(var P=h(C),L=0;L<M.length;)if(M[L++]===P)return!0;return!1},{enumerable:!0,unsafe:!0})}),(function(x,I,n){var u=n(6),f=n(14),h=n(77),v=URLSearchParams.prototype,m=f(v.forEach);u&&!("size"in v)&&h(v,"size",{get:function(){var S=0;return m(this,function(){S++}),S},configurable:!0,enumerable:!0})}),(function(x,I,n){n.r(I),n.d(I,{bb:function(){return Wf},default:function(){return Wf}});var u={};n.r(u),n.d(u,{selection:function(){return Pu},subchart:function(){return Mu},zoom:function(){return wu}});var f={};n.r(f),n.d(f,{area:function(){return If},areaLineRange:function(){return Rf},areaSpline:function(){return Of},areaSplineRange:function(){return Cf},areaStep:function(){return Pf},areaStepRange:function(){return bf},bar:function(){return zf},bubble:function(){return jf},candlestick:function(){return Gf},donut:function(){return Nf},funnel:function(){return Xf},gauge:function(){return Lf},line:function(){return Mf},pie:function(){return Ff},polar:function(){return Bf},radar:function(){return Uf},scatter:function(){return Vf},spline:function(){return wf},step:function(){return Df},treemap:function(){return Hf}});function h(){}function v(t){return t==null?h:function(){return this.querySelector(t)}}function m(t){typeof t!="function"&&(t=v(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s=e[o],i=s.length,l=a[o]=new Array(i),c,d,g=0;g<i;++g)(c=s[g])&&(d=t.call(c,c.__data__,g,s))&&("__data__"in c&&(d.__data__=c.__data__),l[g]=d);return new Pe(a,this._parents)}function T(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function S(){return[]}function $(t){return t==null?S:function(){return this.querySelectorAll(t)}}function E(t){return function(){return T(t.apply(this,arguments))}}function R(t){typeof t=="function"?t=E(t):t=$(t);for(var e=this._groups,r=e.length,a=[],o=[],s=0;s<r;++s)for(var i=e[s],l=i.length,c,d=0;d<l;++d)(c=i[d])&&(a.push(t.call(c,c.__data__,d,i)),o.push(c));return new Pe(a,o)}function b(t){return function(){return this.matches(t)}}function O(t){return function(e){return e.matches(t)}}var C=Array.prototype.find;function M(t){return function(){return C.call(this.children,t)}}function P(){return this.firstElementChild}function L(t){return this.select(t==null?P:M(typeof t=="function"?t:O(t)))}var z=Array.prototype.filter;function B(){return Array.from(this.children)}function U(t){return function(){return z.call(this.children,t)}}function j(t){return this.selectAll(t==null?B:U(typeof t=="function"?t:O(t)))}function G(t){typeof t!="function"&&(t=b(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s=e[o],i=s.length,l=a[o]=[],c,d=0;d<i;++d)(c=s[d])&&t.call(c,c.__data__,d,s)&&l.push(c);return new Pe(a,this._parents)}function V(t){return new Array(t.length)}function X(){return new Pe(this._enter||this._groups.map(V),this._parents)}function H(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}H.prototype={constructor:H,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 Y(t){return function(){return t}}function Z(t,e,r,a,o,s){for(var i=0,l,c=e.length,d=s.length;i<d;++i)(l=e[i])?(l.__data__=s[i],a[i]=l):r[i]=new H(t,s[i]);for(;i<c;++i)(l=e[i])&&(o[i]=l)}function k(t,e,r,a,o,s,i){var l,c,d=new Map,g=e.length,p=s.length,y=new Array(g),A;for(l=0;l<g;++l)(c=e[l])&&(y[l]=A=i.call(c,c.__data__,l,e)+"",d.has(A)?o[l]=c:d.set(A,c));for(l=0;l<p;++l)A=i.call(t,s[l],l,s)+"",(c=d.get(A))?(a[l]=c,c.__data__=s[l],d.delete(A)):r[l]=new H(t,s[l]);for(l=0;l<g;++l)(c=e[l])&&d.get(y[l])===c&&(o[l]=c)}function et(t){return t.__data__}function _(t,e){if(!arguments.length)return Array.from(this,et);var r=e?k:Z,a=this._parents,o=this._groups;typeof t!="function"&&(t=Y(t));for(var s=o.length,i=new Array(s),l=new Array(s),c=new Array(s),d=0;d<s;++d){var g=a[d],p=o[d],y=p.length,A=tt(t.call(g,g&&g.__data__,d,a)),w=A.length,F=l[d]=new Array(w),N=i[d]=new Array(w),D=c[d]=new Array(y);r(g,p,F,N,D,A,e);for(var K=0,J=0,W,rt;K<w;++K)if(W=F[K]){for(K>=J&&(J=K+1);!(rt=N[J])&&++J<w;);W._next=rt||null}}return i=new Pe(i,a),i._enter=l,i._exit=c,i}function tt(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function nt(){return new Pe(this._exit||this._groups.map(V),this._parents)}function at(t,e,r){var a=this.enter(),o=this,s=this.exit();return typeof t=="function"?(a=t(a),a&&(a=a.selection())):a=a.append(t+""),e!=null&&(o=e(o),o&&(o=o.selection())),r==null?s.remove():r(s),a&&o?a.merge(o).order():o}function ct(t){for(var e=t.selection?t.selection():t,r=this._groups,a=e._groups,o=r.length,s=a.length,i=Math.min(o,s),l=new Array(o),c=0;c<i;++c)for(var d=r[c],g=a[c],p=d.length,y=l[c]=new Array(p),A,w=0;w<p;++w)(A=d[w]||g[w])&&(y[w]=A);for(;c<o;++c)l[c]=r[c];return new Pe(l,this._parents)}function gt(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var a=t[e],o=a.length-1,s=a[o],i;--o>=0;)(i=a[o])&&(s&&i.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(i,s),s=i);return this}function pt(t){t||(t=mt);function e(p,y){return p&&y?t(p.__data__,y.__data__):!p-!y}for(var r=this._groups,a=r.length,o=new Array(a),s=0;s<a;++s){for(var i=r[s],l=i.length,c=o[s]=new Array(l),d,g=0;g<l;++g)(d=i[g])&&(c[g]=d);c.sort(e)}return new Pe(o,this._parents).order()}function mt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function It(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function At(){return Array.from(this)}function Mt(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],o=0,s=a.length;o<s;++o){var i=a[o];if(i)return i}return null}function ut(){let t=0;for(const e of this)++t;return t}function lt(){return!this.node()}function Ct(t){for(var e=this._groups,r=0,a=e.length;r<a;++r)for(var o=e[r],s=0,i=o.length,l;s<i;++s)(l=o[s])&&t.call(l,l.__data__,s,o);return this}var Nt="http://www.w3.org/1999/xhtml",Gt={svg:"http://www.w3.org/2000/svg",xhtml:Nt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ot(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Gt.hasOwnProperty(e)?{space:Gt[e],local:t}:t}function jt(t){return function(){this.removeAttribute(t)}}function re(t){return function(){this.removeAttributeNS(t.space,t.local)}}function se(t,e){return function(){this.setAttribute(t,e)}}function ne(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function ae(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function Ae(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function Ie(t,e){var r=Ot(t);if(arguments.length<2){var a=this.node();return r.local?a.getAttributeNS(r.space,r.local):a.getAttribute(r)}return this.each((e==null?r.local?re:jt:typeof e=="function"?r.local?Ae:ae:r.local?ne:se)(r,e))}function pe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function le(t){return function(){this.style.removeProperty(t)}}function Re(t,e,r){return function(){this.style.setProperty(t,e,r)}}function Se(t,e,r){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,r)}}function me(t,e,r){return arguments.length>1?this.each((e==null?le:typeof e=="function"?Se:Re)(t,e,r==null?"":r)):wt(this.node(),t)}function wt(t,e){return t.style.getPropertyValue(e)||pe(t).getComputedStyle(t,null).getPropertyValue(e)}function Yt(t){return function(){delete this[t]}}function ue(t,e){return function(){this[t]=e}}function Vt(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function _t(t,e){return arguments.length>1?this.each((e==null?Yt:typeof e=="function"?Vt:ue)(t,e)):this.node()[t]}function te(t){return t.trim().split(/^|\s+/)}function Zt(t){return t.classList||new xe(t)}function xe(t){this._node=t,this._names=te(t.getAttribute("class")||"")}xe.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 We(t,e){for(var r=Zt(t),a=-1,o=e.length;++a<o;)r.add(e[a])}function ht(t,e){for(var r=Zt(t),a=-1,o=e.length;++a<o;)r.remove(e[a])}function Lt(t){return function(){We(this,t)}}function Bt(t){return function(){ht(this,t)}}function Ut(t,e){return function(){(e.apply(this,arguments)?We:ht)(this,t)}}function Xt(t,e){var r=te(t+"");if(arguments.length<2){for(var a=Zt(this.node()),o=-1,s=r.length;++o<s;)if(!a.contains(r[o]))return!1;return!0}return this.each((typeof e=="function"?Ut:e?Lt:Bt)(r,e))}function Pt(){this.textContent=""}function ce(t){return function(){this.textContent=t}}function De(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Dt(t){return arguments.length?this.each(t==null?Pt:(typeof t=="function"?De:ce)(t)):this.node().textContent}function Jt(){this.innerHTML=""}function Qt(t){return function(){this.innerHTML=t}}function qt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function ve(t){return arguments.length?this.each(t==null?Jt:(typeof t=="function"?qt:Qt)(t)):this.node().innerHTML}function be(){this.nextSibling&&this.parentNode.appendChild(this)}function Ye(){return this.each(be)}function Je(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function nn(){return this.each(Je)}function yn(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Nt&&e.documentElement.namespaceURI===Nt?e.createElement(t):e.createElementNS(r,t)}}function Xn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Yr(t){var e=Ot(t);return(e.local?Xn:yn)(e)}function Za(t){var e=typeof t=="function"?t:Yr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ya(){return null}function xr(t,e){var r=typeof t=="function"?t:Yr(t),a=e==null?ya:typeof e=="function"?e:v(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),a.apply(this,arguments)||null)})}function Hn(){var t=this.parentNode;t&&t.removeChild(this)}function Ja(){return this.each(Hn)}function ir(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qn(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xa(t){return this.select(t?Qn:ir)}function Tr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function An(t){return function(e){t.call(this,e,this.__data__)}}function Nn(t){return t.trim().split(/^|\s+/).map(function(e){var r="",a=e.indexOf(".");return a>=0&&(r=e.slice(a+1),e=e.slice(0,a)),{type:e,name:r}})}function Qa(t){return function(){var e=this.__on;if(e){for(var r=0,a=-1,o=e.length,s;r<o;++r)s=e[r],(!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,r){return function(){var a=this.__on,o,s=An(e);if(a){for(var i=0,l=a.length;i<l;++i)if((o=a[i]).type===t.type&&o.name===t.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=s,o.options=r),o.value=e;return}}this.addEventListener(t.type,s,r),o={type:t.type,name:t.name,value:e,listener:s,options:r},a?a.push(o):this.__on=[o]}}function ft(t,e,r){var a=Nn(t+""),o,s=a.length,i;if(arguments.length<2){var l=this.node().__on;if(l){for(var c=0,d=l.length,g;c<d;++c)for(o=0,g=l[c];o<s;++o)if((i=a[o]).type===g.type&&i.name===g.name)return g.value}return}for(l=e?ka:Qa,o=0;o<s;++o)this.each(l(a[o],e,r));return this}function zt(t,e,r){var a=pe(t),o=a.CustomEvent;typeof o=="function"?o=new o(e,r):(o=a.document.createEvent("Event"),r?(o.initEvent(e,r.bubbles,r.cancelable),o.detail=r.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}function St(t,e){return function(){return zt(this,t,e)}}function it(t,e){return function(){return zt(this,t,e.apply(this,arguments))}}function Ft(t,e){return this.each((typeof e=="function"?it:St)(t,e))}function*Te(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var a=t[e],o=0,s=a.length,i;o<s;++o)(i=a[o])&&(yield i)}var oe=[null];function Pe(t,e){this._groups=t,this._parents=e}function rn(){return new Pe([[document.documentElement]],oe)}function vn(){return this}Pe.prototype=rn.prototype={constructor:Pe,select:m,selectAll:R,selectChild:L,selectChildren:j,filter:G,data:_,enter:X,exit:nt,join:at,merge:ct,selection:vn,order:gt,sort:pt,call:It,nodes:At,node:Mt,size:ut,empty:lt,each:Ct,attr:Ie,style:me,property:_t,classed:Xt,text:Dt,html:ve,raise:Ye,lower:nn,append:Za,insert:xr,remove:Ja,clone:xa,datum:Tr,on:ft,dispatch:Ft,[Symbol.iterator]:Te};var xn=rn;function st(t){return typeof t=="string"?new Pe([[document.querySelector(t)]],[document.documentElement]):new Pe([[t]],oe)}const an=new Date,Bn=new Date;function en(t,e,r,a){function o(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(t(s=new Date(+s)),s),o.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),o.round=s=>{const i=o(s),l=o.ceil(s);return s-i<l-s?i:l},o.offset=(s,i)=>(e(s=new Date(+s),i==null?1:Math.floor(i)),s),o.range=(s,i,l)=>{const c=[];if(s=o.ceil(s),l=l==null?1:Math.floor(l),!(s<i)||!(l>0))return c;let d;do c.push(d=new Date(+s)),e(s,l),t(s);while(d<s&&s<i);return c},o.filter=s=>en(i=>{if(i>=i)for(;t(i),!s(i);)i.setTime(i-1)},(i,l)=>{if(i>=i)if(l<0)for(;++l<=0;)for(;e(i,-1),!s(i););else for(;--l>=0;)for(;e(i,1),!s(i););}),r&&(o.count=(s,i)=>(an.setTime(+s),Bn.setTime(+i),t(an),t(Bn),Math.floor(r(an,Bn))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(a?i=>a(i)%s===0:i=>o.count(0,i)%s===0):o)),o}const Wn=1e3,Mn=Wn*60,Un=Mn*60,lr=Un*24,os=lr*7,Li=lr*30,ss=lr*365;function Or(t){return en(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Mn)/os)}const qa=Or(0),_a=Or(1),Kf=Or(2),Zf=Or(3),Kr=Or(4),Jf=Or(5),Qf=Or(6),M1=qa.range,w1=_a.range,D1=Kf.range,N1=Zf.range,L1=Kr.range,F1=Jf.range,B1=Qf.range;function Cr(t){return en(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/os)}const to=Cr(0),eo=Cr(1),kf=Cr(2),qf=Cr(3),Zr=Cr(4),_f=Cr(5),td=Cr(6),U1=to.range,z1=eo.range,j1=kf.range,G1=qf.range,V1=Zr.range,X1=_f.range,H1=td.range,Ta=en(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Mn)/lr,t=>t.getDate()-1),W1=Ta.range,no=en(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/lr,t=>t.getUTCDate()-1),Y1=no.range,Fi=en(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/lr,t=>Math.floor(t/lr)),K1=Fi.range,cr=en(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());cr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:en(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});const Z1=cr.range,ur=en(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());ur.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:en(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});const J1=ur.range;function is(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 ls(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 Sa(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function ed(t){var e=t.dateTime,r=t.date,a=t.time,o=t.periods,s=t.days,i=t.shortDays,l=t.months,c=t.shortMonths,d=$a(o),g=Aa(o),p=$a(s),y=Aa(s),A=$a(i),w=Aa(i),F=$a(l),N=Aa(l),D=$a(c),K=Aa(c),J={a:bt,A:kt,b:Ht,B:Kt,c:null,d:Vi,e:Vi,f:Ed,g:Nd,G:Fd,H:Sd,I:$d,j:Ad,L:Xi,m:Id,M:Rd,p:ie,q:he,Q:Ji,s:Qi,S:bd,u:Od,U:Cd,V:Pd,w:Md,W:wd,x:null,X:null,y:Dd,Y:Ld,Z:Bd,"%":Zi},W={a:Oe,A:Me,b:we,B:Ke,c:null,d:Wi,e:Wi,f:Gd,g:kd,G:_d,H:Ud,I:zd,j:jd,L:Yi,m:Vd,M:Xd,p:Ue,q:hn,Q:Ji,s:Qi,S:Hd,u:Wd,U:Yd,V:Kd,w:Zd,W:Jd,x:null,X:null,y:Qd,Y:qd,Z:th,"%":Zi},rt={a:Tt,A:yt,b:Rt,B:xt,c:q,d:ji,e:ji,f:md,g:zi,G:Ui,H:Gi,I:Gi,j:hd,L:pd,m:dd,M:vd,p:$t,q:fd,Q:xd,s:Td,S:gd,u:sd,U:id,V:ld,w:od,W:cd,x:Et,X:dt,y:zi,Y:Ui,Z:ud,"%":yd};J.x=Q(r,J),J.X=Q(a,J),J.c=Q(e,J),W.x=Q(r,W),W.X=Q(a,W),W.c=Q(e,W);function Q(ee,$e){return function(Ce){var Wt=[],un=-1,He=0,wn=ee.length,Dn,ge,fn;for(Ce instanceof Date||(Ce=new Date(+Ce));++un<wn;)ee.charCodeAt(un)===37&&(Wt.push(ee.slice(He,un)),(ge=Bi[Dn=ee.charAt(++un)])!=null?Dn=ee.charAt(++un):ge=Dn==="e"?" ":"0",(fn=$e[Dn])&&(Dn=fn(Ce,ge)),Wt.push(Dn),He=un+1);return Wt.push(ee.slice(He,un)),Wt.join("")}}function ot(ee,$e){return function(Ce){var Wt=Sa(1900,void 0,1),un=vt(Wt,ee,Ce+="",0),He,wn;if(un!=Ce.length)return null;if("Q"in Wt)return new Date(Wt.Q);if("s"in Wt)return new Date(Wt.s*1e3+("L"in Wt?Wt.L:0));if($e&&!("Z"in Wt)&&(Wt.Z=0),"p"in Wt&&(Wt.H=Wt.H%12+Wt.p*12),Wt.m===void 0&&(Wt.m="q"in Wt?Wt.q:0),"V"in Wt){if(Wt.V<1||Wt.V>53)return null;"w"in Wt||(Wt.w=1),"Z"in Wt?(He=ls(Sa(Wt.y,0,1)),wn=He.getUTCDay(),He=wn>4||wn===0?eo.ceil(He):eo(He),He=no.offset(He,(Wt.V-1)*7),Wt.y=He.getUTCFullYear(),Wt.m=He.getUTCMonth(),Wt.d=He.getUTCDate()+(Wt.w+6)%7):(He=is(Sa(Wt.y,0,1)),wn=He.getDay(),He=wn>4||wn===0?_a.ceil(He):_a(He),He=Ta.offset(He,(Wt.V-1)*7),Wt.y=He.getFullYear(),Wt.m=He.getMonth(),Wt.d=He.getDate()+(Wt.w+6)%7)}else("W"in Wt||"U"in Wt)&&("w"in Wt||(Wt.w="u"in Wt?Wt.u%7:"W"in Wt?1:0),wn="Z"in Wt?ls(Sa(Wt.y,0,1)).getUTCDay():is(Sa(Wt.y,0,1)).getDay(),Wt.m=0,Wt.d="W"in Wt?(Wt.w+6)%7+Wt.W*7-(wn+5)%7:Wt.w+Wt.U*7-(wn+6)%7);return"Z"in Wt?(Wt.H+=Wt.Z/100|0,Wt.M+=Wt.Z%100,ls(Wt)):is(Wt)}}function vt(ee,$e,Ce,Wt){for(var un=0,He=$e.length,wn=Ce.length,Dn,ge;un<He;){if(Wt>=wn)return-1;if(Dn=$e.charCodeAt(un++),Dn===37){if(Dn=$e.charAt(un++),ge=rt[Dn in Bi?$e.charAt(un++):Dn],!ge||(Wt=ge(ee,Ce,Wt))<0)return-1}else if(Dn!=Ce.charCodeAt(Wt++))return-1}return Wt}function $t(ee,$e,Ce){var Wt=d.exec($e.slice(Ce));return Wt?(ee.p=g.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function Tt(ee,$e,Ce){var Wt=A.exec($e.slice(Ce));return Wt?(ee.w=w.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function yt(ee,$e,Ce){var Wt=p.exec($e.slice(Ce));return Wt?(ee.w=y.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function Rt(ee,$e,Ce){var Wt=D.exec($e.slice(Ce));return Wt?(ee.m=K.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function xt(ee,$e,Ce){var Wt=F.exec($e.slice(Ce));return Wt?(ee.m=N.get(Wt[0].toLowerCase()),Ce+Wt[0].length):-1}function q(ee,$e,Ce){return vt(ee,e,$e,Ce)}function Et(ee,$e,Ce){return vt(ee,r,$e,Ce)}function dt(ee,$e,Ce){return vt(ee,a,$e,Ce)}function bt(ee){return i[ee.getDay()]}function kt(ee){return s[ee.getDay()]}function Ht(ee){return c[ee.getMonth()]}function Kt(ee){return l[ee.getMonth()]}function ie(ee){return o[+(ee.getHours()>=12)]}function he(ee){return 1+~~(ee.getMonth()/3)}function Oe(ee){return i[ee.getUTCDay()]}function Me(ee){return s[ee.getUTCDay()]}function we(ee){return c[ee.getUTCMonth()]}function Ke(ee){return l[ee.getUTCMonth()]}function Ue(ee){return o[+(ee.getUTCHours()>=12)]}function hn(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var $e=Q(ee+="",J);return $e.toString=function(){return ee},$e},parse:function(ee){var $e=ot(ee+="",!1);return $e.toString=function(){return ee},$e},utcFormat:function(ee){var $e=Q(ee+="",W);return $e.toString=function(){return ee},$e},utcParse:function(ee){var $e=ot(ee+="",!0);return $e.toString=function(){return ee},$e}}}var Bi={"-":"",_:" ",0:"0"},Tn=/^\s*\d+/,nd=/^%/,rd=/[\\^$*+?|[\]().{}]/g;function Be(t,e,r){var a=t<0?"-":"",o=(a?-t:t)+"",s=o.length;return a+(s<r?new Array(r-s+1).join(e)+o:o)}function ad(t){return t.replace(rd,"\\$&")}function $a(t){return new RegExp("^(?:"+t.map(ad).join("|")+")","i")}function Aa(t){return new Map(t.map((e,r)=>[e.toLowerCase(),r]))}function od(t,e,r){var a=Tn.exec(e.slice(r,r+1));return a?(t.w=+a[0],r+a[0].length):-1}function sd(t,e,r){var a=Tn.exec(e.slice(r,r+1));return a?(t.u=+a[0],r+a[0].length):-1}function id(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.U=+a[0],r+a[0].length):-1}function ld(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.V=+a[0],r+a[0].length):-1}function cd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.W=+a[0],r+a[0].length):-1}function Ui(t,e,r){var a=Tn.exec(e.slice(r,r+4));return a?(t.y=+a[0],r+a[0].length):-1}function zi(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),r+a[0].length):-1}function ud(t,e,r){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),r+a[0].length):-1}function fd(t,e,r){var a=Tn.exec(e.slice(r,r+1));return a?(t.q=a[0]*3-3,r+a[0].length):-1}function dd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.m=a[0]-1,r+a[0].length):-1}function ji(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.d=+a[0],r+a[0].length):-1}function hd(t,e,r){var a=Tn.exec(e.slice(r,r+3));return a?(t.m=0,t.d=+a[0],r+a[0].length):-1}function Gi(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.H=+a[0],r+a[0].length):-1}function vd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.M=+a[0],r+a[0].length):-1}function gd(t,e,r){var a=Tn.exec(e.slice(r,r+2));return a?(t.S=+a[0],r+a[0].length):-1}function pd(t,e,r){var a=Tn.exec(e.slice(r,r+3));return a?(t.L=+a[0],r+a[0].length):-1}function md(t,e,r){var a=Tn.exec(e.slice(r,r+6));return a?(t.L=Math.floor(a[0]/1e3),r+a[0].length):-1}function yd(t,e,r){var a=nd.exec(e.slice(r,r+1));return a?r+a[0].length:-1}function xd(t,e,r){var a=Tn.exec(e.slice(r));return a?(t.Q=+a[0],r+a[0].length):-1}function Td(t,e,r){var a=Tn.exec(e.slice(r));return a?(t.s=+a[0],r+a[0].length):-1}function Vi(t,e){return Be(t.getDate(),e,2)}function Sd(t,e){return Be(t.getHours(),e,2)}function $d(t,e){return Be(t.getHours()%12||12,e,2)}function Ad(t,e){return Be(1+Ta.count(cr(t),t),e,3)}function Xi(t,e){return Be(t.getMilliseconds(),e,3)}function Ed(t,e){return Xi(t,e)+"000"}function Id(t,e){return Be(t.getMonth()+1,e,2)}function Rd(t,e){return Be(t.getMinutes(),e,2)}function bd(t,e){return Be(t.getSeconds(),e,2)}function Od(t){var e=t.getDay();return e===0?7:e}function Cd(t,e){return Be(qa.count(cr(t)-1,t),e,2)}function Hi(t){var e=t.getDay();return e>=4||e===0?Kr(t):Kr.ceil(t)}function Pd(t,e){return t=Hi(t),Be(Kr.count(cr(t),t)+(cr(t).getDay()===4),e,2)}function Md(t){return t.getDay()}function wd(t,e){return Be(_a.count(cr(t)-1,t),e,2)}function Dd(t,e){return Be(t.getFullYear()%100,e,2)}function Nd(t,e){return t=Hi(t),Be(t.getFullYear()%100,e,2)}function Ld(t,e){return Be(t.getFullYear()%1e4,e,4)}function Fd(t,e){var r=t.getDay();return t=r>=4||r===0?Kr(t):Kr.ceil(t),Be(t.getFullYear()%1e4,e,4)}function Bd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Be(e/60|0,"0",2)+Be(e%60,"0",2)}function Wi(t,e){return Be(t.getUTCDate(),e,2)}function Ud(t,e){return Be(t.getUTCHours(),e,2)}function zd(t,e){return Be(t.getUTCHours()%12||12,e,2)}function jd(t,e){return Be(1+no.count(ur(t),t),e,3)}function Yi(t,e){return Be(t.getUTCMilliseconds(),e,3)}function Gd(t,e){return Yi(t,e)+"000"}function Vd(t,e){return Be(t.getUTCMonth()+1,e,2)}function Xd(t,e){return Be(t.getUTCMinutes(),e,2)}function Hd(t,e){return Be(t.getUTCSeconds(),e,2)}function Wd(t){var e=t.getUTCDay();return e===0?7:e}function Yd(t,e){return Be(to.count(ur(t)-1,t),e,2)}function Ki(t){var e=t.getUTCDay();return e>=4||e===0?Zr(t):Zr.ceil(t)}function Kd(t,e){return t=Ki(t),Be(Zr.count(ur(t),t)+(ur(t).getUTCDay()===4),e,2)}function Zd(t){return t.getUTCDay()}function Jd(t,e){return Be(eo.count(ur(t)-1,t),e,2)}function Qd(t,e){return Be(t.getUTCFullYear()%100,e,2)}function kd(t,e){return t=Ki(t),Be(t.getUTCFullYear()%100,e,2)}function qd(t,e){return Be(t.getUTCFullYear()%1e4,e,4)}function _d(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Zr(t):Zr.ceil(t),Be(t.getUTCFullYear()%1e4,e,4)}function th(){return"+0000"}function Zi(){return"%"}function Ji(t){return+t}function Qi(t){return Math.floor(+t/1e3)}var Jr,cs,ki,us,qi;eh({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 eh(t){return Jr=ed(t),cs=Jr.format,ki=Jr.parse,us=Jr.utcFormat,qi=Jr.utcParse,Jr}var nh=Object.defineProperty,_i=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,ah=Object.prototype.propertyIsEnumerable,tl=(t,e,r)=>e in t?nh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ke=(t,e)=>{for(var r in e||(e={}))rh.call(e,r)&&tl(t,r,e[r]);if(_i)for(var r of _i(e))ah.call(e,r)&&tl(t,r,e[r]);return t};const Ee={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_",dummy:"_dummy_"},Le={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcLabelLineText:"bb-arc-label-line-text",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"},ro={area:"bb-area",areas:"bb-areas"},gn={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",axisTooltipX:"bb-axis-tooltip-x",axisTooltipY:"bb-axis-tooltip-y"},zn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",barConnectLine:"bb-bar-connectLine"},fr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},En={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},fs={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Pr={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ea={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},jn={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"},Ze={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"},dr={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},kn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},qe={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},on={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"},Sr={level:"bb-level",levels:"bb-levels"},el={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},Ia={region:"bb-region",regions:"bb-regions"},tn={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},sn={shape:"bb-shape",shapes:"bb-shapes"},nl={brush:"bb-brush",subchart:"bb-subchart"},pn={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",textBorderRect:"bb-text-border",textLabelImage:"bb-text-label-image",TextOverlapping:"text-overlapping"},ao={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},rl={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ds={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ve=ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke(ke({},Ee),Le),ro),gn),zn),fr),En),fs),Pr),jn),Ze),dr),kn),qe),Ea),on),el),Ia),tn),sn),nl),pn),ao),rl),ds),oh={boost_useCssRule:!1,boost_useWorker:!1},sh={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},ih={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},lh={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:[]},ch={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},uh={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},fh={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_labels_imgUrl:void 0,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:""},dh={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{},interaction_onout:!0},hh={value:()=>{}};function al(){for(var t=0,e=arguments.length,r={},a;t<e;++t){if(!(a=arguments[t]+"")||a in r||/[\s.]/.test(a))throw new Error("illegal type: "+a);r[a]=[]}return new oo(r)}function oo(t){this._=t}function vh(t,e){return t.trim().split(/^|\s+/).map(function(r){var a="",o=r.indexOf(".");if(o>=0&&(a=r.slice(o+1),r=r.slice(0,o)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:a}})}oo.prototype=al.prototype={constructor:oo,on:function(t,e){var r=this._,a=vh(t+"",r),o,s=-1,i=a.length;if(arguments.length<2){for(;++s<i;)if((o=(t=a[s]).type)&&(o=gh(r[o],t.name)))return o;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<i;)if(o=(t=a[s]).type)r[o]=ol(r[o],t.name,e);else if(e==null)for(o in r)r[o]=ol(r[o],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new oo(t)},call:function(t,e){if((o=arguments.length-2)>0)for(var r=new Array(o),a=0,o,s;a<o;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],a=0,o=s.length;a<o;++a)s[a].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],o=0,s=a.length;o<s;++o)a[o].value.apply(e,r)}};function gh(t,e){for(var r=0,a=t.length,o;r<a;++r)if((o=t[r]).name===e)return o.value}function ol(t,e,r){for(var a=0,o=t.length;a<o;++a)if(t[a].name===e){t[a]=hh,t=t.slice(0,a).concat(t.slice(a+1));break}return r!=null&&t.push({name:e,value:r}),t}var so=al;const ph={passive:!1},Ra={capture:!0,passive:!1};function hs(t){t.stopImmediatePropagation()}function Qr(t){t.preventDefault(),t.stopImmediatePropagation()}function vs(t){var e=t.document.documentElement,r=st(t).on("dragstart.drag",Qr,Ra);"onselectstart"in e?r.on("selectstart.drag",Qr,Ra):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function gs(t,e){var r=t.document.documentElement,a=st(t).on("dragstart.drag",null);e&&(a.on("click.drag",Qr,Ra),setTimeout(function(){a.on("click.drag",null)},0)),"onselectstart"in r?a.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function ps(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function sl(t,e){var r=Object.create(t.prototype);for(var a in e)r[a]=e[a];return r}function ba(){}var Oa=.7,io=1/Oa,kr="\\s*([+-]?\\d+)\\s*",Ca="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mh=/^#([0-9a-f]{3,8})$/,yh=new RegExp(`^rgb\\(${kr},${kr},${kr}\\)$`),xh=new RegExp(`^rgb\\(${nr},${nr},${nr}\\)$`),Th=new RegExp(`^rgba\\(${kr},${kr},${kr},${Ca}\\)$`),Sh=new RegExp(`^rgba\\(${nr},${nr},${nr},${Ca}\\)$`),$h=new RegExp(`^hsl\\(${Ca},${nr},${nr}\\)$`),Ah=new RegExp(`^hsla\\(${Ca},${nr},${nr},${Ca}\\)$`),il={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};ps(ba,Mr,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ll,formatHex:ll,formatHex8:Eh,formatHsl:Ih,formatRgb:cl,toString:cl});function ll(){return this.rgb().formatHex()}function Eh(){return this.rgb().formatHex8()}function Ih(){return vl(this).formatHsl()}function cl(){return this.rgb().formatRgb()}function Mr(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=mh.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?ul(e):r===3?new Ln(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?lo(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?lo(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=yh.exec(t))?new Ln(e[1],e[2],e[3],1):(e=xh.exec(t))?new Ln(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Th.exec(t))?lo(e[1],e[2],e[3],e[4]):(e=Sh.exec(t))?lo(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=$h.exec(t))?hl(e[1],e[2]/100,e[3]/100,1):(e=Ah.exec(t))?hl(e[1],e[2]/100,e[3]/100,e[4]):il.hasOwnProperty(t)?ul(il[t]):t==="transparent"?new Ln(NaN,NaN,NaN,0):null}function ul(t){return new Ln(t>>16&255,t>>8&255,t&255,1)}function lo(t,e,r,a){return a<=0&&(t=e=r=NaN),new Ln(t,e,r,a)}function Rh(t){return t instanceof ba||(t=Mr(t)),t?(t=t.rgb(),new Ln(t.r,t.g,t.b,t.opacity)):new Ln}function co(t,e,r,a){return arguments.length===1?Rh(t):new Ln(t,e,r,a==null?1:a)}function Ln(t,e,r,a){this.r=+t,this.g=+e,this.b=+r,this.opacity=+a}ps(Ln,co,sl(ba,{brighter(t){return t=t==null?io:Math.pow(io,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Oa:Math.pow(Oa,t),new Ln(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ln(wr(this.r),wr(this.g),wr(this.b),uo(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:fl,formatHex:fl,formatHex8:bh,formatRgb:dl,toString:dl}));function fl(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}`}function bh(){return`#${Dr(this.r)}${Dr(this.g)}${Dr(this.b)}${Dr((isNaN(this.opacity)?1:this.opacity)*255)}`}function dl(){const t=uo(this.opacity);return`${t===1?"rgb(":"rgba("}${wr(this.r)}, ${wr(this.g)}, ${wr(this.b)}${t===1?")":`, ${t})`}`}function uo(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function wr(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Dr(t){return t=wr(t),(t<16?"0":"")+t.toString(16)}function hl(t,e,r,a){return a<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new qn(t,e,r,a)}function vl(t){if(t instanceof qn)return new qn(t.h,t.s,t.l,t.opacity);if(t instanceof ba||(t=Mr(t)),!t)return new qn;if(t instanceof qn)return t;t=t.rgb();var e=t.r/255,r=t.g/255,a=t.b/255,o=Math.min(e,r,a),s=Math.max(e,r,a),i=NaN,l=s-o,c=(s+o)/2;return l?(e===s?i=(r-a)/l+(r<a)*6:r===s?i=(a-e)/l+2:i=(e-r)/l+4,l/=c<.5?s+o:2-s-o,i*=60):l=c>0&&c<1?0:i,new qn(i,l,c,t.opacity)}function Oh(t,e,r,a){return arguments.length===1?vl(t):new qn(t,e,r,a==null?1:a)}function qn(t,e,r,a){this.h=+t,this.s=+e,this.l=+r,this.opacity=+a}ps(qn,Oh,sl(ba,{brighter(t){return t=t==null?io:Math.pow(io,t),new qn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Oa:Math.pow(Oa,t),new qn(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,r=this.l,a=r+(r<.5?r:1-r)*e,o=2*r-a;return new Ln(ms(t>=240?t-240:t+120,o,a),ms(t,o,a),ms(t<120?t+240:t-120,o,a),this.opacity)},clamp(){return new qn(gl(this.h),fo(this.s),fo(this.l),uo(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=uo(this.opacity);return`${t===1?"hsl(":"hsla("}${gl(this.h)}, ${fo(this.s)*100}%, ${fo(this.l)*100}%${t===1?")":`, ${t})`}`}}));function gl(t){return t=(t||0)%360,t<0?t+360:t}function fo(t){return Math.max(0,Math.min(1,t||0))}function ms(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function pl(t,e,r,a,o){var s=t*t,i=s*t;return((1-3*t+3*s-i)*e+(4-6*s+3*i)*r+(1+3*t+3*s-3*i)*a+i*o)/6}function Ch(t){var e=t.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),o=t[a],s=t[a+1],i=a>0?t[a-1]:2*o-s,l=a<e-1?t[a+2]:2*s-o;return pl((r-a/e)*e,i,o,s,l)}}function Ph(t){var e=t.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*e),o=t[(a+e-1)%e],s=t[a%e],i=t[(a+1)%e],l=t[(a+2)%e];return pl((r-a/e)*e,o,s,i,l)}}var ho=(t=>()=>t);function ml(t,e){return function(r){return t+r*e}}function Mh(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(a){return Math.pow(t+a*e,r)}}function Q1(t,e){var r=e-t;return r?ml(t,r>180||r<-180?r-360*Math.round(r/360):r):ho(isNaN(t)?e:t)}function wh(t){return(t=+t)==1?yl:function(e,r){return r-e?Mh(e,r,t):ho(isNaN(e)?r:e)}}function yl(t,e){var r=e-t;return r?ml(t,r):ho(isNaN(t)?e:t)}var vo=(function t(e){var r=wh(e);function a(o,s){var i=r((o=co(o)).r,(s=co(s)).r),l=r(o.g,s.g),c=r(o.b,s.b),d=yl(o.opacity,s.opacity);return function(g){return o.r=i(g),o.g=l(g),o.b=c(g),o.opacity=d(g),o+""}}return a.gamma=t,a})(1);function xl(t){return function(e){var r=e.length,a=new Array(r),o=new Array(r),s=new Array(r),i,l;for(i=0;i<r;++i)l=co(e[i]),a[i]=l.r||0,o[i]=l.g||0,s[i]=l.b||0;return a=t(a),o=t(o),s=t(s),l.opacity=1,function(c){return l.r=a(c),l.g=o(c),l.b=s(c),l+""}}}var k1=xl(Ch),q1=xl(Ph);function Tl(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,a=e.slice(),o;return function(s){for(o=0;o<r;++o)a[o]=t[o]*(1-s)+e[o]*s;return a}}function Sl(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function _1(t,e){return(Sl(e)?Tl:$l)(t,e)}function $l(t,e){var r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r),i;for(i=0;i<a;++i)o[i]=qr(t[i],e[i]);for(;i<r;++i)s[i]=e[i];return function(l){for(i=0;i<a;++i)s[i]=o[i](l);return s}}function Dh(t,e){var r=new Date;return t=+t,e=+e,function(a){return r.setTime(t*(1-a)+e*a),r}}function _n(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Nh(t,e){var r={},a={},o;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(o in e)o in t?r[o]=qr(t[o],e[o]):a[o]=e[o];return function(s){for(o in r)a[o]=r[o](s);return a}}var ys=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xs=new RegExp(ys.source,"g");function Lh(t){return function(){return t}}function Fh(t){return function(e){return t(e)+""}}function Al(t,e){var r=ys.lastIndex=xs.lastIndex=0,a,o,s,i=-1,l=[],c=[];for(t=t+"",e=e+"";(a=ys.exec(t))&&(o=xs.exec(e));)(s=o.index)>r&&(s=e.slice(r,s),l[i]?l[i]+=s:l[++i]=s),(a=a[0])===(o=o[0])?l[i]?l[i]+=o:l[++i]=o:(l[++i]=null,c.push({i,x:_n(a,o)})),r=xs.lastIndex;return r<e.length&&(s=e.slice(r),l[i]?l[i]+=s:l[++i]=s),l.length<2?c[0]?Fh(c[0].x):Lh(e):(e=c.length,function(d){for(var g=0,p;g<e;++g)l[(p=c[g]).i]=p.x(d);return l.join("")})}function qr(t,e){var r=typeof e,a;return e==null||r==="boolean"?ho(e):(r==="number"?_n:r==="string"?(a=Mr(e))?(e=a,vo):Al:e instanceof Mr?vo:e instanceof Date?Dh:Sl(e)?Tl:Array.isArray(e)?$l:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Nh:_n)(t,e)}function Bh(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Yn(t,e){if(t=Bh(t),e===void 0&&(e=t.currentTarget),e){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var a=r.createSVGPoint();return a.x=t.clientX,a.y=t.clientY,a=a.matrixTransform(e.getScreenCTM().inverse()),[a.x,a.y]}if(e.getBoundingClientRect){var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}}return[t.pageX,t.pageY]}var _r=0,Pa=0,Ma=0,El=1e3,go,wa,po=0,Nr=0,mo=0,Da=typeof performance=="object"&&performance.now?performance:Date,Il=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ts(){return Nr||(Il(Uh),Nr=Da.now()+mo)}function Uh(){Nr=0}function yo(){this._call=this._time=this._next=null}yo.prototype=Rl.prototype={constructor:yo,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Ts():+r)+(e==null?0:+e),!this._next&&wa!==this&&(wa?wa._next=this:go=this,wa=this),this._call=t,this._time=r,Ss()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ss())}};function Rl(t,e,r){var a=new yo;return a.restart(t,e,r),a}function zh(){Ts(),++_r;for(var t=go,e;t;)(e=Nr-t._time)>=0&&t._call.call(void 0,e),t=t._next;--_r}function bl(){Nr=(po=Da.now())+mo,_r=Pa=0;try{zh()}finally{_r=0,Gh(),Nr=0}}function jh(){var t=Da.now(),e=t-po;e>El&&(mo-=e,po=t)}function Gh(){for(var t,e=go,r,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:go=r);wa=t,Ss(a)}function Ss(t){if(!_r){Pa&&(Pa=clearTimeout(Pa));var e=t-Nr;e>24?(t<1/0&&(Pa=setTimeout(bl,t-Da.now()-mo)),Ma&&(Ma=clearInterval(Ma))):(Ma||(po=Da.now(),Ma=setInterval(jh,El)),_r=1,Il(bl))}}function Ol(t,e,r){var a=new yo;return e=e==null?0:+e,a.restart(o=>{a.stop(),t(o+e)},e,r),a}var Vh=so("start","end","cancel","interrupt"),Xh=[],Cl=0,Pl=1,$s=2,xo=3,Ml=4,As=5,To=6;function So(t,e,r,a,o,s){var i=t.__transition;if(!i)t.__transition={};else if(r in i)return;Hh(t,r,{name:e,index:a,group:o,on:Vh,tween:Xh,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Cl})}function Es(t,e){var r=tr(t,e);if(r.state>Cl)throw new Error("too late; already scheduled");return r}function rr(t,e){var r=tr(t,e);if(r.state>xo)throw new Error("too late; already running");return r}function tr(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function Hh(t,e,r){var a=t.__transition,o;a[e]=r,r.timer=Rl(s,0,r.time);function s(d){r.state=Pl,r.timer.restart(i,r.delay,r.time),r.delay<=d&&i(d-r.delay)}function i(d){var g,p,y,A;if(r.state!==Pl)return c();for(g in a)if(A=a[g],A.name===r.name){if(A.state===xo)return Ol(i);A.state===Ml?(A.state=To,A.timer.stop(),A.on.call("interrupt",t,t.__data__,A.index,A.group),delete a[g]):+g<e&&(A.state=To,A.timer.stop(),A.on.call("cancel",t,t.__data__,A.index,A.group),delete a[g])}if(Ol(function(){r.state===xo&&(r.state=Ml,r.timer.restart(l,r.delay,r.time),l(d))}),r.state=$s,r.on.call("start",t,t.__data__,r.index,r.group),r.state===$s){for(r.state=xo,o=new Array(y=r.tween.length),g=0,p=-1;g<y;++g)(A=r.tween[g].value.call(t,t.__data__,r.index,r.group))&&(o[++p]=A);o.length=p+1}}function l(d){for(var g=d<r.duration?r.ease.call(null,d/r.duration):(r.timer.restart(c),r.state=As,1),p=-1,y=o.length;++p<y;)o[p].call(t,g);r.state===As&&(r.on.call("end",t,t.__data__,r.index,r.group),c())}function c(){r.state=To,r.timer.stop(),delete a[e];for(var d in a)return;delete t.__transition}}function ta(t,e){var r=t.__transition,a,o,s=!0,i;if(r){e=e==null?null:e+"";for(i in r){if((a=r[i]).name!==e){s=!1;continue}o=a.state>$s&&a.state<As,a.state=To,a.timer.stop(),a.on.call(o?"interrupt":"cancel",t,t.__data__,a.index,a.group),delete r[i]}s&&delete t.__transition}}function Wh(t){return this.each(function(){ta(this,t)})}var wl=180/Math.PI,Is={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Dl(t,e,r,a,o,s){var i,l,c;return(i=Math.sqrt(t*t+e*e))&&(t/=i,e/=i),(c=t*r+e*a)&&(r-=t*c,a-=e*c),(l=Math.sqrt(r*r+a*a))&&(r/=l,a/=l,c/=l),t*a<e*r&&(t=-t,e=-e,c=-c,i=-i),{translateX:o,translateY:s,rotate:Math.atan2(e,t)*wl,skewX:Math.atan(c)*wl,scaleX:i,scaleY:l}}var $o;function Yh(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Is:Dl(e.a,e.b,e.c,e.d,e.e,e.f)}function Kh(t){return t==null||($o||($o=document.createElementNS("http://www.w3.org/2000/svg","g")),$o.setAttribute("transform",t),!(t=$o.transform.baseVal.consolidate()))?Is:(t=t.matrix,Dl(t.a,t.b,t.c,t.d,t.e,t.f))}function Nl(t,e,r,a){function o(d){return d.length?d.pop()+" ":""}function s(d,g,p,y,A,w){if(d!==p||g!==y){var F=A.push("translate(",null,e,null,r);w.push({i:F-4,x:_n(d,p)},{i:F-2,x:_n(g,y)})}else(p||y)&&A.push("translate("+p+e+y+r)}function i(d,g,p,y){d!==g?(d-g>180?g+=360:g-d>180&&(d+=360),y.push({i:p.push(o(p)+"rotate(",null,a)-2,x:_n(d,g)})):g&&p.push(o(p)+"rotate("+g+a)}function l(d,g,p,y){d!==g?y.push({i:p.push(o(p)+"skewX(",null,a)-2,x:_n(d,g)}):g&&p.push(o(p)+"skewX("+g+a)}function c(d,g,p,y,A,w){if(d!==p||g!==y){var F=A.push(o(A)+"scale(",null,",",null,")");w.push({i:F-4,x:_n(d,p)},{i:F-2,x:_n(g,y)})}else(p!==1||y!==1)&&A.push(o(A)+"scale("+p+","+y+")")}return function(d,g){var p=[],y=[];return d=t(d),g=t(g),s(d.translateX,d.translateY,g.translateX,g.translateY,p,y),i(d.rotate,g.rotate,p,y),l(d.skewX,g.skewX,p,y),c(d.scaleX,d.scaleY,g.scaleX,g.scaleY,p,y),d=g=null,function(A){for(var w=-1,F=y.length,N;++w<F;)p[(N=y[w]).i]=N.x(A);return p.join("")}}}var Zh=Nl(Yh,"px, ","px)","deg)"),Jh=Nl(Kh,", ",")",")");function Qh(t,e){var r,a;return function(){var o=rr(this,t),s=o.tween;if(s!==r){a=r=s;for(var i=0,l=a.length;i<l;++i)if(a[i].name===e){a=a.slice(),a.splice(i,1);break}}o.tween=a}}function kh(t,e,r){var a,o;if(typeof r!="function")throw new Error;return function(){var s=rr(this,t),i=s.tween;if(i!==a){o=(a=i).slice();for(var l={name:e,value:r},c=0,d=o.length;c<d;++c)if(o[c].name===e){o[c]=l;break}c===d&&o.push(l)}s.tween=o}}function qh(t,e){var r=this._id;if(t+="",arguments.length<2){for(var a=tr(this.node(),r).tween,o=0,s=a.length,i;o<s;++o)if((i=a[o]).name===t)return i.value;return null}return this.each((e==null?Qh:kh)(r,t,e))}function Rs(t,e,r){var a=t._id;return t.each(function(){var o=rr(this,a);(o.value||(o.value={}))[e]=r.apply(this,arguments)}),function(o){return tr(o,a).value[e]}}function Ll(t,e){var r;return(typeof e=="number"?_n:e instanceof Mr?vo:(r=Mr(e))?(e=r,vo):Al)(t,e)}function _h(t){return function(){this.removeAttribute(t)}}function tv(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ev(t,e,r){var a,o=r+"",s;return function(){var i=this.getAttribute(t);return i===o?null:i===a?s:s=e(a=i,r)}}function nv(t,e,r){var a,o=r+"",s;return function(){var i=this.getAttributeNS(t.space,t.local);return i===o?null:i===a?s:s=e(a=i,r)}}function rv(t,e,r){var a,o,s;return function(){var i,l=r(this),c;return l==null?void this.removeAttribute(t):(i=this.getAttribute(t),c=l+"",i===c?null:i===a&&c===o?s:(o=c,s=e(a=i,l)))}}function av(t,e,r){var a,o,s;return function(){var i,l=r(this),c;return l==null?void this.removeAttributeNS(t.space,t.local):(i=this.getAttributeNS(t.space,t.local),c=l+"",i===c?null:i===a&&c===o?s:(o=c,s=e(a=i,l)))}}function ov(t,e){var r=Ot(t),a=r==="transform"?Jh:Ll;return this.attrTween(t,typeof e=="function"?(r.local?av:rv)(r,a,Rs(this,"attr."+t,e)):e==null?(r.local?tv:_h)(r):(r.local?nv:ev)(r,a,e))}function sv(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function iv(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function lv(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&iv(t,s)),r}return o._value=e,o}function cv(t,e){var r,a;function o(){var s=e.apply(this,arguments);return s!==a&&(r=(a=s)&&sv(t,s)),r}return o._value=e,o}function uv(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var a=Ot(t);return this.tween(r,(a.local?lv:cv)(a,e))}function fv(t,e){return function(){Es(this,t).delay=+e.apply(this,arguments)}}function dv(t,e){return e=+e,function(){Es(this,t).delay=e}}function hv(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?fv:dv)(e,t)):tr(this.node(),e).delay}function vv(t,e){return function(){rr(this,t).duration=+e.apply(this,arguments)}}function gv(t,e){return e=+e,function(){rr(this,t).duration=e}}function pv(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?vv:gv)(e,t)):tr(this.node(),e).duration}function mv(t,e){if(typeof e!="function")throw new Error;return function(){rr(this,t).ease=e}}function yv(t){var e=this._id;return arguments.length?this.each(mv(e,t)):tr(this.node(),e).ease}function xv(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;rr(this,t).ease=r}}function Tv(t){if(typeof t!="function")throw new Error;return this.each(xv(this._id,t))}function Sv(t){typeof t!="function"&&(t=b(t));for(var e=this._groups,r=e.length,a=new Array(r),o=0;o<r;++o)for(var s=e[o],i=s.length,l=a[o]=[],c,d=0;d<i;++d)(c=s[d])&&t.call(c,c.__data__,d,s)&&l.push(c);return new hr(a,this._parents,this._name,this._id)}function $v(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,a=e.length,o=r.length,s=Math.min(a,o),i=new Array(a),l=0;l<s;++l)for(var c=e[l],d=r[l],g=c.length,p=i[l]=new Array(g),y,A=0;A<g;++A)(y=c[A]||d[A])&&(p[A]=y);for(;l<a;++l)i[l]=e[l];return new hr(i,this._parents,this._name,this._id)}function Av(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function Ev(t,e,r){var a,o,s=Av(e)?Es:rr;return function(){var i=s(this,t),l=i.on;l!==a&&(o=(a=l).copy()).on(e,r),i.on=o}}function Iv(t,e){var r=this._id;return arguments.length<2?tr(this.node(),r).on.on(t):this.each(Ev(r,t,e))}function Rv(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function bv(){return this.on("end.remove",Rv(this._id))}function Ov(t){var e=this._name,r=this._id;typeof t!="function"&&(t=v(t));for(var a=this._groups,o=a.length,s=new Array(o),i=0;i<o;++i)for(var l=a[i],c=l.length,d=s[i]=new Array(c),g,p,y=0;y<c;++y)(g=l[y])&&(p=t.call(g,g.__data__,y,l))&&("__data__"in g&&(p.__data__=g.__data__),d[y]=p,So(d[y],e,r,y,d,tr(g,r)));return new hr(s,this._parents,e,r)}function Cv(t){var e=this._name,r=this._id;typeof t!="function"&&(t=$(t));for(var a=this._groups,o=a.length,s=[],i=[],l=0;l<o;++l)for(var c=a[l],d=c.length,g,p=0;p<d;++p)if(g=c[p]){for(var y=t.call(g,g.__data__,p,c),A,w=tr(g,r),F=0,N=y.length;F<N;++F)(A=y[F])&&So(A,e,r,F,y,w);s.push(y),i.push(g)}return new hr(s,i,e,r)}var Pv=xn.prototype.constructor;function Mv(){return new Pv(this._groups,this._parents)}function wv(t,e){var r,a,o;return function(){var s=wt(this,t),i=(this.style.removeProperty(t),wt(this,t));return s===i?null:s===r&&i===a?o:o=e(r=s,a=i)}}function Fl(t){return function(){this.style.removeProperty(t)}}function Dv(t,e,r){var a,o=r+"",s;return function(){var i=wt(this,t);return i===o?null:i===a?s:s=e(a=i,r)}}function Nv(t,e,r){var a,o,s;return function(){var i=wt(this,t),l=r(this),c=l+"";return l==null&&(c=l=(this.style.removeProperty(t),wt(this,t))),i===c?null:i===a&&c===o?s:(o=c,s=e(a=i,l))}}function Lv(t,e){var r,a,o,s="style."+e,i="end."+s,l;return function(){var c=rr(this,t),d=c.on,g=c.value[s]==null?l||(l=Fl(e)):void 0;(d!==r||o!==g)&&(a=(r=d).copy()).on(i,o=g),c.on=a}}function Fv(t,e,r){var a=(t+="")=="transform"?Zh:Ll;return e==null?this.styleTween(t,wv(t,a)).on("end.style."+t,Fl(t)):typeof e=="function"?this.styleTween(t,Nv(t,a,Rs(this,"style."+t,e))).each(Lv(this._id,t)):this.styleTween(t,Dv(t,a,e),r).on("end.style."+t,null)}function Bv(t,e,r){return function(a){this.style.setProperty(t,e.call(this,a),r)}}function Uv(t,e,r){var a,o;function s(){var i=e.apply(this,arguments);return i!==o&&(a=(o=i)&&Bv(t,i,r)),a}return s._value=e,s}function zv(t,e,r){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,Uv(t,e,r==null?"":r))}function jv(t){return function(){this.textContent=t}}function Gv(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Vv(t){return this.tween("text",typeof t=="function"?Gv(Rs(this,"text",t)):jv(t==null?"":t+""))}function Xv(t){return function(e){this.textContent=t.call(this,e)}}function Hv(t){var e,r;function a(){var o=t.apply(this,arguments);return o!==r&&(e=(r=o)&&Xv(o)),e}return a._value=t,a}function Wv(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,Hv(t))}function Yv(){for(var t=this._name,e=this._id,r=Ul(),a=this._groups,o=a.length,s=0;s<o;++s)for(var i=a[s],l=i.length,c,d=0;d<l;++d)if(c=i[d]){var g=tr(c,e);So(c,t,r,d,i,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new hr(a,this._parents,t,r)}function Kv(){var t,e,r=this,a=r._id,o=r.size();return new Promise(function(s,i){var l={value:i},c={value:function(){--o===0&&s()}};r.each(function(){var d=rr(this,a),g=d.on;g!==t&&(e=(t=g).copy(),e._.cancel.push(l),e._.interrupt.push(l),e._.end.push(c)),d.on=e}),o===0&&s()})}var Zv=0;function hr(t,e,r,a){this._groups=t,this._parents=e,this._name=r,this._id=a}function Bl(t){return xn().transition(t)}function Ul(){return++Zv}var vr=xn.prototype;hr.prototype=Bl.prototype={constructor:hr,select:Ov,selectAll:Cv,selectChild:vr.selectChild,selectChildren:vr.selectChildren,filter:Sv,merge:$v,selection:Mv,transition:Yv,call:vr.call,nodes:vr.nodes,node:vr.node,size:vr.size,empty:vr.empty,each:vr.each,on:Iv,attr:ov,attrTween:uv,style:Fv,styleTween:zv,text:Vv,textTween:Wv,remove:bv,tween:qh,delay:hv,duration:pv,ease:yv,easeVarying:Tv,end:Kv,[Symbol.iterator]:vr[Symbol.iterator]};function tT(t){return t*t*t}function eT(t){return--t*t*t+1}function Jv(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Qv={time:null,delay:0,duration:250,ease:Jv};function kv(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function qv(t){var e,r;t instanceof hr?(e=t._id,t=t._name):(e=Ul(),(r=Qv).time=Ts(),t=t==null?null:t+"");for(var a=this._groups,o=a.length,s=0;s<o;++s)for(var i=a[s],l=i.length,c,d=0;d<l;++d)(c=i[d])&&So(c,t,e,d,i,r||kv(c,e));return new hr(a,this._parents,t,e)}xn.prototype.interrupt=Wh,xn.prototype.transition=qv;var bs=(t=>()=>t);function _v(t,{sourceEvent:e,target:r,selection:a,mode:o,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function tg(t){t.stopImmediatePropagation()}function Os(t){t.preventDefault(),t.stopImmediatePropagation()}var zl={name:"drag"},Cs={name:"space"},ea={name:"handle"},na={name:"center"};const{abs:jl,max:In,min:Rn}=Math;function Gl(t){return[+t[0],+t[1]]}function Ps(t){return[Gl(t[0]),Gl(t[1])]}var Ao={name:"x",handles:["w","e"].map(Na),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]]}},Eo={name:"y",handles:["n","s"].map(Na),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]]}},eg={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Na),input:function(t){return t==null?null:Ps(t)},output:function(t){return t}},gr={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"},Vl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Xl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},ng={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},rg={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Na(t){return{type:t}}function ag(t){return!t.ctrlKey&&!t.button}function og(){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 sg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ms(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ig(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Hl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function lg(){return ws(Ao)}function cg(){return ws(Eo)}function nT(){return ws(eg)}function ws(t){var e=og,r=ag,a=sg,o=!0,s=so("start","brush","end"),i=6,l;function c(N){var D=N.property("__brush",F).selectAll(".overlay").data([Na("overlay")]);D.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",gr.overlay).merge(D).each(function(){var J=Ms(this).extent;st(this).attr("x",J[0][0]).attr("y",J[0][1]).attr("width",J[1][0]-J[0][0]).attr("height",J[1][1]-J[0][1])}),N.selectAll(".selection").data([Na("selection")]).enter().append("rect").attr("class","selection").attr("cursor",gr.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var K=N.selectAll(".handle").data(t.handles,function(J){return J.type});K.exit().remove(),K.enter().append("rect").attr("class",function(J){return"handle handle--"+J.type}).attr("cursor",function(J){return gr[J.type]}),N.each(d).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",y).filter(a).on("touchstart.brush",y).on("touchmove.brush",A).on("touchend.brush touchcancel.brush",w).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(N,D,K){N.tween?N.on("start.brush",function(J){g(this,arguments).beforestart().start(J)}).on("interrupt.brush end.brush",function(J){g(this,arguments).end(J)}).tween("brush",function(){var J=this,W=J.__brush,rt=g(J,arguments),Q=W.selection,ot=t.input(typeof D=="function"?D.apply(this,arguments):D,W.extent),vt=qr(Q,ot);function $t(Tt){W.selection=Tt===1&&ot===null?null:vt(Tt),d.call(J),rt.brush()}return Q!==null&&ot!==null?$t:$t(1)}):N.each(function(){var J=this,W=arguments,rt=J.__brush,Q=t.input(typeof D=="function"?D.apply(J,W):D,rt.extent),ot=g(J,W).beforestart();ta(J),rt.selection=Q===null?null:Q,d.call(J),ot.start(K).brush(K).end(K)})},c.clear=function(N,D){c.move(N,null,D)};function d(){var N=st(this),D=Ms(this).selection;D?(N.selectAll(".selection").style("display",null).attr("x",D[0][0]).attr("y",D[0][1]).attr("width",D[1][0]-D[0][0]).attr("height",D[1][1]-D[0][1]),N.selectAll(".handle").style("display",null).attr("x",function(K){return K.type[K.type.length-1]==="e"?D[1][0]-i/2:D[0][0]-i/2}).attr("y",function(K){return K.type[0]==="s"?D[1][1]-i/2:D[0][1]-i/2}).attr("width",function(K){return K.type==="n"||K.type==="s"?D[1][0]-D[0][0]+i:i}).attr("height",function(K){return K.type==="e"||K.type==="w"?D[1][1]-D[0][1]+i:i})):N.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function g(N,D,K){var J=N.__brush.emitter;return J&&(!K||!J.clean)?J:new p(N,D,K)}function p(N,D,K){this.that=N,this.args=D,this.state=N.__brush,this.active=0,this.clean=K}p.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(N,D){return this.starting?(this.starting=!1,this.emit("start",N,D)):this.emit("brush",N),this},brush:function(N,D){return this.emit("brush",N,D),this},end:function(N,D){return--this.active===0&&(delete this.state.emitter,this.emit("end",N,D)),this},emit:function(N,D,K){var J=st(this.that).datum();s.call(N,this.that,new _v(N,{sourceEvent:D,target:c,selection:t.output(this.state.selection),mode:K,dispatch:s}),J)}};function y(N){if(l&&!N.touches||!r.apply(this,arguments))return;var D=this,K=N.target.__data__.type,J=(o&&N.metaKey?K="overlay":K)==="selection"?zl:o&&N.altKey?na:ea,W=t===Eo?null:ng[K],rt=t===Ao?null:rg[K],Q=Ms(D),ot=Q.extent,vt=Q.selection,$t=ot[0][0],Tt,yt,Rt=ot[0][1],xt,q,Et=ot[1][0],dt,bt,kt=ot[1][1],Ht,Kt,ie=0,he=0,Oe,Me=W&&rt&&o&&N.shiftKey,we,Ke,Ue=Array.from(N.touches||[N],ge=>{const fn=ge.identifier;return ge=Yn(ge,D),ge.point0=ge.slice(),ge.identifier=fn,ge});ta(D);var hn=g(D,arguments,!0).beforestart();if(K==="overlay"){vt&&(Oe=!0);const ge=[Ue[0],Ue[1]||Ue[0]];Q.selection=vt=[[Tt=t===Eo?$t:Rn(ge[0][0],ge[1][0]),xt=t===Ao?Rt:Rn(ge[0][1],ge[1][1])],[dt=t===Eo?Et:In(ge[0][0],ge[1][0]),Ht=t===Ao?kt:In(ge[0][1],ge[1][1])]],Ue.length>1&&un(N)}else Tt=vt[0][0],xt=vt[0][1],dt=vt[1][0],Ht=vt[1][1];yt=Tt,q=xt,bt=dt,Kt=Ht;var ee=st(D).attr("pointer-events","none"),$e=ee.selectAll(".overlay").attr("cursor",gr[K]);if(N.touches)hn.moved=Wt,hn.ended=He;else{var Ce=st(N.view).on("mousemove.brush",Wt,!0).on("mouseup.brush",He,!0);o&&Ce.on("keydown.brush",wn,!0).on("keyup.brush",Dn,!0),vs(N.view)}d.call(D),hn.start(N,J.name);function Wt(ge){for(const fn of ge.changedTouches||[ge])for(const Wa of Ue)Wa.identifier===fn.identifier&&(Wa.cur=Yn(fn,D));if(Me&&!we&&!Ke&&Ue.length===1){const fn=Ue[0];jl(fn.cur[0]-fn[0])>jl(fn.cur[1]-fn[1])?Ke=!0:we=!0}for(const fn of Ue)fn.cur&&(fn[0]=fn.cur[0],fn[1]=fn.cur[1]);Oe=!0,Os(ge),un(ge)}function un(ge){const fn=Ue[0],Wa=fn.point0;var br;switch(ie=fn[0]-Wa[0],he=fn[1]-Wa[1],J){case Cs:case zl:{W&&(ie=In($t-Tt,Rn(Et-dt,ie)),yt=Tt+ie,bt=dt+ie),rt&&(he=In(Rt-xt,Rn(kt-Ht,he)),q=xt+he,Kt=Ht+he);break}case ea:{Ue[1]?(W&&(yt=In($t,Rn(Et,Ue[0][0])),bt=In($t,Rn(Et,Ue[1][0])),W=1),rt&&(q=In(Rt,Rn(kt,Ue[0][1])),Kt=In(Rt,Rn(kt,Ue[1][1])),rt=1)):(W<0?(ie=In($t-Tt,Rn(Et-Tt,ie)),yt=Tt+ie,bt=dt):W>0&&(ie=In($t-dt,Rn(Et-dt,ie)),yt=Tt,bt=dt+ie),rt<0?(he=In(Rt-xt,Rn(kt-xt,he)),q=xt+he,Kt=Ht):rt>0&&(he=In(Rt-Ht,Rn(kt-Ht,he)),q=xt,Kt=Ht+he));break}case na:{W&&(yt=In($t,Rn(Et,Tt-ie*W)),bt=In($t,Rn(Et,dt+ie*W))),rt&&(q=In(Rt,Rn(kt,xt-he*rt)),Kt=In(Rt,Rn(kt,Ht+he*rt)));break}}bt<yt&&(W*=-1,br=Tt,Tt=dt,dt=br,br=yt,yt=bt,bt=br,K in Vl&&$e.attr("cursor",gr[K=Vl[K]])),Kt<q&&(rt*=-1,br=xt,xt=Ht,Ht=br,br=q,q=Kt,Kt=br,K in Xl&&$e.attr("cursor",gr[K=Xl[K]])),Q.selection&&(vt=Q.selection),we&&(yt=vt[0][0],bt=vt[1][0]),Ke&&(q=vt[0][1],Kt=vt[1][1]),(vt[0][0]!==yt||vt[0][1]!==q||vt[1][0]!==bt||vt[1][1]!==Kt)&&(Q.selection=[[yt,q],[bt,Kt]],d.call(D),hn.brush(ge,J.name))}function He(ge){if(tg(ge),ge.touches){if(ge.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else gs(ge.view,Oe),Ce.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ee.attr("pointer-events","all"),$e.attr("cursor",gr.overlay),Q.selection&&(vt=Q.selection),ig(vt)&&(Q.selection=null,d.call(D)),hn.end(ge,J.name)}function wn(ge){switch(ge.keyCode){case 16:{Me=W&&rt;break}case 18:{J===ea&&(W&&(dt=bt-ie*W,Tt=yt+ie*W),rt&&(Ht=Kt-he*rt,xt=q+he*rt),J=na,un(ge));break}case 32:{(J===ea||J===na)&&(W<0?dt=bt-ie:W>0&&(Tt=yt-ie),rt<0?Ht=Kt-he:rt>0&&(xt=q-he),J=Cs,$e.attr("cursor",gr.selection),un(ge));break}default:return}Os(ge)}function Dn(ge){switch(ge.keyCode){case 16:{Me&&(we=Ke=Me=!1,un(ge));break}case 18:{J===na&&(W<0?dt=bt:W>0&&(Tt=yt),rt<0?Ht=Kt:rt>0&&(xt=q),J=ea,un(ge));break}case 32:{J===Cs&&(ge.altKey?(W&&(dt=bt-ie*W,Tt=yt+ie*W),rt&&(Ht=Kt-he*rt,xt=q+he*rt),J=na):(W<0?dt=bt:W>0&&(Tt=yt),rt<0?Ht=Kt:rt>0&&(xt=q),J=ea),$e.attr("cursor",gr[K]),un(ge));break}default:return}Os(ge)}}function A(N){g(this,arguments).moved(N)}function w(N){g(this,arguments).ended(N)}function F(){var N=this.__brush||{selection:null};return N.extent=Ps(e.apply(this,arguments)),N.dim=t,N}return c.extent=function(N){return arguments.length?(e=typeof N=="function"?N:bs(Ps(N)),c):e},c.filter=function(N){return arguments.length?(r=typeof N=="function"?N:bs(!!N),c):r},c.touchable=function(N){return arguments.length?(a=typeof N=="function"?N:bs(!!N),c):a},c.handleSize=function(N){return arguments.length?(i=+N,c):i},c.keyModifiers=function(N){return arguments.length?(o=!!N,c):o},c.on=function(){var N=s.on.apply(s,arguments);return N===s?c:N},c}function ug(){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 fg(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",r=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=s=>setTimeout(s,1),o=s=>clearTimeout(s);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:o,r?t.requestIdleCallback:a,r?t.cancelIdleCallback:o]}const ze=ug(),mn=ze==null?void 0:ze.document,[dg,rT,Wl,aT]=fg(ze),hg=new Set(["span","div","p","br","b","i","em","strong","u","s","sub","sup","ul","ol","li","dl","dt","dd","table","thead","tbody","tfoot","tr","th","td","caption","colgroup","col","hr","pre","code","blockquote","a","img","svg","g","path","circle","ellipse","rect","line","polyline","polygon","text","tspan","textPath","use","defs","symbol","clipPath","mask","linearGradient","radialGradient","stop","pattern","marker","title","desc"]),Yl=new Set(["class","id","style","title","lang","dir","href","src","alt","width","height","colspan","rowspan","scope","headers","d","points","x","y","x1","x2","y1","y2","cx","cy","r","rx","ry","dx","dy","viewBox","preserveAspectRatio","transform","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-opacity","stroke-linecap","stroke-linejoin","stroke-dasharray","stroke-dashoffset","opacity","clip-path","clip-rule","mask","font-family","font-size","font-weight","font-style","text-anchor","dominant-baseline","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternTransform","marker-start","marker-mid","marker-end","markerWidth","markerHeight","refX","refY","xlink:href"]),vg=new Set(["http:","https:","mailto:"]),gg=new Set(["href","src","xlink:href"]),pg=/^<\/?([a-zA-Z][a-zA-Z0-9]*)/,mg=/^<\/([a-zA-Z][a-zA-Z0-9]*)\s*>$/,yg=/^<([a-zA-Z][a-zA-Z0-9]*)([\s\S]*?)(\/?)>$/,Kl=/([a-zA-Z][\w:-]*)\s*(?:=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g,Zl=/url\s*\(\s*["']?([^"')]+)["']?\s*\)/gi,xg=["expression(","behavior:","binding:","@import","@charset","-moz-binding:"];function Ds(t){return t.replace(/:/gi,":").replace(/&newline;/gi,`
|
|
33
|
+
`).replace(/&tab;/gi," ").replace(/ /gi," ").replace(/</gi,"<").replace(/>/gi,">").replace(/&/gi,"&").replace(/"/gi,'"').replace(/'/gi,"'").replace(/&#(\d+);/gi,(e,r)=>String.fromCharCode(parseInt(r,10))).replace(/&#x([0-9a-f]+);/gi,(e,r)=>String.fromCharCode(parseInt(r,16)))}function Jl(t){const r=Ds(t).trim().replace(/[\s\u0000-\u001f]/g,"").toLowerCase();if(!r||r.startsWith("#")||r.startsWith("/")||r.startsWith("./")||r.startsWith("../")||!r.includes(":"))return!0;const a=r.indexOf(":");if(a>0){const o=r.substring(0,a+1);return vg.has(o)}return!1}function Tg(t){const r=Ds(t).replace(/[\u0000-\u001f]/g,"");Zl.lastIndex=0;let a;for(;(a=Zl.exec(r))!==null;)if(!Jl(a[1]))return null;const o=r.toLowerCase().replace(/\s/g,"");for(const s of xg)if(o.includes(s))return null;return t}const Sg={'"':""","'":"'","`":"`"},$g=/["'`]/g;function Ns(t){return t.replace($g,e=>Sg[e])}function Ag(t,e,r=!1){if(gg.has(t))return Jl(e)?r?Ns(e):e:null;if(t==="style"){const o=Tg(e);return o===null?null:r?Ns(o):o}const a=Ds(e).toLowerCase().replace(/\s/g,"");return/\bon\w+=/.test(a)?null:r?Ns(e):e}function Eg(t){const e=t.match(pg);return e?e[1].toLowerCase():null}function Ig(t){const e=Eg(t);return e!==null&&hg.has(e)}function Rg(t){const e=t.match(mg);if(e)return`</${e[1].toLowerCase()}>`;const r=t.match(yg);if(!r)return"";const[,a,o,s]=r,i=a.toLowerCase(),l=[];Kl.lastIndex=0;let c;for(;(c=Kl.exec(o))!==null;){const p=c[1].toLowerCase(),y=c[2],A=c[3],w=c[4];if(p.startsWith("on"))continue;let F,N;if(y!==void 0)F=y,N='"';else if(A!==void 0)F=A,N="'";else if(w!==void 0)F=w,N='"';else{Yl.has(p)&&l.push(p);continue}if(Yl.has(p)){const K=Ag(p,F,w!==void 0);K!==null&&l.push(`${p}=${N}${K}${N}`)}}const d=l.length>0?` ${l.join(" ")}`:"";return`<${i}${d}${s?"/>":">"}`}function ra(t){return typeof t!="string"||!t||t.indexOf("<")===-1?t:t.replace(/<\/?[^>]*>|[^<>\s]+>/g,e=>e.startsWith("<!--")?"":e.startsWith("<")?Ig(e)?Rg(e):e.replace(/</g,"<"):e.slice(0,-1)+">")}var bg=Object.defineProperty,Ql=Object.getOwnPropertySymbols,Og=Object.prototype.hasOwnProperty,Cg=Object.prototype.propertyIsEnumerable,kl=(t,e,r)=>e in t?bg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ql=(t,e)=>{for(var r in e||(e={}))Og.call(e,r)&&kl(t,r,e[r]);if(Ql)for(var r of Ql(e))Cg.call(e,r)&&kl(t,r,e[r]);return t};function _l(t,e,r=!1){const a=o=>o[t?"getBoundingClientRect":"getBBox"]();return r?a(e):!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+(e.getAttribute("width")||0)?e.rect=a(e):e.rect}function tc(t,e){for(let r=0;r<t.length;r++){const a=t[r];a&&e(a,r)}}const Ne=t=>t||t===0,de=t=>typeof t=="function",je=t=>typeof t=="string",ye=t=>typeof t=="number",ln=t=>typeof t=="undefined",Qe=t=>typeof t!="undefined",Ls=t=>typeof t=="boolean",Pg=t=>Math.ceil(t/10)*10,Io=t=>Math.ceil(t)+.5,Lr=t=>t[1]-t[0],Gn=t=>typeof t=="object",Mg=t=>{for(const e in t)return!1;return!0},Kn=t=>ln(t)||t===null||je(t)&&t.length===0||Gn(t)&&!(t instanceof Date)&&Mg(t)||ye(t)&&isNaN(t),dn=t=>!Kn(t),Xe=t=>Array.isArray(t),Ge=t=>t&&!(t!=null&&t.nodeType)&&Gn(t)&&!Xe(t);function $r(t,e,r){return Qe(t[e])?t[e]:r}function wg(t,e){let r=!1;return Object.keys(t).forEach(a=>t[a]===e&&(r=!0)),r}function _e(t,e,...r){const a=de(t);return a&&t.call(e,...r),a}function Ro(t,e){let r=0;const a=function(...o){!--r&&e.apply(this,...o)};"duration"in t?t.each(()=>++r).on("end",a):(++r,t.call(a))}function aa(t,e,r=[-1,1],a=!1){if(!(!t||!je(e)))if(e.indexOf(`
|
|
34
|
+
`)===-1)t.text(e);else{const o=[t.text(),e].map(s=>s.replace(/[\s\n]/g,""));if(o[0]!==o[1]){const s=e.split(`
|
|
35
|
+
`),i=a?s.length-1:1;t.html(""),s.forEach((l,c)=>{t.append("tspan").attr("x",0).attr("dy",`${c===0?r[0]*i:r[1]}em`).text(l)})}}}function ec(t){const{x:e,y:r,width:a,height:o}=t.getBBox();return[{x:e,y:r+o},{x:e,y:r},{x:e+a,y:r},{x:e+a,y:r+o}]}function nc(t){const{width:e,height:r}=Sn(t),a=ec(t),o=a[0].x,s=Math.min(a[0].y,a[1].y);return{x:o,y:s,width:e,height:r}}function Zn(t,e){var r;const a=t&&((r=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:r[0]);let o=[0,0];try{o=Yn(a||t,e)}catch(s){}return o.map(s=>isNaN(s)?0:s)}function rc(t){const{event:e,$el:r}=t,a=r.subchart.main||r.main;let o;return e&&e.type==="brush"?o=e.selection:a&&(o=a.select(".bb-brush").node())&&(o=Hl(o)),o}function Sn(t,e=!1){return _l(!0,t,e)}function Ar(t,e=!1){return _l(!1,t,e)}function ar(t=!0,e=0,r=1e4){const a=ze.crypto||ze.msCrypto,o=a?e+a.getRandomValues(new Uint32Array(1))[0]%(r-e+1):Math.floor(Math.random()*(r-e)+e);return t?String(o):o}function Fs(t,e,r,a,o){if(r>a)return-1;const s=Math.floor((r+a)/2);let{x:i,w:l=0}=t[s];return o&&(i=t[s].y,l=t[s].h),e>=i&&e<=i+l?s:e<i?Fs(t,e,r,s-1,o):Fs(t,e,s+1,a,o)}function ac(t){const e=rc(t);return e?e[0]===e[1]:!0}function Dg(...t){const e=r=>{if(Ge(r)&&r.constructor){const a=new r.constructor;for(const o in r)a[o]=e(r[o]);return a}return r};return t.map(r=>e(r)).reduce((r,a)=>ql(ql({},r),a))}function $n(t={},e){Xe(e)&&e.forEach(r=>$n(t,r));for(const r in e)/^\d+$/.test(r)||r in t||(t[r]=e[r]);return t}const bn=t=>t.charAt(0).toUpperCase()+t.slice(1);function Ng(t,e="-"){return t.split(e).map((r,a)=>a?r.charAt(0).toUpperCase()+r.slice(1).toLowerCase():r.toLowerCase()).join("")}const Fr=t=>[].slice.call(t);function Lg(t,e,r){const{rootSelector:a="",sheet:o}=t,i=`${a} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(e)} {${r.join(";")}}`;return o[o.insertRule?"insertRule":"addRule"](i,o.cssRules.length)}function Fg(t){let e=[];return t.forEach(r=>{var a;try{r.cssRules&&r.cssRules.length&&(e=e.concat(Fr(r.cssRules)))}catch(o){(a=ze.console)==null||a.warn(`Error while reading rules from ${r.href}: ${o.toString()}`)}}),e}function oc(t){var e,r,a,o,s,i;return{x:((r=(e=ze.pageXOffset)!=null?e:ze.scrollX)!=null?r:0)+((a=t.scrollLeft)!=null?a:0),y:((s=(o=ze.pageYOffset)!=null?o:ze.scrollY)!=null?s:0)+((i=t.scrollTop)!=null?i:0)}}function bo(t,e=0,r=0,a=!0){const o=new DOMPoint(e,r),s=t.getScreenCTM(),i=o.matrixTransform(a?s==null?void 0:s.inverse():s);if(a===!1){const l=Sn(t);i.x-=l.x,i.y-=l.y}return i}function sc(t){const e=t?t.transform:null,r=e&&e.baseVal;return r&&r.numberOfItems?r.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Bs(t){const e=t[0]instanceof Date,r=(e?t.map(Number):t).filter((a,o,s)=>s.indexOf(a)===o);return e?r.map(a=>new Date(a)):r}function ic(t){return t&&t.length?t.reduce((e,r)=>e.concat(r)):[]}function oa(t,...e){if(!e.length||e.length===1&&!e[0])return t;const r=e.shift();return Ge(t)&&Ge(r)&&Object.keys(r).forEach(a=>{if(!/^(__proto__|constructor|prototype)$/i.test(a)){const o=r[a];Ge(o)?(!t[a]&&(t[a]={}),t[a]=oa(t[a],o)):t[a]=Xe(o)?o.concat():o}}),oa(t,...e)}function sa(t,e=!0){let r;return t[0]instanceof Date?r=e?(a,o)=>a-o:(a,o)=>o-a:e&&!t.every(isNaN)?r=(a,o)=>a-o:e||(r=(a,o)=>a>o&&-1||a<o&&1||a===o&&0),t.concat().sort(r)}function er(t,e){let r=e.filter(a=>dn(a));return r.length?ye(r[0])?r=Math[t](...r):r[0]instanceof Date&&(r=sa(r,t==="min")[0]):r=void 0,r}const Oo=(t,e,r=1)=>{const a=[],o=Math.max(0,Math.ceil((e-t)/r))|0;for(let s=t;s<o;s++)a.push(t+s*r);return a},Bg={mouse:(()=>{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,r,a=t())=>{e.dispatchEvent(new MouseEvent(r,a))}}catch(e){return(r,a,o=t())=>{const s=mn.createEvent("MouseEvent");s.initMouseEvent(a,o.bubbles,o.cancelable,ze,0,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),r.dispatchEvent(s)}}})(),touch:(t,e,r)=>{const a=new Touch(oa({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},r));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[a],targetTouches:[],changedTouches:[a]}))}};function La(t,e){let r=t;for(const a in e)r=r.replace(new RegExp(`{=${a}}`,"g"),e[a]);return ra(r)}function Jn(t){var e;let r;if(t instanceof Date)r=t;else if(je(t)){const{config:a,format:o}=this;r=(e=o.dataTime(a.data_xFormat)(t))!=null?e:new Date(t)}else ye(t)&&!isNaN(t)&&(r=new Date(+t));return(!r||isNaN(+r))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),r}function Us(t){const e=t.attr("viewBox");return e?/(\d+(\.\d+)?){3}/.test(e):!1}function Ug(t,e,r=!1){const a=!!t.node;let o=!1;for(const[s,i]of Object.entries(e))if(o=a?t.style(s)===i:t.style[s]===i,r===!1&&o)break;return o}function Fa(){var t,e;return((t=mn)==null?void 0:t.hidden)===!1||((e=mn)==null?void 0:e.visibilityState)==="visible"}function zg(t,e){const{DocumentTouch:r,matchMedia:a,navigator:o}=ze,s=a==null?void 0:a("(pointer:coarse)").matches;let i=!1;if(e)if(o&&"maxTouchPoints"in o)i=o.maxTouchPoints>0;else if("ontouchmove"in ze||r&&mn instanceof r)i=!0;else if(s)i=!0;else{const c=o.userAgent;i=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return t&&!s&&(a==null?void 0:a("(pointer:fine)").matches)&&"mouse"||i&&"touch"||"mouse"}function lc(t,e){e()===!1?dg(()=>lc(t,e)):t()}function jg(t){if(Ge(t)&&!je(t)){const i=t;return{top:i.top||0,right:i.right||0,bottom:i.bottom||0,left:i.left||0}}const e=(je(t)?t.trim().split(/\s+/):[t]).map(i=>+i||0),[r,a=r,o=r,s=a]=e;return{top:r,right:a,bottom:o,left:s}}function cc(t,e){t.pendingRaf!==null?(ze.cancelAnimationFrame(t.pendingRaf),t.pendingRaf=ze.requestAnimationFrame(()=>{t.pendingRaf=null,e()})):(t.pendingRaf=ze.requestAnimationFrame(()=>{t.pendingRaf=null}),e())}function uc(t,e=(r=>r)){const r=new Set;return tc(t,(a,o)=>{r.add(e(a,o))}),r}function fc(t,e,r=(a=>a)){const a=new Map;return tc(t,(o,s)=>{a.set(e(o,s),r(o,s))}),a}var Gg=Object.defineProperty,dc=Object.getOwnPropertySymbols,Vg=Object.prototype.hasOwnProperty,Xg=Object.prototype.propertyIsEnumerable,zs=(t,e,r)=>e in t?Gg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,hc=(t,e)=>{for(var r in e||(e={}))Vg.call(e,r)&&zs(t,r,e[r]);if(dc)for(var r of dc(e))Xg.call(e,r)&&zs(t,r,e[r]);return t},Hg=(t,e,r)=>zs(t,typeof e!="symbol"?e+"":e,r);const vc=class Yf{static setOptions(e){this.data=e.reduce((r,a)=>hc(hc({},r),a),this.data)}constructor(){return Dg(lh,oh,fh,sh,dh,ih,ch,uh,Yf.data)}};Hg(vc,"data",{});let Br=vc;class Wg{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 Yg{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:{},loading:void 0,domain:void 0,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,zoomDomain:null},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},pendingRaf:null,rafBatchQueue:[]}}}const gc={element:Wg,state:Yg};class Kg{constructor(){Object.keys(gc).forEach(e=>{this[e]=new gc[e]})}getStore(e){return this[e]}}var Zg=Object.defineProperty,Jg=(t,e,r)=>e in t?Zg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qg=(t,e,r)=>Jg(t,typeof e!="symbol"?e+"":e,r);const cn={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",domainMinMax:"$domainMinMax",filteredTargets:"$filteredTargets",filteredNullish:"$filteredNullish",visibilityChecksum:"visibilityChecksum",legendItemTextBox:"legendItemTextBox",legendItemMap:"$legendItemMap",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect",shapeOffset:"$shapeOffset"};class kg{constructor(){Qg(this,"cache",{})}add(e,r,a=!1){return this.cache[e]=a?this.cloneTarget(r):r,this.cache[e]}remove(e){(je(e)?[e]:e).forEach(r=>delete this.cache[r])}get(e,r=!1){if(r&&Array.isArray(e)){const a=[];for(let o=0,s;s=e[o];o++)s in this.cache&&a.push(this.cloneTarget(this.cache[s]));return a}else{const a=this.cache[e];return Ne(a)?a:null}}has(e){return e in this.cache&&this.cache[e]!==null}getKeys(){return Object.keys(this.cache)}reset(e){const r=this;for(const a in r.cache)(e||/^\$/.test(a))&&(r.cache[a]=null)}cloneTarget(e){return{id:e.id,id_org:e.id_org,values:e.values.map(r=>({x:r.x,value:r.value,id:r.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",AREA_STEP_RANGE:"area-step-range",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"},js={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"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"},Er={Area:[fe.AREA,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE,fe.AREA_STEP,fe.AREA_STEP_RANGE],AreaRange:[fe.AREA_SPLINE_RANGE,fe.AREA_LINE_RANGE,fe.AREA_STEP_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,fe.AREA_STEP_RANGE],Step:[fe.STEP,fe.AREA_STEP,fe.AREA_STEP_RANGE],Spline:[fe.SPLINE,fe.AREA_SPLINE,fe.AREA_SPLINE_RANGE]};function qg(t){const e=t,{config:r}=e;let a="";if(Kn(r.data_type||r.data_types)&&!e[js.LINE])a="line";else for(const o in js){const s=fe[o];if(e.hasType(s)&&!e[js[o]]){a=s;break}}a&&_g(`Please, make sure if %c${Ng(a)}`,"module has been imported and specified correctly.","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")}function _g(t,e,r){var a;const o="[billboard.js]";if((a=ze.console)==null?void 0:a.error){const i=e?["background:red;color:white;display:block;font-size:15px",e]:[];console.error(`\u274C ${o} ${t}`,"background:red;color:white;display:block;font-size:15px",...i),r&&console.info("%c\u2139\uFE0F","font-size:15px",r)}throw Error(`${o} ${t.replace(/\%c([a-z-]+)/i,"'$1' ")} ${e!=null?e:""}`)}const{setTimeout:tp,clearTimeout:ep}=ze;function np(t){const e=[];let r;const a=function(){a.clear(),t===!1?Wl(()=>{e.forEach(o=>o())},{timeout:200}):r=tp(()=>{e.forEach(o=>o())},ye(t)?t:200)};return a.clear=()=>{r&&(ep(r),r=null)},a.add=o=>e.push(o),a.remove=o=>e.splice(e.indexOf(o),1),a}function pc(){let t=[];const e=function(r,a){function o(){var s;let i=0;for(let l=0,c;c=t[l];l++){if(c===!0||(s=c.empty)!=null&&s.call(c)){i++;continue}if(Fa()===!1){i=t.length;break}try{c.transition()}catch(d){i++}}return i===t.length}lc(()=>{a==null||a()},o)};return e.add=function(r){Xe(r)?t=t.concat(r):t.push(r)},e}const Gs={};function rp(t,e){var r;const a=t.toString(),o=a.replace(/(function|[\s\W\n])/g,"").substring(0,15);return o in Gs||(Gs[o]=new ze.Blob([`${(r=e==null?void 0:e.map(String).join(";"))!=null?r:""}
|
|
35
36
|
|
|
36
37
|
self.onmessage=function({data}) {
|
|
37
38
|
const result = (${a}).apply(null, data);
|
|
38
39
|
self.postMessage(result);
|
|
39
|
-
};`],{type:"text/javascript"})),
|
|
40
|
-
\r]`),r=t.charCodeAt(0);function a(p,y){var A,w,
|
|
41
|
-
`)}function l(p,y){return y==null&&(y=
|
|
42
|
-
`)}function c(p){return p.map(
|
|
43
|
-
`)}function f(p){return p.map(v).join(t)}function v(p){return p==null?"":p instanceof Date?Vg(p):e.test(p+="")?'"'+p.replace(/"/g,'""')+'"':p}return{parse:a,parseRows:o,format:s,formatBody:l,formatRows:c,formatRow:f,formatValue:v}}var zr=gc(","),Xg=zr.parse,Hg=zr.parseRows,j1=zr.format,G1=zr.formatBody,V1=zr.formatRows,X1=zr.formatRow,H1=zr.formatValue,jr=gc(" "),Wg=jr.parse,Yg=jr.parseRows,W1=jr.format,Y1=jr.formatBody,K1=jr.formatRows,Z1=jr.formatRow,J1=jr.formatValue;function Wi(t){const e=[];return t.forEach(function(r,a){const o=r[0];r.forEach(function(i,s){if(s>0){if(typeof e[s-1]=="undefined"&&(e[s-1]={}),typeof i=="undefined")throw new Error(`Source data is missing a component at (${a}, ${s})!`);e[s-1][o]=i}})}),e}function Yi(t){const e=t[0],r=[];return t.forEach(function(a,o){if(o>0){const i={};a.forEach(function(s,l){if(typeof s=="undefined")throw new Error(`Source data is missing a component at (${o}, ${l})!`);i[e[l]]=s}),r.push(i)}}),r}function pc(t,e){const r=[];let a,o;if(Array.isArray(t)){const i=function(s,l){if(s[l]!==void 0)return s[l];const f=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let v=s;return f.some(function(p){return!(v=v&&p in v?v[p]:void 0)}),v};e.x?a=e.value.concat(e.x):a=e.value,r.push(a),t.forEach(function(s){const l=a.map(function(c){let f=i(s,c);return typeof f=="undefined"&&(f=null),f});r.push(l)}),o=Yi(r)}else Object.keys(t).forEach(function(i){var s;const l=t[i].concat();(s=l.unshift)==null||s.call(l,i),r.push(l)}),o=Wi(r);return o}function Kg(t,e="csv",r,a,o){const i=new XMLHttpRequest,s={csv:Zg,tsv:Jg,json:pc};i.open("GET",t),r&&Object.keys(r).forEach(function(l){i.setRequestHeader(l,r[l])}),i.onreadystatechange=function(){if(i.readyState===4)if(i.status===200){const l=i.responseText;l&&o.call(this,s[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},i.send()}function mc(t,e){const r=t.rows(e);let a;return r.length===1?(a=[{}],r[0].forEach(o=>{a[0][o]=null})):a=t.parse(e),a}function Zg(t){return mc({rows:Hg,parse:Xg},t)}function Jg(t){return mc({rows:Yg,parse:Wg},t)}function yc(t,e){const r=t||(e==null?void 0:e.data_keys);return r!=null&&r.x&&(e.data_x=r.x),r}function Qg(t,e,r){const a=this,{config:o}=a;let i;t.forEach(s=>{const l=a.getXKey(s);if(r.customX||r.timeSeries?r.xs.indexOf(l)>=0?i=(r.appendXs&&a.data.xs[s]||[]).concat(e.map((c,f)=>{const v=Ne(c[l]);return v?a.generateTargetX(v,s,f):!1}).filter(c=>c!==!1)):o.data_x?i=this.getOtherTargetXs():dn(o.data_xs)&&(i=a.getXValuesOfXKey(l,a.data.targets)):i=e.map((c,f)=>f),i)a.data.xs[s]=i;else throw new Error(`x is not defined for id = "${s}".`)})}var kg={convertData(t,e){const{config:r}=this,a=i=>i!=null&&i.length&&!Kn(i[0])?r.boost_useWorker:!1;let o=t;if(t.bindto&&(o={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(i=>{const s=`data_${i}`;s in t&&(o[i]=t[s])})),o.url&&e)Kg(o.url,o.mimeType,o.headers,yc(o.keys,r),e);else if(o.json)Gi(a(o.json),pc,e,[Wi,Yi])(o.json,yc(o.keys,r));else if(o.rows)Gi(a(o.rows),Yi,e)(o.rows);else if(o.columns)Gi(a(o.columns),Wi,e)(o.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const r=this,{axis:a,config:o,state:i}=r,s=o.data_type,l=Object.keys(t[0]||{}),{ids:c,xs:f}=l.length?l.reduce((y,A)=>(r.isX.call(r,A)?y.xs.push(A):r.isNotX.call(r,A)&&y.ids.push(A),y),{ids:[],xs:[]}):{ids:[],xs:[]},v={appendXs:e,xs:f,idConverter:o.data_idConverter.bind(r.api),categorized:a==null?void 0:a.isCategorized(),timeSeries:a==null?void 0:a.isTimeSeries(),customX:a==null?void 0:a.isCustomX()};Qg.bind(r)(c,t,v);const p=c.map((y,A)=>{const w=o.data_idConverter.bind(r.api)(y),L=r.getXKey(y),N=v.customX&&v.categorized,D=N&&(()=>{const H=oc(o.axis_x_categories);return t.every(nt=>H.has(nt.x))})(),K=t.__append__,Z=L===null&&K?r.api.data.values(y).length:0;return{id:w,id_org:y,values:t.map((H,nt)=>{const Q=H[L];let ot=H[y],vt;return ot=ot!==null&&!isNaN(ot)&&!Ge(ot)?+ot:Xe(ot)||Ge(ot)?ot:null,(N||i.hasRadar)&&A===0&&!ln(Q)?(!D&&A===0&&nt===0&&!K&&(o.axis_x_categories=[]),vt=o.axis_x_categories.indexOf(Q),vt===-1&&(vt=o.axis_x_categories.length,o.axis_x_categories.push(Q))):vt=r.generateTargetX(Q,y,Z+nt),(ln(ot)||r.data.xs[y].length<=nt)&&(vt=void 0),{x:vt,value:ot,id:w,index:-1}}).filter(H=>Qe(H.x))}});if(p.forEach(y=>{var A;o.data_xSort&&(y.values=y.values.sort((w,L)=>{const N=w.x||w.x===0?w.x:1/0,D=L.x||L.x===0?L.x:1/0;return N-D})),y.values.forEach((w,L)=>w.index=L),(A=r.data.xs[y.id])==null||A.sort((w,L)=>w-L)}),i.hasNegativeValue=r.hasNegativeValueInTargets(p),i.hasPositiveValue=r.hasPositiveValueInTargets(p),s&&r.isValidChartType(s)){const y=r.mapToIds(p).filter(A=>!(A in o.data_types)||!r.isValidChartType(o.data_types[A]));r.setTargetType(y,s)}return p.forEach(y=>r.cache.add(y.id_org,y,!0)),p}},qg={isX(t){const e=this,{config:r}=e,a=r.data_x&&t===r.data_x,o=dn(r.data_xs)&&hg(r.data_xs,t);return a||o},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!((t.data_stack_normalize===!0||Gn(t.data_stack_normalize))&&t.data_groups.length)},isStackNormalizedPerGroup(){var t;const{config:e}=this;return!!(Gn(e.data_stack_normalize)&&((t=e.data_stack_normalize)!=null&&t.perGroup)&&e.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(r=>r.indexOf(t)>=0&&r.length>1):e.length>0},hasAxisGroupedData(t){const e=this,{axis:r}=e;return e.data.targets.filter(i=>r.getId(i.id)===t).map(i=>i.id).some(i=>e.isGrouped(i))},getXKey(t){const e=this,{config:r}=e;return r.data_x?r.data_x:dn(r.data_xs)?r.data_xs[t]:null},getXValuesOfXKey(t,e){const r=this,a=e&&dn(e)?r.mapToIds(e):[];let o;return a.forEach(i=>{r.getXKey(i)===t&&(o=r.data.xs[i])}),o},getIndexByX(t,e){const r=this;return e?e.indexOf(Ue(t)?t:+t):(r.filterByX(r.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const r=this;return t in r.data.xs&&r.data.xs[t]&&Ne(r.data.xs[t][e])?r.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:r}=e;Object.keys(t).forEach(a=>{r.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(dn(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:r}=e;let a;return t&&(a=r.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const r=this;let a=r.filterTargetsToShow(r.data.targets).map(o=>r.addName(r.getValueOnIndex(o.values,t)));return e&&(a=a.filter(o=>o&&"value"in o&&Ne(o.value))),a},getValueOnIndex(t,e){const r=t.filter(a=>a.index===e);return r.length?r[0]:null},updateTargetX(t,e){const r=this;t.forEach(a=>{a.values.forEach((o,i)=>{o.x=r.generateTargetX(e[i],a.id,i)}),r.data.xs[a.id]=e})},updateTargetXs(t,e){const r=this;t.forEach(a=>{e[a.id]&&r.updateTargetX([a],e[a.id])})},generateTargetX(t,e,r){const a=this,{axis:o}=a;let i=o!=null&&o.isCategorized()?r:t||r;if(o!=null&&o.isTimeSeries()){const s=Jn.bind(a);i=s(t||a.getXValue(e,r))}else o!=null&&o.isCustomX()&&!(o!=null&&o.isCategorized())&&(i=Ne(t)?+t:a.getXValue(e,r));return i},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return Qe(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return Qe(e)?e:null},getBaseValue(t){const e=this,{hasAxis:r}=e.state;let{value:a}=t;return a&&r&&(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 r,a;return(t||this.data.targets.map(o=>o.values)).forEach((o,i)=>{const s=o.map(e).filter(ye);r=Math.min(i?r:1/0,...s),a=Math.max(i?a:-1/0,...s)}),{min:r,max:a}},getMinMaxData(){const t=this,e=cn.dataMinMax;let r=t.cache.get(e);if(!r){const a=t.data.targets.map(f=>f.values),o=t.getMinMaxValue(a);let i=[],s=[];const{min:l,max:c}=o;a.forEach(f=>{const v=t.getFilteredDataByValue(f,l),p=t.getFilteredDataByValue(f,c);v.length&&(i=i.concat(v)),p.length&&(s=s.concat(p))}),t.cache.add(e,r={min:i,max:s})}return r},getTotalPerIndex(t){const e=this,{config:r}=e,a=t?`${cn.dataTotalPerIndex}-${t}`:cn.dataTotalPerIndex;let o=e.cache.get(a);if((e.config.data_groups.length||e.isStackNormalized())&&!o){o=[];let{targets:i}=e.data;if(e.isStackNormalizedPerGroup()&&t){const s=r.data_groups.find(l=>l.indexOf(t)>=0);if(s)i=i.filter(l=>s.indexOf(l.id)>=0);else return null}i.forEach(s=>{s.values.forEach((l,c)=>{o[c]||(o[c]=0),o[c]+=~~l.value})}),e.cache.add(a,o)}return o},getTotalDataSum(t){const e=this,r=cn.dataTotalSum;let a=e.cache.get(r);return ye(a)||(a=e.data.targets.reduce((o,i)=>o+i.values.reduce((s,l)=>{var c;return s+((c=l.value)!=null?c:0)},0),0),e.cache.add(r,a)),t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:r}}=t;let a=0;return r.length&&(a=e.data.values.bind(e)(r).reduce((o,i)=>o+i)),a},getFilteredDataByValue(t,e){return t.filter(r=>this.getBaseValue(r)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,r=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,o)=>a.concat(o)).map(a=>a.x),t=sa(Fi(t)).map((a,o,i)=>({x:a,index:r?i.length-o-1:o}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?Xe(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const r=this.mapToIds(t);for(let a=0,o;o=r[a];a++)if(o===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;if(!t){const{cache:r,data:a,state:o}=e,i=cn.filteredTargets,s=o.hiddenTargetIds.join(","),l=r.get(cn.visibilityChecksum);if(s!==l&&(r.remove(i),r.add(cn.visibilityChecksum,s)),r.has(i))return r.get(i);const c=a.targets.filter(f=>e.isTargetToShow(f.id));return r.add(i,c),c}return t.filter(r=>e.isTargetToShow(r.id))},mapTargetsToUniqueXs(t){const e=this,{axis:r}=e;let a=[];return t!=null&&t.length&&(a=Fi(nc(t.map(o=>o.values.map(i=>+i.x)))),a=r!=null&&r.isTimeSeries()?a.map(o=>new Date(+o)):a.map(Number)),sa(a)},addTargetIds(t,e){const{state:r}=this;(Xe(e)?e:[e]).forEach(o=>{r[t].indexOf(o)<0&&r[t].push(o)})},removeTargetIds(t,e){const{state:r}=this;(Xe(e)?e:[e]).forEach(o=>{const i=r[t].indexOf(o);i>=0&&r[t].splice(i,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:r}=e.state,a={},o=e.isMultipleX(),i=o?e.mapTargetsToUniqueXs(t).map(l=>Ue(l)?l:+l):null,s=i?new Map(i.map((l,c)=>[l,c])):null;return t.forEach(l=>{const c=[];l.values.filter(({value:f})=>Ne(f)||f===null).forEach(f=>{let{value:v}=f;if(v!==null&&e.isCandlestickType(f)&&(v=Xe(v)?v.slice(0,4):[v.open,v.high,v.low,v.close]),Xe(v))c.push(...v);else if(Ge(v)&&"high"in v)c.push(...Object.values(v));else if(e.isBubbleZType(f))c.push(r&&e.getBubbleZData(v,"y"));else if(o&&s){const p=Ue(f.x)?f.x:+f.x,y=s.get(p);y!==void 0&&(c[y]=v)}else c.push(v)}),a[l.id]=c}),a},checkValueInTargets(t,e){return Object.keys(t).some(r=>t[r].values.some(a=>e(a.value)))},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,r=[...t],a=e.getSortCompareFn();return a&&r.sort(a),r},getSortCompareFn(t=!1){const e=this,{config:r}=e,a=r.data_order,o=/asc/i.test(a),i=/desc/i.test(a);let s;if(o||i){const l=(f,v)=>f+Math.abs(v.value),c=f=>ye(f)?f:"values"in f?f.values.reduce(l,0):f.value;s=(f,v)=>{const p=c(f),y=c(v);return t?o?p-y:y-p:o?y-p:p-y}}else de(a)&&(s=a.bind(e.api));return s||null},filterByX(t,e){return nc(t.map(r=>r.values)).filter(r=>r.x-e===0)},filterNullish(t){const e=r=>Ne(r.value);return t&&t.filter(r=>"value"in r?e(r):r.values.some(e))},filterRemoveNull(t){return t.filter(e=>Ne(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(r=>({id:r.id,id_org:r.id_org,values:r.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Ni(t)&&t||Gn(t)&&dn(t)},hasNullDataValue(t){return t.some(({value:e})=>e===null)},getDataIndexFromEvent(t){const e=this,{$el:r,config:a,state:{hasRadar:o,inputType:i,eventReceiver:{coords:s,rect:l}}}=e;let c;if(o){let f=t.target;/tspan/i.test(f.tagName)&&(f=f.parentNode);const v=it(f).datum();c=v&&Object.keys(v).length===1?v.index:void 0}else{const f=a.axis_rotated,v=tc(r.chart.node()),p=i==="touch"&&t.changedTouches?t.changedTouches[0]:t;let y=f?p.clientY+v.y:p.clientX+v.x;if(Bi(r.svg)){const A=[y,0];f&&A.reverse(),y=Oo(r.eventRect.node(),...A)[f?"y":"x"]}else y-=f?l.top:l.left;c=Li(s,y,0,s.length-1,f)}return c},getDataLabelLength(t,e,r){var a;const o=this,i=1.3;return((a=o.getTextRect([t,e].map(s=>o.dataLabelFormat()(s))))==null?void 0:a.map(s=>s[r]*i))||[0,0]},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 r=t[e].x,a=[];let o;for(o=e-1;o>=0&&r===t[o].x;o--)a.push(t[o]);for(o=e;o<t.length&&r===t[o].x;o++)a.push(t[o]);return a},findClosestFromTargets(t,e){const r=this,a=t.map(o=>r.findClosest(o.values,e));return r.findClosest(a,e)},findClosest(t,e){const r=this,{$el:{main:a}}=r,o=t.filter(l=>l&&Ne(l.value));let i,s;return o.filter(l=>r.isBarType(l.id)||r.isCandlestickType(l.id)).forEach(l=>{const c=r.isBarType(l.id)?`.${zn.chartBar}.${Ee.target}${r.getTargetSelectorSuffix(l.id)} .${zn.bar}-${l.index}`:`.${fr.chartCandlestick}.${Ee.target}${r.getTargetSelectorSuffix(l.id)} .${fr.candlestick}-${l.index} path`;!s&&r.isWithinBar(a.select(c).node())&&(s=l)}),o.filter(l=>!r.isBarType(l.id)&&!r.isCandlestickType(l.id)).forEach(l=>{const c=r.dist(l,e);i=r.getPointSensitivity(l),c<i&&(i=c,s=l)}),s},dist(t,e){const r=this,{config:{axis_rotated:a},scale:o}=r,i=+a,s=+!a,l=r.circleY(t,t.index),c=(o.zoom||o.x)(t.x);return Math.sqrt(Math.pow(c-e[i],2)+Math.pow(l-e[s],2))},convertValuesToStep(t){const e=this,{axis:r,config:a}=e,o=a.line_step_type,i=r?r.isCategorized():!1,s=Xe(t)?t.concat():[t];if(!(i||/step\-(after|before)/.test(o)))return t;if(s.length){const l=s[0],c=s[s.length-1],{id:f}=l;let{x:v}=l;s.unshift({x:--v,value:l.value,id:f}),i&&o==="step-after"&&s.unshift({x:--v,value:l.value,id:f}),v=c.x,s.push({x:++v,value:c.value,id:f}),i&&o==="step-before"&&s.push({x:++v,value:c.value,id:f})}return s},convertValuesToRange(t){const e=Xe(t)?t.concat():[t],r=[];return e.forEach(a=>{const{x:o,id:i}=a;r.push({x:o,id:i,value:a.value[0]}),r.push({x:o,id:i,value:a.value[2]})}),r},updateDataAttributes(t,e){const r=this,{config:a}=r,o=a[`data_${t}`];return ln(e)||(Object.keys(e).forEach(i=>{o[i]=e[i]}),r.redraw({withLegend:!0})),o},getRangedData(t,e="",r="areaRange"){const a=t==null?void 0:t.value;if(Xe(a)){if(r==="bar")return a.reduce((o,i)=>i-o);{const o={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[r].indexOf(e);return o>=0&&a?a[o]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:r}=e;if(r.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=o=>e.getRatio("index",o,!0);t.forEach(o=>{"values"in o?o.values.forEach(a):a(o)})}},getRatio(t,e,r=!1){const a=this,{config:o,state:i}=a,s=a.api;let l=0;if(e&&s.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=o.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=s.data.values.bind(s),{hiddenTargetIds:f}=i;let v=this.getTotalPerIndex(a.isStackNormalizedPerGroup()?e.id:void 0);if(v===null)return l;if(f.length){let y=f;if(a.isStackNormalizedPerGroup()&&e.id){const A=o.data_groups.find(w=>w.indexOf(e.id)>=0);A&&(y=y.filter(w=>A.indexOf(w)>=0))}if(y.length){let A=c(y,!1);A.length&&(A=A.reduce((w,L)=>w.map((N,D)=>~~N+L[D])),v=v.map((w,L)=>w-A[L]))}}const p=v[e.index];e.ratio=ye(e.value)&&v&&p?e.value/p:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/i.current.dataMax*o.radar_size_ratio;else if(t==="bar"){const f=a.getYScaleById.bind(a)(e.id).domain().reduce((v,p)=>p-v);l=f===0?0:Math.abs(a.getRangedData(e,null,t)/f)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return r&&l?l*100:l},updateDataIndexByX(t){const e=this,r=t.reduce((a,o,i)=>(a[Number(o.x)]=i,a),{});e.data.targets.forEach(a=>{a.values.forEach((o,i)=>{let s=r[Number(o.x)];s===void 0&&(s=i),o.index=s})})},isBubbleZType(t){return this.isBubbleType(t)&&(Ge(t.value)&&("z"in t.value||"y"in t.value)||Xe(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:r}=t;return e.isBarType(t)&&Xe(r)&&r.length>=2&&r.every(ye)},getDataById(t){var e;const r=this.cache.get(t)||this.api.data(t);return(e=r==null?void 0:r[0])!=null?e:r}};function xc(t,e=!1){const r=this,{api:a}=r;e&&r.api.flush(!0),t==null||t.call(a)}var _g={load(t,e){const r=this,{axis:a,data:o,org:i,scale:s}=r,{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(v=>{var p;const y=((p=e.types)==null?void 0:p[v.id])||e.type;r.setTargetType(v.id,y)}),o.targets.forEach(v=>{for(let p=0;p<f.length;p++)if(v.id===f[p].id){v.values=l?v.values.concat(f[p].values):f[p].values,f.splice(p,1);break}}),o.targets=o.targets.concat(f)),r.updateTargets(o.targets),s.zoom&&(c.x=a.isCategorized()?s.x.orgScale():(i.xScale||s.x).copy(),c.domain=r.getXDomain(o.targets),c.x.domain(c.domain),c.currentDomain=r.zoom.getDomain(),r.withinRange(c.currentDomain,void 0,c.domain)||(s.x.domain(c.domain),s.zoom=null,r.$el.eventRect.property("__zoom",null))),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),s.zoom?(i.xDomain=c.domain,i.xScale=c.x,a.isCategorized()&&(c.currentDomain=r.getZoomDomainValue(c.currentDomain),i.xDomain=r.getZoomDomainValue(i.xDomain),i.xScale=c.x.domain(i.xDomain)),r.updateCurrentZoomTransform(c.x,c.currentDomain)):i.xScale&&i.xScale.domain(i.xDomain),r.updateTypesElements(),xc.call(r,e.done,e.resizeAfter)},loadFromArgs(t){const e=this;e.config&&(e.cache.reset(),e.convertData(t,r=>{const a=t.data||r;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets.call(e,a),t)}))},unload(t,e){var r;const a=this,{state:o,$el:i,$T:s}=a,l=!!((r=a.hasLegendDefsPoint)!=null&&r.call(a));let c=e,f=t;if(a.cache.reset(),c||(c=()=>{}),f=f.filter(p=>a.hasTarget(a.data.targets,p)),!f||f.length===0){c();return}f.forEach(p=>{var y;const A=a.getTargetSelectorSuffix(p);o.withoutFadeIn[p]=!1,i.legend&&i.legend.selectAll(`.${Ze.legendItem}${A}`).remove(),a.data.targets=a.data.targets.filter(w=>w.id!==p),l&&((y=i.defs)==null||y.select(`#${a.getDefsPointId(A)}`).remove())}),o.hasFunnel&&a.updateFunnel(a.data.targets),o.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements();const v=i.svg.selectAll(f.map(p=>a.selectorTarget(p)));s(v).style("opacity","0").remove().call(Ro,c)}},Po=(t=>()=>t);function Ki(t,{sourceEvent:e,subject:r,target:a,identifier:o,active:i,x:s,y:l,dx:c,dy:f,dispatch:v}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,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:v}})}Ki.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function tp(t){return!t.ctrlKey&&!t.button}function ep(){return this.parentNode}function np(t,e){return e==null?{x:t.x,y:t.y}:e}function rp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tc(){var t=tp,e=ep,r=np,a=rp,o={},i=so("start","drag","end"),s=0,l,c,f,v,p=0;function y(H){H.on("mousedown.drag",A).filter(a).on("touchstart.drag",N).on("touchmove.drag",D,fh).on("touchend.drag touchcancel.drag",K).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function A(H,nt){if(!(v||!t.call(this,H,nt))){var Q=Z(this,e.call(this,H,nt),H,nt,"mouse");Q&&(it(H.view).on("mousemove.drag",w,Ra).on("mouseup.drag",L,Ra),gi(H.view),vi(H),f=!1,l=H.clientX,c=H.clientY,Q("start",H))}}function w(H){if(kr(H),!f){var nt=H.clientX-l,Q=H.clientY-c;f=nt*nt+Q*Q>p}o.mouse("drag",H)}function L(H){it(H.view).on("mousemove.drag mouseup.drag",null),pi(H.view,f),kr(H),o.mouse("end",H)}function N(H,nt){if(t.call(this,H,nt)){var Q=H.changedTouches,ot=e.call(this,H,nt),vt=Q.length,$t,Tt;for($t=0;$t<vt;++$t)(Tt=Z(this,ot,H,nt,Q[$t].identifier,Q[$t]))&&(vi(H),Tt("start",H,Q[$t]))}}function D(H){var nt=H.changedTouches,Q=nt.length,ot,vt;for(ot=0;ot<Q;++ot)(vt=o[nt[ot].identifier])&&(kr(H),vt("drag",H,nt[ot]))}function K(H){var nt=H.changedTouches,Q=nt.length,ot,vt;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),ot=0;ot<Q;++ot)(vt=o[nt[ot].identifier])&&(vi(H),vt("end",H,nt[ot]))}function Z(H,nt,Q,ot,vt,$t){var Tt=i.copy(),mt=Yn($t||Q,nt),bt,yt,q;if((q=r.call(H,new Ki("beforestart",{sourceEvent:Q,target:y,identifier:vt,active:s,x:mt[0],y:mt[1],dx:0,dy:0,dispatch:Tt}),ot))!=null)return bt=q.x-mt[0]||0,yt=q.y-mt[1]||0,function Et(dt,Rt,kt){var Ht=mt,Kt;switch(dt){case"start":o[vt]=Et,Kt=s++;break;case"end":delete o[vt],--s;case"drag":mt=Yn(kt||Rt,nt),Kt=s;break}Tt.call(dt,H,new Ki(dt,{sourceEvent:Rt,subject:q,target:y,identifier:vt,active:Kt,x:mt[0]+bt,y:mt[1]+yt,dx:mt[0]-Ht[0],dy:mt[1]-Ht[1],dispatch:Tt}),ot)}}return y.filter=function(H){return arguments.length?(t=typeof H=="function"?H:Po(!!H),y):t},y.container=function(H){return arguments.length?(e=typeof H=="function"?H:Po(H),y):e},y.subject=function(H){return arguments.length?(r=typeof H=="function"?H:Po(H),y):r},y.touchable=function(H){return arguments.length?(a=typeof H=="function"?H:Po(!!H),y):a},y.on=function(){var H=i.on.apply(i,arguments);return H===i?y:H},y.clickDistance=function(H){return arguments.length?(p=(H=+H)*H,y):Math.sqrt(p)},y}var ap={setExpand(t,e,r){const a=this,{config:o,$el:{circle:i}}=a;i&&o.point_focus_expand_enabled&&a.expandCircles(t,e,r),a.expandBarTypeShapes(!0,t,e,r)},expandBarTypeShapes(t=!0,e,r,a){const o=this;["bar","candlestick"].filter(i=>o.$el[i]).forEach(i=>{a&&o.$el[i].classed(Ee.EXPANDED,!1),o.getShapeByIndex(i,e,r).classed(Ee.EXPANDED,t)})},setOverOut(t,e){const r=this,{config:a,state:{hasFunnel:o,hasRadar:i,hasTreemap:s},$el:{main:l}}=r,c=Ge(e);if(c||e!==-1){const f=a[t?"data_onover":"data_onout"].bind(r.api);if(a.color_onover&&r.setOverColor(t,e,c),c){const v=r.getTargetSelectorSuffix(e.id),p=o||s?`${Ee.target+v} .${sn.shape}`:Le.arc+v;f(e,l.select(`.${p}`).node())}else if(a.tooltip_grouped)t&&(i&&r.isPointFocusOnly()?r.showCircleFocus(r.getAllValuesOnIndex(e,!0)):r.setExpand(e,null,!0)),!r.isMultipleX()&&l.selectAll(`.${sn.shape}-${e}`).each(function(v){f(v,this)});else{const v=r.cache.get(cn.setOverOut)||[],p=l.selectAll(`.${sn.shape}-${e}`).filter(function(A){return r.isWithinShape(this,A)}),y=p.filter(function(){return v.every(A=>A!==this)});if(!t||p.empty()||v.length===y.size()&&y.nodes().every((A,w)=>A!==v[w]))for(;v.length;){const A=v.pop();a.data_onout.bind(r.api)(it(A).datum(),A)}y.each(function(){t&&(f(it(this).datum(),this),v.push(this))}),r.cache.add(cn.setOverOut,v)}}},callOverOutForTouch(t){const e=this,r=e.cache.get(cn.callOverOutForTouch);(Ge(t)&&r?t.id!==r.id:t!==r)&&((r||ye(r))&&e.setOverOut(!1,r),(t||ye(t))&&e.setOverOut(!0,t),e.cache.add(cn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:r}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?Tc().on("drag",function(a){r.event=a,t.drag(Zn(a,this))}).on("start",function(a){r.event=a,t.dragstart(Zn(a,this))}).on("end",a=>{r.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,r){var a,o,i;const s=this,{config:l,state:{eventReceiver:c,hasAxis:f,hasFunnel:v,hasRadar:p,hasTreemap:y},$el:{eventRect:A,funnel:w,radar:L,svg:N,treemap:D}}=s;let K=(i=(o=(v||y)&&c.rect||p&&L.axes.select(`.${gn.axis}-${e} text`)||A||((a=s.getArcElementByIdOrIndex)==null?void 0:a.call(s,e)))==null?void 0:o.node)==null?void 0:i.call(o);if(K){const Z=s.isMultipleX(),H=l.axis_rotated;let{width:nt,left:Q,top:ot}=Sn(K);if(f&&!p&&!Z){const mt=c.coords[e];mt?(nt=mt.w,Q+=mt.x,ot+=mt.y):(nt=0,Q=0,ot=0)}let vt=Q+(r?r[0]:0)+(Z||H?0:nt/2),$t=ot+(r?r[1]:0)+(H?4:0);if(Bi(N)){const mt=Oo(s.$el.eventRect.node(),vt,$t,!1);vt=mt.x,$t=mt.y}const Tt={screenX:vt,screenY:$t,clientX:vt,clientY:$t,bubbles:p};(v||y)&&(K=(w!=null?w:D).node()),yg[/^(mouse|click)/.test(t)?"mouse":"touch"](K,t,Tt)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:r}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),r==null||r.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:r,eventRect:a,legend:o,region:i,svg:s,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(" ");[s,a,i==null?void 0:i.list,c==null?void 0:c.getSelection(),r==null?void 0:r.selectAll("path"),o==null?void 0:o.selectAll("g"),l].forEach(v=>v==null?void 0:v.on(f,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},op={categoryName(t){var e;const{axis_x_categories:r}=this.config;return(e=r==null?void 0:r[t])!=null?e:t}},ip={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const r=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),o=r?"id":"index";return i=>{const s=i.data||i;return((e?this.generateClass(Ve[r?"shapes":"shape"],s[o]):"")+this.generateClass(Ve[t],s[a?"id":o])).trim()}},getChartClass(t){return e=>Ve[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],r=[];return function(a){var o;const i=a.id||((o=a.data)==null?void 0:o.id)||a;return r.indexOf(i)<0&&r.push(i),e[r.indexOf(i)%e.length]}},classRegion(t,e){return`${this.generateClass(Ve.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let r="";return e&&(r=` ${Ve.target}-${e}`),this.generateClass(Ve.target,t)+r},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Ve.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Ve.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(t,e="",r=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Ve.target+a} ${r}, ${e}.${Ve.circles+a} ${r}`},selectorTargets(t,e){const r=t||[];return r.length?r.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Ve.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class Sc extends Map{constructor(e,r=Ec){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,o]of e)this.set(a,o)}get(e){return super.get(Zi(this,e))}has(e){return super.has(Zi(this,e))}set(e,r){return super.set($c(this,e),r)}delete(e){return super.delete(Ac(this,e))}}class Q1 extends Set{constructor(e,r=Ec){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Zi(this,e))}add(e){return super.add($c(this,e))}delete(e){return super.delete(Ac(this,e))}}function Zi({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function $c({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function Ac({_intern:t,_key:e},r){const a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Ec(t){return t!==null&&typeof t=="object"?t.valueOf():t}function la(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function k1(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 Ic=Symbol("implicit");function bc(){var t=new Sc,e=[],r=[],a=Ic;function o(i){let s=t.get(i);if(s===void 0){if(a!==Ic)return a;t.set(i,s=e.push(i)-1)}return r[s%r.length]}return o.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new Sc;for(const s of i)t.has(s)||t.set(s,e.push(s)-1);return o},o.range=function(i){return arguments.length?(r=Array.from(i),o):r.slice()},o.unknown=function(i){return arguments.length?(a=i,o):a},o.copy=function(){return bc(e,r).unknown(a)},la.apply(o,arguments),o}const sp=(t,e,r)=>{const a=it(t.cloneNode(!0));return a.attr("id",r).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:r,node:a.node()}};function lp(t){const e=cn.colorPattern,{body:r}=mn;let a=r[e];if(!a){const i=t.classed(di.colorPattern,!0).style("background-image");t.classed(di.colorPattern,!1),i.indexOf(";")>-1&&(a=i.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map(s=>s.trim().replace(/[\"'\s]/g,"")).filter(Boolean),r[e]=a)}return a}const cp=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var up={generateColor(){const t=this,{$el:e,config:r}=t,a=[],o=r.area_linearGradient||r.bar_linearGradient||r.point_radialGradient;let i=dn(r.color_pattern)?r.color_pattern:bc(lp(e.chart)||cp).range();const s=i;if(de(r.color_tiles)){const l=r.color_tiles.bind(t.api)(),c=i.map((f,v)=>{const p=f.replace(/[#\(\)\s,]/g,""),y=`${t.state.datetimeId}-pattern-${p}-${v}`;return sp(l[v%l.length],f,y)});i=c.map(f=>`url(#${f.id})`),t.patterns=c}return function(l){var c;const f=r.data_colors,v=r.data_color,p=l.id||((c=l.data)==null?void 0:c.id)||l,y=t.isTypeOf(p,["line","spline","step"])||!r.data_types[p];let A;if(de(f[p])?A=f[p].bind(t.api)(l):f[p]?A=f[p]:(a.indexOf(p)<0&&a.push(p),A=y?s[a.indexOf(p)%s.length]:i[a.indexOf(p)%i.length],f[p]=A),A=de(v)?v.call(t.api,A,l):A,o){const w=t.$el.defs.selectAll(`[id$='-gradient${t.getTargetSelectorSuffix(p)}'] stop`);let L;w.each(function(N,D){L=D===0?this.style.stopColor:this.style.stopColor===L}),L===!0&&w.attr("stop-color",A)}return A}},generateLevelColor(){const t=this,{config:e}=t,r=e.color_pattern,a=e.color_threshold,o=a.unit==="value",i=a.max||100,s=a.values&&a.values.length?a.values:[];return dn(a)?function(l){const c=o?l:l*100/i;let f=r[r.length-1];for(let v=0,p=s.length;v<p;v++)if(c<=s[v]){f=r[v];break}return f}:null},generateTextBGColorFilter(t,e={x:0,y:0,width:1,height:1}){const r=this,{$el:{defs:a},state:o}=r;if(t){let i=[];Ue(t)?i.push(""):Ge(t)?i=Object.keys(t):de(t)&&(i=r.mapToTargetIds()),i.forEach(s=>{const l=`${o.datetimeId}-labels-bg${r.getTargetSelectorSuffix(s)}${Ue(t)?r.getTargetSelectorSuffix(t):""}`,c=pr(s===""?t:(t==null?void 0:t[s])||"");a.select(`#${l}`).empty()&&a.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="${c}" />
|
|
44
|
-
<feComposite in="SourceGraphic" />`)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:r},state:{datetimeId:a},$el:{defs:o}}=t;r.forEach(i=>{const s=`${a}-gradient${t.getTargetSelectorSuffix(i.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(i)&&"area"||t.isBarType(i)&&"bar";if((l||c)&&o.select(`#${s}`).empty()){const f=t.color(i),v={defs:null,stops:[]};if(l){const{cx:p=.3,cy:y=.3,r:A=.7,stops:w=[[.1,f,0],[.9,f,1]]}=l;v.stops=w,v.defs=o.append("radialGradient").attr("id",`${s}`).attr("cx",p).attr("cy",y).attr("r",A)}else{const p=e.axis_rotated,{x:y=p?[1,0]:[0,0],y:A=p?[0,0]:[0,1],stops:w=[[0,f,1],[1,f,0]]}=e[`${c}_linearGradient`];v.stops=w,v.defs=o.append("linearGradient").attr("id",`${s}`).attr("x1",y[0]).attr("x2",y[1]).attr("y1",A[0]).attr("y2",A[1])}v.stops.forEach(p=>{const[y,A,w]=p,L=de(A)?A.bind(t.api)(i.id):A;v.defs&&v.defs.append("stop").attr("offset",y).attr("stop-color",L||f).attr("stop-opacity",w)})}})},setOverColor(t,e){const r=this,{config:a,$el:{main:o}}=r,i=a.color_onover;let s=t?i:r.color;Ge(s)?s=({id:l})=>l in i?i[l]:r.color(l):Ue(s)?s=()=>i:de(i)&&(s=s.bind(r.api)),o.selectAll(Ge(e)?`.${Le.arc}${r.getTargetSelectorSuffix(e.id)}`:`.${sn.shape}-${e}`).style("fill",s)}},fp={getYDomainMinMax(t,e){const r=this,{axis:a,config:o}=r,i=e==="min",s=o.data_groups,l=r.mapToIds(t),c=oc(l),f=r.getValuesAsIdKeyed(t);if(s.length>0){const v=r[`has${i?"Negative":"Positive"}ValueInTargets`](t),p=new Map(l.map(y=>[y,a.getId(y)]));s.forEach(y=>{const A=y.filter(w=>c.has(w));if(A.length){const w=A[0],L=p.get(w);v&&f[w]&&(f[w]=f[w].map(N=>(i?N<0:N>0)?N:0)),A.filter((N,D)=>D>0).forEach(N=>{if(f[N]){const D=p.get(N);f[N].forEach((K,Z)=>{const H=+K,nt=i?H>0:H<0;D===L&&!(v&&nt)&&(f[w][Z]+=H)})}})}})}return er(e,Object.keys(f).map(v=>er(e,f[v])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(r=>e.axis.getId(r)===t)},getYDomain(t,e,r){const a=this,{axis:o,config:i,scale:s}=a,l=`axis_${e}`;if(a.isStackNormalized()&&t.filter(bt=>o.getId(bt.id)===e).map(bt=>bt.id).some(bt=>a.isGrouped(bt)))return[0,100];const c=(s==null?void 0:s[e])&&s[e].type==="log",f=t.filter(Tt=>o.getId(Tt.id)===e),v=r?a.filterByXDomain(f,r):f;if(v.length===0)return a.isHiddenTargetWithYDomain(e)?s[e].domain():e==="y2"?s.y.domain():a.getYDomain(t,"y2",r);const p=i[`${l}_min`],y=i[`${l}_max`],A=i[`${l}_center`],w=i[`${l}_inverted`],L=a.hasDataLabel()&&i.axis_rotated,N=a.hasDataLabel()&&!i.axis_rotated;let D=a.getYDomainMinMax(v,"min"),K=a.getYDomainMinMax(v,"max"),Z=[fe.BAR,fe.BUBBLE,fe.SCATTER,...Ir.Line].some(Tt=>{const mt=Tt.indexOf("area")>-1?"area":Tt;return a.hasType(Tt,v,!0)&&i[`${mt}_zerobased`]});D=Ne(p)?p:Ne(y)?D<=y?D:y-10:D,K=Ne(y)?y:Ne(p)?p<=K?K:p+10:K,isNaN(D)&&(D=0),isNaN(K)&&(K=D),D===K&&(D<0?K=0:D=0);const H=D>=0&&K>=0,nt=D<=0&&K<=0;(Ne(p)&&H||Ne(y)&&nt)&&(Z=!1),Z&&(H&&(D=0),nt&&(K=0));const Q=Math.abs(K-D);let ot={top:Q*.1,bottom:Q*.1};if(Qe(A)){const Tt=Math.max(Math.abs(D),Math.abs(K));K=A+Tt,D=A-Tt}if(L){const Tt=Fr(s.y.range()),mt=a.getDataLabelLength(D,K,"width").map(bt=>{const yt=bt/Tt;return isFinite(yt)?yt:0});["bottom","top"].forEach((bt,yt)=>{ot[bt]+=Q*(mt[yt]/(1-mt[0]-mt[1]))})}else if(N){const Tt=a.getDataLabelLength(D,K,"height");["bottom","top"].forEach((mt,bt)=>{ot[mt]+=a.convertPixelToScale("y",Tt[bt],Q)})}ot=a.getResettedPadding(ot);const vt=i[`${l}_padding`];dn(vt)&&["bottom","top"].forEach(Tt=>{ot[Tt]=o.getPadding(vt,Tt,ot[Tt],Q)}),Z&&(H&&(ot.bottom=D),nt&&(ot.top=-K));const $t=c?[D,K].map(Tt=>Tt<0?0:Tt):[D-ot.bottom,K+ot.top];return w?$t.reverse():$t},getXDomainMinMax(t,e){var r;const a=this,o=a.config[`axis_x_${e}`],i=er(e,t.map(l=>er(e,l.values.map(c=>c.x))));let s=Ge(o)?o.value:o;return s=Qe(s)&&((r=a.axis)!=null&&r.isTimeSeries())?Jn.bind(this)(s):s,Ge(o)&&o.fit&&(e==="min"&&s<i||e==="max"&&s>i)&&(s=void 0),Qe(s)?s:i},getXDomainPadding(t,e){const r=this,{axis:a,config:o}=r,i=o.axis_x_padding,s=a.isTimeSeries()&&e,l=Fr(t);let c;if(a.isCategorized()||s)c=0;else if(r.hasType("bar")){const p=r.getMaxDataCount();c=p>1?l/(p-1)/2:.5}else c=r.getResettedPadding(l*.01);let{left:f=c,right:v=c}=ye(i)?{left:i,right:i}:i;if(i.unit==="px"){const p=Math.abs(l+l*.2);f=a.getPadding(i,"left",c,p),v=a.getPadding(i,"right",c,p)}else{const p=l+f+v;if(s&&p){const y=l/e/p;f=f/p/y,v=v/p/y}}return{left:f,right:v}},getXDomain(t){const e=this,{axis:r,config:a,scale:{x:o}}=e,i=a.axis_x_inverted,s=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=s;if(o.type!=="log"){const f=r.isCategorized(),v=r.isTimeSeries(),p=e.getXDomainPadding(s);let[y,A]=s;y-A===0&&!f&&(v?(y=new Date(y.getTime()*.5),A=new Date(A.getTime()*1.5)):(y=y===0?1:y*.5,A=A===0?-1:A*1.5)),(y||y===0)&&(l=v?new Date(y.getTime()-p.left):y-p.left),(A||A===0)&&(c=v?new Date(A.getTime()+p.right):A+p.right)}return i?[c,l]:[l,c]},updateXDomain(t,e,r,a,o){var i;const s=this,{config:l,org:c,scale:{x:f,subX:v}}=s,p=l.zoom_enabled;if(r&&(f.domain(o||sa(s.getXDomain(t),!l.axis_x_inverted)),c.xDomain=f.domain(),v.domain(f.domain()),(i=s.brush)==null||i.scale(v)),e){const y=o||!s.brush||_l(s)?c.xDomain:ql(s).map(v.invert);f.domain(y)}return(r||e)&&p&&s.zoom.updateScaleExtent(),a&&f.domain(s.trimXDomain(f.orgDomain())),f.domain()},trimXDomain(t){const e=this,r=e.config.axis_x_inverted,a=e.getZoomDomain(),[o,i]=a;return(r?t[0]>=o:t[0]<=o)&&(t[1]=+t[1]+(o-t[0]),t[0]=o),(r?t[1]<=i:t[1]>=i)&&(t[0]=+t[0]-(t[1]-i),t[1]=i),t},getZoomDomain(t="zoom",e=!1){const r=this,{config:a,scale:o,org:i}=r;let[s,l]=e&&o[t]?o[t].domain():i.xDomain;return t==="zoom"&&(Qe(a.zoom_x_min)&&(s=er("min",[s,a.zoom_x_min])),Qe(a.zoom_x_max)&&(l=er("max",[l,a.zoom_x_max]))),[s,l]},getZoomDomainValue(t){const e=this,{config:r,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const o=r.axis_x_inverted;return t.map((s,l)=>Number(s)+(l===0?+o:+!o))}return t},convertPixelToScale(t,e,r){const a=this,{config:o,state:i}=a,s=o.axis_rotated;let l;return t==="x"?l=s?"height":"width":l=s?"width":"height",r*(e/i[l])},withinRange(t,e=[0,0],r){const o=this.config.axis_x_inverted,[i,s]=r;if(Array.isArray(t)){const l=[...t];if(o&&l.reverse(),l[0]<l[1])return t.every((c,f)=>(f===0?o?+c<=i:+c>=i:o?+c>=s:+c<=s)&&!t.every((v,p)=>v===e[p]))}return!1}};function Rc(t,e,r){const{config:a}=t,o=`axis_${e}_tick_format`;return(a[o]?a[o]:t.defaultValueFormat).call(t.api,r)}var dp={yFormat(t){return Rc(this,"y",t)},y2Format(t){return Rc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:r,y2Format:a}=t,o=t.hasArcType(null,["gauge","polar","radar"]);return function(i,s,l){return(o?e:t.axis&&t.axis.getId(l)==="y2"?a:r).call(t,i,s)}},defaultValueFormat(t){return Xe(t)?t.join("~"):Ne(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,r=e.config.data_labels,a=i=>{let l=i;return Xe(i)?l=i.join("~"):Ge(i)&&(l=Object.values(i).join("~")),l};let o=a;return de(r.format)?o=r.format:Gn(r.format)&&(r.format[t]?o=r.format[t]===!0?a:r.format[t]:o=()=>""),o.bind(e.api)}};function Mo(t){const e=this,r=e.getDataById(t);return e.levelColor?e.levelColor(r.values[0].value):e.color(r)}function Ji(t,e=!0){var r;const{config:a}=this;let o=(r=a.data_names[t])!=null?r:t;return e&&de(a.legend_format)&&(o=a.legend_format(o,t!==o?t:void 0)),o}function hp(t,e){if(!e||e.empty())return;const r=[];e.each(function(o){r.push({id:o,node:this})});const a=ic(r,o=>o.id,o=>o.node);t.cache.add(cn.legendItemMap,a)}var vp={initLegend(){const t=this,{config:e,$el:r}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(r.legend=t.$el.svg.append("g").classed(Ze.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,r){var a;const o=this,{config:i,state:s,scale:l,$el:c}=o,f=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};f.withTransition=Ar(f,"withTransition",!0),f.withTransitionForTransform=Ar(f,"withTransitionForTransform",!0),i.legend_contents_bindto&&i.legend_contents_template?o.updateLegendTemplate():s.hasTreemap||o.updateLegendElement(t||o.mapToIds(o.data.targets),f,r),(a=c.legend)==null||a.selectAll(`.${Ze.legendItem}`).classed(Ze.legendItemHidden,function(v){const p=!o.isTargetToShow(v);return p&&(this.style.opacity=null),p}),o.updateScales(!1,!l.zoom),o.updateSvgSize(),o.transformAll(f.withTransitionForTransform,r),s.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:r}=t,a=it(e.legend_contents_bindto),o=e.legend_contents_template;if(!a.empty()){const i=t.mapToIds(t.data.targets),s=[];let l="";i.forEach(f=>{const v=de(o)?pr(o.call(t.api,f,t.color(f),t.api.data(f)[0].values)):Fa(o,{COLOR:t.color(f),TITLE:f});v&&(s.push(f),l+=v)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(s);t.setLegendItem(c),r.legend=a}},updateSizeForLegend(t){const e=this,{config:r,state:{isLegendTop:a,isLegendLeft:o,isLegendRight:i,isLegendInset:s,current:l}}=e,{width:c,height:f}=t,v={top:a?e.getCurrentPaddingByDirection("top")+r.legend_inset_y+5.5:l.height-f-e.getCurrentPaddingByDirection("bottom")-r.legend_inset_y,left:o?e.getCurrentPaddingByDirection("left")+r.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-r.legend_inset_x+.5};e.state.margin3={top:i?0:s?v.top:l.height-f,right:NaN,bottom:0,left:i?l.width-c:s?v.left:0}},transformLegend(t){const e=this,{$el:{legend:r},$T:a}=e;a(r,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 r=this,{legend:a}=r.$el;if(a){const o=r.getLegendItemById(t);o&&it(o).select("line").style("stroke",e)}},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:r,isLegendInset:a,legendItemWidth:o,legendStep:i}=t.state;return t.config.legend_show?r||a?o*(i+1):e:0},getLegendHeight(){var t;const e=this,{current:r,isLegendRight:a,legendItemHeight:o,legendStep:i}=e.state,s=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?r.height:Math.max(s?10:20,o)*(i+1):0},opacityForUnfocusedLegend(t){return t.classed(Ze.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const r=this,{$el:{legend:a},$T:o}=r,i=r.mapToTargetIds(t);a&&o(a.selectAll(`.${Ze.legendItem}`).filter(s=>i.indexOf(s)>=0).classed(qe.legendItemFocused,e)).style("opacity",function(){return e?null:r.opacityForUnfocusedLegend.call(r,it(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:r}=t;e&&r(e.selectAll(`.${Ze.legendItem}`).classed(qe.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:r,$el:a,$T:o}=e;r.legend_show||(r.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),o(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:r,$el:{legend:a}}=e;r.legend_show&&Kn(t)&&(r.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 r=this,{cache:a,state:o}=r;let i;const s=cn.legendItemTextBox;return t&&(i=!o.redrawing&&a.get(s)||{},i[t]||(i[t]=r.getTextRect(e,Ze.legendItem),a.add(s,i)),i=i[t]),i},setLegendItem(t){const e=this,{$el:r,api:a,config:o,state:i}=e,s=i.inputType==="touch",l=e.hasType("gauge"),c=o.boost_useCssRule,f=o.legend_item_interaction;t.attr("class",function(v){const p=it(this);return(!p.empty()&&p.attr("class")||"")+e.generateClass(Ze.legendItem,v)}).style("visibility",v=>e.isLegendToShow(v)?null:"hidden"),o.interaction_enabled&&(c&&[[`.${Ze.legendItem}`,"cursor:pointer"],[`.${Ze.legendItem} text`,"pointer-events:none"],[`.${Ze.legendItemPoint} text`,"pointer-events:none"],[`.${Ze.legendItemTile}`,"pointer-events:none"],[`.${Ze.legendItemEvent}`,"fill-opacity:0"]].forEach(v=>{const[p,y]=v;e.setCssRule(!1,p,[y])(r.legend)}),t.on(f.dblclick?"dblclick":"click",f||de(o.legend_item_onclick)?function(v,p){if(!_e(o.legend_item_onclick,a,p,!i.hiddenTargetIds.includes(p))){const{altKey:y,target:A,type:w}=v;w==="dblclick"||y?i.hiddenTargetIds.length&&A.parentNode.getAttribute("class").indexOf(Ze.legendItemHidden)===-1?a.show():(a.hide(),a.show(p)):(a.toggle(p),it(this).classed(qe.legendItemFocused,!1))}s&&e.hideTooltip()}:null),!s&&t.on("mouseout",f||de(o.legend_item_onout)?function(v,p){_e(o.legend_item_onout,a,p,!i.hiddenTargetIds.includes(p))||(it(this).classed(qe.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${jn.gaugeValue}`),e.api.revert())}:null).on("mouseover",f||de(o.legend_item_onover)?function(v,p){_e(o.legend_item_onover,a,p,!i.hiddenTargetIds.includes(p))||(it(this).classed(qe.legendItemFocused,!0),l&&e.markOverlapped(p,e,`.${jn.gaugeValue}`),!i.transiting&&e.isTargetToShow(p)&&a.focus(p))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer"))),hp(e,t)},getLegendItemById(t){var e;const r=this,a=r.cache.get(cn.legendItemMap);if(a&&a instanceof Map)return a.get(t)||null;const o=(e=r.$el.legend)==null?void 0:e.selectAll(`.${Ze.legendItem}`).filter(i=>i===t);return(o==null?void 0:o.node())||null},updateLegendElement(t,e){const r=this,{config:a,state:o,$el:{legend:i},$T:s}=r,c=a.legend_item_tile_type!=="circle",f=a.legend_item_tile_r,v={width:c?a.legend_item_tile_width:f*2,height:c?a.legend_item_tile_height:f*2},p={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:v.width+5,totalLength:0},y={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let A,w,L;const N=t.filter(Q=>!Qe(a.data_names[Q])||a.data_names[Q]!==null),D=e.withTransition,K=r.getUpdateLegendPositions(N,p,y);o.isLegendInset&&(p.step=a.legend_inset_step?a.legend_inset_step:N.length,r.updateLegendStep(p.step)),o.isLegendRight?(A=Q=>p.max.width*y.steps[Q],w=Q=>y.margins[y.steps[Q]]+y.offsets[Q]):o.isLegendInset?(A=Q=>p.max.width*y.steps[Q]+10,w=Q=>y.margins[y.steps[Q]]+y.offsets[Q]):(A=Q=>y.margins[y.steps[Q]]+y.offsets[Q],w=Q=>p.max.height*y.steps[Q]);const Z={xText:(Q,ot)=>A(Q,ot)+4+v.width,xRect:(Q,ot)=>A(Q,ot),x1Tile:(Q,ot)=>A(Q,ot)-2,x2Tile:(Q,ot)=>A(Q,ot)-2+v.width,yText:(Q,ot)=>w(Q,ot)+9,yRect:(Q,ot)=>w(Q,ot)-5,yTile:(Q,ot)=>w(Q,ot)+4};r.generateLegendItem(N,v,K,Z),L=i.select(`.${Ze.legendBackground} rect`),o.isLegendInset&&p.max.width>0&&L.size()===0&&(L=i.insert("g",`.${Ze.legendItem}`).attr("class",Ze.legendBackground).append("rect")),a.legend_tooltip&&i.selectAll("title").data(N).text(Q=>Ji.bind(r)(Q,!1));const H=i.selectAll("text").data(N).text(Q=>Ji.bind(r)(Q)).each(function(Q,ot){K(this,Q,ot)});s(H,D).attr("x",Z.xText).attr("y",Z.yText);const nt=i.selectAll(`rect.${Ze.legendItemEvent}`).data(N);s(nt,D).attr("width",Q=>y.widths[Q]).attr("height",Q=>y.heights[Q]).attr("x",Z.xRect).attr("y",Z.yRect),r.updateLegendItemPos(N,D,Z),L&&s(L,D).attr("height",r.getLegendHeight()-12).attr("width",p.max.width*(p.step+1)+10),r.updateLegendItemWidth(p.max.width),r.updateLegendItemHeight(p.max.height),r.updateLegendStep(p.step)},getUpdateLegendPositions(t,e,r){const a=this,{config:o,state:i}=a,s=i.isLegendRight||i.isLegendInset;return function(l,c,f){const v=f===0,p=f===t.length-1,y=a.getLegendItemTextBox(c,l),A=y.width+e.tileWidth+(p&&!s?0:e.padding.right)+o.legend_padding,w=y.height+e.padding.top,L=s?w:A,N=s?a.getLegendHeight():a.getLegendWidth();let D;const K=function(H,nt){nt||(D=(N-e.totalLength-L)/2,D<e.posMin&&(D=(N-L)/2,e.totalLength=0,e.step++)),r.steps[H]=e.step,r.margins[e.step]=i.isLegendInset?10:D,r.offsets[H]=e.totalLength,e.totalLength+=L};if(v&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),o.legend_show&&!a.isLegendToShow(c)){r.widths[c]=0,r.heights[c]=0,r.steps[c]=0,r.offsets[c]=0;return}r.widths[c]=A,r.heights[c]=w,(!e.max.width||A>=e.max.width)&&(e.max.width=A),(!e.max.height||w>=e.max.height)&&(e.max.height=w);const Z=s?e.max.height:e.max.width;o.legend_equally?(Object.keys(r.widths).forEach(H=>r.widths[H]=e.max.width),Object.keys(r.heights).forEach(H=>r.heights[H]=e.max.height),D=(N-Z*t.length)/2,D<e.posMin?(e.totalLength=0,e.step=0,t.forEach(H=>K(H))):K(c,!0)):K(c)}},generateLegendItem(t,e,r,a){const o=this,{config:i,state:s,$el:{legend:l}}=o,c=i.legend_usePoint,f=i.legend_item_tile_r,v=i.legend_item_tile_type,p=v!=="circle",y=s.isLegendRight||s.isLegendInset,A=-200,w=l.selectAll(`.${Ze.legendItem}`).data(t).enter().append("g");if(o.setLegendItem(w),i.legend_tooltip&&w.append("title").text(L=>L),w.append("text").text(L=>Ji.bind(o)(L)).each(function(L,N){r(this,L,N)}).style("pointer-events",o.getStylePropValue("none")).attr("x",y?a.xText:A).attr("y",y?A:a.yText),w.append("rect").attr("class",Ze.legendItemEvent).style("fill-opacity",o.getStylePropValue("0")).attr("x",y?a.xRect:A).attr("y",y?A:a.yRect),c){const L=[],N=o.getValidPointPattern();w.append(D=>{L.indexOf(D)===-1&&L.push(D);let K=N[L.indexOf(D)%N.length];return K==="rectangle"&&(K="rect"),mn.createElementNS(Gt.svg,"hasValidPointType"in o&&o.hasValidPointType(K)?K:"use")}).attr("class",Ze.legendItemPoint).style("fill",Mo.bind(o)).style("pointer-events",o.getStylePropValue("none")).attr("href",(D,K,Z)=>{const nt=Z[K].nodeName.toLowerCase(),Q=o.getTargetSelectorSuffix(D);return nt==="use"?`#${s.datetimeId}-point${Q}`:void 0})}else w.append(p?"line":v).attr("class",Ze.legendItemTile).style("stroke",Mo.bind(o)).style("pointer-events",o.getStylePropValue("none")).call(L=>{v==="circle"?L.attr("r",f).style("fill",Mo.bind(o)).attr("cx",y?a.x2Tile:A).attr("cy",y?A:a.yTile):p&&L.attr("stroke-width",e.height).attr("x1",y?a.x1Tile:A).attr("y1",y?A:a.yTile).attr("x2",y?a.x2Tile:A).attr("y2",y?A:a.yTile)})},updateLegendItemPos(t,e,r){const a=this,{config:o,$el:{legend:i},$T:s}=a,l=o.legend_usePoint,c=o.legend_item_tile_type,f=c!=="circle";if(l){const v=i.selectAll(`.${Ze.legendItemPoint}`).data(t);s(v,e).each(function(){const p=this.nodeName.toLowerCase(),y=o.point_r;let A="x",w="y",L=2,N=2.5,D=null,K=null,Z=null;if(p==="circle"){const H=y*.2;A="cx",w="cy",D=y+H,L=y*2,N=-H}else if(p==="rect"){const H=y*2.5;K=H,Z=H,N=3}it(this).attr(A,H=>r.x1Tile(H)+L).attr(w,H=>r.yTile(H)-N).attr("r",D).attr("width",K).attr("height",Z)})}else{const v=i.selectAll(`.${Ze.legendItemTile}`).data(t);s(v,e).style("stroke",Mo.bind(a)).call(p=>{c==="circle"?p.attr("cx",y=>{const A=r.x2Tile(y);return A-(A-r.x1Tile(y))/2}).attr("cy",r.yTile):f&&p.attr("x1",r.x1Tile).attr("y1",r.yTile).attr("x2",r.x2Tile).attr("y2",r.yTile)})}}},gp={redraw(t={}){var e,r,a,o;const i=this,{config:s,state:l,$el:c}=i,{main:f,treemap:v}=c;l.redrawing=!0;const p=i.filterTargetsToShow(i.data.targets),{flow:y,initializing:A}=t,w=i.getWithOption(t),L=w.Transition?s.transition_duration:0,N=w.TransitionForExit?L:0,D=w.TransitionForAxis?L:0,K=(e=i.axis)==null?void 0:e.generateTransitions(D);i.updateSizes(A),w.Legend&&s.legend_show?(t.withTransition=!!L,!v&&i.updateLegend(i.mapToIds(i.data.targets),t,K)):w.Dimension&&i.updateDimension(!0),s.data_empty_label_text&&f.select(`text.${pn.text}.${Ee.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(s.data_empty_label_text).style("display",p.length?"none":null),l.hasAxis?(i.axis.redrawAxis(p,w,K,y,A),i.hasGrid()&&i.updateGrid(),s.regions.length&&i.updateRegion(),["bar","candlestick","line","area"].forEach(Z=>{const H=Rn(Z);(/^(line|area)$/.test(Z)&&i.hasTypeOf(H)||i.hasType(Z))&&i[`update${H}`](w.TransitionForExit)}),c.text&&f.selectAll(`.${tn.selectedCircles}`).filter(i.isBarType.bind(i)).selectAll("circle").remove(),s.interaction_enabled&&!y&&w.EventRect&&(i.redrawEventRect(),(r=i.bindZoomEvent)==null||r.call(i))):(c.arcs&&i.redrawArc(L,N,w.Transform),c.radar&&i.redrawRadar(),c.polar&&i.redrawPolar(),c.funnel&&i.redrawFunnel(),v&&i.updateTreemap(N)),!l.resizing&&!v&&(i.hasPointType()||l.hasRadar)?i.updateCircle():(a=i.hasLegendDefsPoint)!=null&&a.call(i)&&i.data.targets.forEach(i.point("create",this)),i.hasDataLabel()&&!i.hasArcType(null,["radar"])&&i.updateText(),(o=i.redrawTitle)==null||o.call(i),A&&i.updateTypesElements(),i.generateRedrawList(p,y,L,w.Subchart),i.updateTooltipOnRedraw(),i.callPluginHook("$redraw",t,L)},generateRedrawList(t,e,r,a){const o=this,{config:i,state:s}=o,l=o.getDrawShape();s.hasAxis&&i.subchart_show&&o.redrawSubchart(a,r,l);const c=e&&o.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:o.xv.bind(o)}),f=(r||c)&&Ba(),v=o.getRedrawList(l,e,c,f),p=()=>{c&&c(),s.redrawing=!1,_e(i.onrendered,o.api)};if(p)if(f&&v.length){const y=fc();Fl().duration(r).each(()=>{v.reduce((A,w)=>A.concat(w),[]).forEach(A=>y.add(A))}).call(y,p)}else s.transiting||p();o.mapToIds(o.data.targets).forEach(y=>{s.withoutFadeIn[y]=!0})},getRedrawList(t,e,r,a){const o=this,{config:i,state:{hasAxis:s,hasRadar:l,hasTreemap:c},$el:{grid:f}}=o,{cx:v,cy:p,xForText:y,yForText:A}=t.pos,w=[];return s&&((i.grid_x_lines.length||i.grid_y_lines.length)&&w.push(o.redrawGrid(a)),i.regions.length&&w.push(o.redrawRegion(a)),Object.keys(t.type).forEach(L=>{const N=Rn(L),D=t.type[L];(/^(area|line)$/.test(L)&&o.hasTypeOf(N)||o.hasType(L))&&w.push(o[`redraw${N}`](D,a))}),!e&&f.main&&w.push(o.updateGridFocus())),(!o.hasArcType()||l)&&dn(i.data_labels)&&i.data_labels!==!1&&w.push(o.redrawText(y,A,e,a)),(o.hasPointType()||l)&&!o.isPointFocusOnly()&&o.redrawCircle&&w.push(o.redrawCircle(v,p,a,r)),c&&w.push(o.redrawTreemap(a)),w},updateAndRedraw(t={}){const e=this,{config:r,state:a}=e;let o;t.withTransition=Ar(t,"withTransition",!0),t.withTransform=Ar(t,"withTransform",!1),t.withLegend=Ar(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=Ar(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(a.hasAxis&&(o=e.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,o)),e.redraw(t,o)}};const pp=Math.sqrt(50),mp=Math.sqrt(10),yp=Math.sqrt(2);function wo(t,e,r){const a=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(a)),i=a/Math.pow(10,o),s=i>=pp?10:i>=mp?5:i>=yp?2:1;let l,c,f;return o<0?(f=Math.pow(10,-o)/s,l=Math.round(t*f),c=Math.round(e*f),l/f<t&&++l,c/f>e&&--c,f=-f):(f=Math.pow(10,o)*s,l=Math.round(t/f),c=Math.round(e/f),l*f<t&&++l,c*f>e&&--c),c<l&&.5<=r&&r<2?wo(t,e,r*2):[l,c,f]}function Qi(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const a=e<t,[o,i,s]=a?wo(e,t,r):wo(t,e,r);if(!(i>=o))return[];const l=i-o+1,c=new Array(l);if(a)if(s<0)for(let f=0;f<l;++f)c[f]=(i-f)/-s;else for(let f=0;f<l;++f)c[f]=(i-f)*s;else if(s<0)for(let f=0;f<l;++f)c[f]=(o+f)/-s;else for(let f=0;f<l;++f)c[f]=(o+f)*s;return c}function ki(t,e,r){return e=+e,t=+t,r=+r,wo(t,e,r)[2]}function qi(t,e,r){e=+e,t=+t,r=+r;const a=e<t,o=a?ki(e,t,r):ki(t,e,r);return(a?-1:1)*(o<0?1/-o:o)}function Do(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xp(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _i(t){let e,r,a;t.length!==2?(e=Do,r=(l,c)=>Do(t(l),c),a=(l,c)=>t(l)-c):(e=t===Do||t===xp?t:Tp,r=t,a=t);function o(l,c,f=0,v=l.length){if(f<v){if(e(c,c)!==0)return v;do{const p=f+v>>>1;r(l[p],c)<0?f=p+1:v=p}while(f<v)}return f}function i(l,c,f=0,v=l.length){if(f<v){if(e(c,c)!==0)return v;do{const p=f+v>>>1;r(l[p],c)<=0?f=p+1:v=p}while(f<v)}return f}function s(l,c,f=0,v=l.length){const p=o(l,c,f,v-1);return p>f&&a(l[p-1],c)>-a(l[p],c)?p-1:p}return{left:o,center:s,right:i}}function Tp(){return 0}function Sp(t){return t===null?NaN:+t}function*q1(t,e){if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(a=+a)>=a&&(yield a)}}const Oc=_i(Do),$p=Oc.right,_1=Oc.left,tT=_i(Sp).center;var Ap=$p;function Ep(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Ip(t){return function(){return t}}function bp(t){return+t}var Cc=[0,1];function ca(t){return t}function ts(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:Ip(isNaN(e)?NaN:.5)}function Rp(t,e){var r;return t>e&&(r=t,t=e,e=r),function(a){return Math.max(t,Math.min(e,a))}}function Op(t,e,r){var a=t[0],o=t[1],i=e[0],s=e[1];return o<a?(a=ts(o,a),i=r(s,i)):(a=ts(a,o),i=r(i,s)),function(l){return i(a(l))}}function Cp(t,e,r){var a=Math.min(t.length,e.length)-1,o=new Array(a),i=new Array(a),s=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<a;)o[s]=ts(t[s],t[s+1]),i[s]=r(e[s],e[s+1]);return function(l){var c=Ap(t,l,1,a)-1;return i[c](o[c](l))}}function No(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function es(){var t=Cc,e=Cc,r=_r,a,o,i,s=ca,l,c,f;function v(){var y=Math.min(t.length,e.length);return s!==ca&&(s=Rp(t[0],t[y-1])),l=y>2?Cp:Op,c=f=null,p}function p(y){return y==null||isNaN(y=+y)?i:(c||(c=l(t.map(a),e,r)))(a(s(y)))}return p.invert=function(y){return s(o((f||(f=l(e,t.map(a),_n)))(y)))},p.domain=function(y){return arguments.length?(t=Array.from(y,bp),v()):t.slice()},p.range=function(y){return arguments.length?(e=Array.from(y),v()):e.slice()},p.rangeRound=function(y){return e=Array.from(y),r=Ep,v()},p.clamp=function(y){return arguments.length?(s=y?!0:ca,v()):s!==ca},p.interpolate=function(y){return arguments.length?(r=y,v()):r},p.unknown=function(y){return arguments.length?(i=y,p):i},function(y,A){return a=y,o=A,v()}}function Pc(){return es()(ca,ca)}var Pp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function za(t){if(!(e=Pp.exec(t)))throw new Error("invalid format: "+t);var e;return new ns({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]})}za.prototype=ns.prototype;function ns(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+""}ns.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 Mp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Lo(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function ua(t){return t=Lo(Math.abs(t)),t?t[1]:NaN}function wp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ua(e)/3)))*3-ua(Math.abs(t)))}function Dp(t,e){return function(r,a){for(var o=r.length,i=[],s=0,l=t[0],c=0;o>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),i.push(r.substring(o-=l,o+l)),!((c+=l+1)>a));)l=t[s=(s+1)%t.length];return i.reverse().join(e)}}function Np(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}function Lp(t){t:for(var e=t.length,r=1,a=-1,o;r<e;++r)switch(t[r]){case".":a=o=r;break;case"0":a===0&&(a=r),o=r;break;default:if(!+t[r])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var Fo;function Fp(t,e){var r=Lo(t,e);if(!r)return Fo=void 0,t.toPrecision(e);var a=r[0],o=r[1],i=o-(Fo=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,s=a.length;return i===s?a:i>s?a+new Array(i-s+1).join("0"):i>0?a.slice(0,i)+"."+a.slice(i):"0."+new Array(1-i).join("0")+Lo(t,Math.max(0,e+i-1))[0]}function Mc(t,e){var r=Lo(t,e);if(!r)return t+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var wc={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Mp,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)=>Mc(t*100,e),r:Mc,s:Fp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Dc(t){return t}var Nc=Array.prototype.map,Lc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Bp(t){var e=t.grouping===void 0||t.thousands===void 0?Dc:Dp(Nc.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?Dc:Np(Nc.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function f(p,y){p=za(p);var A=p.fill,w=p.align,L=p.sign,N=p.symbol,D=p.zero,K=p.width,Z=p.comma,H=p.precision,nt=p.trim,Q=p.type;Q==="n"?(Z=!0,Q="g"):wc[Q]||(H===void 0&&(H=12),nt=!0,Q="g"),(D||A==="0"&&w==="=")&&(D=!0,A="0",w="=");var ot=(y&&y.prefix!==void 0?y.prefix:"")+(N==="$"?r:N==="#"&&/[boxX]/.test(Q)?"0"+Q.toLowerCase():""),vt=(N==="$"?a:/[%p]/.test(Q)?s:"")+(y&&y.suffix!==void 0?y.suffix:""),$t=wc[Q],Tt=/[defgprs%]/.test(Q);H=H===void 0?6:/[gprs]/.test(Q)?Math.max(1,Math.min(21,H)):Math.max(0,Math.min(20,H));function mt(bt){var yt=ot,q=vt,Et,dt,Rt;if(Q==="c")q=$t(bt)+q,bt="";else{bt=+bt;var kt=bt<0||1/bt<0;if(bt=isNaN(bt)?c:$t(Math.abs(bt),H),nt&&(bt=Lp(bt)),kt&&+bt==0&&L!=="+"&&(kt=!1),yt=(kt?L==="("?L:l:L==="-"||L==="("?"":L)+yt,q=(Q==="s"&&!isNaN(bt)&&Fo!==void 0?Lc[8+Fo/3]:"")+q+(kt&&L==="("?")":""),Tt){for(Et=-1,dt=bt.length;++Et<dt;)if(Rt=bt.charCodeAt(Et),48>Rt||Rt>57){q=(Rt===46?o+bt.slice(Et+1):bt.slice(Et))+q,bt=bt.slice(0,Et);break}}}Z&&!D&&(bt=e(bt,1/0));var Ht=yt.length+bt.length+q.length,Kt=Ht<K?new Array(K-Ht+1).join(A):"";switch(Z&&D&&(bt=e(Kt+bt,Kt.length?K-q.length:1/0),Kt=""),w){case"<":bt=yt+bt+q+Kt;break;case"=":bt=yt+Kt+bt+q;break;case"^":bt=Kt.slice(0,Ht=Kt.length>>1)+yt+bt+q+Kt.slice(Ht);break;default:bt=Kt+yt+bt+q;break}return i(bt)}return mt.toString=function(){return p+""},mt}function v(p,y){var A=Math.max(-8,Math.min(8,Math.floor(ua(y)/3)))*3,w=Math.pow(10,-A),L=f((p=za(p),p.type="f",p),{suffix:Lc[8+A/3]});return function(N){return L(w*N)}}return{format:f,formatPrefix:v}}var Bo,rs,Fc;Up({thousands:",",grouping:[3],currency:["$",""]});function Up(t){return Bo=Bp(t),rs=Bo.format,Fc=Bo.formatPrefix,Bo}function zp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ua(e)-ua(t))+1}function jp(t){return Math.max(0,-ua(Math.abs(t)))}function Gp(t,e,r,a){var o=qi(t,e,r),i;switch(a=za(a==null?",f":a),a.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(i=wp(o,s))&&(a.precision=i),Fc(a,s)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(i=zp(o,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=i-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(i=jp(o))&&(a.precision=i-(a.type==="%")*2);break}}return rs(a)}function Bc(t){var e=t.domain;return t.ticks=function(r){var a=e();return Qi(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var o=e();return Gp(o[0],o[o.length-1],r==null?10:r,a)},t.nice=function(r){r==null&&(r=10);var a=e(),o=0,i=a.length-1,s=a[o],l=a[i],c,f,v=10;for(l<s&&(f=s,s=l,l=f,f=o,o=i,i=f);v-- >0;){if(f=ki(s,l,r),f===c)return a[o]=s,a[i]=l,e(a);if(f>0)s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f;else if(f<0)s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f;else break;c=f}return t},t}function Uo(){var t=Pc();return t.copy=function(){return No(t,Uo())},la.apply(t,arguments),Bc(t)}function Uc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function zc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Vp(t){var e=1,r=t(Uc(e),zc(e));return r.constant=function(a){return arguments.length?t(Uc(e=+a),zc(e)):e},Bc(r)}function jc(){var t=Vp(es());return t.copy=function(){return No(t,jc()).constant(t.constant())},la.apply(t,arguments)}function Gc(t,e){t=t.slice();var r=0,a=t.length-1,o=t[r],i=t[a],s;return i<o&&(s=r,r=a,a=s,s=o,o=i,i=s),t[r]=e.floor(o),t[a]=e.ceil(i),t}function Vc(t){return Math.log(t)}function Xc(t){return Math.exp(t)}function Xp(t){return-Math.log(-t)}function Hp(t){return-Math.exp(-t)}function Wp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Yp(t){return t===10?Wp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Kp(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 Hc(t){return(e,r)=>-t(-e,r)}function Zp(t){const e=t(Vc,Xc),r=e.domain;let a=10,o,i;function s(){return o=Kp(a),i=Yp(a),r()[0]<0?(o=Hc(o),i=Hc(i),t(Xp,Hp)):t(Vc,Xc),e}return e.base=function(l){return arguments.length?(a=+l,s()):a},e.domain=function(l){return arguments.length?(r(l),s()):r()},e.ticks=l=>{const c=r();let f=c[0],v=c[c.length-1];const p=v<f;p&&([f,v]=[v,f]);let y=o(f),A=o(v),w,L;const N=l==null?10:+l;let D=[];if(!(a%1)&&A-y<N){if(y=Math.floor(y),A=Math.ceil(A),f>0){for(;y<=A;++y)for(w=1;w<a;++w)if(L=y<0?w/i(-y):w*i(y),!(L<f)){if(L>v)break;D.push(L)}}else for(;y<=A;++y)for(w=a-1;w>=1;--w)if(L=y>0?w/i(-y):w*i(y),!(L<f)){if(L>v)break;D.push(L)}D.length*2<N&&(D=Qi(f,v,N))}else D=Qi(y,A,Math.min(A-y,N)).map(i);return p?D.reverse():D},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=za(c)).precision==null&&(c.trim=!0),c=rs(c)),l===1/0)return c;const f=Math.max(1,a*l/e.ticks().length);return v=>{let p=v/i(Math.round(o(v)));return p*a<a-.5&&(p*=a),p<=f?c(v):""}},e.nice=()=>r(Gc(r(),{floor:l=>i(Math.floor(o(l))),ceil:l=>i(Math.ceil(o(l)))})),e}function Wc(){const t=Zp(es()).domain([1,10]);return t.copy=()=>No(t,Wc()).base(t.base()),la.apply(t,arguments),t}const zo=en(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);zo.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?en(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):zo);const eT=zo.range,Gr=en(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Wn)},(t,e)=>(e-t)/Wn,t=>t.getUTCSeconds()),nT=Gr.range,as=en(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Wn)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getMinutes()),rT=as.range,os=en(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getUTCMinutes()),aT=os.range,is=en(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Wn-t.getMinutes()*Mn)},(t,e)=>{t.setTime(+t+e*Un)},(t,e)=>(e-t)/Un,t=>t.getHours()),oT=is.range,ss=en(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Un)},(t,e)=>(e-t)/Un,t=>t.getUTCHours()),iT=ss.range,ls=en(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()),sT=ls.range,cs=en(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()),lT=cs.range;function Yc(t,e,r,a,o,i){const s=[[Gr,1,Wn],[Gr,5,5*Wn],[Gr,15,15*Wn],[Gr,30,30*Wn],[i,1,Mn],[i,5,5*Mn],[i,15,15*Mn],[i,30,30*Mn],[o,1,Un],[o,3,3*Un],[o,6,6*Un],[o,12,12*Un],[a,1,lr],[a,2,2*lr],[r,1,ii],[e,1,Ns],[e,3,3*Ns],[t,1,si]];function l(f,v,p){const y=v<f;y&&([f,v]=[v,f]);const A=p&&typeof p.range=="function"?p:c(f,v,p),w=A?A.range(f,+v+1):[];return y?w.reverse():w}function c(f,v,p){const y=Math.abs(v-f)/p,A=_i(([,,N])=>N).right(s,y);if(A===s.length)return t.every(qi(f/si,v/si,p));if(A===0)return zo.every(Math.max(qi(f,v,p),1));const[w,L]=s[y/s[A-1][2]<s[A][2]/y?A-1:A];return w.every(L)}return[l,c]}const[Jp,Qp]=Yc(ur,cs,eo,Ls,ss,os),[kp,qp]=Yc(cr,ls,_a,Sa,is,as);function _p(t){return new Date(t)}function tm(t){return t instanceof Date?+t:+new Date(+t)}function us(t,e,r,a,o,i,s,l,c,f){var v=Pc(),p=v.invert,y=v.domain,A=f(".%L"),w=f(":%S"),L=f("%I:%M"),N=f("%I %p"),D=f("%a %d"),K=f("%b %d"),Z=f("%B"),H=f("%Y");function nt(Q){return(c(Q)<Q?A:l(Q)<Q?w:s(Q)<Q?L:i(Q)<Q?N:a(Q)<Q?o(Q)<Q?D:K:r(Q)<Q?Z:H)(Q)}return v.invert=function(Q){return new Date(p(Q))},v.domain=function(Q){return arguments.length?y(Array.from(Q,tm)):y().map(_p)},v.ticks=function(Q){var ot=y();return t(ot[0],ot[ot.length-1],Q==null?10:Q)},v.tickFormat=function(Q,ot){return ot==null?nt:f(ot)},v.nice=function(Q){var ot=y();return(!Q||typeof Q.range!="function")&&(Q=e(ot[0],ot[ot.length-1],Q==null?10:Q)),Q?y(Gc(ot,Q)):v},v.copy=function(){return No(v,us(t,e,r,a,o,i,s,l,c,f))},v}function em(){return la.apply(us(kp,qp,cr,ls,_a,Sa,is,as,Gr,ui).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function nm(){return la.apply(us(Jp,Qp,ur,cs,eo,ro,ss,os,Gr,fi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vr(t="linear",e,r){const a={linear:Uo,log:jc,_log:Wc,time:em,utc:nm}[t]();return a.type=t,/_?log/.test(t)&&a.clamp(!0),a.range([e!=null?e:0,r!=null?r:1])}var rm={getXScale(t,e,r,a){const o=this,i=o.state.loading!=="append"&&o.scale.zoom||Vr(o.axis.getAxisType("x"),t,e);return o.getCustomizedXScale(r?i.domain(r):i,a)},getYScale(t,e,r,a){const i=Vr(this.axis.getAxisType(t),e,r);return a&&i.domain(a),i},getYScaleById(t,e=!1){var r;const a=((r=this.axis)==null?void 0:r.getId(t))==="y2",o=e?a?"subY2":"subY":a?"y2":"y";return this.scale[o]},getCustomizedXScale(t,e){const r=this,a=e||(()=>r.axis.x.tickOffset()),o=r.config.axis_x_inverted,i=function(s){return t(s)+a()};for(const s in t)i[s]=t[s];return i.orgDomain=()=>t.domain(),i.orgScale=()=>t,r.axis.isCategorized()&&(i.domain=function(s){let l=s;return arguments.length?(t.domain(l),i):(l=this.orgDomain(),o?[l[0]+1,l[1]]:[l[0],l[1]+1])}),i},updateScales(t,e=!0){var r,a;const o=this,{axis:i,config:s,format:l,org:c,scale:f,state:{current:v,width:p,height:y,width2:A,height2:w,hasAxis:L,hasTreemap:N}}=o;if(L){const D=s.axis_rotated,K=o.getResettedPadding(1),Z={x:D?K:0,y:D?0:y,subX:D?1:0,subY:D?0:w},H={x:D?y:p,y:D?p:K,subX:D?y:p,subY:D?A:1},nt=e&&((r=f.x)==null?void 0:r.orgDomain()),Q=e&&c.xDomain;f.x=o.getXScale(Z.x,H.x,nt,()=>i.x.tickOffset()),f.subX=o.getXScale(Z.x,H.x,Q,ot=>{var vt;return ot%1?0:((vt=i.subX)!=null?vt:i.x).tickOffset()}),l.xAxisTick=i.getXAxisTickFormat(),l.subXAxisTick=i.getXAxisTickFormat(!0),i.setAxis("x",f.x,s.axis_x_tick_outer,t),s.subchart_show&&i.setAxis("subX",f.subX,s.axis_x_tick_outer,t),f.y=o.getYScale("y",Z.y,H.y,f.y?f.y.domain():s.axis_y_default),f.subY=o.getYScale("y",Z.subY,H.subY,f.subY?f.subY.domain():s.axis_y_default),i.setAxis("y",f.y,s.axis_y_tick_outer,t),s.axis_y2_show&&(f.y2=o.getYScale("y2",Z.y,H.y,f.y2?f.y2.domain():s.axis_y2_default),f.subY2=o.getYScale("y2",Z.subY,H.subY,f.subY2?f.subY2.domain():s.axis_y2_default),i.setAxis("y2",f.y2,s.axis_y2_tick_outer,t))}else if(N){const D=o.getCurrentPadding();f.x=Uo().rangeRound([D.left,v.width-D.right]),f.y=Uo().rangeRound([D.top,v.height-D.bottom])}else(a=o.updateArc)==null||a.call(o)},xx(t){const e=this,{config:r,scale:{x:a,zoom:o}}=e,i=r.zoom_enabled&&o?o:a;return t?i(Ne(t.x)?t.x:t):null},xv(t){const e=this,{axis:r,config:a,scale:{x:o,zoom:i}}=e,s=a.zoom_enabled&&i?i:o;let l=e.getBaseValue(t);return r.isTimeSeries()?l=Jn.call(e,l):r.isCategorized()&&Ue(l)&&(l=a.axis_x_categories.indexOf(l)),s(l)},yv(t){const e=this,{scale:{y:r,y2:a}}=e;return(t.axis&&t.axis==="y2"?a:r)(e.getBaseValue(t))},subxx(t){return t?this.scale.subX(t.x):null}},am={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,r=e.size_height||t.getParentHeight();return r>0?r:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${Rn(t)}`;let r=this.$el.chart.node(),a=0;for(;a<30&&r&&r.tagName!=="BODY";){try{a=Sn(r,!0)[t]}catch(i){e in r&&(a=r[e])}r=r.parentNode}const o=mn.body[e];return a>o&&(a=o),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:r,state:{hasAxis:a},$el:o}=e,i=r.axis_rotated,s=i||!i&&!r.axis_y_inner,l=i?gn.axisX:gn.axisY,c=o.main.select(`.${l}`).node(),f=a&&r[`axis_${i?"x":"y"}_label`];let v=0;if(a&&(Ue(f)||Ue(f.text)||/^inner-/.test(f==null?void 0:f.position))){const L=o.main.select(`.${l}-label`);L.empty()||(v=Sn(L.node()).left)}const p=c&&s?Sn(c,!t):{right:0},y=Sn(o.chart.node(),!t).left+v,A=e.hasArcType(),w=p.right-y-(A?0:e.getCurrentPaddingByDirection("left",t));return w>0?w:0},updateDimension(t){var e;const r=this,{config:a,state:{hasAxis:o},$el:i}=r;o&&!t&&r.axis.x&&a.axis_rotated&&((e=r.axis.subX)==null||e.create(i.axis.subX)),r.updateScales(t),r.updateSvgSize(),r.transformAll(!1)},updateSvgSize(){const t=this,{config:e,state:{clip:r,current:a,hasAxis:o,width:i,height:s},$el:{svg:l}}=t;if(e.resize_auto==="viewBox"?l.attr("viewBox",`0 0 ${a.width} ${a.height}`):l.attr("width",a.width).attr("height",a.height),o){const c=l.select(`.${el.brush} .overlay`),f={width:0,height:0};c.size()&&(f.width=+c.attr("width"),f.height=+c.attr("height")),l.selectAll([`#${r.id}`,`#${r.idGrid}`]).select("rect").attr("width",i).attr("height",s),l.select(`#${r.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),l.select(`#${r.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),r.idSubchart&&l.select(`#${r.idSubchart}`).select("rect").attr("width",i).attr("height",f.height)}},getCurrentPaddingByDirection(t,e=!1,r=!1){var a;const o=this,{config:i,$el:s,state:{hasAxis:l}}=o,c=i.axis_rotated,f=((a=i.padding)==null?void 0:a.mode)==="fit",v=ye(i[`padding_${t}`])?i[`padding_${t}`]:void 0,p=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,y=/^(left|right)$/.test(t),A=p&&i[`axis_${p}_inner`],w=p&&i[`axis_${p}_show`],L=p?i[`axis_${p}_axes`].length:0;let N=p?y?o.getAxisWidthByAxisId(p,e):o.getHorizontalAxisHeight(p):0;const D=20;let K=0;!f&&y&&(N=fg(N));let Z=l&&y&&(A||ln(v)&&!w)?0:f?(w?N:0)+(v!=null?v:0):ln(v)?N:v;return y&&l?(p&&(f||A)&&i[`axis_${p}_label`].text&&(Z+=o.axis.getAxisLabelPosition(p).isOuter?D:0),t==="right"?(Z+=c?!f&&ln(v)?10:2:!w||A?f?2:1:0,Z+=r?o.axis.getXAxisTickTextY2Overflow(D):0):t==="left"&&c&&ln(v)&&(Z=i.axis_x_show?f?N:Math.max(N,40):1)):t==="top"?(s.title&&s.title.node()&&(Z+=o.getTitlePadding()),K=c&&!A?L:0):t==="bottom"&&l&&c&&!w&&(Z+=1),Z+N*L-K},getCurrentPadding(t=!1){const e=this,[r,a,o,i]=["top","bottom","left","right"].map(s=>e.getCurrentPaddingByDirection(s,null,t));return{top:r,bottom:a,left:o,right:i}},getResettedPadding(t){const e=this,{config:r}=e,a=ye(t);let o=a?0:{};return r.padding===!1?!a&&Object.keys(t).forEach(i=>{o[i]=!Kn(r.data_labels)&&r.data_labels!==!1&&i==="top"?t[i]:0}):o=t,o},updateSizes(t){var e,r,a,o,i;const s=this,{config:l,state:c,$el:{legend:f}}=s,v=l.axis_rotated,p=s.hasArcType()||c.hasFunnel||c.hasTreemap,y=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&s.setContainerSize();const A={width:f?s.getLegendWidth():0,height:f?s.getLegendHeight():0};!p&&l.axis_x_show&&l.axis_x_tick_autorotate&&s.updateXAxisTickClip();const w={right:l.legend_show&&c.isLegendRight?s.getLegendWidth()+(y?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:A.height},L=v||p?0:s.getHorizontalAxisHeight("x"),N=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?L:30,D=l.subchart_show&&!p?l.subchart_size_height+N:0,K=s.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,Z=s.getCurrentPadding(!0);if(c.margin=!p&&v?{top:Z.top,right:p?0:Z.right+w.right,bottom:w.bottom+Z.bottom,left:D+(p?0:Z.left)}:{top:(y?0:4)+Z.top,right:p?0:Z.right+w.right,bottom:K+D+w.bottom+Z.bottom,left:p?0:Z.left},c.margin=s.getResettedPadding(c.margin),c.margin2=v?{top:c.margin.top,right:NaN,bottom:20+w.bottom,left:s.state.rotatedPadding.left}:{top:c.current.height-D-w.bottom,right:NaN,bottom:N+w.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(r=s.updateSizeForLegend)==null||r.call(s,A),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=v?c.margin.left-c.rotatedPadding.left-c.rotatedPadding.right:c.width,c.height2=v?c.height:c.current.height-c.margin2.top-c.margin2.bottom,c.width2<0&&(c.width2=0),c.height2<0&&(c.height2=0),s.hasArcType()){const H=s.hasType("gauge"),nt=l.legend_show&&c.isLegendRight,Q=(a=c.hasRadar&&s.cache.get(cn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(nt?A.width+10:0)-Q,c.arcHeight=c.height-(nt&&!H?0:10),(o=l.arc_rangeText_values)!=null&&o.length&&(H?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),H&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-s.getPaddingBottomForGauge()),(i=s.updateRadius)==null||i.call(s)}c.isLegendRight&&p&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},om={setCssRule(t,e,r,a){const o=this,{config:i,state:{cssRule:s,style:l}}=o;return i.boost_useCssRule?c=>{c.each(f=>{const v=a&&(a==null?void 0:a.call(o,f)),p=`${t?`.${sn.shapes+o.getTargetSelectorSuffix(f.id)}`:""}${e}`;e in s&&l.sheet.deleteRule(s[p]),o.state.cssRule[p]=pg(l,p,r.filter(Boolean).map(y=>Ue(v)&&y.indexOf(":")===-1?`${y}: ${v}`:y||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:de(t)?t.bind(this):t}};function Kc(t){return typeof t=="string"?new Pe([document.querySelectorAll(t)],[document.documentElement]):new Pe([T(t)],oe)}function im(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function sm(t,e,r,a,o){var i;const s=this,{value:l}=t,c=s.isCandlestickType(t),f=ye(l)&&l<0||c&&!((i=s.getCandlestickData(t))!=null&&i._isUp);let{x:v,y:p}=e;const y=4,A=y*2;return a?r==="start"?(v+=f?0:A,p+=y):r==="middle"?(v+=A,p-=A):r==="end"&&(f&&(v-=A),p+=y):(r==="start"?(v+=y,f&&(p+=A*2)):r==="middle"?p-=A:r==="end"&&(v-=y,f&&(p+=A*2)),o&&(p+=f?-17:c?13:7)),{x:v,y:p}}function Zc(t,e){var r;const a=this.config.data_labels_position,{id:o,index:i,value:s}=t;return(r=de(a)?a.bind(this.api)(e,s,o,i,this.$el.text):(o in a?a[o]:a)[e])!=null?r:0}function lm(t,e,r){var a,o;const i=this,{config:s,$T:l}=i,c=s.axis_rotated,{border:{padding:f="3 5",radius:v=10,stroke:p="#000",strokeWidth:y=1,fill:A="none"}}=s.data_labels,w=Sg(f),L=s.data_labels.border!==!0,N=Er(t);let D=it(t.previousElementSibling);(D.empty()||((a=D.node())==null?void 0:a.tagName)!=="rect"||!((o=D.attr("class"))!=null&&o.includes(r)))&&(D=it(t.parentNode).insert("rect",()=>t).attr("class",`${pn.textBorderRect} ${r}`).attr("width",N.width+(L?w.left+w.right:0)).attr("height",N.height+(L?w.top+w.bottom:0)),L&&D.style("fill",A).style("stroke",p).style("stroke-width",`${y}px`).attr("rx",v).attr("ry",v)),l(D).attr("x",e.x-(L?w.left:0)-(c?0:N.width/2)).attr("y",e.y-(L?w.top:0)-N.height/4*3.2)}function fs(t=0,e){const r=this,{config:a}=r,o=a[`${e}_label_threshold`]||0;return t>=o}function Jc(){const t=this,{$el:{text:e},config:r}=t;(t.state.arcWidth?t.getArcLabelConfig("image"):r.data_labels.image)&&e.filter(function(){const o=this.previousElementSibling;return o?o.tagName!=="image"||!o.classList.contains(pn.textLabelImage):!0}).each(function(o){var i,s,l,c;const{url:f,width:v,height:p,pos:y}=cm.call(t,o);if(f){const A=it(this.parentNode);A==null||A.insert("image",`${(s=(i=this.getAttribute("class"))==null?void 0:i.replace(/(?:^(.)|\s)/g,".$1"))!=null?s:"text"}`).style("opacity","0").attr("href",w=>Fa(f,{ID:"id"in w?w.id:w.data.id})).attr("class",pn.textLabelImage).style("pointer-events","none").attr("width",v).attr("height",p).attr("transform",y?`translate(${(l=y.x)!=null?l:0} ${(c=y.y)!=null?c:0})`:null)}})}function cm(t){var e;const r=this,{config:a,state:o}=r,i=o.arcWidth?r.getArcLabelConfig("image"):a.data_labels.image;if(de(i))return(e=i.call(r.api,t.value,t.id,t.index))!=null?e:{url:"",width:0,height:0,pos:{x:0,y:0}};if(i){const{url:s="",width:l=0,height:c=0,pos:f}=i;return{url:s,width:l,height:c,pos:f}}return null}function Qc(t,e){var r;const a=this,{config:o,state:{arcWidth:i,hasTreemap:s}}=a,l=o.axis_rotated,c=it(t.previousElementSibling),f=v=>{var p;const y=v.style.opacity!=="0"&&v.style.fillOpacity!=="0";return(i?v.textContent:y)&&((p=this.previousElementSibling)==null?void 0:p.tagName)!=="image"};if(!c.empty()&&((r=c.node())==null?void 0:r.tagName)==="image"){const v=Sn(t),p=+c.attr("width")/2,y=+c.attr("height")/2;let A=e.x-p,w=e.y-y-v.height/2;l?e.x+=p:(s&&(A=-p,w=-(y*2+v.height)),a.hasType("pie")||a.hasType("polar")||(e.y+=y)),a.$T(c).style("opacity",f(t)?null:"0").attr("x",A).attr("y",w)}}function um(t){return ic(t,e=>e,e=>Er(e))}var fm={opacityForText(t){const e=this;return e.isBarType(t)&&!fs.call(e,Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Ee.chart}`).append("g").attr("class",pn.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,r=e.getChartClass("Text"),a=e.getClass("texts","id"),o=e.classFocus.bind(e);e.$el.main.select(`.${pn.chartTexts}`).selectAll(`.${pn.chartText}`).data(e.filterNullish(t)).attr("class",l=>`${r(l)}${o(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",r).call(e.setCssRule(!0,` .${pn.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:r,config:a,axis:o}=t,i=t.getClass("text","index"),s=a.data_labels.centered,l=e.main.selectAll(`.${pn.texts}`).selectAll(`.${pn.text}`).data(t.labelishData.bind(t));r(l.exit()).style("fill-opacity","0").remove(),e.text=l.enter().append("text").merge(l).attr("class",i).attr("text-anchor",c=>{let v=a[`axis_${o==null?void 0:o.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const p=t.getCandlestickData(c);v=!(p!=null&&p._isUp)}else if(t.isTreemapType(c))return s?"middle":"start";return a.axis_rotated?v?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,f,v){const p=it(this);let{value:y}=c;if(t.isBubbleZType(c))y=t.getBubbleZData(y,"z");else if(t.isCandlestickType(c)){const A=t.getCandlestickData(c);A&&(y=A.close)}y=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(p):t.dataLabelFormat(c.id)(y,c.id,c.index,v),ye(y)?this.textContent=y:oa(p,y,void 0,!0)}),Jc.call(t)},updateTextColor(t){const e=this,{config:r}=e,a=r.data_labels_colors,o=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let i;if(Ue(a))i=a;else if(Ge(a)){const{id:s}=t.data||t;i=a[s]}else de(a)&&(i=a.bind(e.api)(o,t));if(e.isCandlestickType(t)&&!de(a)){const s=e.getCandlestickData(t);if(!(s!=null&&s._isUp)){const l=r.candlestick_color_down;i=Ge(l)?l[t.id]:l}}return i||o},updateTextBGColor(t,e){const r=this,{$el:{defs:a}}=r;let o="";if(e){const i=Ue(e)?"":r.getTargetSelectorSuffix("id"in t?t.id:t.data.id),s=a.select(["filter[id*='labels-bg","']"].join(i));if(s.size()&&(o=`url(#${s.attr("id")})`),de(e)){r.generateTextBGColorFilter(e);const l=r.color(t),c=e.bind(r.api)(l,t);c?s.select("feFlood").attr("flood-color",c):o=""}}return o||null},redrawText(t,e,r,a){const o=this,{$T:i,axis:s,config:l,state:{hasTreemap:c}}=o,f=ar(!0),v=l.axis_rotated,p=l.data_labels.rotate,y=im(p),A=p?`rotate(${p})`:"";let w=new Map;if(l.data_labels.centered){const L=[];o.$el.text.each(function(N){(o.isBarType(N)||o.isTreemapType(N))&&L.push(this)}),L.length>0&&(w=um(L))}return o.$el.text.style("fill",o.getStylePropValue(o.updateTextColor)).attr("filter",L=>o.updateTextBGColor.bind(o)(L,l.data_labels_backgroundColors)).style("fill-opacity",r?0:o.opacityForText.bind(o)).each(function(L,N){const D=w.get(this),K=i(c&&this.childElementCount?this.parentNode:this,!!(a&&(this.getAttribute("x")||this.getAttribute("transform"))),f),Z=l[`axis_${s==null?void 0:s.getId(L.id)}_inverted`];let H={x:t.bind(this)(L,N,D),y:e.bind(this)(L,N,D)};p&&(H=sm.bind(o)(L,H,y,v,Z),K.attr("text-anchor",y)),Qc.call(o,this,H),this.childElementCount||p?K.attr("transform",`translate(${H.x} ${H.y}) ${A}`):K.attr("x",H.x).attr("y",H.y),l.data_labels.border&&lm.call(o,K.node(),H,`${pn.textBorderRect}-${N}`)}),!0},getTextRect(t,e){var r,a;const o=this;let i,s,l;Array.isArray(t)?i=`${cn.textRect}-${t.join("_")}`:(s=(a=(r=t.node)==null?void 0:r.call(t))!=null?a:t,/text/i.test(s.tagName)||(s=s.querySelector("text")),l=s.textContent,i=`${cn.textRect}-${l.replace(/\W/g,"_")}`);const c=o.cache.get(i)||[];return c.length===0&&((o.$el.svg||o.$el.chart.select("svg")).selectAll(`.${Ee.dummy}`).data(l?[l]:t).enter().append("text").style("visibility","hidden").style("font",s?it(s).style("font"):null).classed(e||Ee.dummy,!0).text(f=>f).each(function(f,v){c[v]=Sn(this)}).remove(),o.cache.add(i,c)),c.length>1?c:c[0]},generateXYForText(t,e){const r=this,{state:{hasRadar:a,hasFunnel:o,hasTreemap:i}}=r,s=Object.keys(t),l={},c=e?r.getXForText:r.getYForText;return o&&s.push("funnel"),a&&s.push("radar"),i&&s.push("treemap"),s.forEach(f=>{l[f]=r[`generateGet${Rn(f)}Points`](t[f],!1)}),function(f,v){const p=r.isAreaType(f)&&"area"||r.isBarType(f)&&"bar"||r.isCandlestickType(f)&&"candlestick"||r.isFunnelType(f)&&"funnel"||r.isRadarType(f)&&"radar"||r.isTreemapType(f)&&"treemap"||"line";return c.call(r,l[p](f,v),f,this)}},getCenteredTextPos(t,e,r,a,o){const i=this,{config:s}=i,l=s.axis_rotated,c=i.isBarType(t),f=i.isTreemapType(t);if(s.data_labels.centered&&(c||f)){const v=o||Er(r);if(c){const p=i.getRangedData(t,null,"bar")>=0;if(l){const y=(p?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+v.width/2;return p?-y-3:y+2}else{const y=(p?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+v.height/2;return p?y:-y-2}}else if(f)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2-v.y-v.height/2}return 0},getXForText(t,e,r,a){var o;const i=this,{config:s}=i,l=s.axis_rotated,c=i.isFunnelType(e),f=i.isTreemapType(e);let v=t?t[0][0]:0;if(i.isCandlestickType(e))l?v=(o=i.getCandlestickData(e))!=null&&o._isUp?t[2][2]+4:t[2][1]-4:v+=(t[1][0]-v)/2;else if(c)v+=i.state.current.width/2;else if(f)v+=s.data_labels.centered?0:5;else if(l){const p=s[`axis_${i.axis.getId(e.id)}_inverted`],y=i.isBarType(e)?4:6,A=e.value;v=t[2][1],p?v-=y*(A>0?1:-1):v+=y*(A<0?-1:1)}else v=i.hasType("bar")?(t[2][0]+t[0][0])/2:v;return(l||f)&&(v+=i.getCenteredTextPos(e,t,r,"x",a)),v+Zc.call(this,e,"x")},getYForText(t,e,r,a){const o=this,{axis:i,config:s,state:l}=o,c=s.axis_rotated,f=s[`axis_${i==null?void 0:i.getId(e.id)}_inverted`],v=o.isBarType(e),p=o.isFunnelType(e),y=o.isTreemapType(e),A=s.point_r,w=Sn(r);let{value:L}=e,N=3,D;if(o.isCandlestickType(e))L=o.getCandlestickData(e),c?(D=t[0][0],D+=(t[1][0]-D)/2+N):(D=L&&L._isUp?t[2][2]-N:t[2][1]+N*4,f&&(D+=15*(L._isUp?1:-1)));else if(p)D=t?t[0][1]+(t[1][1]-t[0][1])/2+w.height/2-3:0;else if(y)D=t[0][1]+(s.data_labels.centered?0:w.height+5);else if(c)D=(t[0][0]+t[2][0]+w.height*.6)/2;else if(D=t[2][1],ye(A)&&A>5&&(o.isLineType(e)||o.isScatterType(e))&&(N+=s.point_r/2.3),L<0||L===0&&!l.hasPositiveValue&&l.hasNegativeValue)D+=f?v?-3:-5:w.height+(v?-N:N);else{let K=-N*2;v?K=-N:o.isBubbleType(e)&&(K=N),f&&(K=v?10:15),D+=K}return(!c||y)&&(D+=o.getCenteredTextPos(e,t,r,"y",a)),D+Zc.call(this,e,"y")},markOverlapped(t,e,r){const a=e.$el.arcs.selectAll(r),o=a.filter(c=>c.data.id!==t),i=a.filter(c=>c.data.id===t),s=ec(i.node()),l=(c,f)=>Math.sqrt(Math.pow(c,2)+Math.pow(f,2));i.node()&&o.each(function(){const c=ec(this),f=it(this),v=l(s.e,s.f)>l(c.e,c.f)?i:f,p=Math.ceil(Math.abs(s.e-c.e))<Math.ceil(v.node().getComputedTextLength()),y=Math.ceil(Math.abs(s.f-c.f))<parseInt(i.style("font-size"),10);f.classed(pn.TextOverlapping,p&&y)})},undoMarkOverlapped(t,e){t.$el.arcs.selectAll(e).each(function(){Kc([this,this.previousSibling]).classed(pn.TextOverlapping,!1)})}};function kc(t="left",e){const r=ye(e);let a;return t.indexOf("center")>-1?a=r?e/2:"middle":t.indexOf("right")>-1?a=r?e:"end":a=r?0:"start",a}var dm={initTitle(){const t=this,{config:e,$el:r}=t;if(e.title_text){r.title=r.svg.append("g");const a=r.title.append("text").style("text-anchor",kc(e.title_position)).attr("class",pn.title);oa(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:r},$el:{title:a}}=t;if(a){const o=kc(e.title_position,r.width),i=(e.title_padding.top||0)+t.getTextRect(t.$el.title,pn.title).height;a.attr("transform",`translate(${o}, ${i})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:r}=t;return(r.title_padding.top||0)+(e?t.getTextRect(e,pn.title).height:0)+(r.title_padding.bottom||0)}},hm={initTooltip(){const t=this,{config:e,$el:r}=t;r.tooltip=it(e.tooltip_contents.bindto),r.tooltip.empty()&&(r.tooltip=r.chart.append("div").attr("class",oo.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:r,$el:a,state:{hasAxis:o,hasRadar:i}}=e;if(r.tooltip_init_show){const s=!(o||i);(t=e.axis)!=null&&t.isTimeSeries()&&Ue(r.tooltip_init_x)&&(r.tooltip_init_x=Jn.call(e,r.tooltip_init_x)),e.api.tooltip.show({data:{[s?"index":"x"]:r.tooltip_init_x}});const l=r.tooltip_init_position;if(!r.tooltip_contents.bindto&&!Kn(l)){const{top:c=0,left:f=50}=l;a.tooltip.style("top",Ue(c)?c:`${c}px`).style("left",Ue(f)?f:`${f}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:r,config:a}=e;return de(a.tooltip_contents)?a.tooltip_contents.bind(r)(...t):e.getTooltipContent(...t)},getTooltipContent(t,e,r,a){var o;const i=this,{api:s,config:l,state:c,$el:f}=i,[v,p,y]=["title","name","value"].map(yt=>{const q=l[`tooltip_format_${yt}`];return de(q)?q.bind(s):q}),A=(...yt)=>pr((v||e)(...yt)),w=(...yt)=>pr((p||(q=>q))(...yt)),L=(yt,q,Et,dt)=>{let Rt=y;return Rt||(c.hasTreemap||i.isStackNormalized()&&(!i.isStackNormalizedPerGroup()||i.isGrouped(Et))?Rt=(kt,Ht)=>`${(Ht*100).toFixed(2)}%`:Rt=r),pr(Rt(yt,q,Et,dt))},N=l.tooltip_order,D=yt=>i.axis&&i.isBubbleZType(yt)?i.getBubbleZData(yt.value,"z"):i.getBaseValue(yt),K=i.levelColor?yt=>i.levelColor(yt.value):yt=>a(yt),Z=l.tooltip_contents,H=Z.template,nt=i.mapToTargetIds();if(N===null&&l.data_groups.length){const yt=i.orderTargets(i.data.targets).map(q=>q.id).reverse();t.sort((q,Et)=>{let dt=q?q.value:null,Rt=Et?Et.value:null;return dt>0&&Rt>0&&(dt=q.id?yt.indexOf(q.id):null,Rt=Et.id?yt.indexOf(Et.id):null),dt-Rt})}else if(/^(asc|desc)$/.test(N)){const yt=N==="asc";t.sort((q,Et)=>{const dt=q?D(q):null,Rt=Et?D(Et):null;return yt?dt-Rt:Rt-dt})}else de(N)&&t.sort(N.bind(s));const Q=i.getTooltipContentTemplate(H),ot=t.length;let vt,$t,Tt,mt,bt;for(bt=0;bt<ot;bt++)if($t=t[bt],!(!$t||!(D($t)||D($t)===0))){if(ln(vt)){const yt=(c.hasAxis||c.hasRadar)&&A($t.x);vt=Fa(Q[0],{CLASS_TOOLTIP:oo.tooltip,TITLE:Ne(yt)?H?yt:`<tr><th colspan="2">${yt}</th></tr>`:""})}if(!$t.ratio&&f.arcs&&(Tt=["arc",i.$el.arcs.select(`path.${Le.arc}-${$t.id}`).data()[0]],$t.ratio=i.getRatio(...Tt)),Tt=[$t.ratio,$t.id,$t.index],i.isAreaRangeType($t)){const[yt,q]=["high","low"].map(dt=>L(i.getRangedData($t,dt),...Tt));mt=`<b>Mid:</b> ${L(D($t),...Tt)} <b>High:</b> ${yt} <b>Low:</b> ${q}`}else if(i.isCandlestickType($t)){const[yt,q,Et,dt,Rt]=["open","high","low","close","volume"].map(kt=>i.getRangedData($t,kt,"candlestick")?L(i.getRangedData($t,kt,"candlestick"),...Tt):void 0);mt=`<b>Open:</b> ${yt} <b>High:</b> ${q} <b>Low:</b> ${Et} <b>Close:</b> ${dt}${Rt?` <b>Volume:</b> ${Rt}`:""}`}else if(i.isBarRangeType($t)){const{value:yt,id:q,index:Et}=$t;mt=`${L(yt,void 0,q,Et)}`}else mt=L(D($t),...Tt);if(mt!==void 0){if($t.name===null)continue;const yt=w((o=$t.name)!=null?o:$t.id,...Tt),q=K($t),Et={CLASS_TOOLTIP_NAME:oo.tooltipName+i.getTargetSelectorSuffix($t.id),COLOR:H||!i.patterns?q:`<svg><rect style="fill:${q}" width="10" height="10"></rect></svg>`,NAME:yt,VALUE:mt};if(H&&Ge(Z.text)){const dt=nt.indexOf($t.id);Object.keys(Z.text).forEach(Rt=>{Et[Rt]=Z.text[Rt][dt]})}vt+=Fa(Q[1],Et)}}return`${vt}</table>`},getTooltipContentTemplate(t){return(t||`<table class="{=CLASS_TOOLTIP}"><tbody>
|
|
40
|
+
};`],{type:"text/javascript"})),ze.URL.createObjectURL(Gs[o])}function ap(t){const e=new ze.Worker(t);return e.onerror=function(r){console.error?console.error(r):console.log(r)},e}function Vs(t=!0,e,r,a){let o=function(...s){const i=e(...s);r(i)};if(ze.Worker&&t){const s=rp(e,a),i=ap(s);o=function(...l){i.postMessage(l),i.onmessage=function(c){return ze.URL.revokeObjectURL(s),r(c.data)}}}return o}var mc={},Xs={},Hs=34,Ba=10,Ws=13;function yc(t){return new Function("d","return {"+t.map(function(e,r){return JSON.stringify(e)+": d["+r+'] || ""'}).join(",")+"}")}function op(t,e){var r=yc(t);return function(a,o){return e(r(a),o,t)}}function xc(t){var e=Object.create(null),r=[];return t.forEach(function(a){for(var o in a)o in e||r.push(e[o]=o)}),r}function Fn(t,e){var r=t+"",a=r.length;return a<e?new Array(e-a+1).join(0)+r:r}function sp(t){return t<0?"-"+Fn(-t,6):t>9999?"+"+Fn(t,6):Fn(t,4)}function ip(t){var e=t.getUTCHours(),r=t.getUTCMinutes(),a=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":sp(t.getUTCFullYear(),4)+"-"+Fn(t.getUTCMonth()+1,2)+"-"+Fn(t.getUTCDate(),2)+(o?"T"+Fn(e,2)+":"+Fn(r,2)+":"+Fn(a,2)+"."+Fn(o,3)+"Z":a?"T"+Fn(e,2)+":"+Fn(r,2)+":"+Fn(a,2)+"Z":r||e?"T"+Fn(e,2)+":"+Fn(r,2)+"Z":"")}function Tc(t){var e=new RegExp('["'+t+`
|
|
41
|
+
\r]`),r=t.charCodeAt(0);function a(p,y){var A,w,F=o(p,function(N,D){if(A)return A(N,D-1);w=N,A=y?op(N,y):yc(N)});return F.columns=w||[],F}function o(p,y){var A=[],w=p.length,F=0,N=0,D,K=w<=0,J=!1;p.charCodeAt(w-1)===Ba&&--w,p.charCodeAt(w-1)===Ws&&--w;function W(){if(K)return Xs;if(J)return J=!1,mc;var Q,ot=F,vt;if(p.charCodeAt(ot)===Hs){for(;F++<w&&p.charCodeAt(F)!==Hs||p.charCodeAt(++F)===Hs;);return(Q=F)>=w?K=!0:(vt=p.charCodeAt(F++))===Ba?J=!0:vt===Ws&&(J=!0,p.charCodeAt(F)===Ba&&++F),p.slice(ot+1,Q-1).replace(/""/g,'"')}for(;F<w;){if((vt=p.charCodeAt(Q=F++))===Ba)J=!0;else if(vt===Ws)J=!0,p.charCodeAt(F)===Ba&&++F;else if(vt!==r)continue;return p.slice(ot,Q)}return K=!0,p.slice(ot,w)}for(;(D=W())!==Xs;){for(var rt=[];D!==mc&&D!==Xs;)rt.push(D),D=W();y&&(rt=y(rt,N++))==null||A.push(rt)}return A}function s(p,y){return p.map(function(A){return y.map(function(w){return g(A[w])}).join(t)})}function i(p,y){return y==null&&(y=xc(p)),[y.map(g).join(t)].concat(s(p,y)).join(`
|
|
42
|
+
`)}function l(p,y){return y==null&&(y=xc(p)),s(p,y).join(`
|
|
43
|
+
`)}function c(p){return p.map(d).join(`
|
|
44
|
+
`)}function d(p){return p.map(g).join(t)}function g(p){return p==null?"":p instanceof Date?ip(p):e.test(p+="")?'"'+p.replace(/"/g,'""')+'"':p}return{parse:a,parseRows:o,format:i,formatBody:l,formatRows:c,formatRow:d,formatValue:g}}var Ur=Tc(","),lp=Ur.parse,cp=Ur.parseRows,oT=Ur.format,sT=Ur.formatBody,iT=Ur.formatRows,lT=Ur.formatRow,cT=Ur.formatValue,zr=Tc(" "),up=zr.parse,fp=zr.parseRows,uT=zr.format,fT=zr.formatBody,dT=zr.formatRows,hT=zr.formatRow,vT=zr.formatValue;function Ys(t){const e=[];return t.forEach(function(r,a){const o=r[0];r.forEach(function(s,i){if(i>0){if(typeof e[i-1]=="undefined"&&(e[i-1]={}),typeof s=="undefined")throw new Error(`Source data is missing a component at (${a}, ${i})!`);e[i-1][o]=s}})}),e}function Ks(t){const e=t[0],r=[];return t.forEach(function(a,o){if(o>0){const s={};a.forEach(function(i,l){if(typeof i=="undefined")throw new Error(`Source data is missing a component at (${o}, ${l})!`);s[e[l]]=i}),r.push(s)}}),r}function Sc(t,e){const r=[];let a,o;if(Array.isArray(t)){const s=function(i,l){if(i[l]!==void 0)return i[l];const d=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let g=i;return d.some(function(p){return!(g=g&&p in g?g[p]:void 0)}),g};e.x?a=e.value.concat(e.x):a=e.value,r.push(a),t.forEach(function(i){const l=a.map(function(c){let d=s(i,c);return typeof d=="undefined"&&(d=null),d});r.push(l)}),o=Ks(r)}else Object.keys(t).forEach(function(s){var i;const l=t[s].concat();(i=l.unshift)==null||i.call(l,s),r.push(l)}),o=Ys(r);return o}function dp(t,e="csv",r,a,o){const s=new XMLHttpRequest,i={csv:hp,tsv:vp,json:Sc};s.open("GET",t),r&&Object.keys(r).forEach(function(l){s.setRequestHeader(l,r[l])}),s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){const l=s.responseText;l&&o.call(this,i[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},s.send()}function $c(t,e){const r=t.rows(e);let a;return r.length===1?(a=[{}],r[0].forEach(o=>{a[0][o]=null})):a=t.parse(e),a}function hp(t){return $c({rows:cp,parse:lp},t)}function vp(t){return $c({rows:fp,parse:up},t)}function Ac(t,e){const r=t||(e==null?void 0:e.data_keys);return r!=null&&r.x&&(e.data_x=r.x),r}function gp(t,e,r){const a=this,{config:o}=a;let s;t.forEach(i=>{const l=a.getXKey(i);if(r.customX||r.timeSeries?r.xs.indexOf(l)>=0?s=(r.appendXs&&a.data.xs[i]||[]).concat(e.map((c,d)=>{const g=Ne(c[l]);return g?a.generateTargetX(g,i,d):!1}).filter(c=>c!==!1)):o.data_x?s=this.getOtherTargetXs():dn(o.data_xs)&&(s=a.getXValuesOfXKey(l,a.data.targets)):s=e.map((c,d)=>d),s)a.data.xs[i]=s;else throw new Error(`x is not defined for id = "${i}".`)})}var pp={convertData(t,e){const{config:r}=this,a=s=>s!=null&&s.length&&!Kn(s[0])?r.boost_useWorker:!1;let o=t;if(t.bindto&&(o={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(s=>{const i=`data_${s}`;i in t&&(o[s]=t[i])})),o.url&&e)dp(o.url,o.mimeType,o.headers,Ac(o.keys,r),e);else if(o.json)Vs(a(o.json),Sc,e,[Ys,Ks])(o.json,Ac(o.keys,r));else if(o.rows)Vs(a(o.rows),Ks,e)(o.rows);else if(o.columns)Vs(a(o.columns),Ys,e)(o.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const r=this,{axis:a,config:o,state:s}=r,i=o.data_type,l=Object.keys(t[0]||{}),{ids:c,xs:d}=l.length?l.reduce((y,A)=>(r.isX.call(r,A)?y.xs.push(A):r.isNotX.call(r,A)&&y.ids.push(A),y),{ids:[],xs:[]}):{ids:[],xs:[]},g={appendXs:e,xs:d,idConverter:o.data_idConverter.bind(r.api),categorized:a==null?void 0:a.isCategorized(),timeSeries:a==null?void 0:a.isTimeSeries(),customX:a==null?void 0:a.isCustomX()};gp.bind(r)(c,t,g);const p=c.map((y,A)=>{const w=o.data_idConverter.bind(r.api)(y),F=r.getXKey(y),N=g.customX&&g.categorized,D=N&&(()=>{const W=uc(o.axis_x_categories);return t.every(rt=>W.has(rt.x))})(),K=t.__append__,J=F===null&&K?r.api.data.values(y).length:0;return{id:w,id_org:y,values:t.map((W,rt)=>{const Q=W[F];let ot=W[y],vt;return ot=ot!==null&&!isNaN(ot)&&!Ge(ot)?+ot:Xe(ot)||Ge(ot)?ot:null,(N||s.hasRadar)&&A===0&&!ln(Q)?(!D&&A===0&&rt===0&&!K&&(o.axis_x_categories=[]),vt=o.axis_x_categories.indexOf(Q),vt===-1&&(vt=o.axis_x_categories.length,o.axis_x_categories.push(Q))):vt=r.generateTargetX(Q,y,J+rt),(ln(ot)||r.data.xs[y].length<=rt)&&(vt=void 0),{x:vt,value:ot,id:w,index:-1}}).filter(W=>Qe(W.x))}});if(p.forEach(y=>{var A;o.data_xSort&&(y.values=y.values.sort((w,F)=>{const N=w.x||w.x===0?w.x:1/0,D=F.x||F.x===0?F.x:1/0;return N-D})),y.values.forEach((w,F)=>w.index=F),(A=r.data.xs[y.id])==null||A.sort((w,F)=>w-F)}),s.hasNegativeValue=r.hasNegativeValueInTargets(p),s.hasPositiveValue=r.hasPositiveValueInTargets(p),i&&r.isValidChartType(i)){const y=r.mapToIds(p).filter(A=>!(A in o.data_types)||!r.isValidChartType(o.data_types[A]));r.setTargetType(y,i)}return p.forEach(y=>r.cache.add(y.id_org,y,!0)),p}},mp={isX(t){const e=this,{config:r}=e,a=r.data_x&&t===r.data_x,o=dn(r.data_xs)&&wg(r.data_xs,t);return a||o},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!((t.data_stack_normalize===!0||Gn(t.data_stack_normalize))&&t.data_groups.length)},isStackNormalizedPerGroup(){var t;const{config:e}=this;return!!(Gn(e.data_stack_normalize)&&((t=e.data_stack_normalize)!=null&&t.perGroup)&&e.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(r=>r.indexOf(t)>=0&&r.length>1):e.length>0},hasAxisGroupedData(t){const e=this,{axis:r}=e;return e.data.targets.filter(s=>r.getId(s.id)===t).map(s=>s.id).some(s=>e.isGrouped(s))},getXKey(t){const e=this,{config:r}=e;return r.data_x?r.data_x:dn(r.data_xs)?r.data_xs[t]:null},getXValuesOfXKey(t,e){const r=this,a=e&&dn(e)?r.mapToIds(e):[];let o;return a.forEach(s=>{r.getXKey(s)===t&&(o=r.data.xs[s])}),o},getIndexByX(t,e){const r=this;return e?e.indexOf(je(t)?t:+t):(r.filterByX(r.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const r=this;return t in r.data.xs&&r.data.xs[t]&&Ne(r.data.xs[t][e])?r.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:r}=e;Object.keys(t).forEach(a=>{r.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(dn(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:r}=e;let a;return t&&(a=r.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const r=this;let a=r.filterTargetsToShow(r.data.targets).map(o=>r.addName(r.getValueOnIndex(o.values,t)));return e&&(a=a.filter(o=>o&&"value"in o&&Ne(o.value))),a},getValueOnIndex(t,e){const r=t.filter(a=>a.index===e);return r.length?r[0]:null},updateTargetX(t,e){const r=this;t.forEach(a=>{a.values.forEach((o,s)=>{o.x=r.generateTargetX(e[s],a.id,s)}),r.data.xs[a.id]=e})},updateTargetXs(t,e){const r=this;t.forEach(a=>{e[a.id]&&r.updateTargetX([a],e[a.id])})},generateTargetX(t,e,r){const a=this,{axis:o}=a;let s=o!=null&&o.isCategorized()?r:t||r;if(o!=null&&o.isTimeSeries()){const i=Jn.bind(a);s=i(t||a.getXValue(e,r))}else o!=null&&o.isCustomX()&&!(o!=null&&o.isCategorized())&&(s=Ne(t)?+t:a.getXValue(e,r));return s},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return Qe(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return Qe(e)?e:null},getBaseValue(t){const e=this,{hasAxis:r}=e.state;let{value:a}=t;return a&&r&&(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 r,a;return(t||this.data.targets.map(o=>o.values)).forEach((o,s)=>{const i=o.map(e).filter(ye);r=Math.min(s?r:1/0,...i),a=Math.max(s?a:-1/0,...i)}),{min:r,max:a}},getMinMaxData(){const t=this,e=cn.dataMinMax;let r=t.cache.get(e);if(!r){const a=t.data.targets.map(d=>d.values),o=t.getMinMaxValue(a);let s=[],i=[];const{min:l,max:c}=o;a.forEach(d=>{const g=t.getFilteredDataByValue(d,l),p=t.getFilteredDataByValue(d,c);g.length&&(s=s.concat(g)),p.length&&(i=i.concat(p))}),t.cache.add(e,r={min:s,max:i})}return r},getTotalPerIndex(t){const e=this,{config:r}=e,a=t?`${cn.dataTotalPerIndex}-${t}`:cn.dataTotalPerIndex;let o=e.cache.get(a);if((e.config.data_groups.length||e.isStackNormalized())&&!o){o=[];let{targets:s}=e.data;if(e.isStackNormalizedPerGroup()&&t){const i=r.data_groups.find(l=>l.indexOf(t)>=0);if(i)s=s.filter(l=>i.indexOf(l.id)>=0);else return null}s.forEach(i=>{i.values.forEach((l,c)=>{o[c]||(o[c]=0),o[c]+=~~l.value})}),e.cache.add(a,o)}return o},getTotalDataSum(t){const e=this,r=cn.dataTotalSum;let a=e.cache.get(r);return ye(a)||(a=e.data.targets.reduce((o,s)=>o+s.values.reduce((i,l)=>{var c;return i+((c=l.value)!=null?c:0)},0),0),e.cache.add(r,a)),t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:r}}=t;let a=0;return r.length&&(a=e.data.values.bind(e)(r).reduce((o,s)=>o+s)),a},getFilteredDataByValue(t,e){return t.filter(r=>this.getBaseValue(r)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,r=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,o)=>a.concat(o)).map(a=>a.x),t=sa(Bs(t)).map((a,o,s)=>({x:a,index:r?s.length-o-1:o}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?Xe(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const r=this.mapToIds(t);for(let a=0,o;o=r[a];a++)if(o===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;if(!t){const{cache:r,data:a,state:o}=e,s=cn.filteredTargets,i=o.hiddenTargetIds.join(","),l=r.get(cn.visibilityChecksum);if(i!==l&&(r.remove(s),r.add(cn.visibilityChecksum,i)),r.has(s))return r.get(s);const c=a.targets.filter(d=>e.isTargetToShow(d.id));return r.add(s,c),c}return t.filter(r=>e.isTargetToShow(r.id))},mapTargetsToUniqueXs(t){const e=this,{axis:r}=e;let a=[];return t!=null&&t.length&&(a=Bs(ic(t.map(o=>o.values.map(s=>+s.x)))),a=r!=null&&r.isTimeSeries()?a.map(o=>new Date(+o)):a.map(Number)),sa(a)},addTargetIds(t,e){const{state:r}=this;(Xe(e)?e:[e]).forEach(o=>{r[t].indexOf(o)<0&&r[t].push(o)})},removeTargetIds(t,e){const{state:r}=this;(Xe(e)?e:[e]).forEach(o=>{const s=r[t].indexOf(o);s>=0&&r[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:r}=e.state,a={},o=e.isMultipleX(),s=o?e.mapTargetsToUniqueXs(t).map(l=>je(l)?l:+l):null,i=s?new Map(s.map((l,c)=>[l,c])):null;return t.forEach(l=>{const c=[];l.values.filter(({value:d})=>Ne(d)||d===null).forEach(d=>{let{value:g}=d;if(g!==null&&e.isCandlestickType(d)&&(g=Xe(g)?g.slice(0,4):[g.open,g.high,g.low,g.close]),Xe(g))c.push(...g);else if(Ge(g)&&"high"in g)c.push(...Object.values(g));else if(e.isBubbleZType(d))c.push(r&&e.getBubbleZData(g,"y"));else if(o&&i){const p=je(d.x)?d.x:+d.x,y=i.get(p);y!==void 0&&(c[y]=g)}else c.push(g)}),a[l.id]=c}),a},checkValueInTargets(t,e){return Object.keys(t).some(r=>t[r].values.some(a=>e(a.value)))},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,r=[...t],a=e.getSortCompareFn();return a&&r.sort(a),r},getSortCompareFn(t=!1){const e=this,{config:r}=e,a=r.data_order,o=/asc/i.test(a),s=/desc/i.test(a);let i;if(o||s){const l=(d,g)=>d+Math.abs(g.value),c=d=>ye(d)?d:"values"in d?d.values.reduce(l,0):d.value;i=(d,g)=>{const p=c(d),y=c(g);return t?o?p-y:y-p:o?y-p:p-y}}else de(a)&&(i=a.bind(e.api));return i||null},filterByX(t,e){return ic(t.map(r=>r.values)).filter(r=>r.x-e===0)},filterNullish(t){const e=r=>Ne(r.value);return t&&t.filter(r=>"value"in r?e(r):r.values.some(e))},filterRemoveNull(t){return t.filter(e=>Ne(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(r=>({id:r.id,id_org:r.id_org,values:r.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Ls(t)&&t||Gn(t)&&dn(t)},hasNullDataValue(t){return t.some(({value:e})=>e===null)},getDataIndexFromEvent(t){const e=this,{$el:r,config:a,state:{hasRadar:o,inputType:s,eventReceiver:{coords:i,rect:l}}}=e;let c;if(o){let d=t.target;/tspan/i.test(d.tagName)&&(d=d.parentNode);const g=st(d).datum();c=g&&Object.keys(g).length===1?g.index:void 0}else{const d=a.axis_rotated,g=oc(r.chart.node()),p=s==="touch"&&t.changedTouches?t.changedTouches[0]:t;let y=d?p.clientY+g.y:p.clientX+g.x;if(Us(r.svg)){const A=[y,0];d&&A.reverse(),y=bo(r.eventRect.node(),...A)[d?"y":"x"]}else y-=d?l.top:l.left;c=Fs(i,y,0,i.length-1,d)}return c},getDataLabelLength(t,e,r){var a;const o=this,s=1.3;return((a=o.getTextRect([t,e].map(i=>o.dataLabelFormat()(i))))==null?void 0:a.map(i=>i[r]*s))||[0,0]},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 r=t[e].x,a=[];let o;for(o=e-1;o>=0&&r===t[o].x;o--)a.push(t[o]);for(o=e;o<t.length&&r===t[o].x;o++)a.push(t[o]);return a},findClosestFromTargets(t,e){const r=this,a=t.map(o=>r.findClosest(o.values,e));return r.findClosest(a,e)},findClosest(t,e){const r=this,{$el:{main:a}}=r,o=t.filter(l=>l&&Ne(l.value));let s,i;return o.filter(l=>r.isBarType(l.id)||r.isCandlestickType(l.id)).forEach(l=>{const c=r.isBarType(l.id)?`.${zn.chartBar}.${Ee.target}${r.getTargetSelectorSuffix(l.id)} .${zn.bar}-${l.index}`:`.${fr.chartCandlestick}.${Ee.target}${r.getTargetSelectorSuffix(l.id)} .${fr.candlestick}-${l.index} path`;!i&&r.isWithinBar(a.select(c).node())&&(i=l)}),o.filter(l=>!r.isBarType(l.id)&&!r.isCandlestickType(l.id)).forEach(l=>{const c=r.dist(l,e);s=r.getPointSensitivity(l),c<s&&(s=c,i=l)}),i},dist(t,e){const r=this,{config:{axis_rotated:a},scale:o}=r,s=+a,i=+!a,l=r.circleY(t,t.index),c=(o.zoom||o.x)(t.x);return Math.sqrt(Math.pow(c-e[s],2)+Math.pow(l-e[i],2))},convertValuesToStep(t){const e=this,{axis:r,config:a}=e,o=a.line_step_type,s=r?r.isCategorized():!1,i=Xe(t)?t.concat():[t];if(!(s||/step\-(after|before)/.test(o)))return t;if(i.length){const l=i[0],c=i[i.length-1],{id:d}=l;let{x:g}=l;i.unshift({x:--g,value:l.value,id:d}),s&&o==="step-after"&&i.unshift({x:--g,value:l.value,id:d}),g=c.x,i.push({x:++g,value:c.value,id:d}),s&&o==="step-before"&&i.push({x:++g,value:c.value,id:d})}return i},convertValuesToRange(t){const e=Xe(t)?t.concat():[t],r=[];return e.forEach(a=>{const{x:o,id:s}=a;r.push({x:o,id:s,value:a.value[0]}),r.push({x:o,id:s,value:a.value[2]})}),r},updateDataAttributes(t,e){const r=this,{config:a}=r,o=a[`data_${t}`];return ln(e)||(Object.keys(e).forEach(s=>{o[s]=e[s]}),r.redraw({withLegend:!0})),o},getRangedData(t,e="",r="areaRange"){const a=t==null?void 0:t.value;if(Xe(a)){if(r==="bar")return a.reduce((o,s)=>s-o);{const o={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[r].indexOf(e);return o>=0&&a?a[o]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:r}=e;if(r.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=o=>e.getRatio("index",o,!0);t.forEach(o=>{"values"in o?o.values.forEach(a):a(o)})}},getRatio(t,e,r=!1){const a=this,{config:o,state:s}=a,i=a.api;let l=0;if(e&&i.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=o.gauge_fullCircle?a.getArcLength():a.getStartingAngle()*-2,d=a.hasType("gauge")?c:Math.PI*2;l=(e.endAngle-e.startAngle)/d}else if(t==="index"){const c=i.data.values.bind(i),{hiddenTargetIds:d}=s;let g=this.getTotalPerIndex(a.isStackNormalizedPerGroup()?e.id:void 0);if(g===null)return l;if(d.length){let y=d;if(a.isStackNormalizedPerGroup()&&e.id){const A=o.data_groups.find(w=>w.indexOf(e.id)>=0);A&&(y=y.filter(w=>A.indexOf(w)>=0))}if(y.length){let A=c(y,!1);A.length&&(A=A.reduce((w,F)=>w.map((N,D)=>~~N+F[D])),g=g.map((w,F)=>w-A[F]))}}const p=g[e.index];e.ratio=ye(e.value)&&g&&p?e.value/p:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/s.current.dataMax*o.radar_size_ratio;else if(t==="bar"){const d=a.getYScaleById.bind(a)(e.id).domain().reduce((g,p)=>p-g);l=d===0?0:Math.abs(a.getRangedData(e,null,t)/d)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return r&&l?l*100:l},updateDataIndexByX(t){const e=this,r=t.reduce((a,o,s)=>(a[Number(o.x)]=s,a),{});e.data.targets.forEach(a=>{a.values.forEach((o,s)=>{let i=r[Number(o.x)];i===void 0&&(i=s),o.index=i})})},isBubbleZType(t){return this.isBubbleType(t)&&(Ge(t.value)&&("z"in t.value||"y"in t.value)||Xe(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:r}=t;return e.isBarType(t)&&Xe(r)&&r.length>=2&&r.every(ye)},getDataById(t){var e;const r=this.cache.get(t)||this.api.data(t);return(e=r==null?void 0:r[0])!=null?e:r}};function Ec(t,e=!1){const r=this,{api:a}=r;e&&r.api.flush(!0),t==null||t.call(a)}var yp={load(t,e){const r=this,{axis:a,data:o,org:s,scale:i}=r,{append:l}=e,c={domain:null,currentDomain:null,x:null};let d=t;d&&(e.filter&&(d=d.filter(e.filter)),(e.type||e.types)&&d.forEach(g=>{var p;const y=((p=e.types)==null?void 0:p[g.id])||e.type;r.setTargetType(g.id,y)}),o.targets.forEach(g=>{for(let p=0;p<d.length;p++)if(g.id===d[p].id){g.values=l?g.values.concat(d[p].values):d[p].values,d.splice(p,1);break}}),o.targets=o.targets.concat(d)),r.updateTargets(o.targets),i.zoom&&(c.x=a.isCategorized()?i.x.orgScale():(s.xScale||i.x).copy(),c.domain=r.getXDomain(o.targets),c.x.domain(c.domain),c.currentDomain=r.zoom.getDomain(),r.withinRange(c.currentDomain,void 0,c.domain)||(i.x.domain(c.domain),i.zoom=null,r.$el.eventRect.property("__zoom",null))),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.zoom?(s.xDomain=c.domain,s.xScale=c.x,a.isCategorized()&&(c.currentDomain=r.getZoomDomainValue(c.currentDomain),s.xDomain=r.getZoomDomainValue(s.xDomain),s.xScale=c.x.domain(s.xDomain)),r.updateCurrentZoomTransform(c.x,c.currentDomain)):s.xScale&&s.xScale.domain(s.xDomain),r.updateTypesElements(),Ec.call(r,e.done,e.resizeAfter)},loadFromArgs(t){const e=this;e.config&&(e.cache.reset(),e.convertData(t,r=>{const a=t.data||r;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets.call(e,a),t)}))},unload(t,e){var r;const a=this,{state:o,$el:s,$T:i}=a,l=!!((r=a.hasLegendDefsPoint)!=null&&r.call(a));let c=e,d=t;if(a.cache.reset(),c||(c=()=>{}),d=d.filter(p=>a.hasTarget(a.data.targets,p)),!d||d.length===0){c();return}d.forEach(p=>{var y;const A=a.getTargetSelectorSuffix(p);o.withoutFadeIn[p]=!1,s.legend&&s.legend.selectAll(`.${Ze.legendItem}${A}`).remove(),a.data.targets=a.data.targets.filter(w=>w.id!==p),l&&((y=s.defs)==null||y.select(`#${a.getDefsPointId(A)}`).remove())}),o.hasFunnel&&a.updateFunnel(a.data.targets),o.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements();const g=s.svg.selectAll(d.map(p=>a.selectorTarget(p)));i(g).style("opacity","0").remove().call(Ro,c)}},Co=(t=>()=>t);function Zs(t,{sourceEvent:e,subject:r,target:a,identifier:o,active:s,x:i,y:l,dx:c,dy:d,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:i,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:g}})}Zs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function xp(t){return!t.ctrlKey&&!t.button}function Tp(){return this.parentNode}function Sp(t,e){return e==null?{x:t.x,y:t.y}:e}function $p(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ic(){var t=xp,e=Tp,r=Sp,a=$p,o={},s=so("start","drag","end"),i=0,l,c,d,g,p=0;function y(W){W.on("mousedown.drag",A).filter(a).on("touchstart.drag",N).on("touchmove.drag",D,ph).on("touchend.drag touchcancel.drag",K).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function A(W,rt){if(!(g||!t.call(this,W,rt))){var Q=J(this,e.call(this,W,rt),W,rt,"mouse");Q&&(st(W.view).on("mousemove.drag",w,Ra).on("mouseup.drag",F,Ra),vs(W.view),hs(W),d=!1,l=W.clientX,c=W.clientY,Q("start",W))}}function w(W){if(Qr(W),!d){var rt=W.clientX-l,Q=W.clientY-c;d=rt*rt+Q*Q>p}o.mouse("drag",W)}function F(W){st(W.view).on("mousemove.drag mouseup.drag",null),gs(W.view,d),Qr(W),o.mouse("end",W)}function N(W,rt){if(t.call(this,W,rt)){var Q=W.changedTouches,ot=e.call(this,W,rt),vt=Q.length,$t,Tt;for($t=0;$t<vt;++$t)(Tt=J(this,ot,W,rt,Q[$t].identifier,Q[$t]))&&(hs(W),Tt("start",W,Q[$t]))}}function D(W){var rt=W.changedTouches,Q=rt.length,ot,vt;for(ot=0;ot<Q;++ot)(vt=o[rt[ot].identifier])&&(Qr(W),vt("drag",W,rt[ot]))}function K(W){var rt=W.changedTouches,Q=rt.length,ot,vt;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),ot=0;ot<Q;++ot)(vt=o[rt[ot].identifier])&&(hs(W),vt("end",W,rt[ot]))}function J(W,rt,Q,ot,vt,$t){var Tt=s.copy(),yt=Yn($t||Q,rt),Rt,xt,q;if((q=r.call(W,new Zs("beforestart",{sourceEvent:Q,target:y,identifier:vt,active:i,x:yt[0],y:yt[1],dx:0,dy:0,dispatch:Tt}),ot))!=null)return Rt=q.x-yt[0]||0,xt=q.y-yt[1]||0,function Et(dt,bt,kt){var Ht=yt,Kt;switch(dt){case"start":o[vt]=Et,Kt=i++;break;case"end":delete o[vt],--i;case"drag":yt=Yn(kt||bt,rt),Kt=i;break}Tt.call(dt,W,new Zs(dt,{sourceEvent:bt,subject:q,target:y,identifier:vt,active:Kt,x:yt[0]+Rt,y:yt[1]+xt,dx:yt[0]-Ht[0],dy:yt[1]-Ht[1],dispatch:Tt}),ot)}}return y.filter=function(W){return arguments.length?(t=typeof W=="function"?W:Co(!!W),y):t},y.container=function(W){return arguments.length?(e=typeof W=="function"?W:Co(W),y):e},y.subject=function(W){return arguments.length?(r=typeof W=="function"?W:Co(W),y):r},y.touchable=function(W){return arguments.length?(a=typeof W=="function"?W:Co(!!W),y):a},y.on=function(){var W=s.on.apply(s,arguments);return W===s?y:W},y.clickDistance=function(W){return arguments.length?(p=(W=+W)*W,y):Math.sqrt(p)},y}var Ap={setExpand(t,e,r){const a=this,{config:o,$el:{circle:s}}=a;s&&o.point_focus_expand_enabled&&a.expandCircles(t,e,r),a.expandBarTypeShapes(!0,t,e,r)},expandBarTypeShapes(t=!0,e,r,a){const o=this;["bar","candlestick"].filter(s=>o.$el[s]).forEach(s=>{a&&o.$el[s].classed(Ee.EXPANDED,!1),o.getShapeByIndex(s,e,r).classed(Ee.EXPANDED,t)})},setOverOut(t,e){const r=this,{config:a,state:{hasFunnel:o,hasRadar:s,hasTreemap:i},$el:{main:l}}=r,c=Ge(e);if(c||e!==-1){const d=a[t?"data_onover":"data_onout"].bind(r.api);if(a.color_onover&&r.setOverColor(t,e,c),c){const g=r.getTargetSelectorSuffix(e.id),p=o||i?`${Ee.target+g} .${sn.shape}`:Le.arc+g;d(e,l.select(`.${p}`).node())}else if(a.tooltip_grouped)t&&(s&&r.isPointFocusOnly()?r.showCircleFocus(r.getAllValuesOnIndex(e,!0)):r.setExpand(e,null,!0)),!r.isMultipleX()&&l.selectAll(`.${sn.shape}-${e}`).each(function(g){d(g,this)});else{const g=r.cache.get(cn.setOverOut)||[],p=l.selectAll(`.${sn.shape}-${e}`).filter(function(A){return r.isWithinShape(this,A)}),y=p.filter(function(){return g.every(A=>A!==this)});if(!t||p.empty()||g.length===y.size()&&y.nodes().every((A,w)=>A!==g[w]))for(;g.length;){const A=g.pop();a.data_onout.bind(r.api)(st(A).datum(),A)}y.each(function(){t&&(d(st(this).datum(),this),g.push(this))}),r.cache.add(cn.setOverOut,g)}}},callOverOutForTouch(t){const e=this,r=e.cache.get(cn.callOverOutForTouch);(Ge(t)&&r?t.id!==r.id:t!==r)&&((r||ye(r))&&e.setOverOut(!1,r),(t||ye(t))&&e.setOverOut(!0,t),e.cache.add(cn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:r}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?Ic().on("drag",function(a){r.event=a,t.drag(Zn(a,this))}).on("start",function(a){r.event=a,t.dragstart(Zn(a,this))}).on("end",a=>{r.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,r){var a,o,s;const i=this,{config:l,state:{eventReceiver:c,hasAxis:d,hasFunnel:g,hasRadar:p,hasTreemap:y},$el:{eventRect:A,funnel:w,radar:F,svg:N,treemap:D}}=i;let K=(s=(o=(g||y)&&c.rect||p&&F.axes.select(`.${gn.axis}-${e} text`)||A||((a=i.getArcElementByIdOrIndex)==null?void 0:a.call(i,e)))==null?void 0:o.node)==null?void 0:s.call(o);if(K){const J=i.isMultipleX(),W=l.axis_rotated;let{width:rt,left:Q,top:ot}=Sn(K);if(d&&!p&&!J){const yt=c.coords[e];yt?(rt=yt.w,Q+=yt.x,ot+=yt.y):(rt=0,Q=0,ot=0)}let vt=Q+(r?r[0]:0)+(J||W?0:rt/2),$t=ot+(r?r[1]:0)+(W?4:0);if(Us(N)){const yt=bo(i.$el.eventRect.node(),vt,$t,!1);vt=yt.x,$t=yt.y}const Tt={screenX:vt,screenY:$t,clientX:vt,clientY:$t,bubbles:p};(g||y)&&(K=(w!=null?w:D).node()),Bg[/^(mouse|click)/.test(t)?"mouse":"touch"](K,t,Tt)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:r}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),r==null||r.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:r,eventRect:a,legend:o,region:s,svg:i,treemap:l},brush:c}=e,d=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[i,a,s==null?void 0:s.list,c==null?void 0:c.getSelection(),r==null?void 0:r.selectAll("path"),o==null?void 0:o.selectAll("g"),l].forEach(g=>g==null?void 0:g.on(d,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},Ep={categoryName(t){var e;const{axis_x_categories:r}=this.config;return(e=r==null?void 0:r[t])!=null?e:t}},Ip={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const r=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),o=r?"id":"index";return s=>{const i=s.data||s;return((e?this.generateClass(Ve[r?"shapes":"shape"],i[o]):"")+this.generateClass(Ve[t],i[a?"id":o])).trim()}},getChartClass(t){return e=>Ve[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],r=[];return function(a){var o;const s=a.id||((o=a.data)==null?void 0:o.id)||a;return r.indexOf(s)<0&&r.push(s),e[r.indexOf(s)%e.length]}},classRegion(t,e){return`${this.generateClass(Ve.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let r="";return e&&(r=` ${Ve.target}-${e}`),this.generateClass(Ve.target,t)+r},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Ve.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Ve.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(t,e="",r=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Ve.target+a} ${r}, ${e}.${Ve.circles+a} ${r}`},selectorTargets(t,e){const r=t||[];return r.length?r.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Ve.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class Rc extends Map{constructor(e,r=Cc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const[a,o]of e)this.set(a,o)}get(e){return super.get(Js(this,e))}has(e){return super.has(Js(this,e))}set(e,r){return super.set(bc(this,e),r)}delete(e){return super.delete(Oc(this,e))}}class gT extends Set{constructor(e,r=Cc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Js(this,e))}add(e){return super.add(bc(this,e))}delete(e){return super.delete(Oc(this,e))}}function Js({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):r}function bc({_intern:t,_key:e},r){const a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function Oc({_intern:t,_key:e},r){const a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Cc(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ia(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function pT(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 Pc=Symbol("implicit");function Mc(){var t=new Rc,e=[],r=[],a=Pc;function o(s){let i=t.get(s);if(i===void 0){if(a!==Pc)return a;t.set(s,i=e.push(s)-1)}return r[i%r.length]}return o.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Rc;for(const i of s)t.has(i)||t.set(i,e.push(i)-1);return o},o.range=function(s){return arguments.length?(r=Array.from(s),o):r.slice()},o.unknown=function(s){return arguments.length?(a=s,o):a},o.copy=function(){return Mc(e,r).unknown(a)},ia.apply(o,arguments),o}const Rp=(t,e,r)=>{const a=st(t.cloneNode(!0));return a.attr("id",r).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:r,node:a.node()}};function bp(t){const e=cn.colorPattern,{body:r}=mn;let a=r[e];if(!a){const s=t.classed(fs.colorPattern,!0).style("background-image");t.classed(fs.colorPattern,!1),s.indexOf(";")>-1&&(a=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map(i=>i.trim().replace(/[\"'\s]/g,"")).filter(Boolean),r[e]=a)}return a}const Op=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Cp={generateColor(){const t=this,{$el:e,config:r}=t,a=[],o=r.area_linearGradient||r.bar_linearGradient||r.point_radialGradient;let s=dn(r.color_pattern)?r.color_pattern:Mc(bp(e.chart)||Op).range();const i=s;if(de(r.color_tiles)){const l=r.color_tiles.bind(t.api)(),c=s.map((d,g)=>{const p=d.replace(/[#\(\)\s,]/g,""),y=`${t.state.datetimeId}-pattern-${p}-${g}`;return Rp(l[g%l.length],d,y)});s=c.map(d=>`url(#${d.id})`),t.patterns=c}return function(l){var c;const d=r.data_colors,g=r.data_color,p=l.id||((c=l.data)==null?void 0:c.id)||l,y=t.isTypeOf(p,["line","spline","step"])||!r.data_types[p];let A;if(de(d[p])?A=d[p].bind(t.api)(l):d[p]?A=d[p]:(a.indexOf(p)<0&&a.push(p),A=y?i[a.indexOf(p)%i.length]:s[a.indexOf(p)%s.length],d[p]=A),A=de(g)?g.call(t.api,A,l):A,o){const w=t.$el.defs.selectAll(`[id$='-gradient${t.getTargetSelectorSuffix(p)}'] stop`);let F;w.each(function(N,D){F=D===0?this.style.stopColor:this.style.stopColor===F}),F===!0&&w.attr("stop-color",A)}return A}},generateLevelColor(){const t=this,{config:e}=t,r=e.color_pattern,a=e.color_threshold,o=a.unit==="value",s=a.max||100,i=a.values&&a.values.length?a.values:[];return dn(a)?function(l){const c=o?l:l*100/s;let d=r[r.length-1];for(let g=0,p=i.length;g<p;g++)if(c<=i[g]){d=r[g];break}return d}:null},generateTextBGColorFilter(t,e={x:0,y:0,width:1,height:1}){const r=this,{$el:{defs:a},state:o}=r;if(t){let s=[];je(t)?s.push(""):Ge(t)?s=Object.keys(t):de(t)&&(s=r.mapToTargetIds()),s.forEach(i=>{const l=`${o.datetimeId}-labels-bg${r.getTargetSelectorSuffix(i)}${je(t)?r.getTargetSelectorSuffix(t):""}`,c=ra(i===""?t:(t==null?void 0:t[i])||"");a.select(`#${l}`).empty()&&a.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="${c}" />
|
|
45
|
+
<feComposite in="SourceGraphic" />`)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:r},state:{datetimeId:a},$el:{defs:o}}=t;r.forEach(s=>{const i=`${a}-gradient${t.getTargetSelectorSuffix(s.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(s)&&"area"||t.isBarType(s)&&"bar";if((l||c)&&o.select(`#${i}`).empty()){const d=t.color(s),g={defs:null,stops:[]};if(l){const{cx:p=.3,cy:y=.3,r:A=.7,stops:w=[[.1,d,0],[.9,d,1]]}=l;g.stops=w,g.defs=o.append("radialGradient").attr("id",`${i}`).attr("cx",p).attr("cy",y).attr("r",A)}else{const p=e.axis_rotated,{x:y=p?[1,0]:[0,0],y:A=p?[0,0]:[0,1],stops:w=[[0,d,1],[1,d,0]]}=e[`${c}_linearGradient`];g.stops=w,g.defs=o.append("linearGradient").attr("id",`${i}`).attr("x1",y[0]).attr("x2",y[1]).attr("y1",A[0]).attr("y2",A[1])}g.stops.forEach(p=>{const[y,A,w]=p,F=de(A)?A.bind(t.api)(s.id):A;g.defs&&g.defs.append("stop").attr("offset",y).attr("stop-color",F||d).attr("stop-opacity",w)})}})},setOverColor(t,e){const r=this,{config:a,$el:{main:o}}=r,s=a.color_onover;let i=t?s:r.color;Ge(i)?i=({id:l})=>l in s?s[l]:r.color(l):je(i)?i=()=>s:de(s)&&(i=i.bind(r.api)),o.selectAll(Ge(e)?`.${Le.arc}${r.getTargetSelectorSuffix(e.id)}`:`.${sn.shape}-${e}`).style("fill",i)}},Pp={getYDomainMinMax(t,e){const r=this,{axis:a,config:o}=r,s=e==="min",i=o.data_groups,l=r.mapToIds(t),c=uc(l),d=r.getValuesAsIdKeyed(t);if(i.length>0){const g=r[`has${s?"Negative":"Positive"}ValueInTargets`](t),p=new Map(l.map(y=>[y,a.getId(y)]));i.forEach(y=>{const A=y.filter(w=>c.has(w));if(A.length){const w=A[0],F=p.get(w);g&&d[w]&&(d[w]=d[w].map(N=>(s?N<0:N>0)?N:0)),A.filter((N,D)=>D>0).forEach(N=>{if(d[N]){const D=p.get(N);d[N].forEach((K,J)=>{const W=+K,rt=s?W>0:W<0;D===F&&!(g&&rt)&&(d[w][J]+=W)})}})}})}return er(e,Object.keys(d).map(g=>er(e,d[g])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(r=>e.axis.getId(r)===t)},getYDomain(t,e,r){const a=this,{axis:o,config:s,scale:i}=a,l=`axis_${e}`;if(a.isStackNormalized()&&t.filter(Rt=>o.getId(Rt.id)===e).map(Rt=>Rt.id).some(Rt=>a.isGrouped(Rt)))return[0,100];const c=(i==null?void 0:i[e])&&i[e].type==="log",d=t.filter(Tt=>o.getId(Tt.id)===e),g=r?a.filterByXDomain(d,r):d;if(g.length===0)return a.isHiddenTargetWithYDomain(e)?i[e].domain():e==="y2"?i.y.domain():a.getYDomain(t,"y2",r);const p=s[`${l}_min`],y=s[`${l}_max`],A=s[`${l}_center`],w=s[`${l}_inverted`],F=a.hasDataLabel()&&s.axis_rotated,N=a.hasDataLabel()&&!s.axis_rotated;let D=a.getYDomainMinMax(g,"min"),K=a.getYDomainMinMax(g,"max"),J=[fe.BAR,fe.BUBBLE,fe.SCATTER,...Er.Line].some(Tt=>{const yt=Tt.indexOf("area")>-1?"area":Tt;return a.hasType(Tt,g,!0)&&s[`${yt}_zerobased`]});D=Ne(p)?p:Ne(y)?D<=y?D:y-10:D,K=Ne(y)?y:Ne(p)?p<=K?K:p+10:K,isNaN(D)&&(D=0),isNaN(K)&&(K=D),D===K&&(D<0?K=0:D=0);const W=D>=0&&K>=0,rt=D<=0&&K<=0;(Ne(p)&&W||Ne(y)&&rt)&&(J=!1),J&&(W&&(D=0),rt&&(K=0));const Q=Math.abs(K-D);let ot={top:Q*.1,bottom:Q*.1};if(Qe(A)){const Tt=Math.max(Math.abs(D),Math.abs(K));K=A+Tt,D=A-Tt}if(F){const Tt=Lr(i.y.range()),yt=a.getDataLabelLength(D,K,"width").map(Rt=>{const xt=Rt/Tt;return isFinite(xt)?xt:0});["bottom","top"].forEach((Rt,xt)=>{ot[Rt]+=Q*(yt[xt]/(1-yt[0]-yt[1]))})}else if(N){const Tt=a.getDataLabelLength(D,K,"height");["bottom","top"].forEach((yt,Rt)=>{ot[yt]+=a.convertPixelToScale("y",Tt[Rt],Q)})}ot=a.getResettedPadding(ot);const vt=s[`${l}_padding`];dn(vt)&&["bottom","top"].forEach(Tt=>{ot[Tt]=o.getPadding(vt,Tt,ot[Tt],Q)}),J&&(W&&(ot.bottom=D),rt&&(ot.top=-K));const $t=c?[D,K].map(Tt=>Tt<0?0:Tt):[D-ot.bottom,K+ot.top];return w?$t.reverse():$t},getXDomainMinMax(t,e){var r;const a=this,o=a.config[`axis_x_${e}`],s=er(e,t.map(l=>er(e,l.values.map(c=>c.x))));let i=Ge(o)?o.value:o;return i=Qe(i)&&((r=a.axis)!=null&&r.isTimeSeries())?Jn.bind(this)(i):i,Ge(o)&&o.fit&&(e==="min"&&i<s||e==="max"&&i>s)&&(i=void 0),Qe(i)?i:s},getXDomainPadding(t,e){const r=this,{axis:a,config:o}=r,s=o.axis_x_padding,i=a.isTimeSeries()&&e,l=Lr(t);let c;if(a.isCategorized()||i)c=0;else if(r.hasType("bar")){const p=r.getMaxDataCount();c=p>1?l/(p-1)/2:.5}else c=r.getResettedPadding(l*.01);let{left:d=c,right:g=c}=ye(s)?{left:s,right:s}:s;if(s.unit==="px"){const p=Math.abs(l+l*.2);d=a.getPadding(s,"left",c,p),g=a.getPadding(s,"right",c,p)}else{const p=l+d+g;if(i&&p){const y=l/e/p;d=d/p/y,g=g/p/y}}return{left:d,right:g}},getXDomain(t){const e=this,{axis:r,config:a,scale:{x:o}}=e,s=a.axis_x_inverted,i=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=i;if(o.type!=="log"){const d=r.isCategorized(),g=r.isTimeSeries(),p=e.getXDomainPadding(i);let[y,A]=i;y-A===0&&!d&&(g?(y=new Date(y.getTime()*.5),A=new Date(A.getTime()*1.5)):(y=y===0?1:y*.5,A=A===0?-1:A*1.5)),(y||y===0)&&(l=g?new Date(y.getTime()-p.left):y-p.left),(A||A===0)&&(c=g?new Date(A.getTime()+p.right):A+p.right)}return s?[c,l]:[l,c]},updateXDomain(t,e,r,a,o){var s;const i=this,{config:l,org:c,scale:{x:d,subX:g}}=i,p=l.zoom_enabled;if(r&&(d.domain(o||sa(i.getXDomain(t),!l.axis_x_inverted)),c.xDomain=d.domain(),g.domain(d.domain()),(s=i.brush)==null||s.scale(g)),e){const y=o||!i.brush||ac(i)?c.xDomain:rc(i).map(g.invert);d.domain(y)}return(r||e)&&p&&i.zoom.updateScaleExtent(),a&&d.domain(i.trimXDomain(d.orgDomain())),d.domain()},trimXDomain(t){const e=this,r=e.config.axis_x_inverted,a=e.getZoomDomain(),[o,s]=a;return(r?t[0]>=o:t[0]<=o)&&(t[1]=+t[1]+(o-t[0]),t[0]=o),(r?t[1]<=s:t[1]>=s)&&(t[0]=+t[0]-(t[1]-s),t[1]=s),t},getZoomDomain(t="zoom",e=!1){const r=this,{config:a,scale:o,org:s}=r;let[i,l]=e&&o[t]?o[t].domain():s.xDomain;return t==="zoom"&&(Qe(a.zoom_x_min)&&(i=er("min",[i,a.zoom_x_min])),Qe(a.zoom_x_max)&&(l=er("max",[l,a.zoom_x_max]))),[i,l]},getZoomDomainValue(t){const e=this,{config:r,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const o=r.axis_x_inverted;return t.map((i,l)=>Number(i)+(l===0?+o:+!o))}return t},convertPixelToScale(t,e,r){const a=this,{config:o,state:s}=a,i=o.axis_rotated;let l;return t==="x"?l=i?"height":"width":l=i?"width":"height",r*(e/s[l])},withinRange(t,e=[0,0],r){const o=this.config.axis_x_inverted,[s,i]=r;if(Array.isArray(t)){const l=[...t];if(o&&l.reverse(),l[0]<l[1])return t.every((c,d)=>(d===0?o?+c<=s:+c>=s:o?+c>=i:+c<=i)&&!t.every((g,p)=>g===e[p]))}return!1}};function wc(t,e,r){const{config:a}=t,o=`axis_${e}_tick_format`;return(a[o]?a[o]:t.defaultValueFormat).call(t.api,r)}var Mp={yFormat(t){return wc(this,"y",t)},y2Format(t){return wc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:r,y2Format:a}=t,o=t.hasArcType(null,["gauge","polar","radar"]);return function(s,i,l){return(o?e:t.axis&&t.axis.getId(l)==="y2"?a:r).call(t,s,i)}},defaultValueFormat(t){return Xe(t)?t.join("~"):Ne(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,r=e.config.data_labels,a=s=>{let l=s;return Xe(s)?l=s.join("~"):Ge(s)&&(l=Object.values(s).join("~")),l};let o=a;return de(r.format)?o=r.format:Gn(r.format)&&(r.format[t]?o=r.format[t]===!0?a:r.format[t]:o=()=>""),o.bind(e.api)}};function Po(t){const e=this,r=e.getDataById(t);return e.levelColor?e.levelColor(r.values[0].value):e.color(r)}function Qs(t,e=!0){var r;const{config:a}=this;let o=(r=a.data_names[t])!=null?r:t;return e&&de(a.legend_format)&&(o=a.legend_format(o,t!==o?t:void 0)),o}function wp(t,e){if(!e||e.empty())return;const r=[];e.each(function(o){r.push({id:o,node:this})});const a=fc(r,o=>o.id,o=>o.node);t.cache.add(cn.legendItemMap,a)}var Dp={initLegend(){const t=this,{config:e,$el:r}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(r.legend=t.$el.svg.append("g").classed(Ze.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,r){var a;const o=this,{config:s,state:i,scale:l,$el:c}=o,d=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};d.withTransition=$r(d,"withTransition",!0),d.withTransitionForTransform=$r(d,"withTransitionForTransform",!0),s.legend_contents_bindto&&s.legend_contents_template?o.updateLegendTemplate():i.hasTreemap||o.updateLegendElement(t||o.mapToIds(o.data.targets),d,r),(a=c.legend)==null||a.selectAll(`.${Ze.legendItem}`).classed(Ze.legendItemHidden,function(g){const p=!o.isTargetToShow(g);return p&&(this.style.opacity=null),p}),o.updateScales(!1,!l.zoom),o.updateSvgSize(),o.transformAll(d.withTransitionForTransform,r),i.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:r}=t,a=st(e.legend_contents_bindto),o=e.legend_contents_template;if(!a.empty()){const s=t.mapToIds(t.data.targets),i=[];let l="";s.forEach(d=>{const g=de(o)?ra(o.call(t.api,d,t.color(d),t.api.data(d)[0].values)):La(o,{COLOR:t.color(d),TITLE:d});g&&(i.push(d),l+=g)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(i);t.setLegendItem(c),r.legend=a}},updateSizeForLegend(t){const e=this,{config:r,state:{isLegendTop:a,isLegendLeft:o,isLegendRight:s,isLegendInset:i,current:l}}=e,{width:c,height:d}=t,g={top:a?e.getCurrentPaddingByDirection("top")+r.legend_inset_y+5.5:l.height-d-e.getCurrentPaddingByDirection("bottom")-r.legend_inset_y,left:o?e.getCurrentPaddingByDirection("left")+r.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-r.legend_inset_x+.5};e.state.margin3={top:s?0:i?g.top:l.height-d,right:NaN,bottom:0,left:s?l.width-c:i?g.left:0}},transformLegend(t){const e=this,{$el:{legend:r},$T:a}=e;a(r,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 r=this,{legend:a}=r.$el;if(a){const o=r.getLegendItemById(t);o&&st(o).select("line").style("stroke",e)}},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:r,isLegendInset:a,legendItemWidth:o,legendStep:s}=t.state;return t.config.legend_show?r||a?o*(s+1):e:0},getLegendHeight(){var t;const e=this,{current:r,isLegendRight:a,legendItemHeight:o,legendStep:s}=e.state,i=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?r.height:Math.max(i?10:20,o)*(s+1):0},opacityForUnfocusedLegend(t){return t.classed(Ze.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const r=this,{$el:{legend:a},$T:o}=r,s=r.mapToTargetIds(t);a&&o(a.selectAll(`.${Ze.legendItem}`).filter(i=>s.indexOf(i)>=0).classed(qe.legendItemFocused,e)).style("opacity",function(){return e?null:r.opacityForUnfocusedLegend.call(r,st(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:r}=t;e&&r(e.selectAll(`.${Ze.legendItem}`).classed(qe.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:r,$el:a,$T:o}=e;r.legend_show||(r.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),o(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:r,$el:{legend:a}}=e;r.legend_show&&Kn(t)&&(r.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 r=this,{cache:a,state:o}=r;let s;const i=cn.legendItemTextBox;return t&&(s=!o.redrawing&&a.get(i)||{},s[t]||(s[t]=r.getTextRect(e,Ze.legendItem),a.add(i,s)),s=s[t]),s},setLegendItem(t){const e=this,{$el:r,api:a,config:o,state:s}=e,i=s.inputType==="touch",l=e.hasType("gauge"),c=o.boost_useCssRule,d=o.legend_item_interaction;t.attr("class",function(g){const p=st(this);return(!p.empty()&&p.attr("class")||"")+e.generateClass(Ze.legendItem,g)}).style("visibility",g=>e.isLegendToShow(g)?null:"hidden"),o.interaction_enabled&&(c&&[[`.${Ze.legendItem}`,"cursor:pointer"],[`.${Ze.legendItem} text`,"pointer-events:none"],[`.${Ze.legendItemPoint} text`,"pointer-events:none"],[`.${Ze.legendItemTile}`,"pointer-events:none"],[`.${Ze.legendItemEvent}`,"fill-opacity:0"]].forEach(g=>{const[p,y]=g;e.setCssRule(!1,p,[y])(r.legend)}),t.on(d.dblclick?"dblclick":"click",d||de(o.legend_item_onclick)?function(g,p){if(!_e(o.legend_item_onclick,a,p,!s.hiddenTargetIds.includes(p))){const{altKey:y,target:A,type:w}=g;w==="dblclick"||y?s.hiddenTargetIds.length&&A.parentNode.getAttribute("class").indexOf(Ze.legendItemHidden)===-1?a.show():(a.hide(),a.show(p)):(a.toggle(p),st(this).classed(qe.legendItemFocused,!1))}i&&e.hideTooltip()}:null),!i&&t.on("mouseout",d||de(o.legend_item_onout)?function(g,p){_e(o.legend_item_onout,a,p,!s.hiddenTargetIds.includes(p))||(st(this).classed(qe.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${jn.gaugeValue}`),e.api.revert())}:null).on("mouseover",d||de(o.legend_item_onover)?function(g,p){_e(o.legend_item_onover,a,p,!s.hiddenTargetIds.includes(p))||(st(this).classed(qe.legendItemFocused,!0),l&&e.markOverlapped(p,e,`.${jn.gaugeValue}`),!s.transiting&&e.isTargetToShow(p)&&a.focus(p))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer"))),wp(e,t)},getLegendItemById(t){var e;const r=this,a=r.cache.get(cn.legendItemMap);if(a&&a instanceof Map)return a.get(t)||null;const o=(e=r.$el.legend)==null?void 0:e.selectAll(`.${Ze.legendItem}`).filter(s=>s===t);return(o==null?void 0:o.node())||null},updateLegendElement(t,e){const r=this,{config:a,state:o,$el:{legend:s},$T:i}=r,c=a.legend_item_tile_type!=="circle",d=a.legend_item_tile_r,g={width:c?a.legend_item_tile_width:d*2,height:c?a.legend_item_tile_height:d*2},p={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},y={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let A,w,F;const N=t.filter(Q=>!Qe(a.data_names[Q])||a.data_names[Q]!==null),D=e.withTransition,K=r.getUpdateLegendPositions(N,p,y);o.isLegendInset&&(p.step=a.legend_inset_step?a.legend_inset_step:N.length,r.updateLegendStep(p.step)),o.isLegendRight?(A=Q=>p.max.width*y.steps[Q],w=Q=>y.margins[y.steps[Q]]+y.offsets[Q]):o.isLegendInset?(A=Q=>p.max.width*y.steps[Q]+10,w=Q=>y.margins[y.steps[Q]]+y.offsets[Q]):(A=Q=>y.margins[y.steps[Q]]+y.offsets[Q],w=Q=>p.max.height*y.steps[Q]);const J={xText:(Q,ot)=>A(Q,ot)+4+g.width,xRect:(Q,ot)=>A(Q,ot),x1Tile:(Q,ot)=>A(Q,ot)-2,x2Tile:(Q,ot)=>A(Q,ot)-2+g.width,yText:(Q,ot)=>w(Q,ot)+9,yRect:(Q,ot)=>w(Q,ot)-5,yTile:(Q,ot)=>w(Q,ot)+4};r.generateLegendItem(N,g,K,J),F=s.select(`.${Ze.legendBackground} rect`),o.isLegendInset&&p.max.width>0&&F.size()===0&&(F=s.insert("g",`.${Ze.legendItem}`).attr("class",Ze.legendBackground).append("rect")),a.legend_tooltip&&s.selectAll("title").data(N).text(Q=>Qs.bind(r)(Q,!1));const W=s.selectAll("text").data(N).text(Q=>Qs.bind(r)(Q)).each(function(Q,ot){K(this,Q,ot)});i(W,D).attr("x",J.xText).attr("y",J.yText);const rt=s.selectAll(`rect.${Ze.legendItemEvent}`).data(N);i(rt,D).attr("width",Q=>y.widths[Q]).attr("height",Q=>y.heights[Q]).attr("x",J.xRect).attr("y",J.yRect),r.updateLegendItemPos(N,D,J),F&&i(F,D).attr("height",r.getLegendHeight()-12).attr("width",p.max.width*(p.step+1)+10),r.updateLegendItemWidth(p.max.width),r.updateLegendItemHeight(p.max.height),r.updateLegendStep(p.step)},getUpdateLegendPositions(t,e,r){const a=this,{config:o,state:s}=a,i=s.isLegendRight||s.isLegendInset;return function(l,c,d){const g=d===0,p=d===t.length-1,y=a.getLegendItemTextBox(c,l),A=y.width+e.tileWidth+(p&&!i?0:e.padding.right)+o.legend_padding,w=y.height+e.padding.top,F=i?w:A,N=i?a.getLegendHeight():a.getLegendWidth();let D;const K=function(W,rt){rt||(D=(N-e.totalLength-F)/2,D<e.posMin&&(D=(N-F)/2,e.totalLength=0,e.step++)),r.steps[W]=e.step,r.margins[e.step]=s.isLegendInset?10:D,r.offsets[W]=e.totalLength,e.totalLength+=F};if(g&&(e.totalLength=0,e.step=0,e.max.width=0,e.max.height=0),o.legend_show&&!a.isLegendToShow(c)){r.widths[c]=0,r.heights[c]=0,r.steps[c]=0,r.offsets[c]=0;return}r.widths[c]=A,r.heights[c]=w,(!e.max.width||A>=e.max.width)&&(e.max.width=A),(!e.max.height||w>=e.max.height)&&(e.max.height=w);const J=i?e.max.height:e.max.width;o.legend_equally?(Object.keys(r.widths).forEach(W=>r.widths[W]=e.max.width),Object.keys(r.heights).forEach(W=>r.heights[W]=e.max.height),D=(N-J*t.length)/2,D<e.posMin?(e.totalLength=0,e.step=0,t.forEach(W=>K(W))):K(c,!0)):K(c)}},generateLegendItem(t,e,r,a){const o=this,{config:s,state:i,$el:{legend:l}}=o,c=s.legend_usePoint,d=s.legend_item_tile_r,g=s.legend_item_tile_type,p=g!=="circle",y=i.isLegendRight||i.isLegendInset,A=-200,w=l.selectAll(`.${Ze.legendItem}`).data(t).enter().append("g");if(o.setLegendItem(w),s.legend_tooltip&&w.append("title").text(F=>F),w.append("text").text(F=>Qs.bind(o)(F)).each(function(F,N){r(this,F,N)}).style("pointer-events",o.getStylePropValue("none")).attr("x",y?a.xText:A).attr("y",y?A:a.yText),w.append("rect").attr("class",Ze.legendItemEvent).style("fill-opacity",o.getStylePropValue("0")).attr("x",y?a.xRect:A).attr("y",y?A:a.yRect),c){const F=[],N=o.getValidPointPattern();w.append(D=>{F.indexOf(D)===-1&&F.push(D);let K=N[F.indexOf(D)%N.length];return K==="rectangle"&&(K="rect"),mn.createElementNS(Gt.svg,"hasValidPointType"in o&&o.hasValidPointType(K)?K:"use")}).attr("class",Ze.legendItemPoint).style("fill",Po.bind(o)).style("pointer-events",o.getStylePropValue("none")).attr("href",(D,K,J)=>{const rt=J[K].nodeName.toLowerCase(),Q=o.getTargetSelectorSuffix(D);return rt==="use"?`#${i.datetimeId}-point${Q}`:void 0})}else w.append(p?"line":g).attr("class",Ze.legendItemTile).style("stroke",Po.bind(o)).style("pointer-events",o.getStylePropValue("none")).call(F=>{g==="circle"?F.attr("r",d).style("fill",Po.bind(o)).attr("cx",y?a.x2Tile:A).attr("cy",y?A:a.yTile):p&&F.attr("stroke-width",e.height).attr("x1",y?a.x1Tile:A).attr("y1",y?A:a.yTile).attr("x2",y?a.x2Tile:A).attr("y2",y?A:a.yTile)})},updateLegendItemPos(t,e,r){const a=this,{config:o,$el:{legend:s},$T:i}=a,l=o.legend_usePoint,c=o.legend_item_tile_type,d=c!=="circle";if(l){const g=s.selectAll(`.${Ze.legendItemPoint}`).data(t);i(g,e).each(function(){const p=this.nodeName.toLowerCase(),y=o.point_r;let A="x",w="y",F=2,N=2.5,D=null,K=null,J=null;if(p==="circle"){const W=y*.2;A="cx",w="cy",D=y+W,F=y*2,N=-W}else if(p==="rect"){const W=y*2.5;K=W,J=W,N=3}st(this).attr(A,W=>r.x1Tile(W)+F).attr(w,W=>r.yTile(W)-N).attr("r",D).attr("width",K).attr("height",J)})}else{const g=s.selectAll(`.${Ze.legendItemTile}`).data(t);i(g,e).style("stroke",Po.bind(a)).call(p=>{c==="circle"?p.attr("cx",y=>{const A=r.x2Tile(y);return A-(A-r.x1Tile(y))/2}).attr("cy",r.yTile):d&&p.attr("x1",r.x1Tile).attr("y1",r.yTile).attr("x2",r.x2Tile).attr("y2",r.yTile)})}}},Np={redraw(t={}){var e,r,a,o;const s=this,{config:i,state:l,$el:c}=s,{main:d,treemap:g}=c;l.redrawing=!0;const p=s.filterTargetsToShow(s.data.targets),{flow:y,initializing:A}=t,w=s.getWithOption(t),F=w.Transition?i.transition_duration:0,N=w.TransitionForExit?F:0,D=w.TransitionForAxis?F:0,K=(e=s.axis)==null?void 0:e.generateTransitions(D);s.updateSizes(A),w.Legend&&i.legend_show?(t.withTransition=!!F,!g&&s.updateLegend(s.mapToIds(s.data.targets),t,K)):w.Dimension&&s.updateDimension(!0),i.data_empty_label_text&&d.select(`text.${pn.text}.${Ee.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(i.data_empty_label_text).style("display",p.length?"none":null),l.hasAxis?(s.axis.redrawAxis(p,w,K,y,A),s.hasGrid()&&s.updateGrid(),i.regions.length&&s.updateRegion(),["bar","candlestick","line","area"].forEach(J=>{const W=bn(J);(/^(line|area)$/.test(J)&&s.hasTypeOf(W)||s.hasType(J))&&s[`update${W}`](w.TransitionForExit)}),c.text&&d.selectAll(`.${tn.selectedCircles}`).filter(s.isBarType.bind(s)).selectAll("circle").remove(),i.interaction_enabled&&!y&&w.EventRect&&(s.redrawEventRect(),(r=s.bindZoomEvent)==null||r.call(s))):(c.arcs&&s.redrawArc(F,N,w.Transform),c.radar&&s.redrawRadar(),c.polar&&s.redrawPolar(),c.funnel&&s.redrawFunnel(),g&&s.updateTreemap(N)),!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(),(o=s.redrawTitle)==null||o.call(s),A&&s.updateTypesElements(),s.generateRedrawList(p,y,F,w.Subchart),s.updateTooltipOnRedraw(),s.callPluginHook("$redraw",t,F)},generateRedrawList(t,e,r,a){const o=this,{config:s,state:i}=o,l=o.getDrawShape();i.hasAxis&&s.subchart_show&&o.redrawSubchart(a,r,l);const c=e&&o.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:o.xv.bind(o)}),d=(r||c)&&Fa(),g=o.getRedrawList(l,e,c,d),p=()=>{c&&c(),i.redrawing=!1,_e(s.onrendered,o.api)};if(p)if(d&&g.length){const y=pc();Bl().duration(r).each(()=>{g.reduce((A,w)=>A.concat(w),[]).forEach(A=>y.add(A))}).call(y,p)}else i.transiting||p();o.mapToIds(o.data.targets).forEach(y=>{i.withoutFadeIn[y]=!0})},getRedrawList(t,e,r,a){const o=this,{config:s,state:{hasAxis:i,hasRadar:l,hasTreemap:c},$el:{grid:d}}=o,{cx:g,cy:p,xForText:y,yForText:A}=t.pos,w=[];return i&&((s.grid_x_lines.length||s.grid_y_lines.length)&&w.push(o.redrawGrid(a)),s.regions.length&&w.push(o.redrawRegion(a)),Object.keys(t.type).forEach(F=>{const N=bn(F),D=t.type[F];(/^(area|line)$/.test(F)&&o.hasTypeOf(N)||o.hasType(F))&&w.push(o[`redraw${N}`](D,a))}),!e&&d.main&&w.push(o.updateGridFocus())),(!o.hasArcType()||l)&&dn(s.data_labels)&&s.data_labels!==!1&&w.push(o.redrawText(y,A,e,a)),(o.hasPointType()||l)&&!o.isPointFocusOnly()&&o.redrawCircle&&w.push(o.redrawCircle(g,p,a,r)),c&&w.push(o.redrawTreemap(a)),w},updateAndRedraw(t={}){const e=this,{config:r,state:a}=e;let o;t.withTransition=$r(t,"withTransition",!0),t.withTransform=$r(t,"withTransform",!1),t.withLegend=$r(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=$r(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(a.hasAxis&&(o=e.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,o)),e.redraw(t,o)}};const Lp=Math.sqrt(50),Fp=Math.sqrt(10),Bp=Math.sqrt(2);function Mo(t,e,r){const a=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(a)),s=a/Math.pow(10,o),i=s>=Lp?10:s>=Fp?5:s>=Bp?2:1;let l,c,d;return o<0?(d=Math.pow(10,-o)/i,l=Math.round(t*d),c=Math.round(e*d),l/d<t&&++l,c/d>e&&--c,d=-d):(d=Math.pow(10,o)*i,l=Math.round(t/d),c=Math.round(e/d),l*d<t&&++l,c*d>e&&--c),c<l&&.5<=r&&r<2?Mo(t,e,r*2):[l,c,d]}function ks(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];const a=e<t,[o,s,i]=a?Mo(e,t,r):Mo(t,e,r);if(!(s>=o))return[];const l=s-o+1,c=new Array(l);if(a)if(i<0)for(let d=0;d<l;++d)c[d]=(s-d)/-i;else for(let d=0;d<l;++d)c[d]=(s-d)*i;else if(i<0)for(let d=0;d<l;++d)c[d]=(o+d)/-i;else for(let d=0;d<l;++d)c[d]=(o+d)*i;return c}function qs(t,e,r){return e=+e,t=+t,r=+r,Mo(t,e,r)[2]}function _s(t,e,r){e=+e,t=+t,r=+r;const a=e<t,o=a?qs(e,t,r):qs(t,e,r);return(a?-1:1)*(o<0?1/-o:o)}function wo(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Up(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ti(t){let e,r,a;t.length!==2?(e=wo,r=(l,c)=>wo(t(l),c),a=(l,c)=>t(l)-c):(e=t===wo||t===Up?t:zp,r=t,a=t);function o(l,c,d=0,g=l.length){if(d<g){if(e(c,c)!==0)return g;do{const p=d+g>>>1;r(l[p],c)<0?d=p+1:g=p}while(d<g)}return d}function s(l,c,d=0,g=l.length){if(d<g){if(e(c,c)!==0)return g;do{const p=d+g>>>1;r(l[p],c)<=0?d=p+1:g=p}while(d<g)}return d}function i(l,c,d=0,g=l.length){const p=o(l,c,d,g-1);return p>d&&a(l[p-1],c)>-a(l[p],c)?p-1:p}return{left:o,center:i,right:s}}function zp(){return 0}function jp(t){return t===null?NaN:+t}function*mT(t,e){if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let a of t)(a=e(a,++r,t))!=null&&(a=+a)>=a&&(yield a)}}const Dc=ti(wo),Gp=Dc.right,yT=Dc.left,xT=ti(jp).center;var Vp=Gp;function Xp(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Hp(t){return function(){return t}}function Wp(t){return+t}var Nc=[0,1];function la(t){return t}function ei(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:Hp(isNaN(e)?NaN:.5)}function Yp(t,e){var r;return t>e&&(r=t,t=e,e=r),function(a){return Math.max(t,Math.min(e,a))}}function Kp(t,e,r){var a=t[0],o=t[1],s=e[0],i=e[1];return o<a?(a=ei(o,a),s=r(i,s)):(a=ei(a,o),s=r(s,i)),function(l){return s(a(l))}}function Zp(t,e,r){var a=Math.min(t.length,e.length)-1,o=new Array(a),s=new Array(a),i=-1;for(t[a]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++i<a;)o[i]=ei(t[i],t[i+1]),s[i]=r(e[i],e[i+1]);return function(l){var c=Vp(t,l,1,a)-1;return s[c](o[c](l))}}function Do(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ni(){var t=Nc,e=Nc,r=qr,a,o,s,i=la,l,c,d;function g(){var y=Math.min(t.length,e.length);return i!==la&&(i=Yp(t[0],t[y-1])),l=y>2?Zp:Kp,c=d=null,p}function p(y){return y==null||isNaN(y=+y)?s:(c||(c=l(t.map(a),e,r)))(a(i(y)))}return p.invert=function(y){return i(o((d||(d=l(e,t.map(a),_n)))(y)))},p.domain=function(y){return arguments.length?(t=Array.from(y,Wp),g()):t.slice()},p.range=function(y){return arguments.length?(e=Array.from(y),g()):e.slice()},p.rangeRound=function(y){return e=Array.from(y),r=Xp,g()},p.clamp=function(y){return arguments.length?(i=y?!0:la,g()):i!==la},p.interpolate=function(y){return arguments.length?(r=y,g()):r},p.unknown=function(y){return arguments.length?(s=y,p):s},function(y,A){return a=y,o=A,g()}}function Lc(){return ni()(la,la)}var Jp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ua(t){if(!(e=Jp.exec(t)))throw new Error("invalid format: "+t);var e;return new ri({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]})}Ua.prototype=ri.prototype;function ri(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+""}ri.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 Qp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function No(t,e){if(!isFinite(t)||t===0)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),a=t.slice(0,r);return[a.length>1?a[0]+a.slice(2):a,+t.slice(r+1)]}function ca(t){return t=No(Math.abs(t)),t?t[1]:NaN}function kp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ca(e)/3)))*3-ca(Math.abs(t)))}function qp(t,e){return function(r,a){for(var o=r.length,s=[],i=0,l=t[0],c=0;o>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),s.push(r.substring(o-=l,o+l)),!((c+=l+1)>a));)l=t[i=(i+1)%t.length];return s.reverse().join(e)}}function _p(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}function tm(t){t:for(var e=t.length,r=1,a=-1,o;r<e;++r)switch(t[r]){case".":a=o=r;break;case"0":a===0&&(a=r),o=r;break;default:if(!+t[r])break t;a>0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(o+1):t}var Lo;function em(t,e){var r=No(t,e);if(!r)return Lo=void 0,t.toPrecision(e);var a=r[0],o=r[1],s=o-(Lo=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,i=a.length;return s===i?a:s>i?a+new Array(s-i+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+No(t,Math.max(0,e+s-1))[0]}function Fc(t,e){var r=No(t,e);if(!r)return t+"";var a=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+new Array(o-a.length+2).join("0")}var Bc={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Qp,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)=>Fc(t*100,e),r:Fc,s:em,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Uc(t){return t}var zc=Array.prototype.map,jc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function nm(t){var e=t.grouping===void 0||t.thousands===void 0?Uc:qp(zc.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",o=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Uc:_p(zc.call(t.numerals,String)),i=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function d(p,y){p=Ua(p);var A=p.fill,w=p.align,F=p.sign,N=p.symbol,D=p.zero,K=p.width,J=p.comma,W=p.precision,rt=p.trim,Q=p.type;Q==="n"?(J=!0,Q="g"):Bc[Q]||(W===void 0&&(W=12),rt=!0,Q="g"),(D||A==="0"&&w==="=")&&(D=!0,A="0",w="=");var ot=(y&&y.prefix!==void 0?y.prefix:"")+(N==="$"?r:N==="#"&&/[boxX]/.test(Q)?"0"+Q.toLowerCase():""),vt=(N==="$"?a:/[%p]/.test(Q)?i:"")+(y&&y.suffix!==void 0?y.suffix:""),$t=Bc[Q],Tt=/[defgprs%]/.test(Q);W=W===void 0?6:/[gprs]/.test(Q)?Math.max(1,Math.min(21,W)):Math.max(0,Math.min(20,W));function yt(Rt){var xt=ot,q=vt,Et,dt,bt;if(Q==="c")q=$t(Rt)+q,Rt="";else{Rt=+Rt;var kt=Rt<0||1/Rt<0;if(Rt=isNaN(Rt)?c:$t(Math.abs(Rt),W),rt&&(Rt=tm(Rt)),kt&&+Rt==0&&F!=="+"&&(kt=!1),xt=(kt?F==="("?F:l:F==="-"||F==="("?"":F)+xt,q=(Q==="s"&&!isNaN(Rt)&&Lo!==void 0?jc[8+Lo/3]:"")+q+(kt&&F==="("?")":""),Tt){for(Et=-1,dt=Rt.length;++Et<dt;)if(bt=Rt.charCodeAt(Et),48>bt||bt>57){q=(bt===46?o+Rt.slice(Et+1):Rt.slice(Et))+q,Rt=Rt.slice(0,Et);break}}}J&&!D&&(Rt=e(Rt,1/0));var Ht=xt.length+Rt.length+q.length,Kt=Ht<K?new Array(K-Ht+1).join(A):"";switch(J&&D&&(Rt=e(Kt+Rt,Kt.length?K-q.length:1/0),Kt=""),w){case"<":Rt=xt+Rt+q+Kt;break;case"=":Rt=xt+Kt+Rt+q;break;case"^":Rt=Kt.slice(0,Ht=Kt.length>>1)+xt+Rt+q+Kt.slice(Ht);break;default:Rt=Kt+xt+Rt+q;break}return s(Rt)}return yt.toString=function(){return p+""},yt}function g(p,y){var A=Math.max(-8,Math.min(8,Math.floor(ca(y)/3)))*3,w=Math.pow(10,-A),F=d((p=Ua(p),p.type="f",p),{suffix:jc[8+A/3]});return function(N){return F(w*N)}}return{format:d,formatPrefix:g}}var Fo,ai,Gc;rm({thousands:",",grouping:[3],currency:["$",""]});function rm(t){return Fo=nm(t),ai=Fo.format,Gc=Fo.formatPrefix,Fo}function am(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ca(e)-ca(t))+1}function om(t){return Math.max(0,-ca(Math.abs(t)))}function sm(t,e,r,a){var o=_s(t,e,r),s;switch(a=Ua(a==null?",f":a),a.type){case"s":{var i=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(s=kp(o,i))&&(a.precision=s),Gc(a,i)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=am(o,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=om(o))&&(a.precision=s-(a.type==="%")*2);break}}return ai(a)}function Vc(t){var e=t.domain;return t.ticks=function(r){var a=e();return ks(a[0],a[a.length-1],r==null?10:r)},t.tickFormat=function(r,a){var o=e();return sm(o[0],o[o.length-1],r==null?10:r,a)},t.nice=function(r){r==null&&(r=10);var a=e(),o=0,s=a.length-1,i=a[o],l=a[s],c,d,g=10;for(l<i&&(d=i,i=l,l=d,d=o,o=s,s=d);g-- >0;){if(d=qs(i,l,r),d===c)return a[o]=i,a[s]=l,e(a);if(d>0)i=Math.floor(i/d)*d,l=Math.ceil(l/d)*d;else if(d<0)i=Math.ceil(i*d)/d,l=Math.floor(l*d)/d;else break;c=d}return t},t}function Bo(){var t=Lc();return t.copy=function(){return Do(t,Bo())},ia.apply(t,arguments),Vc(t)}function Xc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Hc(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function im(t){var e=1,r=t(Xc(e),Hc(e));return r.constant=function(a){return arguments.length?t(Xc(e=+a),Hc(e)):e},Vc(r)}function Wc(){var t=im(ni());return t.copy=function(){return Do(t,Wc()).constant(t.constant())},ia.apply(t,arguments)}function Yc(t,e){t=t.slice();var r=0,a=t.length-1,o=t[r],s=t[a],i;return s<o&&(i=r,r=a,a=i,i=o,o=s,s=i),t[r]=e.floor(o),t[a]=e.ceil(s),t}function Kc(t){return Math.log(t)}function Zc(t){return Math.exp(t)}function lm(t){return-Math.log(-t)}function cm(t){return-Math.exp(-t)}function um(t){return isFinite(t)?+("1e"+t):t<0?0:t}function fm(t){return t===10?um:t===Math.E?Math.exp:e=>Math.pow(t,e)}function dm(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 Jc(t){return(e,r)=>-t(-e,r)}function hm(t){const e=t(Kc,Zc),r=e.domain;let a=10,o,s;function i(){return o=dm(a),s=fm(a),r()[0]<0?(o=Jc(o),s=Jc(s),t(lm,cm)):t(Kc,Zc),e}return e.base=function(l){return arguments.length?(a=+l,i()):a},e.domain=function(l){return arguments.length?(r(l),i()):r()},e.ticks=l=>{const c=r();let d=c[0],g=c[c.length-1];const p=g<d;p&&([d,g]=[g,d]);let y=o(d),A=o(g),w,F;const N=l==null?10:+l;let D=[];if(!(a%1)&&A-y<N){if(y=Math.floor(y),A=Math.ceil(A),d>0){for(;y<=A;++y)for(w=1;w<a;++w)if(F=y<0?w/s(-y):w*s(y),!(F<d)){if(F>g)break;D.push(F)}}else for(;y<=A;++y)for(w=a-1;w>=1;--w)if(F=y>0?w/s(-y):w*s(y),!(F<d)){if(F>g)break;D.push(F)}D.length*2<N&&(D=ks(d,g,N))}else D=ks(y,A,Math.min(A-y,N)).map(s);return p?D.reverse():D},e.tickFormat=(l,c)=>{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=Ua(c)).precision==null&&(c.trim=!0),c=ai(c)),l===1/0)return c;const d=Math.max(1,a*l/e.ticks().length);return g=>{let p=g/s(Math.round(o(g)));return p*a<a-.5&&(p*=a),p<=d?c(g):""}},e.nice=()=>r(Yc(r(),{floor:l=>s(Math.floor(o(l))),ceil:l=>s(Math.ceil(o(l)))})),e}function Qc(){const t=hm(ni()).domain([1,10]);return t.copy=()=>Do(t,Qc()).base(t.base()),ia.apply(t,arguments),t}const Uo=en(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Uo.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?en(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Uo);const TT=Uo.range,jr=en(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Wn)},(t,e)=>(e-t)/Wn,t=>t.getUTCSeconds()),ST=jr.range,oi=en(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Wn)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getMinutes()),$T=oi.range,si=en(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getUTCMinutes()),AT=si.range,ii=en(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Wn-t.getMinutes()*Mn)},(t,e)=>{t.setTime(+t+e*Un)},(t,e)=>(e-t)/Un,t=>t.getHours()),ET=ii.range,li=en(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Un)},(t,e)=>(e-t)/Un,t=>t.getUTCHours()),IT=li.range,ci=en(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()),RT=ci.range,ui=en(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()),bT=ui.range;function kc(t,e,r,a,o,s){const i=[[jr,1,Wn],[jr,5,5*Wn],[jr,15,15*Wn],[jr,30,30*Wn],[s,1,Mn],[s,5,5*Mn],[s,15,15*Mn],[s,30,30*Mn],[o,1,Un],[o,3,3*Un],[o,6,6*Un],[o,12,12*Un],[a,1,lr],[a,2,2*lr],[r,1,os],[e,1,Li],[e,3,3*Li],[t,1,ss]];function l(d,g,p){const y=g<d;y&&([d,g]=[g,d]);const A=p&&typeof p.range=="function"?p:c(d,g,p),w=A?A.range(d,+g+1):[];return y?w.reverse():w}function c(d,g,p){const y=Math.abs(g-d)/p,A=ti(([,,N])=>N).right(i,y);if(A===i.length)return t.every(_s(d/ss,g/ss,p));if(A===0)return Uo.every(Math.max(_s(d,g,p),1));const[w,F]=i[y/i[A-1][2]<i[A][2]/y?A-1:A];return w.every(F)}return[l,c]}const[vm,gm]=kc(ur,ui,to,Fi,li,si),[pm,mm]=kc(cr,ci,qa,Ta,ii,oi);function ym(t){return new Date(t)}function xm(t){return t instanceof Date?+t:+new Date(+t)}function fi(t,e,r,a,o,s,i,l,c,d){var g=Lc(),p=g.invert,y=g.domain,A=d(".%L"),w=d(":%S"),F=d("%I:%M"),N=d("%I %p"),D=d("%a %d"),K=d("%b %d"),J=d("%B"),W=d("%Y");function rt(Q){return(c(Q)<Q?A:l(Q)<Q?w:i(Q)<Q?F:s(Q)<Q?N:a(Q)<Q?o(Q)<Q?D:K:r(Q)<Q?J:W)(Q)}return g.invert=function(Q){return new Date(p(Q))},g.domain=function(Q){return arguments.length?y(Array.from(Q,xm)):y().map(ym)},g.ticks=function(Q){var ot=y();return t(ot[0],ot[ot.length-1],Q==null?10:Q)},g.tickFormat=function(Q,ot){return ot==null?rt:d(ot)},g.nice=function(Q){var ot=y();return(!Q||typeof Q.range!="function")&&(Q=e(ot[0],ot[ot.length-1],Q==null?10:Q)),Q?y(Yc(ot,Q)):g},g.copy=function(){return Do(g,fi(t,e,r,a,o,s,i,l,c,d))},g}function Tm(){return ia.apply(fi(pm,mm,cr,ci,qa,Ta,ii,oi,jr,cs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sm(){return ia.apply(fi(vm,gm,ur,ui,to,no,li,si,jr,us).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gr(t="linear",e,r){const a={linear:Bo,log:Wc,_log:Qc,time:Tm,utc:Sm}[t]();return a.type=t,/_?log/.test(t)&&a.clamp(!0),a.range([e!=null?e:0,r!=null?r:1])}var $m={getXScale(t,e,r,a){const o=this,s=o.state.loading!=="append"&&o.scale.zoom||Gr(o.axis.getAxisType("x"),t,e);return o.getCustomizedXScale(r?s.domain(r):s,a)},getYScale(t,e,r,a){const s=Gr(this.axis.getAxisType(t),e,r);return a&&s.domain(a),s},getYScaleById(t,e=!1){var r;const a=((r=this.axis)==null?void 0:r.getId(t))==="y2",o=e?a?"subY2":"subY":a?"y2":"y";return this.scale[o]},getCustomizedXScale(t,e){const r=this,a=e||(()=>r.axis.x.tickOffset()),o=r.config.axis_x_inverted,s=function(i){return t(i)+a()};for(const i in t)s[i]=t[i];return s.orgDomain=()=>t.domain(),s.orgScale=()=>t,r.axis.isCategorized()&&(s.domain=function(i){let l=i;return arguments.length?(t.domain(l),s):(l=this.orgDomain(),o?[l[0]+1,l[1]]:[l[0],l[1]+1])}),s},updateScales(t,e=!0){var r,a;const o=this,{axis:s,config:i,format:l,org:c,scale:d,state:{current:g,width:p,height:y,width2:A,height2:w,hasAxis:F,hasTreemap:N}}=o;if(F){const D=i.axis_rotated,K=o.getResettedPadding(1),J={x:D?K:0,y:D?0:y,subX:D?1:0,subY:D?0:w},W={x:D?y:p,y:D?p:K,subX:D?y:p,subY:D?A:1},rt=e&&((r=d.x)==null?void 0:r.orgDomain()),Q=e&&c.xDomain;d.x=o.getXScale(J.x,W.x,rt,()=>s.x.tickOffset()),d.subX=o.getXScale(J.x,W.x,Q,ot=>{var vt;return ot%1?0:((vt=s.subX)!=null?vt:s.x).tickOffset()}),l.xAxisTick=s.getXAxisTickFormat(),l.subXAxisTick=s.getXAxisTickFormat(!0),s.setAxis("x",d.x,i.axis_x_tick_outer,t),i.subchart_show&&s.setAxis("subX",d.subX,i.axis_x_tick_outer,t),d.y=o.getYScale("y",J.y,W.y,d.y?d.y.domain():i.axis_y_default),d.subY=o.getYScale("y",J.subY,W.subY,d.subY?d.subY.domain():i.axis_y_default),s.setAxis("y",d.y,i.axis_y_tick_outer,t),i.axis_y2_show&&(d.y2=o.getYScale("y2",J.y,W.y,d.y2?d.y2.domain():i.axis_y2_default),d.subY2=o.getYScale("y2",J.subY,W.subY,d.subY2?d.subY2.domain():i.axis_y2_default),s.setAxis("y2",d.y2,i.axis_y2_tick_outer,t))}else if(N){const D=o.getCurrentPadding();d.x=Bo().rangeRound([D.left,g.width-D.right]),d.y=Bo().rangeRound([D.top,g.height-D.bottom])}else(a=o.updateArc)==null||a.call(o)},xx(t){const e=this,{config:r,scale:{x:a,zoom:o}}=e,s=r.zoom_enabled&&o?o:a;return t?s(Ne(t.x)?t.x:t):null},xv(t){const e=this,{axis:r,config:a,scale:{x:o,zoom:s}}=e,i=a.zoom_enabled&&s?s:o;let l=e.getBaseValue(t);return r.isTimeSeries()?l=Jn.call(e,l):r.isCategorized()&&je(l)&&(l=a.axis_x_categories.indexOf(l)),i(l)},yv(t){const e=this,{scale:{y:r,y2:a}}=e;return(t.axis&&t.axis==="y2"?a:r)(e.getBaseValue(t))},subxx(t){return t?this.scale.subX(t.x):null}},Am={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,r=e.size_height||t.getParentHeight();return r>0?r:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${bn(t)}`;let r=this.$el.chart.node(),a=0;for(;a<30&&r&&r.tagName!=="BODY";){try{a=Sn(r,!0)[t]}catch(s){e in r&&(a=r[e])}r=r.parentNode}const o=mn.body[e];return a>o&&(a=o),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:r,state:{hasAxis:a},$el:o}=e,s=r.axis_rotated,i=s||!s&&!r.axis_y_inner,l=s?gn.axisX:gn.axisY,c=o.main.select(`.${l}`).node(),d=a&&r[`axis_${s?"x":"y"}_label`];let g=0;if(a&&(je(d)||je(d.text)||/^inner-/.test(d==null?void 0:d.position))){const F=o.main.select(`.${l}-label`);F.empty()||(g=Sn(F.node()).left)}const p=c&&i?Sn(c,!t):{right:0},y=Sn(o.chart.node(),!t).left+g,A=e.hasArcType(),w=p.right-y-(A?0:e.getCurrentPaddingByDirection("left",t));return w>0?w:0},updateDimension(t){var e;const r=this,{config:a,state:{hasAxis:o},$el:s}=r;o&&!t&&r.axis.x&&a.axis_rotated&&((e=r.axis.subX)==null||e.create(s.axis.subX)),r.updateScales(t),r.updateSvgSize(),r.transformAll(!1)},updateSvgSize(){const t=this,{config:e,state:{clip:r,current:a,hasAxis:o,width:s,height:i},$el:{svg:l}}=t;if(e.resize_auto==="viewBox"?l.attr("viewBox",`0 0 ${a.width} ${a.height}`):l.attr("width",a.width).attr("height",a.height),o){const c=l.select(`.${nl.brush} .overlay`),d={width:0,height:0};c.size()&&(d.width=+c.attr("width"),d.height=+c.attr("height")),l.selectAll([`#${r.id}`,`#${r.idGrid}`]).select("rect").attr("width",s).attr("height",i),l.select(`#${r.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),l.select(`#${r.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),r.idSubchart&&l.select(`#${r.idSubchart}`).select("rect").attr("width",s).attr("height",d.height)}},getCurrentPaddingByDirection(t,e=!1,r=!1){var a;const o=this,{config:s,$el:i,state:{hasAxis:l}}=o,c=s.axis_rotated,d=((a=s.padding)==null?void 0:a.mode)==="fit",g=ye(s[`padding_${t}`])?s[`padding_${t}`]:void 0,p=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,y=/^(left|right)$/.test(t),A=p&&s[`axis_${p}_inner`],w=p&&s[`axis_${p}_show`],F=p?s[`axis_${p}_axes`].length:0;let N=p?y?o.getAxisWidthByAxisId(p,e):o.getHorizontalAxisHeight(p):0;const D=20;let K=0;!d&&y&&(N=Pg(N));let J=l&&y&&(A||ln(g)&&!w)?0:d?(w?N:0)+(g!=null?g:0):ln(g)?N:g;return y&&l?(p&&(d||A)&&s[`axis_${p}_label`].text&&(J+=o.axis.getAxisLabelPosition(p).isOuter?D:0),t==="right"?(J+=c?!d&&ln(g)?10:2:!w||A?d?2:1:0,J+=r?o.axis.getXAxisTickTextY2Overflow(D):0):t==="left"&&c&&ln(g)&&(J=s.axis_x_show?d?N:Math.max(N,40):1)):t==="top"?(i.title&&i.title.node()&&(J+=o.getTitlePadding()),K=c&&!A?F:0):t==="bottom"&&l&&c&&!w&&(J+=1),J+N*F-K},getCurrentPadding(t=!1){const e=this,[r,a,o,s]=["top","bottom","left","right"].map(i=>e.getCurrentPaddingByDirection(i,null,t));return{top:r,bottom:a,left:o,right:s}},getResettedPadding(t){const e=this,{config:r}=e,a=ye(t);let o=a?0:{};return r.padding===!1?!a&&Object.keys(t).forEach(s=>{o[s]=!Kn(r.data_labels)&&r.data_labels!==!1&&s==="top"?t[s]:0}):o=t,o},updateSizes(t){var e,r,a,o,s;const i=this,{config:l,state:c,$el:{legend:d}}=i,g=l.axis_rotated,p=i.hasArcType()||c.hasFunnel||c.hasTreemap,y=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&i.setContainerSize();const A={width:d?i.getLegendWidth():0,height:d?i.getLegendHeight():0};!p&&l.axis_x_show&&l.axis_x_tick_autorotate&&i.updateXAxisTickClip();const w={right:l.legend_show&&c.isLegendRight?i.getLegendWidth()+(y?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:A.height},F=g||p?0:i.getHorizontalAxisHeight("x"),N=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?F:30,D=l.subchart_show&&!p?l.subchart_size_height+N:0,K=i.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,J=i.getCurrentPadding(!0);if(c.margin=!p&&g?{top:J.top,right:p?0:J.right+w.right,bottom:w.bottom+J.bottom,left:D+(p?0:J.left)}:{top:(y?0:4)+J.top,right:p?0:J.right+w.right,bottom:K+D+w.bottom+J.bottom,left:p?0:J.left},c.margin=i.getResettedPadding(c.margin),c.margin2=g?{top:c.margin.top,right:NaN,bottom:20+w.bottom,left:i.state.rotatedPadding.left}:{top:c.current.height-D-w.bottom,right:NaN,bottom:N+w.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(r=i.updateSizeForLegend)==null||r.call(i,A),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),i.hasArcType()){const W=i.hasType("gauge"),rt=l.legend_show&&c.isLegendRight,Q=(a=c.hasRadar&&i.cache.get(cn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(rt?A.width+10:0)-Q,c.arcHeight=c.height-(rt&&!W?0:10),(o=l.arc_rangeText_values)!=null&&o.length&&(W?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),W&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-i.getPaddingBottomForGauge()),(s=i.updateRadius)==null||s.call(i)}c.isLegendRight&&p&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},Em={setCssRule(t,e,r,a){const o=this,{config:s,state:{cssRule:i,style:l}}=o;return s.boost_useCssRule?c=>{c.each(d=>{const g=a&&(a==null?void 0:a.call(o,d)),p=`${t?`.${sn.shapes+o.getTargetSelectorSuffix(d.id)}`:""}${e}`;e in i&&l.sheet.deleteRule(i[p]),o.state.cssRule[p]=Lg(l,p,r.filter(Boolean).map(y=>je(g)&&y.indexOf(":")===-1?`${y}: ${g}`:y||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:de(t)?t.bind(this):t}};function qc(t){return typeof t=="string"?new Pe([document.querySelectorAll(t)],[document.documentElement]):new Pe([T(t)],oe)}function Im(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Rm(t,e,r,a,o){var s;const i=this,{value:l}=t,c=i.isCandlestickType(t),d=ye(l)&&l<0||c&&!((s=i.getCandlestickData(t))!=null&&s._isUp);let{x:g,y:p}=e;const y=4,A=y*2;return a?r==="start"?(g+=d?0:A,p+=y):r==="middle"?(g+=A,p-=A):r==="end"&&(d&&(g-=A),p+=y):(r==="start"?(g+=y,d&&(p+=A*2)):r==="middle"?p-=A:r==="end"&&(g-=y,d&&(p+=A*2)),o&&(p+=d?-17:c?13:7)),{x:g,y:p}}function _c(t,e){var r;const a=this.config.data_labels_position,{id:o,index:s,value:i}=t;return(r=de(a)?a.bind(this.api)(e,i,o,s,this.$el.text):(o in a?a[o]:a)[e])!=null?r:0}function bm(t,e,r){var a,o;const s=this,{config:i,$T:l}=s,c=i.axis_rotated,{border:{padding:d="3 5",radius:g=10,stroke:p="#000",strokeWidth:y=1,fill:A="none"}}=i.data_labels,w=jg(d),F=i.data_labels.border!==!0,N=Ar(t);let D=st(t.previousElementSibling);(D.empty()||((a=D.node())==null?void 0:a.tagName)!=="rect"||!((o=D.attr("class"))!=null&&o.includes(r)))&&(D=st(t.parentNode).insert("rect",()=>t).attr("class",`${pn.textBorderRect} ${r}`).attr("width",N.width+(F?w.left+w.right:0)).attr("height",N.height+(F?w.top+w.bottom:0)),F&&D.style("fill",A).style("stroke",p).style("stroke-width",`${y}px`).attr("rx",g).attr("ry",g)),l(D).attr("x",e.x-(F?w.left:0)-(c?0:N.width/2)).attr("y",e.y-(F?w.top:0)-N.height/4*3.2)}function di(t=0,e){const r=this,{config:a}=r,o=a[`${e}_label_threshold`]||0;return t>=o}function tu(){const t=this,{$el:{text:e},config:r}=t;(t.state.arcWidth?t.getArcLabelConfig("image"):r.data_labels.image)&&e.filter(function(){const o=this.previousElementSibling;return o?o.tagName!=="image"||!o.classList.contains(pn.textLabelImage):!0}).each(function(o){var s,i,l,c;const{url:d,width:g,height:p,pos:y}=Om.call(t,o);if(d){const A=st(this.parentNode);A==null||A.insert("image",`${(i=(s=this.getAttribute("class"))==null?void 0:s.replace(/(?:^(.)|\s)/g,".$1"))!=null?i:"text"}`).style("opacity","0").attr("href",w=>La(d,{ID:"id"in w?w.id:w.data.id})).attr("class",pn.textLabelImage).style("pointer-events","none").attr("width",g).attr("height",p).attr("transform",y?`translate(${(l=y.x)!=null?l:0} ${(c=y.y)!=null?c:0})`:null)}})}function Om(t){var e;const r=this,{config:a,state:o}=r,s=o.arcWidth?r.getArcLabelConfig("image"):a.data_labels.image;if(de(s))return(e=s.call(r.api,t.value,t.id,t.index))!=null?e:{url:"",width:0,height:0,pos:{x:0,y:0}};if(s){const{url:i="",width:l=0,height:c=0,pos:d}=s;return{url:i,width:l,height:c,pos:d}}return null}function eu(t,e){var r;const a=this,{config:o,state:{arcWidth:s,hasTreemap:i}}=a,l=o.axis_rotated,c=st(t.previousElementSibling),d=g=>{var p;const y=g.style.opacity!=="0"&&g.style.fillOpacity!=="0";return(s?g.textContent:y)&&((p=this.previousElementSibling)==null?void 0:p.tagName)!=="image"};if(!c.empty()&&((r=c.node())==null?void 0:r.tagName)==="image"){const g=Sn(t),p=+c.attr("width")/2,y=+c.attr("height")/2;let A=e.x-p,w=e.y-y-g.height/2;l?e.x+=p:(i&&(A=-p,w=-(y*2+g.height)),a.hasType("pie")||a.hasType("polar")||(e.y+=y)),a.$T(c).style("opacity",d(t)?null:"0").attr("x",A).attr("y",w)}}function Cm(t){return fc(t,e=>e,e=>Ar(e))}var Pm={opacityForText(t){const e=this;return e.isBarType(t)&&!di.call(e,Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Ee.chart}`).append("g").attr("class",pn.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,r=e.getChartClass("Text"),a=e.getClass("texts","id"),o=e.classFocus.bind(e);e.$el.main.select(`.${pn.chartTexts}`).selectAll(`.${pn.chartText}`).data(e.filterNullish(t)).attr("class",l=>`${r(l)}${o(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",r).call(e.setCssRule(!0,` .${pn.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:r,config:a,axis:o}=t,s=t.getClass("text","index"),i=a.data_labels.centered,l=e.main.selectAll(`.${pn.texts}`).selectAll(`.${pn.text}`).data(t.labelishData.bind(t));r(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_${o==null?void 0:o.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const p=t.getCandlestickData(c);g=!(p!=null&&p._isUp)}else if(t.isTreemapType(c))return i?"middle":"start";return a.axis_rotated?g?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,d,g){const p=st(this);let{value:y}=c;if(t.isBubbleZType(c))y=t.getBubbleZData(y,"z");else if(t.isCandlestickType(c)){const A=t.getCandlestickData(c);A&&(y=A.close)}y=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(p):t.dataLabelFormat(c.id)(y,c.id,c.index,g),ye(y)?this.textContent=y:aa(p,y,void 0,!0)}),tu.call(t)},updateTextColor(t){const e=this,{config:r}=e,a=r.data_labels_colors,o=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let s;if(je(a))s=a;else if(Ge(a)){const{id:i}=t.data||t;s=a[i]}else de(a)&&(s=a.bind(e.api)(o,t));if(e.isCandlestickType(t)&&!de(a)){const i=e.getCandlestickData(t);if(!(i!=null&&i._isUp)){const l=r.candlestick_color_down;s=Ge(l)?l[t.id]:l}}return s||o},updateTextBGColor(t,e){const r=this,{$el:{defs:a}}=r;let o="";if(e){const s=je(e)?"":r.getTargetSelectorSuffix("id"in t?t.id:t.data.id),i=a.select(["filter[id*='labels-bg","']"].join(s));if(i.size()&&(o=`url(#${i.attr("id")})`),de(e)){r.generateTextBGColorFilter(e);const l=r.color(t),c=e.bind(r.api)(l,t);c?i.select("feFlood").attr("flood-color",c):o=""}}return o||null},redrawText(t,e,r,a){const o=this,{$T:s,axis:i,config:l,state:{hasTreemap:c}}=o,d=ar(!0),g=l.axis_rotated,p=l.data_labels.rotate,y=Im(p),A=p?`rotate(${p})`:"";let w=new Map;if(l.data_labels.centered){const F=[];o.$el.text.each(function(N){(o.isBarType(N)||o.isTreemapType(N))&&F.push(this)}),F.length>0&&(w=Cm(F))}return o.$el.text.style("fill",o.getStylePropValue(o.updateTextColor)).attr("filter",F=>o.updateTextBGColor.bind(o)(F,l.data_labels_backgroundColors)).style("fill-opacity",r?0:o.opacityForText.bind(o)).each(function(F,N){const D=w.get(this),K=s(c&&this.childElementCount?this.parentNode:this,!!(a&&(this.getAttribute("x")||this.getAttribute("transform"))),d),J=l[`axis_${i==null?void 0:i.getId(F.id)}_inverted`];let W={x:t.bind(this)(F,N,D),y:e.bind(this)(F,N,D)};p&&(W=Rm.bind(o)(F,W,y,g,J),K.attr("text-anchor",y)),eu.call(o,this,W),this.childElementCount||p?K.attr("transform",`translate(${W.x} ${W.y}) ${A}`):K.attr("x",W.x).attr("y",W.y),l.data_labels.border&&bm.call(o,K.node(),W,`${pn.textBorderRect}-${N}`)}),!0},getTextRect(t,e){var r,a;const o=this;let s,i,l;Array.isArray(t)?s=`${cn.textRect}-${t.join("_")}`:(i=(a=(r=t.node)==null?void 0:r.call(t))!=null?a:t,/text/i.test(i.tagName)||(i=i.querySelector("text")),l=i.textContent,s=`${cn.textRect}-${l.replace(/\W/g,"_")}`);const c=o.cache.get(s)||[];return c.length===0&&((o.$el.svg||o.$el.chart.select("svg")).selectAll(`.${Ee.dummy}`).data(l?[l]:t).enter().append("text").style("visibility","hidden").style("font",i?st(i).style("font"):null).classed(e||Ee.dummy,!0).text(d=>d).each(function(d,g){c[g]=Sn(this)}).remove(),o.cache.add(s,c)),c.length>1?c:c[0]},generateXYForText(t,e){const r=this,{state:{hasRadar:a,hasFunnel:o,hasTreemap:s}}=r,i=Object.keys(t),l={},c=e?r.getXForText:r.getYForText;return o&&i.push("funnel"),a&&i.push("radar"),s&&i.push("treemap"),i.forEach(d=>{l[d]=r[`generateGet${bn(d)}Points`](t[d],!1)}),function(d,g){const p=r.isAreaType(d)&&"area"||r.isBarType(d)&&"bar"||r.isCandlestickType(d)&&"candlestick"||r.isFunnelType(d)&&"funnel"||r.isRadarType(d)&&"radar"||r.isTreemapType(d)&&"treemap"||"line";return c.call(r,l[p](d,g),d,this)}},getCenteredTextPos(t,e,r,a,o){const s=this,{config:i}=s,l=i.axis_rotated,c=s.isBarType(t),d=s.isTreemapType(t);if(i.data_labels.centered&&(c||d)){const g=o||Ar(r);if(c){const p=s.getRangedData(t,null,"bar")>=0;if(l){const y=(p?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+g.width/2;return p?-y-3:y+2}else{const y=(p?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+g.height/2;return p?y:-y-2}}else if(d)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2-g.y-g.height/2}return 0},getXForText(t,e,r,a){var o;const s=this,{config:i}=s,l=i.axis_rotated,c=s.isFunnelType(e),d=s.isTreemapType(e);let g=t?t[0][0]:0;if(s.isCandlestickType(e))l?g=(o=s.getCandlestickData(e))!=null&&o._isUp?t[2][2]+4:t[2][1]-4:g+=(t[1][0]-g)/2;else if(c)g+=s.state.current.width/2;else if(d)g+=i.data_labels.centered?0:5;else if(l){const p=i[`axis_${s.axis.getId(e.id)}_inverted`],y=s.isBarType(e)?4:6,A=e.value;g=t[2][1],p?g-=y*(A>0?1:-1):g+=y*(A<0?-1:1)}else g=s.hasType("bar")?(t[2][0]+t[0][0])/2:g;return(l||d)&&(g+=s.getCenteredTextPos(e,t,r,"x",a)),g+_c.call(this,e,"x")},getYForText(t,e,r,a){const o=this,{axis:s,config:i,state:l}=o,c=i.axis_rotated,d=i[`axis_${s==null?void 0:s.getId(e.id)}_inverted`],g=o.isBarType(e),p=o.isFunnelType(e),y=o.isTreemapType(e),A=i.point_r,w=Sn(r);let{value:F}=e,N=3,D;if(o.isCandlestickType(e))F=o.getCandlestickData(e),c?(D=t[0][0],D+=(t[1][0]-D)/2+N):(D=F&&F._isUp?t[2][2]-N:t[2][1]+N*4,d&&(D+=15*(F._isUp?1:-1)));else if(p)D=t?t[0][1]+(t[1][1]-t[0][1])/2+w.height/2-3:0;else if(y)D=t[0][1]+(i.data_labels.centered?0:w.height+5);else if(c)D=(t[0][0]+t[2][0]+w.height*.6)/2;else if(D=t[2][1],ye(A)&&A>5&&(o.isLineType(e)||o.isScatterType(e))&&(N+=i.point_r/2.3),F<0||F===0&&!l.hasPositiveValue&&l.hasNegativeValue)D+=d?g?-3:-5:w.height+(g?-N:N);else{let K=-N*2;g?K=-N:o.isBubbleType(e)&&(K=N),d&&(K=g?10:15),D+=K}return(!c||y)&&(D+=o.getCenteredTextPos(e,t,r,"y",a)),D+_c.call(this,e,"y")},markOverlapped(t,e,r){const a=e.$el.arcs.selectAll(r),o=a.filter(c=>c.data.id!==t),s=a.filter(c=>c.data.id===t),i=sc(s.node()),l=(c,d)=>Math.sqrt(Math.pow(c,2)+Math.pow(d,2));s.node()&&o.each(function(){const c=sc(this),d=st(this),g=l(i.e,i.f)>l(c.e,c.f)?s:d,p=Math.ceil(Math.abs(i.e-c.e))<Math.ceil(g.node().getComputedTextLength()),y=Math.ceil(Math.abs(i.f-c.f))<parseInt(s.style("font-size"),10);d.classed(pn.TextOverlapping,p&&y)})},undoMarkOverlapped(t,e){t.$el.arcs.selectAll(e).each(function(){qc([this,this.previousSibling]).classed(pn.TextOverlapping,!1)})}};function nu(t="left",e){const r=ye(e);let a;return t.indexOf("center")>-1?a=r?e/2:"middle":t.indexOf("right")>-1?a=r?e:"end":a=r?0:"start",a}var Mm={initTitle(){const t=this,{config:e,$el:r}=t;if(e.title_text){r.title=r.svg.append("g");const a=r.title.append("text").style("text-anchor",nu(e.title_position)).attr("class",pn.title);aa(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:r},$el:{title:a}}=t;if(a){const o=nu(e.title_position,r.width),s=(e.title_padding.top||0)+t.getTextRect(t.$el.title,pn.title).height;a.attr("transform",`translate(${o}, ${s})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:r}=t;return(r.title_padding.top||0)+(e?t.getTextRect(e,pn.title).height:0)+(r.title_padding.bottom||0)}},wm={initTooltip(){const t=this,{config:e,$el:r}=t;r.tooltip=st(e.tooltip_contents.bindto),r.tooltip.empty()&&(r.tooltip=r.chart.append("div").attr("class",ao.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:r,$el:a,state:{hasAxis:o,hasRadar:s}}=e;if(r.tooltip_init_show){const i=!(o||s);(t=e.axis)!=null&&t.isTimeSeries()&&je(r.tooltip_init_x)&&(r.tooltip_init_x=Jn.call(e,r.tooltip_init_x)),e.api.tooltip.show({data:{[i?"index":"x"]:r.tooltip_init_x}});const l=r.tooltip_init_position;if(!r.tooltip_contents.bindto&&!Kn(l)){const{top:c=0,left:d=50}=l;a.tooltip.style("top",je(c)?c:`${c}px`).style("left",je(d)?d:`${d}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:r,config:a}=e;return ra(de(a.tooltip_contents)?a.tooltip_contents.bind(r)(...t):e.getTooltipContent(...t))},getTooltipContent(t,e,r,a){var o;const s=this,{api:i,config:l,state:c,$el:d}=s,[g,p,y]=["title","name","value"].map(xt=>{const q=l[`tooltip_format_${xt}`];return de(q)?q.bind(i):q}),A=(...xt)=>(g||e)(...xt),w=(...xt)=>(p||(q=>q))(...xt),F=(xt,q,Et,dt)=>{let bt=y;return bt||(c.hasTreemap||s.isStackNormalized()&&(!s.isStackNormalizedPerGroup()||s.isGrouped(Et))?bt=(kt,Ht)=>`${(Ht*100).toFixed(2)}%`:bt=r),bt(xt,q,Et,dt)},N=l.tooltip_order,D=xt=>s.axis&&s.isBubbleZType(xt)?s.getBubbleZData(xt.value,"z"):s.getBaseValue(xt),K=s.levelColor?xt=>s.levelColor(xt.value):xt=>a(xt),J=l.tooltip_contents,W=J.template,rt=s.mapToTargetIds();if(N===null&&l.data_groups.length){const xt=s.orderTargets(s.data.targets).map(q=>q.id).reverse();t.sort((q,Et)=>{let dt=q?q.value:null,bt=Et?Et.value:null;return dt>0&&bt>0&&(dt=q.id?xt.indexOf(q.id):null,bt=Et.id?xt.indexOf(Et.id):null),dt-bt})}else if(/^(asc|desc)$/.test(N)){const xt=N==="asc";t.sort((q,Et)=>{const dt=q?D(q):null,bt=Et?D(Et):null;return xt?dt-bt:bt-dt})}else de(N)&&t.sort(N.bind(i));const Q=s.getTooltipContentTemplate(W),ot=t.length;let vt,$t,Tt,yt,Rt;for(Rt=0;Rt<ot;Rt++)if($t=t[Rt],!(!$t||!(D($t)||D($t)===0))){if(ln(vt)){const xt=(c.hasAxis||c.hasRadar)&&A($t.x);vt=La(Q[0],{CLASS_TOOLTIP:ao.tooltip,TITLE:Ne(xt)?W?xt:`<tr><th colspan="2">${xt}</th></tr>`:""})}if(!$t.ratio&&d.arcs&&(Tt=["arc",s.$el.arcs.select(`path.${Le.arc}-${$t.id}`).data()[0]],$t.ratio=s.getRatio(...Tt)),Tt=[$t.ratio,$t.id,$t.index],s.isAreaRangeType($t)){const[xt,q]=["high","low"].map(dt=>F(s.getRangedData($t,dt),...Tt));yt=`<b>Mid:</b> ${F(D($t),...Tt)} <b>High:</b> ${xt} <b>Low:</b> ${q}`}else if(s.isCandlestickType($t)){const[xt,q,Et,dt,bt]=["open","high","low","close","volume"].map(kt=>s.getRangedData($t,kt,"candlestick")?F(s.getRangedData($t,kt,"candlestick"),...Tt):void 0);yt=`<b>Open:</b> ${xt} <b>High:</b> ${q} <b>Low:</b> ${Et} <b>Close:</b> ${dt}${bt?` <b>Volume:</b> ${bt}`:""}`}else if(s.isBarRangeType($t)){const{value:xt,id:q,index:Et}=$t;yt=`${F(xt,void 0,q,Et)}`}else yt=F(D($t),...Tt);if(yt!==void 0){if($t.name===null)continue;const xt=w((o=$t.name)!=null?o:$t.id,...Tt),q=K($t),Et={CLASS_TOOLTIP_NAME:ao.tooltipName+s.getTargetSelectorSuffix($t.id),COLOR:W||!s.patterns?q:`<svg><rect style="fill:${q}" width="10" height="10"></rect></svg>`,NAME:xt,VALUE:yt};if(W&&Ge(J.text)){const dt=rt.indexOf($t.id);Object.keys(J.text).forEach(bt=>{Et[bt]=J.text[bt][dt]})}vt+=La(Q[1],Et)}}return`${vt}</table>`},getTooltipContentTemplate(t){return(t||`<table class="{=CLASS_TOOLTIP}"><tbody>
|
|
45
46
|
{=TITLE}
|
|
46
47
|
{{<tr class="{=CLASS_TOOLTIP_NAME}">
|
|
47
48
|
<td class="name">${this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>'}{=NAME}</td>
|
|
48
49
|
<td class="value">{=VALUE}</td>
|
|
49
50
|
</tr>}}
|
|
50
|
-
</tbody></table>`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var r,a;const o=this,{config:i,scale:s,state:l,$el:{eventRect:c,tooltip:f,svg:v}}=o,{bindto:p}=i.tooltip_contents,y=i.axis_rotated,A=f==null?void 0:f.datum();if(!p&&A){const w=t!=null?t:JSON.parse(A.current),[L,N]=Zn(l.event,e!=null?e:c==null?void 0:c.node()),D={x:L,y:N};if(l.hasAxis&&s.x&&A&&"x"in A){const nt=(Q=0,ot,vt="y")=>{var $t;const Tt=s[ot?($t=o.axis)==null?void 0:$t.getId(ot):vt];return Tt?Tt(Q)+(y?l.margin.left:l.margin.top):0};D.xAxis=s.x(A.x)+(i.tooltip_position?y?l.margin.top:l.margin.left:0),w.length===1?D.yAxis=nt(w[0].value,w[0].id):D.yAxis=nt}const{width:K=0,height:Z=0}=A,H=(a=(r=i.tooltip_position)==null?void 0:r.bind(o.api)(w,K,Z,c==null?void 0:c.node(),D))!=null?a:Bi(v)?o.getTooltipPositionViewBox.bind(o)(K,Z,D):o.getTooltipPosition.bind(o)(K,Z,D);["top","left"].forEach(nt=>{const Q=H[nt];f.style(nt,`${Q}px`),nt==="left"&&!A.xPosInPercent&&(A.xPosInPercent=Q/l.current.width*100)})}},getTooltipPositionViewBox(t,e,r){var a,o;const i=this,{$el:{eventRect:s,svg:l},config:c,state:f}=i,v=c.axis_rotated,p=i.hasArcType()||f.hasFunnel||f.hasTreemap,y=(o=(a=p?l:s)==null?void 0:a.node())!=null?o:f.event.target;let{x:A,y:w}=r;f.hasAxis&&(A=v?A:r.xAxis,w=v?r.xAxis:w);const L=Oo(y,A,w,!1),N=Sn(y),D=Oo(y,20,0,!1).x;let K=L.y,Z=L.x+t/2+D;return p&&(f.hasFunnel||f.hasTreemap||f.hasRadar?(Z-=t/2+D,K+=e):(K+=N.height/2,Z+=N.width/2-(t-D))),Z+t>N.width&&(Z=N.width-t-D),K+e>N.height&&(K-=e*2),{top:K,left:Z}},getTooltipPosition(t,e,r){var a,o,i;const s=this,{config:l,scale:c,state:f}=s,{width:v,height:p,current:y,hasFunnel:A,hasRadar:w,hasTreemap:L,isLegendRight:N,inputType:D}=f,K=s.hasType("gauge")&&!l.gauge_fullCircle,Z=l.axis_rotated,H=s.hasArcType(),nt=s.getSvgLeft(!0);let Q=nt+y.width-s.getCurrentPaddingByDirection("right");const ot=20;let{x:vt,y:$t}=r;if(w)vt+=vt>=v/2?15:-(t+15),$t+=15;else if(H){if(D!=="touch"){let bt=(o=(a=s.getTitlePadding)==null?void 0:a.call(s))!=null?o:0;bt&&K&&((i=l.arc_rangeText_values)!=null&&i.length)&&(bt+=10),vt+=(v-(N?s.getLegendWidth():0))/2,$t+=(K?p:p/2+e)+bt}}else if(A||L)$t+=e;else{const mt={top:s.getCurrentPaddingByDirection("top",!0),left:s.getCurrentPaddingByDirection("left",!0)};Z?(vt+=nt+mt.left+ot,$t=mt.top+r.xAxis+ot,Q-=nt):(vt=nt+mt.left+ot+(c.zoom?vt:r.xAxis),$t+=mt.top-5)}if(vt+t+15>Q&&(vt-=t+(A||L||H?0:Z?ot*2:38)),$t+e>y.height){const mt=L?e+10:30;$t-=K?e*1.5:e+mt}const Tt={top:$t,left:vt};return Object.keys(Tt).forEach(mt=>{Tt[mt]<0&&(Tt[mt]=0)}),Tt},showTooltip(t,e){const r=this,{config:a,$el:{tooltip:o}}=r,i=t.filter(c=>c&&Ne(r.getBaseValue(c)));if(!o||i.length===0||!a.tooltip_show)return;let s=o.datum();const l=JSON.stringify(t);if(!s||s.current!==l){const{index:c,x:f}=t.concat().sort()[0];_e(a.tooltip_onshow,r.api,t),o.html(pr(r.getTooltipHTML(t,r.axis?r.axis.getXAxisTickFormat():r.categoryName.bind(r),r.getDefaultValueFormat(),r.color))).style("display",null).style("visibility",null).datum(s={index:c,x:f,current:l,width:o.property("offsetWidth"),height:o.property("offsetHeight")}),_e(a.tooltip_onshown,r.api,t),r._handleLinkedCharts(!0,c)}r.setTooltipPosition(i,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:r,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:o}=r,{width:i,xPosInPercent:s}=a.datum();let l=o.width/100*s;const c=o.width-(l+i);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const r=this,{api:a,config:o,$el:{tooltip:i}}=r;if(i&&i.style("display")!=="none"&&(!o.tooltip_doNotHide||t)){const s=JSON.parse((e=i.datum().current)!=null?e:{});_e(o.tooltip_onhide,a,s),i.style("display","none").datum(null),_e(o.tooltip_onhidden,a,s)}},_handleLinkedCharts(t,e){const r=this,{charts:a,config:o,state:{event:i}}=r;if(i!=null&&i.isTrusted&&o.tooltip_linked&&a.length>1){const s=o.tooltip_linked_name;a.filter(l=>l!==r.api).forEach(l=>{const{config:c,$el:f}=l.internal,v=c.tooltip_linked,p=c.tooltip_linked_name,y=mn.body.contains(f.chart.node());if(v&&s===p&&y){const A=f.tooltip.data()[0],w=e!==(A==null?void 0:A.index);try{l.tooltip[t&&w?"show":"hide"]({index:e})}catch(L){}}})}},updateTooltipOnRedraw(t,e){var r;const a=this,{config:o,$el:{eventRect:i,svg:s,tooltip:l},state:{event:c,hasAxis:f,hasRadar:v,hasTreemap:p}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const y=t!=null?t:(r=v?s:i)==null?void 0:r.node();if(f||v)if(a.isMultipleX())a.selectRectForMultipleXs(y,!1);else{const A=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(y,A),a.setExpand(A,null,!0))}else{const{clientX:A,clientY:w}=c;setTimeout(()=>{let L=[A,w].every(Number.isFinite)&&mn.elementFromPoint(A,w);const N=L&&it(L).datum();if(N){const D=a.hasArcType()?a.convertToArcData(a.updateAngle(N)):N==null?void 0:N.data;p&&(L=s.node()),D&&a.showTooltip([D],L)}else a.api.tooltip.hide()},o.transition_duration)}}}},vm={getTranslate(t,e=0){var r;const a=this,{config:o,state:i}=a,s=o.axis_rotated;let l=0,c,f;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=bo(i.margin.left),f=bo(i.margin.top);else if(t==="context")c=bo(i.margin2.left),f=bo(i.margin2.top);else if(t==="legend")c=i.margin3.left,f=i.margin3.top;else if(t==="x")c=s?-l:0,f=s?0:i.height+l;else if(t==="y")c=s?0:-l,f=s?i.height+l:0;else if(t==="y2")c=s?0:i.width+l,f=s?-l-1:0;else if(t==="subX")c=0,f=s?0:i.height2;else if(t==="arc")c=i.arcWidth/2,f=i.arcHeight/2,(r=o.arc_rangeText_values)!=null&&r.length&&(f+=5+(a.hasType("gauge")&&o.title_text?10:0));else if(t==="polar")c=i.arcWidth/2,f=i.arcHeight/2;else if(t==="radar"){const[v,p]=a.getRadarSize();c=i.width/2-v,f=i.height/2-p}return`translate(${c}, ${f})`},transformMain(t,e){const r=this,{$el:{main:a},$T:o}=r,i=e!=null&&e.axisX?e.axisX:o(a.select(`.${gn.axisX}`),t),s=e!=null&&e.axisY?e.axisY:o(a.select(`.${gn.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:o(a.select(`.${gn.axisY2}`),t);o(a,t).attr("transform",r.getTranslate("main")),i.attr("transform",r.getTranslate("x")),s.attr("transform",r.getTranslate("y")),l.attr("transform",r.getTranslate("y2")),a.select(`.${Le.chartArcs}`).attr("transform",r.getTranslate("arc"))},transformAll(t,e){const r=this,{config:a,state:{hasAxis:o,hasFunnel:i,hasTreemap:s},$el:l}=r;!i&&!s&&r.transformMain(t,e),o&&a.subchart_show&&r.transformContext(t,e),l.legend&&r.transformLegend(t)}},gm={isValidChartType(t){return!!(t&&Object.values(fe).indexOf(t)>-1)},setTargetType(t,e){const r=this,{config:a,state:{withoutFadeIn:o}}=r;r.mapToTargetIds(t).forEach(i=>{o[i]=e===a.data_types[i],a.data_types[i]=e}),t||(a.data_type=e)},updateTypesElements(){const t=this,{state:{current:e}}=t;Object.keys(fe).forEach(r=>{const a=fe[r],o=t.hasType(a,null,!0),i=e.types.indexOf(a);i===-1&&o?e.types.push(a):i>-1&&!o&&e.types.splice(i,1)}),t.setChartElements()},hasType(t,e,r=!1){var a;const o=this,{config:i,state:{current:s}}=o,l=i.data_types,c=e||o.data.targets;let f=!1;return!r&&((a=s.types)==null?void 0:a.indexOf(t))>-1?f=!0:c!=null&&c.length?c.forEach(v=>{const p=l[v.id];(p===t||!p&&t==="line")&&(f=!0)}):Object.keys(l).length?Object.keys(l).forEach(v=>{l[v]===t&&(f=!0)}):f=i.data_type===t,f},hasTypeOf(t,e,r=[]){return t in Ir?!Ir[t].filter(a=>r.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var r;const a=Ue(t)?t:t.id,o=this.config&&(((r=this.config.data_types)==null?void 0:r[a])||this.config.data_type);return Xe(e)?e.indexOf(o)>=0:o===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=Ue(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Ir.Line)},isStepType(t){return this.isTypeOf(t,Ir.Step)},isSplineType(t){return this.isTypeOf(t,Ir.Spline)},isAreaType(t){return this.isTypeOf(t,Ir.Area)},isAreaRangeType(t){return this.isTypeOf(t,Ir.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,r=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!r||Xe(r)&&r.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=>ye(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 jo(t,e,r){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+r)/6)}function Go(t){this._context=t}Go.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:jo(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:jo(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function pm(t){return new Go(t)}function br(){}function qc(t){this._context=t}qc.prototype={areaStart:br,areaEnd:br,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:jo(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function mm(t){return new qc(t)}function _c(t){this._context=t}_c.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 r=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:jo(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ym(t){return new _c(t)}function tu(t,e){this._basis=new Go(t),this._beta=e}tu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var a=t[0],o=e[0],i=t[r]-a,s=e[r]-o,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*i),this._beta*e[l]+(1-this._beta)*(o+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var xm=(function t(e){function r(a){return e===1?new Go(a):new tu(a,e)}return r.beta=function(a){return t(+a)},r})(.85);function Vo(t,e,r){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-r),t._x2,t._y2)}function ds(t,e){this._context=t,this._k=(1-e)/6}ds.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:Vo(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:Vo(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 Tm=(function t(e){function r(a){return new ds(a,e)}return r.tension=function(a){return t(+a)},r})(0);function hs(t,e){this._context=t,this._k=(1-e)/6}hs.prototype={areaStart:br,areaEnd:br,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:Vo(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 Sm=(function t(e){function r(a){return new hs(a,e)}return r.tension=function(a){return t(+a)},r})(0);function vs(t,e){this._context=t,this._k=(1-e)/6}vs.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:Vo(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 $m=(function t(e){function r(a){return new vs(a,e)}return r.tension=function(a){return t(+a)},r})(0);const eu=Math.abs,On=Math.atan2,Xr=Math.cos,Am=Math.max,gs=Math.min,or=Math.sin,fa=Math.sqrt,Cn=1e-12,ja=Math.PI,Xo=ja/2,Ho=2*ja;function Em(t){return t>1?0:t<-1?ja:Math.acos(t)}function nu(t){return t>=1?Xo:t<=-1?-Xo:Math.asin(t)}function ps(t,e,r){var a=t._x1,o=t._y1,i=t._x2,s=t._y2;if(t._l01_a>Cn){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,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Cn){var f=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,v=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*f+t._x1*t._l23_2a-e*t._l12_2a)/v,s=(s*f+t._y1*t._l23_2a-r*t._l12_2a)/v}t._context.bezierCurveTo(a,o,i,s,t._x2,t._y2)}function ru(t,e){this._context=t,this._alpha=e}ru.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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:ps(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 Im=(function t(e){function r(a){return e?new ru(a,e):new ds(a,0)}return r.alpha=function(a){return t(+a)},r})(.5);function au(t,e){this._context=t,this._alpha=e}au.prototype={areaStart:br,areaEnd:br,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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:ps(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 bm=(function t(e){function r(a){return e?new au(a,e):new hs(a,0)}return r.alpha=function(a){return t(+a)},r})(.5);function ou(t,e){this._context=t,this._alpha=e}ou.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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:ps(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 Rm=(function t(e){function r(a){return e?new ou(a,e):new vs(a,0)}return r.alpha=function(a){return t(+a)},r})(.5);function iu(t){return t<0?-1:1}function su(t,e,r){var a=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(a||o<0&&-0),s=(r-t._y1)/(o||a<0&&-0),l=(i*o+s*a)/(a+o);return(iu(i)+iu(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(l))||0}function lu(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function ms(t,e,r){var a=t._x0,o=t._y0,i=t._x1,s=t._y1,l=(i-a)/3;t._context.bezierCurveTo(a+l,o+l*e,i-l,s-l*r,i,s)}function Wo(t){this._context=t}Wo.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:ms(this,this._t0,lu(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 r=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,ms(this,lu(this,r=su(this,t,e)),r);break;default:ms(this,this._t0,r=su(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function cu(t){this._context=new uu(t)}(cu.prototype=Object.create(Wo.prototype)).point=function(t,e){Wo.prototype.point.call(this,e,t)};function uu(t){this._context=t}uu.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,r,a,o,i){this._context.bezierCurveTo(e,t,a,r,i,o)}};function Om(t){return new Wo(t)}function Cm(t){return new cu(t)}function fu(t){this._context=t}fu.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var a=du(t),o=du(e),i=0,s=1;s<r;++i,++s)this._context.bezierCurveTo(a[0][i],o[0][i],a[1][i],o[1][i],t[s],e[s]);(this._line||this._line!==0&&r===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 du(t){var e,r=t.length-1,a,o=new Array(r),i=new Array(r),s=new Array(r);for(o[0]=0,i[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,s[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)a=o[e]/i[e-1],i[e]-=a,s[e]-=a*s[e-1];for(o[r-1]=s[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(s[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function Pm(t){return new fu(t)}function hu(t){this._context=t}hu.prototype={areaStart:br,areaEnd:br,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 Mm(t){return new hu(t)}function vu(t){this._context=t}vu.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 ys(t){return new vu(t)}function Yo(t,e){this._context=t,this._t=e}Yo.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function wm(t){return new Yo(t,.5)}function Dm(t){return new Yo(t,0)}function Nm(t){return new Yo(t,1)}function Lm(t){const e=this;let r;return e.isLineType(t)?r=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(r=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),r}var Fm={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:r,hasTreemap:a}=t.state,o={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(i=>{const s=Rn(/^(bubble|scatter)$/.test(i)?"line":i);if(t.hasType(i)||t.hasTypeOf(s)||i==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${s}Type`]),c=t[`generateDraw${s}`];o.indices[i]=l,o.type[i]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||r||a){let i,s;a||(i=r?t.radarCircleX:e?t.circleY:t.circleX,s=r?t.radarCircleY:e?t.circleX:t.circleY),o.pos={xForText:t.generateXYForText(o.indices,!0),yForText:t.generateXYForText(o.indices,!1),cx:(i||function(){}).bind(t),cy:(s||function(){}).bind(t)}}return o},getShapeIndices(t){const e=this,{config:r}=e,a=r.data_xs,o=dn(a),i={};let s=o?{}:0;return o&&Fi(Object.keys(a).map(l=>a[l])).forEach(l=>{s[l]=0,i[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const f=l.id in a?a[l.id]:"",v=f?i[f]:i;for(let p=0,y;y=r.data_groups[p];p++)if(!(y.indexOf(l.id)<0))for(let A=0,w;w=y[A];A++){if(w in v){v[l.id]=v[w];break}l.id!==w&&f&&(v[w]=(c=v[l.id])!=null?c:s[f])}ln(v[l.id])&&(v[l.id]=f?s[f]++:s++,v.__max__=(f?s[f]:s)-1)}),i},getIndices(t,e,r){const a=this,{data_xs:o,bar_indices_removeNull:i}=a.config,{id:s,index:l}=e;if(a.isBarType(s)&&i){const c={};return a.getAllValuesOnIndex(l,!0).forEach((f,v)=>{c[f.id]=v,c.__max__=v}),c}return dn(o)?t[o[s]]:t},getIndicesMax(t){return dn(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,r)=>e+r):t.__max__},getShapeX(t,e,r){const a=this,{config:o,scale:i}=a,s=r?i.subX:i.zoom||i.x,l=o.bar_overlap,c=o.bar_padding,f=(p,y)=>p+y,v=Gn(t)&&(t._$total.length?t._$total.reduce(f)/2:0);return p=>{const y=a.getIndices(e,p,"getShapeX"),A=p.id in y?y[p.id]:0,w=(y.__max__||0)+1;let L=0;if(dn(p.x)){const N=s(p.x,!0);if(v){const D=t[p.id]||t._$width;L=l?N-D/2:N-D+t._$total.slice(0,A+1).reduce(f)-v}else L=N-(ye(t)?t:t._$width)*(w/2-(l?1:A))}return t&&L&&w>1&&c&&(A&&(L+=c*A),w>2?L-=(w-1)*c/2:w===2&&(L-=c/2)),L}},getShapeY(t){const e=this,r=e.isStackNormalized();return a=>{let{value:o}=a;return ye(a)?o=a:e.isAreaRangeType(a)?o=e.getBaseValue(a,"mid"):r?o=e.getRatio("index",a,!0):e.isBubbleZType(a)?o=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(o=o[1]),e.getYScaleById(a.id,t)(o)}},getShapeYMin(t){const e=this,r=e.axis.getId(t),a=e.scale[r],[o]=a.domain(),i=e.config[`axis_${r}_inverted`];return!e.isGrouped(t)&&!i&&o>0?o:0},getShapeOffsetData(t){const e=this,r=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=r.map(v=>v.id).join("_"),o=`${cn.shapeOffset}_${a}`,i=e.cache.get(o);if(i)return i;const s=e.isStackNormalized(),l=r.map(v=>{let p=v.values;const y={};e.isStepType(v)&&(p=e.convertValuesToStep(p));const A=p.reduce((w,L)=>{const N=Number(L.x);return w[N]=L,y[N]=s?e.getRatio("index",L,!0):L.value,w},{});return{id:v.id,rowValues:p,rowValueMapByXValue:A,values:y}}),f={indexMapByTargetId:r.reduce((v,{id:p},y)=>(v[p]=y,v),{}),shapeOffsetTargets:l};return e.cache.add(o,f),f},getShapeOffset(t,e,r){const a=this,{shapeOffsetTargets:o,indexMapByTargetId:i}=a.getShapeOffsetData(t),s=a.config.data_groupsZeroAs;return(l,c)=>{const{id:f,value:v,x:p}=l,y=a.getIndices(e,l),A=a.getYScaleById(f,r);if(a.isBarRangeType(l))return A(v[0]);const w=Number(p),L=A(s==="zero"?0:a.getShapeYMin(f));let N=L;return o.filter(D=>D.id!==f&&y[D.id]===y[f]).forEach(D=>{const{id:K,rowValueMapByXValue:Z,rowValues:H,values:nt}=D;if(i[K]<i[f]){const Q=nt[w];let ot=H[c];(!ot||Number(ot.x)!==w)&&(ot=Z[w]),(ot==null?void 0:ot.value)*v>=0&&ye(Q)&&(v!==0||s==="positive"&&Q>0||s==="negative"&&Q<0)&&(N+=A(Q)-L)}}),N}},circleY(t,e){const r=this,a=t.id;let o;return r.isGrouped(a)&&(o=Lm.bind(r)(t)),o?o(t,e)[0][1]:r.getYScaleById(a)(r.getBaseValue(t))},getBarW(t,e,r){var a,o,i,s,l;const c=this,{config:f,org:v,scale:p,state:y}=c,A=c.getMaxDataCount(),w=t==="bar"&&((a=f.data_groups)==null?void 0:a.length),L=`${t}_width`,{k:N}=(i=(o=c.getZoomTransform)==null?void 0:o.call(c))!=null?i:{k:1},D=[(s=f.axis_x_min)!=null?s:v.xDomain[0],(l=f.axis_x_max)!=null?l:v.xDomain[1]].map(c.axis.isTimeSeries()?Jn.bind(c):Number);let K=e.tickInterval(A);if(p.zoom&&!c.axis.isCategorized()&&N>1){const nt=D.every((Q,ot)=>Q===v.xDomain[ot]);K=v.xDomain.map((Q,ot)=>{const vt=nt?Q:Q-Math.abs(D[ot]);return p.zoom(vt)}).reduce((Q,ot)=>Math.abs(Q)+ot)/A}const Z=nt=>{const Q=nt?f[L][nt]:f[L],ot=nt?Q.ratio:f[`${L}_ratio`],vt=nt?Q.max:f[`${L}_max`],$t=ye(Q)?Q:de(Q)?Q.call(c,y.width,r,A):r?K*ot/r:0;return vt&&$t>vt?vt:$t};let H=Z();return!w&&Gn(f[L])&&(H={_$width:H,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(nt=>{f[L][nt.id]&&(H[nt.id]=Z(nt.id),H._$total.push(H[nt.id]||H._$width))})),H},getShapeByIndex(t,e,r){const a=this,{$el:o}=a,i=Ne(e)?`-${e}`:"";let s=o[t];return s&&!s.empty()?s=s.filter(l=>r?l.id===r:!0).filter(l=>Ne(e)?l.index===e:!0):s=(r?o.main.selectAll(`.${Ve[`${t}s`]}${a.getTargetSelectorSuffix(r)}`):o.main).selectAll(`.${Ve[t]}${i}`),s},isWithinShape(t,e){var r;const a=this,o=it(t);let i;return a.isTargetToShow(e.id)?(r=a.hasValidPointType)!=null&&r.call(a,t.nodeName)?i=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(a.getBaseValue(e))):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(i=o.classed(Ve.bar)?a.isWithinBar(t):!0):i=!1,i},getInterpolate(t){const r=this.getInterpolateType(t);return{basis:pm,"basis-closed":mm,"basis-open":ym,bundle:xm,cardinal:Tm,"cardinal-closed":Sm,"cardinal-open":$m,"catmull-rom":Im,"catmull-rom-closed":bm,"catmull-rom-open":Rm,"monotone-x":Om,"monotone-y":Cm,natural:Pm,"linear-closed":Mm,linear:ys,step:wm,"step-after":Nm,"step-before":Dm}[r]},getInterpolateType(t){const e=this,{config:r}=e,a=r.spline_interpolation_type,o=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?o:e.isStepType(t)?r.line_step_type:"linear"},isWithinBar(t){const e=Zn(this.state.event,t),r=Ql(t),[a,o]=r,i=Math.min(a.x,o.x),s=Math.min(a.y,o.y),l=this.config.bar_sensitivity,{width:c,height:f}=Er(t,!0),v=i-l,p=i+c+l,y=s+f+l,A=s-l;return v<e[0]&&e[0]<p&&A<e[1]&&e[1]<y}},Bm=Object.defineProperty,Um=(t,e,r)=>e in t?Bm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pn=(t,e,r)=>Um(t,typeof e!="symbol"?e+"":e,r);class Hr{constructor(e){Pn(this,"api"),Pn(this,"config"),Pn(this,"cache"),Pn(this,"$el"),Pn(this,"state"),Pn(this,"charts"),Pn(this,"data",{xs:{},targets:[]}),Pn(this,"axis"),Pn(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),Pn(this,"org",{xScale:null,xDomain:null}),Pn(this,"color"),Pn(this,"patterns"),Pn(this,"levelColor"),Pn(this,"point"),Pn(this,"brush"),Pn(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const r=this;r.api=e,r.config=new Ur,r.cache=new wg;const a=new Og;r.$el=a.getStore("element"),r.state=a.getStore("state"),r.$T=r.$T.bind(r)}$T(e,r,a){const{config:o,state:i}=this,s=o.transition_duration,l=o.subchart_show;let c=e;return c&&("tagName"in c&&(c=it(c)),c=(r!==!1&&s||r)&&(!i.zooming||i.dragging)&&!i.resizing&&i.rendered&&!l?c.transition(a).duration(s):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),_e(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),_e(e.config.onafterinit,e.api)}init(){const e=this,{config:r,state:a,$el:o}=e,{boost_useCssRule:i,bindto:s}=r;Dg(e);const l=e.hasArcType();if(a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!l&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*ar()}`,i){const f=mn.createElement("style");f.type="text/css",mn.head.appendChild(f),a.style={rootSelctor:`.${a.datetimeId}`,sheet:f.sheet},o.style=f}const c={element:s,classname:"bb"};Ge(s)&&(c.element=s.element||"#chart",c.classname=s.classname||c.classname),o.chart=de(c.element.node)?s.element:it(c.element||[]),o.chart.empty()&&(o.chart=it(mn.body.appendChild(mn.createElement("div")))),o.chart.html("").classed(c.classname,!0).classed(a.datetimeId,i).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const r=this,{config:a,state:o,$el:{chart:i}}=r,s=()=>xg(i,{display:"none",visibility:"hidden"}),l=a.render.lazy===!1?!1:a.render.lazy||s(),c=je.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((f,v)=>{s()||(v.disconnect(),!o.rendered&&r.initToRender(!0))}).observe(i.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&r.convertData(a,f=>{r.initWithData(f),r.afterInit()})}initParams(){var e;const r=this,{config:a,format:o,state:i}=r;if(r.color=r.generateColor(),r.levelColor=r.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(r.hasPointType()||(e=r.hasLegendDefsPoint)!=null&&e.call(r))&&(r.point=r.generatePoint()),i.hasAxis){r.initClip(),o.extraLineClasses=r.generateExtraLineClass(),o.dataTime=a.data_xLocaltime?Qs:ks,o.axisTime=a.axis_x_localtime?ui:fi;const f=a.zoom_enabled&&a.zoom_type==="drag";o.defaultAxisTime=v=>{const{x:p,zoom:y}=r.scale,A=f?y:y&&p.orgDomain().toString()!==y.domain().toString(),w=v.getMilliseconds()&&".%L"||v.getSeconds()&&".:%S"||v.getMinutes()&&"%I:%M"||v.getHours()&&"%I %p"||v.getDate()!==1&&"%b %d"||A&&v.getDate()===1&&"%b'%y"||v.getMonth()&&"%-m/%-d"||"%Y";return o.axisTime(w)(v)}}const{legend_position:s,legend_inset_anchor:l,axis_rotated:c}=a;i.isLegendRight=s==="right",i.isLegendInset=s==="inset",i.isLegendTop=l==="top-left"||l==="top-right",i.isLegendLeft=l==="top-left"||l==="bottom-left",i.rotatedPadding.top=r.getResettedPadding(i.rotatedPadding.top),i.rotatedPadding.right=c&&!a.axis_x_show?0:30,i.inputType=Tg(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var r,a,o;const i=this,{config:s,scale:l,state:c,$el:f,org:v}=i,{hasAxis:p,hasFunnel:y,hasTreemap:A}=c,w=s.interaction_enabled,L=i.hasType("polar"),N=s.data_labels_backgroundColors;if(p&&(i.axis=i.getAxisInstance(),s.zoom_enabled&&i.initZoom()),i.data.xs={},i.data.targets=i.convertDataToTargets(e),s.data_filter&&(i.data.targets=i.data.targets.filter(s.data_filter.bind(i.api))),s.data_hide&&i.addHiddenTargetIds(s.data_hide===!0?i.mapToIds(i.data.targets):s.data_hide),s.legend_hide&&i.addHiddenLegendIds(s.legend_hide===!0?i.mapToIds(i.data.targets):s.legend_hide),i.updateSizes(),i.updateScales(!0),p){const{x:Z,y:H,y2:nt,subX:Q,subY:ot,subY2:vt}=l;Z&&(Z.domain(sa(i.getXDomain(i.data.targets),!s.axis_x_inverted)),Q.domain(Z.domain()),v.xDomain=Z.domain()),H&&(H.domain(i.getYDomain(i.data.targets,"y")),ot.domain(H.domain())),nt&&(nt.domain(i.getYDomain(i.data.targets,"y2")),vt&&vt.domain(nt.domain()))}if(f.svg=f.chart.append("svg").style("overflow","hidden").style("display","block"),w&&c.inputType){const Z=c.inputType==="touch",{onclick:H,onover:nt,onout:Q}=s;f.svg.on("click",(H==null?void 0:H.bind(i.api))||null).on(Z?"touchstart":"mouseenter",(nt==null?void 0:nt.bind(i.api))||null,Z?{passive:!0}:void 0).on(Z?"touchend":"mouseleave",(Q==null?void 0:Q.bind(i.api))||null)}s.svg_classname&&f.svg.attr("class",s.svg_classname);const D=de(s.color_tiles)&&i.patterns;(p||D||L||A||N||(r=i.hasLegendDefsPoint)!=null&&r.call(i))&&(f.defs=f.svg.append("defs"),p&&["id","idXAxis","idYAxis","idY2Axis","idGrid"].forEach(Z=>{i.appendClip(f.defs,c.clip[Z])}),i.generateTextBGColorFilter(N),D&&i.patterns.forEach(Z=>f.defs.append(()=>Z.node))),i.updateSvgSize(),i.bindResize();const K=f.svg.append("g").classed(Ee.main,!0).attr("transform",y||A?null:i.getTranslate("main"));if(f.main=K,s.subchart_show&&i.initSubchart(),s.tooltip_show&&i.initTooltip(),s.title_text&&i.initTitle(),!A&&s.legend_show&&i.initLegend(),s.data_empty_label_text&&K.append("text").attr("class",`${pn.text} ${Ee.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),p&&(s.regions.length&&i.initRegion(),!s.clipPath&&i.axis.init()),K.append("g").classed(Ee.chart,!0).attr("clip-path",p?c.clip.path:null),i.callPluginHook("$init"),i.initChartElements(),p&&(w&&((a=i.initEventRect)==null||a.call(i)),i.initGrid(),s.clipPath&&((o=i.axis)==null||o.init())),i.updateTargets(i.data.targets),i.updateDimension(),_e(s.oninit,i.api),i.setBackground(),i.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),s.data_onmin||s.data_onmax){const Z=i.getMinMaxData();_e(s.data_onmin,i.api,Z.min),_e(s.data_onmax,i.api,Z.max)}s.tooltip_show&&i.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:r,hasRadar:a,hasTreemap:o}=e.state,i=[];if(r){const s=["bar","bubble","candlestick","line"];e.config.bar_front&&s.push(s.shift());for(const l of s){const c=Rn(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&i.push(c)}}else if(o)i.push("Treemap");else if(e.hasType("funnel"))i.push("Funnel");else{const s=e.hasType("polar"),l=e.hasType("gauge");a||i.push("Arc","Pie"),l?i.push("Gauge"):a?i.push("Radar"):s&&i.push("Polar")}for(const s of i)e[`init${s}`]();dn(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:r,svg:a,defs:o,main:i,tooltip:s,legend:l,title:c,grid:f,needle:v,arcs:p,circle:y,bar:A,candlestick:w,line:L,area:N,text:D}}=e;e.api.$={chart:r,svg:a,defs:o,main:i,tooltip:s,legend:l,title:c,grid:f,arc:p,circles:y,bar:{bars:A},candlestick:w,line:{lines:L,areas:N},needle:v,text:{texts:D}}}setBackground(){const e=this,{config:{background:r},state:a,$el:{svg:o}}=e;if(dn(r)){const i=o.select("g").insert(r.imgUrl?"image":"rect",":first-child");r.imgUrl?i.attr("href",r.imgUrl):r.color&&i.style("fill",r.color).attr("clip-path",a.clip.path),i.attr("class",r.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var r,a;const o=this,{hasAxis:i,hasFunnel:s,hasRadar:l,hasTreemap:c}=o.state,f=p=>o[`updateTargetsFor${p}`](e.filter(o[`is${p}Type`].bind(o)));if(o.updateTargetsForText(e),i){const p=["bar","candlestick","line"];for(const y of p){const A=Rn(y);(y==="line"&&o.hasTypeOf(A)||o.hasType(y))&&f(A)}(r=o.updateTargetsForSubchart)==null||r.call(o,e)}else if(o.hasArcType(e)){let p="Arc";l?p="Radar":o.hasType("polar")&&(p="Polar"),f(p)}else s?f("Funnel"):c&&f("Treemap");const v=o.hasType("bubble")||o.hasType("scatter");v&&((a=o.updateTargetForCircle)==null||a.call(o)),o.filterTargetsToShowAtInit(v)}filterTargetsToShowAtInit(e=!1){const r=this,{$el:{svg:a},$T:o}=r;let i=`.${Ee.target}`;e&&(i+=`, .${En.chartCircles} > .${En.circles}`),o(a.selectAll(i).filter(s=>r.isTargetToShow(s.id))).style("opacity",null)}getWithOption(e){const r={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};for(const[a,o]of Object.entries(r)){const i=Ue(o)?r[o]:o;r[a]=Ar(e,`with${a}`,i)}return r}initialOpacity(e){const r=this,{withoutFadeIn:a}=r.state;return r.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{$el:r,config:a,state:o}=e,i=Bg(a.resize_timer),{resize_auto:s}=a,l=[];l.push(()=>_e(a.onresize,e.api)),/^(true|parent)$/.test(s)&&l.push(()=>{o.resizing=!0,a.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),l.push(()=>{_e(a.onresized,e.api),o.resizing=!1}),l.forEach(c=>i.add(c)),e.resizeFunction=i,s==="parent"?(e.resizeFunction.resizeObserver=new ResizeObserver(e.resizeFunction.bind(e))).observe(r.chart.node().parentNode):je.addEventListener("resize",e.resizeFunction)}callPluginHook(e,...r){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...r)})}}$n(Hr.prototype,[kg,qg,_g,op,ip,up,fp,ap,dp,vp,gp,rm,Fm,am,om,fm,dm,hm,vm,gm]);function zm(t){const e=this.config;let r,a,o;const i=()=>{const s=a.shift();if(s&&r&&Gn(r)&&s in r)return r=r[s],i();if(!s)return r};Object.keys(e).forEach(s=>{r=t,a=s.split("_"),o=i(),Qe(o)&&(e[s]=o)}),this.api&&(this.state.orgConfig=t)}var jm={resize(t){const e=this.internal,{config:r,state:a}=e;a.rendered&&(r.size_width=t?t.width:null,r.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,r;const a=this.internal,{state:o,$el:{zoomResetBtn:i}}=a;o.rendered?(o.resizing?(e=a.brush)==null||e.updateResize():(r=a.axis)==null||r.setOrient(),i==null||i.style("display","none"),a.scale.zoom&&(o.current.zoomDomain=a.scale.zoom.domain()),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!o.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect()),o.current.zoomDomain&&(a.api.zoom(o.current.zoomDomain),o.current.zoomDomain=null)):a.initToRender(!0)},destroy(){var t;const e=this.internal,{$el:{chart:r,style:a,svg:o}}=e;if(dn(e)){e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),o.select("*").interrupt(),e.resizeFunction.clear(),(t=e.resizeFunction.resizeObserver)==null||t.disconnect(),je.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).style("position",null).selectChildren().remove(),a&&a.parentNode.removeChild(a),Object.keys(this).forEach(i=>{i==="internal"&&Object.keys(e).forEach(s=>{e[s]=null}),this[i]=null,delete this[i]});for(const i in this)this[i]=()=>{}}return null},config(t,e,r){const a=this.internal,{config:o,state:i}=a,s=t==null?void 0:t.replace(/\./g,"_");let l;return t&&s in o?Qe(e)?(o[s]=e,l=e,r&&this.flush()):l=o[s]:(arguments.length===0||Kn(t))&&(l=i.orgConfig),l}},Gm={color(t){return this.internal.color(t)}};const gu=function(t){const{targets:e}=this.internal.data;if(!ln(t)){const r=Xe(t)?t:[t];return e.filter(a=>r.some(o=>o===a.id))}return e};$n(gu,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let r=null;if(t){const a=this.data(t);Xe(a)&&(r=[],a.forEach(o=>{const i=o.values.map(s=>s.value);e?r=r.concat(i):r.push(i)}))}return r},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 Vm={data:gu};const Xm=t=>{var e,r;return(r=(e=je).btoa)==null?void 0:r.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,o)=>String.fromCharCode(+`0x${o}`)))};function Hm(t,e,r){const{width:a,height:o}=e||r,i=new XMLSerializer,s=t.cloneNode(!0),l=mg(Br(mn.styleSheets)).filter(y=>y.cssText).map(y=>y.cssText);s.setAttribute("xmlns",Gt.xhtml),s.style.margin="0",s.style.padding="0",e.preserveFontStyle&&s.querySelectorAll("text").forEach(y=>{y.innerHTML=""});const c=i.serializeToString(s),f=mn.createElement("style");f.appendChild(mn.createTextNode(l.join(`
|
|
51
|
-
`)));const
|
|
51
|
+
</tbody></table>`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var r,a;const o=this,{config:s,scale:i,state:l,$el:{eventRect:c,tooltip:d,svg:g}}=o,{bindto:p}=s.tooltip_contents,y=s.axis_rotated,A=d==null?void 0:d.datum();if(!p&&A){const w=t!=null?t:JSON.parse(A.current),[F,N]=Zn(l.event,e!=null?e:c==null?void 0:c.node()),D={x:F,y:N};if(l.hasAxis&&i.x&&A&&"x"in A){const rt=(Q=0,ot,vt="y")=>{var $t;const Tt=i[ot?($t=o.axis)==null?void 0:$t.getId(ot):vt];return Tt?Tt(Q)+(y?l.margin.left:l.margin.top):0};D.xAxis=i.x(A.x)+(s.tooltip_position?y?l.margin.top:l.margin.left:0),w.length===1?D.yAxis=rt(w[0].value,w[0].id):D.yAxis=rt}const{width:K=0,height:J=0}=A,W=(a=(r=s.tooltip_position)==null?void 0:r.bind(o.api)(w,K,J,c==null?void 0:c.node(),D))!=null?a:Us(g)?o.getTooltipPositionViewBox.bind(o)(K,J,D):o.getTooltipPosition.bind(o)(K,J,D);["top","left"].forEach(rt=>{const Q=W[rt];d.style(rt,`${Q}px`),rt==="left"&&!A.xPosInPercent&&(A.xPosInPercent=Q/l.current.width*100)})}},getTooltipPositionViewBox(t,e,r){var a,o;const s=this,{$el:{eventRect:i,svg:l},config:c,state:d}=s,g=c.axis_rotated,p=s.hasArcType()||d.hasFunnel||d.hasTreemap,y=(o=(a=p?l:i)==null?void 0:a.node())!=null?o:d.event.target;let{x:A,y:w}=r;d.hasAxis&&(A=g?A:r.xAxis,w=g?r.xAxis:w);const F=bo(y,A,w,!1),N=Sn(y),D=bo(y,20,0,!1).x;let K=F.y,J=F.x+t/2+D;return p&&(d.hasFunnel||d.hasTreemap||d.hasRadar?(J-=t/2+D,K+=e):(K+=N.height/2,J+=N.width/2-(t-D))),J+t>N.width&&(J=N.width-t-D),K+e>N.height&&(K-=e*2),{top:K,left:J}},getTooltipPosition(t,e,r){var a,o,s;const i=this,{config:l,scale:c,state:d}=i,{width:g,height:p,current:y,hasFunnel:A,hasRadar:w,hasTreemap:F,isLegendRight:N,inputType:D}=d,K=i.hasType("gauge")&&!l.gauge_fullCircle,J=l.axis_rotated,W=i.hasArcType(),rt=i.getSvgLeft(!0);let Q=rt+y.width-i.getCurrentPaddingByDirection("right");const ot=20;let{x:vt,y:$t}=r;if(w)vt+=vt>=g/2?15:-(t+15),$t+=15;else if(W){if(D!=="touch"){let Rt=(o=(a=i.getTitlePadding)==null?void 0:a.call(i))!=null?o:0;Rt&&K&&((s=l.arc_rangeText_values)!=null&&s.length)&&(Rt+=10),vt+=(g-(N?i.getLegendWidth():0))/2,$t+=(K?p:p/2+e)+Rt}}else if(A||F)$t+=e;else{const yt={top:i.getCurrentPaddingByDirection("top",!0),left:i.getCurrentPaddingByDirection("left",!0)};J?(vt+=rt+yt.left+ot,$t=yt.top+r.xAxis+ot,Q-=rt):(vt=rt+yt.left+ot+(c.zoom?vt:r.xAxis),$t+=yt.top-5)}if(vt+t+15>Q&&(vt-=t+(A||F||W?0:J?ot*2:38)),$t+e>y.height){const yt=F?e+10:30;$t-=K?e*1.5:e+yt}const Tt={top:$t,left:vt};return Object.keys(Tt).forEach(yt=>{Tt[yt]<0&&(Tt[yt]=0)}),Tt},showTooltip(t,e){const r=this,{config:a,$el:{tooltip:o}}=r,s=t.filter(c=>c&&Ne(r.getBaseValue(c)));if(!o||s.length===0||!a.tooltip_show)return;let i=o.datum();const l=JSON.stringify(t);if(!i||i.current!==l){const{index:c,x:d}=t.concat().sort()[0];_e(a.tooltip_onshow,r.api,t),o.html(r.getTooltipHTML(t,r.axis?r.axis.getXAxisTickFormat():r.categoryName.bind(r),r.getDefaultValueFormat(),r.color)).style("display",null).style("visibility",null).datum(i={index:c,x:d,current:l,width:o.property("offsetWidth"),height:o.property("offsetHeight")}),_e(a.tooltip_onshown,r.api,t),r._handleLinkedCharts(!0,c)}r.setTooltipPosition(s,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:r,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:o}=r,{width:s,xPosInPercent:i}=a.datum();let l=o.width/100*i;const c=o.width-(l+s);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const r=this,{api:a,config:o,$el:{tooltip:s}}=r;if(s&&s.style("display")!=="none"&&(!o.tooltip_doNotHide||t)){const i=JSON.parse((e=s.datum().current)!=null?e:{});_e(o.tooltip_onhide,a,i),s.style("display","none").datum(null),_e(o.tooltip_onhidden,a,i)}},_handleLinkedCharts(t,e){const r=this,{charts:a,config:o,state:{event:s}}=r;if(s!=null&&s.isTrusted&&o.tooltip_linked&&a.length>1){const i=o.tooltip_linked_name;a.filter(l=>l!==r.api).forEach(l=>{const{config:c,$el:d}=l.internal,g=c.tooltip_linked,p=c.tooltip_linked_name,y=mn.body.contains(d.chart.node());if(g&&i===p&&y){const A=d.tooltip.data()[0],w=e!==(A==null?void 0:A.index);try{l.tooltip[t&&w?"show":"hide"]({index:e})}catch(F){}}})}},updateTooltipOnRedraw(t,e){var r;const a=this,{config:o,$el:{eventRect:s,svg:i,tooltip:l},state:{event:c,hasAxis:d,hasRadar:g,hasTreemap:p}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const y=t!=null?t:(r=g?i:s)==null?void 0:r.node();if(d||g)if(a.isMultipleX())a.selectRectForMultipleXs(y,!1);else{const A=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(y,A),a.setExpand(A,null,!0))}else{const{clientX:A,clientY:w}=c;setTimeout(()=>{let F=[A,w].every(Number.isFinite)&&mn.elementFromPoint(A,w);const N=F&&st(F).datum();if(N){const D=a.hasArcType()?a.convertToArcData(a.updateAngle(N)):N==null?void 0:N.data;p&&(F=i.node()),D&&a.showTooltip([D],F)}else a.api.tooltip.hide()},o.transition_duration)}}}},Dm={getTranslate(t,e=0){var r;const a=this,{config:o,state:s}=a,i=o.axis_rotated;let l=0,c,d;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=Io(s.margin.left),d=Io(s.margin.top);else if(t==="context")c=Io(s.margin2.left),d=Io(s.margin2.top);else if(t==="legend")c=s.margin3.left,d=s.margin3.top;else if(t==="x")c=i?-l:0,d=i?0:s.height+l;else if(t==="y")c=i?0:-l,d=i?s.height+l:0;else if(t==="y2")c=i?0:s.width+l,d=i?-l-1:0;else if(t==="subX")c=0,d=i?0:s.height2;else if(t==="arc")c=s.arcWidth/2,d=s.arcHeight/2,(r=o.arc_rangeText_values)!=null&&r.length&&(d+=5+(a.hasType("gauge")&&o.title_text?10:0));else if(t==="polar")c=s.arcWidth/2,d=s.arcHeight/2;else if(t==="radar"){const[g,p]=a.getRadarSize();c=s.width/2-g,d=s.height/2-p}return`translate(${c}, ${d})`},transformMain(t,e){const r=this,{$el:{main:a},$T:o}=r,s=e!=null&&e.axisX?e.axisX:o(a.select(`.${gn.axisX}`),t),i=e!=null&&e.axisY?e.axisY:o(a.select(`.${gn.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:o(a.select(`.${gn.axisY2}`),t);o(a,t).attr("transform",r.getTranslate("main")),s.attr("transform",r.getTranslate("x")),i.attr("transform",r.getTranslate("y")),l.attr("transform",r.getTranslate("y2")),a.select(`.${Le.chartArcs}`).attr("transform",r.getTranslate("arc"))},transformAll(t,e){const r=this,{config:a,state:{hasAxis:o,hasFunnel:s,hasTreemap:i},$el:l}=r;!s&&!i&&r.transformMain(t,e),o&&a.subchart_show&&r.transformContext(t,e),l.legend&&r.transformLegend(t)}},Nm={isValidChartType(t){return!!(t&&Object.values(fe).indexOf(t)>-1)},setTargetType(t,e){const r=this,{config:a,state:{withoutFadeIn:o}}=r;r.mapToTargetIds(t).forEach(s=>{o[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(r=>{const a=fe[r],o=t.hasType(a,null,!0),s=e.types.indexOf(a);s===-1&&o?e.types.push(a):s>-1&&!o&&e.types.splice(s,1)}),t.setChartElements()},hasType(t,e,r=!1){var a;const o=this,{config:s,state:{current:i}}=o,l=s.data_types,c=e||o.data.targets;let d=!1;return!r&&((a=i.types)==null?void 0:a.indexOf(t))>-1?d=!0:c!=null&&c.length?c.forEach(g=>{const p=l[g.id];(p===t||!p&&t==="line")&&(d=!0)}):Object.keys(l).length?Object.keys(l).forEach(g=>{l[g]===t&&(d=!0)}):d=s.data_type===t,d},hasTypeOf(t,e,r=[]){return t in Er?!Er[t].filter(a=>r.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var r;const a=je(t)?t:t.id,o=this.config&&(((r=this.config.data_types)==null?void 0:r[a])||this.config.data_type);return Xe(e)?e.indexOf(o)>=0:o===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=je(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Er.Line)},isStepType(t){return this.isTypeOf(t,Er.Step)},isSplineType(t){return this.isTypeOf(t,Er.Spline)},isAreaType(t){return this.isTypeOf(t,Er.Area)},isAreaRangeType(t){return this.isTypeOf(t,Er.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,r=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!r||Xe(r)&&r.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=>ye(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 zo(t,e,r){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+r)/6)}function jo(t){this._context=t}jo.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:zo(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:zo(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Lm(t){return new jo(t)}function Ir(){}function ru(t){this._context=t}ru.prototype={areaStart:Ir,areaEnd:Ir,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:zo(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Fm(t){return new ru(t)}function au(t){this._context=t}au.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 r=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,a):this._context.moveTo(r,a);break;case 3:this._point=4;default:zo(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Bm(t){return new au(t)}function ou(t,e){this._basis=new jo(t),this._beta=e}ou.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var a=t[0],o=e[0],s=t[r]-a,i=e[r]-o,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*s),this._beta*e[l]+(1-this._beta)*(o+c*i));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Um=(function t(e){function r(a){return e===1?new jo(a):new ou(a,e)}return r.beta=function(a){return t(+a)},r})(.85);function Go(t,e,r){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-r),t._x2,t._y2)}function hi(t,e){this._context=t,this._k=(1-e)/6}hi.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:Go(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:Go(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 zm=(function t(e){function r(a){return new hi(a,e)}return r.tension=function(a){return t(+a)},r})(0);function vi(t,e){this._context=t,this._k=(1-e)/6}vi.prototype={areaStart:Ir,areaEnd:Ir,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:Go(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 jm=(function t(e){function r(a){return new vi(a,e)}return r.tension=function(a){return t(+a)},r})(0);function gi(t,e){this._context=t,this._k=(1-e)/6}gi.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:Go(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 Gm=(function t(e){function r(a){return new gi(a,e)}return r.tension=function(a){return t(+a)},r})(0);const su=Math.abs,On=Math.atan2,Vr=Math.cos,Vm=Math.max,pi=Math.min,or=Math.sin,ua=Math.sqrt,Cn=1e-12,za=Math.PI,Vo=za/2,Xo=2*za;function Xm(t){return t>1?0:t<-1?za:Math.acos(t)}function iu(t){return t>=1?Vo:t<=-1?-Vo:Math.asin(t)}function mi(t,e,r){var a=t._x1,o=t._y1,s=t._x2,i=t._y2;if(t._l01_a>Cn){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,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Cn){var d=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*d+t._x1*t._l23_2a-e*t._l12_2a)/g,i=(i*d+t._y1*t._l23_2a-r*t._l12_2a)/g}t._context.bezierCurveTo(a,o,s,i,t._x2,t._y2)}function lu(t,e){this._context=t,this._alpha=e}lu.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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:mi(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 Hm=(function t(e){function r(a){return e?new lu(a,e):new hi(a,0)}return r.alpha=function(a){return t(+a)},r})(.5);function cu(t,e){this._context=t,this._alpha=e}cu.prototype={areaStart:Ir,areaEnd:Ir,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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:mi(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 Wm=(function t(e){function r(a){return e?new cu(a,e):new vi(a,0)}return r.alpha=function(a){return t(+a)},r})(.5);function uu(t,e){this._context=t,this._alpha=e}uu.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 r=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+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:mi(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 Ym=(function t(e){function r(a){return e?new uu(a,e):new gi(a,0)}return r.alpha=function(a){return t(+a)},r})(.5);function fu(t){return t<0?-1:1}function du(t,e,r){var a=t._x1-t._x0,o=e-t._x1,s=(t._y1-t._y0)/(a||o<0&&-0),i=(r-t._y1)/(o||a<0&&-0),l=(s*o+i*a)/(a+o);return(fu(s)+fu(i))*Math.min(Math.abs(s),Math.abs(i),.5*Math.abs(l))||0}function hu(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function yi(t,e,r){var a=t._x0,o=t._y0,s=t._x1,i=t._y1,l=(s-a)/3;t._context.bezierCurveTo(a+l,o+l*e,s-l,i-l*r,s,i)}function Ho(t){this._context=t}Ho.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:yi(this,this._t0,hu(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 r=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,yi(this,hu(this,r=du(this,t,e)),r);break;default:yi(this,this._t0,r=du(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function vu(t){this._context=new gu(t)}(vu.prototype=Object.create(Ho.prototype)).point=function(t,e){Ho.prototype.point.call(this,e,t)};function gu(t){this._context=t}gu.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,r,a,o,s){this._context.bezierCurveTo(e,t,a,r,s,o)}};function Km(t){return new Ho(t)}function Zm(t){return new vu(t)}function pu(t){this._context=t}pu.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var a=mu(t),o=mu(e),s=0,i=1;i<r;++s,++i)this._context.bezierCurveTo(a[0][s],o[0][s],a[1][s],o[1][s],t[i],e[i]);(this._line||this._line!==0&&r===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 mu(t){var e,r=t.length-1,a,o=new Array(r),s=new Array(r),i=new Array(r);for(o[0]=0,s[0]=2,i[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,s[e]=4,i[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,s[r-1]=7,i[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)a=o[e]/s[e-1],s[e]-=a,i[e]-=a*i[e-1];for(o[r-1]=i[r-1]/s[r-1],e=r-2;e>=0;--e)o[e]=(i[e]-o[e+1])/s[e];for(s[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)s[e]=2*t[e+1]-o[e+1];return[o,s]}function Jm(t){return new pu(t)}function yu(t){this._context=t}yu.prototype={areaStart:Ir,areaEnd:Ir,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 Qm(t){return new yu(t)}function xu(t){this._context=t}xu.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 xi(t){return new xu(t)}function Wo(t,e){this._context=t,this._t=e}Wo.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function km(t){return new Wo(t,.5)}function qm(t){return new Wo(t,0)}function _m(t){return new Wo(t,1)}function ty(t){const e=this;let r;return e.isLineType(t)?r=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(r=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),r}var ey={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:r,hasTreemap:a}=t.state,o={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(s=>{const i=bn(/^(bubble|scatter)$/.test(s)?"line":s);if(t.hasType(s)||t.hasTypeOf(i)||s==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${i}Type`]),c=t[`generateDraw${i}`];o.indices[s]=l,o.type[s]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||r||a){let s,i;a||(s=r?t.radarCircleX:e?t.circleY:t.circleX,i=r?t.radarCircleY:e?t.circleX:t.circleY),o.pos={xForText:t.generateXYForText(o.indices,!0),yForText:t.generateXYForText(o.indices,!1),cx:(s||function(){}).bind(t),cy:(i||function(){}).bind(t)}}return o},getShapeIndices(t){const e=this,{config:r}=e,a=r.data_xs,o=dn(a),s={};let i=o?{}:0;return o&&Bs(Object.keys(a).map(l=>a[l])).forEach(l=>{i[l]=0,s[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const d=l.id in a?a[l.id]:"",g=d?s[d]:s;for(let p=0,y;y=r.data_groups[p];p++)if(!(y.indexOf(l.id)<0))for(let A=0,w;w=y[A];A++){if(w in g){g[l.id]=g[w];break}l.id!==w&&d&&(g[w]=(c=g[l.id])!=null?c:i[d])}ln(g[l.id])&&(g[l.id]=d?i[d]++:i++,g.__max__=(d?i[d]:i)-1)}),s},getIndices(t,e,r){const a=this,{data_xs:o,bar_indices_removeNull:s}=a.config,{id:i,index:l}=e;if(a.isBarType(i)&&s){const c={};return a.getAllValuesOnIndex(l,!0).forEach((d,g)=>{c[d.id]=g,c.__max__=g}),c}return dn(o)?t[o[i]]:t},getIndicesMax(t){return dn(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,r)=>e+r):t.__max__},getShapeX(t,e,r){const a=this,{config:o,scale:s}=a,i=r?s.subX:s.zoom||s.x,l=o.bar_overlap,c=o.bar_padding,d=(p,y)=>p+y,g=Gn(t)&&(t._$total.length?t._$total.reduce(d)/2:0);return p=>{const y=a.getIndices(e,p,"getShapeX"),A=p.id in y?y[p.id]:0,w=(y.__max__||0)+1;let F=0;if(dn(p.x)){const N=i(p.x,!0);if(g){const D=t[p.id]||t._$width;F=l?N-D/2:N-D+t._$total.slice(0,A+1).reduce(d)-g}else F=N-(ye(t)?t:t._$width)*(w/2-(l?1:A))}return t&&F&&w>1&&c&&(A&&(F+=c*A),w>2?F-=(w-1)*c/2:w===2&&(F-=c/2)),F}},getShapeY(t){const e=this,r=e.isStackNormalized();return a=>{let{value:o}=a;return ye(a)?o=a:e.isAreaRangeType(a)?o=e.getBaseValue(a,"mid"):r?o=e.getRatio("index",a,!0):e.isBubbleZType(a)?o=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(o=o[1]),e.getYScaleById(a.id,t)(o)}},getShapeYMin(t){const e=this,r=e.axis.getId(t),a=e.scale[r],[o]=a.domain(),s=e.config[`axis_${r}_inverted`];return!e.isGrouped(t)&&!s&&o>0?o:0},getShapeOffsetData(t){const e=this,r=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=r.map(g=>g.id).join("_"),o=`${cn.shapeOffset}_${a}`,s=e.cache.get(o);if(s)return s;const i=e.isStackNormalized(),l=r.map(g=>{let p=g.values;const y={};e.isStepType(g)&&(p=e.convertValuesToStep(p));const A=p.reduce((w,F)=>{const N=Number(F.x);return w[N]=F,y[N]=i?e.getRatio("index",F,!0):F.value,w},{});return{id:g.id,rowValues:p,rowValueMapByXValue:A,values:y}}),d={indexMapByTargetId:r.reduce((g,{id:p},y)=>(g[p]=y,g),{}),shapeOffsetTargets:l};return e.cache.add(o,d),d},getShapeOffset(t,e,r){const a=this,{shapeOffsetTargets:o,indexMapByTargetId:s}=a.getShapeOffsetData(t),i=a.config.data_groupsZeroAs;return(l,c)=>{const{id:d,value:g,x:p}=l,y=a.getIndices(e,l),A=a.getYScaleById(d,r);if(a.isBarRangeType(l))return A(g[0]);const w=Number(p),F=A(i==="zero"?0:a.getShapeYMin(d));let N=F;return o.filter(D=>D.id!==d&&y[D.id]===y[d]).forEach(D=>{const{id:K,rowValueMapByXValue:J,rowValues:W,values:rt}=D;if(s[K]<s[d]){const Q=rt[w];let ot=W[c];(!ot||Number(ot.x)!==w)&&(ot=J[w]),(ot==null?void 0:ot.value)*g>=0&&ye(Q)&&(g!==0||i==="positive"&&Q>0||i==="negative"&&Q<0)&&(N+=A(Q)-F)}}),N}},circleY(t,e){const r=this,a=t.id;let o;return r.isGrouped(a)&&(o=ty.bind(r)(t)),o?o(t,e)[0][1]:r.getYScaleById(a)(r.getBaseValue(t))},getBarW(t,e,r){var a,o,s,i,l;const c=this,{config:d,org:g,scale:p,state:y}=c,A=c.getMaxDataCount(),w=t==="bar"&&((a=d.data_groups)==null?void 0:a.length),F=`${t}_width`,{k:N}=(s=(o=c.getZoomTransform)==null?void 0:o.call(c))!=null?s:{k:1},D=[(i=d.axis_x_min)!=null?i:g.xDomain[0],(l=d.axis_x_max)!=null?l:g.xDomain[1]].map(c.axis.isTimeSeries()?Jn.bind(c):Number);let K=e.tickInterval(A);if(p.zoom&&!c.axis.isCategorized()&&N>1){const rt=D.every((Q,ot)=>Q===g.xDomain[ot]);K=g.xDomain.map((Q,ot)=>{const vt=rt?Q:Q-Math.abs(D[ot]);return p.zoom(vt)}).reduce((Q,ot)=>Math.abs(Q)+ot)/A}const J=rt=>{const Q=rt?d[F][rt]:d[F],ot=rt?Q.ratio:d[`${F}_ratio`],vt=rt?Q.max:d[`${F}_max`],$t=ye(Q)?Q:de(Q)?Q.call(c,y.width,r,A):r?K*ot/r:0;return vt&&$t>vt?vt:$t};let W=J();return!w&&Gn(d[F])&&(W={_$width:W,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(rt=>{d[F][rt.id]&&(W[rt.id]=J(rt.id),W._$total.push(W[rt.id]||W._$width))})),W},getShapeByIndex(t,e,r){const a=this,{$el:o}=a,s=Ne(e)?`-${e}`:"";let i=o[t];return i&&!i.empty()?i=i.filter(l=>r?l.id===r:!0).filter(l=>Ne(e)?l.index===e:!0):i=(r?o.main.selectAll(`.${Ve[`${t}s`]}${a.getTargetSelectorSuffix(r)}`):o.main).selectAll(`.${Ve[t]}${s}`),i},isWithinShape(t,e){var r;const a=this,o=st(t);let s;return a.isTargetToShow(e.id)?(r=a.hasValidPointType)!=null&&r.call(a,t.nodeName)?s=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(a.getBaseValue(e))):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(s=o.classed(Ve.bar)?a.isWithinBar(t):!0):s=!1,s},getInterpolate(t){const r=this.getInterpolateType(t);return{basis:Lm,"basis-closed":Fm,"basis-open":Bm,bundle:Um,cardinal:zm,"cardinal-closed":jm,"cardinal-open":Gm,"catmull-rom":Hm,"catmull-rom-closed":Wm,"catmull-rom-open":Ym,"monotone-x":Km,"monotone-y":Zm,natural:Jm,"linear-closed":Qm,linear:xi,step:km,"step-after":_m,"step-before":qm}[r]},getInterpolateType(t){const e=this,{config:r}=e,a=r.spline_interpolation_type,o=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?o:e.isStepType(t)?r.line_step_type:"linear"},isWithinBar(t){const e=Zn(this.state.event,t),r=ec(t),[a,o]=r,s=Math.min(a.x,o.x),i=Math.min(a.y,o.y),l=this.config.bar_sensitivity,{width:c,height:d}=Ar(t,!0),g=s-l,p=s+c+l,y=i+d+l,A=i-l;return g<e[0]&&e[0]<p&&A<e[1]&&e[1]<y}},ny=Object.defineProperty,ry=(t,e,r)=>e in t?ny(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Pn=(t,e,r)=>ry(t,typeof e!="symbol"?e+"":e,r);class Xr{constructor(e){Pn(this,"api"),Pn(this,"config"),Pn(this,"cache"),Pn(this,"$el"),Pn(this,"state"),Pn(this,"charts"),Pn(this,"data",{xs:{},targets:[]}),Pn(this,"axis"),Pn(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),Pn(this,"org",{xScale:null,xDomain:null}),Pn(this,"color"),Pn(this,"patterns"),Pn(this,"levelColor"),Pn(this,"point"),Pn(this,"brush"),Pn(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const r=this;r.api=e,r.config=new Br,r.cache=new kg;const a=new Kg;r.$el=a.getStore("element"),r.state=a.getStore("state"),r.$T=r.$T.bind(r)}$T(e,r,a){const{config:o,state:s}=this,i=o.transition_duration,l=o.subchart_show;let c=e;return c&&("tagName"in c&&(c=st(c)),c=(r!==!1&&i||r)&&(!s.zooming||s.dragging)&&!s.resizing&&s.rendered&&!l?c.transition(a).duration(i):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),_e(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),_e(e.config.onafterinit,e.api)}init(){const e=this,{config:r,state:a,$el:o}=e,{boost_useCssRule:s,bindto:i}=r;qg(e);const l=e.hasArcType();if(a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!l&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*ar()}`,s){const d=mn.createElement("style");d.type="text/css",mn.head.appendChild(d),a.style={rootSelctor:`.${a.datetimeId}`,sheet:d.sheet},o.style=d}const c={element:i,classname:"bb"};Ge(i)&&(c.element=i.element||"#chart",c.classname=i.classname||c.classname),o.chart=de(c.element.node)?i.element:st(c.element||[]),o.chart.empty()&&(o.chart=st(mn.body.appendChild(mn.createElement("div")))),o.chart.html("").classed(c.classname,!0).classed(a.datetimeId,s).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const r=this,{config:a,state:o,$el:{chart:s}}=r,i=()=>Ug(s,{display:"none",visibility:"hidden"}),l=a.render.lazy===!1?!1:a.render.lazy||i(),c=ze.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((d,g)=>{i()||(g.disconnect(),!o.rendered&&r.initToRender(!0))}).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&r.convertData(a,d=>{r.initWithData(d),r.afterInit()})}initParams(){var e;const r=this,{config:a,format:o,state:s}=r;if(r.color=r.generateColor(),r.levelColor=r.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(r.hasPointType()||(e=r.hasLegendDefsPoint)!=null&&e.call(r))&&(r.point=r.generatePoint()),s.hasAxis){r.initClip(),o.extraLineClasses=r.generateExtraLineClass(),o.dataTime=a.data_xLocaltime?ki:qi,o.axisTime=a.axis_x_localtime?cs:us;const d=a.zoom_enabled&&a.zoom_type==="drag";o.defaultAxisTime=g=>{const{x:p,zoom:y}=r.scale,A=d?y:y&&p.orgDomain().toString()!==y.domain().toString(),w=g.getMilliseconds()&&".%L"||g.getSeconds()&&".:%S"||g.getMinutes()&&"%I:%M"||g.getHours()&&"%I %p"||g.getDate()!==1&&"%b %d"||A&&g.getDate()===1&&"%b'%y"||g.getMonth()&&"%-m/%-d"||"%Y";return o.axisTime(w)(g)}}const{legend_position:i,legend_inset_anchor:l,axis_rotated:c}=a;s.isLegendRight=i==="right",s.isLegendInset=i==="inset",s.isLegendTop=l==="top-left"||l==="top-right",s.isLegendLeft=l==="top-left"||l==="bottom-left",s.rotatedPadding.top=r.getResettedPadding(s.rotatedPadding.top),s.rotatedPadding.right=c&&!a.axis_x_show?0:30,s.inputType=zg(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var r,a,o;const s=this,{config:i,scale:l,state:c,$el:d,org:g}=s,{hasAxis:p,hasFunnel:y,hasTreemap:A}=c,w=i.interaction_enabled,F=s.hasType("polar"),N=i.data_labels_backgroundColors;if(p&&(s.axis=s.getAxisInstance(),i.zoom_enabled&&s.initZoom()),s.data.xs={},s.data.targets=s.convertDataToTargets(e),i.data_filter&&(s.data.targets=s.data.targets.filter(i.data_filter.bind(s.api))),i.data_hide&&s.addHiddenTargetIds(i.data_hide===!0?s.mapToIds(s.data.targets):i.data_hide),i.legend_hide&&s.addHiddenLegendIds(i.legend_hide===!0?s.mapToIds(s.data.targets):i.legend_hide),s.updateSizes(),s.updateScales(!0),p){const{x:J,y:W,y2:rt,subX:Q,subY:ot,subY2:vt}=l;J&&(J.domain(sa(s.getXDomain(s.data.targets),!i.axis_x_inverted)),Q.domain(J.domain()),g.xDomain=J.domain()),W&&(W.domain(s.getYDomain(s.data.targets,"y")),ot.domain(W.domain())),rt&&(rt.domain(s.getYDomain(s.data.targets,"y2")),vt&&vt.domain(rt.domain()))}if(d.svg=d.chart.append("svg").style("overflow","hidden").style("display","block"),w&&c.inputType){const J=c.inputType==="touch",{onclick:W,onover:rt,onout:Q}=i;d.svg.on("click",(W==null?void 0:W.bind(s.api))||null).on(J?"touchstart":"mouseenter",(rt==null?void 0:rt.bind(s.api))||null,J?{passive:!0}:void 0).on(J?"touchend":"mouseleave",(Q==null?void 0:Q.bind(s.api))||null)}i.svg_classname&&d.svg.attr("class",i.svg_classname);const D=de(i.color_tiles)&&s.patterns;(p||D||F||A||N||(r=s.hasLegendDefsPoint)!=null&&r.call(s))&&(d.defs=d.svg.append("defs"),p&&["id","idXAxis","idYAxis","idGrid"].forEach(J=>{s.appendClip(d.defs,c.clip[J])}),s.generateTextBGColorFilter(N),D&&s.patterns.forEach(J=>d.defs.append(()=>J.node))),s.updateSvgSize(),s.bindResize();const K=d.svg.append("g").classed(Ee.main,!0).attr("transform",y||A?null:s.getTranslate("main"));if(d.main=K,i.subchart_show&&s.initSubchart(),i.tooltip_show&&s.initTooltip(),i.title_text&&s.initTitle(),!A&&i.legend_show&&s.initLegend(),i.data_empty_label_text&&K.append("text").attr("class",`${pn.text} ${Ee.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),p&&(i.regions.length&&s.initRegion(),!i.clipPath&&s.axis.init()),K.append("g").classed(Ee.chart,!0).attr("clip-path",p?c.clip.path:null),s.callPluginHook("$init"),s.initChartElements(),p&&(w&&((a=s.initEventRect)==null||a.call(s)),s.initGrid(),i.clipPath&&((o=s.axis)==null||o.init())),s.updateTargets(s.data.targets),s.updateDimension(),_e(i.oninit,s.api),s.setBackground(),s.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),i.data_onmin||i.data_onmax){const J=s.getMinMaxData();_e(i.data_onmin,s.api,J.min),_e(i.data_onmax,s.api,J.max)}i.tooltip_show&&s.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:r,hasRadar:a,hasTreemap:o}=e.state,s=[];if(r){const i=["bar","bubble","candlestick","line"];e.config.bar_front&&i.push(i.shift());for(const l of i){const c=bn(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&s.push(c)}}else if(o)s.push("Treemap");else if(e.hasType("funnel"))s.push("Funnel");else{const i=e.hasType("polar"),l=e.hasType("gauge");a||s.push("Arc","Pie"),l?s.push("Gauge"):a?s.push("Radar"):i&&s.push("Polar")}for(const i of s)e[`init${i}`]();dn(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:r,svg:a,defs:o,main:s,tooltip:i,legend:l,title:c,grid:d,needle:g,arcs:p,circle:y,bar:A,candlestick:w,line:F,area:N,text:D}}=e;e.api.$={chart:r,svg:a,defs:o,main:s,tooltip:i,legend:l,title:c,grid:d,arc:p,circles:y,bar:{bars:A},candlestick:w,line:{lines:F,areas:N},needle:g,text:{texts:D}}}setBackground(){const e=this,{config:{background:r},state:a,$el:{svg:o}}=e;if(dn(r)){const s=o.select("g").insert(r.imgUrl?"image":"rect",":first-child");r.imgUrl?s.attr("href",r.imgUrl):r.color&&s.style("fill",r.color).attr("clip-path",a.clip.path),s.attr("class",r.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var r,a;const o=this,{hasAxis:s,hasFunnel:i,hasRadar:l,hasTreemap:c}=o.state,d=p=>o[`updateTargetsFor${p}`](e.filter(o[`is${p}Type`].bind(o)));if(o.updateTargetsForText(e),s){const p=["bar","candlestick","line"];for(const y of p){const A=bn(y);(y==="line"&&o.hasTypeOf(A)||o.hasType(y))&&d(A)}(r=o.updateTargetsForSubchart)==null||r.call(o,e)}else if(o.hasArcType(e)){let p="Arc";l?p="Radar":o.hasType("polar")&&(p="Polar"),d(p)}else i?d("Funnel"):c&&d("Treemap");const g=o.hasType("bubble")||o.hasType("scatter");g&&((a=o.updateTargetForCircle)==null||a.call(o)),o.filterTargetsToShowAtInit(g)}filterTargetsToShowAtInit(e=!1){const r=this,{$el:{svg:a},$T:o}=r;let s=`.${Ee.target}`;e&&(s+=`, .${En.chartCircles} > .${En.circles}`),o(a.selectAll(s).filter(i=>r.isTargetToShow(i.id))).style("opacity",null)}getWithOption(e){const r={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};for(const[a,o]of Object.entries(r)){const s=je(o)?r[o]:o;r[a]=$r(e,`with${a}`,s)}return r}initialOpacity(e){const r=this,{withoutFadeIn:a}=r.state;return r.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{$el:r,config:a,state:o}=e,s=np(a.resize_timer),{resize_auto:i}=a,l=[];l.push(()=>_e(a.onresize,e.api)),/^(true|parent)$/.test(i)&&l.push(()=>{o.resizing=!0,a.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),l.push(()=>{_e(a.onresized,e.api),o.resizing=!1}),l.forEach(c=>s.add(c)),e.resizeFunction=s,i==="parent"?(e.resizeFunction.resizeObserver=new ResizeObserver(e.resizeFunction.bind(e))).observe(r.chart.node().parentNode):ze.addEventListener("resize",e.resizeFunction)}callPluginHook(e,...r){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...r)})}}$n(Xr.prototype,[pp,mp,yp,Ep,Ip,Cp,Pp,Ap,Mp,Dp,Np,$m,ey,Am,Em,Pm,Mm,wm,Dm,Nm]);function ay(t){const e=this.config;let r,a,o;const s=()=>{const i=a.shift();if(i&&r&&Gn(r)&&i in r)return r=r[i],s();if(!i)return r};Object.keys(e).forEach(i=>{r=t,a=i.split("_"),o=s(),Qe(o)&&(e[i]=o)}),this.api&&(this.state.orgConfig=t)}var oy={resize(t){const e=this.internal,{config:r,state:a}=e;a.rendered&&(r.size_width=t?t.width:null,r.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,r;const a=this.internal,{state:o,$el:{zoomResetBtn:s}}=a;o.rendered?(o.resizing?(e=a.brush)==null||e.updateResize():(r=a.axis)==null||r.setOrient(),s==null||s.style("display","none"),a.scale.zoom&&(o.current.zoomDomain=a.scale.zoom.domain()),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!o.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect()),o.current.zoomDomain&&(a.api.zoom(o.current.zoomDomain),o.current.zoomDomain=null)):a.initToRender(!0)},destroy(){var t;const e=this.internal,{$el:{chart:r,style:a,svg:o}}=e;if(dn(e)){e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),o.select("*").interrupt(),e.resizeFunction.clear(),(t=e.resizeFunction.resizeObserver)==null||t.disconnect(),ze.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).style("position",null).selectChildren().remove(),a&&a.parentNode.removeChild(a),Object.keys(this).forEach(s=>{s==="internal"&&Object.keys(e).forEach(i=>{e[i]=null}),this[s]=null,delete this[s]});for(const s in this)this[s]=()=>{}}return null},config(t,e,r){const a=this.internal,{config:o,state:s}=a,i=t==null?void 0:t.replace(/\./g,"_");let l;return t&&i in o?Qe(e)?(o[i]=e,l=e,r&&this.flush()):l=o[i]:(arguments.length===0||Kn(t))&&(l=s.orgConfig),l}},sy={color(t){return this.internal.color(t)}};const Tu=function(t){const{targets:e}=this.internal.data;if(!ln(t)){const r=Xe(t)?t:[t];return e.filter(a=>r.some(o=>o===a.id))}return e};$n(Tu,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let r=null;if(t){const a=this.data(t);Xe(a)&&(r=[],a.forEach(o=>{const s=o.values.map(i=>i.value);e?r=r.concat(s):r.push(s)}))}return r},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 iy={data:Tu};const ly=t=>{var e,r;return(r=(e=ze).btoa)==null?void 0:r.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,o)=>String.fromCharCode(+`0x${o}`)))};function cy(t,e,r){const{width:a,height:o}=e||r,s=new XMLSerializer,i=t.cloneNode(!0),l=Fg(Fr(mn.styleSheets)).filter(y=>y.cssText).map(y=>y.cssText);i.setAttribute("xmlns",Gt.xhtml),i.style.margin="0",i.style.padding="0",e.preserveFontStyle&&i.querySelectorAll("text").forEach(y=>{y.innerHTML=""});const c=s.serializeToString(i),d=mn.createElement("style");d.appendChild(mn.createTextNode(l.join(`
|
|
52
|
+
`)));const g=s.serializeToString(d),p=`<svg xmlns="${Gt.svg}" width="${a}" height="${o}"
|
|
52
53
|
viewBox="0 0 ${r.width} ${r.height}"
|
|
53
54
|
preserveAspectRatio="${(e==null?void 0:e.preserveAspectRatio)===!1?"none":"xMinYMid meet"}">
|
|
54
55
|
<foreignObject width="100%" height="100%">
|
|
55
|
-
${
|
|
56
|
+
${g}
|
|
56
57
|
${c.replace(/(url\()[^#]+/g,"$1")}
|
|
57
|
-
</foreignObject></svg>`;return`data:image/svg+xml;base64,${Xm(p)}`}function Wm(t,e){const{top:r,left:a}=e,{x:o,y:i}=Er(t,!0),{a:s,b:l,c,d:f,e:v,f:p}=t.getScreenCTM(),{width:y,height:A}=Sn(t,!0);return{x:s*o+c*i+v-a,y:l*o+f*i+p-r+(A-Math.round(A/4)),width:y,height:A}}function Ym(t){const{left:e,top:r}=Sn(t),a=i=>i.textContent||i.childElementCount,o=[];return Br(t.querySelectorAll("text")).filter(a).forEach(i=>{const s=l=>{const{fill:c,fontFamily:f,fontSize:v,textAnchor:p,transform:y}=je.getComputedStyle(l),{x:A,y:w,width:L,height:N}=Wm(l,{left:e,top:r});return{[l.textContent]:{x:A,y:w,width:L,height:N,fill:c,fontFamily:f,fontSize:v,textAnchor:p,transform:y}}};if(i.childElementCount>1){const l=[];return Br(i.querySelectorAll("tspan")).filter(a).forEach(c=>{o.push(s(c))}),l}else o.push(s(i))}),o}function Km(t,e){e.forEach(r=>{Object.keys(r).forEach(a=>{const{x:o,y:i,width:s,height:l,fill:c,fontFamily:f,fontSize:v,transform:p}=r[a];if(t.save(),t.font=`${v} ${f}`,t.fillStyle=c,p==="none")t.fillText(a,o,i);else{const y=p.replace(/(matrix|\(|\))/g,"").split(",");y.splice(4).every(A=>+A==0)?(y.push(o+s-s/4),y.push(i-l+l/3)):(y.push(o),y.push(i)),t.transform(...y),t.fillText(a,0,0)}t.restore()})})}var Zm={export(t,e){const r=this.internal,{state:a,$el:{chart:o,svg:i}}=r,{width:s,height:l}=a.current,c=ia(Object.create(null),{width:s,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),f=Hm(o.node(),c,{width:s,height:l}),v=c.preserveFontStyle?Ym(i.node()):[];if(e&&de(e)){const p=new Image;p.crossOrigin="Anonymous",p.onload=()=>{const y=mn.createElement("canvas"),A=y.getContext("2d");y.width=c.width||s,y.height=c.height||l,A.drawImage(p,0,0),v.length&&(Km(A,v),v.length=0),e.bind(this)(y.toDataURL(c.mimeType))},p.src=f}return f}},Jm={focus(t){const e=this.internal,{state:r}=e,a=e.mapToTargetIds(t),o=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),o.classed(qe.focused,!0).classed(qe.defocused,!1),e.hasArcType()&&!r.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${jn.gaugeValue}`)),e.toggleFocusLegend(a,!0),r.focusedTargetIds=a,r.defocusedTargetIds=r.defocusedTargetIds.filter(i=>a.indexOf(i)<0)},defocus(t){const e=this.internal,{state:r}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(qe.focused,!1).classed(qe.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${jn.gaugeValue}`)),e.toggleFocusLegend(a,!1),r.focusedTargetIds=r.focusedTargetIds.filter(i=>a.indexOf(i)<0),r.defocusedTargetIds=a},revert(t){const e=this.internal,{config:r,state:a,$el:o}=e,i=e.mapToTargetIds(t);o.svg.selectAll(e.selectorTargets(i)).classed(qe.focused,!1).classed(qe.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(i),r.legend_show&&(e.showLegend(i.filter(e.isLegendToShow.bind(e))),o.legend.selectAll(e.selectorLegends(i)).filter(function(){return it(this).classed(qe.legendItemFocused)}).classed(qe.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},Qm={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})}}},km={load(t){const e=this.internal,{config:r}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{r.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(r.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{r.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{r.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{Hl(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let r=t||{};Kn(r)&&this.tooltip.hide(),Xe(r)?r={ids:r}:Ue(r)&&(r={ids:[r]});const a=e.mapToTargetIds(r.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),xc.call(e,r.done,r.resizeAfter)})}};function pu(t,e,r){const a=this.internal,o=a.mapToTargetIds(e),i=a.state.hiddenTargetIds.map(c=>o.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](o);const s=a.$el.svg.selectAll(a.selectorTargets(o)),l=t?null:"0";t&&i.length&&(s.style("display",null),_e(a.config.data_onshown,this,i)),a.$T(s).style("opacity",l,"important").call(Ro,()=>{var c;!t&&i.length===0&&(s.style("display","none"),_e((c=a.config)==null?void 0:c.data_onhidden,this,o)),s.style("opacity",l)}),r.withLegend&&a[`${t?"show":"hide"}Legend`](o),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var qm={show(t,e={}){pu.call(this,!0,t,e)},hide(t,e={}){pu.call(this,!1,t,e)},toggle(t,e={}){const r=this.internal,a={show:[],hide:[]};r.mapToTargetIds(t).forEach(o=>a[r.isTargetToShow(o)?"hide":"show"].push(o)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},_m={tooltip:{show:function(t){var e,r,a;const o=this.internal,{$el:i,config:s,state:{eventReceiver:l,hasFunnel:c,hasTreemap:f,inputType:v}}=o;let p,y;if(t.mouse&&(y=t.mouse),t.data){const{data:A}=t,w=(e=o.getYScaleById(A.id))==null?void 0:e(A.value);if((c||f)&&A.id){const L=o.selectorTarget(A.id,void 0,`.${sn.shape}`);l.rect=i.main.select(L)}else o.isMultipleX()?y=[o.xx(A),w]:(s.tooltip_grouped||(y=[0,w]),p=(a=A.index)!=null?a:o.hasArcType()&&A.id?(r=o.getArcElementByIdOrIndex(A.id))==null?void 0:r.datum().index:o.getIndexByX(A.x))}else Qe(t.x)?p=o.getIndexByX(t.x):Qe(t.index)&&(p=t.index);(v==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(A=>{o.dispatchEvent(A,p,y)})},hide:function(){var t,e,r;const a=this.internal,{state:{inputType:o},$el:{tooltip:i}}=a,s=i==null?void 0:i.datum();if(s){const{index:l}=JSON.parse(s.current)[0];(o==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}o==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(r=a.expandBarTypeShapes)==null||r.call(a,!1)}}},ty=Object.defineProperty,ey=(t,e,r)=>e in t?ty(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mu=(t,e,r)=>ey(t,typeof e!="symbol"?e+"":e,r);class Rr{constructor(e){mu(this,"plugins",[]),mu(this,"internal");const r=new Hr(this);this.internal=r,(function a(o,i,s){Object.keys(o).forEach(l=>{const c=de(o[l]),f=i!==s,v=dn(o[l]),p=v&&Object.keys(o[l]).length>0;c&&(!f&&p||f)?i[l]=o[l].bind(s):v&&!c?i[l]={}:i[l]=o[l],p&&a(o[l],i[l],s)})})(Rr.prototype,this,this),zm.call(r,e),r.beforeInit(),r.init()}}$n(Rr.prototype,[jm,Gm,Vm,Zm,Jm,Qm,km,qm,_m]);function yu(t=!1,e,r,a){const o=this,{config:i,$el:{main:s}}=o,l=i.data_selection_grouped,c=i.data_selection_isselectable.bind(o.api);i.data_selection_enabled&&s.selectAll(`.${sn.shapes}`).selectAll(`.${sn.shape}`).each(function(f){const v=it(this),{id:p,index:y}=f.data?f.data:f,A=o.getToggle(this,f).bind(o),w=l||!e||e.indexOf(p)>=0,L=!r||r.indexOf(y)>=0,N=v.classed(tn.SELECTED);v.classed(dr.line)||v.classed(ao.area)||(t?w&&L&&c(f)&&!N?A(!0,v.classed(tn.SELECTED,!0),f,y):Qe(a)&&a&&N&&A(!1,v.classed(tn.SELECTED,!1),f,y):w&&L&&c(f)&&N&&A(!1,v.classed(tn.SELECTED,!1),f,y))})}var ny={selected(t){const e=this.internal,r=[];return e.$el.main.selectAll(`.${sn.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${sn.shape}`).filter(function(){return it(this).classed(tn.SELECTED)}).each(a=>r.push(a)),r},select(t,e,r){const a=this.internal;yu.bind(a)(!0,t,e,r)},unselect(t,e){const r=this.internal;yu.bind(r)(!1,t,e)}};const xu=function(t){var e;const r=this.internal,{axis:a,brush:o,config:i,scale:{x:s,subX:l},state:c}=r;let f;return i.subchart_show&&(f=t,Array.isArray(f)?(a.isTimeSeries()&&(f=f.map(p=>Jn.bind(r)(p))),r.withinRange(f,r.getZoomDomain("subX",!0),r.getZoomDomain("subX"))&&(c.domain=f,o.move(o.getSelection(),f.map(l)))):f=(e=c.domain)!=null?e:s.orgDomain()),f};$n(xu,{show(){var t,e;const r=this.internal,{$el:{subchart:a},config:o}=r,i=o.subchart_show;if(!i){r.unbindZoomEvent(),o.subchart_show=!i,!a.main&&r.initSubchart();let s=a.main.selectAll(`.${Ee.target}`);r.data.targets.length!==s.size()&&(r.updateSizes(),r.updateTargetsForSubchart(r.data.targets),s=(t=a.main)==null?void 0:t.selectAll(`.${Ee.target}`)),s==null||s.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:r}=t;r.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(r.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 ry={subchart:xu},ay=1e-12;function Tu(t){return((t=Math.exp(t))+1/t)/2}function oy(t){return((t=Math.exp(t))-1/t)/2}function iy(t){return((t=Math.exp(2*t))-1)/(t+1)}var sy=(function t(e,r,a){function o(i,s){var l=i[0],c=i[1],f=i[2],v=s[0],p=s[1],y=s[2],A=v-l,w=p-c,L=A*A+w*w,N,D;if(L<ay)D=Math.log(y/f)/e,N=function(ot){return[l+ot*A,c+ot*w,f*Math.exp(e*ot*D)]};else{var K=Math.sqrt(L),Z=(y*y-f*f+a*L)/(2*f*r*K),H=(y*y-f*f-a*L)/(2*y*r*K),nt=Math.log(Math.sqrt(Z*Z+1)-Z),Q=Math.log(Math.sqrt(H*H+1)-H);D=(Q-nt)/e,N=function(ot){var vt=ot*D,$t=Tu(nt),Tt=f/(r*K)*($t*iy(e*vt+nt)-oy(nt));return[l+Tt*A,c+Tt*w,f*$t/Tu(e*vt+nt)]}}return N.duration=D*1e3*e/Math.SQRT2,N}return o.rho=function(i){var s=Math.max(.001,+i),l=s*s,c=l*l;return t(s,l,c)},o})(Math.SQRT2,2,4),Ko=(t=>()=>t);function ly(t,{sourceEvent:e,target:r,transform:a,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function mr(t,e,r){this.k=t,this.x=e,this.y=r}mr.prototype={constructor:mr,scale:function(t){return t===1?this:new mr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new mr(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 ir=new mr(1,0,0);xs.prototype=mr.prototype;function xs(t){for(;!t.__zoom;)if(!(t=t.parentNode))return ir;return t.__zoom}function Ts(t){t.stopImmediatePropagation()}function Ga(t){t.preventDefault(),t.stopImmediatePropagation()}function cy(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function uy(){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 Su(){return this.__zoom||ir}function fy(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function dy(){return navigator.maxTouchPoints||"ontouchstart"in this}function hy(t,e,r){var a=t.invertX(e[0][0])-r[0][0],o=t.invertX(e[1][0])-r[1][0],i=t.invertY(e[0][1])-r[0][1],s=t.invertY(e[1][1])-r[1][1];return t.translate(o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function vy(){var t=cy,e=uy,r=hy,a=fy,o=dy,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=sy,f=so("start","zoom","end"),v,p,y,A=500,w=150,L=0,N=10;function D(q){q.property("__zoom",Su).on("wheel.zoom",vt,{passive:!1}).on("mousedown.zoom",$t).on("dblclick.zoom",Tt).filter(o).on("touchstart.zoom",mt).on("touchmove.zoom",bt).on("touchend.zoom touchcancel.zoom",yt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(q,Et,dt,Rt){var kt=q.selection?q.selection():q;kt.property("__zoom",Su),q!==kt?nt(q,Et,dt,Rt):kt.interrupt().each(function(){Q(this,arguments).event(Rt).start().zoom(null,typeof Et=="function"?Et.apply(this,arguments):Et).end()})},D.scaleBy=function(q,Et,dt,Rt){D.scaleTo(q,function(){var kt=this.__zoom.k,Ht=typeof Et=="function"?Et.apply(this,arguments):Et;return kt*Ht},dt,Rt)},D.scaleTo=function(q,Et,dt,Rt){D.transform(q,function(){var kt=e.apply(this,arguments),Ht=this.__zoom,Kt=dt==null?H(kt):typeof dt=="function"?dt.apply(this,arguments):dt,se=Ht.invert(Kt),he=typeof Et=="function"?Et.apply(this,arguments):Et;return r(Z(K(Ht,he),Kt,se),kt,s)},dt,Rt)},D.translateBy=function(q,Et,dt,Rt){D.transform(q,function(){return r(this.__zoom.translate(typeof Et=="function"?Et.apply(this,arguments):Et,typeof dt=="function"?dt.apply(this,arguments):dt),e.apply(this,arguments),s)},null,Rt)},D.translateTo=function(q,Et,dt,Rt,kt){D.transform(q,function(){var Ht=e.apply(this,arguments),Kt=this.__zoom,se=Rt==null?H(Ht):typeof Rt=="function"?Rt.apply(this,arguments):Rt;return r(ir.translate(se[0],se[1]).scale(Kt.k).translate(typeof Et=="function"?-Et.apply(this,arguments):-Et,typeof dt=="function"?-dt.apply(this,arguments):-dt),Ht,s)},Rt,kt)};function K(q,Et){return Et=Math.max(i[0],Math.min(i[1],Et)),Et===q.k?q:new mr(Et,q.x,q.y)}function Z(q,Et,dt){var Rt=Et[0]-dt[0]*q.k,kt=Et[1]-dt[1]*q.k;return Rt===q.x&&kt===q.y?q:new mr(q.k,Rt,kt)}function H(q){return[(+q[0][0]+ +q[1][0])/2,(+q[0][1]+ +q[1][1])/2]}function nt(q,Et,dt,Rt){q.on("start.zoom",function(){Q(this,arguments).event(Rt).start()}).on("interrupt.zoom end.zoom",function(){Q(this,arguments).event(Rt).end()}).tween("zoom",function(){var kt=this,Ht=arguments,Kt=Q(kt,Ht).event(Rt),se=e.apply(kt,Ht),he=dt==null?H(se):typeof dt=="function"?dt.apply(kt,Ht):dt,Oe=Math.max(se[1][0]-se[0][0],se[1][1]-se[0][1]),Me=kt.__zoom,we=typeof Et=="function"?Et.apply(kt,Ht):Et,Ke=c(Me.invert(he).concat(Oe/Me.k),we.invert(he).concat(Oe/we.k));return function(ze){if(ze===1)ze=we;else{var hn=Ke(ze),ee=Oe/hn[2];ze=new mr(ee,he[0]-hn[0]*ee,he[1]-hn[1]*ee)}Kt.zoom(null,ze)}})}function Q(q,Et,dt){return!dt&&q.__zooming||new ot(q,Et)}function ot(q,Et){this.that=q,this.args=Et,this.active=0,this.sourceEvent=null,this.extent=e.apply(q,Et),this.taps=0}ot.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,Et){return this.mouse&&q!=="mouse"&&(this.mouse[1]=Et.invert(this.mouse[0])),this.touch0&&q!=="touch"&&(this.touch0[1]=Et.invert(this.touch0[0])),this.touch1&&q!=="touch"&&(this.touch1[1]=Et.invert(this.touch1[0])),this.that.__zoom=Et,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(q){var Et=it(this.that).datum();f.call(q,this.that,new ly(q,{sourceEvent:this.sourceEvent,target:D,type:q,transform:this.that.__zoom,dispatch:f}),Et)}};function vt(q,...Et){if(!t.apply(this,arguments))return;var dt=Q(this,Et).event(q),Rt=this.__zoom,kt=Math.max(i[0],Math.min(i[1],Rt.k*Math.pow(2,a.apply(this,arguments)))),Ht=Yn(q);if(dt.wheel)(dt.mouse[0][0]!==Ht[0]||dt.mouse[0][1]!==Ht[1])&&(dt.mouse[1]=Rt.invert(dt.mouse[0]=Ht)),clearTimeout(dt.wheel);else{if(Rt.k===kt)return;dt.mouse=[Ht,Rt.invert(Ht)],ea(this),dt.start()}Ga(q),dt.wheel=setTimeout(Kt,w),dt.zoom("mouse",r(Z(K(Rt,kt),dt.mouse[0],dt.mouse[1]),dt.extent,s));function Kt(){dt.wheel=null,dt.end()}}function $t(q,...Et){if(y||!t.apply(this,arguments))return;var dt=q.currentTarget,Rt=Q(this,Et,!0).event(q),kt=it(q.view).on("mousemove.zoom",he,!0).on("mouseup.zoom",Oe,!0),Ht=Yn(q,dt),Kt=q.clientX,se=q.clientY;gi(q.view),Ts(q),Rt.mouse=[Ht,this.__zoom.invert(Ht)],ea(this),Rt.start();function he(Me){if(Ga(Me),!Rt.moved){var we=Me.clientX-Kt,Ke=Me.clientY-se;Rt.moved=we*we+Ke*Ke>L}Rt.event(Me).zoom("mouse",r(Z(Rt.that.__zoom,Rt.mouse[0]=Yn(Me,dt),Rt.mouse[1]),Rt.extent,s))}function Oe(Me){kt.on("mousemove.zoom mouseup.zoom",null),pi(Me.view,Rt.moved),Ga(Me),Rt.event(Me).end()}}function Tt(q,...Et){if(t.apply(this,arguments)){var dt=this.__zoom,Rt=Yn(q.changedTouches?q.changedTouches[0]:q,this),kt=dt.invert(Rt),Ht=dt.k*(q.shiftKey?.5:2),Kt=r(Z(K(dt,Ht),Rt,kt),e.apply(this,Et),s);Ga(q),l>0?it(this).transition().duration(l).call(nt,Kt,Rt,q):it(this).call(D.transform,Kt,Rt,q)}}function mt(q,...Et){if(t.apply(this,arguments)){var dt=q.touches,Rt=dt.length,kt=Q(this,Et,q.changedTouches.length===Rt).event(q),Ht,Kt,se,he;for(Ts(q),Kt=0;Kt<Rt;++Kt)se=dt[Kt],he=Yn(se,this),he=[he,this.__zoom.invert(he),se.identifier],kt.touch0?!kt.touch1&&kt.touch0[2]!==he[2]&&(kt.touch1=he,kt.taps=0):(kt.touch0=he,Ht=!0,kt.taps=1+!!v);v&&(v=clearTimeout(v)),Ht&&(kt.taps<2&&(p=he[0],v=setTimeout(function(){v=null},A)),ea(this),kt.start())}}function bt(q,...Et){if(this.__zooming){var dt=Q(this,Et).event(q),Rt=q.changedTouches,kt=Rt.length,Ht,Kt,se,he;for(Ga(q),Ht=0;Ht<kt;++Ht)Kt=Rt[Ht],se=Yn(Kt,this),dt.touch0&&dt.touch0[2]===Kt.identifier?dt.touch0[0]=se:dt.touch1&&dt.touch1[2]===Kt.identifier&&(dt.touch1[0]=se);if(Kt=dt.that.__zoom,dt.touch1){var Oe=dt.touch0[0],Me=dt.touch0[1],we=dt.touch1[0],Ke=dt.touch1[1],ze=(ze=we[0]-Oe[0])*ze+(ze=we[1]-Oe[1])*ze,hn=(hn=Ke[0]-Me[0])*hn+(hn=Ke[1]-Me[1])*hn;Kt=K(Kt,Math.sqrt(ze/hn)),se=[(Oe[0]+we[0])/2,(Oe[1]+we[1])/2],he=[(Me[0]+Ke[0])/2,(Me[1]+Ke[1])/2]}else if(dt.touch0)se=dt.touch0[0],he=dt.touch0[1];else return;dt.zoom("touch",r(Z(Kt,se,he),dt.extent,s))}}function yt(q,...Et){if(this.__zooming){var dt=Q(this,Et).event(q),Rt=q.changedTouches,kt=Rt.length,Ht,Kt;for(Ts(q),y&&clearTimeout(y),y=setTimeout(function(){y=null},A),Ht=0;Ht<kt;++Ht)Kt=Rt[Ht],dt.touch0&&dt.touch0[2]===Kt.identifier?delete dt.touch0:dt.touch1&&dt.touch1[2]===Kt.identifier&&delete dt.touch1;if(dt.touch1&&!dt.touch0&&(dt.touch0=dt.touch1,delete dt.touch1),dt.touch0)dt.touch0[1]=this.__zoom.invert(dt.touch0[0]);else if(dt.end(),dt.taps===2&&(Kt=Yn(Kt,this),Math.hypot(p[0]-Kt[0],p[1]-Kt[1])<N)){var se=it(this).on("dblclick.zoom");se&&se.apply(this,arguments)}}}return D.wheelDelta=function(q){return arguments.length?(a=typeof q=="function"?q:Ko(+q),D):a},D.filter=function(q){return arguments.length?(t=typeof q=="function"?q:Ko(!!q),D):t},D.touchable=function(q){return arguments.length?(o=typeof q=="function"?q:Ko(!!q),D):o},D.extent=function(q){return arguments.length?(e=typeof q=="function"?q:Ko([[+q[0][0],+q[0][1]],[+q[1][0],+q[1][1]]]),D):e},D.scaleExtent=function(q){return arguments.length?(i[0]=+q[0],i[1]=+q[1],D):[i[0],i[1]]},D.translateExtent=function(q){return arguments.length?(s[0][0]=+q[0][0],s[1][0]=+q[1][0],s[0][1]=+q[0][1],s[1][1]=+q[1][1],D):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},D.constrain=function(q){return arguments.length?(r=q,D):r},D.duration=function(q){return arguments.length?(l=+q,D):l},D.interpolate=function(q){return arguments.length?(c=q,D):c},D.on=function(){var q=f.on.apply(f,arguments);return q===f?D:q},D.clickDistance=function(q){return arguments.length?(L=(q=+q)*q,D):Math.sqrt(L)},D.tapDistance=function(q){return arguments.length?(N=+q,D):N},D}const $u=function(t){var e;const r=this.internal,{axis:a,config:o,org:i,scale:s,state:l}=r,c=a.isCategorized();let f;if(o.zoom_enabled)if(f=t,Array.isArray(f)){if(a.isTimeSeries()&&(f=f.map(p=>Jn.bind(r)(p))),r.withinRange(f,r.getZoomDomain("zoom",!0),r.getZoomDomain("zoom"))){if(l.domain=f,f=r.getZoomDomainValue(f),r.api.tooltip.hide(),o.subchart_show){const p=s.zoom||s.x;r.brush.getSelection().call(r.brush.move,f.map(p))}else{const p=c?s.x.orgScale():i.xScale||s.x;r.updateCurrentZoomTransform(p,f)}r.setZoomResetButton()}}else f=r.zoom.getDomain();return(e=l.domain)!=null?e:f};$n($u,{enable(t){const e=this.internal,{config:r}=e;/^(drag|wheel)$/.test(t)&&(r.zoom_type=t),r.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:r,org:{xDomain:a}}=e;return(t===0||t)&&(r.zoom_x_max=er("max",[a[1],t])),r.zoom_x_max},min(t){const e=this.internal,{config:r,org:{xDomain:a}}=e;return(t===0||t)&&(r.zoom_x_min=er("min",[a[0],t])),r.zoom_x_min},range(t){const e=this.zoom;if(Ge(t)){const{min:r,max:a}=t;Qe(r)&&e.min(r),Qe(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var gy={zoom:$u,unzoom(){const t=this.internal,{config:e,$el:{eventRect:r,zoomResetBtn:a},scale:{zoom:o},state:i}=t;o&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(ir),t.updateZoom(!0),a==null||a.style("display","none"),xs(r.node())!==ir&&t.zoom.transform(r,ir),i.domain=void 0)}},py={initBrush(){const t=this,{config:e,scale:r,$el:{subchart:a},state:o}=t,i=e.axis_rotated,s=e.subchart_size_height;let l,c,f;t.brush=(i?ag():rg()).handleSize(5),t.brush.on("start brush end",v=>{const{selection:p,sourceEvent:y,target:A,type:w}=v;w==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=y?p:null),/(start|brush)/.test(w)&&(w==="brush"&&y&&o.domain&&(c==null||c.forEach((L,N)=>{L!==p[N]&&(o.domain[N]=r.x.orgDomain()[N])})),t.redrawForBrush(w!=="start")),w==="end"&&(l=r.x.orgDomain()),A!=null&&A.handle&&(p===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(L,N)=>{const D=[p[N],s/2];return`translate(${i?D.reverse():D})`}))}),t.brush.updateResize=function(){f&&clearTimeout(f),f=setTimeout(()=>{const v=this.getSelection();l&&Xl(v.node())&&this.move(v,l.map(r.subX.orgScale()))},0)},t.brush.update=function(){var v;return this.extent()()[1].filter(y=>isNaN(y)).length===0&&((v=a.main)==null||v.select(`.${Ve.brush}`).call(this)),this},t.brush.scale=function(v){const p=e.subchart_size_height;let y=t.axis.getExtent();!y&&v.range?y=[[0,0],[v.range()[1],p]]:Xe(y)&&(y=y.map((A,w)=>[A,w>0?p:w])),i&&y[1].reverse(),this.extent(y),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Ve.brush}`):it([])},initSubchart(){const t=this,{config:e,state:{clip:r,hasAxis:a},$el:{defs:o,svg:i,subchart:s,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",f=`${r.id}-subchart`,v=t.getClipPath(f);r.idSubchart=f,t.appendClip(o,f),t.initBrush(),s.main=i.append("g").classed(Ve.subchart,!0).attr("transform",t.getTranslate("context"));const{main:p}=s;p.style("visibility",c),p.append("g").attr("clip-path",v).attr("class",Ve.chart),["bar","line","bubble","candlestick","scatter"].forEach(A=>{const w=Rn(/^(bubble|scatter)$/.test(A)?"circle":A);if(t.hasType(A)||t.hasTypeOf(w)){const L=p.select(`.${Ve.chart}`),N=Ve[`chart${w}s`];L.select(`.${N}`).empty()&&L.append("g").attr("class",N)}});const y=p.append("g").attr("clip-path",v).attr("class",Ve.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(y),l.subX=p.append("g").attr("class",Ve.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:r}=e,a=r.axis_rotated,o=r.subchart_init_range,i="handle--custom",s=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(`.${i}`).data(a?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",i).attr("cursor",`${a?"ns":"ew"}-resize`).attr("d",l=>s[+/[se]/.test(l.type)]).attr("display",o?null:"none")},updateTargetsForSubchart(t){const e=this,{config:r,state:a,$el:{subchart:{main:o}}}=e;r.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(i=>e.hasType(i)||e.hasTypeOf(Rn(i))).forEach(i=>{const s=/^(bubble|scatter)$/.test(i),l=Rn(s?"circle":i),c=e.getChartClass(l,!0),f=e.getClass(s?"circles":`${i}s`,!0),v=o.select(`.${Ve[`chart${`${l}s`}`]}`);if(s){const p=v.selectAll(`.${Ve.circles}`).data(t.filter(e[`is${Rn(i)}Type`].bind(e))).attr("class",f);p.exit().remove(),p.enter().append("g").attr("class",f)}else{const p=v.selectAll(`.${Ve[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),y=p.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",f);p.exit().remove(),i==="line"&&e.hasTypeOf("Area")&&y.append("g").attr("class",e.getClass("areas",!0))}}),o.selectAll(`.${Ve.brush} rect`).attr(r.axis_rotated?"width":"height",r.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,r){var a;const o=this,{config:i,$el:{subchart:{main:s}},state:l}=o,c=!!e;if(s.style("visibility",i.subchart_show?null:"hidden"),i.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&o.brush.update(),t)){const f=i.subchart_init_range;if(!_l(o)&&o.brush.update(),Object.keys(r.type).forEach(v=>{const p=Rn(v),y=o[`generateDraw${p}`](r.indices[v],!0);o[`update${p}`](c,!0),o[`redraw${p}`](y,c,!0)}),o.hasType("bubble")||o.hasType("scatter")){const{cx:v}=r.pos,p=o.updateCircleY(!0);o.updateCircle(!0),o.redrawCircle(v,p,c,void 0,!0)}!l.rendered&&f&&(l.domain=f,o.brush.move(o.brush.getSelection(),f.map(o.scale.x)))}},redrawForBrush(t=!0){var e;const r=this,{config:{subchart_onbrush:a,zoom_rescale:o},scale:i,state:s}=r;r.redraw({withTransition:!1,withY:o,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&s.rendered&&a.bind(r.api)((e=s.domain)!=null?e:i.x.orgDomain())},transformContext(t,e){const r=this,{$el:{subchart:a},$T:o}=r,i=e!=null&&e.axisSubX?e.axisSubX:o(a.main.select(`.${Ve.axisX}`),t);a.main.attr("transform",r.getTranslate("context")),i.attr("transform",r.getTranslate("subX"))}},my={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.config.zoom_type==="drag"&&t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:r}=e;r.zoom_enabled&&t?!r.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:r,scale:a}=t,o=vy().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));o.orgScaleExtent=()=>{const i=e.zoom_extent||[1,10];return[i[0],Math.max(t.getMaxDataCount()/i[1],i[1])]},o.updateScaleExtent=function(){const i=Fr(t.scale.x.orgDomain())/Fr(t.getZoomDomain()),s=this.orgScaleExtent();return this.scaleExtent([s[0]*i,s[1]*i]),this},o.updateTransformScale=(i,s)=>{var l;const c=e.axis_rotated;(l=r.xScale)==null||l.range(a.x.range());const f=i[c?"rescaleY":"rescaleX"](r.xScale||a.x);if(f.domain().some(y=>/(Invalid Date|NaN)/.test(y.toString())))return;const v=t.trimXDomain(f.domain()),p=e.zoom_rescale;if(f.domain(v,r.xDomain),s){const y=f(a.x.domain()[0]),A=c?i.x:y,w=c?y:i.y;t.$el.eventRect.property("__zoom",ir.translate(A,w).scale(i.k))}a.zoom=t.getCustomizedXScale(f),t.axis.x.scale(a.zoom),p?(!r.xScale&&(r.xScale=a.x.copy()),a.x.domain(v)):r.xScale&&(a.x.domain(r.xScale.domain()),r.xScale=null)},o.getDomain=()=>{const i=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(i[1]-=2),i},t.zoom=o},onZoomStart(t){const e=this,{sourceEvent:r}=t;r&&(e.zoom.startEvent=r,e.state.zooming=!0,_e(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){const e=this,{config:r,scale:a,state:o,org:i}=e,{sourceEvent:s}=t,l=(t==null?void 0:t.transform)===ir;if(!r.zoom_enabled||e.filterTargetsToShow(e.data.targets).length===0||!a.zoom&&(s==null?void 0:s.type.indexOf("touch"))>-1&&(s==null?void 0:s.touches.length)===1)return;t.sourceEvent&&(o.zooming=!0,o.domain=void 0);const c=(s==null?void 0:s.type)==="mousemove",f=(s==null?void 0:s.wheelDelta)<0,{transform:v}=t;!c&&f&&a.x.domain().every((w,L)=>w!==i.xDomain[L])&&a.x.domain(i.xDomain),e.zoom.updateTransformScale(v,r.zoom_type==="wheel"&&s);const p=r.transition_duration>0&&!r.subchart_show&&(o.dragging||l||!t.sourceEvent),y=s&&c&&r.zoom_type!=="wheel",A=()=>{var w;e.redraw({withTransition:p,withY:r.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),e.state.cancelClick=c,!l&&_e(r.zoom_onzoom,e.api,(w=e.state.domain)!=null?w:e.zoom.getDomain())};y?ac(e.state,A):A()},onZoomEnd(t){var e,r;const a=this,{config:o,state:i}=a;let{startEvent:s}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===ir;(s==null?void 0:s.type.indexOf("touch"))>-1&&(s=s.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(o.zoom_type==="drag"&&l&&s.clientX===l.clientX&&s.clientY===l.clientY)&&(i.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||i.dragging)&&_e(o.zoom_onzoomend,a.api,(r=a.state.domain)!=null?r:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:r,x:a,zoom:o}=e.scale;if(o){const i=o.domain(),s=r.domain(),l=.015,c=e.config.axis_x_inverted?(i[0]>=s[0]||i[0]+l>=s[0])&&(s[1]>=i[1]||s[1]>=i[1]+l):(i[0]<=s[0]||i[0]-l<=s[0])&&(s[1]<=i[1]||s[1]<=i[1]-l);(t||c)&&(e.axis.x.scale(r),a.domain(r.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const r=this,{$el:{eventRect:a},config:o}=r,i=o.axis_rotated,s=[-t(e[0]),0],l=ir.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...i?s.reverse():s);a.call(r.zoom.transform,l)},bindZoomOnEventRect(){var t;const e=this,{config:r,$el:{eventRect:a,svg:o}}=e,i=r.zoom_type==="drag"?e.zoomBehaviour:e.zoom;je.GestureEvent&&/^((?!chrome|android|mobile).)*safari/i.test((t=je.navigator)==null?void 0:t.userAgent)&&o.on("wheel",()=>{}),a==null||a.call(i).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:r}=t,a=e.axis_rotated;let o=0,i=0,s,l;const c={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=Tc().clickDistance(4).on("start",function(f){l=t.scale.zoom?null:t.axis.getExtent(),r.event=f,t.setDragStatus(!0),t.unselectRect(),s||(s=t.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",hi.zoomBrush).attr("width",a?r.width:0).attr("height",a?0:r.height)),o=Zn(f,this)[c.index],l&&(o<l[0]?o=l[0]:o>l[1]&&(o=l[1])),i=o,s.attr(c.axis,o).attr(c.attr,0),t.onZoomStart(f)}).on("drag",function(f){i=Zn(f,this)[c.index],l&&(i>l[1]?i=l[1]:i<l[0]&&(i=l[0])),s.attr(c.axis,Math.min(o,i)).attr(c.attr,Math.abs(i-o))}).on("end",f=>{const v=t.scale.zoom||t.scale.x;r.event=f,s.attr(c.axis,0).attr(c.attr,0),o>i&&([o,i]=[i,o]),o<0&&(i+=Math.abs(o),o=0),o!==i&&t.api.zoom([o,i].map(p=>v.invert(p))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:r}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(r.zoomResetBtn?r.zoomResetBtn.style("display",null):r.zoomResetBtn=t.$el.chart.append("div").classed(Ee.button,!0).append("span").on("click",function(){de(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(hi.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?xs(e.node()):{k:1}}},yy={drag(t){const e=this,{config:r,state:a,$el:{main:o}}=e,i=r.data_selection_grouped,s=r.interaction_enabled&&r.data_selection_isselectable;if(e.hasArcType()||!r.data_selection_enabled||r.zoom_enabled&&!e.zoom.altDomain||!r.data_selection_multiple)return;const[l,c]=a.dragStart||[0,0],[f,v]=t,p=Math.min(l,f),y=Math.max(l,f),A=i?a.margin.top:Math.min(c,v),w=i?a.height:Math.max(c,v),L=()=>{!e||!e.$el||!e.$el.main||(o.select(`.${Mr.dragarea}`).attr("x",p).attr("y",A).attr("width",y-p).attr("height",w-A),o.selectAll(`.${sn.shapes}`).selectAll(`.${sn.shape}`).filter(N=>s==null?void 0:s.bind(e.api)(N)).each(function(N,D){const K=it(this),Z=K.classed(tn.SELECTED),H=K.classed(Mr.INCLUDED);let nt=!1,Q;if(K.classed(En.circle)){const ot=+K.attr("cx")*1,vt=+K.attr("cy")*1;Q=e.togglePoint,nt=p<ot&&ot<y&&A<vt&&vt<w}else if(K.classed(zn.bar)){const{x:ot,y:vt,width:$t,height:Tt}=kl(this);Q=e.togglePath,nt=!(y<ot||ot+$t<p)&&!(w<vt||vt+Tt<A)}else return;nt^H&&(K.classed(Mr.INCLUDED,!H),K.classed(tn.SELECTED,!Z),Q.call(e,!Z,K,N,D))}))};ac(e.state,L)},dragstart(t){const e=this,{config:r,state:a,$el:{main:o}}=e;e.hasArcType()||!r.data_selection_enabled||(a.dragStart=t,o.select(`.${Ee.chart}`).append("rect").attr("class",Mr.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend(){const t=this,{config:e,$el:{main:r},$T:a}=t;t.hasArcType()||!e.data_selection_enabled||(a(r.select(`.${Mr.dragarea}`)).style("opacity","0").remove(),r.selectAll(`.${sn.shape}`).classed(Mr.INCLUDED,!1),t.setDragStatus(!1))}},xy=Object.defineProperty,Ty=Object.defineProperties,Sy=Object.getOwnPropertyDescriptors,Au=Object.getOwnPropertySymbols,$y=Object.prototype.hasOwnProperty,Ay=Object.prototype.propertyIsEnumerable,Eu=(t,e,r)=>e in t?xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ey=(t,e)=>{for(var r in e||(e={}))$y.call(e,r)&&Eu(t,r,e[r]);if(Au)for(var r of Au(e))Ay.call(e,r)&&Eu(t,r,e[r]);return t},Iy=(t,e)=>Ty(t,Sy(e)),by=Iy(Ey({},yy),{selectPoint(t,e,r){const a=this,{config:o,$el:{main:i},$T:s}=a,l=o.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),f=(l?a.circleX:a.circleY).bind(a),v=a.pointSelectR.bind(a);_e(o.data_onselected,a.api,e,t.node()),s(i.select(`.${tn.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${tn.selectedCircle}-${r}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(tn.selectedCircle,r)).attr("cx",c).attr("cy",f).attr("stroke",a.color).attr("r",p=>a.pointSelectR(p)*1.4)).attr("r",v)},unselectPoint(t,e,r){const a=this,{config:o,$el:{main:i},$T:s}=a;_e(o.data_onunselected,a.api,e,t==null?void 0:t.node()),s(i.select(`.${tn.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${tn.selectedCircle}-${r}`)).attr("r",0).remove()},togglePoint(t,e,r,a){this[`${t?"":"un"}selectPoint`](e,r,a)},selectPath(t,e){const r=this,{config:a}=r;_e(a.data_onselected,r.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const r=this,{config:a}=r;_e(a.data_onunselected,r.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,r,a){this[`${t?"":"un"}selectPath`](e,r,a)},getToggle(t,e){const r=this;return t.nodeName==="path"?r.togglePath:r.isStepType(e)?()=>{}:r.togglePoint},toggleShape(t,e,r){var a;const o=this,{config:i,$el:{main:s}}=o;if(i.data_selection_enabled&&i.data_selection_isselectable.bind(o.api)(e)){const l=it(t),c=l.classed(tn.SELECTED),f=o.getToggle(t,e).bind(o);let v;if(!i.data_selection_multiple){const p=(a=o.isPointFocusOnly)==null?void 0:a.call(o);let y=`.${p?tn.selectedCircles:sn.shapes}`;i.data_selection_grouped&&(y+=o.getTargetSelectorSuffix(e.id)),s.selectAll(y).selectAll(p?`.${tn.selectedCircle}`:`.${sn.shape}.${tn.SELECTED}`).classed(tn.SELECTED,!1).each(function(A){const w=it(this);v=w,f(!1,w,A,A.index)})}(!v||v.node()!==l.node())&&(l.classed(tn.SELECTED,!c),f(!c,l,e,r))}}}),Ry={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},Oy={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:()=>{}},Cy={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 Iu=()=>($n(Hr.prototype,by),$n(Rr.prototype,ny),Ur.setOptions([Ry]),(Iu=()=>!0)()),bu=()=>($n(Hr.prototype,py),$n(Rr.prototype,ry),Ur.setOptions([Oy]),(bu=()=>!0)()),Ru=()=>($n(Hr.prototype,my),$n(Rr.prototype,gy),Ur.setOptions([Cy]),(Ru=()=>!0)());function Ou(t,e,r){const{config:a}=t,o=(i,s)=>{const l=ye(s)?s:s===!1?void 0:null;l!==null&&(a[`axis_${i}_${e}`]=l)};Qe(r)&&(Gn(r)?Object.keys(r).forEach(i=>{o(i,r[i])}):(ye(r)||r===!1)&&["y","y2"].forEach(i=>{o(i,r)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Cu(t,e){const{config:r}=t;return{x:r[`axis_x_${e}`],y:r[`axis_y_${e}`],y2:r[`axis_y2_${e}`]}}var Py={axis:{labels:function(t){const e=this.internal;let r;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const o=e.axis.getLabelText(a);o&&(!r&&(r={}),r[a]=o)}),r},min:function(t){const e=this.internal;return Ne(t)||t===!1?Ou(e,"min",t):Cu(e,"min")},max:function(t){const e=this.internal;return Ne(t)||t===!1?Ou(e,"max",t):Cu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:r,max:a}=t;Qe(a)&&e.max(a),Qe(r)&&e.min(r)}else return{max:e.max(),min:e.min()}}}},My={category(t,e){const r=this.internal,{config:a}=r;return arguments.length>1&&(a.axis_x_categories[t]=e,r.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:r}=e;if(!t||!Array.isArray(t)){const a=r.axis_x_categories;return Kn(a)?Object.values(e.data.xs)[0]:a}return r.axis_x_categories=t,e.redraw(),r.axis_x_categories}},wy={flow(t){const e=this.internal;let r;(t.json||t.rows||t.columns)&&e.convertData(t,o=>{r=o,a()});function a(){let o,i=0,s=0,l,c;if(e.state.redrawing||!r||!Ba())return;const f=[],v=e.getMaxDataCount(),p=e.convertDataToTargets(r,!0),y=e.axis.isTimeSeries();e.data.targets.forEach(L=>{let N=!1;for(let D=0;D<p.length;D++)if(L.id===p[D].id){N=!0,L.values[L.values.length-1]&&(s=L.values[L.values.length-1].index+1),i=p[D].values.length;for(let K=0;K<i;K++)p[D].values[K].index=s+K,y||(p[D].values[K].x=s+K);L.values=L.values.concat(p[D].values),p.splice(D,1);break}!N&&f.push(L.id)}),e.data.targets.forEach(L=>{for(let N=0;N<f.length;N++)if(L.id===f[N]){s=L.values[L.values.length-1].index+1;for(let D=0;D<i;D++)L.values.push({id:L.id,index:s+D,x:y?e.getOtherTargetX(s+D):s+D,value:null})}}),e.data.targets.length&&p.forEach(L=>{const N=[];for(let D=e.data.targets[0].values[0].index;D<s;D++)N.push({id:L.id,index:D,x:y?e.getOtherTargetX(D):D,value:null});L.values.forEach(D=>{D.index+=s,y||(D.x+=s)}),L.values=N.concat(L.values)}),e.data.targets=e.data.targets.concat(p);const A=e.data.targets[0],w=A.values[0];Qe(t.to)?(i=0,c=y?Jn.call(e,t.to):t.to,A.values.forEach(L=>{L.x<c&&i++})):Qe(t.length)&&(i=t.length),v?v===1&&y&&(l=(A.values[A.values.length-1].x-w.x)/2,o=[new Date(+w.x-l),new Date(+w.x+l)]):(y?l=A.values.length>1?A.values[A.values.length-1].x-w.x:w.x-e.getXDomain(e.data.targets)[0]:l=1,o=[w.x-l,w.x]),o&&e.updateXDomain(null,!0,!0,!1,o),e.updateTargets(e.data.targets),e.redraw({flow:{index:w.index,length:i,duration:Ne(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:v},withLegend:!0,withTransition:v>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function Ss(t,e){const r=this.internal,{config:a}=r,o=a.transition_duration&&Ba(),i=`grid_${e}_lines`;return t&&(a[i]=t,r.updateGrid(),r.redrawGrid(o)),a[i]}function Pu(t,e){const r=`grid_${e}_lines`;return Ss.bind(this)(this.internal.config[r].concat(t||[]),e)}function Mu(t,e){this.internal.removeGridLines(t,e)}const wu=function(t){return Ss.bind(this)(t,"x")};$n(wu,{add(t){return Pu.bind(this)(t,"x")},remove(t){return Mu.bind(this)(t,!0)}});const Du=function(t){return Ss.bind(this)(t,"y")};$n(Du,{add(t){return Pu.bind(this)(t,"y")},remove(t){return Mu.bind(this)(t,!1)}});var Dy={xgrids:wu,ygrids:Du},Ny={groups(t){const e=this.internal,{config:r}=e;return ln(t)||(r.data_groups=t,e.redraw()),r.data_groups}};function Nu(t,e=!1){const r=this.internal,{config:a}=r,o=a.transition_duration&&Ba();return t?(a.regions=e?a.regions.concat(t):t,r.updateRegion(),r.redrawRegion(o),e?a.regions:t):a.regions}const Lu=function(t){return Nu.bind(this)(t)};$n(Lu,{add:function(t){return Nu.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:r,$T:a}=e,o=t||{},i=Ar(o,"classes",[ba.region]);let s=e.$el.main.select(`.${ba.regions}`).selectAll(i.map(l=>`.${l}`));return a(s).style("opacity","0").remove(),s=r.regions,Object.keys(o).length?(s=s.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(f=>{i.indexOf(f)>=0&&(c=!0)}),!c):!0}),r.regions=s):r.regions=[],s}});var Ly={regions:Lu},Fy={x(t){const e=this.internal,{axis:r,data:a}=e,o=r.isCustomX()&&r.isCategorized();return Xe(t)&&(o?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),o?this.categories():a.xs},xs(t){const e=this.internal;return Ge(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function By(t){return t}var Zo=1,Jo=2,$s=3,Va=4,Fu=1e-6;function Uy(t){return"translate("+t+",0)"}function zy(t){return"translate(0,"+t+")"}function jy(t){return e=>+t(e)}function Gy(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function Vy(){return!this.__axis}function Qo(t,e){var r=[],a=null,o=null,i=6,s=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,f=t===Zo||t===Va?-1:1,v=t===Va||t===Jo?"x":"y",p=t===Zo||t===$s?Uy:zy;function y(A){var w=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,L=o==null?e.tickFormat?e.tickFormat.apply(e,r):By:o,N=Math.max(i,0)+l,D=e.range(),K=+D[0]+c,Z=+D[D.length-1]+c,H=(e.bandwidth?Gy:jy)(e.copy(),c),nt=A.selection?A.selection():A,Q=nt.selectAll(".domain").data([null]),ot=nt.selectAll(".tick").data(w,e).order(),vt=ot.exit(),$t=ot.enter().append("g").attr("class","tick"),Tt=ot.select("line"),mt=ot.select("text");Q=Q.merge(Q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ot=ot.merge($t),Tt=Tt.merge($t.append("line").attr("stroke","currentColor").attr(v+"2",f*i)),mt=mt.merge($t.append("text").attr("fill","currentColor").attr(v,f*N).attr("dy",t===Zo?"0em":t===$s?"0.71em":"0.32em")),A!==nt&&(Q=Q.transition(A),ot=ot.transition(A),Tt=Tt.transition(A),mt=mt.transition(A),vt=vt.transition(A).attr("opacity",Fu).attr("transform",function(bt){return isFinite(bt=H(bt))?p(bt+c):this.getAttribute("transform")}),$t.attr("opacity",Fu).attr("transform",function(bt){var yt=this.parentNode.__axis;return p((yt&&isFinite(yt=yt(bt))?yt:H(bt))+c)})),vt.remove(),Q.attr("d",t===Va||t===Jo?s?"M"+f*s+","+K+"H"+c+"V"+Z+"H"+f*s:"M"+c+","+K+"V"+Z:s?"M"+K+","+f*s+"V"+c+"H"+Z+"V"+f*s:"M"+K+","+c+"H"+Z),ot.attr("opacity",1).attr("transform",function(bt){return p(H(bt)+c)}),Tt.attr(v+"2",f*i),mt.attr(v,f*N).text(L),nt.filter(Vy).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Jo?"start":t===Va?"end":"middle"),nt.each(function(){this.__axis=H})}return y.scale=function(A){return arguments.length?(e=A,y):e},y.ticks=function(){return r=Array.from(arguments),y},y.tickArguments=function(A){return arguments.length?(r=A==null?[]:Array.from(A),y):r.slice()},y.tickValues=function(A){return arguments.length?(a=A==null?null:Array.from(A),y):a&&a.slice()},y.tickFormat=function(A){return arguments.length?(o=A,y):o},y.tickSize=function(A){return arguments.length?(i=s=+A,y):i},y.tickSizeInner=function(A){return arguments.length?(i=+A,y):i},y.tickSizeOuter=function(A){return arguments.length?(s=+A,y):s},y.tickPadding=function(A){return arguments.length?(l=+A,y):l},y.offset=function(A){return arguments.length?(c=+A,y):c},y}function Xy(t){return Qo(Zo,t)}function Hy(t){return Qo(Jo,t)}function Bu(t){return Qo($s,t)}function Uu(t){return Qo(Va,t)}var Wy=Object.defineProperty,Yy=(t,e,r)=>e in t?Wy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ko=(t,e,r)=>Yy(t,typeof e!="symbol"?e+"":e,r);class Ky{constructor(e){ko(this,"owner"),ko(this,"config"),ko(this,"scale"),ko(this,"charSize",{});const r=Vr(),{config:a,params:o}=e;this.owner=e,this.config=a,this.scale=r,(a.noTransition||!o.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((o.orgXScale||r).range())}getSizeFor1Char(e,r,a=!0){const o={w:5.5,h:11.5};return this.charSize[e]&&a?this.charSize[e]:(!r.empty()&&r.text("0").call(i=>{try{const{width:s,height:l}=Er(i.node(),!0);s&&l&&(o.w=s,o.h=l)}finally{i.text("")}}),this.charSize[e]=o,o)}getTickTransformSetter(e){const{config:r}=this,a=e==="x"?o=>`translate(${o+r.tickOffset},0)`:o=>`translate(0,${o})`;return(o,i)=>{o.attr("transform",s=>{const l=i(s);return Ne(s)?a(l):null})}}scaleExtent(e){const r=e[0],a=e[e.length-1];return r<a?[r,a]:[a,r]}generateTicks(e,r){const{tickStepSize:a}=this.owner.params,[o,i]=e.domain();let s=[];if(r&&a){let l=Math.round(o);for(;l<=i;)s.push(l),l+=a}else if(e.ticks){const{tickArguments:l}=this.config;if(e.type==="log"&&!l){const c=Vr("_log").domain([o>0?o:1,i]).range(e.range());s=c.ticks();for(let f=i.toFixed().length;s.length>15;f--)s=c.ticks(f);s.splice(0,1,o),s.splice(s.length-1,1,i)}else s=e.ticks(...this.config.tickArguments||[]);s=s.map(c=>Ue(c)&&ye(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return s}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const r=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,o=r?r(a):a;return Qe(o)?o:""}transitionise(e){const{config:r}=this;let a=e;if(r.withoutTransition)a=e.interrupt();else if(r.transition||!this.owner.params.noTransition)try{a=e.transition(r.transition)}catch(o){}return a}}var Zy=Object.defineProperty,Jy=(t,e,r)=>e in t?Zy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xa=(t,e,r)=>Jy(t,typeof e!="symbol"?e+"":e,r);class Qy{constructor(e={}){Xa(this,"helper"),Xa(this,"config"),Xa(this,"params"),Xa(this,"g"),Xa(this,"generatedTicks");const r={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};r.tickLength=Math.max(r.innerTickSize,0)+r.tickPadding,this.config=r,this.params=e,this.helper=new Ky(this)}create(e){const r=this,{config:a,helper:o,params:i}=r,{scale:s}=o,{orient:l}=a,c=this.splitTickText.bind(r),f=/^(left|right)$/.test(l),v=/^(top|bottom)$/.test(l),p=o.getTickTransformSetter(v?"x":"y"),y=p===o.axisX?"y":"x",A=/^(top|left)$/.test(l)?-1:1,w=i.tickTextRotate;this.config.range=s.rangeExtent?s.rangeExtent():o.scaleExtent((i.orgXScale||s).range());const{innerTickSize:L,tickLength:N,range:D}=a,K=i.id,Z=K&&/^(x|y|y2)$/.test(K)?i.config[`axis_${K}_tick_text_position`]:{x:0,y:0},H=K==="subX"?"subchart_axis_x":`axis_${K}`,nt=i.config[`${H}_show`],Q={tick:nt?i.config[`${H}_tick_show`]:!1,text:nt?i.config[`${H}_tick_text_show`]:!1},ot=i.config.axis_evalTextSize;let vt;e.each(function(){const $t=it(this);let Tt=this.__chart__||s,mt=o.copyScale();vt=$t,this.__chart__=mt,a.tickOffset=i.isCategory?(mt(1)-mt(0))/2:0;const bt=$t.selectAll(".domain").data([0]);if(bt.enter().append("path").attr("class","domain").merge(bt).attr("d",()=>{const yt=a.outerTickSize*A;return v?`M${D[0]},${yt}V0H${D[1]}V${yt}`:`M${yt},${D[0]}H0V${D[1]}H${yt}`}),Q.tick||Q.text){const yt=a.tickValues||o.generateTicks(mt,f||i.config.axis_rotated);r.generatedTicks=yt;let q=$t.selectAll(".tick").data(yt,mt);const Et=q.enter().insert("g",".domain").attr("class","tick"),dt=q.exit().remove();q=Et.merge(q),Q.tick&&Et.append("line"),Q.text&&Et.append("text");const Rt=q.select("text"),kt=[];let Ht={w:0,h:0};de(ot)&&(Ht=ot.bind(r.params.owner.api)(Rt.node(),K),this.classList.contains(Ee.dummy)&&(this.sizeFor1Char=Ht)),(!Ht||Ht.w===0||Ht.h===0)&&(Ht=r.helper.getSizeFor1Char(l,Rt,!!ot));let Kt=Rt.selectAll("tspan").data((Oe,Me)=>{const we=i.tickMultiline?c(Oe,mt,yt,f,Ht.w):Xe(o.textFormatted(Oe))?o.textFormatted(Oe).concat():[o.textFormatted(Oe)];return kt[Me]=we.length,we.map(Ke=>({index:Me,splitted:Ke}))});Kt.exit().remove(),Kt=Kt.enter().append("tspan").merge(Kt).text(Oe=>Oe.splitted),Kt.attr("x",v?0:N*A).attr("dx",(()=>{let Oe=0;return/(top|bottom)/.test(l)&&w&&(Oe=8*Math.sin(Math.PI*(w/180))*(l==="top"?-1:1)),Oe+(Z.x||0)})()).attr("dy",(Oe,Me)=>{const we=".71em";let Ke=0;return l!=="top"&&(Ke=Ht.h,Me===0&&(Ke=f?-((kt[Oe.index]-1)*(Ht.h/2)-3):Z.y===0?we:0)),ye(Ke)&&Z.y?Ke+Z.y:Ke||we});const se=q.select("line"),he=q.select("text");if(Et.select("line").attr(`${y}2`,L*A),Et.select("text").attr(y,N*A),r.setTickLineTextPosition(se,he,Ht),i.tickTitle){const Oe=he.select("title");(Oe.empty()?he.append("title"):Oe).text(Me=>i.tickTitle[Me])}if(mt.bandwidth){const Oe=mt,Me=Oe.bandwidth()/2;Tt=we=>Oe(we)+Me,mt=Tt}else Tt.bandwidth?Tt=mt:p(dt,mt);q=i.owner.state.flowing?o.transitionise(q):i.owner.$T(q),p(Et,Tt),p(q.style("opacity",null),mt)}}),this.g=vt}getGeneratedTicks(e){var r;const a=((r=this.generatedTicks)==null?void 0:r.length)-1;let o=this.generatedTicks;if(a>e){const i=Math.round(a/e+.1);o=this.generatedTicks.map((s,l)=>l%i===0?s:null).filter(s=>s!==null).splice(0,e)}return o}getTickXY(){const{config:e}=this,r={x:0,y:0};return this.params.isCategory&&(r.x=e.tickCentered?0:e.tickOffset,r.y=e.tickCentered?e.tickOffset:0),r}getTickSize(e){const{scale:r}=this.helper,{config:a}=this,{innerTickSize:o,range:i}=a,s=r(e)+(a.tickCentered?0:a.tickOffset);return i[0]<s&&s<i[1]?o:0}setTickLineTextPosition(e,r,a){const o=this.getTickXY(),{innerTickSize:i,orient:s,tickLength:l,tickOffset:c}=this.config,f=this.params.id,v=this.params.tickTextRotate,p=6,y=a.h/2-p,A=Z=>{const H=["start","end"];return s==="top"&&H.reverse(),Z?H[Z>0?0:1]:"middle"},w=Z=>Z?`rotate(${Z})`:null,L=Z=>{const H=Z/(s==="bottom"?15:23);return Z?11.5-2.5*H*(Z>0?1:-1):l},{config:{axis_rotated:N,axis_x_tick_text_inner:D}}=this.params.owner,K=this.params.config[`axis_${f}_tick_inner`];switch(s){case"bottom":e.attr("x1",o.x).attr("x2",o.x).attr("y2",Z=>this.getTickSize.bind(this)(Z)*(K?-1:1)),r.attr("x",0).attr("y",L(v)).style("text-anchor",A(v)).style("text-anchor",(Z,H,{length:nt})=>!N&&H===0&&(D===!0||D.first)?"start":!N&&H===nt-1&&(D===!0||D.last)?"end":A(v)).attr("transform",w(v));break;case"top":e.attr("x2",0).attr("y2",K?i:-i),r.attr("x",0).attr("y",-(L(v)+y+p)).style("text-anchor",A(v)).attr("transform",w(v));break;case"left":e.attr("x2",K?i:-i).attr("y1",o.y).attr("y2",o.y),r.attr("x",-l).attr("y",c+(N?y/4:y)).style("text-anchor","end");break;case"right":e.attr("x2",K?-i:i).attr("y2",0),r.attr("x",l).attr("y",y).style("text-anchor","start")}}splitTickText(e,r,a,o,i){const{params:s}=this,l=this.helper.textFormatted(e),c=Ue(l)&&l.indexOf(`
|
|
58
|
+
</foreignObject></svg>`;return`data:image/svg+xml;base64,${ly(p)}`}function uy(t,e){const{top:r,left:a}=e,{x:o,y:s}=Ar(t,!0),{a:i,b:l,c,d,e:g,f:p}=t.getScreenCTM(),{width:y,height:A}=Sn(t,!0);return{x:i*o+c*s+g-a,y:l*o+d*s+p-r+(A-Math.round(A/4)),width:y,height:A}}function fy(t){const{left:e,top:r}=Sn(t),a=s=>s.textContent||s.childElementCount,o=[];return Fr(t.querySelectorAll("text")).filter(a).forEach(s=>{const i=l=>{const{fill:c,fontFamily:d,fontSize:g,textAnchor:p,transform:y}=ze.getComputedStyle(l),{x:A,y:w,width:F,height:N}=uy(l,{left:e,top:r});return{[l.textContent]:{x:A,y:w,width:F,height:N,fill:c,fontFamily:d,fontSize:g,textAnchor:p,transform:y}}};if(s.childElementCount>1){const l=[];return Fr(s.querySelectorAll("tspan")).filter(a).forEach(c=>{o.push(i(c))}),l}else o.push(i(s))}),o}function dy(t,e){e.forEach(r=>{Object.keys(r).forEach(a=>{const{x:o,y:s,width:i,height:l,fill:c,fontFamily:d,fontSize:g,transform:p}=r[a];if(t.save(),t.font=`${g} ${d}`,t.fillStyle=c,p==="none")t.fillText(a,o,s);else{const y=p.replace(/(matrix|\(|\))/g,"").split(",");y.splice(4).every(A=>+A==0)?(y.push(o+i-i/4),y.push(s-l+l/3)):(y.push(o),y.push(s)),t.transform(...y),t.fillText(a,0,0)}t.restore()})})}var hy={export(t,e){const r=this.internal,{state:a,$el:{chart:o,svg:s}}=r,{width:i,height:l}=a.current,c=oa(Object.create(null),{width:i,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),d=cy(o.node(),c,{width:i,height:l}),g=c.preserveFontStyle?fy(s.node()):[];if(e&&de(e)){const p=new Image;p.crossOrigin="Anonymous",p.onload=()=>{const y=mn.createElement("canvas"),A=y.getContext("2d");y.width=c.width||i,y.height=c.height||l,A.drawImage(p,0,0),g.length&&(dy(A,g),g.length=0),e.bind(this)(y.toDataURL(c.mimeType))},p.src=d}return d}},vy={focus(t){const e=this.internal,{state:r}=e,a=e.mapToTargetIds(t),o=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),o.classed(qe.focused,!0).classed(qe.defocused,!1),e.hasArcType()&&!r.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${jn.gaugeValue}`)),e.toggleFocusLegend(a,!0),r.focusedTargetIds=a,r.defocusedTargetIds=r.defocusedTargetIds.filter(s=>a.indexOf(s)<0)},defocus(t){const e=this.internal,{state:r}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(qe.focused,!1).classed(qe.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${jn.gaugeValue}`)),e.toggleFocusLegend(a,!1),r.focusedTargetIds=r.focusedTargetIds.filter(s=>a.indexOf(s)<0),r.defocusedTargetIds=a},revert(t){const e=this.internal,{config:r,state:a,$el:o}=e,s=e.mapToTargetIds(t);o.svg.selectAll(e.selectorTargets(s)).classed(qe.focused,!1).classed(qe.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(s),r.legend_show&&(e.showLegend(s.filter(e.isLegendToShow.bind(e))),o.legend.selectAll(e.selectorLegends(s)).filter(function(){return st(this).classed(qe.legendItemFocused)}).classed(qe.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},gy={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})}}},py={load(t){const e=this.internal,{config:r}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{r.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(r.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{r.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{r.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{Wl(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let r=t||{};Kn(r)&&this.tooltip.hide(),Xe(r)?r={ids:r}:je(r)&&(r={ids:[r]});const a=e.mapToTargetIds(r.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),Ec.call(e,r.done,r.resizeAfter)})}};function Su(t,e,r){const a=this.internal,o=a.mapToTargetIds(e),s=a.state.hiddenTargetIds.map(c=>o.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](o);const i=a.$el.svg.selectAll(a.selectorTargets(o)),l=t?null:"0";t&&s.length&&(i.style("display",null),_e(a.config.data_onshown,this,s)),a.$T(i).style("opacity",l,"important").call(Ro,()=>{var c;!t&&s.length===0&&(i.style("display","none"),_e((c=a.config)==null?void 0:c.data_onhidden,this,o)),i.style("opacity",l)}),r.withLegend&&a[`${t?"show":"hide"}Legend`](o),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var my={show(t,e={}){Su.call(this,!0,t,e)},hide(t,e={}){Su.call(this,!1,t,e)},toggle(t,e={}){const r=this.internal,a={show:[],hide:[]};r.mapToTargetIds(t).forEach(o=>a[r.isTargetToShow(o)?"hide":"show"].push(o)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},yy={tooltip:{show:function(t){var e,r,a;const o=this.internal,{$el:s,config:i,state:{eventReceiver:l,hasFunnel:c,hasTreemap:d,inputType:g}}=o;let p,y;if(t.mouse&&(y=t.mouse),t.data){const{data:A}=t,w=(e=o.getYScaleById(A.id))==null?void 0:e(A.value);if((c||d)&&A.id){const F=o.selectorTarget(A.id,void 0,`.${sn.shape}`);l.rect=s.main.select(F)}else o.isMultipleX()?y=[o.xx(A),w]:(i.tooltip_grouped||(y=[0,w]),p=(a=A.index)!=null?a:o.hasArcType()&&A.id?(r=o.getArcElementByIdOrIndex(A.id))==null?void 0:r.datum().index:o.getIndexByX(A.x))}else Qe(t.x)?p=o.getIndexByX(t.x):Qe(t.index)&&(p=t.index);(g==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(A=>{o.dispatchEvent(A,p,y)})},hide:function(){var t,e,r;const a=this.internal,{state:{inputType:o},$el:{tooltip:s}}=a,i=s==null?void 0:s.datum();if(i){const{index:l}=JSON.parse(i.current)[0];(o==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}o==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(r=a.expandBarTypeShapes)==null||r.call(a,!1)}}},xy=Object.defineProperty,Ty=(t,e,r)=>e in t?xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$u=(t,e,r)=>Ty(t,typeof e!="symbol"?e+"":e,r);class Rr{constructor(e){$u(this,"plugins",[]),$u(this,"internal");const r=new Xr(this);this.internal=r,(function a(o,s,i){Object.keys(o).forEach(l=>{const c=de(o[l]),d=s!==i,g=dn(o[l]),p=g&&Object.keys(o[l]).length>0;c&&(!d&&p||d)?s[l]=o[l].bind(i):g&&!c?s[l]={}:s[l]=o[l],p&&a(o[l],s[l],i)})})(Rr.prototype,this,this),ay.call(r,e),r.beforeInit(),r.init()}}$n(Rr.prototype,[oy,sy,iy,hy,vy,gy,py,my,yy]);function Au(t=!1,e,r,a){const o=this,{config:s,$el:{main:i}}=o,l=s.data_selection_grouped,c=s.data_selection_isselectable.bind(o.api);s.data_selection_enabled&&i.selectAll(`.${sn.shapes}`).selectAll(`.${sn.shape}`).each(function(d){const g=st(this),{id:p,index:y}=d.data?d.data:d,A=o.getToggle(this,d).bind(o),w=l||!e||e.indexOf(p)>=0,F=!r||r.indexOf(y)>=0,N=g.classed(tn.SELECTED);g.classed(dr.line)||g.classed(ro.area)||(t?w&&F&&c(d)&&!N?A(!0,g.classed(tn.SELECTED,!0),d,y):Qe(a)&&a&&N&&A(!1,g.classed(tn.SELECTED,!1),d,y):w&&F&&c(d)&&N&&A(!1,g.classed(tn.SELECTED,!1),d,y))})}var Sy={selected(t){const e=this.internal,r=[];return e.$el.main.selectAll(`.${sn.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${sn.shape}`).filter(function(){return st(this).classed(tn.SELECTED)}).each(a=>r.push(a)),r},select(t,e,r){const a=this.internal;Au.bind(a)(!0,t,e,r)},unselect(t,e){const r=this.internal;Au.bind(r)(!1,t,e)}};const Eu=function(t){var e;const r=this.internal,{axis:a,brush:o,config:s,scale:{x:i,subX:l},state:c}=r;let d;return s.subchart_show&&(d=t,Array.isArray(d)?(a.isTimeSeries()&&(d=d.map(p=>Jn.bind(r)(p))),r.withinRange(d,r.getZoomDomain("subX",!0),r.getZoomDomain("subX"))&&(c.domain=d,o.move(o.getSelection(),d.map(l)))):d=(e=c.domain)!=null?e:i.orgDomain()),d};$n(Eu,{show(){var t,e;const r=this.internal,{$el:{subchart:a},config:o}=r,s=o.subchart_show;if(!s){r.unbindZoomEvent(),o.subchart_show=!s,!a.main&&r.initSubchart();let i=a.main.selectAll(`.${Ee.target}`);r.data.targets.length!==i.size()&&(r.updateSizes(),r.updateTargetsForSubchart(r.data.targets),i=(t=a.main)==null?void 0:t.selectAll(`.${Ee.target}`)),i==null||i.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:r}=t;r.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(r.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 $y={subchart:Eu},Ay=1e-12;function Iu(t){return((t=Math.exp(t))+1/t)/2}function Ey(t){return((t=Math.exp(t))-1/t)/2}function Iy(t){return((t=Math.exp(2*t))-1)/(t+1)}var Ry=(function t(e,r,a){function o(s,i){var l=s[0],c=s[1],d=s[2],g=i[0],p=i[1],y=i[2],A=g-l,w=p-c,F=A*A+w*w,N,D;if(F<Ay)D=Math.log(y/d)/e,N=function(ot){return[l+ot*A,c+ot*w,d*Math.exp(e*ot*D)]};else{var K=Math.sqrt(F),J=(y*y-d*d+a*F)/(2*d*r*K),W=(y*y-d*d-a*F)/(2*y*r*K),rt=Math.log(Math.sqrt(J*J+1)-J),Q=Math.log(Math.sqrt(W*W+1)-W);D=(Q-rt)/e,N=function(ot){var vt=ot*D,$t=Iu(rt),Tt=d/(r*K)*($t*Iy(e*vt+rt)-Ey(rt));return[l+Tt*A,c+Tt*w,d*$t/Iu(e*vt+rt)]}}return N.duration=D*1e3*e/Math.SQRT2,N}return o.rho=function(s){var i=Math.max(.001,+s),l=i*i,c=l*l;return t(i,l,c)},o})(Math.SQRT2,2,4),Yo=(t=>()=>t);function by(t,{sourceEvent:e,target:r,transform:a,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function pr(t,e,r){this.k=t,this.x=e,this.y=r}pr.prototype={constructor:pr,scale:function(t){return t===1?this:new pr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new pr(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 sr=new pr(1,0,0);Ti.prototype=pr.prototype;function Ti(t){for(;!t.__zoom;)if(!(t=t.parentNode))return sr;return t.__zoom}function Si(t){t.stopImmediatePropagation()}function ja(t){t.preventDefault(),t.stopImmediatePropagation()}function Oy(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Cy(){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 Ru(){return this.__zoom||sr}function Py(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function My(){return navigator.maxTouchPoints||"ontouchstart"in this}function wy(t,e,r){var a=t.invertX(e[0][0])-r[0][0],o=t.invertX(e[1][0])-r[1][0],s=t.invertY(e[0][1])-r[0][1],i=t.invertY(e[1][1])-r[1][1];return t.translate(o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o),i>s?(s+i)/2:Math.min(0,s)||Math.max(0,i))}function Dy(){var t=Oy,e=Cy,r=wy,a=Py,o=My,s=[0,1/0],i=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Ry,d=so("start","zoom","end"),g,p,y,A=500,w=150,F=0,N=10;function D(q){q.property("__zoom",Ru).on("wheel.zoom",vt,{passive:!1}).on("mousedown.zoom",$t).on("dblclick.zoom",Tt).filter(o).on("touchstart.zoom",yt).on("touchmove.zoom",Rt).on("touchend.zoom touchcancel.zoom",xt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}D.transform=function(q,Et,dt,bt){var kt=q.selection?q.selection():q;kt.property("__zoom",Ru),q!==kt?rt(q,Et,dt,bt):kt.interrupt().each(function(){Q(this,arguments).event(bt).start().zoom(null,typeof Et=="function"?Et.apply(this,arguments):Et).end()})},D.scaleBy=function(q,Et,dt,bt){D.scaleTo(q,function(){var kt=this.__zoom.k,Ht=typeof Et=="function"?Et.apply(this,arguments):Et;return kt*Ht},dt,bt)},D.scaleTo=function(q,Et,dt,bt){D.transform(q,function(){var kt=e.apply(this,arguments),Ht=this.__zoom,Kt=dt==null?W(kt):typeof dt=="function"?dt.apply(this,arguments):dt,ie=Ht.invert(Kt),he=typeof Et=="function"?Et.apply(this,arguments):Et;return r(J(K(Ht,he),Kt,ie),kt,i)},dt,bt)},D.translateBy=function(q,Et,dt,bt){D.transform(q,function(){return r(this.__zoom.translate(typeof Et=="function"?Et.apply(this,arguments):Et,typeof dt=="function"?dt.apply(this,arguments):dt),e.apply(this,arguments),i)},null,bt)},D.translateTo=function(q,Et,dt,bt,kt){D.transform(q,function(){var Ht=e.apply(this,arguments),Kt=this.__zoom,ie=bt==null?W(Ht):typeof bt=="function"?bt.apply(this,arguments):bt;return r(sr.translate(ie[0],ie[1]).scale(Kt.k).translate(typeof Et=="function"?-Et.apply(this,arguments):-Et,typeof dt=="function"?-dt.apply(this,arguments):-dt),Ht,i)},bt,kt)};function K(q,Et){return Et=Math.max(s[0],Math.min(s[1],Et)),Et===q.k?q:new pr(Et,q.x,q.y)}function J(q,Et,dt){var bt=Et[0]-dt[0]*q.k,kt=Et[1]-dt[1]*q.k;return bt===q.x&&kt===q.y?q:new pr(q.k,bt,kt)}function W(q){return[(+q[0][0]+ +q[1][0])/2,(+q[0][1]+ +q[1][1])/2]}function rt(q,Et,dt,bt){q.on("start.zoom",function(){Q(this,arguments).event(bt).start()}).on("interrupt.zoom end.zoom",function(){Q(this,arguments).event(bt).end()}).tween("zoom",function(){var kt=this,Ht=arguments,Kt=Q(kt,Ht).event(bt),ie=e.apply(kt,Ht),he=dt==null?W(ie):typeof dt=="function"?dt.apply(kt,Ht):dt,Oe=Math.max(ie[1][0]-ie[0][0],ie[1][1]-ie[0][1]),Me=kt.__zoom,we=typeof Et=="function"?Et.apply(kt,Ht):Et,Ke=c(Me.invert(he).concat(Oe/Me.k),we.invert(he).concat(Oe/we.k));return function(Ue){if(Ue===1)Ue=we;else{var hn=Ke(Ue),ee=Oe/hn[2];Ue=new pr(ee,he[0]-hn[0]*ee,he[1]-hn[1]*ee)}Kt.zoom(null,Ue)}})}function Q(q,Et,dt){return!dt&&q.__zooming||new ot(q,Et)}function ot(q,Et){this.that=q,this.args=Et,this.active=0,this.sourceEvent=null,this.extent=e.apply(q,Et),this.taps=0}ot.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,Et){return this.mouse&&q!=="mouse"&&(this.mouse[1]=Et.invert(this.mouse[0])),this.touch0&&q!=="touch"&&(this.touch0[1]=Et.invert(this.touch0[0])),this.touch1&&q!=="touch"&&(this.touch1[1]=Et.invert(this.touch1[0])),this.that.__zoom=Et,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(q){var Et=st(this.that).datum();d.call(q,this.that,new by(q,{sourceEvent:this.sourceEvent,target:D,type:q,transform:this.that.__zoom,dispatch:d}),Et)}};function vt(q,...Et){if(!t.apply(this,arguments))return;var dt=Q(this,Et).event(q),bt=this.__zoom,kt=Math.max(s[0],Math.min(s[1],bt.k*Math.pow(2,a.apply(this,arguments)))),Ht=Yn(q);if(dt.wheel)(dt.mouse[0][0]!==Ht[0]||dt.mouse[0][1]!==Ht[1])&&(dt.mouse[1]=bt.invert(dt.mouse[0]=Ht)),clearTimeout(dt.wheel);else{if(bt.k===kt)return;dt.mouse=[Ht,bt.invert(Ht)],ta(this),dt.start()}ja(q),dt.wheel=setTimeout(Kt,w),dt.zoom("mouse",r(J(K(bt,kt),dt.mouse[0],dt.mouse[1]),dt.extent,i));function Kt(){dt.wheel=null,dt.end()}}function $t(q,...Et){if(y||!t.apply(this,arguments))return;var dt=q.currentTarget,bt=Q(this,Et,!0).event(q),kt=st(q.view).on("mousemove.zoom",he,!0).on("mouseup.zoom",Oe,!0),Ht=Yn(q,dt),Kt=q.clientX,ie=q.clientY;vs(q.view),Si(q),bt.mouse=[Ht,this.__zoom.invert(Ht)],ta(this),bt.start();function he(Me){if(ja(Me),!bt.moved){var we=Me.clientX-Kt,Ke=Me.clientY-ie;bt.moved=we*we+Ke*Ke>F}bt.event(Me).zoom("mouse",r(J(bt.that.__zoom,bt.mouse[0]=Yn(Me,dt),bt.mouse[1]),bt.extent,i))}function Oe(Me){kt.on("mousemove.zoom mouseup.zoom",null),gs(Me.view,bt.moved),ja(Me),bt.event(Me).end()}}function Tt(q,...Et){if(t.apply(this,arguments)){var dt=this.__zoom,bt=Yn(q.changedTouches?q.changedTouches[0]:q,this),kt=dt.invert(bt),Ht=dt.k*(q.shiftKey?.5:2),Kt=r(J(K(dt,Ht),bt,kt),e.apply(this,Et),i);ja(q),l>0?st(this).transition().duration(l).call(rt,Kt,bt,q):st(this).call(D.transform,Kt,bt,q)}}function yt(q,...Et){if(t.apply(this,arguments)){var dt=q.touches,bt=dt.length,kt=Q(this,Et,q.changedTouches.length===bt).event(q),Ht,Kt,ie,he;for(Si(q),Kt=0;Kt<bt;++Kt)ie=dt[Kt],he=Yn(ie,this),he=[he,this.__zoom.invert(he),ie.identifier],kt.touch0?!kt.touch1&&kt.touch0[2]!==he[2]&&(kt.touch1=he,kt.taps=0):(kt.touch0=he,Ht=!0,kt.taps=1+!!g);g&&(g=clearTimeout(g)),Ht&&(kt.taps<2&&(p=he[0],g=setTimeout(function(){g=null},A)),ta(this),kt.start())}}function Rt(q,...Et){if(this.__zooming){var dt=Q(this,Et).event(q),bt=q.changedTouches,kt=bt.length,Ht,Kt,ie,he;for(ja(q),Ht=0;Ht<kt;++Ht)Kt=bt[Ht],ie=Yn(Kt,this),dt.touch0&&dt.touch0[2]===Kt.identifier?dt.touch0[0]=ie:dt.touch1&&dt.touch1[2]===Kt.identifier&&(dt.touch1[0]=ie);if(Kt=dt.that.__zoom,dt.touch1){var Oe=dt.touch0[0],Me=dt.touch0[1],we=dt.touch1[0],Ke=dt.touch1[1],Ue=(Ue=we[0]-Oe[0])*Ue+(Ue=we[1]-Oe[1])*Ue,hn=(hn=Ke[0]-Me[0])*hn+(hn=Ke[1]-Me[1])*hn;Kt=K(Kt,Math.sqrt(Ue/hn)),ie=[(Oe[0]+we[0])/2,(Oe[1]+we[1])/2],he=[(Me[0]+Ke[0])/2,(Me[1]+Ke[1])/2]}else if(dt.touch0)ie=dt.touch0[0],he=dt.touch0[1];else return;dt.zoom("touch",r(J(Kt,ie,he),dt.extent,i))}}function xt(q,...Et){if(this.__zooming){var dt=Q(this,Et).event(q),bt=q.changedTouches,kt=bt.length,Ht,Kt;for(Si(q),y&&clearTimeout(y),y=setTimeout(function(){y=null},A),Ht=0;Ht<kt;++Ht)Kt=bt[Ht],dt.touch0&&dt.touch0[2]===Kt.identifier?delete dt.touch0:dt.touch1&&dt.touch1[2]===Kt.identifier&&delete dt.touch1;if(dt.touch1&&!dt.touch0&&(dt.touch0=dt.touch1,delete dt.touch1),dt.touch0)dt.touch0[1]=this.__zoom.invert(dt.touch0[0]);else if(dt.end(),dt.taps===2&&(Kt=Yn(Kt,this),Math.hypot(p[0]-Kt[0],p[1]-Kt[1])<N)){var ie=st(this).on("dblclick.zoom");ie&&ie.apply(this,arguments)}}}return D.wheelDelta=function(q){return arguments.length?(a=typeof q=="function"?q:Yo(+q),D):a},D.filter=function(q){return arguments.length?(t=typeof q=="function"?q:Yo(!!q),D):t},D.touchable=function(q){return arguments.length?(o=typeof q=="function"?q:Yo(!!q),D):o},D.extent=function(q){return arguments.length?(e=typeof q=="function"?q:Yo([[+q[0][0],+q[0][1]],[+q[1][0],+q[1][1]]]),D):e},D.scaleExtent=function(q){return arguments.length?(s[0]=+q[0],s[1]=+q[1],D):[s[0],s[1]]},D.translateExtent=function(q){return arguments.length?(i[0][0]=+q[0][0],i[1][0]=+q[1][0],i[0][1]=+q[0][1],i[1][1]=+q[1][1],D):[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},D.constrain=function(q){return arguments.length?(r=q,D):r},D.duration=function(q){return arguments.length?(l=+q,D):l},D.interpolate=function(q){return arguments.length?(c=q,D):c},D.on=function(){var q=d.on.apply(d,arguments);return q===d?D:q},D.clickDistance=function(q){return arguments.length?(F=(q=+q)*q,D):Math.sqrt(F)},D.tapDistance=function(q){return arguments.length?(N=+q,D):N},D}const bu=function(t){var e;const r=this.internal,{axis:a,config:o,org:s,scale:i,state:l}=r,c=a.isCategorized();let d;if(o.zoom_enabled)if(d=t,Array.isArray(d)){if(a.isTimeSeries()&&(d=d.map(p=>Jn.bind(r)(p))),r.withinRange(d,r.getZoomDomain("zoom",!0),r.getZoomDomain("zoom"))){if(l.domain=d,d=r.getZoomDomainValue(d),r.api.tooltip.hide(),o.subchart_show){const p=i.zoom||i.x;r.brush.getSelection().call(r.brush.move,d.map(p))}else{const p=c?i.x.orgScale():s.xScale||i.x;r.updateCurrentZoomTransform(p,d)}r.setZoomResetButton()}}else d=r.zoom.getDomain();return(e=l.domain)!=null?e:d};$n(bu,{enable(t){const e=this.internal,{config:r}=e;/^(drag|wheel)$/.test(t)&&(r.zoom_type=t),r.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:r,org:{xDomain:a}}=e;return(t===0||t)&&(r.zoom_x_max=er("max",[a[1],t])),r.zoom_x_max},min(t){const e=this.internal,{config:r,org:{xDomain:a}}=e;return(t===0||t)&&(r.zoom_x_min=er("min",[a[0],t])),r.zoom_x_min},range(t){const e=this.zoom;if(Ge(t)){const{min:r,max:a}=t;Qe(r)&&e.min(r),Qe(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var Ny={zoom:bu,unzoom(){const t=this.internal,{config:e,$el:{eventRect:r,zoomResetBtn:a},scale:{zoom:o},state:s}=t;o&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(sr),t.updateZoom(!0),a==null||a.style("display","none"),Ti(r.node())!==sr&&t.zoom.transform(r,sr),s.domain=void 0)}},Ly={initBrush(){const t=this,{config:e,scale:r,$el:{subchart:a},state:o}=t,s=e.axis_rotated,i=e.subchart_size_height;let l,c,d;t.brush=(s?cg():lg()).handleSize(5),t.brush.on("start brush end",g=>{const{selection:p,sourceEvent:y,target:A,type:w}=g;w==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=y?p:null),/(start|brush)/.test(w)&&(w==="brush"&&y&&o.domain&&(c==null||c.forEach((F,N)=>{F!==p[N]&&(o.domain[N]=r.x.orgDomain()[N])})),t.redrawForBrush(w!=="start")),w==="end"&&(l=r.x.orgDomain()),A!=null&&A.handle&&(p===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(F,N)=>{const D=[p[N],i/2];return`translate(${s?D.reverse():D})`}))}),t.brush.updateResize=function(){d&&clearTimeout(d),d=setTimeout(()=>{const g=this.getSelection();l&&Hl(g.node())&&this.move(g,l.map(r.subX.orgScale()))},0)},t.brush.update=function(){var g;return this.extent()()[1].filter(y=>isNaN(y)).length===0&&((g=a.main)==null||g.select(`.${Ve.brush}`).call(this)),this},t.brush.scale=function(g){const p=e.subchart_size_height;let y=t.axis.getExtent();!y&&g.range?y=[[0,0],[g.range()[1],p]]:Xe(y)&&(y=y.map((A,w)=>[A,w>0?p:w])),s&&y[1].reverse(),this.extent(y),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Ve.brush}`):st([])},initSubchart(){const t=this,{config:e,state:{clip:r,hasAxis:a},$el:{defs:o,svg:s,subchart:i,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",d=`${r.id}-subchart`,g=t.getClipPath(d);r.idSubchart=d,t.appendClip(o,d),t.initBrush(),i.main=s.append("g").classed(Ve.subchart,!0).attr("transform",t.getTranslate("context"));const{main:p}=i;p.style("visibility",c),p.append("g").attr("clip-path",g).attr("class",Ve.chart),["bar","line","bubble","candlestick","scatter"].forEach(A=>{const w=bn(/^(bubble|scatter)$/.test(A)?"circle":A);if(t.hasType(A)||t.hasTypeOf(w)){const F=p.select(`.${Ve.chart}`),N=Ve[`chart${w}s`];F.select(`.${N}`).empty()&&F.append("g").attr("class",N)}});const y=p.append("g").attr("clip-path",g).attr("class",Ve.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(y),l.subX=p.append("g").attr("class",Ve.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:r}=e,a=r.axis_rotated,o=r.subchart_init_range,s="handle--custom",i=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=>i[+/[se]/.test(l.type)]).attr("display",o?null:"none")},updateTargetsForSubchart(t){const e=this,{config:r,state:a,$el:{subchart:{main:o}}}=e;r.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(s=>e.hasType(s)||e.hasTypeOf(bn(s))).forEach(s=>{const i=/^(bubble|scatter)$/.test(s),l=bn(i?"circle":s),c=e.getChartClass(l,!0),d=e.getClass(i?"circles":`${s}s`,!0),g=o.select(`.${Ve[`chart${`${l}s`}`]}`);if(i){const p=g.selectAll(`.${Ve.circles}`).data(t.filter(e[`is${bn(s)}Type`].bind(e))).attr("class",d);p.exit().remove(),p.enter().append("g").attr("class",d)}else{const p=g.selectAll(`.${Ve[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),y=p.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",d);p.exit().remove(),s==="line"&&e.hasTypeOf("Area")&&y.append("g").attr("class",e.getClass("areas",!0))}}),o.selectAll(`.${Ve.brush} rect`).attr(r.axis_rotated?"width":"height",r.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,r){var a;const o=this,{config:s,$el:{subchart:{main:i}},state:l}=o,c=!!e;if(i.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&o.brush.update(),t)){const d=s.subchart_init_range;if(!ac(o)&&o.brush.update(),Object.keys(r.type).forEach(g=>{const p=bn(g),y=o[`generateDraw${p}`](r.indices[g],!0);o[`update${p}`](c,!0),o[`redraw${p}`](y,c,!0)}),o.hasType("bubble")||o.hasType("scatter")){const{cx:g}=r.pos,p=o.updateCircleY(!0);o.updateCircle(!0),o.redrawCircle(g,p,c,void 0,!0)}!l.rendered&&d&&(l.domain=d,o.brush.move(o.brush.getSelection(),d.map(o.scale.x)))}},redrawForBrush(t=!0){var e;const r=this,{config:{subchart_onbrush:a,zoom_rescale:o},scale:s,state:i}=r;r.redraw({withTransition:!1,withY:o,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&i.rendered&&a.bind(r.api)((e=i.domain)!=null?e:s.x.orgDomain())},transformContext(t,e){const r=this,{$el:{subchart:a},$T:o}=r,s=e!=null&&e.axisSubX?e.axisSubX:o(a.main.select(`.${Ve.axisX}`),t);a.main.attr("transform",r.getTranslate("context")),s.attr("transform",r.getTranslate("subX"))}},Fy={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.config.zoom_type==="drag"&&t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:r}=e;r.zoom_enabled&&t?!r.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:r,scale:a}=t,o=Dy().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));o.orgScaleExtent=()=>{const s=e.zoom_extent||[1,10];return[s[0],Math.max(t.getMaxDataCount()/s[1],s[1])]},o.updateScaleExtent=function(){const s=Lr(t.scale.x.orgDomain())/Lr(t.getZoomDomain()),i=this.orgScaleExtent();return this.scaleExtent([i[0]*s,i[1]*s]),this},o.updateTransformScale=(s,i)=>{var l;const c=e.axis_rotated;(l=r.xScale)==null||l.range(a.x.range());const d=s[c?"rescaleY":"rescaleX"](r.xScale||a.x);if(d.domain().some(y=>/(Invalid Date|NaN)/.test(y.toString())))return;const g=t.trimXDomain(d.domain()),p=e.zoom_rescale;if(d.domain(g,r.xDomain),i){const y=d(a.x.domain()[0]),A=c?s.x:y,w=c?y:s.y;t.$el.eventRect.property("__zoom",sr.translate(A,w).scale(s.k))}a.zoom=t.getCustomizedXScale(d),t.axis.x.scale(a.zoom),p?(!r.xScale&&(r.xScale=a.x.copy()),a.x.domain(g)):r.xScale&&(a.x.domain(r.xScale.domain()),r.xScale=null)},o.getDomain=()=>{const s=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(s[1]-=2),s},t.zoom=o},onZoomStart(t){const e=this,{sourceEvent:r}=t;r&&(e.zoom.startEvent=r,e.state.zooming=!0,_e(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){const e=this,{config:r,scale:a,state:o,org:s}=e,{sourceEvent:i}=t,l=(t==null?void 0:t.transform)===sr;if(!r.zoom_enabled||e.filterTargetsToShow(e.data.targets).length===0||!a.zoom&&(i==null?void 0:i.type.indexOf("touch"))>-1&&(i==null?void 0:i.touches.length)===1)return;t.sourceEvent&&(o.zooming=!0,o.domain=void 0);const c=(i==null?void 0:i.type)==="mousemove",d=(i==null?void 0:i.wheelDelta)<0,{transform:g}=t;!c&&d&&a.x.domain().every((w,F)=>w!==s.xDomain[F])&&a.x.domain(s.xDomain),e.zoom.updateTransformScale(g,r.zoom_type==="wheel"&&i);const p=r.transition_duration>0&&!r.subchart_show&&(o.dragging||l||!t.sourceEvent),y=i&&c&&r.zoom_type!=="wheel",A=()=>{var w;e.redraw({withTransition:p,withY:r.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),e.state.cancelClick=c,!l&&_e(r.zoom_onzoom,e.api,(w=e.state.domain)!=null?w:e.zoom.getDomain())};y?cc(e.state,A):A()},onZoomEnd(t){var e,r;const a=this,{config:o,state:s}=a;let{startEvent:i}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===sr;(i==null?void 0:i.type.indexOf("touch"))>-1&&(i=i.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(o.zoom_type==="drag"&&l&&i.clientX===l.clientX&&i.clientY===l.clientY)&&(s.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||s.dragging)&&_e(o.zoom_onzoomend,a.api,(r=a.state.domain)!=null?r:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:r,x:a,zoom:o}=e.scale;if(o){const s=o.domain(),i=r.domain(),l=.015,c=e.config.axis_x_inverted?(s[0]>=i[0]||s[0]+l>=i[0])&&(i[1]>=s[1]||i[1]>=s[1]+l):(s[0]<=i[0]||s[0]-l<=i[0])&&(i[1]<=s[1]||i[1]<=s[1]-l);(t||c)&&(e.axis.x.scale(r),a.domain(r.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const r=this,{$el:{eventRect:a},config:o}=r,s=o.axis_rotated,i=[-t(e[0]),0],l=sr.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...s?i.reverse():i);a.call(r.zoom.transform,l)},bindZoomOnEventRect(){var t;const e=this,{config:r,$el:{eventRect:a,svg:o}}=e,s=r.zoom_type==="drag"?e.zoomBehaviour:e.zoom;ze.GestureEvent&&/^((?!chrome|android|mobile).)*safari/i.test((t=ze.navigator)==null?void 0:t.userAgent)&&o.on("wheel",()=>{}),a==null||a.call(s).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:r}=t,a=e.axis_rotated;let o=0,s=0,i,l;const c={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=Ic().clickDistance(4).on("start",function(d){l=t.scale.zoom?null:t.axis.getExtent(),r.event=d,t.setDragStatus(!0),t.unselectRect(),i||(i=t.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",ds.zoomBrush).attr("width",a?r.width:0).attr("height",a?0:r.height)),o=Zn(d,this)[c.index],l&&(o<l[0]?o=l[0]:o>l[1]&&(o=l[1])),s=o,i.attr(c.axis,o).attr(c.attr,0),t.onZoomStart(d)}).on("drag",function(d){s=Zn(d,this)[c.index],l&&(s>l[1]?s=l[1]:s<l[0]&&(s=l[0])),i.attr(c.axis,Math.min(o,s)).attr(c.attr,Math.abs(s-o))}).on("end",d=>{const g=t.scale.zoom||t.scale.x;r.event=d,i.attr(c.axis,0).attr(c.attr,0),o>s&&([o,s]=[s,o]),o<0&&(s+=Math.abs(o),o=0),o!==s&&t.api.zoom([o,s].map(p=>g.invert(p))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:r}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(r.zoomResetBtn?r.zoomResetBtn.style("display",null):r.zoomResetBtn=t.$el.chart.append("div").classed(Ee.button,!0).append("span").on("click",function(){de(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(ds.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?Ti(e.node()):{k:1}}},By={drag(t){const e=this,{config:r,state:a,$el:{main:o}}=e,s=r.data_selection_grouped,i=r.interaction_enabled&&r.data_selection_isselectable;if(e.hasArcType()||!r.data_selection_enabled||r.zoom_enabled&&!e.zoom.altDomain||!r.data_selection_multiple)return;const[l,c]=a.dragStart||[0,0],[d,g]=t,p=Math.min(l,d),y=Math.max(l,d),A=s?a.margin.top:Math.min(c,g),w=s?a.height:Math.max(c,g),F=()=>{!e||!e.$el||!e.$el.main||(o.select(`.${Pr.dragarea}`).attr("x",p).attr("y",A).attr("width",y-p).attr("height",w-A),o.selectAll(`.${sn.shapes}`).selectAll(`.${sn.shape}`).filter(N=>i==null?void 0:i.bind(e.api)(N)).each(function(N,D){const K=st(this),J=K.classed(tn.SELECTED),W=K.classed(Pr.INCLUDED);let rt=!1,Q;if(K.classed(En.circle)){const ot=+K.attr("cx")*1,vt=+K.attr("cy")*1;Q=e.togglePoint,rt=p<ot&&ot<y&&A<vt&&vt<w}else if(K.classed(zn.bar)){const{x:ot,y:vt,width:$t,height:Tt}=nc(this);Q=e.togglePath,rt=!(y<ot||ot+$t<p)&&!(w<vt||vt+Tt<A)}else return;rt^W&&(K.classed(Pr.INCLUDED,!W),K.classed(tn.SELECTED,!J),Q.call(e,!J,K,N,D))}))};cc(e.state,F)},dragstart(t){const e=this,{config:r,state:a,$el:{main:o}}=e;e.hasArcType()||!r.data_selection_enabled||(a.dragStart=t,o.select(`.${Ee.chart}`).append("rect").attr("class",Pr.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend(){const t=this,{config:e,$el:{main:r},$T:a}=t;t.hasArcType()||!e.data_selection_enabled||(a(r.select(`.${Pr.dragarea}`)).style("opacity","0").remove(),r.selectAll(`.${sn.shape}`).classed(Pr.INCLUDED,!1),t.setDragStatus(!1))}},Uy=Object.defineProperty,zy=Object.defineProperties,jy=Object.getOwnPropertyDescriptors,Ou=Object.getOwnPropertySymbols,Gy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Cu=(t,e,r)=>e in t?Uy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Xy=(t,e)=>{for(var r in e||(e={}))Gy.call(e,r)&&Cu(t,r,e[r]);if(Ou)for(var r of Ou(e))Vy.call(e,r)&&Cu(t,r,e[r]);return t},Hy=(t,e)=>zy(t,jy(e)),Wy=Hy(Xy({},By),{selectPoint(t,e,r){const a=this,{config:o,$el:{main:s},$T:i}=a,l=o.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),d=(l?a.circleX:a.circleY).bind(a),g=a.pointSelectR.bind(a);_e(o.data_onselected,a.api,e,t.node()),i(s.select(`.${tn.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${tn.selectedCircle}-${r}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(tn.selectedCircle,r)).attr("cx",c).attr("cy",d).attr("stroke",a.color).attr("r",p=>a.pointSelectR(p)*1.4)).attr("r",g)},unselectPoint(t,e,r){const a=this,{config:o,$el:{main:s},$T:i}=a;_e(o.data_onunselected,a.api,e,t==null?void 0:t.node()),i(s.select(`.${tn.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${tn.selectedCircle}-${r}`)).attr("r",0).remove()},togglePoint(t,e,r,a){this[`${t?"":"un"}selectPoint`](e,r,a)},selectPath(t,e){const r=this,{config:a}=r;_e(a.data_onselected,r.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const r=this,{config:a}=r;_e(a.data_onunselected,r.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,r,a){this[`${t?"":"un"}selectPath`](e,r,a)},getToggle(t,e){const r=this;return t.nodeName==="path"?r.togglePath:r.isStepType(e)?()=>{}:r.togglePoint},toggleShape(t,e,r){var a;const o=this,{config:s,$el:{main:i}}=o;if(s.data_selection_enabled&&s.data_selection_isselectable.bind(o.api)(e)){const l=st(t),c=l.classed(tn.SELECTED),d=o.getToggle(t,e).bind(o);let g;if(!s.data_selection_multiple){const p=(a=o.isPointFocusOnly)==null?void 0:a.call(o);let y=`.${p?tn.selectedCircles:sn.shapes}`;s.data_selection_grouped&&(y+=o.getTargetSelectorSuffix(e.id)),i.selectAll(y).selectAll(p?`.${tn.selectedCircle}`:`.${sn.shape}.${tn.SELECTED}`).classed(tn.SELECTED,!1).each(function(A){const w=st(this);g=w,d(!1,w,A,A.index)})}(!g||g.node()!==l.node())&&(l.classed(tn.SELECTED,!c),d(!c,l,e,r))}}}),Yy={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},Ky={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:()=>{}},Zy={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 Pu=()=>($n(Xr.prototype,Wy),$n(Rr.prototype,Sy),Br.setOptions([Yy]),(Pu=()=>!0)()),Mu=()=>($n(Xr.prototype,Ly),$n(Rr.prototype,$y),Br.setOptions([Ky]),(Mu=()=>!0)()),wu=()=>($n(Xr.prototype,Fy),$n(Rr.prototype,Ny),Br.setOptions([Zy]),(wu=()=>!0)());function Du(t,e,r){const{config:a}=t,o=(s,i)=>{const l=ye(i)?i:i===!1?void 0:null;l!==null&&(a[`axis_${s}_${e}`]=l)};Qe(r)&&(Gn(r)?Object.keys(r).forEach(s=>{o(s,r[s])}):(ye(r)||r===!1)&&["y","y2"].forEach(s=>{o(s,r)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Nu(t,e){const{config:r}=t;return{x:r[`axis_x_${e}`],y:r[`axis_y_${e}`],y2:r[`axis_y2_${e}`]}}var Jy={axis:{labels:function(t){const e=this.internal;let r;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const o=e.axis.getLabelText(a);o&&(!r&&(r={}),r[a]=o)}),r},min:function(t){const e=this.internal;return Ne(t)||t===!1?Du(e,"min",t):Nu(e,"min")},max:function(t){const e=this.internal;return Ne(t)||t===!1?Du(e,"max",t):Nu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:r,max:a}=t;Qe(a)&&e.max(a),Qe(r)&&e.min(r)}else return{max:e.max(),min:e.min()}}}},Qy={category(t,e){const r=this.internal,{config:a}=r;return arguments.length>1&&(a.axis_x_categories[t]=e,r.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:r}=e;if(!t||!Array.isArray(t)){const a=r.axis_x_categories;return Kn(a)?Object.values(e.data.xs)[0]:a}return r.axis_x_categories=t,e.redraw(),r.axis_x_categories}},ky={flow(t){const e=this.internal;let r;(t.json||t.rows||t.columns)&&e.convertData(t,o=>{r=o,a()});function a(){let o,s=0,i=0,l,c;if(e.state.redrawing||!r||!Fa())return;const d=[],g=e.getMaxDataCount(),p=e.convertDataToTargets(r,!0),y=e.axis.isTimeSeries();e.data.targets.forEach(F=>{let N=!1;for(let D=0;D<p.length;D++)if(F.id===p[D].id){N=!0,F.values[F.values.length-1]&&(i=F.values[F.values.length-1].index+1),s=p[D].values.length;for(let K=0;K<s;K++)p[D].values[K].index=i+K,y||(p[D].values[K].x=i+K);F.values=F.values.concat(p[D].values),p.splice(D,1);break}!N&&d.push(F.id)}),e.data.targets.forEach(F=>{for(let N=0;N<d.length;N++)if(F.id===d[N]){i=F.values[F.values.length-1].index+1;for(let D=0;D<s;D++)F.values.push({id:F.id,index:i+D,x:y?e.getOtherTargetX(i+D):i+D,value:null})}}),e.data.targets.length&&p.forEach(F=>{const N=[];for(let D=e.data.targets[0].values[0].index;D<i;D++)N.push({id:F.id,index:D,x:y?e.getOtherTargetX(D):D,value:null});F.values.forEach(D=>{D.index+=i,y||(D.x+=i)}),F.values=N.concat(F.values)}),e.data.targets=e.data.targets.concat(p);const A=e.data.targets[0],w=A.values[0];Qe(t.to)?(s=0,c=y?Jn.call(e,t.to):t.to,A.values.forEach(F=>{F.x<c&&s++})):Qe(t.length)&&(s=t.length),g?g===1&&y&&(l=(A.values[A.values.length-1].x-w.x)/2,o=[new Date(+w.x-l),new Date(+w.x+l)]):(y?l=A.values.length>1?A.values[A.values.length-1].x-w.x:w.x-e.getXDomain(e.data.targets)[0]:l=1,o=[w.x-l,w.x]),o&&e.updateXDomain(null,!0,!0,!1,o),e.updateTargets(e.data.targets),e.redraw({flow:{index:w.index,length:s,duration:Ne(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:g},withLegend:!0,withTransition:g>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function $i(t,e){const r=this.internal,{config:a}=r,o=a.transition_duration&&Fa(),s=`grid_${e}_lines`;return t&&(a[s]=t,r.updateGrid(),r.redrawGrid(o)),a[s]}function Lu(t,e){const r=`grid_${e}_lines`;return $i.bind(this)(this.internal.config[r].concat(t||[]),e)}function Fu(t,e){this.internal.removeGridLines(t,e)}const Bu=function(t){return $i.bind(this)(t,"x")};$n(Bu,{add(t){return Lu.bind(this)(t,"x")},remove(t){return Fu.bind(this)(t,!0)}});const Uu=function(t){return $i.bind(this)(t,"y")};$n(Uu,{add(t){return Lu.bind(this)(t,"y")},remove(t){return Fu.bind(this)(t,!1)}});var qy={xgrids:Bu,ygrids:Uu},_y={groups(t){const e=this.internal,{config:r}=e;return ln(t)||(r.data_groups=t,e.redraw()),r.data_groups}};function zu(t,e=!1){const r=this.internal,{config:a}=r,o=a.transition_duration&&Fa();return t?(a.regions=e?a.regions.concat(t):t,r.updateRegion(),r.redrawRegion(o),e?a.regions:t):a.regions}const ju=function(t){return zu.bind(this)(t)};$n(ju,{add:function(t){return zu.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:r,$T:a}=e,o=t||{},s=$r(o,"classes",[Ia.region]);let i=e.$el.main.select(`.${Ia.regions}`).selectAll(s.map(l=>`.${l}`));return a(i).style("opacity","0").remove(),i=r.regions,Object.keys(o).length?(i=i.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(d=>{s.indexOf(d)>=0&&(c=!0)}),!c):!0}),r.regions=i):r.regions=[],i}});var tx={regions:ju},ex={x(t){const e=this.internal,{axis:r,data:a}=e,o=r.isCustomX()&&r.isCategorized();return Xe(t)&&(o?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),o?this.categories():a.xs},xs(t){const e=this.internal;return Ge(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function nx(t){return t}var Ko=1,Zo=2,Ai=3,Ga=4,Gu=1e-6;function rx(t){return"translate("+t+",0)"}function ax(t){return"translate(0,"+t+")"}function ox(t){return e=>+t(e)}function sx(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function ix(){return!this.__axis}function Jo(t,e){var r=[],a=null,o=null,s=6,i=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,d=t===Ko||t===Ga?-1:1,g=t===Ga||t===Zo?"x":"y",p=t===Ko||t===Ai?rx:ax;function y(A){var w=a==null?e.ticks?e.ticks.apply(e,r):e.domain():a,F=o==null?e.tickFormat?e.tickFormat.apply(e,r):nx:o,N=Math.max(s,0)+l,D=e.range(),K=+D[0]+c,J=+D[D.length-1]+c,W=(e.bandwidth?sx:ox)(e.copy(),c),rt=A.selection?A.selection():A,Q=rt.selectAll(".domain").data([null]),ot=rt.selectAll(".tick").data(w,e).order(),vt=ot.exit(),$t=ot.enter().append("g").attr("class","tick"),Tt=ot.select("line"),yt=ot.select("text");Q=Q.merge(Q.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),ot=ot.merge($t),Tt=Tt.merge($t.append("line").attr("stroke","currentColor").attr(g+"2",d*s)),yt=yt.merge($t.append("text").attr("fill","currentColor").attr(g,d*N).attr("dy",t===Ko?"0em":t===Ai?"0.71em":"0.32em")),A!==rt&&(Q=Q.transition(A),ot=ot.transition(A),Tt=Tt.transition(A),yt=yt.transition(A),vt=vt.transition(A).attr("opacity",Gu).attr("transform",function(Rt){return isFinite(Rt=W(Rt))?p(Rt+c):this.getAttribute("transform")}),$t.attr("opacity",Gu).attr("transform",function(Rt){var xt=this.parentNode.__axis;return p((xt&&isFinite(xt=xt(Rt))?xt:W(Rt))+c)})),vt.remove(),Q.attr("d",t===Ga||t===Zo?i?"M"+d*i+","+K+"H"+c+"V"+J+"H"+d*i:"M"+c+","+K+"V"+J:i?"M"+K+","+d*i+"V"+c+"H"+J+"V"+d*i:"M"+K+","+c+"H"+J),ot.attr("opacity",1).attr("transform",function(Rt){return p(W(Rt)+c)}),Tt.attr(g+"2",d*s),yt.attr(g,d*N).text(F),rt.filter(ix).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Zo?"start":t===Ga?"end":"middle"),rt.each(function(){this.__axis=W})}return y.scale=function(A){return arguments.length?(e=A,y):e},y.ticks=function(){return r=Array.from(arguments),y},y.tickArguments=function(A){return arguments.length?(r=A==null?[]:Array.from(A),y):r.slice()},y.tickValues=function(A){return arguments.length?(a=A==null?null:Array.from(A),y):a&&a.slice()},y.tickFormat=function(A){return arguments.length?(o=A,y):o},y.tickSize=function(A){return arguments.length?(s=i=+A,y):s},y.tickSizeInner=function(A){return arguments.length?(s=+A,y):s},y.tickSizeOuter=function(A){return arguments.length?(i=+A,y):i},y.tickPadding=function(A){return arguments.length?(l=+A,y):l},y.offset=function(A){return arguments.length?(c=+A,y):c},y}function lx(t){return Jo(Ko,t)}function cx(t){return Jo(Zo,t)}function Vu(t){return Jo(Ai,t)}function Xu(t){return Jo(Ga,t)}var ux=Object.defineProperty,fx=(t,e,r)=>e in t?ux(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Qo=(t,e,r)=>fx(t,typeof e!="symbol"?e+"":e,r);class dx{constructor(e){Qo(this,"owner"),Qo(this,"config"),Qo(this,"scale"),Qo(this,"charSize",{});const r=Gr(),{config:a,params:o}=e;this.owner=e,this.config=a,this.scale=r,(a.noTransition||!o.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((o.orgXScale||r).range())}getSizeFor1Char(e,r,a=!0){const o={w:5.5,h:11.5};return this.charSize[e]&&a?this.charSize[e]:(!r.empty()&&r.text("0").call(s=>{try{const{width:i,height:l}=Ar(s.node(),!0);i&&l&&(o.w=i,o.h=l)}finally{s.text("")}}),this.charSize[e]=o,o)}getTickTransformSetter(e){const{config:r}=this,a=e==="x"?o=>`translate(${o+r.tickOffset},0)`:o=>`translate(0,${o})`;return(o,s)=>{o.attr("transform",i=>{const l=s(i);return Ne(i)?a(l):null})}}scaleExtent(e){const r=e[0],a=e[e.length-1];return r<a?[r,a]:[a,r]}generateTicks(e,r){const{tickStepSize:a}=this.owner.params,[o,s]=e.domain();let i=[];if(r&&a){let l=Math.round(o);for(;l<=s;)i.push(l),l+=a}else if(e.ticks){const{tickArguments:l}=this.config;if(e.type==="log"&&!l){const c=Gr("_log").domain([o>0?o:1,s]).range(e.range());i=c.ticks();for(let d=s.toFixed().length;i.length>15;d--)i=c.ticks(d);i.splice(0,1,o),i.splice(i.length-1,1,s)}else i=e.ticks(...this.config.tickArguments||[]);i=i.map(c=>je(c)&&ye(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return i}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const r=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,o=r?r(a):a;return Qe(o)?o:""}transitionise(e){const{config:r}=this;let a=e;if(r.withoutTransition)a=e.interrupt();else if(r.transition||!this.owner.params.noTransition)try{a=e.transition(r.transition)}catch(o){}return a}}var hx=Object.defineProperty,vx=(t,e,r)=>e in t?hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Va=(t,e,r)=>vx(t,typeof e!="symbol"?e+"":e,r);class gx{constructor(e={}){Va(this,"helper"),Va(this,"config"),Va(this,"params"),Va(this,"g"),Va(this,"generatedTicks");const r={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};r.tickLength=Math.max(r.innerTickSize,0)+r.tickPadding,this.config=r,this.params=e,this.helper=new dx(this)}create(e){const r=this,{config:a,helper:o,params:s}=r,{scale:i}=o,{orient:l}=a,c=this.splitTickText.bind(r),d=/^(left|right)$/.test(l),g=/^(top|bottom)$/.test(l),p=o.getTickTransformSetter(g?"x":"y"),y=p===o.axisX?"y":"x",A=/^(top|left)$/.test(l)?-1:1,w=s.tickTextRotate;this.config.range=i.rangeExtent?i.rangeExtent():o.scaleExtent((s.orgXScale||i).range());const{innerTickSize:F,tickLength:N,range:D}=a,K=s.id,J=K&&/^(x|y|y2)$/.test(K)?s.config[`axis_${K}_tick_text_position`]:{x:0,y:0},W=K==="subX"?"subchart_axis_x":`axis_${K}`,rt=s.config[`${W}_show`],Q={tick:rt?s.config[`${W}_tick_show`]:!1,text:rt?s.config[`${W}_tick_text_show`]:!1},ot=s.config.axis_evalTextSize;let vt;e.each(function(){const $t=st(this);let Tt=this.__chart__||i,yt=o.copyScale();vt=$t,this.__chart__=yt,a.tickOffset=s.isCategory?(yt(1)-yt(0))/2:0;const Rt=$t.selectAll(".domain").data([0]);if(Rt.enter().append("path").attr("class","domain").merge(Rt).attr("d",()=>{const xt=a.outerTickSize*A;return g?`M${D[0]},${xt}V0H${D[1]}V${xt}`:`M${xt},${D[0]}H0V${D[1]}H${xt}`}),Q.tick||Q.text){const xt=a.tickValues||o.generateTicks(yt,d||s.config.axis_rotated);r.generatedTicks=xt;let q=$t.selectAll(".tick").data(xt,yt);const Et=q.enter().insert("g",".domain").attr("class","tick"),dt=q.exit().remove();q=Et.merge(q),Q.tick&&Et.append("line"),Q.text&&Et.append("text");const bt=q.select("text"),kt=[];let Ht={w:0,h:0};de(ot)&&(Ht=ot.bind(r.params.owner.api)(bt.node(),K),this.classList.contains(Ee.dummy)&&(this.sizeFor1Char=Ht)),(!Ht||Ht.w===0||Ht.h===0)&&(Ht=r.helper.getSizeFor1Char(l,bt,!!ot));let Kt=bt.selectAll("tspan").data((Oe,Me)=>{const we=s.tickMultiline?c(Oe,yt,xt,d,Ht.w):Xe(o.textFormatted(Oe))?o.textFormatted(Oe).concat():[o.textFormatted(Oe)];return kt[Me]=we.length,we.map(Ke=>({index:Me,splitted:Ke}))});Kt.exit().remove(),Kt=Kt.enter().append("tspan").merge(Kt).text(Oe=>Oe.splitted),Kt.attr("x",g?0:N*A).attr("dx",(()=>{let Oe=0;return/(top|bottom)/.test(l)&&w&&(Oe=8*Math.sin(Math.PI*(w/180))*(l==="top"?-1:1)),Oe+(J.x||0)})()).attr("dy",(Oe,Me)=>{const we=".71em";let Ke=0;return l!=="top"&&(Ke=Ht.h,Me===0&&(Ke=d?-((kt[Oe.index]-1)*(Ht.h/2)-3):J.y===0?we:0)),ye(Ke)&&J.y?Ke+J.y:Ke||we});const ie=q.select("line"),he=q.select("text");if(Et.select("line").attr(`${y}2`,F*A),Et.select("text").attr(y,N*A),r.setTickLineTextPosition(ie,he,Ht),s.tickTitle){const Oe=he.select("title");(Oe.empty()?he.append("title"):Oe).text(Me=>s.tickTitle[Me])}if(yt.bandwidth){const Oe=yt,Me=Oe.bandwidth()/2;Tt=we=>Oe(we)+Me,yt=Tt}else Tt.bandwidth?Tt=yt:p(dt,yt);q=s.owner.state.flowing?o.transitionise(q):s.owner.$T(q),p(Et,Tt),p(q.style("opacity",null),yt)}}),this.g=vt}getGeneratedTicks(e){var r;const a=((r=this.generatedTicks)==null?void 0:r.length)-1;let o=this.generatedTicks;if(a>e){const s=Math.round(a/e+.1);o=this.generatedTicks.map((i,l)=>l%s===0?i:null).filter(i=>i!==null).splice(0,e)}return o}getTickXY(){const{config:e}=this,r={x:0,y:0};return this.params.isCategory&&(r.x=e.tickCentered?0:e.tickOffset,r.y=e.tickCentered?e.tickOffset:0),r}getTickSize(e){const{scale:r}=this.helper,{config:a}=this,{innerTickSize:o,range:s}=a,i=r(e)+(a.tickCentered?0:a.tickOffset);return s[0]<i&&i<s[1]?o:0}setTickLineTextPosition(e,r,a){const o=this.getTickXY(),{innerTickSize:s,orient:i,tickLength:l,tickOffset:c}=this.config,d=this.params.id,g=this.params.tickTextRotate,p=6,y=a.h/2-p,A=J=>{const W=["start","end"];return i==="top"&&W.reverse(),J?W[J>0?0:1]:"middle"},w=J=>J?`rotate(${J})`:null,F=J=>{const W=J/(i==="bottom"?15:23);return J?11.5-2.5*W*(J>0?1:-1):l},{config:{axis_rotated:N,axis_x_tick_text_inner:D}}=this.params.owner,K=this.params.config[`axis_${d}_tick_inner`];switch(i){case"bottom":e.attr("x1",o.x).attr("x2",o.x).attr("y2",J=>this.getTickSize.bind(this)(J)*(K?-1:1)),r.attr("x",0).attr("y",F(g)).style("text-anchor",A(g)).style("text-anchor",(J,W,{length:rt})=>!N&&W===0&&(D===!0||D.first)?"start":!N&&W===rt-1&&(D===!0||D.last)?"end":A(g)).attr("transform",w(g));break;case"top":e.attr("x2",0).attr("y2",K?s:-s),r.attr("x",0).attr("y",-(F(g)+y+p)).style("text-anchor",A(g)).attr("transform",w(g));break;case"left":e.attr("x2",K?s:-s).attr("y1",o.y).attr("y2",o.y),r.attr("x",-l).attr("y",c+(N?y/4:y)).style("text-anchor","end");break;case"right":e.attr("x2",K?-s:s).attr("y2",0),r.attr("x",l).attr("y",y).style("text-anchor","start")}}splitTickText(e,r,a,o,s){const{params:i}=this,l=this.helper.textFormatted(e),c=je(l)&&l.indexOf(`
|
|
58
59
|
`)>-1?l.split(`
|
|
59
|
-
`):[];if(c.length)return c;if(Xe(l))return l;let f=s.tickWidth;(!f||f<=0)&&(f=o?95:s.isCategory?(s.isInverted?r(a[0])-r(a[1]):r(a[1])-r(a[0]))-12:110);function v(p,y){let A,w,L;for(let N=1;N<y.length;N++)if(y.charAt(N)===" "&&(w=N),A=y.substr(0,N+1),L=i*A.length,f<L)return v(p.concat(y.substr(0,w||N)),y.slice(w?w+1:N));return p.concat(y)}return v(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:r}=this;return arguments.length?(r.tickFormat=e,this):r.tickFormat}tickCentered(e){const{config:r}=this;return arguments.length?(r.tickCentered=e,this):r.tickCentered}tickOffset(){return this.config.tickOffset}tickInterval(e){var r;const{outerTickSize:a,tickOffset:o,tickValues:i}=this.config;let s;if(this.params.isCategory)s=o*2;else{const l=(r=this.params.owner.scale.zoom)!=null?r:this.helper.scale;s=(this.g.select("path.domain").node().getTotalLength()-a*2)/(e||this.g.selectAll("line").size());const f=i?i.map((v,p,y)=>{const A=p+1;return A<y.length?l(y[A])-l(v):null}).filter(Boolean):[];s=Math.min(...f,s)}return s===1/0?0:s}ticks(...e){const{config:r}=this;return e.length?(r.tickArguments=Br(e),this):r.tickArguments}tickCulling(e){const{config:r}=this;return arguments.length?(r.tickCulling=e,this):r.tickCulling}tickValues(e){const{config:r}=this;if(de(e))r.tickValues=()=>e(this.helper.scale.domain());else{if(!arguments.length)return r.tickValues;r.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var ky=Object.defineProperty,qy=(t,e,r)=>e in t?ky(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,yr=(t,e,r)=>qy(t,typeof e!="symbol"?e+"":e,r),_y={getAxisInstance:function(){return this.axis||new tx(this)}};class tx{constructor(e){yr(this,"owner"),yr(this,"x"),yr(this,"subX"),yr(this,"y"),yr(this,"y2"),yr(this,"axesList",{}),yr(this,"tick",{x:null,y:null,y2:null}),yr(this,"xs",[]),yr(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${gn.axis} ${gn[`axis${Rn(e)}`]}`}isHorizontal(e,r){const a=e.config.axis_rotated;return r?a:!a}isCategorized(){const{config:e,state:r}=this.owner;return e.axis_x_type.indexOf("category")>=0||r.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||dn(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 r="linear";return this.isTimeSeries(e)?r=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(r="log"),r}getExtent(){const e=this.owner,{config:r,scale:a}=e;let o=r.axis_x_extent;if(o){if(de(o))o=o.bind(e.api)(e.getXDomain(e.data.targets),a.subX);else if(this.isTimeSeries()&&o.every(isNaN)){const i=Jn.bind(e);o=o.map(s=>a.subX(i(s)))}}return o}init(){const e=this.owner,{config:r,$el:{main:a,axis:o},state:{clip:i}}=e,s=["x","y"];r.axis_y2_show&&s.push("y2"),s.forEach(l=>{const c=this.getAxisClassName(l);o[l]=a.append("g").attr("class",c).attr("clip-path",()=>{let f=null;return l==="x"?f=i.pathXAxis:l==="y"&&(f=i.pathYAxis),f}).attr("transform",e.getTranslate(l)).style("visibility",r[`axis_${l}_show`]?null:"hidden"),this.generateAxes(l)})}setOrient(){const e=this.owner,{axis_rotated:r,axis_y_inner:a,axis_y2_inner:o}=e.config;this.orient={x:r?"left":"bottom",y:r?a?"top":"bottom":a?"right":"left",y2:r?o?"bottom":"top":o?"left":"right",subX:r?"left":"bottom"}}generateAxes(e){const r=this.owner,{config:a}=r,o=[],i=a[`axis_${e}_axes`],s=a.axis_rotated;let l;e==="x"?l=s?Uu:Bu:e==="y"?l=s?Bu:Uu:e==="y2"&&(l=s?Xy:Hy),i.length&&i.forEach(c=>{const f=c.tick||{},v=r.scale[e].copy();c.domain&&v.domain(c.domain),o.push(l(v).ticks(f.count).tickFormat(de(f.format)?f.format.bind(r.api):(p=>p)).tickValues(f.values).tickSizeOuter(f.outer===!1?0:6))}),this.axesList[e]=o}updateAxes(){const e=this.owner,{config:r,$el:{main:a},$T:o}=e;Object.keys(this.axesList).forEach(i=>{const s=r[`axis_${i}_axes`],l=e.scale[i].copy(),c=l.range();this.axesList[i].forEach((f,v)=>{const p=f.scale().range();c.every((w,L)=>w===p[L])||f.scale().range(c);const y=`${this.getAxisClassName(i)}-${v+1}`;let A=a.select(`.${y.replace(/\s/,".")}`);A.empty()?A=a.append("g").attr("class",y).style("visibility",r[`axis_${i}_show`]?null:"hidden").call(f):(s[v].domain&&l.domain(s[v].domain),o(A).call(f.scale(l))),A.attr("transform",e.getTranslate(i,v+1))})})}setAxis(e,r,a,o){const i=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,r,a,e==="x"&&(i.scale.zoom||i.config.subchart_show||i.state.resizing)?!0:o)}getAxis(e,r,a,o,i){const s=this.owner,{config:l}=s,c=/^(x|subX)$/.test(e),f=c?"x":e,v=c&&this.isCategorized(),p=this.orient[e],y=i?0:s.getAxisTickRotate(f);let A;if(c)A=e==="subX"?s.format.subXAxisTick:s.format.xAxisTick;else{const K=l[`axis_${e}_tick_format`];de(K)&&(A=K.bind(s.api))}let w=this.tick[f];const L=ia({outerTick:a,noTransition:o,config:l,id:e,tickTextRotate:y,owner:s},c&&{isCategory:v,isInverted:l.axis_x_inverted,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTitle:v&&l.axis_x_tick_tooltip&&s.api.categories(),orgXScale:s.scale.x});c||(L.tickStepSize=l[`axis_${f}_tick_stepSize`]);const N=new Qy(L).scale(c&&s.scale.zoom||r).orient(p);if(c&&this.isTimeSeries()&&w&&!de(w)){const K=Jn.bind(s);w=w.map(Z=>K(Z))}else!c&&this.isTimeSeriesY()&&(N.ticks(l.axis_y_tick_time_value),w=null);w&&N.tickValues(w),N.tickFormat(A||!c&&s.isStackNormalized()&&s.hasAxisGroupedData(e)&&(K=>`${K}%`)),v&&(N.tickCentered(l.axis_x_tick_centered),Kn(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const D=l[`axis_${f}_tick_count`];return D&&N.ticks(D),N}updateXAxisTickValues(e,r){var a;const o=this.owner,{config:i}=o,s=i.axis_x_tick_fit;let l=i.axis_x_tick_count,c;return(s||l&&s)&&(c=o.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),r?r.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:r,scale:a}=this.owner;let o=r.data_axes[e];return(!o||!a[o])&&(o="y"),o}getXAxisTickFormat(e){const r=this.owner,{config:a,format:o}=r,i=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,s=this.isTimeSeries(),l=this.isCategorized();let c;return i?de(i)?c=i.bind(r.api):s&&(c=f=>f?o.axisTime(i)(f):""):c=s?o.defaultAxisTime:l?r.categoryName:f=>f<0?f.toFixed(0):f,de(c)?f=>c.apply(r,l?[f,r.categoryName(f)]:[f]):c}getTickValues(e){const r=this.owner,a=r.config[`axis_${e}_tick_values`],o=r[`${e}Axis`];return(de(a)?a.call(r.api):a)||(o?o.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const r=this.getLabelOptionByAxisId(e);return Ue(r)?r:r?r.text:null}setLabelText(e,r){const a=this.owner,{config:o}=a,i=this.getLabelOptionByAxisId(e);Ue(i)?o[`axis_${e}_label`]=r:i&&(i.text=r)}getLabelPosition(e,r){const a=this.owner.config.axis_rotated,o=this.getLabelOptionByAxisId(e),i=Gn(o)&&o.position?o.position:r[+!a],s=l=>!!~i.indexOf(l);return{isInner:s("inner"),isOuter:s("outer"),isLeft:s("left"),isCenter:s("center"),isRight:s("right"),isTop:s("top"),isMiddle:s("middle"),isBottom:s("bottom")}}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 r=this.owner,{state:{width:a,height:o}}=r,i=this.getAxisLabelPosition(e);let s=i.isMiddle?-o/2:0;return this.isHorizontal(r,e!=="x")?s=i.isLeft?0:i.isCenter?a/2:a:i.isBottom&&(s=-o),s}textAnchorForAxisLabel(e){const r=this.owner,a=this.getAxisLabelPosition(e);let o=a.isMiddle?"middle":"end";return this.isHorizontal(r,e!=="x")?o=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(o="start"),o}dxForAxisLabel(e){const r=this.owner,a=this.getAxisLabelPosition(e);let o=a.isBottom?"0.5em":"0";return this.isHorizontal(r,e!=="x")?o=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(o="-0.5em"),o}dyForAxisLabel(e){const r=this.owner,{config:a}=r,o=a.axis_rotated,i=this.getAxisLabelPosition(e).isInner,s=a[`axis_${e}_tick_rotate`]?r.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const f=a.axis_x_height;o?c=i?"1.2em":-25-l:i?c="-0.5em":f?c=f-10:s?c=s-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],o?i?c=c[0]:s?c=s*(e==="y2"?-1:1)-c[1]:c=c[2]:c=i?c[3]:(c[4]+(a[`axis_${e}_inner`]?0:l+c[4]))*(e==="y"?-1:1);return c}getMaxTickSize(e,r){const a=this.owner,{config:o,state:{current:i,resizing:s},$el:{svg:l,chart:c}}=a,f=i.maxTickSize[e],v=`axis_${e}`,p={width:0,height:0};if(s||r||!o[`${v}_show`]||f.width>0&&a.filterTargetsToShow().length===0)return f;if(l){const y=/^y2?$/.test(e),A=a.filterTargetsToShow(a.data.targets),w=a.scale[e].copy().domain(a[`get${y?"Y":"X"}Domain`](A,e)),L=w.domain(),N=L[0]===L[1]&&L.every($t=>$t>0),D=Xe(f.domain)&&f.domain[0]===f.domain[1]&&f.domain.every($t=>$t>0);if(N||D)return f.size;f.domain=L,y||f.ticks.splice(0);const K=this.getAxis(e,w,!1,!1,!0),Z=o[`${v}_tick_rotate`],H=o[`${v}_tick_count`];!o[`${v}_tick_values`]&&H&&K.tickValues(this.generateTickValues(L,H,y?this.isTimeSeriesY():this.isTimeSeries())),!y&&this.updateXAxisTickValues(A,K);const Q=c.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0"),ot=Q.append("g").attr("class",`${gn[`axis${Rn(e)}`]} ${Ee.dummy}`);K.create(ot);const{sizeFor1Char:vt}=ot.node();Q.selectAll("text").attr("transform",ye(Z)?`rotate(${Z})`:null).each(function($t,Tt){const{width:mt,height:bt}=vt?{width:this.textContent.length*vt.w,height:vt.h}:Sn(this,!0);p.width=Math.max(p.width,mt),p.height=Math.max(p.height,bt),y||(f.ticks[Tt]=mt)}),Q.remove()}return Object.keys(p).forEach(y=>{p[y]>0&&(f[y]=p[y])}),f}getXAxisTickTextY2Overflow(e){const r=this.owner,{axis:a,config:o,state:{current:i,isLegendRight:s,legendItemWidth:l}}=r,c=r.getAxisTickRotate("x"),f=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&o.axis_x_tick_fit&&(!o.axis_x_tick_culling||Kn(o.axis_x_tick_culling))&&!o.axis_x_tick_multiline&&f){const v=o.axis_y2_show&&i.maxTickSize.y2.width||0,p=s&&l||0,y=i.width-r.getCurrentPaddingByDirection("left"),A=this.getXAxisTickMaxOverflow(c,y-e)-v-p,w=Math.max(0,A)+e;return Math.min(w,y/2)}return 0}getXAxisTickMaxOverflow(e,r){const a=this.owner,{axis:o,config:i,state:s}=a,l=o.isTimeSeries(),c=s.current.maxTickSize.x.ticks,f=c.length,{left:v,right:p}=s.axis.x.padding;let y=0;const A=f-(l&&i.axis_x_tick_fit?.5:0);for(let N=0;N<f;N++){const D=N+1,K=Math.cos(Math.PI*e/180)*c[N],Z=D-(l?1:.5)+v;if(Z<=0)continue;const nt=(r-K)/Z,Q=A-D,ot=p*nt,vt=Q*nt+ot,$t=K-nt/2-vt;y=Math.max(y,$t)}const w=a.filterTargetsToShow(a.data.targets);let L=0;if(!l&&i.axis_x_tick_count<=w.length&&w[0].values.length){const N=Vr(a.axis.getAxisType("x"),0,r-y).domain([v*-1,a.getXDomainMax(a.data.targets)+1+p]);L=(N(1)-N(0))/2}return y+L}updateLabels(e){const r=this.owner,{config:a,$el:{main:o},$T:i}=r,s=a.axis_rotated;["x","y","y2"].forEach(l=>{const c=this.getLabelText(l),f=`axis${Rn(l)}`,v=gn[`${f}Label`];if(c){let p=o.select(`text.${v}`);p.empty()&&(p=o.select(`g.${gn[f]}`).insert("text",":first-child").attr("class",v).attr("transform",["rotate(-90)",null][l==="x"?+!s:+s]).style("text-anchor",()=>this.textAnchorForAxisLabel(l))),i(p,e).attr("x",()=>this.xForAxisLabel(l)).attr("dx",()=>this.dxForAxisLabel(l)).attr("dy",()=>this.dyForAxisLabel(l)).text(c)}})}getPadding(e,r,a,o){const i=ye(e)?e:e[r];return Ne(i)?this.owner.convertPixelToScale(/(bottom|top)/.test(r)?"y":"x",i,o):a}generateTickValues(e,r,a){let o=e;if(r){const i=de(r)?r():r;if(i===1)o=[e[0]];else if(i===2)o=[e[0],e[e.length-1]];else if(i>2){const s=this.isCategorized(),l=i-2,c=e[0],f=e[e.length-1],v=(f-c)/(l+1);let p;o=[c];for(let y=0;y<l;y++)p=+c+v*(y+1),o.push(a?new Date(p):s?Math.round(p):p);o.push(f)}}return a||(o=o.sort((i,s)=>i-s)),o}generateTransitions(e){const r=this.owner,{$el:{axis:a},$T:o}=r,[i,s,l,c]=["x","y","y2","subX"].map(f=>o(a[f],e));return{axisX:i,axisY:s,axisY2:l,axisSubX:c}}redraw(e,r,a){const o=this.owner,{config:i,state:s,$el:l}=o,c=r?"0":null;["x","y","y2","subX"].forEach(f=>{const v=this[f],p=l.axis[f];v&&p&&(!a&&!i.transition_duration&&(v.config.withoutTransition=!0),p.style("opacity",c),v.create(e[`axis${Rn(f)}`]))}),this.updateAxes(),!s.rendered&&i.axis_tooltip&&this.setAxisTooltip()}redrawAxis(e,r,a,o,i){var s,l,c;const f=this.owner,{config:v,scale:p,$el:y}=f,A=!!p.zoom;let w;!A&&this.isCategorized()&&e.length===0&&p.x.domain([0,y.axis.x.selectAll(".tick").size()]),p.x&&e.length?(!A&&f.updateXDomain(e,r.UpdateXDomain,r.UpdateOrgXDomain,r.TrimXDomain),v.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(s=this.subX)==null||s.tickValues([])),v.zoom_rescale&&!o&&(w=p.x.orgDomain()),["y","y2"].forEach(L=>{const N=`axis_${L}_`,D=p[L];if(D){const K=v[`${N}tick_values`],Z=v[`${N}tick_count`];if(D.domain(f.getYDomain(e,L,w)),!K&&Z){const H=f.axis[L],nt=D.domain();H.tickValues(this.generateTickValues(nt,nt.every(Q=>Q===0)?1:Z,this.isTimeSeriesY()))}}}),this.redraw(a,f.hasArcType(),i),this.updateLabels(r.Transition),(r.UpdateXDomain||r.UpdateXAxis||r.Y)&&e.length&&this.setCulling(),r.Y&&((l=p.subY)==null||l.domain(f.getYDomain(e,"y")),(c=p.subY2)==null||c.domain(f.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:r,state:{clip:a,current:o},$el:i}=e;["subX","x","y","y2"].forEach(s=>{const l=i.axis[s],f=`axis_${s==="subX"?"x":s}_tick_culling`,v=r[f];if(l&&v){const p=l.selectAll(".tick"),y=sa(p.data(),!r[`${f}_reverse`]),A=y.length,w=r[`${f}_max`],L=r[`${f}_lines`];let N;if(A){for(let D=1;D<A;D++)if(A/D<w){N=D;break}p.each(function(D){const K=L?this.querySelector("text"):this;K&&(K.style.display=y.indexOf(D)%N?"none":null)})}else p.style("display",null);if(s==="x"){const D=o.maxTickSize.x.clipPath?a.pathXAxisTickTexts:null;i.svg.selectAll(`.${gn.axisX} .tick text`).attr("clip-path",D)}}})}setAxisTooltip(){var e;const r=this.owner,{config:{axis_rotated:a,axis_tooltip:o},$el:{axis:i,axisTooltip:s}}=r,l=(e=o.backgroundColor)!=null?e:"black";r.generateTextBGColorFilter(l,{x:-.15,y:-.2,width:1.3,height:1.3}),["x","y","y2"].forEach(c=>{var f,v,p;if(Ue(l)||l[c])if(s[c]=(f=i[c])==null?void 0:f.append("text").classed(gn[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",r.updateTextBGColor({id:c},l)),a){const y=c==="x"?"x":"y",A=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(v=s[c])==null||v.attr(y,A).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const y=c==="x"?"y":"x",A=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(p=s[c])==null||p.attr(y,A).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var ex={initEventRect(){this.$el.main.select(`.${Ee.chart}`).append("g").attr("class",kn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:r,state:a,$el:o}=e,i=e.isMultipleX(),s=r.axis_x_inverted;if(o.eventRect)e.updateEventRect(o.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${kn.eventRects}`).style("cursor",r.zoom_enabled&&r.zoom_type!=="drag"?r.axis_rotated?"ns-resize":"ew-resize":null).classed(kn.eventRectsMultiple,i).classed(kn.eventRectsSingle,!i).selectAll(`.${kn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),o.eventRect=c,e.state.inputType==="touch"&&!o.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(o.eventRect,!0)}if(!i){const l=e.getMaxDataCountTarget();(!r.data_xSort||s)&&l.sort((c,f)=>s?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:r,$el:{eventRect:a,svg:o}}=t,i=A=>{if(t.isMultipleX())t.selectRectForMultipleXs(A);else{const w=t.getDataIndexFromEvent(r.event);t.callOverOutForTouch(w),w===-1?t.unselectRect():t.selectRectForSingle(A,w)}},s=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Ni(l)&&l||!1,f=!isNaN(l)&&l||null;let v;const p=!c&&f===null,y=A=>{const w=A.type,N=A.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];w==="touchstart"?c?A.preventDefault():f!==null&&(v=N):w==="touchmove"&&(c||v===!0||f!==null&&Math.abs(v-N)>=f)&&(v=!0,A.preventDefault())};a.on("touchstart",A=>{r.event=A,t.updateEventRect()},{passive:p}).on("touchstart.eventRect touchmove.eventRect",A=>{if(r.event=A,!a.empty()&&a.classed(kn.eventRect)){if(r.dragging||r.flowing||t.hasArcType()||A.touches.length>1)return;y(A),i(a.node())}else s()},{passive:p}).on("touchend.eventRect",A=>{r.event=A,!a.empty()&&a.classed(kn.eventRect)&&(t.hasArcType()||!t.toggleShape||r.cancelClick)&&r.cancelClick&&(r.cancelClick=!1)},{passive:p}),o.on("touchstart",A=>{r.event=A;const{target:w}=A;w&&w!==a.node()&&s()},{passive:p})},updateEventRect(t,e=!1){const r=this,{state:a,$el:o}=r,{eventReceiver:i,width:s,height:l,rendered:c,resizing:f}=a,v=t||o.eventRect,p=()=>{if(i){const y=tc(o.chart.node());i.rect=Sn(v.node(),!0).toJSON(),i.rect.top+=y.y,i.rect.left+=y.x}};(!c||f||e)&&(v.attr("x",0).attr("y",0).attr("width",s).attr("height",l),(!c||e)&&v.classed(kn.eventRect,!0)),p()},updateEventType(t){const e=this,r=Ni(t),a=r?e.$el.eventRect:t,o=r?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(o&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:r,state:a}=t,o=r.zoom||r.x,i=e.axis_rotated,s=t.isMultipleX();let l,c,f,v;if(t.updateEventType(s),s)l=0,c=0,f=a.width,v=a.height;else{let A,w;if(t.axis.isCategorized())A=t.getEventRectWidth(),w=L=>o(L.x)-A/2;else{const L=({index:N})=>({prev:t.getPrevX(N),next:t.getNextX(N)});A=N=>{const D=L(N),K=o.domain();let Z;return D.prev===null&&D.next===null?Z=i?a.height:a.width:D.prev===null?Z=(o(D.next)+o(N.x))/2:D.next===null?Z=o(K[1])-(o(D.prev)+o(N.x))/2:(Object.keys(D).forEach((H,nt)=>{var Q;D[H]=(Q=D[H])!=null?Q:K[nt]}),Z=Math.max(0,(o(D.next)-o(D.prev))/2)),Z},w=N=>{const D=L(N);let K;return D.prev===null&&D.next===null?K=0:D.prev===null?K=o(o.domain()[0]):K=(o(N.x)+o(D.prev))/2,K}}l=i?0:w,c=i?w:0,f=i?a.width:A,v=i?A:a.height}const{eventReceiver:p}=a,y=(A,w)=>de(A)?A(w):A;p.coords.splice(p.data.length),p.data.forEach((A,w)=>{p.coords[w]={x:y(l,A),y:y(c,A),w:y(f,A),h:y(v,A)}})},selectRectForSingle(t,e){var r,a;const o=this,{config:i,$el:{main:s,circle:l}}=o,c=i.data_selection_enabled,f=i.data_selection_grouped,v=i.data_selection_isselectable,p=i.tooltip_grouped,y=o.getAllValuesOnIndex(e);if(p&&(o.showTooltip(y,t),(r=o.showGridFocus)==null||r.call(o,y),!c||f))return;!l&&s.selectAll(`.${Ee.EXPANDED}:not(.${sn.shape}-${e})`).classed(Ee.EXPANDED,!1);const A=s.selectAll(`.${sn.shape}-${e}`).classed(Ee.EXPANDED,!0).style("cursor",v?"pointer":null).filter(function(w){return o.isWithinShape(this,w)});A.empty()&&!p&&i.interaction_onout&&((a=o.hideGridFocus)==null||a.call(o),o.hideTooltip(),!f&&o.setExpand(e)),A.call(w=>{var L,N;const D=w.data();c&&(f||v!=null&&v.bind(o.api)(D))&&(t.style.cursor="pointer"),p||(o.showTooltip(D,t),(L=o.showGridFocus)==null||L.call(o,D),(N=o.unexpandCircles)==null||N.call(o),w.each(K=>o.setExpand(e,K.id)))})},selectRectForMultipleXs(t,e=!0){const r=this,{config:a,state:o}=r,i=r.filterTargetsToShow(r.data.targets);if(o.dragging||r.hasArcType(i))return;const s=Zn(o.event,t),l=r.findClosestFromTargets(i,s);if(e&&o.mouseover&&(!l||l.id!==o.mouseover.id)&&(a.data_onout.call(r.api,o.mouseover),o.mouseover=void 0),!l){r.unselectRect();return}const f=(r.isBubbleType(l)||r.isScatterType(l)||!a.tooltip_grouped?[l]:r.filterByX(i,l.x)).map(p=>r.addName(p));r.showTooltip(f,t),r.setExpand(l.index,l.id,!0),r.showGridFocus(f);const v=r.dist(l,s);(r.isBarType(l.id)||v<r.getPointSensitivity(l))&&(r.$el.svg.select(`.${kn.eventRect}`).style("cursor","pointer"),e&&(!o.mouseover||o.mouseover.x!==l.x||o.mouseover.id!==l.id)&&(a.data_onover.call(r.api,l),o.mouseover=l))},unselectRect(){const t=this,{$el:{circle:e,tooltip:r}}=t;t.$el.svg.select(`.${kn.eventRect}`).style("cursor",null),t.hideGridFocus(),r&&(t.hideTooltip(),t._handleLinkedCharts(!1)),e&&!t.isPointFocusOnly()&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX(t){const e=this,{config:r,state:a}=e,{eventReceiver:o}=a,i=t.style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("click",function(s){a.event=s;const{currentIdx:l,data:c}=o,f=c[l===-1?e.getDataIndexFromEvent(s):l];e.clickHandlerForSingleX.bind(this)(f,e)}).datum({multipleX:!1});if(a.inputType==="mouse"){const s=l=>{const c=l?e.getDataIndexFromEvent(l):o.currentIdx;return c>-1?o.data[c]:null};i.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=s(l);if(a.event=l,!c)return;let{index:f}=c;const v=r.line_step_type;if(r.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(v)){const y=e.scale.zoom||e.scale.x,A=e.axis.xs[f],w=y.invert(Zn(l,this)[0]);v==="step-after"&&w<A?f-=1:v==="step-before"&&w>A&&(f+=1)}e.showAxisGridFocus();const p=r.tooltip_grouped&&f===o.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||p){r.tooltip_show&&p&&e.setTooltipPosition();return}f!==o.currentIdx&&(e.setOverOut(!1,o.currentIdx),o.currentIdx=f),f===-1?e.unselectRect():e.selectRectForSingle(this,f),e.setOverOut(f!==-1,f)}).on("mouseout",l=>{a.event=l,!(!r||e.hasArcType()||o.currentIdx===-1||!r.interaction_onout)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,o.currentIdx),o.currentIdx=-1)})}return i},clickHandlerForSingleX(t,e){const r=e,{config:a,state:o,$el:{main:i}}=r;if(!t||r.hasArcType()||o.cancelClick){o.cancelClick&&(o.cancelClick=!1);return}const{index:s}=t;i.selectAll(`.${sn.shape}-${s}`).each(function(l){var c;(a.data_selection_grouped||r.isWithinShape(this,l))&&((c=r.toggleShape)==null||c.call(r,this,l,s),a.data_onclick.bind(r.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{config:r,state:a}=e;t.on("click",function(o){a.event=o,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),a.inputType==="mouse"&&t.on("mouseover mousemove",function(o){a.event=o,e.selectRectForMultipleXs(this)}).on("mouseout",o=>{a.event=o,!(!e.config||e.hasArcType()||!r.interaction_onout)&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:r,state:a}=e,o=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(o))return;const i=Zn(a.event,this),s=e.findClosestFromTargets(o,i),l=e.getPointSensitivity(s);s&&(e.isBarType(s.id)||e.dist(s,i)<l)&&e.$el.main.selectAll(`.${sn.shapes}${e.getTargetSelectorSuffix(s.id)}`).selectAll(`.${sn.shape}-${s.index}`).each(function(){var c;(r.data_selection_grouped||e.isWithinShape(this,s))&&((c=e.toggleShape)==null||c.call(e,this,s,s.index),r.data_onclick.bind(e.api)(s,this))})}};const nx=t=>+t;var rx={generateFlow(t){const e=this,{data:r,state:a,$el:o}=e;return function(){const i=t.flow.length;a.flowing=!0,r.targets.forEach(l=>{l.values.splice(0,i)}),e.updateXGrid&&e.updateXGrid(!0);const s={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let f=o[c[0]];f&&c.length>1&&(f=f[c[1]]),f!=null&&f.size()&&(s[l]=f)}),e.hideGridFocus(),e.setFlowList(s,t)}},setFlowList(t,e){const r=this,{flow:a,targets:o}=e,{duration:i=e.duration,index:s,length:l,orgDataCount:c}=a,f=r.getFlowTransform(o,c,s,l),v=fc();let p;v.add(Object.keys(t).map(y=>(p=t[y].transition().ease(nx).duration(i),y==="axis.x"?p=p.call(A=>{r.axis.x.setTransition(A).create(A)}):y==="region.list"?p=p.filter(r.isRegionOnX).attr("transform",f):p=p.attr("transform",f),p))),p.call(v,()=>{r.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const r=this,{config:a,state:o,$el:{svg:i}}=r,s=a.axis_rotated,{flow:l,shape:c,xv:f}=e,{cx:v,cy:p,xForText:y,yForText:A}=c.pos,{done:w=()=>{},length:L}=l;L&&(["circle","text","shape","eventRect"].forEach(N=>{const D=[];for(let K=0;K<L;K++)D.push(`.${Ve[N]}-${K}`);i.selectAll(`.${Ve[`${N}s`]}`).selectAll(D).remove()}),i.select(`.${Ve.xgrid}`).remove()),Object.keys(t).forEach(N=>{const D=t[N];if(N!=="axis.x"&&D.attr("transform",null),N==="grid.x")D.attr(o.xgridAttr);else if(N==="gridLines.x")D.attr("x1",s?0:f).attr("x2",s?o.width:f),D.select("text").attr("x",s?o.width:0).attr("y",f);else if(/^(area|bar|line)$/.test(N))D.attr("d",c.type[N]);else if(N==="text")D.attr("x",y).attr("y",A).style("fill-opacity",r.opacityForText.bind(r));else if(N==="circle")if(r.isCirclePoint())D.attr("cx",v).attr("cy",p);else{const K=H=>v(H)-a.point_r,Z=H=>p(H)-a.point_r;D.attr("x",K).attr("y",Z)}else N==="region.list"&&D.select("rect").filter(r.isRegionOnX).attr("x",r.regionX.bind(r)).attr("width",r.regionWidth.bind(r))}),a.interaction_enabled&&r.redrawEventRect(),w.call(r.api),o.flowing=!1},getFlowTransform(t,e,r,a){const o=this,{data:i,scale:{x:s}}=o,l=i.targets[0].values;let c=o.getValueOnIndex(l,r),f=o.getValueOnIndex(l,r+a),v;const p=s.domain(),y=o.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(f==null?void 0:f.x)?v=s(p[0])-s(y[0]):v=o.axis.isTimeSeries()?s(p[0])-s(y[0]):s((c==null?void 0:c.x)||0)-s(f.x):l.length!==1?v=s(p[0])-s(y[0]):o.axis.isTimeSeries()?(c=o.getValueOnIndex(l,0),f=o.getValueOnIndex(l,l.length-1),v=s(c.x)-s(f.x)):v=Fr(y)/2;const A=Fr(p)/Fr(y);return`translate(${v},0) scale(${A},1)`}},ax={initClip(){const t=this,{clip:e,datetimeId:r}=t.state;e.id=`${r}-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:r}=e;return!r.clipPath&&/-clip$/.test(t)||!r.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!r.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:r,state:{margin:a,width:o,height:i}}=e,s=r.axis_rotated,l=Math.max(30,a.left)-(s?0:20),c=(s?a.top+i+10:a.bottom)+20,f=s?-(1+l):-(l-1),v=-15,p=s?a.left+20:o+10+l;t.attr("x",f).attr("y",v).attr("width",p).attr("height",c)},setYAxisClipPath(t){const e=this,{config:r,state:{margin:a,width:o,height:i}}=e,s=r.axis_rotated,l=Math.max(30,a.left)-(s?20:0),c=r.axis_y_inner,f=c&&!s?r.axis_y_label.text?-20:-1:s?-(1+l):-(l-1),v=-(s?20:a.top),p=(s?o+15+l:a.left+20)+(c?20:0),y=(s?a.bottom+10:a.top+i)+10;t.attr("x",f).attr("y",v).attr("width",p).attr("height",y)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:r,xAxisHeight:a},$el:{defs:o}}=t,i=t.getHorizontalAxisHeight("x");if(o&&!r.idXAxisTickTexts){const s=`${r.id}-xaxisticktexts`;t.appendClip(o,s),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&i!==a&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=i},setXAxisTickClipWidth(){const t=this,{config:e,state:{current:{maxTickSize:r}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const o=Math.sin(Math.PI/180*Math.abs(a));r.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/o}else r.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:r},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",r.maxTickSize.x.clipPath).attr("height",30)}};const ox=t=>Ne(t.position)||"end",ix=t=>t.position==="start"?4:t.position==="middle"?0:-4;function zu(t,e,r){return a=>{let o=t?0:e;return a.position==="start"?o=t?-r:0:a.position==="middle"&&(o=(t?-r:e)/2),o}}function ju(t,e){e==="grid"&&t.each(function(){const r=it(this);["x1","x2","y1","y2"].forEach(a=>r.attr(a,+r.attr(a)))})}var sx={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:r},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Ee.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",r.pathGrid).attr("class",`${on.grid} ${on.gridLines}`),a.gridLines.main.append("g").attr("class",on.xgridLines),a.gridLines.main.append("g").attr("class",on.ygridLines),a.gridLines.x=Kc([]))},updateXGrid(t){const e=this,{config:r,scale:a,state:o,$el:{main:i,grid:s}}=e,l=r.axis_rotated,c=e.generateGridData(r.grid_x_type,a.x),f=e.axis.isCategorized()?e.axis.x.tickOffset():0,v=p=>(a.zoom||a.x)(p)+f*(l?-1:1);o.xgridAttr=l?{x1:0,x2:o.width,y1:v,y2:v}:{x1:v,x2:v,y1:0,y2:o.height},s.x=i.select(`.${on.xgrids}`).selectAll(`.${on.xgrid}`).data(c),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",on.xgrid).merge(s.x),t||s.x.each(function(){const p=it(this);Object.keys(o.xgridAttr).forEach(y=>{p.attr(y,o.xgridAttr[y]).style("opacity",()=>p.attr(l?"y1":"x1")===(l?o.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:r,scale:a,state:o,$el:{grid:i,main:s}}=t,l=r.axis_rotated,c=v=>a.y(v),f=e.y.getGeneratedTicks(r.grid_y_ticks)||t.scale.y.ticks(r.grid_y_ticks);i.y=s.select(`.${on.ygrids}`).selectAll(`.${on.ygrid}`).data(f),i.y.exit().remove(),i.y=i.y.enter().append("line").attr("class",on.ygrid).merge(i.y),i.y.attr("x1",l?c:0).attr("x2",l?c:o.width).attr("y1",l?0:c).attr("y2",l?o.height:c),ju(i.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:r}}=t;!r.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:r,$el:{gridLines:a,main:o},$T:i}=e,s=r.axis_rotated,l=t==="x";r[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=o.select(`.${on[`${t}gridLines`]}`).selectAll(`.${on[`${t}gridLine`]}`).data(r[`grid_${t}_lines`]);i(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(v){const p=it(this);p.select("text").empty()&&v.text&&p.append("text").style("opacity","0")}),i(c.attr("class",v=>`${on[`${t}gridLine`]} ${v.class||""}`.trim()).select("text").attr("text-anchor",ox).attr("transform",()=>l?s?null:"rotate(-90)":s?"rotate(-90)":null).attr("dx",ix).attr("dy",-5)).text(function(v){var p;return(p=v.text)!=null?p:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:r},state:{width:a,height:o},$el:{gridLines:i},$T:s}=e,l=e.xv.bind(e),c=e.yv.bind(e);let f=i.x.select("line"),v=i.x.select("text"),p=i.y.select("line"),y=i.y.select("text");return f=s(f,t).attr("x1",r?0:l).attr("x2",r?a:l).attr("y1",r?l:0).attr("y2",r?l:o),v=s(v,t).attr("x",zu(!r,a,o)).attr("y",l),p=s(p,t).attr("x1",r?c:0).attr("x2",r?c:a).attr("y1",r?0:c).attr("y2",r?o:c),y=s(y,t).attr("x",zu(r,a,o)).attr("y",c),[f.style("opacity",null),v.style("opacity",null),p.style("opacity",null),y.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:r},$el:a}=t,o=e.grid_front,i=`.${o&&a.gridLines.main?on.gridLines:Ee.chart}${o?" + *":""}`,s=a.main.insert("g",i).attr("clip-path",r.pathGrid).attr("class",on.grid);if(a.grid.main=s,e.grid_x_show&&s.append("g").attr("class",on.xgrids),e.grid_y_show&&s.append("g").attr("class",on.ygrids),e.axis_tooltip){const l=s.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&&(s.append("g").attr("class",qe.xgridFocus).append("line").attr("class",qe.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&s.append("g").attr("class",qe.ygridFocus).append("line").attr("class",qe.ygridFocus))},showAxisGridFocus(){var t,e;const r=this,{config:a,format:o,state:{event:i,width:s,height:l}}=r,c=a.axis_rotated,[f,v]=Zn(i,(t=r.$el.eventRect)==null?void 0:t.node()),p={x:f,y:v};for(const[y,A]of Object.entries(r.$el.axisTooltip)){const w=y==="x"&&!c||y!=="x"&&c?"x":"y",L=p[w];let N=(e=r.scale[y])==null?void 0:e.invert(L);N&&(N=y==="x"&&r.axis.isTimeSeries()?o.xAxisTick(N):N==null?void 0:N.toFixed(2),A==null||A.attr(w,L).text(N))}r.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(y,A){const w=it(this);A===0?w.attr("x1",f).attr("x2",f).attr("y1",A?0:l).attr("y2",A?l:0):w.attr("x1",A?0:s).attr("x2",A?s:0).attr("y1",v).attr("y2",v)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll(`line.${gn.axisTooltipX}, line.${gn.axisTooltipY}`).style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const r=this,{config:a,state:{width:o,height:i}}=r,s=a.axis_rotated,l=r.$el.main.selectAll(`line.${qe.xgridFocus}, line.${qe.ygridFocus}`),c=(t||[l.datum()]).filter(p=>p&&Ne(r.getBaseValue(p)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&r.hasType("bubble")||r.hasArcType())return;const f=a.grid_focus_edge&&!a.tooltip_grouped,v=r.xx.bind(r);l.style("visibility",null).data(c.concat(c)).each(function(p){const y=it(this),A={x:v(p),y:r.getYScaleById(p.id)(p.value)};let w;if(y.classed(qe.xgridFocus))w=s?[null,A.x,f?A.y:o,A.x]:[A.x,f?A.y:null,A.x,i];else{const L=r.axis.getId(p.id)==="y2";w=s?[A.y,f&&!L?A.x:null,A.y,f&&L?A.x:i]:[f&&L?A.x:null,A.y,f&&!L?A.x:o,A.y]}["x1","y1","x2","y2"].forEach((L,N)=>y.attr(L,w[N]))}),ju(l,"grid"),(e=r.showCircleFocus)==null||e.call(r,t)},hideGridFocus(){var t;const e=this,{state:{inputType:r,resizing:a},$el:{main:o}}=e;(r==="mouse"||!a)&&(o.selectAll(`line.${qe.xgridFocus}, line.${qe.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:r,width:a,height:o,resizing:i},$el:{grid:s}}=e,l=s.main.select(`line.${qe.xgridFocus}`);if(r==="touch")l.empty()?i&&((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:o)}return!0},generateGridData(t,e){const r=this,a=r.$el.main.select(`.${gn.axisX}`).selectAll(".tick").size();let o=[];if(t==="year"){const i=r.getXDomain(),[s,l]=i.map(c=>c.getFullYear());for(let c=s;c<=l;c++)o.push(new Date(`${c}-01-01 00:00:00`))}else o=e.ticks(10),o.length>a&&(o=o.filter(i=>String(i).indexOf(".")<0));return o},getGridFilterToRemove(t){return t?e=>{let r=!1;return(Xe(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(r=!0)}),r}:()=>!0},removeGridLines(t,e){const r=this,{config:a,$T:o}=r,i=r.getGridFilterToRemove(t),s=v=>!i(v),l=e?on.xgridLines:on.ygridLines,c=e?on.xgridLine:on.ygridLine;o(r.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(i)).style("opacity","0").remove();const f=`grid_${e?"x":"y"}_lines`;a[f]=a[f].filter(s)}},lx={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",ba.regions)},updateRegion(){const t=this,{config:e,$el:{region:r},$T:a}=t;r.main||t.initRegion(),r.main.style("visibility",t.hasArcType()?"hidden":null);const o=r.main.selectAll(`.${ba.region}`).data(e.regions);a(o.exit()).style("opacity","0").remove();const i=o.enter().append("g");i.append("rect").style("fill-opacity","0"),r.list=i.merge(o).attr("class",t.classRegion.bind(t)),r.list.each(function(s){var l;it(this).select("text").empty()&&((l=s.label)!=null&&l.text)&&it(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:r},$T:a}=e,o=e.regionX.bind(e),i=e.regionY.bind(e),s=["width","height"];let l=r.list.select("rect"),c=r.list.selectAll("text");return l=a(l,t).attr("x",o).attr("y",i).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),c=a(c,t).text(f=>{var v;return(v=f.label)==null?void 0:v.text}).attr("transform",({label:f})=>f.rotated?" rotate(-90)":null).attr("transform",function(f){var v;const{x:p=0,y=0,center:A=!1,rotated:w=!1}=(v=f.label)!=null?v:{},L=this.previousElementSibling,N={x:0,y:0};return Ue(A)&&["x","y"].forEach((D,K)=>{A.indexOf(D)>-1&&(N[D]=(+L.getAttribute(s[K])-Sn(this)[s[K]])/2)}),`translate(${o(f)+N.x+p}, ${i(f)+N.y+y})${w?" rotate(-90)":""}`}).attr("text-anchor",({label:f})=>f!=null&&f.rotated?"end":null).attr("dy","1em").style("fill",({label:f})=>{var v;return(v=f==null?void 0:f.color)!=null?v:null}),[l.style("fill-opacity",f=>Ne(f.opacity)?f.opacity:null).on("end",function(){it(this.parentNode).selectAll("rect:not([x])").remove()}),c.style("opacity",null)]},regionX(t){return this.getRegionSize("x",t)},regionY(t){return this.getRegionSize("y",t)},regionWidth(t){return this.getRegionSize("width",t)},regionHeight(t){return this.getRegionSize("height",t)},getRegionSize(t,e){const r=this,{config:a,scale:o,state:i}=r,s=a.axis_rotated,l=/(x|y|y2)/.test(t),c=l?t==="x":t==="width",f=!l&&r[c?"regionX":"regionY"](e);let v=l?"start":"end",p=l?0:i[t],y;if(e.axis==="y"||e.axis==="y2"?(!l&&!c?v="start":l&&!c&&(v="end"),(c?s:!s)&&v in e&&(y=o[e.axis])):(c?!s:s)&&v in e&&(y=o.zoom||o.x),y){let A=0;p=e[v],r.axis.isTimeSeries(e.axis)?p=Jn.call(r,p):/(x|width)/.test(t)&&r.axis.isCategorized()&&isNaN(p)&&(p=a.axis_x_categories.indexOf(p),A=r.axis.x.tickOffset()*(v==="start"?-1:1)),p=y(p)+A}return l?p:p<f?0:p-f},isRegionOnX(t){return!t.axis||t.axis==="x"}},cx={getAxisSize(t){const e=this,r=e.config.axis_rotated;return r&&t==="x"||!r&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId(t,e){var r,a;const o=this;if(o.axis){const i=(r=o.axis)==null?void 0:r.getLabelPositionById(t),{width:s}=o.axis.getMaxTickSize(t,e),l=s===0?.5:0;return s+(((a=o.config.padding)==null?void 0:a.mode)==="fit"?i.isInner?10+l:10:i.isInner?20+l:40)}else return 40},getHorizontalAxisHeight(t){var e,r;const a=this,{config:o,state:i}=a,{rotatedPadding:s,isLegendRight:l,isLegendInset:c}=i,f=o.axis_rotated,v=((e=o.padding)==null?void 0:e.mode)==="fit",p=o[`axis_${t}_inner`],y=o[`axis_${t}_label`].text,A=13;let w=((r=o.padding)==null?void 0:r.mode)==="fit"?p&&!y?t==="y"?1:0:20:30;if(t==="x"&&!o.axis_x_show)return 8;if(t==="x"&&ye(o.axis_x_height))return o.axis_x_height;if(t==="y"&&!o.axis_y_show)return o.legend_show&&!l&&!c?10:1;if(t==="y2"&&!o.axis_y2_show)return v?0:s.top;const L=a.axis.getMaxTickSize(t),N=Math.abs(o.axis_x_tick_rotate)>0&&(!o.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(o.axis_x_tick_multiline||N)&&L.height>A&&(w+=L.height-A),w+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!f?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:r}=t,a=e.axis_x_inverted,o=r.x.tickInterval();return Math.max(0,a?Math.abs(o):o)},getAxisTickRotate(t){const e=this,{axis:r,config:a,state:o,$el:i}=e;let s=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=r.isCategorized()||r.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,f=o.current.maxTickSize.x.ticks.length;let v=0;if(c?v=c>f?f:c:f&&(v=f),v!==o.axis.x.tickCount){const{targets:p}=e.data;o.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(p,"min"),e.getXDomainMinMax(p,"max")],v)}o.axis.x.tickCount=v}i.svg&&a.axis_x_tick_autorotate&&a.axis_x_tick_fit&&!a.axis_x_tick_multiline&&!a.axis_x_tick_culling&&l&&(s=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return s},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:r,isLegendRight:a,legendItemWidth:o}}=t,i=a&&o,s=r.width-i-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?s/l:0;return c>f}},ux={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_culling_reverse:!1,axis_x_tick_count:void 0,axis_x_tick_inner:!1,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:[]},fx={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_culling_reverse:!1,axis_y_tick_inner:!1,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:[]},dx={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_culling_reverse:!1,axis_y2_tick_inner:!1,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:[]},hx=Object.defineProperty,Gu=Object.getOwnPropertySymbols,vx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,Vu=(t,e,r)=>e in t?hx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,As=(t,e)=>{for(var r in e||(e={}))vx.call(e,r)&&Vu(t,r,e[r]);if(Gu)for(var r of Gu(e))gx.call(e,r)&&Vu(t,r,e[r]);return t},px=As(As(As({axis_evalTextSize:!0,axis_rotated:!1,axis_tooltip:!1},ux),fx),dx),mx={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},yx={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const xx=[Py,My,wy,Dy,Ny,Ly,Fy],Xu={axis:_y,clip:ax,eventrect:ex,flow:rx,grid:sx,region:lx,sizeAxis:cx},Hu={optDataAxis:yx,optAxis:px,optGrid:mx};var dT=Array.prototype.slice;function Es(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Fe(t){return function(){return t}}function Tx(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Sx(t){return t}function $x(){var t=Sx,e=Tx,r=null,a=Fe(0),o=Fe(Ho),i=Fe(0);function s(l){var c,f=(l=Es(l)).length,v,p,y=0,A=new Array(f),w=new Array(f),L=+a.apply(this,arguments),N=Math.min(Ho,Math.max(-Ho,o.apply(this,arguments)-L)),D,K=Math.min(Math.abs(N)/f,i.apply(this,arguments)),Z=K*(N<0?-1:1),H;for(c=0;c<f;++c)(H=w[A[c]=c]=+t(l[c],c,l))>0&&(y+=H);for(e!=null?A.sort(function(nt,Q){return e(w[nt],w[Q])}):r!=null&&A.sort(function(nt,Q){return r(l[nt],l[Q])}),c=0,p=y?(N-f*Z)/y:0;c<f;++c,L=D)v=A[c],H=w[v],D=L+(H>0?H*p:0)+Z,w[v]={data:l[v],index:c,value:H,startAngle:L,endAngle:D,padAngle:K};return w}return s.value=function(l){return arguments.length?(t=typeof l=="function"?l:Fe(+l),s):t},s.sortValues=function(l){return arguments.length?(e=l,r=null,s):e},s.sort=function(l){return arguments.length?(r=l,e=null,s):r},s.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Fe(+l),s):a},s.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:Fe(+l),s):o},s.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Fe(+l),s):i},s}var Ax=Math.pow;const Is=Math.PI,bs=2*Is,Wr=1e-6,Ex=bs-Wr;function Wu(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function Ix(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Wu;const r=Ax(10,e);return function(a){this._+=a[0];for(let o=1,i=a.length;o<i;++o)this._+=Math.round(arguments[o]*r)/r+a[o]}}class qo{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Wu:Ix(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,a,o){this._append`Q${+e},${+r},${this._x1=+a},${this._y1=+o}`}bezierCurveTo(e,r,a,o,i,s){this._append`C${+e},${+r},${+a},${+o},${this._x1=+i},${this._y1=+s}`}arcTo(e,r,a,o,i){if(e=+e,r=+r,a=+a,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,l=this._y1,c=a-e,f=o-r,v=s-e,p=l-r,y=v*v+p*p;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(y>Wr)if(!(Math.abs(p*c-f*v)>Wr)||!i)this._append`L${this._x1=e},${this._y1=r}`;else{let A=a-s,w=o-l,L=c*c+f*f,N=A*A+w*w,D=Math.sqrt(L),K=Math.sqrt(y),Z=i*Math.tan((Is-Math.acos((L+y-N)/(2*D*K)))/2),H=Z/K,nt=Z/D;Math.abs(H-1)>Wr&&this._append`L${e+H*v},${r+H*p}`,this._append`A${i},${i},0,0,${+(p*A>v*w)},${this._x1=e+nt*c},${this._y1=r+nt*f}`}}arc(e,r,a,o,i,s){if(e=+e,r=+r,a=+a,s=!!s,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(o),c=a*Math.sin(o),f=e+l,v=r+c,p=1^s,y=s?o-i:i-o;this._x1===null?this._append`M${f},${v}`:(Math.abs(this._x1-f)>Wr||Math.abs(this._y1-v)>Wr)&&this._append`L${f},${v}`,a&&(y<0&&(y=y%bs+bs),y>Ex?this._append`A${a},${a},0,1,${p},${e-l},${r-c}A${a},${a},0,1,${p},${this._x1=f},${this._y1=v}`:y>Wr&&this._append`A${a},${a},0,${+(y>=Is)},${p},${this._x1=e+a*Math.cos(i)},${this._y1=r+a*Math.sin(i)}`)}rect(e,r,a,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}}function bx(){return new qo}bx.prototype=qo.prototype;function hT(t=3){return new qo(+t)}function Rs(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);e=a}return t},()=>new qo(e)}function Rx(t){return t.innerRadius}function Ox(t){return t.outerRadius}function Cx(t){return t.startAngle}function Px(t){return t.endAngle}function Mx(t){return t&&t.padAngle}function wx(t,e,r,a,o,i,s,l){var c=r-t,f=a-e,v=s-o,p=l-i,y=p*c-v*f;if(!(y*y<Cn))return y=(v*(e-i)-p*(t-o))/y,[t+y*c,e+y*f]}function _o(t,e,r,a,o,i,s){var l=t-r,c=e-a,f=(s?i:-i)/fa(l*l+c*c),v=f*c,p=-f*l,y=t+v,A=e+p,w=r+v,L=a+p,N=(y+w)/2,D=(A+L)/2,K=w-y,Z=L-A,H=K*K+Z*Z,nt=o-i,Q=y*L-w*A,ot=(Z<0?-1:1)*fa(Am(0,nt*nt*H-Q*Q)),vt=(Q*Z-K*ot)/H,$t=(-Q*K-Z*ot)/H,Tt=(Q*Z+K*ot)/H,mt=(-Q*K+Z*ot)/H,bt=vt-N,yt=$t-D,q=Tt-N,Et=mt-D;return bt*bt+yt*yt>q*q+Et*Et&&(vt=Tt,$t=mt),{cx:vt,cy:$t,x01:-v,y01:-p,x11:vt*(o/nt-1),y11:$t*(o/nt-1)}}function Yu(){var t=Rx,e=Ox,r=Fe(0),a=null,o=Cx,i=Px,s=Mx,l=null,c=Rs(f);function f(){var v,p,y=+t.apply(this,arguments),A=+e.apply(this,arguments),w=o.apply(this,arguments)-Xo,L=i.apply(this,arguments)-Xo,N=eu(L-w),D=L>w;if(l||(l=v=c()),A<y&&(p=A,A=y,y=p),!(A>Cn))l.moveTo(0,0);else if(N>Ho-Cn)l.moveTo(A*Xr(w),A*or(w)),l.arc(0,0,A,w,L,!D),y>Cn&&(l.moveTo(y*Xr(L),y*or(L)),l.arc(0,0,y,L,w,D));else{var K=w,Z=L,H=w,nt=L,Q=N,ot=N,vt=s.apply(this,arguments)/2,$t=vt>Cn&&(a?+a.apply(this,arguments):fa(y*y+A*A)),Tt=gs(eu(A-y)/2,+r.apply(this,arguments)),mt=Tt,bt=Tt,yt,q;if($t>Cn){var Et=nu($t/y*or(vt)),dt=nu($t/A*or(vt));(Q-=Et*2)>Cn?(Et*=D?1:-1,H+=Et,nt-=Et):(Q=0,H=nt=(w+L)/2),(ot-=dt*2)>Cn?(dt*=D?1:-1,K+=dt,Z-=dt):(ot=0,K=Z=(w+L)/2)}var Rt=A*Xr(K),kt=A*or(K),Ht=y*Xr(nt),Kt=y*or(nt);if(Tt>Cn){var se=A*Xr(Z),he=A*or(Z),Oe=y*Xr(H),Me=y*or(H),we;if(N<ja)if(we=wx(Rt,kt,Oe,Me,se,he,Ht,Kt)){var Ke=Rt-we[0],ze=kt-we[1],hn=se-we[0],ee=he-we[1],$e=1/or(Em((Ke*hn+ze*ee)/(fa(Ke*Ke+ze*ze)*fa(hn*hn+ee*ee)))/2),Ce=fa(we[0]*we[0]+we[1]*we[1]);mt=gs(Tt,(y-Ce)/($e-1)),bt=gs(Tt,(A-Ce)/($e+1))}else mt=bt=0}ot>Cn?bt>Cn?(yt=_o(Oe,Me,Rt,kt,A,bt,D),q=_o(se,he,Ht,Kt,A,bt,D),l.moveTo(yt.cx+yt.x01,yt.cy+yt.y01),bt<Tt?l.arc(yt.cx,yt.cy,bt,On(yt.y01,yt.x01),On(q.y01,q.x01),!D):(l.arc(yt.cx,yt.cy,bt,On(yt.y01,yt.x01),On(yt.y11,yt.x11),!D),l.arc(0,0,A,On(yt.cy+yt.y11,yt.cx+yt.x11),On(q.cy+q.y11,q.cx+q.x11),!D),l.arc(q.cx,q.cy,bt,On(q.y11,q.x11),On(q.y01,q.x01),!D))):(l.moveTo(Rt,kt),l.arc(0,0,A,K,Z,!D)):l.moveTo(Rt,kt),!(y>Cn)||!(Q>Cn)?l.lineTo(Ht,Kt):mt>Cn?(yt=_o(Ht,Kt,se,he,y,-mt,D),q=_o(Rt,kt,Oe,Me,y,-mt,D),l.lineTo(yt.cx+yt.x01,yt.cy+yt.y01),mt<Tt?l.arc(yt.cx,yt.cy,mt,On(yt.y01,yt.x01),On(q.y01,q.x01),!D):(l.arc(yt.cx,yt.cy,mt,On(yt.y01,yt.x01),On(yt.y11,yt.x11),!D),l.arc(0,0,y,On(yt.cy+yt.y11,yt.cx+yt.x11),On(q.cy+q.y11,q.cx+q.x11),D),l.arc(q.cx,q.cy,mt,On(q.y11,q.x11),On(q.y01,q.x01),!D))):l.arc(0,0,y,nt,H,D)}if(l.closePath(),v)return l=null,v+""||null}return f.centroid=function(){var v=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,p=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-ja/2;return[Xr(p)*v,or(p)*v]},f.innerRadius=function(v){return arguments.length?(t=typeof v=="function"?v:Fe(+v),f):t},f.outerRadius=function(v){return arguments.length?(e=typeof v=="function"?v:Fe(+v),f):e},f.cornerRadius=function(v){return arguments.length?(r=typeof v=="function"?v:Fe(+v),f):r},f.padRadius=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:Fe(+v),f):a},f.startAngle=function(v){return arguments.length?(o=typeof v=="function"?v:Fe(+v),f):o},f.endAngle=function(v){return arguments.length?(i=typeof v=="function"?v:Fe(+v),f):i},f.padAngle=function(v){return arguments.length?(s=typeof v=="function"?v:Fe(+v),f):s},f.context=function(v){return arguments.length?(l=v==null?null:v,f):l},f}const Dx=15,Ku=20,Zu=.35;function Nx(t=!1){const e=this;return["donut","pie","polar","gauge"].find(r=>e.hasType(r)&&!(r==="gauge"&&t&&e.hasMultiArcGauge()))}function Ju(){const t=this,{config:e}=t,r=Nx.call(t,!0),a=r&&e[`${r}_label_line`],o=Gn(a),i=(c,f,v)=>v,s={show:a===!0||o&&(a==null?void 0:a.show)!==!1,distance:o&&(a==null?void 0:a.distance)||Ku};if(a===!0)return{chartType:r,line:s,text:{formatter:i}};if(!o)return{chartType:r,line:{show:!1,distance:Ku},text:{formatter:null}};let l=i;return de(a.text)?l=a.text:a.text===!1&&(l=null),{chartType:r,line:s,text:{formatter:l}}}function Lx(t,e){const r=this,{state:a}=r,o=r.updateAngle(t);if(!o)return null;let{outerRadius:i}=r.getRadius(t),s=i;r.hasType("polar")&&(s=r.getPolarOuterRadius(t,i),i=a.radius);let l=(o.startAngle+o.endAngle)/2;Math.abs(o.endAngle-o.startAngle-2*Math.PI)<.01&&(l=Math.PI/2);const f=Math.sin(l),v=-Math.cos(l),p={x:f*s,y:v*s},y=i+Dx,A={x:f*y,y:v*y},w=f>=0,L={x:A.x+e*(w?1:-1),y:A.y};return{startPoint:p,breakPoint:A,endPoint:L,isRight:w,midAngle:l}}function Qu(){return Ju.call(this).line.show}function Fx(t){const e=this,{$el:{arcs:r},$T:a}=e,{line:o,text:i}=Ju.call(e),s=o.distance;let l=null;r.selectAll(`.${Le.chartArc}`).each(function(c){var f,v,p;const y=it(this),A=Lx.call(e,c,s),{ratio:w,meetsThreshold:L,updated:N}=(f=c._cache)!=null?f:{};if(!N||!A)return;const D=e.isTargetToShow(c.data.id)&&L,{startPoint:K,breakPoint:Z,endPoint:H,isRight:nt}=A,Q=`${K.x},${K.y} ${Z.x},${Z.y} ${H.x},${H.y}`;if(o.show){let vt=y.select(`.${Le.arcLabelLine}`);vt.empty()&&(vt=y.append("polyline").attr("class",Le.arcLabelLine)),a(vt,t).attr("points",Q).style("stroke",e.color(c.data)).style("opacity",D?null:"0")}let ot=y.select(`.${Le.arcLabelLineText}`);if(ot.empty()&&(ot=y.append("text").attr("class",Le.arcLabelLineText).style("pointer-events","none")),D){const{value:vt}=N,{id:$t}=c.data,Tt=((p=(v=i.formatter)!=null?v:e.getArcLabelConfig("format"))!=null?p:e.defaultArcValueFormat)(vt,w,$t).toString();oa(ot,Tt,[-1,1],!1);const mt={x:H.x+5*(nt?1:-1),y:H.y};ot.style("text-anchor",nt?"start":"end");const bt=ot.node(),yt=bt==null?void 0:bt.querySelectorAll("tspan");if(l===null&&(l=parseFloat(je.getComputedStyle(bt).fontSize)||12),yt&&yt.length>1){const Et=(yt.length-3)/2;mt.y+=(-Et+Zu)*l}else mt.y+=Zu*l;a(ot,t).attr("transform",`translate(${mt.x},${mt.y})`).style("opacity",null).style("fill",e.updateTextColor.bind(e)(c))}else a(ot,t).style("opacity","0")})}var Bx=Object.defineProperty,Ux=Object.defineProperties,zx=Object.getOwnPropertyDescriptors,ku=Object.getOwnPropertySymbols,jx=Object.prototype.hasOwnProperty,Gx=Object.prototype.propertyIsEnumerable,qu=(t,e,r)=>e in t?Bx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Vx=(t,e)=>{for(var r in e||(e={}))jx.call(e,r)&&qu(t,r,e[r]);if(ku)for(var r of ku(e))Gx.call(e,r)&&qu(t,r,e[r]);return t},Xx=(t,e)=>Ux(t,zx(e));function Hx(t){return["donut","pie","polar","gauge"].find(e=>t.hasType(e))}function Wx(t,e,r,a){var o,i;const{config:s,state:{radiusExpanded:l}}=t,c=r.endAngle-Math.PI/2,f=Math.sin(c),v={x:Math.cos(c)*(l+(a?5:25)),y:f*(l+15-Math.abs(f*10))+3};if(a){const p=s.arc_rangeText_position;if(p){const y=s.arc_rangeText_values,A=de(p)?p(y[e.index]):p;v.x+=(o=A==null?void 0:A.x)!=null?o:0,v.y+=(i=A==null?void 0:A.y)!=null?i:0}}return v}function Yx(t,e,r,a){const{config:o}=t,i=Hx(t);let s=i?o[`${i}_label_ratio`]:void 0;if(s)s=de(s)?s.bind(t.api)(e,r,a):s;else{const p=36/r,y=p>.375;s=r&&a?(y?1.175-p:.8)*r/a:0}return s}function Kx(t,e,r){let{outerRadius:a}=t.getRadius(e);t.hasType("polar")&&(a=t.getPolarOuterRadius(e,a));const[o,i]=t.svgArc.centroid(r).map(c=>isNaN(c)?0:c),s=Math.sqrt(o*o+i*i),l=Yx(t,e,a,s);return{pos:{x:o,y:i},ratio:l}}function _u(t=0){const e=this,{config:r,state:a}=e,o=e.hasMultiArcGauge(),i=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,s=t?Math.min(a.radiusExpanded*t-a.radius,i*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return o?a.radius-i*(l.index+1):ye(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let f;if(o)f=a.radius-i*l.index+s;else if(e.hasType("polar")&&!t)f=e.getPolarOuterRadius(l,c);else if(f=c,t){let{radiusExpanded:v}=a;a.radius!==c&&(v-=Math.abs(a.radius-c)),f=v*t}return f},corner(l,c){const{arc_cornerRadius_ratio:f=0,arc_cornerRadius:v=0}=r,{data:{id:p},value:y}=l;let A=0;return f?A=f*c:A=ye(v)?v:v.call(e.api,p,y,c),A}}}function Os(t){return function(e){const r=({startAngle:o=0,endAngle:i=0,padAngle:s=0})=>({startAngle:o,endAngle:i,padAngle:s}),a=_r(r(this._current),r(e));return this._current=e,function(o){const i=a(o),{data:s,index:l,value:c}=e;return t(Xx(Vx({},i),{data:s,index:l,value:c}))}}}var Zx={initPie(){const t=this,{config:e}=t,r=e.data_type,a=e[`${r}_padding`],o=e[`${r}_startingAngle`]||0,i=(a?a*.01:e[`${r}_padAngle`])||0;t.pie=$x().startAngle(o).endAngle(o+2*Math.PI).padAngle(i).value(s=>{var l,c;return(c=(l=s.values)==null?void 0:l.reduce((f,v)=>f+v.value,0))!=null?c:s}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:r}=t,a=e.data_type,o=e[`${a}_padding`],i=e.gauge_width||e.donut_width,s=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth,l=.85,c=Qu.call(t)?l:1;r.radiusExpanded=Math.min(r.arcWidth,r.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?l:c),r.radius=r.radiusExpanded*.95,r.innerRadiusRatio=i?(r.radius-i)/r.radius:.6,r.gaugeArcWidth=i||(s<=r.radius-r.innerRadius?r.radius-r.innerRadius:s<=r.radius?s:r.radius);const f=e.pie_innerRadius||(o?o*(r.innerRadiusRatio+.1):0);r.outerRadius=e.pie_outerRadius,r.innerRadius=t.hasType("donut")||t.hasType("gauge")?r.radius*r.innerRadiusRatio:f},getRadius(t){const e=this,r=t==null?void 0:t.data;let{innerRadius:a,outerRadius:o}=e.state;return!ye(a)&&r&&(a=a[r.id]||0),Ge(o)&&r&&r.id in o?o=o[r.id]:ye(o)||(o=e.state.radius),{innerRadius:a,outerRadius:o}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,r=e.gauge_arcLength*3.6;let a=2*(r/360);return r<-360?a=-2:r>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,r=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,o=-1*Math.PI/2,i=Math.PI/2;let s=e[`${r}_startingAngle`]||0;return!a&&s<=o?s=o:!a&&s>=i?s=i:(s>Math.PI||s<-1*Math.PI)&&(s=Math.PI),s},updateAngle(t,e=!1){var r;const a=this,{config:o,state:i}=a,s=e&&a.hasType("gauge");let{pie:l}=a,c=t,f=!1;if(!o)return null;const v=a.getStartingAngle(),p=o.gauge_fullCircle||e&&!s?a.getArcLength():v*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:y,gauge_max:A}=o,w=a.getTotalDataSum(i.rendered),L=p*((w-y)/(A-y));l=l.startAngle(v).endAngle(L+v)}if(e===!1&&l(a.filterTargetsToShow()).forEach((y,A)=>{var w;!f&&y.data.id===((w=c.data)==null?void 0:w.id)&&(f=!0,c=y,c.index=A)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(o.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:y,gauge_max:A}=o,w=e&&!s?a.getTotalDataSum(i.rendered):A,L=p/(w-y),N=(r=c.value)!=null?r:0,D=N<y?0:N<w?N-y:w-y;c.startAngle=v,c.endAngle=v+L*D}return f||e?c:null},getSvgArc(){const t=this,{inner:e,outer:r,corner:a}=_u.call(t),o=Yu().innerRadius(e).outerRadius(r),i=function(s,l){var c;let f="M 0 0";if(s.value||s.data){const v=l?s:(c=t.updateAngle(s))!=null?c:null;v&&(f=o.cornerRadius(a(v,r(v)))(v))}return f};return i.centroid=o.centroid,i},getSvgArcExpanded(t=1){const e=this,{inner:r,outer:a,corner:o}=_u.call(e,t),i=Yu().innerRadius(r).outerRadius(a);return s=>{const l=e.updateAngle(s),c=a(l);let f=0;return l&&(f=o(l,c)),l?i.cornerRadius(f)(l):"M 0 0"}},getArc(t,e,r){return r||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:r},state:a,$T:o}=t,i=e.arc_rangeText_format,s=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(y=>f/100*y));const v=t.pie(l).map((y,A)=>(y.index=A,y));let p=r.selectAll(`.${Le.arcRange}`).data(l);p.exit(),p=o(p.enter().append("text").attr("class",Le.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(y=>{const A=c?y/f*100:y;return de(i)?i(A):`${A}${c?"%":""}`}).merge(p)),(!a.rendered||a.rendered&&!s)&&f>0&&p.attr("transform",function(y,A){return t.transformForArcLabel(this,v[A],!0)}),p.style("opacity",y=>!s&&(y>f||f===0)?"0":null)}},transformForArcLabel(t,e,r=!1){const a=this,o=a.updateAngle(e,r);if(!o)return"";let i,s=1;if(r||a.hasMultiArcGauge())i=Wx(a,e,o,r);else if(!a.hasType("gauge")||a.data.targets.length>1){const l=Kx(a,e,o);i=l.pos,s=l.ratio}else return"";return Qc.call(a,t,i),`translate(${i.x*s},${i.y*s})`},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){var e;const r=this,a=r.hasType("gauge"),o=(e=["donut","gauge","pie","polar"].filter(r.hasType.bind(r)))==null?void 0:e[0];r.shouldShowArcLabel()&&t.style("fill",r.updateTextColor.bind(r)).attr("filter",i=>r.updateTextBGColor.bind(r)(i,r.config.data_labels_backgroundColors)).each(function(i){const s=it(this),l=r.updateAngle(i),c=r.getRatio("arc",l),f=fs.call(r,c,o);if(i._cache={updated:l,ratio:c,meetsThreshold:f},f){const{value:v}=l||i,p=(r.getArcLabelConfig("format")||r.defaultArcValueFormat)(v,c,i.data.id).toString();oa(s,p,[-1,1],a)}else s.text("")})},expandArc(t){const e=this,{state:{transiting:r},$el:a}=e;if(r){const i=setInterval(()=>{r||(clearInterval(i),a.legend.selectAll(`.${qe.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const o=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(o,`.${Le.chartArc}`)).each(function(i){if(!e.shouldExpand(i.data.id))return;const s=e.getExpandConfig(i.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(i.data.id,"rate"));it(this).selectAll("path").transition().duration(s).attrTween("d",Os(e.svgArcExpanded.bind(e))).transition().duration(s*2).attrTween("d",Os(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:r},$el:{svg:a}}=e;if(r)return;const o=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(o,`.${Le.chartArc}`)).selectAll("path").transition().duration(i=>e.getExpandConfig(i.data.id,"duration")).attrTween("d",Os(e.svgArc.bind(e))),a.selectAll(`${Le.arc}`).style("opacity",null)},getExpandConfig(t,e){const r=this,{config:a}=r,o={duration:50,rate:.98};let i;return r.isDonutType(t)?i="donut":r.isGaugeType(t)?i="gauge":r.isPieType(t)&&(i="pie"),i?a[`${i}_expand_${e}`]:o[e]},shouldExpand(t){const e=this,{config:r}=e;return e.isDonutType(t)&&r.donut_expand||e.isGaugeType(t)&&r.gauge_expand||e.isPieType(t)&&r.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(r=>t.hasType(r)&&e[`${r}_label_show`])},getArcLabelConfig(t="format"){const e=this,{config:r}=e;let a=o=>o;return["donut","gauge","pie","polar"].filter(e.hasType.bind(e)).forEach(o=>{a=r[`${o}_label_${t}`]}),t==="format"&&de(a)?a.bind(e.api):a},updateTargetsForArc(t){const e=this,{$el:r}=e,a=e.hasType("gauge"),o=e.getChartClass("Arc"),i=e.getClass("arcs",!0),s=e.classFocus.bind(e),l=r.main.select(`.${Le.chartArcs}`),c=l.selectAll(`.${Le.chartArc}`).data(e.pie(t)).attr("class",v=>o(v)+s(v.data)),f=c.enter().append("g").attr("class",o).call(this.setCssRule(!1,`.${Le.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));f.append("g").attr("class",i).merge(c),f.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":null).style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),r.text=l.selectAll(`.${Ee.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Ee.chart}`).append("g").attr("class",Le.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,r=t||e.getArcTitle(),a=e.hasType("gauge");if(r){const o=a?jn.chartArcsGaugeTitle:Le.chartArcsTitle;let i=e.$el.arcs.select(`.${o}`);i.empty()&&(i=e.$el.arcs.append("text").attr("class",o).style("text-anchor","middle")),a&&i.attr("dy","-0.3em"),oa(i,r,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:r}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let o=r.current.needle;return ye(o)||(o=e.arc_needle_value),Fa(a,{NEEDLE_VALUE:~~o})}return!1},redrawArc(t,e,r){const a=this,{config:o,state:i,$el:{main:s}}=a,l=o.interaction_enabled,c=l&&o.data_selection_isselectable;let f=s.selectAll(`.${Le.arcs}`).selectAll(`.${Le.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",v=>a.color(v.data)).style("cursor",v=>{var p;return(p=c==null?void 0:c.bind)!=null&&p.call(c,a.api)(v)?"pointer":null}).style("opacity","0").each(function(v){a.isGaugeType(v.data)&&(v.startAngle=o.gauge_startingAngle,v.endAngle=o.gauge_startingAngle),this._current=v}).merge(f),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),f.attr("transform",v=>!a.isGaugeType(v.data)&&r?"scale(0)":"").style("opacity",function(v){return v===this._current?"0":null}).each(()=>{i.transiting=!0}).transition().duration(t).attrTween("d",function(v){const p=a.updateAngle(v);if(!p)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const y=_r(this._current,p);return this._current=y(0),function(A){const w=y(A);return w.data=v.data,a.getArc(w,!0)}}).attr("transform",r?"scale(1)":"").style("fill",v=>{let p;return a.levelColor?(p=a.levelColor(v.data.values[0].value),o.data_colors[v.data.id]=p):p=a.color(v.data),p}).style("opacity",null).call(Ro,function(){if(a.levelColor){const v=it(this),p=v.datum(this._current);a.updateLegendItemColor(p.data.id,v.style("fill"))}i.transiting=!1,_e(o.onrendered,a.api)}),l&&a.bindArcEvent(f),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),o.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:r,state:{hiddenTargetIds:a,radius:o}}=t,i=(o-1)/100*r.arc_needle_length,s=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${Le.needle}`);const c=r.arc_needle_path,f=r.arc_needle_bottom_width/2,v=r.arc_needle_top_width/2,p=r.arc_needle_top_rx,y=r.arc_needle_top_ry,A=r.arc_needle_bottom_len,w=r.arc_needle_bottom_rx,L=r.arc_needle_bottom_ry,N=t.getNeedleAngle(),D=()=>{const K=t.getArcTitleWithNeedleValue();K&&t.setArcTitle(K)};if(D(),l.empty()&&(l=e.arcs.append("path").classed(Le.needle,!0),e.needle=l,e.needle.updateHelper=(K,Z=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(K)}deg)`).call(Ro,()=>{Z&&(r.arc_needle_value=K),D()})}),s){const K=de(c)?c.call(t,i):`M-${f} ${A} A${w} ${L} 0 0 0 ${f} ${A} L${v} -${i} A${p} ${y} 0 0 0 -${v} -${i} L-${f} ${A} Z`;t.$T(l).attr("d",K).style("fill",r.arc_needle_color).style("display",null).style("transform",`rotate(${N}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:r,state:a}=e,o=e.getArcLength(),i=e.hasType("gauge"),s=e.getTotalDataSum(!0);let l=Qe(t)?t:r.arc_needle_value,c=r[`${r.data_type}_startingAngle`]||0,f=0;if(ye(l)||(l=i&&e.data.targets.length===1?s:0),a.current.needle=l,i){c=e.getStartingAngle();const v=r.gauge_fullCircle?o:c*-2,{gauge_min:p,gauge_max:y}=r;f=v*((l-p)/(y-p))}else f=o*(l/s);return(c+f)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:r}=t,a=t.hasMultiArcGauge(),o=e.gauge_fullCircle,i=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,s=t.getStartingAngle(),l=o?s+t.getArcLength():s*-1;let c=t.$el.arcs.select(`${a?"g":""}.${Le.chartArcsBackground}`);if(a){let f=0;c=c.selectAll(`path.${Le.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(v,p)=>`${Le.chartArcsBackground} ${Le.chartArcsBackground}-${p}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:v})=>{if(i||r.hiddenTargetIds.indexOf(v)>=0)return"M 0 0";const p={data:[{value:e.gauge_max}],startAngle:s,endAngle:l,index:f++};return t.getArc(p,!0,!0)}),c.exit().remove()}else c.attr("d",i?"M 0 0":()=>{const f={data:[{value:e.gauge_max}],startAngle:s,endAngle:l};return t.getArc(f,!0,!0)})},bindArcEvent(t){const e=this,{config:r,state:a}=e,o=a.inputType==="touch",i=a.inputType==="mouse";function s(c,f,v){e.expandArc(v),e.api.focus(v),e.toggleFocusLegend(v,!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,v){var p;const y=e.updateAngle(f);let A;y&&(A=e.convertToArcData(y),(p=e.toggleShape)==null||p.call(e,this,A,v),r.data_onclick.bind(e.api)(A,this))}),i&&t.on("mouseover",function(c,f){if(a.transiting)return;a.event=c;const v=e.updateAngle(f),p=v?e.convertToArcData(v):null,y=(p==null?void 0:p.id)||void 0;s(this,p,y),e.setOverOut(!0,p)}).on("mouseout",(c,f)=>{if(a.transiting||!r.interaction_onout)return;a.event=c;const v=e.updateAngle(f),p=v?e.convertToArcData(v):null;l(),e.setOverOut(!1,p)}).on("mousemove",function(c,f){const v=e.updateAngle(f),p=v?e.convertToArcData(v):null;a.event=c,e.showTooltip([p],this)}),o&&e.hasArcType()&&!e.radars){const c=f=>{var v,p;const{clientX:y,clientY:A}=(p=(v=f.changedTouches)==null?void 0:v[0])!=null?p:{clientX:0,clientY:0};return it(mn.elementFromPoint(y,A))};e.$el.svg.on("touchstart touchmove",function(f){if(a.transiting)return;a.event=f;const p=c(f).datum(),y=p!=null&&p.data&&p.data.id?e.updateAngle(p):null,A=y?e.convertToArcData(y):null,w=(A==null?void 0:A.id)||void 0;e.callOverOutForTouch(A),ln(w)?l():s(this,A,w)},{passive:!0})}},redrawArcText(t){const e=this,{config:r,state:a,$el:{main:o,arcs:i}}=e,s=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(s&&e.data.targets.length===1&&r.gauge_title||(c=o.selectAll(`.${Le.chartArc}`).select("text").style("opacity","0").attr("class",f=>e.isGaugeType(f.data)?jn.gaugeValue:null).call(e.textForArcLabel.bind(e)).style("font-size",f=>e.isGaugeType(f.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null),Jc.call(e),c.attr("transform",function(f){return e.transformForArcLabel.bind(e)(this,f)}).transition().duration(t).style("opacity",f=>e.isTargetToShow(f.data.id)&&e.isArcType(f.data)?null:"0"),l&&c.attr("dy","-.1em")),o.select(`.${Le.chartArcsTitle}`).style("opacity",e.hasType("donut")||s?null:"0"),s){const f=r.gauge_fullCircle;f&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),r.gauge_label_show&&(i.select(`.${jn.chartArcsGaugeUnit}`).attr("dy",`${f?1.5:.75}em`).text(r.gauge_units),i.select(`.${jn.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(f?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(r.gauge_min,!1)),!f&&i.select(`.${jn.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(r.gauge_max,!0)))}Qu.call(e)&&Fx.call(e,t)},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:r}}=e,a=ye(t)?o=>o.index===t:o=>o.data.id===t;return r==null?void 0:r.selectAll(`.${Ee.target} path`).filter(a)}};function tf(t){return t[0]}function ef(t){return t[1]}function nf(t,e){var r=Fe(!0),a=null,o=ys,i=null,s=Rs(l);t=typeof t=="function"?t:t===void 0?tf:Fe(t),e=typeof e=="function"?e:e===void 0?ef:Fe(e);function l(c){var f,v=(c=Es(c)).length,p,y=!1,A;for(a==null&&(i=o(A=s())),f=0;f<=v;++f)!(f<v&&r(p=c[f],f,c))===y&&((y=!y)?i.lineStart():i.lineEnd()),y&&i.point(+t(p,f,c),+e(p,f,c));if(A)return i=null,A+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:Fe(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:Fe(+c),l):e},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Fe(!!c),l):r},l.curve=function(c){return arguments.length?(o=c,a!=null&&(i=o(a)),l):o},l.context=function(c){return arguments.length?(c==null?a=i=null:i=o(a=c),l):a},l}function Jx(t,e,r){var a=null,o=Fe(!0),i=null,s=ys,l=null,c=Rs(f);t=typeof t=="function"?t:t===void 0?tf:Fe(+t),e=typeof e=="function"?e:Fe(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?ef:Fe(+r);function f(p){var y,A,w,L=(p=Es(p)).length,N,D=!1,K,Z=new Array(L),H=new Array(L);for(i==null&&(l=s(K=c())),y=0;y<=L;++y){if(!(y<L&&o(N=p[y],y,p))===D)if(D=!D)A=y,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),w=y-1;w>=A;--w)l.point(Z[w],H[w]);l.lineEnd(),l.areaEnd()}D&&(Z[y]=+t(N,y,p),H[y]=+e(N,y,p),l.point(a?+a(N,y,p):Z[y],r?+r(N,y,p):H[y]))}if(K)return l=null,K+""||null}function v(){return nf().defined(o).curve(s).context(i)}return f.x=function(p){return arguments.length?(t=typeof p=="function"?p:Fe(+p),a=null,f):t},f.x0=function(p){return arguments.length?(t=typeof p=="function"?p:Fe(+p),f):t},f.x1=function(p){return arguments.length?(a=p==null?null:typeof p=="function"?p:Fe(+p),f):a},f.y=function(p){return arguments.length?(e=typeof p=="function"?p:Fe(+p),r=null,f):e},f.y0=function(p){return arguments.length?(e=typeof p=="function"?p:Fe(+p),f):e},f.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Fe(+p),f):r},f.lineX0=f.lineY0=function(){return v().x(t).y(e)},f.lineY1=function(){return v().x(t).y(r)},f.lineX1=function(){return v().x(a).y(e)},f.defined=function(p){return arguments.length?(o=typeof p=="function"?p:Fe(!!p),f):o},f.curve=function(p){return arguments.length?(s=p,i!=null&&(l=s(i)),f):s},f.context=function(p){return arguments.length?(p==null?i=l=null:l=s(i=p),f):i},f}var da={initArea(t){const e=this,{config:r}=e;t.insert("g",`.${r.area_front?En.circles:dr.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 r=this,{config:a,state:o,$el:i,$T:s}=r,l=e?i.subchart:i;a.area_linearGradient&&r.updateLinearGradient();const c=l.main.selectAll(`.${ao.areas}`).selectAll(`.${ao.area}`).data(r.lineData.bind(r));s(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",r.getClass("area",!0)).style("fill",r.updateAreaColor.bind(r)).style("opacity",function(){return o.orgAreaOpacity=it(this).style("opacity"),"0"}).merge(c),c.style("opacity",o.orgAreaOpacity),r.setRatioForGroupedData(l.area.data())},redrawArea(t,e,r=!1){const a=this,{area:o}=r?this.$el.subchart:this.$el,{orgAreaOpacity:i}=a.state;return[a.$T(o,e,ar()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",s=>String(a.isAreaRangeType(s)?i/1.75:i))]},generateDrawArea(t,e){const r=this,{config:a}=r,o=a.line_connectNull,i=a.axis_rotated,s=r.generateGetAreaPoints(t,e),l=r.getYScaleById.bind(r),c=p=>(e?r.subxx:r.xx).call(r,p),f=(p,y)=>r.isGrouped(p.id)?s(p,y)[0][1]:l(p.id,e)(r.isAreaRangeType(p)?r.getRangedData(p,"high"):r.getShapeYMin(p.id)),v=(p,y)=>r.isGrouped(p.id)?s(p,y)[1][1]:l(p.id,e)(r.isAreaRangeType(p)?r.getRangedData(p,"low"):p.value);return p=>{let y=o?r.filterRemoveNull(p.values):p.values,A=0,w=0,L;if(r.isAreaType(p)){let N=Jx();N=i?N.y(c).x0(f).x1(v):N.x(c).y0(a.area_above?0:a.area_below?r.state.height:f).y1(v),o||(N=N.defined(D=>r.getBaseValue(D)!==null)),r.isStepType(p)&&(y=r.convertValuesToStep(y)),L=N.curve(r.getCurve(p))(y)}else y[0]&&(A=r.scale.x(y[0].x),w=r.getYScaleById(p.id)(y[0].value)),L=i?`M ${w} ${A}`:`M ${A} ${w}`;return L||"M 0 0"}},generateGetAreaPoints(t,e){const r=this,{config:a}=r,o=r.getShapeX(0,t,e),i=r.getShapeY(!!e),s=r.getShapeOffset(r.isAreaType,t,e),l=r.getYScaleById.bind(r);return function(c,f){const v=l.call(r,c.id,e)(r.getShapeYMin(c.id)),p=s(c,f)||v,y=o(c),A=c.value;let w=i(c);return a.axis_rotated&&(A>0&&w<v||A<0&&v<w)&&(w=v),[[y,p],[y,w-(v-p)],[y,w-(v-p)],[y,p]]}}};function Cs(t){const e=this.config.bar_connectLine,r=(e==null?void 0:e[t])||e;return/^(start|end)\-(start|end)$/.test(r)?r:null}var Qx={initBar(){const{$el:t,config:e,state:{clip:r}}=this;t.bar=t.main.select(`.${Ee.chart}`),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",zn.chartBars).call(this.setCssRule(!1,`.${zn.chartBars}`,["pointer-events:none"])),e.clipPath===!1&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",r.pathXAxis.replace(/#[^)]*/,`#${r.id}`))},updateTargetsForBar(t){const e=this,{config:r,$el:a}=e,o=e.getChartClass("Bar"),i=e.getClass("bars",!0),s=e.classFocus.bind(e),l=r.interaction_enabled&&r.data_selection_isselectable;a.bar||e.initBar(),a.main.select(`.${zn.chartBars}`).selectAll(`.${zn.chartBar}`).data(e.filterNullish(t)).attr("class",v=>o(v)+s(v)).enter().append("g").attr("class",o).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",i).style("cursor",v=>{var p;return(p=l==null?void 0:l.bind)!=null&&p.call(l,e.api)(v)?"pointer":null}).call(v=>{e.setCssRule(!0,` .${zn.bar}`,["fill"],e.color)(v),v.each(function(p){Cs.call(e,p.id)&&it(this).append("path").attr("class",zn.barConnectLine)})})},updateBar(t,e=!1){const r=this,{config:a,$el:o,$T:i}=r,s=e?o.subchart:o,l=r.getClass("bar",!0),c=r.initialOpacity.bind(r);a.bar_linearGradient&&r.updateLinearGradient();const f=s.main.selectAll(`.${zn.bars}`).selectAll(`.${zn.bar}`).data(r.labelishData.bind(r));i(f.exit(),t).style("opacity","0").remove(),s.bar=f.enter().append("path").attr("class",l).style("fill",r.updateBarColor.bind(r)).merge(f).style("opacity",c),r.setRatioForGroupedData(s.bar.data())},updateBarColor(t){const e=this,r=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):r?r(t):null},redrawBar(t,e,r=!1){const a=this,{bar:o}=r?a.$el.subchart:a.$el,i=[];return[a.$T(o,e,ar()).attr("d",function(s,l,c){const f=(ye(s.value)||a.isBarRangeType(s))&&t(s,l),v=Cs.call(a,s.id);if(f.length>1&&(i.push(f[1]),l===c.length-1)){const p=a.$T(it(this.parentNode.querySelector(`.${zn.barConnectLine}`)),e,ar());a.updateConnectLine(p,v,i),i.splice(0)}return f[0]}).style("fill",a.updateBarColor.bind(a)).style("clip-path",s=>s.clipPath).style("opacity",null)]},generateDrawBar(t,e){const r=this,{config:a}=r,o=r.generateGetBarPoints(t,e),i=a.axis_rotated,s=a.bar_radius,l=a.bar_radius_ratio,c=ye(s)&&s>0?()=>s:ye(l)?f=>f*l:null;return(f,v)=>{const p=o(f,v),y=+i,A=+!y,w=f.value<0,L=a[`axis_${r.axis.getId(f.id)}_inverted`],N=!L&&w||L&&!w,D=["",""],K=r.isGrouped(f.id),Z=c&&K?r.isStackingRadiusData(f):!1,H=[p[0][y],p[0][A]];let nt=0;if(f.clipPath=null,c){const $t=i?A:y,Tt=p[2][$t]-p[0][$t];nt=!K||Z?c(Tt):0;const mt=`a${nt} ${nt} ${N?"1 0 0":"0 0 1"} `;D[+!i]=`${mt}${nt},${nt}`,D[+i]=`${mt}${[-nt,nt][i?"sort":"reverse"]()}`,N&&D.reverse()}const Q=i?p[1][y]+(N?nt:-nt):p[1][A]+(N?-nt:nt);if(nt){let $t="";i?N&&H[0]<Q?$t=`0 ${Q-H[0]}px 0 0`:!N&&H[0]>Q&&($t=`0 0 0 ${H[0]-Q}px`):N&&H[1]>Q?$t=`${H[1]-Q}px 0 0 0`:!N&&H[1]<Q&&($t=`0 0 ${Q-H[1]}px 0`),$t&&(f.clipPath=`inset(${$t})`)}const ot=i?`H${Q} ${D[0]}V${p[2][A]-nt} ${D[1]}H${p[3][y]}`:`V${Q} ${D[0]}H${p[2][y]-nt} ${D[1]}V${p[3][A]}`,vt=[`M${p[0][y]},${p[0][A]}${ot}z`];return Cs.call(r,f.id)&&vt.push(i?{x:p[0][y],y:p[0][A],width:p[0][y]-Q,height:p[2][A]-p[0][A]}:{x:p[0][y],y:Q,width:p[2][y]-p[0][y],height:p[3][A]-Q}),vt}},isStackingRadiusData(t){const e=this,{$el:r,config:a,data:o,state:i}=e,{id:s,index:l,value:c}=t;if(i.hiddenTargetIds.indexOf(s)>-1){const y=r.bar.filter(A=>A.id===s&&A.value===c);return!y.empty()&&/a\d+/i.test(y.attr("d"))}const f=a.data_groups.find(y=>y.indexOf(s)>-1),p=e.orderTargets(e.filterTargetsToShow(o.targets.filter(e.isBarType,e))).filter(y=>f.indexOf(y.id)>-1).map(y=>y.values.filter(A=>A.index===l&&(ye(c)&&c>0?A.value>0:A.value<0))[0]).filter(Boolean).map(y=>y.id);return c!==0&&p.indexOf(s)===p.length-1},generateGetBarPoints(t,e){const r=this,{config:a}=r,o=e?r.axis.subX:r.axis.x,i=r.getIndicesMax(t)+1,s=r.getBarW("bar",o,i),l=r.getShapeX(s,t,!!e),c=r.getShapeY(!!e),f=r.getShapeOffset(r.isBarType,t,!!e),v=r.getYScaleById.bind(r);return(p,y)=>{const{id:A}=p,w=v.call(r,A,e)(r.getShapeYMin(A)),L=f(p,y)||w,N=ye(s)?s:s[p.id]||s._$width,D=a[`axis_${r.axis.getId(A)}_inverted`],K=p.value,Z=l(p);let H=c(p);a.axis_rotated&&!D&&(K>0&&H<w||K<0&&w<H)&&(H=w),r.isBarRangeType(p)||(H-=w-L);const nt=Z+N;return[[Z,L],[Z,H],[nt,H],[nt,L]]}},updateConnectLine(t,e,r){const a=r.map((o,i,s)=>{const l=this.config.axis_rotated,c=/^start-(start|end)$/.test(e),f=/^end-(start|end)$/.test(e),v=[],p=l?f?o.x-o.width:o.x:o.x+o.width,y=l||c?o.y+o.height:o.y;return i===0?v.push(`${p},${y}`):(v.push(l?`L${o.x-(/\w+-end$/.test(e)?o.width:0)},${o.y}`:`L${o.x},${o.y+(/\w+-start$/.test(e)?o.height:0)}`),i<s.length-1&&v.push(`M${p},${y}`)),v.join(" ")});t.attr("d",`M${a.join("")}z`)}},kx={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:r}=t.state,a=cn.bubbleBaseLength;let o=t.cache.get(a);return o||t.cache.add(a,o=er("min",[e,r])),o},getBubbleR(t){const e=this;let r=e.config.bubble_maxR;de(r)?r=r.bind(e.api)(t):ye(r)||(r=e.getBaseLength()/(e.getMaxDataCount()*2)+12);const a=er("max",e.getMinMaxData().max.map(s=>e.isBubbleZType(s)?e.getBubbleZData(s.value,"y"):Ge(s.value)?s.value.mid:s.value)),o=r*r*Math.PI,i=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(o/a);return Math.sqrt(i/Math.PI)},getBubbleZData(t,e){return Ge(t)?t[e]:t[e==="y"?0:1]}},qx=Object.defineProperty,rf=Object.getOwnPropertySymbols,_x=Object.prototype.hasOwnProperty,t0=Object.prototype.propertyIsEnumerable,af=(t,e,r)=>e in t?qx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,e0=(t,e)=>{for(var r in e||(e={}))_x.call(e,r)&&af(t,r,e[r]);if(rf)for(var r of rf(e))t0.call(e,r)&&af(t,r,e[r]);return t},n0={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Ee.chart}`).append("g").attr("class",fr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:r}=e,a=e.getChartClass("Candlestick");r.candlestick||e.initCandlestick(),e.$el.main.select(`.${fr.chartCandlesticks}`).selectAll(`.${fr.chartCandlestick}`).data(e.filterNullish(t)).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const r=this,{$el:a,$T:o}=r,i=e?a.subchart:a,s=r.getClass("candlestick",!0),l=r.initialOpacity.bind(r),c=i.main.selectAll(`.${fr.chartCandlestick}`).selectAll(`.${fr.candlestick}`).data(r.labelishData.bind(r));o(c.exit(),t).style("opacity","0").remove();const f=c.enter().filter(v=>v.value).append("g").attr("class",s);f.append("line"),f.append("path"),i.candlestick=c.merge(f).style("opacity",l)},generateDrawCandlestick(t,e){const r=this,{config:a}=r,o=r.generateGetCandlestickPoints(t,e),i=a.axis_rotated,s=a.candlestick_color_down;return(l,c,f)=>{const v=o(l,c),p=r.getCandlestickData(l),y=p==null?void 0:p._isUp,A=+i,w=+!A;f.classed&&f.classed(fr[y?"valueUp":"valueDown"],!0);const L=i?`H${v[1][1]} V${v[1][0]} H${v[0][1]}`:`V${v[1][1]} H${v[1][0]} V${v[0][1]}`;f.select("path").attr("d",`M${v[0][A]},${v[0][w]}${L}z`).style("fill",K=>(y?r.color(K):Ge(s)?s[K.id]:s)||r.color(K));const N=f.select("line"),D=i?{x1:v[2][1],x2:v[2][2],y1:v[2][0],y2:v[2][0]}:{x1:v[2][0],x2:v[2][0],y1:v[2][1],y2:v[2][2]};for(const K in D)N.attr(K,D[K])}},generateGetCandlestickPoints(t,e=!1){const r=this,a=e?r.axis.subX:r.axis.x,o=r.getIndicesMax(t)+1,i=r.getBarW("candlestick",a,o),s=r.getShapeX(i,t,!!e),l=r.getShapeY(!!e),c=r.getShapeOffset(r.isBarType,t,!!e),f=r.getYScaleById.bind(r);return(v,p)=>{const y=f.call(r,v.id,e)(r.getShapeYMin(v.id)),A=c(v,p)||y,w=ye(i)?i:i[v.id]||i._$width,L=r.getCandlestickData(v);let N;if(L&&ye(L.open)&&ye(L.close)){const D={start:s(v),end:0};D.end=D.start+w;const K={start:l(L.open),end:l(L.close)},Z={x:D.start+w/2,high:l(L.high),low:l(L.low)};K.start-=y-A,N=[[D.start,K.start],[D.end,K.end],[Z.x,Z.low,Z.high]]}else N=[[0,0],[0,0],[0,0,0]];return N}},redrawCandlestick(t,e,r=!1){const a=this,{$el:o,$T:i}=a,{candlestick:s}=r?o.subchart:o,l=ar(!0);return[s.each(function(c,f){const v=i(it(this),e,l);t(c,f,v)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(Xe(t)){const[r,a,o,i,s=!1]=t;e={open:r,high:a,low:o,close:i},s!==!1&&(e.volume=s)}else Ge(t)&&(e=e0({},t));return e&&(e._isUp=e.close>=e.open),e||null}},r0=Object.defineProperty,of=Object.getOwnPropertySymbols,a0=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable,sf=(t,e,r)=>e in t?r0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i0=(t,e)=>{for(var r in e||(e={}))a0.call(e,r)&&sf(t,r,e[r]);if(of)for(var r of of(e))o0.call(e,r)&&sf(t,r,e[r]);return t};function ti(t=!1){const e=this,{config:r,state:{current:{width:a,height:o}}}=e,i=e.getCurrentPadding(),s=i0({width:a-(i.left+i.right),height:o-(r.legend_show?e.getLegendHeight()+10:0)-(i.top+i.bottom)},i);if(t){const{width:l,height:c}=lf.call(e,{width:s.width,height:s.height});s.width<l&&(s.width=l),s.height<c&&(s.height=c)}return s}function lf(t){const e=this,{config:r}=e;let a=r.funnel_neck_width,o=r.funnel_neck_height;return[a,o]=[a,o].map((i,s)=>{let l=i;return Ge(i)&&(l=t[s?"height":"width"]*i.ratio),l}),{width:a,height:o}}function s0(t){const e=this,{top:r,left:a,width:o}=ti.call(e,!0),i=[];return t.forEach((s,l)=>{const{ratio:c}=s,f=l>0?i[l-1][2][1]:r;i.push(s.coords=[[a,f],[a+o,f],[a+o,l>0?c+f:c+r],[a,l>0?c+f:c+r],[a,f]])}),i}function cf(t=!1){const e=this,{width:r,height:a,top:o,left:i}=ti.call(e,!0),s=lf.call(e,{width:r,height:a}),l=(r-s.width)/2,c=(r+s.width)/2,f=a-s.height,v=[[0,0],[r,0],[c,f],[c,a],[l,a],[l,f],[0,0]];return t&&v.forEach(p=>{p[0]+=i,p[1]+=o}),`M${v.join("L")}z`}function l0(t){const e=this,{config:r}=e,a=t.map(o=>({id:o.id,value:o.values.reduce((i,s)=>i+s.value,0)}));return r.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),uf.call(e,a)}function uf(t){const e=this,{height:r}=ti.call(e),a=e.getTotalDataSum(!0);return t.forEach(o=>{o.ratio=o.value/a*r}),t}var c0={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Ee.chart}`).append("g").classed(Ia.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(Ia.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:r,state:a}=t,o=i=>{var s;const l=i.isTrusted?i.target:(s=a.eventReceiver.rect)==null?void 0:s.node();let c;return/^path$/i.test(l.tagName)&&(a.event=i,c=it(l).datum()),c};if(r.interaction_enabled){const i=a.inputType==="touch";e.on(i?"touchstart":"mouseover mousemove",s=>{const l=o(s);l&&(t.showTooltip([l],s.target),/^(touchstart|mouseover)$/.test(s.type)&&t.setOverOut(!0,l))},i?{passive:!0}:void 0).on(i?"touchend":"mouseout",s=>{const l=o(s);r.interaction_onout&&(t.hideTooltip(),t.setOverOut(!1,l))})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:r}}=e,a=e.getChartClass("Funnel"),o=e.getClass("funnel",!0);r||e.initFunnel();const i=l0.call(e,t.filter(e.isFunnelType.bind(e))),s=r.selectAll(`.${Ia.chartFunnel}`).data(e.filterNullish(i));s.exit().remove();const l=s.enter().insert("g",`.${Ia.funnelBackground}`);l.append("path"),r.path=l.merge(s).attr("class",c=>a(c)).select("path").attr("class",o).style("opacity","0").style("fill",e.color)},updateFunnel(t){const e=this,{$el:{funnel:r}}=e,a=t.map(({id:o})=>o);r.path=r.path.filter(o=>a.indexOf(o.id)>=0)},generateGetFunnelPoints(){const t=this,{$el:{funnel:e}}=t,r=t.filterTargetsToShow(e.path),{top:a,left:o,right:i}=ti.call(t),s=(o-i)/2,l={};let c=a!=null?a:0;return r.each((f,v)=>{var p;l[f.id]=[[s,c],[s,c+=((p=r==null?void 0:r[v])!=null?p:f).ratio]]}),f=>l[f.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:r}}=t,a=t.filterTargetsToShow(r.path),o=s0.call(t,uf.call(t,a.data()));r.attr("clip-path",`path('${cf.bind(t)()}')`),r.background.attr("d",cf.call(t,!0)),e(a).attr("d",(i,s)=>`M${o[s].join("L")}z`).style("opacity","1"),r.selectAll("g").style("opacity",null)}},u0={initGauge(){const t=this,{config:e,$el:{arcs:r}}=t,a=(o=null,i="")=>{r.append("text").attr("class",o).style("text-anchor","middle").style("pointer-events","none").text(i)};if(t.hasType("gauge")){const o=t.hasMultiArcGauge();r.append(o?"g":"path").attr("class",Le.chartArcsBackground).style("fill",!o&&e.gauge_background||null),e.gauge_units&&a(jn.chartArcsGaugeUnit),e.gauge_label_show&&(a(jn.chartArcsGaugeMin),!e.gauge_fullCircle&&a(jn.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:r}=t,o=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(r.rendered);!e.gauge_enforceMinMax&&o+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=o-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:r,$el:a}=t,{hiddenTargetIds:o}=t.state,i=a.main.selectAll(`.${Le.arcs}`).selectAll(`.${Le.arcLabelLine}`).data(t.arcData.bind(t));i.enter().append("rect").attr("class",l=>`${Le.arcLabelLine} ${Ee.target} ${Ee.target}-${l.data.id}`).merge(i).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 v=0,p=0,y="";if(o.indexOf(l.data.id)<0){const A=t.updateAngle(l),w=r.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(A.index+1),L=A.endAngle-Math.PI/2,N=r.radius-w,D=L-(N===0?0:1/N);c=r.radiusExpanded-r.radius+w,v=Math.cos(D)*N,p=Math.sin(D)*N,y=`rotate(${L*180/Math.PI}, ${v}, ${p})`}it(this).attr("x",v).attr("y",p).attr("width",c).attr("height",f).attr("transform",y).style("stroke-dasharray",`0, ${c+f}, 0`)})},textForGaugeMinMax(t,e){const r=this,{config:a}=r,o=a.gauge_label_extents;return de(o)?o.bind(r.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)}},f0=Object.defineProperty,d0=Object.defineProperties,h0=Object.getOwnPropertyDescriptors,ff=Object.getOwnPropertySymbols,v0=Object.prototype.hasOwnProperty,g0=Object.prototype.propertyIsEnumerable,df=(t,e,r)=>e in t?f0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,p0=(t,e)=>{for(var r in e||(e={}))v0.call(e,r)&&df(t,r,e[r]);if(ff)for(var r of ff(e))g0.call(e,r)&&df(t,r,e[r]);return t},m0=(t,e)=>d0(t,h0(e));function y0(t,e,r,a=!1){const o=t?[t,0]:r;for(let i=t||r.reduce((s,l)=>s+l);i<=e;)r.forEach(s=>{i+s<=e&&o.push(s),i+=s});return o.length%2!==0&&o.push(a?r[1]:0),{dash:o.join(" "),length:o.reduce((i,s)=>i+s,0)}}function x0(t,e,r){const a=this,o=[],i="2 2";if(Qe(e)){const s=(l,c)=>ln(l)?c:r?Jn.call(a,l):l;for(let l=0,c;c=e[l];l++){const f=s(c.start,t[0].x),v=s(c.end,t[t.length-1].x),p=c.style||{dasharray:i};o[l]={start:f,end:v,style:p}}}return o}var T0={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Ee.chart}`).append("g").attr("class",dr.chartLines).call(this.setCssRule(!1,`.${dr.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:r,line:a,main:o}}=e,i=e.getChartClass("Line"),s=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(p=>!(e.isScatterType(p)||e.isBubbleType(p))),f=o.select(`.${dr.chartLines}`).selectAll(`.${dr.chartLine}`).data(e.filterNullish(c)).attr("class",p=>i(p)+l(p)),v=f.enter().append("g").attr("class",i).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(v.append("g").attr("class",s),e.hasTypeOf("Area")){const p=(!r&&v.empty()?f:v).filter(e.isAreaType.bind(e));e.initArea(p)}e.updateTargetForCircle(c,v)},updateLine(t,e=!1){const r=this,{format:{extraLineClasses:a},$el:o,$T:i}=r,s=e?o.subchart:o,l=s.main.selectAll(`.${dr.lines}`).selectAll(`.${dr.line}`).data(r.lineData.bind(r));i(l.exit(),t).style("opacity","0").remove(),s.line=l.enter().append("path").attr("class",c=>`${r.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",r.color).merge(l).style("opacity",r.initialOpacity.bind(r)).attr("transform",null)},redrawLine(t,e,r=!1){const a=this,{$el:o,$T:i}=a,{line:s}=r?o.subchart:o;return[i(s,e,ar()).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 o=e.getInterpolate(t)(a);return o.orgPoint=o.point,o.pointRotated=function(i,s){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+s*this._t;this._context.lineTo(this._x,l),this._context.lineTo(i,l),this._x=i,this._y=s},o.point=function(i,s){this._point===0?this.orgPoint(i,s):this.pointRotated(i,s)},o}:e.getInterpolate(t)},generateDrawLine(t,e){const r=this,{config:a,scale:o}=r,i=a.line_connectNull,s=a.axis_rotated,l=r.generateGetLinePoints(t,e),c=r.getYScaleById.bind(r),f=A=>(e?r.subxx:r.xx).call(r,A),v=(A,w)=>r.isGrouped(A.id)?l(A,w)[0][1]:c(A.id,e)(r.getBaseValue(A));let p=nf();p=s?p.x(v).y(f):p.x(f).y(v),i||(p=p.defined(A=>r.getBaseValue(A)!==null));const y=e?o.subX:o.x;return A=>{const w=c(A.id,e);let L=i?r.filterRemoveNull(A.values):A.values,N=0,D=0,K;if(r.isLineType(A)){const Z=a.data_regions[A.id];Z?(r.isAreaRangeType(A)&&(L=L.map(H=>m0(p0({},H),{value:r.getRangedData(H,"mid")}))),K=r.lineWithRegions(L,o.zoom||y,w,Z)):(r.isStepType(A)&&(L=r.convertValuesToStep(L)),K=p.curve(r.getCurve(A))(L))}else L[0]&&(N=y(L[0].x),D=w(L[0].value)),K=s?`M ${D} ${N}`:`M ${N} ${D}`;return K||"M 0 0"}},lineWithRegions(t,e,r,a){const o=this,{config:i}=o,s=i.axis_rotated,l=o.axis.isTimeSeries(),c="2 2",f=x0.bind(o)(t,a,l),v=o.hasNullDataValue(t);let p,y,A,w;const L=s?Tt=>r(Tt.value):Tt=>e(Tt.x),N=s?Tt=>e(Tt.x):Tt=>r(Tt.value),D=Tt=>`M${Tt[0][0]},${Tt[0][1]}L${Tt[1][0]},${Tt[1][1]}`,K=l?(Tt,mt,bt,yt)=>{const q=Tt.x.getTime(),Et=mt.x-Tt.x,dt=new Date(q+Et*bt),Rt=new Date(q+Et*(bt+yt)),kt=s?[[r(y(bt)),e(dt)],[r(y(bt+A)),e(Rt)]]:[[e(dt),r(y(bt))],[e(Rt),r(y(bt+A))]];return D(kt)}:(Tt,mt,bt,yt)=>{const q=e(mt.x,!s),Et=r(mt.value,s),dt=bt+yt,Rt=e(p(bt),!s),kt=r(y(bt),s);let Ht=e(p(dt),!s),Kt=r(y(dt),s);Ht>q&&(Ht=q),Tt.value>mt.value&&(s?Kt<Et:Kt>Et)&&(Kt=Et);const se=[[Rt,kt],[Ht,Kt]];return s&&se.forEach(he=>he.reverse()),D(se)},Z={x:o.axis.getAxisType("x"),y:o.axis.getAxisType("y")};let H="";const nt=o.$el.line.filter(({id:Tt})=>Tt===t[0].id),Q=nt.clone().style("display","none"),ot=(Tt,mt)=>Tt.attr("d",mt).node().getTotalLength(),vt={dash:[],lastLength:0};let $t=!1;for(let Tt=0,mt;mt=t[Tt];Tt++){const bt=t[Tt-1],yt=bt&&Ne(bt.value);let q=o.isWithinRegions(mt.x,f);if(Ne(mt.value)){if(ln(f)||!q||!yt)H+=`${Tt&&yt?"L":"M"}${L(mt)},${N(mt)}`;else if(yt)if(q=((q==null?void 0:q.dasharray)||c).split(" ").map(Number),p=Vr(Z.x,bt.x,mt.x),y=Vr(Z.y,bt.value,mt.value),v){const Et=e(mt.x)-e(bt.x),dt=r(mt.value)-r(bt.value),Rt=Math.sqrt(Math.pow(Et,2)+Math.pow(dt,2));A=q[0]/Rt,w=A*q[1];for(let kt=A;kt<=1;kt+=w)H+=K(bt,mt,kt,A),kt+w>=1&&(H+=K(bt,mt,1,0))}else{let Et=[];if($t=mt.x===t[t.length-1].x,l){const Ht=+bt.x,Kt=new Date(Ht),se=new Date(Ht+(+mt.x-Ht));Et=[[e(Kt),r(y(0))],[e(se),r(y(1))]]}else Et=[[e(p(0)),r(y(0))],[e(p(1)),r(y(1))]];s&&Et.forEach(Ht=>Ht.reverse());const dt=ot(Q,H),Rt=ot(Q,H+=`L${Et[1].join(",")}`),kt=y0(dt-vt.lastLength,Rt-vt.lastLength,q,$t);vt.lastLength+=kt.length,vt.dash.push(kt.dash)}}}return vt.dash.length&&(!$t&&vt.dash.push(ot(Q,H)),Q.remove(),nt.attr("stroke-dasharray",vt.dash.join(" "))),H},isWithinRegions(t,e){for(let r=0,a;a=e[r];r++)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||Xe(e)&&e.indexOf(t.id)!==-1}};const ha=()=>ar();var ei={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:r}}=this;let a=e.point_opacity;return ln(a)&&(a=this.getBaseValue(t)!==null&&r[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:r}=this;let a=r.point_opacity;return ln(a)&&(a=r.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=Ne(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(`.${Ee.chart} > .${En.chartCircles}`).empty()&&e.select(`.${Ee.chart}`).append("g").attr("class",En.chartCircles)},updateTargetForCircle(t,e){const r=this,{config:a,data:o,$el:i}=r,s=a.interaction_enabled&&a.data_selection_enabled,l=s&&a.data_selection_isselectable,c=r.getClass("circles",!0);if(!a.point_show)return;r.initCircle();let f=t,v=e;if(!f){f=r.filterNullish(o.targets).filter(y=>this.isScatterType(y)||this.isBubbleType(y));const p=i.main.select(`.${En.chartCircles}`).style("pointer-events","none").selectAll(`.${En.circles}`).data(f);p.exit().remove(),v=p.enter()}s&&v.append("g").attr("class",p=>r.generateClass(tn.selectedCircles,p.id)),v.append("g").attr("class",c).call(p=>{r.setCssRule(!0,`.${En.circles}`,["cursor:pointer"],l)(p),r.setCssRule(!0,` .${En.circle}`,["fill","stroke"],r.color)(p)}).style("opacity",function(){return it(this.parentNode).attr("class").indexOf(En.chartCircles)>-1?"0":null}),s&&f.forEach(p=>{i.main.selectAll(`.${tn.selectedCircles}${r.getTargetSelectorSuffix(p.id)}`).selectAll(`${tn.selectedCircle}`).each(y=>{y.value=p.values[y.index].value})})},updateCircle(t=!1){const e=this,{config:r,state:a,$el:o}=e,i=e.isPointFocusOnly(),s=t?o.subchart:o;if(r.point_show&&!a.toggling){r.point_radialGradient&&e.updateLinearGradient();const l=s.main.selectAll(`.${En.circles}`).selectAll(`.${En.circle}`).data(c=>{const f=e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?i?[c.values[0]]:c.values:[];return e.filterNullish(f)});l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),s.circle=s.main.selectAll(`.${En.circles} .${En.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,r=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):r?r(t):null},redrawCircle(t,e,r,a,o=!1){const i=this,{state:{rendered:s},$el:l,$T:c}=i,f=o?l.subchart:l,v=f.main.selectAll(`.${tn.selectedCircle}`);if(!i.config.point_show)return[];const p=i.point("update",i,t,e,i.updateCircleColor.bind(i),r,a,v),y=i.isCirclePoint()?"c":"",A=ar(),w=i.opacityForCircle.bind(i),L=[];return f.circle.each(function(N){let D=p.bind(this)(N);D=c(D,r||!s,A).style("opacity",w),L.push(D)}),[L,c(v,r).attr(`${y}x`,t).attr(`${y}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:r,resizing:a,toggling:o,transiting:i},$el:s}=e;let{circle:l}=s;if(i===!1&&l&&e.isPointFocusOnly()){const c=(r?e.radarCircleX:e.circleX).bind(e),f=(r?e.radarCircleY:e.circleY).bind(e),v=o||ln(t),p=e.point("update",e,c,f,e.getStylePropValue(e.color),a?!1:v);t&&(l=l.filter(function(y){var A;const w=(A=t.filter)==null?void 0:A.call(t,L=>L.id===y.id);return w.length?it(this).datum(w[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(y){const{id:A,index:w,value:L}=y;let N="hidden";Ne(L)&&(p.bind(this)(y),e.expandCircles(w,A),N=""),this.style.visibility=N})}},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,r=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,o)=>{const i=a.id;return e.isGrouped(i)?r(a,o)[0][1]:e.getYScaleById(i,t)(e.getBaseValue(a))}},expandCircles(t,e,r){const a=this,o=a.pointExpandedR.bind(a);r&&a.unexpandCircles();const i=a.getShapeByIndex("circle",t,e).classed(Ee.EXPANDED,!0),s=o(i)/a.config.point_r,l=1-s;a.isCirclePoint()?i.attr("r",o):i.each(function(){const c=it(this);if(this.tagName==="circle")c.attr("r",o);else{const{width:f,height:v}=Er(this),p=l*(+c.attr("x")+f/2),y=l*(+c.attr("y")+v/2);c.attr("transform",`translate(${p} ${y}) scale(${s})`)}})},unexpandCircles(t){const e=this,r=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return it(this).classed(Ee.EXPANDED)}).classed(Ee.EXPANDED,!1);if(a.attr("r",r),!e.isCirclePoint()){const o=r(a)/e.config.point_r;a.attr("transform",o!==1?`scale(${o})`:null)}},pointR(t){const e=this,{config:r}=e,a=r.point_r;let o=a;return e.isBubbleType(t)?o=e.getBubbleR(t):de(a)&&(o=a.bind(e.api)(t)),t.r=o,o},pointExpandedR(t){const e=this,{config:r}=e,a=e.isBubbleType(t)?1.15:1.75;return r.point_focus_expand_enabled?r.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,r=e.config.point_select_r;return de(r)?r(t):r||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{state:r}=this,a=Zn(r.event,t),o=it(t),i=this.isCirclePoint(t)?"c":"",s=this.getPointSensitivity(o==null?void 0:o.datum());let l=+o.attr(`${i}x`),c=+o.attr(`${i}y`);if(!(l||c)&&t.nodeType===1){const{x:f,y:v}=Sn(t);l=f,c=v}return Math.sqrt(Math.pow(l-a[0],2)+Math.pow(c-a[1],2))<(e||s)},getPointSensitivity(t){const e=this;let r=e.config.point_sensitivity;if(t)de(r)?r=r.call(e.api,t):r==="radius"&&(r=t.r);else return r;return r},updatePointClass(t){const e=this,{circle:r}=e.$el;let a=!1;return(Ge(t)||r)&&(a=t===!0?r.each(function(o){let i=e.getClass("circle",!0)(o);this.getAttribute("class").indexOf(Ee.EXPANDED)>-1&&(i+=` ${Ee.EXPANDED}`),this.setAttribute("class",i)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const r=this,{config:a}=r,o=r.getShapeX(0,t,e),i=r.getShapeY(e),s=r.getShapeOffset(r.isLineType,t,e),l=r.getYScaleById.bind(r);return(c,f)=>{const v=l.call(r,c.id,e)(r.getShapeYMin(c.id)),p=s(c,f)||v,y=o(c);let A=i(c);a.axis_rotated&&(c.value>0&&A<v||c.value<0&&v<A)&&(A=v);const w=[y,A-(v-p)];return[w,w,w,w]}},custom:{create(t,e,r){return t.append("use").attr("xlink:href",`#${e}`).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update(t,e,r,a,o,i,s){const l=this,{width:c,height:f}=Er(t.node()),v=A=>Ne(A.value)?e(A)-c/2:0,p=A=>Ne(A.value)?r(A)-f/2:0;let y=t;return o&&(i&&y.attr("x",v),y=l.$T(y,o,ha()),s&&l.$T(s,o,ha())),y.attr("x",v).attr("y",p).style("fill",a)}},circle:{create(t,e,r){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",r).node()},update(t,e,r,a,o,i,s){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),o&&(i&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,o,ha())),s&&l.$T(c,o,ha())),c.attr("cx",e).attr("cy",r).style("fill",a)}},rectangle:{create(t,e,r){const a=o=>e(o)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",r).node()},update(t,e,r,a,o,i,s){const l=this,c=l.config.point_r,f=y=>e(y)-c,v=y=>r(y)-c;let p=t;return o&&(i&&p.attr("x",f),p=l.$T(p,o,ha()),s&&l.$T(s,o,ha())),p.attr("x",f).attr("y",v).style("fill",a)}}};function S0(t){return Gn(t)&&de(t.create)&&de(t.update)}function $0(t,e){var r;const a=this,o=(c,f)=>{const v=c.attributes;for(let p=0,y;y=v[p];p++)y=y.name,f.setAttribute(y,c.getAttribute(y))},s=new DOMParser().parseFromString(pr(t),"image/svg+xml").documentElement,l=mn.createElementNS(Gt.svg,s.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",o(s,l),(r=s.childNodes)!=null&&r.length){const c=it(l);"innerHTML"in l?c.html(pr(s.innerHTML)):Br(s.childNodes).forEach(f=>{o(f,c.append(f.tagName).node())})}a.$el.defs.node().appendChild(l)}var va={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}`},getValidPointPattern(){const{config:t}=this,e=/^(circle|rect(angle)?)$/i.test(t.point_type)?t.point_type:"circle";return dn(t.point_pattern)?t.point_pattern:[e]},generatePoint(){const t=this,{$el:e,config:r}=t,a=[],o=t.getValidPointPattern();return function(i,s,...l){return function(c){var f,v,p,y;const A=t.getTargetSelectorSuffix(c.id||((f=c.data)==null?void 0:f.id)||c),w=it(this);a.indexOf(A)<0&&a.push(A);let L=o[a.indexOf(A)%o.length];if(t.hasValidPointType(L))L=t[L];else if(!S0(L||r.point_type)){const N=t.getDefsPointId(A);if(e.defs.select(`#${N}`).size()<1&&$0.call(t,L,N),i==="create")return(v=t.custom)==null?void 0:v.create.bind(s)(w,N,...l);if(i==="update")return(p=t.custom)==null?void 0:p.update.bind(s)(w,...l)}return(y=L[i])==null?void 0:y.bind(s)(w,...l)}}}};function hf(t){const e=t.config.polar_level_max;let r=t.getMinMaxData().max[0].value;return e&&e>r&&(r=e),r}var A0={initPolar(){const t=this,{$el:{arcs:e},config:r}=t,a=r.polar_level_text_show,o=r.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",$r.levels),a&&o&&t.generateTextBGColorFilter(o)},getPolarOuterRadius(t,e){var r;const a=hf(this);return((r=t==null?void 0:t.data.values[0].value)!=null?r: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:r,$el:{arcs:{levels:a}}}=t,o=e.polar_level_depth,i=hf(t),s=Co(0,o),l=r.radius,c=s.map(y=>l*((y+1)/o)),f=(e.polar_level_text_format||function(){}).bind(t.api),v=a.selectAll(`.${$r.level}`).data(s);v.exit().remove();const p=v.enter().append("g").attr("class",(y,A)=>`${$r.level} ${$r.level}-${A}`);if(p.append("circle"),p.merge(v).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",y=>c[y]),e.polar_level_text_show){const y=e.polar_level_text_backgroundColor,A=`#${r.datetimeId}-labels-bg${t.getTargetSelectorSuffix(y)}`;p.append("text").style("text-anchor","middle"),p.merge(v).selectAll("text").attr("dy",w=>-c[w]+5).attr("filter",y?`url(${A})`:null).text(w=>f(i/s.length*(w+1)))}}};function E0(t,e,r,a,o,i){const s=t&&a>0?r-a:a,l=2*Math.PI;return o*(1-i*(e==="x"?Math.sin:Math.cos)(s*l/r))}const ga=cn.radarPoints,vf=cn.radarTextWidth;var I0={initRadar(){const t=this,{config:e,state:{current:r},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Ee.chart}`).append("g").attr("class",tl.chartRadars),a.radar.levels=a.radar.append("g").attr("class",$r.levels),a.radar.axes=a.radar.append("g").attr("class",gn.axis),a.radar.shapes=a.radar.append("g").attr("class",sn.shapes),r.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:r,arcHeight:a}}=t,o=e.axis_x_categories.length<4?-20:10,i=(Math.min(r,a)-o)/2;return[i,i]},updateTargetsForRadar(t){const e=this,{config:r}=e;Kn(r.axis_x_categories)&&(r.axis_x_categories=Co(0,er("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,r,a){const o=this,{config:i}=o,[s,l]=o.getRadarSize(),c=i.axis_x_categories.length,f=i.radar_direction_clockwise,v=Br(t).map(p=>E0(f,p,c,e,Qe(r)?r:t==="x"?s:l,ye(a)?a:i.radar_size_ratio));return v.length===1?v[0]:v},generateRadarPoints(){const t=this,e=t.data.targets,[r,a]=t.getRadarSize(),o=t.cache.get(ga)||{},i=o._size;(!i||i.width!==r&&i.height!==a)&&(e.forEach(s=>{o[s.id]=s.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),o._size={width:r,height:a},t.cache.add(ga,o))},redrawRadar(){const t=this,{radar:e,main:r}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),r.select(`.${pn.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(ga);return(e,r)=>{const a=t[e.id][r];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:r,$el:{radar:a}}=t,[o,i]=t.getRadarSize(),s=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,f=a.levels,v=Co(0,s),p=e.radar_size_ratio*Math.min(o,i),y=v.map(D=>p*((D+1)/s)),A=(e.radar_level_text_format||function(){}).bind(t.api),w=v.map(D=>{const K=y[D];return Co(0,l).map(H=>t.getRadarPosition(["x","y"],H,K,1).join(",")).join(" ")}),L=f.selectAll(`.${$r.level}`).data(v);L.exit().remove();const N=L.enter().append("g").attr("class",(D,K)=>`${$r.level} ${$r.level}-${K}`);N.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(()=>A(0)),N.append("text").attr("dx","-.5em").style("text-anchor","end").text(D=>A(r.current.dataMax/v.length*(D+1)))),N.merge(L).attr("transform",D=>`translate(${o-y[D]}, ${i-y[D]})`).selectAll("polygon").attr("points",D=>w[D]),c&&f.selectAll("text").attr("x",D=>ln(D)?o:w[D].split(",")[0]).attr("y",D=>ln(D)?i:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:r}}=t,[a,o]=t.getRadarSize(),i=e.axis_x_categories;let s=r.axes.selectAll("g").data(i);s.exit().remove();const l=s.enter().append("g").attr("class",(c,f)=>`${gn.axis}-${f}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),s=l.merge(s),e.radar_axis_line_show&&s.select("line").attr("x1",a).attr("y1",o).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,v=t.cache.get(vf)||0;if(s.select("text").style("text-anchor","middle").attr("dy",".5em").call(p=>{p.each(function(y){oa(it(this),String(y),[-.6,1.2])})}).datum((p,y)=>({index:y})).attr("transform",function(p){ln(this.width)&&(this.width=Sn(this,!0).width/2);let y=t.getRadarPosition("x",p.index,void 0,1),A=Math.round(t.getRadarPosition("y",p.index,void 0,1));return y>a?y+=this.width+c:Math.round(y)<a&&(y-=this.width+c),A>o?(A/2===o&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),A+=f):A<o&&(A-=f),`translate(${y} ${A})`}),!v){const p=[r.axes,r.levels].map(y=>kl(y.node()).width);p.every(y=>y>0)&&t.cache.add(vf,p[0]-p[1])}}},bindRadarEvent(){const t=this,{config:e,state:r,$el:{radar:a,svg:o}}=t,i=t.isPointFocusOnly(),{inputType:s,transiting:l}=r,c=s==="mouse",f=v=>{if(r.event=v,!e.interaction_onout)return;const p=t.getDataIndexFromEvent(v),y=ln(p);(c||y)&&(t.hideTooltip(),i?t.hideCircleFocus():t.unexpandCircles(),c?t.setOverOut(!1,p):y&&t.callOverOutForTouch())};a.axes.on(c?"mouseover ":"touchstart",v=>{if(l)return;r.event=v;const p=t.getDataIndexFromEvent(v);t.selectRectForSingle(o.node(),p),c?t.setOverOut(!0,p):t.callOverOutForTouch(p)},c?void 0:{passive:!0}).on("mouseout",c?f:null),c||o.on("touchstart",f,{passive:!0})},updateRadarShape(){const t=this,e=t.data.targets.filter(i=>t.isRadarType(i)),r=t.cache.get(ga),a=t.$el.radar.shapes.selectAll("polygon").data(t.filterNullish(e)),o=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),o.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",i=>r[i.id].join(" ")),t.updateTargetForCircle(e,o)},radarCircleX(t){return this.cache.get(ga)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(ga)[t.id][t.index][1]}};function b0(t){var e=0,r=t.children,a=r&&r.length;if(!a)e=1;else for(;--a>=0;)e+=r[a].value;t.value=e}function R0(){return this.eachAfter(b0)}function O0(t,e){let r=-1;for(const a of this)t.call(e,a,++r,this);return this}function C0(t,e){for(var r=this,a=[r],o,i,s=-1;r=a.pop();)if(t.call(e,r,++s,this),o=r.children)for(i=o.length-1;i>=0;--i)a.push(o[i]);return this}function P0(t,e){for(var r=this,a=[r],o=[],i,s,l,c=-1;r=a.pop();)if(o.push(r),i=r.children)for(s=0,l=i.length;s<l;++s)a.push(i[s]);for(;r=o.pop();)t.call(e,r,++c,this);return this}function M0(t,e){let r=-1;for(const a of this)if(t.call(e,a,++r,this))return a}function w0(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,a=e.children,o=a&&a.length;--o>=0;)r+=a[o].value;e.value=r})}function D0(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function N0(t){for(var e=this,r=L0(e,t),a=[e];e!==r;)e=e.parent,a.push(e);for(var o=a.length;t!==r;)a.splice(o,0,t),t=t.parent;return a}function L0(t,e){if(t===e)return t;var r=t.ancestors(),a=e.ancestors(),o=null;for(t=r.pop(),e=a.pop();t===e;)o=t,t=r.pop(),e=a.pop();return o}function F0(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function B0(){return Array.from(this)}function U0(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function z0(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*j0(){var t=this,e,r=[t],a,o,i;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,a=t.children)for(o=0,i=a.length;o<i;++o)r.push(a[o]);while(r.length)}function Ps(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=X0)):e===void 0&&(e=V0);for(var r=new ni(t),a,o=[r],i,s,l,c;a=o.pop();)if((s=e(a.data))&&(c=(s=Array.from(s)).length))for(a.children=s,l=c-1;l>=0;--l)o.push(i=s[l]=new ni(s[l])),i.parent=a,i.depth=a.depth+1;return r.eachBefore(W0)}function G0(){return Ps(this).eachBefore(H0)}function V0(t){return t.children}function X0(t){return Array.isArray(t)?t[1]:null}function H0(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function W0(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ni(t){this.data=t,this.depth=this.height=0,this.parent=null}ni.prototype=Ps.prototype={constructor:ni,count:R0,each:O0,eachAfter:P0,eachBefore:C0,find:M0,sum:w0,sort:D0,path:N0,ancestors:F0,descendants:B0,leaves:U0,links:z0,copy:G0,[Symbol.iterator]:j0};function Y0(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 ri(t,e,r,a,o){for(var i=t.children,s,l=-1,c=i.length,f=t.value&&(a-e)/t.value;++l<c;)s=i[l],s.y0=r,s.y1=o,s.x0=e,s.x1=e+=s.value*f}function ai(t,e,r,a,o){for(var i=t.children,s,l=-1,c=i.length,f=t.value&&(o-r)/t.value;++l<c;)s=i[l],s.x0=e,s.x1=a,s.y0=r,s.y1=r+=s.value*f}var gf=(1+Math.sqrt(5))/2;function pf(t,e,r,a,o,i){for(var s=[],l=e.children,c,f,v=0,p=0,y=l.length,A,w,L=e.value,N,D,K,Z,H,nt,Q;v<y;){A=o-r,w=i-a;do N=l[p++].value;while(!N&&p<y);for(D=K=N,nt=Math.max(w/A,A/w)/(L*t),Q=N*N*nt,H=Math.max(K/Q,Q/D);p<y;++p){if(N+=f=l[p].value,f<D&&(D=f),f>K&&(K=f),Q=N*N*nt,Z=Math.max(K/Q,Q/D),Z>H){N-=f;break}H=Z}s.push(c={value:N,dice:A<w,children:l.slice(v,p)}),c.dice?ri(c,r,a,o,L?a+=w*N/L:i):ai(c,r,a,L?r+=A*N/L:o,i),L-=N,v=p}return s}var mf=(function t(e){function r(a,o,i,s,l){pf(e,a,o,i,s,l)}return r.ratio=function(a){return t((a=+a)>1?a:1)},r})(gf);function vT(t){return t==null?null:yf(t)}function yf(t){if(typeof t!="function")throw new Error;return t}function Ha(){return 0}function Wa(t){return function(){return t}}function K0(){var t=mf,e=!1,r=1,a=1,o=[0],i=Ha,s=Ha,l=Ha,c=Ha,f=Ha;function v(y){return y.x0=y.y0=0,y.x1=r,y.y1=a,y.eachBefore(p),o=[0],e&&y.eachBefore(Y0),y}function p(y){var A=o[y.depth],w=y.x0+A,L=y.y0+A,N=y.x1-A,D=y.y1-A;N<w&&(w=N=(w+N)/2),D<L&&(L=D=(L+D)/2),y.x0=w,y.y0=L,y.x1=N,y.y1=D,y.children&&(A=o[y.depth+1]=i(y)/2,w+=f(y)-A,L+=s(y)-A,N-=l(y)-A,D-=c(y)-A,N<w&&(w=N=(w+N)/2),D<L&&(L=D=(L+D)/2),t(y,w,L,N,D))}return v.round=function(y){return arguments.length?(e=!!y,v):e},v.size=function(y){return arguments.length?(r=+y[0],a=+y[1],v):[r,a]},v.tile=function(y){return arguments.length?(t=yf(y),v):t},v.padding=function(y){return arguments.length?v.paddingInner(y).paddingOuter(y):v.paddingInner()},v.paddingInner=function(y){return arguments.length?(i=typeof y=="function"?y:Wa(+y),v):i},v.paddingOuter=function(y){return arguments.length?v.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):v.paddingTop()},v.paddingTop=function(y){return arguments.length?(s=typeof y=="function"?y:Wa(+y),v):s},v.paddingRight=function(y){return arguments.length?(l=typeof y=="function"?y:Wa(+y),v):l},v.paddingBottom=function(y){return arguments.length?(c=typeof y=="function"?y:Wa(+y),v):c},v.paddingLeft=function(y){return arguments.length?(f=typeof y=="function"?y:Wa(+y),v):f},v}function xf(t,e,r,a,o){var i=t.children,s,l=i.length,c,f=new Array(l+1);for(f[0]=c=s=0;s<l;++s)f[s+1]=c+=i[s].value;v(0,l,t.value,e,r,a,o);function v(p,y,A,w,L,N,D){if(p>=y-1){var K=i[p];K.x0=w,K.y0=L,K.x1=N,K.y1=D;return}for(var Z=f[p],H=A/2+Z,nt=p+1,Q=y-1;nt<Q;){var ot=nt+Q>>>1;f[ot]<H?nt=ot+1:Q=ot}H-f[nt-1]<f[nt]-H&&p+1<nt&&--nt;var vt=f[nt]-Z,$t=A-vt;if(N-w>D-L){var Tt=A?(w*$t+N*vt)/A:N;v(p,nt,vt,w,L,Tt,D),v(nt,y,$t,Tt,L,N,D)}else{var mt=A?(L*$t+D*vt)/A:D;v(p,nt,vt,w,L,N,mt),v(nt,y,$t,w,mt,N,D)}}}function Z0(t,e,r,a,o){(t.depth&1?ai:ri)(t,e,r,a,o)}var J0=(function t(e){function r(a,o,i,s,l){if((c=a._squarify)&&c.ratio===e)for(var c,f,v,p,y=-1,A,w=c.length,L=a.value;++y<w;){for(f=c[y],v=f.children,p=f.value=0,A=v.length;p<A;++p)f.value+=v[p].value;f.dice?ri(f,o,i,s,L?i+=(l-i)*f.value/L:l):ai(f,o,i,L?o+=(s-o)*f.value/L:s,l),L-=f.value}else a._squarify=c=pf(e,a,o,i,s,l),c.ratio=e}return r.ratio=function(a){return t((a=+a)>1?a:1)},r})(gf);function Q0(t,e){const r=this,{scale:{x:a,y:o},state:{width:i}}=r;t.selectAll("g").attr("transform",s=>`translate(${s===e?"0,0":`${a(s.x0)},${o(s.y0)}`})`).select("rect").attr("width",s=>s===e?i:a(s.x1)-a(s.x0)).attr("height",s=>s===e?0:o(s.y1)-o(s.y0))}function k0(t){const e=this;return t.map(r=>{const{id:a,values:o}=r,{value:i}=o[0];return{name:a,id:a,value:i,ratio:e.getRatio("treemap",o[0])}})}function q0(t){const e=this,r=Ps(t).sum(o=>o.value),a=e.getSortCompareFn(!0);return[e.treemap(a?r.sort(a):r)]}var _0={initTreemap(){const t=this,{$el:e,state:{current:{width:r,height:a},clip:o,datetimeId:i}}=t;o.id=`${i}-clip`,t.treemap=K0().tile(t.getTreemapTile()),e.defs.append("clipPath").attr("id",o.id).append("rect").attr("width",r).attr("height",a),e.treemap=e.main.select(`.${Ee.chart}`).attr("clip-path",`url(#${o.id})`).append("g").classed(nl.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:r,state:a}=t,o=i=>{var s;const l=i.isTrusted?i.target:(s=a.eventReceiver.rect)==null?void 0:s.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=i,c=it(l).datum()),c==null?void 0:c.data};if(r.interaction_enabled){const i=a.inputType==="touch";e.treemap.on(i?"touchstart":"mouseover mousemove",s=>{const l=o(s);l&&(t.showTooltip([l],s.currentTarget),/^(touchstart|mouseover)$/.test(s.type)&&t.setOverOut(!0,l))},i?{passive:!0}:void 0).on(i?"touchend":"mouseout",s=>{const l=o(s);r.interaction_onout&&(t.hideTooltip(),t.setOverOut(!1,l))})}},getTreemapTile(){var t,e;const r=this,{config:a,state:{current:{width:o,height:i}}}=r,s=(e={binary:xf,dice:ri,slice:ai,sliceDice:Z0,squarify:mf,resquarify:J0}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:xf;return(l,c,f,v,p)=>{s(l,0,0,o,i);for(const y of l.children)y.x0=c+y.x0/o*(v-c),y.x1=c+y.x1/o*(v-c),y.y0=f+y.y0/i*(p-f),y.y1=f+y.y1/i*(p-f)}},getTreemapData(t){const e=this;return{name:"root",children:k0.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:r}}=e,a=q0.call(e,e.getTreemapData(t!=null?t:e.data.targets));r.data(e.filterNullish(a))},updateTreemap(t){const e=this,{$el:r,$T:a}=e,o=r.treemap.datum(),i=e.getChartClass("Treemap"),s=e.getClass("treemap",!0),l=r.treemap.selectAll("g").data(o.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),r.treemap.selectAll("g").attr("class",i).select("rect").attr("class",s).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:r,y:a}}=t,o={};return e.treemap.selectAll("g").each(i=>{o[i.data.name]=[[r(i.x0),a(i.y0)],[r(i.x1),a(i.y1)]]}),i=>o[i.id]},redrawTreemap(t){const e=this,{$el:r,state:{current:{width:a,height:o}}}=e;return r.defs.select("rect").attr("width",a).attr("height",o),[e.$T(r.treemap,t,ar()).call(Q0.bind(e),r.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{$el:{treemap:r},config:a,scale:{x:o,y:i}}=e,{id:s,value:l}=t,c=a.treemap_label_format,f=e.getRatio("treemap",t),v=(f*100).toFixed(2),p=a.treemap_label_show&&fs.call(e,f,"treemap")?null:"0",y=r.selectAll("g").filter(L=>L.data.id===s).datum();let A=0,w=0;if(y){const{x0:L,x1:N,y0:D,y1:K}=y;A=o(N)-o(L),w=i(K)-i(D)}return function(L){return L.style("opacity",p),de(c)?c.bind(e.api)(l,f,s,{width:A,height:w}):`${s}
|
|
60
|
-
${
|
|
60
|
+
`):[];if(c.length)return c;if(Xe(l))return l;let d=i.tickWidth;(!d||d<=0)&&(d=o?95:i.isCategory?(i.isInverted?r(a[0])-r(a[1]):r(a[1])-r(a[0]))-12:110);function g(p,y){let A,w,F;for(let N=1;N<y.length;N++)if(y.charAt(N)===" "&&(w=N),A=y.substr(0,N+1),F=s*A.length,d<F)return g(p.concat(y.substr(0,w||N)),y.slice(w?w+1:N));return p.concat(y)}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:r}=this;return arguments.length?(r.tickFormat=e,this):r.tickFormat}tickCentered(e){const{config:r}=this;return arguments.length?(r.tickCentered=e,this):r.tickCentered}tickOffset(){return this.config.tickOffset}tickInterval(e){var r;const{outerTickSize:a,tickOffset:o,tickValues:s}=this.config;let i;if(this.params.isCategory)i=o*2;else{const l=(r=this.params.owner.scale.zoom)!=null?r:this.helper.scale;i=(this.g.select("path.domain").node().getTotalLength()-a*2)/(e||this.g.selectAll("line").size());const d=s?s.map((g,p,y)=>{const A=p+1;return A<y.length?l(y[A])-l(g):null}).filter(Boolean):[];i=Math.min(...d,i)}return i===1/0?0:i}ticks(...e){const{config:r}=this;return e.length?(r.tickArguments=Fr(e),this):r.tickArguments}tickCulling(e){const{config:r}=this;return arguments.length?(r.tickCulling=e,this):r.tickCulling}tickValues(e){const{config:r}=this;if(de(e))r.tickValues=()=>e(this.helper.scale.domain());else{if(!arguments.length)return r.tickValues;r.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var px=Object.defineProperty,mx=(t,e,r)=>e in t?px(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mr=(t,e,r)=>mx(t,typeof e!="symbol"?e+"":e,r),yx={getAxisInstance:function(){return this.axis||new xx(this)}};class xx{constructor(e){mr(this,"owner"),mr(this,"x"),mr(this,"subX"),mr(this,"y"),mr(this,"y2"),mr(this,"axesList",{}),mr(this,"tick",{x:null,y:null,y2:null}),mr(this,"xs",[]),mr(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${gn.axis} ${gn[`axis${bn(e)}`]}`}isHorizontal(e,r){const a=e.config.axis_rotated;return r?a:!a}isCategorized(){const{config:e,state:r}=this.owner;return e.axis_x_type.indexOf("category")>=0||r.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||dn(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 r="linear";return this.isTimeSeries(e)?r=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(r="log"),r}getExtent(){const e=this.owner,{config:r,scale:a}=e;let o=r.axis_x_extent;if(o){if(de(o))o=o.bind(e.api)(e.getXDomain(e.data.targets),a.subX);else if(this.isTimeSeries()&&o.every(isNaN)){const s=Jn.bind(e);o=o.map(i=>a.subX(s(i)))}}return o}init(){const e=this.owner,{config:r,$el:{main:a,axis:o},state:{clip:s}}=e,i=["x","y"];r.axis_y2_show&&i.push("y2"),i.forEach(l=>{const c=this.getAxisClassName(l);o[l]=a.append("g").attr("class",c).attr("clip-path",()=>{let d=null;return l==="x"?d=s.pathXAxis:l==="y"&&(d=s.pathYAxis),d}).attr("transform",e.getTranslate(l)).style("visibility",r[`axis_${l}_show`]?null:"hidden"),this.generateAxes(l)})}setOrient(){const e=this.owner,{axis_rotated:r,axis_y_inner:a,axis_y2_inner:o}=e.config;this.orient={x:r?"left":"bottom",y:r?a?"top":"bottom":a?"right":"left",y2:r?o?"bottom":"top":o?"left":"right",subX:r?"left":"bottom"}}generateAxes(e){const r=this.owner,{config:a}=r,o=[],s=a[`axis_${e}_axes`],i=a.axis_rotated;let l;e==="x"?l=i?Xu:Vu:e==="y"?l=i?Vu:Xu:e==="y2"&&(l=i?lx:cx),s.length&&s.forEach(c=>{const d=c.tick||{},g=r.scale[e].copy();c.domain&&g.domain(c.domain),o.push(l(g).ticks(d.count).tickFormat(de(d.format)?d.format.bind(r.api):(p=>p)).tickValues(d.values).tickSizeOuter(d.outer===!1?0:6))}),this.axesList[e]=o}updateAxes(){const e=this.owner,{config:r,$el:{main:a},$T:o}=e;Object.keys(this.axesList).forEach(s=>{const i=r[`axis_${s}_axes`],l=e.scale[s].copy(),c=l.range();this.axesList[s].forEach((d,g)=>{const p=d.scale().range();c.every((w,F)=>w===p[F])||d.scale().range(c);const y=`${this.getAxisClassName(s)}-${g+1}`;let A=a.select(`.${y.replace(/\s/,".")}`);A.empty()?A=a.append("g").attr("class",y).style("visibility",r[`axis_${s}_show`]?null:"hidden").call(d):(i[g].domain&&l.domain(i[g].domain),o(A).call(d.scale(l))),A.attr("transform",e.getTranslate(s,g+1))})})}setAxis(e,r,a,o){const s=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,r,a,e==="x"&&(s.scale.zoom||s.config.subchart_show||s.state.resizing)?!0:o)}getAxis(e,r,a,o,s){const i=this.owner,{config:l}=i,c=/^(x|subX)$/.test(e),d=c?"x":e,g=c&&this.isCategorized(),p=this.orient[e],y=s?0:i.getAxisTickRotate(d);let A;if(c)A=e==="subX"?i.format.subXAxisTick:i.format.xAxisTick;else{const K=l[`axis_${e}_tick_format`];de(K)&&(A=K.bind(i.api))}let w=this.tick[d];const F=oa({outerTick:a,noTransition:o,config:l,id:e,tickTextRotate:y,owner:i},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&&i.api.categories(),orgXScale:i.scale.x});c||(F.tickStepSize=l[`axis_${d}_tick_stepSize`]);const N=new gx(F).scale(c&&i.scale.zoom||r).orient(p);if(c&&this.isTimeSeries()&&w&&!de(w)){const K=Jn.bind(i);w=w.map(J=>K(J))}else!c&&this.isTimeSeriesY()&&(N.ticks(l.axis_y_tick_time_value),w=null);w&&N.tickValues(w),N.tickFormat(A||!c&&i.isStackNormalized()&&i.hasAxisGroupedData(e)&&(K=>`${K}%`)),g&&(N.tickCentered(l.axis_x_tick_centered),Kn(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const D=l[`axis_${d}_tick_count`];return D&&N.ticks(D),N}updateXAxisTickValues(e,r){var a;const o=this.owner,{config:s}=o,i=s.axis_x_tick_fit;let l=s.axis_x_tick_count,c;return(i||l&&i)&&(c=o.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),r?r.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:r,scale:a}=this.owner;let o=r.data_axes[e];return(!o||!a[o])&&(o="y"),o}getXAxisTickFormat(e){const r=this.owner,{config:a,format:o}=r,s=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,i=this.isTimeSeries(),l=this.isCategorized();let c;return s?de(s)?c=s.bind(r.api):i&&(c=d=>d?o.axisTime(s)(d):""):c=i?o.defaultAxisTime:l?r.categoryName:d=>d<0?d.toFixed(0):d,de(c)?d=>c.apply(r,l?[d,r.categoryName(d)]:[d]):c}getTickValues(e){const r=this.owner,a=r.config[`axis_${e}_tick_values`],o=r[`${e}Axis`];return(de(a)?a.call(r.api):a)||(o?o.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const r=this.getLabelOptionByAxisId(e);return je(r)?r:r?r.text:null}setLabelText(e,r){const a=this.owner,{config:o}=a,s=this.getLabelOptionByAxisId(e);je(s)?o[`axis_${e}_label`]=r:s&&(s.text=r)}getLabelPosition(e,r){const a=this.owner.config.axis_rotated,o=this.getLabelOptionByAxisId(e),s=Gn(o)&&o.position?o.position:r[+!a],i=l=>!!~s.indexOf(l);return{isInner:i("inner"),isOuter:i("outer"),isLeft:i("left"),isCenter:i("center"),isRight:i("right"),isTop:i("top"),isMiddle:i("middle"),isBottom:i("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 r=this.owner,{state:{width:a,height:o}}=r,s=this.getAxisLabelPosition(e);let i=s.isMiddle?-o/2:0;return this.isHorizontal(r,e!=="x")?i=s.isLeft?0:s.isCenter?a/2:a:s.isBottom&&(i=-o),i}textAnchorForAxisLabel(e){const r=this.owner,a=this.getAxisLabelPosition(e);let o=a.isMiddle?"middle":"end";return this.isHorizontal(r,e!=="x")?o=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(o="start"),o}dxForAxisLabel(e){const r=this.owner,a=this.getAxisLabelPosition(e);let o=a.isBottom?"0.5em":"0";return this.isHorizontal(r,e!=="x")?o=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(o="-0.5em"),o}dyForAxisLabel(e){const r=this.owner,{config:a}=r,o=a.axis_rotated,s=this.getAxisLabelPosition(e).isInner,i=a[`axis_${e}_tick_rotate`]?r.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const d=a.axis_x_height;o?c=s?"1.2em":-25-l:s?c="-0.5em":d?c=d-10:i?c=i-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],o?s?c=c[0]:i?c=i*(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,r){const a=this.owner,{config:o,state:{current:s,resizing:i},$el:{svg:l,chart:c}}=a,d=s.maxTickSize[e],g=`axis_${e}`,p={width:0,height:0};if(i||r||!o[`${g}_show`]||d.width>0&&a.filterTargetsToShow().length===0)return d;if(l){const y=/^y2?$/.test(e),A=a.filterTargetsToShow(a.data.targets),w=a.scale[e].copy().domain(a[`get${y?"Y":"X"}Domain`](A,e)),F=w.domain(),N=F[0]===F[1]&&F.every($t=>$t>0),D=Xe(d.domain)&&d.domain[0]===d.domain[1]&&d.domain.every($t=>$t>0);if(N||D)return d.size;d.domain=F,y||d.ticks.splice(0);const K=this.getAxis(e,w,!1,!1,!0),J=o[`${g}_tick_rotate`],W=o[`${g}_tick_count`];!o[`${g}_tick_values`]&&W&&K.tickValues(this.generateTickValues(F,W,y?this.isTimeSeriesY():this.isTimeSeries())),!y&&this.updateXAxisTickValues(A,K);const Q=c.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0"),ot=Q.append("g").attr("class",`${gn[`axis${bn(e)}`]} ${Ee.dummy}`);K.create(ot);const{sizeFor1Char:vt}=ot.node();Q.selectAll("text").attr("transform",ye(J)?`rotate(${J})`:null).each(function($t,Tt){const{width:yt,height:Rt}=vt?{width:this.textContent.length*vt.w,height:vt.h}:Sn(this,!0);p.width=Math.max(p.width,yt),p.height=Math.max(p.height,Rt),y||(d.ticks[Tt]=yt)}),Q.remove()}return Object.keys(p).forEach(y=>{p[y]>0&&(d[y]=p[y])}),d}getXAxisTickTextY2Overflow(e){const r=this.owner,{axis:a,config:o,state:{current:s,isLegendRight:i,legendItemWidth:l}}=r,c=r.getAxisTickRotate("x"),d=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&o.axis_x_tick_fit&&(!o.axis_x_tick_culling||Kn(o.axis_x_tick_culling))&&!o.axis_x_tick_multiline&&d){const g=o.axis_y2_show&&s.maxTickSize.y2.width||0,p=i&&l||0,y=s.width-r.getCurrentPaddingByDirection("left"),A=this.getXAxisTickMaxOverflow(c,y-e)-g-p,w=Math.max(0,A)+e;return Math.min(w,y/2)}return 0}getXAxisTickMaxOverflow(e,r){const a=this.owner,{axis:o,config:s,state:i}=a,l=o.isTimeSeries(),c=i.current.maxTickSize.x.ticks,d=c.length,{left:g,right:p}=i.axis.x.padding;let y=0;const A=d-(l&&s.axis_x_tick_fit?.5:0);for(let N=0;N<d;N++){const D=N+1,K=Math.cos(Math.PI*e/180)*c[N],J=D-(l?1:.5)+g;if(J<=0)continue;const rt=(r-K)/J,Q=A-D,ot=p*rt,vt=Q*rt+ot,$t=K-rt/2-vt;y=Math.max(y,$t)}const w=a.filterTargetsToShow(a.data.targets);let F=0;if(!l&&s.axis_x_tick_count<=w.length&&w[0].values.length){const N=Gr(a.axis.getAxisType("x"),0,r-y).domain([g*-1,a.getXDomainMax(a.data.targets)+1+p]);F=(N(1)-N(0))/2}return y+F}updateLabels(e){const r=this.owner,{config:a,$el:{main:o},$T:s}=r,i=a.axis_rotated;["x","y","y2"].forEach(l=>{const c=this.getLabelText(l),d=`axis${bn(l)}`,g=gn[`${d}Label`];if(c){let p=o.select(`text.${g}`);p.empty()&&(p=o.select(`g.${gn[d]}`).insert("text",":first-child").attr("class",g).attr("transform",["rotate(-90)",null][l==="x"?+!i:+i]).style("text-anchor",()=>this.textAnchorForAxisLabel(l))),s(p,e).attr("x",()=>this.xForAxisLabel(l)).attr("dx",()=>this.dxForAxisLabel(l)).attr("dy",()=>this.dyForAxisLabel(l)).text(c)}})}getPadding(e,r,a,o){const s=ye(e)?e:e[r];return Ne(s)?this.owner.convertPixelToScale(/(bottom|top)/.test(r)?"y":"x",s,o):a}generateTickValues(e,r,a){let o=e;if(r){const s=de(r)?r():r;if(s===1)o=[e[0]];else if(s===2)o=[e[0],e[e.length-1]];else if(s>2){const i=this.isCategorized(),l=s-2,c=e[0],d=e[e.length-1],g=(d-c)/(l+1);let p;o=[c];for(let y=0;y<l;y++)p=+c+g*(y+1),o.push(a?new Date(p):i?Math.round(p):p);o.push(d)}}return a||(o=o.sort((s,i)=>s-i)),o}generateTransitions(e){const r=this.owner,{$el:{axis:a},$T:o}=r,[s,i,l,c]=["x","y","y2","subX"].map(d=>o(a[d],e));return{axisX:s,axisY:i,axisY2:l,axisSubX:c}}redraw(e,r,a){const o=this.owner,{config:s,state:i,$el:l}=o,c=r?"0":null;["x","y","y2","subX"].forEach(d=>{const g=this[d],p=l.axis[d];g&&p&&(!a&&!s.transition_duration&&(g.config.withoutTransition=!0),p.style("opacity",c),g.create(e[`axis${bn(d)}`]))}),this.updateAxes(),!i.rendered&&s.axis_tooltip&&this.setAxisTooltip()}redrawAxis(e,r,a,o,s){var i,l,c;const d=this.owner,{config:g,scale:p,$el:y}=d,A=!!p.zoom;let w;!A&&this.isCategorized()&&e.length===0&&p.x.domain([0,y.axis.x.selectAll(".tick").size()]),p.x&&e.length?(!A&&d.updateXDomain(e,r.UpdateXDomain,r.UpdateOrgXDomain,r.TrimXDomain),g.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(i=this.subX)==null||i.tickValues([])),g.zoom_rescale&&!o&&(w=p.x.orgDomain()),["y","y2"].forEach(F=>{const N=`axis_${F}_`,D=p[F];if(D){const K=g[`${N}tick_values`],J=g[`${N}tick_count`];if(D.domain(d.getYDomain(e,F,w)),!K&&J){const W=d.axis[F],rt=D.domain();W.tickValues(this.generateTickValues(rt,rt.every(Q=>Q===0)?1:J,this.isTimeSeriesY()))}}}),this.redraw(a,d.hasArcType(),s),this.updateLabels(r.Transition),(r.UpdateXDomain||r.UpdateXAxis||r.Y)&&e.length&&this.setCulling(),r.Y&&((l=p.subY)==null||l.domain(d.getYDomain(e,"y")),(c=p.subY2)==null||c.domain(d.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:r,state:{clip:a,current:o},$el:s}=e;["subX","x","y","y2"].forEach(i=>{const l=s.axis[i],d=`axis_${i==="subX"?"x":i}_tick_culling`,g=r[d];if(l&&g){const p=l.selectAll(".tick"),y=sa(p.data(),!r[`${d}_reverse`]),A=y.length,w=r[`${d}_max`],F=r[`${d}_lines`];let N;if(A){for(let D=1;D<A;D++)if(A/D<w){N=D;break}p.each(function(D){const K=F?this.querySelector("text"):this;K&&(K.style.display=y.indexOf(D)%N?"none":null)})}else p.style("display",null);if(i==="x"){const D=o.maxTickSize.x.clipPath?a.pathXAxisTickTexts:null;s.svg.selectAll(`.${gn.axisX} .tick text`).attr("clip-path",D)}}})}setAxisTooltip(){var e;const r=this.owner,{config:{axis_rotated:a,axis_tooltip:o},$el:{axis:s,axisTooltip:i}}=r,l=(e=o.backgroundColor)!=null?e:"black";r.generateTextBGColorFilter(l,{x:-.15,y:-.2,width:1.3,height:1.3}),["x","y","y2"].forEach(c=>{var d,g,p;if(je(l)||l[c])if(i[c]=(d=s[c])==null?void 0:d.append("text").classed(gn[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",r.updateTextBGColor({id:c},l)),a){const y=c==="x"?"x":"y",A=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(g=i[c])==null||g.attr(y,A).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const y=c==="x"?"y":"x",A=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(p=i[c])==null||p.attr(y,A).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var Tx={initEventRect(){this.$el.main.select(`.${Ee.chart}`).append("g").attr("class",kn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:r,state:a,$el:o}=e,s=e.isMultipleX(),i=r.axis_x_inverted;if(o.eventRect)e.updateEventRect(o.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${kn.eventRects}`).style("cursor",r.zoom_enabled&&r.zoom_type!=="drag"?r.axis_rotated?"ns-resize":"ew-resize":null).classed(kn.eventRectsMultiple,s).classed(kn.eventRectsSingle,!s).selectAll(`.${kn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),o.eventRect=c,e.state.inputType==="touch"&&!o.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(o.eventRect,!0)}if(!s){const l=e.getMaxDataCountTarget();(!r.data_xSort||i)&&l.sort((c,d)=>i?d.x-c.x:c.x-d.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:r,$el:{eventRect:a,svg:o}}=t,s=A=>{if(t.isMultipleX())t.selectRectForMultipleXs(A);else{const w=t.getDataIndexFromEvent(r.event);t.callOverOutForTouch(w),w===-1?t.unselectRect():t.selectRectForSingle(A,w)}},i=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Ls(l)&&l||!1,d=!isNaN(l)&&l||null;let g;const p=!c&&d===null,y=A=>{const w=A.type,N=A.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];w==="touchstart"?c?A.preventDefault():d!==null&&(g=N):w==="touchmove"&&(c||g===!0||d!==null&&Math.abs(g-N)>=d)&&(g=!0,A.preventDefault())};a.on("touchstart",A=>{r.event=A,t.updateEventRect()},{passive:p}).on("touchstart.eventRect touchmove.eventRect",A=>{if(r.event=A,!a.empty()&&a.classed(kn.eventRect)){if(r.dragging||r.flowing||t.hasArcType()||A.touches.length>1)return;y(A),s(a.node())}else i()},{passive:p}).on("touchend.eventRect",A=>{r.event=A,!a.empty()&&a.classed(kn.eventRect)&&(t.hasArcType()||!t.toggleShape||r.cancelClick)&&r.cancelClick&&(r.cancelClick=!1)},{passive:p}),o.on("touchstart",A=>{r.event=A;const{target:w}=A;w&&w!==a.node()&&i()},{passive:p})},updateEventRect(t,e=!1){const r=this,{state:a,$el:o}=r,{eventReceiver:s,width:i,height:l,rendered:c,resizing:d}=a,g=t||o.eventRect,p=()=>{if(s){const y=oc(o.chart.node());s.rect=Sn(g.node(),!0).toJSON(),s.rect.top+=y.y,s.rect.left+=y.x}};(!c||d||e)&&(g.attr("x",0).attr("y",0).attr("width",i).attr("height",l),(!c||e)&&g.classed(kn.eventRect,!0)),p()},updateEventType(t){const e=this,r=Ls(t),a=r?e.$el.eventRect:t,o=r?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(o&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:r,state:a}=t,o=r.zoom||r.x,s=e.axis_rotated,i=t.isMultipleX();let l,c,d,g;if(t.updateEventType(i),i)l=0,c=0,d=a.width,g=a.height;else{let A,w;if(t.axis.isCategorized())A=t.getEventRectWidth(),w=F=>o(F.x)-A/2;else{const F=({index:N})=>({prev:t.getPrevX(N),next:t.getNextX(N)});A=N=>{const D=F(N),K=o.domain();let J;return D.prev===null&&D.next===null?J=s?a.height:a.width:D.prev===null?J=(o(D.next)+o(N.x))/2:D.next===null?J=o(K[1])-(o(D.prev)+o(N.x))/2:(Object.keys(D).forEach((W,rt)=>{var Q;D[W]=(Q=D[W])!=null?Q:K[rt]}),J=Math.max(0,(o(D.next)-o(D.prev))/2)),J},w=N=>{const D=F(N);let K;return D.prev===null&&D.next===null?K=0:D.prev===null?K=o(o.domain()[0]):K=(o(N.x)+o(D.prev))/2,K}}l=s?0:w,c=s?w:0,d=s?a.width:A,g=s?A:a.height}const{eventReceiver:p}=a,y=(A,w)=>de(A)?A(w):A;p.coords.splice(p.data.length),p.data.forEach((A,w)=>{p.coords[w]={x:y(l,A),y:y(c,A),w:y(d,A),h:y(g,A)}})},selectRectForSingle(t,e){var r,a;const o=this,{config:s,$el:{main:i,circle:l}}=o,c=s.data_selection_enabled,d=s.data_selection_grouped,g=s.data_selection_isselectable,p=s.tooltip_grouped,y=o.getAllValuesOnIndex(e);if(p&&(o.showTooltip(y,t),(r=o.showGridFocus)==null||r.call(o,y),!c||d))return;!l&&i.selectAll(`.${Ee.EXPANDED}:not(.${sn.shape}-${e})`).classed(Ee.EXPANDED,!1);const A=i.selectAll(`.${sn.shape}-${e}`).classed(Ee.EXPANDED,!0).style("cursor",g?"pointer":null).filter(function(w){return o.isWithinShape(this,w)});A.empty()&&!p&&s.interaction_onout&&((a=o.hideGridFocus)==null||a.call(o),o.hideTooltip(),!d&&o.setExpand(e)),A.call(w=>{var F,N;const D=w.data();c&&(d||g!=null&&g.bind(o.api)(D))&&(t.style.cursor="pointer"),p||(o.showTooltip(D,t),(F=o.showGridFocus)==null||F.call(o,D),(N=o.unexpandCircles)==null||N.call(o),w.each(K=>o.setExpand(e,K.id)))})},selectRectForMultipleXs(t,e=!0){const r=this,{config:a,state:o}=r,s=r.filterTargetsToShow(r.data.targets);if(o.dragging||r.hasArcType(s))return;const i=Zn(o.event,t),l=r.findClosestFromTargets(s,i);if(e&&o.mouseover&&(!l||l.id!==o.mouseover.id)&&(a.data_onout.call(r.api,o.mouseover),o.mouseover=void 0),!l){r.unselectRect();return}const d=(r.isBubbleType(l)||r.isScatterType(l)||!a.tooltip_grouped?[l]:r.filterByX(s,l.x)).map(p=>r.addName(p));r.showTooltip(d,t),r.setExpand(l.index,l.id,!0),r.showGridFocus(d);const g=r.dist(l,i);(r.isBarType(l.id)||g<r.getPointSensitivity(l))&&(r.$el.svg.select(`.${kn.eventRect}`).style("cursor","pointer"),e&&(!o.mouseover||o.mouseover.x!==l.x||o.mouseover.id!==l.id)&&(a.data_onover.call(r.api,l),o.mouseover=l))},unselectRect(){const t=this,{$el:{circle:e,tooltip:r}}=t;t.$el.svg.select(`.${kn.eventRect}`).style("cursor",null),t.hideGridFocus(),r&&(t.hideTooltip(),t._handleLinkedCharts(!1)),e&&!t.isPointFocusOnly()&&t.unexpandCircles(),t.expandBarTypeShapes(!1)},generateEventRectsForSingleX(t){const e=this,{config:r,state:a}=e,{eventReceiver:o}=a,s=t.style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("click",function(i){a.event=i;const{currentIdx:l,data:c}=o,d=c[l===-1?e.getDataIndexFromEvent(i):l];e.clickHandlerForSingleX.bind(this)(d,e)}).datum({multipleX:!1});if(a.inputType==="mouse"){const i=l=>{const c=l?e.getDataIndexFromEvent(l):o.currentIdx;return c>-1?o.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=i(l);if(a.event=l,!c)return;let{index:d}=c;const g=r.line_step_type;if(r.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(g)){const y=e.scale.zoom||e.scale.x,A=e.axis.xs[d],w=y.invert(Zn(l,this)[0]);g==="step-after"&&w<A?d-=1:g==="step-before"&&w>A&&(d+=1)}e.showAxisGridFocus();const p=r.tooltip_grouped&&d===o.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||p){r.tooltip_show&&p&&e.setTooltipPosition();return}d!==o.currentIdx&&(e.setOverOut(!1,o.currentIdx),o.currentIdx=d),d===-1?e.unselectRect():e.selectRectForSingle(this,d),e.setOverOut(d!==-1,d)}).on("mouseout",l=>{a.event=l,!(!r||e.hasArcType()||o.currentIdx===-1||!r.interaction_onout)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,o.currentIdx),o.currentIdx=-1)})}return s},clickHandlerForSingleX(t,e){const r=e,{config:a,state:o,$el:{main:s}}=r;if(!t||r.hasArcType()||o.cancelClick){o.cancelClick&&(o.cancelClick=!1);return}const{index:i}=t;s.selectAll(`.${sn.shape}-${i}`).each(function(l){var c;(a.data_selection_grouped||r.isWithinShape(this,l))&&((c=r.toggleShape)==null||c.call(r,this,l,i),a.data_onclick.bind(r.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{config:r,state:a}=e;t.on("click",function(o){a.event=o,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),a.inputType==="mouse"&&t.on("mouseover mousemove",function(o){a.event=o,e.selectRectForMultipleXs(this)}).on("mouseout",o=>{a.event=o,!(!e.config||e.hasArcType()||!r.interaction_onout)&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:r,state:a}=e,o=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(o))return;const s=Zn(a.event,this),i=e.findClosestFromTargets(o,s),l=e.getPointSensitivity(i);i&&(e.isBarType(i.id)||e.dist(i,s)<l)&&e.$el.main.selectAll(`.${sn.shapes}${e.getTargetSelectorSuffix(i.id)}`).selectAll(`.${sn.shape}-${i.index}`).each(function(){var c;(r.data_selection_grouped||e.isWithinShape(this,i))&&((c=e.toggleShape)==null||c.call(e,this,i,i.index),r.data_onclick.bind(e.api)(i,this))})}};const Sx=t=>+t;var $x={generateFlow(t){const e=this,{data:r,state:a,$el:o}=e;return function(){const s=t.flow.length;a.flowing=!0,r.targets.forEach(l=>{l.values.splice(0,s)}),e.updateXGrid&&e.updateXGrid(!0);const i={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let d=o[c[0]];d&&c.length>1&&(d=d[c[1]]),d!=null&&d.size()&&(i[l]=d)}),e.hideGridFocus(),e.setFlowList(i,t)}},setFlowList(t,e){const r=this,{flow:a,targets:o}=e,{duration:s=e.duration,index:i,length:l,orgDataCount:c}=a,d=r.getFlowTransform(o,c,i,l),g=pc();let p;g.add(Object.keys(t).map(y=>(p=t[y].transition().ease(Sx).duration(s),y==="axis.x"?p=p.call(A=>{r.axis.x.setTransition(A).create(A)}):y==="region.list"?p=p.filter(r.isRegionOnX).attr("transform",d):p=p.attr("transform",d),p))),p.call(g,()=>{r.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const r=this,{config:a,state:o,$el:{svg:s}}=r,i=a.axis_rotated,{flow:l,shape:c,xv:d}=e,{cx:g,cy:p,xForText:y,yForText:A}=c.pos,{done:w=()=>{},length:F}=l;F&&(["circle","text","shape","eventRect"].forEach(N=>{const D=[];for(let K=0;K<F;K++)D.push(`.${Ve[N]}-${K}`);s.selectAll(`.${Ve[`${N}s`]}`).selectAll(D).remove()}),s.select(`.${Ve.xgrid}`).remove()),Object.keys(t).forEach(N=>{const D=t[N];if(N!=="axis.x"&&D.attr("transform",null),N==="grid.x")D.attr(o.xgridAttr);else if(N==="gridLines.x")D.attr("x1",i?0:d).attr("x2",i?o.width:d),D.select("text").attr("x",i?o.width:0).attr("y",d);else if(/^(area|bar|line)$/.test(N))D.attr("d",c.type[N]);else if(N==="text")D.attr("x",y).attr("y",A).style("fill-opacity",r.opacityForText.bind(r));else if(N==="circle")if(r.isCirclePoint())D.attr("cx",g).attr("cy",p);else{const K=W=>g(W)-a.point_r,J=W=>p(W)-a.point_r;D.attr("x",K).attr("y",J)}else N==="region.list"&&D.select("rect").filter(r.isRegionOnX).attr("x",r.regionX.bind(r)).attr("width",r.regionWidth.bind(r))}),a.interaction_enabled&&r.redrawEventRect(),w.call(r.api),o.flowing=!1},getFlowTransform(t,e,r,a){const o=this,{data:s,scale:{x:i}}=o,l=s.targets[0].values;let c=o.getValueOnIndex(l,r),d=o.getValueOnIndex(l,r+a),g;const p=i.domain(),y=o.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(d==null?void 0:d.x)?g=i(p[0])-i(y[0]):g=o.axis.isTimeSeries()?i(p[0])-i(y[0]):i((c==null?void 0:c.x)||0)-i(d.x):l.length!==1?g=i(p[0])-i(y[0]):o.axis.isTimeSeries()?(c=o.getValueOnIndex(l,0),d=o.getValueOnIndex(l,l.length-1),g=i(c.x)-i(d.x)):g=Lr(y)/2;const A=Lr(p)/Lr(y);return`translate(${g},0) scale(${A},1)`}},Ax={initClip(){const t=this,{clip:e,datetimeId:r}=t.state;e.id=`${r}-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:r}=e;return!r.clipPath&&/-clip$/.test(t)||!r.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!r.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:r,state:{margin:a,width:o,height:s}}=e,i=r.axis_rotated,l=Math.max(30,a.left)-(i?0:20),c=(i?a.top+s+10:a.bottom)+20,d=i?-(1+l):-(l-1),g=-15,p=i?a.left+20:o+10+l;t.attr("x",d).attr("y",g).attr("width",p).attr("height",c)},setYAxisClipPath(t){const e=this,{config:r,state:{margin:a,width:o,height:s}}=e,i=r.axis_rotated,l=Math.max(30,a.left)-(i?20:0),c=r.axis_y_inner,d=c&&!i?r.axis_y_label.text?-20:-1:i?-(1+l):-(l-1),g=-(i?20:a.top),p=(i?o+15+l:a.left+20)+(c?20:0),y=(i?a.bottom+10:a.top+s)+10;t.attr("x",d).attr("y",g).attr("width",p).attr("height",y)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:r,xAxisHeight:a},$el:{defs:o}}=t,s=t.getHorizontalAxisHeight("x");if(o&&!r.idXAxisTickTexts){const i=`${r.id}-xaxisticktexts`;t.appendClip(o,i),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=i}!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:r}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const o=Math.sin(Math.PI/180*Math.abs(a));r.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/o}else r.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:r},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",r.maxTickSize.x.clipPath).attr("height",30)}};const Ex=t=>Ne(t.position)||"end",Ix=t=>t.position==="start"?4:t.position==="middle"?0:-4;function Hu(t,e,r){return a=>{let o=t?0:e;return a.position==="start"?o=t?-r:0:a.position==="middle"&&(o=(t?-r:e)/2),o}}function Wu(t,e){e==="grid"&&t.each(function(){const r=st(this);["x1","x2","y1","y2"].forEach(a=>r.attr(a,+r.attr(a)))})}var Rx={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:r},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Ee.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",r.pathGrid).attr("class",`${on.grid} ${on.gridLines}`),a.gridLines.main.append("g").attr("class",on.xgridLines),a.gridLines.main.append("g").attr("class",on.ygridLines),a.gridLines.x=qc([]))},updateXGrid(t){const e=this,{config:r,scale:a,state:o,$el:{main:s,grid:i}}=e,l=r.axis_rotated,c=e.generateGridData(r.grid_x_type,a.x),d=e.axis.isCategorized()?e.axis.x.tickOffset():0,g=p=>(a.zoom||a.x)(p)+d*(l?-1:1);o.xgridAttr=l?{x1:0,x2:o.width,y1:g,y2:g}:{x1:g,x2:g,y1:0,y2:o.height},i.x=s.select(`.${on.xgrids}`).selectAll(`.${on.xgrid}`).data(c),i.x.exit().remove(),i.x=i.x.enter().append("line").attr("class",on.xgrid).merge(i.x),t||i.x.each(function(){const p=st(this);Object.keys(o.xgridAttr).forEach(y=>{p.attr(y,o.xgridAttr[y]).style("opacity",()=>p.attr(l?"y1":"x1")===(l?o.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:r,scale:a,state:o,$el:{grid:s,main:i}}=t,l=r.axis_rotated,c=g=>a.y(g),d=e.y.getGeneratedTicks(r.grid_y_ticks)||t.scale.y.ticks(r.grid_y_ticks);s.y=i.select(`.${on.ygrids}`).selectAll(`.${on.ygrid}`).data(d),s.y.exit().remove(),s.y=s.y.enter().append("line").attr("class",on.ygrid).merge(s.y),s.y.attr("x1",l?c:0).attr("x2",l?c:o.width).attr("y1",l?0:c).attr("y2",l?o.height:c),Wu(s.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:r}}=t;!r.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:r,$el:{gridLines:a,main:o},$T:s}=e,i=r.axis_rotated,l=t==="x";r[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=o.select(`.${on[`${t}gridLines`]}`).selectAll(`.${on[`${t}gridLine`]}`).data(r[`grid_${t}_lines`]);s(c.exit()).style("opacity","0").remove();const d=c.enter().append("g");d.append("line").style("opacity","0"),c=d.merge(c),c.each(function(g){const p=st(this);p.select("text").empty()&&g.text&&p.append("text").style("opacity","0")}),s(c.attr("class",g=>`${on[`${t}gridLine`]} ${g.class||""}`.trim()).select("text").attr("text-anchor",Ex).attr("transform",()=>l?i?null:"rotate(-90)":i?"rotate(-90)":null).attr("dx",Ix).attr("dy",-5)).text(function(g){var p;return(p=g.text)!=null?p:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:r},state:{width:a,height:o},$el:{gridLines:s},$T:i}=e,l=e.xv.bind(e),c=e.yv.bind(e);let d=s.x.select("line"),g=s.x.select("text"),p=s.y.select("line"),y=s.y.select("text");return d=i(d,t).attr("x1",r?0:l).attr("x2",r?a:l).attr("y1",r?l:0).attr("y2",r?l:o),g=i(g,t).attr("x",Hu(!r,a,o)).attr("y",l),p=i(p,t).attr("x1",r?c:0).attr("x2",r?c:a).attr("y1",r?0:c).attr("y2",r?o:c),y=i(y,t).attr("x",Hu(r,a,o)).attr("y",c),[d.style("opacity",null),g.style("opacity",null),p.style("opacity",null),y.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:r},$el:a}=t,o=e.grid_front,s=`.${o&&a.gridLines.main?on.gridLines:Ee.chart}${o?" + *":""}`,i=a.main.insert("g",s).attr("clip-path",r.pathGrid).attr("class",on.grid);if(a.grid.main=i,e.grid_x_show&&i.append("g").attr("class",on.xgrids),e.grid_y_show&&i.append("g").attr("class",on.ygrids),e.axis_tooltip){const l=i.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&&(i.append("g").attr("class",qe.xgridFocus).append("line").attr("class",qe.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&i.append("g").attr("class",qe.ygridFocus).append("line").attr("class",qe.ygridFocus))},showAxisGridFocus(){var t,e;const r=this,{config:a,format:o,state:{event:s,width:i,height:l}}=r,c=a.axis_rotated,[d,g]=Zn(s,(t=r.$el.eventRect)==null?void 0:t.node()),p={x:d,y:g};for(const[y,A]of Object.entries(r.$el.axisTooltip)){const w=y==="x"&&!c||y!=="x"&&c?"x":"y",F=p[w];let N=(e=r.scale[y])==null?void 0:e.invert(F);N&&(N=y==="x"&&r.axis.isTimeSeries()?o.xAxisTick(N):N==null?void 0:N.toFixed(2),A==null||A.attr(w,F).text(N))}r.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(y,A){const w=st(this);A===0?w.attr("x1",d).attr("x2",d).attr("y1",A?0:l).attr("y2",A?l:0):w.attr("x1",A?0:i).attr("x2",A?i:0).attr("y1",g).attr("y2",g)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll(`line.${gn.axisTooltipX}, line.${gn.axisTooltipY}`).style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const r=this,{config:a,state:{width:o,height:s}}=r,i=a.axis_rotated,l=r.$el.main.selectAll(`line.${qe.xgridFocus}, line.${qe.ygridFocus}`),c=(t||[l.datum()]).filter(p=>p&&Ne(r.getBaseValue(p)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&r.hasType("bubble")||r.hasArcType())return;const d=a.grid_focus_edge&&!a.tooltip_grouped,g=r.xx.bind(r);l.style("visibility",null).data(c.concat(c)).each(function(p){const y=st(this),A={x:g(p),y:r.getYScaleById(p.id)(p.value)};let w;if(y.classed(qe.xgridFocus))w=i?[null,A.x,d?A.y:o,A.x]:[A.x,d?A.y:null,A.x,s];else{const F=r.axis.getId(p.id)==="y2";w=i?[A.y,d&&!F?A.x:null,A.y,d&&F?A.x:s]:[d&&F?A.x:null,A.y,d&&!F?A.x:o,A.y]}["x1","y1","x2","y2"].forEach((F,N)=>y.attr(F,w[N]))}),Wu(l,"grid"),(e=r.showCircleFocus)==null||e.call(r,t)},hideGridFocus(){var t;const e=this,{state:{inputType:r,resizing:a},$el:{main:o}}=e;(r==="mouse"||!a)&&(o.selectAll(`line.${qe.xgridFocus}, line.${qe.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:r,width:a,height:o,resizing:s},$el:{grid:i}}=e,l=i.main.select(`line.${qe.xgridFocus}`);if(r==="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:o)}return!0},generateGridData(t,e){const r=this,a=r.$el.main.select(`.${gn.axisX}`).selectAll(".tick").size();let o=[];if(t==="year"){const s=r.getXDomain(),[i,l]=s.map(c=>c.getFullYear());for(let c=i;c<=l;c++)o.push(new Date(`${c}-01-01 00:00:00`))}else o=e.ticks(10),o.length>a&&(o=o.filter(s=>String(s).indexOf(".")<0));return o},getGridFilterToRemove(t){return t?e=>{let r=!1;return(Xe(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(r=!0)}),r}:()=>!0},removeGridLines(t,e){const r=this,{config:a,$T:o}=r,s=r.getGridFilterToRemove(t),i=g=>!s(g),l=e?on.xgridLines:on.ygridLines,c=e?on.xgridLine:on.ygridLine;o(r.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(s)).style("opacity","0").remove();const d=`grid_${e?"x":"y"}_lines`;a[d]=a[d].filter(i)}},bx={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",Ia.regions)},updateRegion(){const t=this,{config:e,$el:{region:r},$T:a}=t;r.main||t.initRegion(),r.main.style("visibility",t.hasArcType()?"hidden":null);const o=r.main.selectAll(`.${Ia.region}`).data(e.regions);a(o.exit()).style("opacity","0").remove();const s=o.enter().append("g");s.append("rect").style("fill-opacity","0"),r.list=s.merge(o).attr("class",t.classRegion.bind(t)),r.list.each(function(i){var l;st(this).select("text").empty()&&((l=i.label)!=null&&l.text)&&st(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:r},$T:a}=e,o=e.regionX.bind(e),s=e.regionY.bind(e),i=["width","height"];let l=r.list.select("rect"),c=r.list.selectAll("text");return l=a(l,t).attr("x",o).attr("y",s).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),c=a(c,t).text(d=>{var g;return(g=d.label)==null?void 0:g.text}).attr("transform",({label:d})=>d.rotated?" rotate(-90)":null).attr("transform",function(d){var g;const{x:p=0,y=0,center:A=!1,rotated:w=!1}=(g=d.label)!=null?g:{},F=this.previousElementSibling,N={x:0,y:0};return je(A)&&["x","y"].forEach((D,K)=>{A.indexOf(D)>-1&&(N[D]=(+F.getAttribute(i[K])-Sn(this)[i[K]])/2)}),`translate(${o(d)+N.x+p}, ${s(d)+N.y+y})${w?" rotate(-90)":""}`}).attr("text-anchor",({label:d})=>d!=null&&d.rotated?"end":null).attr("dy","1em").style("fill",({label:d})=>{var g;return(g=d==null?void 0:d.color)!=null?g:null}),[l.style("fill-opacity",d=>Ne(d.opacity)?d.opacity:null).on("end",function(){st(this.parentNode).selectAll("rect:not([x])").remove()}),c.style("opacity",null)]},regionX(t){return this.getRegionSize("x",t)},regionY(t){return this.getRegionSize("y",t)},regionWidth(t){return this.getRegionSize("width",t)},regionHeight(t){return this.getRegionSize("height",t)},getRegionSize(t,e){const r=this,{config:a,scale:o,state:s}=r,i=a.axis_rotated,l=/(x|y|y2)/.test(t),c=l?t==="x":t==="width",d=!l&&r[c?"regionX":"regionY"](e);let g=l?"start":"end",p=l?0:s[t],y;if(e.axis==="y"||e.axis==="y2"?(!l&&!c?g="start":l&&!c&&(g="end"),(c?i:!i)&&g in e&&(y=o[e.axis])):(c?!i:i)&&g in e&&(y=o.zoom||o.x),y){let A=0;p=e[g],r.axis.isTimeSeries(e.axis)?p=Jn.call(r,p):/(x|width)/.test(t)&&r.axis.isCategorized()&&isNaN(p)&&(p=a.axis_x_categories.indexOf(p),A=r.axis.x.tickOffset()*(g==="start"?-1:1)),p=y(p)+A}return l?p:p<d?0:p-d},isRegionOnX(t){return!t.axis||t.axis==="x"}},Ox={getAxisSize(t){const e=this,r=e.config.axis_rotated;return r&&t==="x"||!r&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId(t,e){var r,a;const o=this;if(o.axis){const s=(r=o.axis)==null?void 0:r.getLabelPositionById(t),{width:i}=o.axis.getMaxTickSize(t,e),l=i===0?.5:0;return i+(((a=o.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,r;const a=this,{config:o,state:s}=a,{rotatedPadding:i,isLegendRight:l,isLegendInset:c}=s,d=o.axis_rotated,g=((e=o.padding)==null?void 0:e.mode)==="fit",p=o[`axis_${t}_inner`],y=o[`axis_${t}_label`].text,A=13;let w=((r=o.padding)==null?void 0:r.mode)==="fit"?p&&!y?t==="y"?1:0:20:30;if(t==="x"&&!o.axis_x_show)return 8;if(t==="x"&&ye(o.axis_x_height))return o.axis_x_height;if(t==="y"&&!o.axis_y_show)return o.legend_show&&!l&&!c?10:1;if(t==="y2"&&!o.axis_y2_show)return g?0:i.top;const F=a.axis.getMaxTickSize(t),N=Math.abs(o.axis_x_tick_rotate)>0&&(!o.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(o.axis_x_tick_multiline||N)&&F.height>A&&(w+=F.height-A),w+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!d?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:r}=t,a=e.axis_x_inverted,o=r.x.tickInterval();return Math.max(0,a?Math.abs(o):o)},getAxisTickRotate(t){const e=this,{axis:r,config:a,state:o,$el:s}=e;let i=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=r.isCategorized()||r.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,d=o.current.maxTickSize.x.ticks.length;let g=0;if(c?g=c>d?d:c:d&&(g=d),g!==o.axis.x.tickCount){const{targets:p}=e.data;o.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(p,"min"),e.getXDomainMinMax(p,"max")],g)}o.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&&(i=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return i},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:r,isLegendRight:a,legendItemWidth:o}}=t,s=a&&o,i=r.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"),d=l?i/l:0;return c>d}},Cx={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_culling_reverse:!1,axis_x_tick_count:void 0,axis_x_tick_inner:!1,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:[]},Px={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_culling_reverse:!1,axis_y_tick_inner:!1,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:[]},Mx={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_culling_reverse:!1,axis_y2_tick_inner:!1,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:[]},wx=Object.defineProperty,Yu=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,Ku=(t,e,r)=>e in t?wx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ei=(t,e)=>{for(var r in e||(e={}))Dx.call(e,r)&&Ku(t,r,e[r]);if(Yu)for(var r of Yu(e))Nx.call(e,r)&&Ku(t,r,e[r]);return t},Lx=Ei(Ei(Ei({axis_evalTextSize:!0,axis_rotated:!1,axis_tooltip:!1},Cx),Px),Mx),Fx={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},Bx={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Ux=[Jy,Qy,ky,qy,_y,tx,ex],Zu={axis:yx,clip:Ax,eventrect:Tx,flow:$x,grid:Rx,region:bx,sizeAxis:Ox},Ju={optDataAxis:Bx,optAxis:Lx,optGrid:Fx};var MT=Array.prototype.slice;function Ii(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Fe(t){return function(){return t}}function zx(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function jx(t){return t}function Gx(){var t=jx,e=zx,r=null,a=Fe(0),o=Fe(Xo),s=Fe(0);function i(l){var c,d=(l=Ii(l)).length,g,p,y=0,A=new Array(d),w=new Array(d),F=+a.apply(this,arguments),N=Math.min(Xo,Math.max(-Xo,o.apply(this,arguments)-F)),D,K=Math.min(Math.abs(N)/d,s.apply(this,arguments)),J=K*(N<0?-1:1),W;for(c=0;c<d;++c)(W=w[A[c]=c]=+t(l[c],c,l))>0&&(y+=W);for(e!=null?A.sort(function(rt,Q){return e(w[rt],w[Q])}):r!=null&&A.sort(function(rt,Q){return r(l[rt],l[Q])}),c=0,p=y?(N-d*J)/y:0;c<d;++c,F=D)g=A[c],W=w[g],D=F+(W>0?W*p:0)+J,w[g]={data:l[g],index:c,value:W,startAngle:F,endAngle:D,padAngle:K};return w}return i.value=function(l){return arguments.length?(t=typeof l=="function"?l:Fe(+l),i):t},i.sortValues=function(l){return arguments.length?(e=l,r=null,i):e},i.sort=function(l){return arguments.length?(r=l,e=null,i):r},i.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Fe(+l),i):a},i.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:Fe(+l),i):o},i.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Fe(+l),i):s},i}var Vx=Math.pow;const Ri=Math.PI,bi=2*Ri,Hr=1e-6,Xx=bi-Hr;function Qu(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function Hx(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Qu;const r=Vx(10,e);return function(a){this._+=a[0];for(let o=1,s=a.length;o<s;++o)this._+=Math.round(arguments[o]*r)/r+a[o]}}class ko{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Qu:Hx(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,a,o){this._append`Q${+e},${+r},${this._x1=+a},${this._y1=+o}`}bezierCurveTo(e,r,a,o,s,i){this._append`C${+e},${+r},${+a},${+o},${this._x1=+s},${this._y1=+i}`}arcTo(e,r,a,o,s){if(e=+e,r=+r,a=+a,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let i=this._x1,l=this._y1,c=a-e,d=o-r,g=i-e,p=l-r,y=g*g+p*p;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(y>Hr)if(!(Math.abs(p*c-d*g)>Hr)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let A=a-i,w=o-l,F=c*c+d*d,N=A*A+w*w,D=Math.sqrt(F),K=Math.sqrt(y),J=s*Math.tan((Ri-Math.acos((F+y-N)/(2*D*K)))/2),W=J/K,rt=J/D;Math.abs(W-1)>Hr&&this._append`L${e+W*g},${r+W*p}`,this._append`A${s},${s},0,0,${+(p*A>g*w)},${this._x1=e+rt*c},${this._y1=r+rt*d}`}}arc(e,r,a,o,s,i){if(e=+e,r=+r,a=+a,i=!!i,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(o),c=a*Math.sin(o),d=e+l,g=r+c,p=1^i,y=i?o-s:s-o;this._x1===null?this._append`M${d},${g}`:(Math.abs(this._x1-d)>Hr||Math.abs(this._y1-g)>Hr)&&this._append`L${d},${g}`,a&&(y<0&&(y=y%bi+bi),y>Xx?this._append`A${a},${a},0,1,${p},${e-l},${r-c}A${a},${a},0,1,${p},${this._x1=d},${this._y1=g}`:y>Hr&&this._append`A${a},${a},0,${+(y>=Ri)},${p},${this._x1=e+a*Math.cos(s)},${this._y1=r+a*Math.sin(s)}`)}rect(e,r,a,o){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${a=+a}v${+o}h${-a}Z`}toString(){return this._}}function Wx(){return new ko}Wx.prototype=ko.prototype;function wT(t=3){return new ko(+t)}function Oi(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const a=Math.floor(r);if(!(a>=0))throw new RangeError(`invalid digits: ${r}`);e=a}return t},()=>new ko(e)}function Yx(t){return t.innerRadius}function Kx(t){return t.outerRadius}function Zx(t){return t.startAngle}function Jx(t){return t.endAngle}function Qx(t){return t&&t.padAngle}function kx(t,e,r,a,o,s,i,l){var c=r-t,d=a-e,g=i-o,p=l-s,y=p*c-g*d;if(!(y*y<Cn))return y=(g*(e-s)-p*(t-o))/y,[t+y*c,e+y*d]}function qo(t,e,r,a,o,s,i){var l=t-r,c=e-a,d=(i?s:-s)/ua(l*l+c*c),g=d*c,p=-d*l,y=t+g,A=e+p,w=r+g,F=a+p,N=(y+w)/2,D=(A+F)/2,K=w-y,J=F-A,W=K*K+J*J,rt=o-s,Q=y*F-w*A,ot=(J<0?-1:1)*ua(Vm(0,rt*rt*W-Q*Q)),vt=(Q*J-K*ot)/W,$t=(-Q*K-J*ot)/W,Tt=(Q*J+K*ot)/W,yt=(-Q*K+J*ot)/W,Rt=vt-N,xt=$t-D,q=Tt-N,Et=yt-D;return Rt*Rt+xt*xt>q*q+Et*Et&&(vt=Tt,$t=yt),{cx:vt,cy:$t,x01:-g,y01:-p,x11:vt*(o/rt-1),y11:$t*(o/rt-1)}}function ku(){var t=Yx,e=Kx,r=Fe(0),a=null,o=Zx,s=Jx,i=Qx,l=null,c=Oi(d);function d(){var g,p,y=+t.apply(this,arguments),A=+e.apply(this,arguments),w=o.apply(this,arguments)-Vo,F=s.apply(this,arguments)-Vo,N=su(F-w),D=F>w;if(l||(l=g=c()),A<y&&(p=A,A=y,y=p),!(A>Cn))l.moveTo(0,0);else if(N>Xo-Cn)l.moveTo(A*Vr(w),A*or(w)),l.arc(0,0,A,w,F,!D),y>Cn&&(l.moveTo(y*Vr(F),y*or(F)),l.arc(0,0,y,F,w,D));else{var K=w,J=F,W=w,rt=F,Q=N,ot=N,vt=i.apply(this,arguments)/2,$t=vt>Cn&&(a?+a.apply(this,arguments):ua(y*y+A*A)),Tt=pi(su(A-y)/2,+r.apply(this,arguments)),yt=Tt,Rt=Tt,xt,q;if($t>Cn){var Et=iu($t/y*or(vt)),dt=iu($t/A*or(vt));(Q-=Et*2)>Cn?(Et*=D?1:-1,W+=Et,rt-=Et):(Q=0,W=rt=(w+F)/2),(ot-=dt*2)>Cn?(dt*=D?1:-1,K+=dt,J-=dt):(ot=0,K=J=(w+F)/2)}var bt=A*Vr(K),kt=A*or(K),Ht=y*Vr(rt),Kt=y*or(rt);if(Tt>Cn){var ie=A*Vr(J),he=A*or(J),Oe=y*Vr(W),Me=y*or(W),we;if(N<za)if(we=kx(bt,kt,Oe,Me,ie,he,Ht,Kt)){var Ke=bt-we[0],Ue=kt-we[1],hn=ie-we[0],ee=he-we[1],$e=1/or(Xm((Ke*hn+Ue*ee)/(ua(Ke*Ke+Ue*Ue)*ua(hn*hn+ee*ee)))/2),Ce=ua(we[0]*we[0]+we[1]*we[1]);yt=pi(Tt,(y-Ce)/($e-1)),Rt=pi(Tt,(A-Ce)/($e+1))}else yt=Rt=0}ot>Cn?Rt>Cn?(xt=qo(Oe,Me,bt,kt,A,Rt,D),q=qo(ie,he,Ht,Kt,A,Rt,D),l.moveTo(xt.cx+xt.x01,xt.cy+xt.y01),Rt<Tt?l.arc(xt.cx,xt.cy,Rt,On(xt.y01,xt.x01),On(q.y01,q.x01),!D):(l.arc(xt.cx,xt.cy,Rt,On(xt.y01,xt.x01),On(xt.y11,xt.x11),!D),l.arc(0,0,A,On(xt.cy+xt.y11,xt.cx+xt.x11),On(q.cy+q.y11,q.cx+q.x11),!D),l.arc(q.cx,q.cy,Rt,On(q.y11,q.x11),On(q.y01,q.x01),!D))):(l.moveTo(bt,kt),l.arc(0,0,A,K,J,!D)):l.moveTo(bt,kt),!(y>Cn)||!(Q>Cn)?l.lineTo(Ht,Kt):yt>Cn?(xt=qo(Ht,Kt,ie,he,y,-yt,D),q=qo(bt,kt,Oe,Me,y,-yt,D),l.lineTo(xt.cx+xt.x01,xt.cy+xt.y01),yt<Tt?l.arc(xt.cx,xt.cy,yt,On(xt.y01,xt.x01),On(q.y01,q.x01),!D):(l.arc(xt.cx,xt.cy,yt,On(xt.y01,xt.x01),On(xt.y11,xt.x11),!D),l.arc(0,0,y,On(xt.cy+xt.y11,xt.cx+xt.x11),On(q.cy+q.y11,q.cx+q.x11),D),l.arc(q.cx,q.cy,yt,On(q.y11,q.x11),On(q.y01,q.x01),!D))):l.arc(0,0,y,rt,W,D)}if(l.closePath(),g)return l=null,g+""||null}return d.centroid=function(){var g=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,p=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-za/2;return[Vr(p)*g,or(p)*g]},d.innerRadius=function(g){return arguments.length?(t=typeof g=="function"?g:Fe(+g),d):t},d.outerRadius=function(g){return arguments.length?(e=typeof g=="function"?g:Fe(+g),d):e},d.cornerRadius=function(g){return arguments.length?(r=typeof g=="function"?g:Fe(+g),d):r},d.padRadius=function(g){return arguments.length?(a=g==null?null:typeof g=="function"?g:Fe(+g),d):a},d.startAngle=function(g){return arguments.length?(o=typeof g=="function"?g:Fe(+g),d):o},d.endAngle=function(g){return arguments.length?(s=typeof g=="function"?g:Fe(+g),d):s},d.padAngle=function(g){return arguments.length?(i=typeof g=="function"?g:Fe(+g),d):i},d.context=function(g){return arguments.length?(l=g==null?null:g,d):l},d}const qx=15,qu=20,_u=.35;function _x(t=!1){const e=this;return["donut","pie","polar","gauge"].find(r=>e.hasType(r)&&!(r==="gauge"&&t&&e.hasMultiArcGauge()))}function tf(){const t=this,{config:e}=t,r=_x.call(t,!0),a=r&&e[`${r}_label_line`],o=Gn(a),s=(c,d,g)=>g,i={show:a===!0||o&&(a==null?void 0:a.show)!==!1,distance:o&&(a==null?void 0:a.distance)||qu};if(a===!0)return{chartType:r,line:i,text:{formatter:s}};if(!o)return{chartType:r,line:{show:!1,distance:qu},text:{formatter:null}};let l=s;return de(a.text)?l=a.text:a.text===!1&&(l=null),{chartType:r,line:i,text:{formatter:l}}}function t0(t,e){const r=this,{state:a}=r,o=r.updateAngle(t);if(!o)return null;let{outerRadius:s}=r.getRadius(t),i=s;r.hasType("polar")&&(i=r.getPolarOuterRadius(t,s),s=a.radius);let l=(o.startAngle+o.endAngle)/2;Math.abs(o.endAngle-o.startAngle-2*Math.PI)<.01&&(l=Math.PI/2);const d=Math.sin(l),g=-Math.cos(l),p={x:d*i,y:g*i},y=s+qx,A={x:d*y,y:g*y},w=d>=0,F={x:A.x+e*(w?1:-1),y:A.y};return{startPoint:p,breakPoint:A,endPoint:F,isRight:w,midAngle:l}}function ef(){return tf.call(this).line.show}function e0(t){const e=this,{$el:{arcs:r},$T:a}=e,{line:o,text:s}=tf.call(e),i=o.distance;let l=null;r.selectAll(`.${Le.chartArc}`).each(function(c){var d,g,p;const y=st(this),A=t0.call(e,c,i),{ratio:w,meetsThreshold:F,updated:N}=(d=c._cache)!=null?d:{};if(!N||!A)return;const D=e.isTargetToShow(c.data.id)&&F,{startPoint:K,breakPoint:J,endPoint:W,isRight:rt}=A,Q=`${K.x},${K.y} ${J.x},${J.y} ${W.x},${W.y}`;if(o.show){let vt=y.select(`.${Le.arcLabelLine}`);vt.empty()&&(vt=y.append("polyline").attr("class",Le.arcLabelLine)),a(vt,t).attr("points",Q).style("stroke",e.color(c.data)).style("opacity",D?null:"0")}let ot=y.select(`.${Le.arcLabelLineText}`);if(ot.empty()&&(ot=y.append("text").attr("class",Le.arcLabelLineText).style("pointer-events","none")),D){const{value:vt}=N,{id:$t}=c.data,Tt=((p=(g=s.formatter)!=null?g:e.getArcLabelConfig("format"))!=null?p:e.defaultArcValueFormat)(vt,w,$t).toString();aa(ot,Tt,[-1,1],!1);const yt={x:W.x+5*(rt?1:-1),y:W.y};ot.style("text-anchor",rt?"start":"end");const Rt=ot.node(),xt=Rt==null?void 0:Rt.querySelectorAll("tspan");if(l===null&&(l=parseFloat(ze.getComputedStyle(Rt).fontSize)||12),xt&&xt.length>1){const Et=(xt.length-3)/2;yt.y+=(-Et+_u)*l}else yt.y+=_u*l;a(ot,t).attr("transform",`translate(${yt.x},${yt.y})`).style("opacity",null).style("fill",e.updateTextColor.bind(e)(c))}else a(ot,t).style("opacity","0")})}var n0=Object.defineProperty,r0=Object.defineProperties,a0=Object.getOwnPropertyDescriptors,nf=Object.getOwnPropertySymbols,o0=Object.prototype.hasOwnProperty,s0=Object.prototype.propertyIsEnumerable,rf=(t,e,r)=>e in t?n0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,i0=(t,e)=>{for(var r in e||(e={}))o0.call(e,r)&&rf(t,r,e[r]);if(nf)for(var r of nf(e))s0.call(e,r)&&rf(t,r,e[r]);return t},l0=(t,e)=>r0(t,a0(e));function c0(t){return["donut","pie","polar","gauge"].find(e=>t.hasType(e))}function u0(t,e,r,a){var o,s;const{config:i,state:{radiusExpanded:l}}=t,c=r.endAngle-Math.PI/2,d=Math.sin(c),g={x:Math.cos(c)*(l+(a?5:25)),y:d*(l+15-Math.abs(d*10))+3};if(a){const p=i.arc_rangeText_position;if(p){const y=i.arc_rangeText_values,A=de(p)?p(y[e.index]):p;g.x+=(o=A==null?void 0:A.x)!=null?o:0,g.y+=(s=A==null?void 0:A.y)!=null?s:0}}return g}function f0(t,e,r,a){const{config:o}=t,s=c0(t);let i=s?o[`${s}_label_ratio`]:void 0;if(i)i=de(i)?i.bind(t.api)(e,r,a):i;else{const p=36/r,y=p>.375;i=r&&a?(y?1.175-p:.8)*r/a:0}return i}function d0(t,e,r){let{outerRadius:a}=t.getRadius(e);t.hasType("polar")&&(a=t.getPolarOuterRadius(e,a));const[o,s]=t.svgArc.centroid(r).map(c=>isNaN(c)?0:c),i=Math.sqrt(o*o+s*s),l=f0(t,e,a,i);return{pos:{x:o,y:s},ratio:l}}function af(t=0){const e=this,{config:r,state:a}=e,o=e.hasMultiArcGauge(),s=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,i=t?Math.min(a.radiusExpanded*t-a.radius,s*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return o?a.radius-s*(l.index+1):ye(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let d;if(o)d=a.radius-s*l.index+i;else if(e.hasType("polar")&&!t)d=e.getPolarOuterRadius(l,c);else if(d=c,t){let{radiusExpanded:g}=a;a.radius!==c&&(g-=Math.abs(a.radius-c)),d=g*t}return d},corner(l,c){const{arc_cornerRadius_ratio:d=0,arc_cornerRadius:g=0}=r,{data:{id:p},value:y}=l;let A=0;return d?A=d*c:A=ye(g)?g:g.call(e.api,p,y,c),A}}}function Ci(t){return function(e){const r=({startAngle:o=0,endAngle:s=0,padAngle:i=0})=>({startAngle:o,endAngle:s,padAngle:i}),a=qr(r(this._current),r(e));return this._current=e,function(o){const s=a(o),{data:i,index:l,value:c}=e;return t(l0(i0({},s),{data:i,index:l,value:c}))}}}var h0={initPie(){const t=this,{config:e}=t,r=e.data_type,a=e[`${r}_padding`],o=e[`${r}_startingAngle`]||0,s=(a?a*.01:e[`${r}_padAngle`])||0;t.pie=Gx().startAngle(o).endAngle(o+2*Math.PI).padAngle(s).value(i=>{var l,c;return(c=(l=i.values)==null?void 0:l.reduce((d,g)=>d+g.value,0))!=null?c:i}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:r}=t,a=e.data_type,o=e[`${a}_padding`],s=e.gauge_width||e.donut_width,i=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth,l=.85,c=ef.call(t)?l:1;r.radiusExpanded=Math.min(r.arcWidth,r.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?l:c),r.radius=r.radiusExpanded*.95,r.innerRadiusRatio=s?(r.radius-s)/r.radius:.6,r.gaugeArcWidth=s||(i<=r.radius-r.innerRadius?r.radius-r.innerRadius:i<=r.radius?i:r.radius);const d=e.pie_innerRadius||(o?o*(r.innerRadiusRatio+.1):0);r.outerRadius=e.pie_outerRadius,r.innerRadius=t.hasType("donut")||t.hasType("gauge")?r.radius*r.innerRadiusRatio:d},getRadius(t){const e=this,r=t==null?void 0:t.data;let{innerRadius:a,outerRadius:o}=e.state;return!ye(a)&&r&&(a=a[r.id]||0),Ge(o)&&r&&r.id in o?o=o[r.id]:ye(o)||(o=e.state.radius),{innerRadius:a,outerRadius:o}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,r=e.gauge_arcLength*3.6;let a=2*(r/360);return r<-360?a=-2:r>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,r=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,o=-1*Math.PI/2,s=Math.PI/2;let i=e[`${r}_startingAngle`]||0;return!a&&i<=o?i=o:!a&&i>=s?i=s:(i>Math.PI||i<-1*Math.PI)&&(i=Math.PI),i},updateAngle(t,e=!1){var r;const a=this,{config:o,state:s}=a,i=e&&a.hasType("gauge");let{pie:l}=a,c=t,d=!1;if(!o)return null;const g=a.getStartingAngle(),p=o.gauge_fullCircle||e&&!i?a.getArcLength():g*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:y,gauge_max:A}=o,w=a.getTotalDataSum(s.rendered),F=p*((w-y)/(A-y));l=l.startAngle(g).endAngle(F+g)}if(e===!1&&l(a.filterTargetsToShow()).forEach((y,A)=>{var w;!d&&y.data.id===((w=c.data)==null?void 0:w.id)&&(d=!0,c=y,c.index=A)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(o.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:y,gauge_max:A}=o,w=e&&!i?a.getTotalDataSum(s.rendered):A,F=p/(w-y),N=(r=c.value)!=null?r:0,D=N<y?0:N<w?N-y:w-y;c.startAngle=g,c.endAngle=g+F*D}return d||e?c:null},getSvgArc(){const t=this,{inner:e,outer:r,corner:a}=af.call(t),o=ku().innerRadius(e).outerRadius(r),s=function(i,l){var c;let d="M 0 0";if(i.value||i.data){const g=l?i:(c=t.updateAngle(i))!=null?c:null;g&&(d=o.cornerRadius(a(g,r(g)))(g))}return d};return s.centroid=o.centroid,s},getSvgArcExpanded(t=1){const e=this,{inner:r,outer:a,corner:o}=af.call(e,t),s=ku().innerRadius(r).outerRadius(a);return i=>{const l=e.updateAngle(i),c=a(l);let d=0;return l&&(d=o(l,c)),l?s.cornerRadius(d)(l):"M 0 0"}},getArc(t,e,r){return r||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:r},state:a,$T:o}=t,s=e.arc_rangeText_format,i=t.hasType("gauge")&&e.arc_rangeText_fixed;let l=e.arc_rangeText_values;if(l!=null&&l.length){const c=e.arc_rangeText_unit==="%",d=t.getTotalDataSum(a.rendered);c&&(l=l.map(y=>d/100*y));const g=t.pie(l).map((y,A)=>(y.index=A,y));let p=r.selectAll(`.${Le.arcRange}`).data(l);p.exit(),p=o(p.enter().append("text").attr("class",Le.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(y=>{const A=c?y/d*100:y;return de(s)?s(A):`${A}${c?"%":""}`}).merge(p)),(!a.rendered||a.rendered&&!i)&&d>0&&p.attr("transform",function(y,A){return t.transformForArcLabel(this,g[A],!0)}),p.style("opacity",y=>!i&&(y>d||d===0)?"0":null)}},transformForArcLabel(t,e,r=!1){const a=this,o=a.updateAngle(e,r);if(!o)return"";let s,i=1;if(r||a.hasMultiArcGauge())s=u0(a,e,o,r);else if(!a.hasType("gauge")||a.data.targets.length>1){const l=d0(a,e,o);s=l.pos,i=l.ratio}else return"";return eu.call(a,t,s),`translate(${s.x*i},${s.y*i})`},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){var e;const r=this,a=r.hasType("gauge"),o=(e=["donut","gauge","pie","polar"].filter(r.hasType.bind(r)))==null?void 0:e[0];r.shouldShowArcLabel()&&t.style("fill",r.updateTextColor.bind(r)).attr("filter",s=>r.updateTextBGColor.bind(r)(s,r.config.data_labels_backgroundColors)).each(function(s){const i=st(this),l=r.updateAngle(s),c=r.getRatio("arc",l),d=di.call(r,c,o);if(s._cache={updated:l,ratio:c,meetsThreshold:d},d){const{value:g}=l||s,p=(r.getArcLabelConfig("format")||r.defaultArcValueFormat)(g,c,s.data.id).toString();aa(i,p,[-1,1],a)}else i.text("")})},expandArc(t){const e=this,{state:{transiting:r},$el:a}=e;if(r){const s=setInterval(()=>{r||(clearInterval(s),a.legend.selectAll(`.${qe.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const o=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(o,`.${Le.chartArc}`)).each(function(s){if(!e.shouldExpand(s.data.id))return;const i=e.getExpandConfig(s.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(s.data.id,"rate"));st(this).selectAll("path").transition().duration(i).attrTween("d",Ci(e.svgArcExpanded.bind(e))).transition().duration(i*2).attrTween("d",Ci(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:r},$el:{svg:a}}=e;if(r)return;const o=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(o,`.${Le.chartArc}`)).selectAll("path").transition().duration(s=>e.getExpandConfig(s.data.id,"duration")).attrTween("d",Ci(e.svgArc.bind(e))),a.selectAll(`${Le.arc}`).style("opacity",null)},getExpandConfig(t,e){const r=this,{config:a}=r,o={duration:50,rate:.98};let s;return r.isDonutType(t)?s="donut":r.isGaugeType(t)?s="gauge":r.isPieType(t)&&(s="pie"),s?a[`${s}_expand_${e}`]:o[e]},shouldExpand(t){const e=this,{config:r}=e;return e.isDonutType(t)&&r.donut_expand||e.isGaugeType(t)&&r.gauge_expand||e.isPieType(t)&&r.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(r=>t.hasType(r)&&e[`${r}_label_show`])},getArcLabelConfig(t="format"){const e=this,{config:r}=e;let a=o=>o;return["donut","gauge","pie","polar"].filter(e.hasType.bind(e)).forEach(o=>{a=r[`${o}_label_${t}`]}),t==="format"&&de(a)?a.bind(e.api):a},updateTargetsForArc(t){const e=this,{$el:r}=e,a=e.hasType("gauge"),o=e.getChartClass("Arc"),s=e.getClass("arcs",!0),i=e.classFocus.bind(e),l=r.main.select(`.${Le.chartArcs}`),c=l.selectAll(`.${Le.chartArc}`).data(e.pie(t)).attr("class",g=>o(g)+i(g.data)),d=c.enter().append("g").attr("class",o).call(this.setCssRule(!1,`.${Le.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));d.append("g").attr("class",s).merge(c),d.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":null).style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),r.text=l.selectAll(`.${Ee.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Ee.chart}`).append("g").attr("class",Le.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,r=t||e.getArcTitle(),a=e.hasType("gauge");if(r){const o=a?jn.chartArcsGaugeTitle:Le.chartArcsTitle;let s=e.$el.arcs.select(`.${o}`);s.empty()&&(s=e.$el.arcs.append("text").attr("class",o).style("text-anchor","middle")),a&&s.attr("dy","-0.3em"),aa(s,r,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:r}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let o=r.current.needle;return ye(o)||(o=e.arc_needle_value),La(a,{NEEDLE_VALUE:~~o})}return!1},redrawArc(t,e,r){const a=this,{config:o,state:s,$el:{main:i}}=a,l=o.interaction_enabled,c=l&&o.data_selection_isselectable;let d=i.selectAll(`.${Le.arcs}`).selectAll(`.${Le.arc}`).data(a.arcData.bind(a));d.exit().transition().duration(e).style("opacity","0").remove(),d=d.enter().append("path").attr("class",a.getClass("arc",!0)).style("fill",g=>a.color(g.data)).style("cursor",g=>{var p;return(p=c==null?void 0:c.bind)!=null&&p.call(c,a.api)(g)?"pointer":null}).style("opacity","0").each(function(g){a.isGaugeType(g.data)&&(g.startAngle=o.gauge_startingAngle,g.endAngle=o.gauge_startingAngle),this._current=g}).merge(d),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),d.attr("transform",g=>!a.isGaugeType(g.data)&&r?"scale(0)":"").style("opacity",function(g){return g===this._current?"0":null}).each(()=>{s.transiting=!0}).transition().duration(t).attrTween("d",function(g){const p=a.updateAngle(g);if(!p)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const y=qr(this._current,p);return this._current=y(0),function(A){const w=y(A);return w.data=g.data,a.getArc(w,!0)}}).attr("transform",r?"scale(1)":"").style("fill",g=>{let p;return a.levelColor?(p=a.levelColor(g.data.values[0].value),o.data_colors[g.data.id]=p):p=a.color(g.data),p}).style("opacity",null).call(Ro,function(){if(a.levelColor){const g=st(this),p=g.datum(this._current);a.updateLegendItemColor(p.data.id,g.style("fill"))}s.transiting=!1,_e(o.onrendered,a.api)}),l&&a.bindArcEvent(d),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),o.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:r,state:{hiddenTargetIds:a,radius:o}}=t,s=(o-1)/100*r.arc_needle_length,i=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${Le.needle}`);const c=r.arc_needle_path,d=r.arc_needle_bottom_width/2,g=r.arc_needle_top_width/2,p=r.arc_needle_top_rx,y=r.arc_needle_top_ry,A=r.arc_needle_bottom_len,w=r.arc_needle_bottom_rx,F=r.arc_needle_bottom_ry,N=t.getNeedleAngle(),D=()=>{const K=t.getArcTitleWithNeedleValue();K&&t.setArcTitle(K)};if(D(),l.empty()&&(l=e.arcs.append("path").classed(Le.needle,!0),e.needle=l,e.needle.updateHelper=(K,J=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(K)}deg)`).call(Ro,()=>{J&&(r.arc_needle_value=K),D()})}),i){const K=de(c)?c.call(t,s):`M-${d} ${A} A${w} ${F} 0 0 0 ${d} ${A} L${g} -${s} A${p} ${y} 0 0 0 -${g} -${s} L-${d} ${A} Z`;t.$T(l).attr("d",K).style("fill",r.arc_needle_color).style("display",null).style("transform",`rotate(${N}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:r,state:a}=e,o=e.getArcLength(),s=e.hasType("gauge"),i=e.getTotalDataSum(!0);let l=Qe(t)?t:r.arc_needle_value,c=r[`${r.data_type}_startingAngle`]||0,d=0;if(ye(l)||(l=s&&e.data.targets.length===1?i:0),a.current.needle=l,s){c=e.getStartingAngle();const g=r.gauge_fullCircle?o:c*-2,{gauge_min:p,gauge_max:y}=r;d=g*((l-p)/(y-p))}else d=o*(l/i);return(c+d)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:r}=t,a=t.hasMultiArcGauge(),o=e.gauge_fullCircle,s=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,i=t.getStartingAngle(),l=o?i+t.getArcLength():i*-1;let c=t.$el.arcs.select(`${a?"g":""}.${Le.chartArcsBackground}`);if(a){let d=0;c=c.selectAll(`path.${Le.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(g,p)=>`${Le.chartArcsBackground} ${Le.chartArcsBackground}-${p}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:g})=>{if(s||r.hiddenTargetIds.indexOf(g)>=0)return"M 0 0";const p={data:[{value:e.gauge_max}],startAngle:i,endAngle:l,index:d++};return t.getArc(p,!0,!0)}),c.exit().remove()}else c.attr("d",s?"M 0 0":()=>{const d={data:[{value:e.gauge_max}],startAngle:i,endAngle:l};return t.getArc(d,!0,!0)})},bindArcEvent(t){const e=this,{config:r,state:a}=e,o=a.inputType==="touch",s=a.inputType==="mouse";function i(c,d,g){e.expandArc(g),e.api.focus(g),e.toggleFocusLegend(g,!0),e.showTooltip([d],c)}function l(c){const d=(c==null?void 0:c.id)||void 0;e.unexpandArc(d),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(c,d,g){var p;const y=e.updateAngle(d);let A;y&&(A=e.convertToArcData(y),(p=e.toggleShape)==null||p.call(e,this,A,g),r.data_onclick.bind(e.api)(A,this))}),s&&t.on("mouseover",function(c,d){if(a.transiting)return;a.event=c;const g=e.updateAngle(d),p=g?e.convertToArcData(g):null,y=(p==null?void 0:p.id)||void 0;i(this,p,y),e.setOverOut(!0,p)}).on("mouseout",(c,d)=>{if(a.transiting||!r.interaction_onout)return;a.event=c;const g=e.updateAngle(d),p=g?e.convertToArcData(g):null;l(),e.setOverOut(!1,p)}).on("mousemove",function(c,d){const g=e.updateAngle(d),p=g?e.convertToArcData(g):null;a.event=c,e.showTooltip([p],this)}),o&&e.hasArcType()&&!e.radars){const c=d=>{var g,p;const{clientX:y,clientY:A}=(p=(g=d.changedTouches)==null?void 0:g[0])!=null?p:{clientX:0,clientY:0};return st(mn.elementFromPoint(y,A))};e.$el.svg.on("touchstart touchmove",function(d){if(a.transiting)return;a.event=d;const p=c(d).datum(),y=p!=null&&p.data&&p.data.id?e.updateAngle(p):null,A=y?e.convertToArcData(y):null,w=(A==null?void 0:A.id)||void 0;e.callOverOutForTouch(A),ln(w)?l():i(this,A,w)},{passive:!0})}},redrawArcText(t){const e=this,{config:r,state:a,$el:{main:o,arcs:s}}=e,i=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(i&&e.data.targets.length===1&&r.gauge_title||(c=o.selectAll(`.${Le.chartArc}`).select("text").style("opacity","0").attr("class",d=>e.isGaugeType(d.data)?jn.gaugeValue:null).call(e.textForArcLabel.bind(e)).style("font-size",d=>e.isGaugeType(d.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null),tu.call(e),c.attr("transform",function(d){return e.transformForArcLabel.bind(e)(this,d)}).transition().duration(t).style("opacity",d=>e.isTargetToShow(d.data.id)&&e.isArcType(d.data)?null:"0"),l&&c.attr("dy","-.1em")),o.select(`.${Le.chartArcsTitle}`).style("opacity",e.hasType("donut")||i?null:"0"),i){const d=r.gauge_fullCircle;d&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),r.gauge_label_show&&(s.select(`.${jn.chartArcsGaugeUnit}`).attr("dy",`${d?1.5:.75}em`).text(r.gauge_units),s.select(`.${jn.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(d?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(r.gauge_min,!1)),!d&&s.select(`.${jn.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(r.gauge_max,!0)))}ef.call(e)&&e0.call(e,t)},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:r}}=e,a=ye(t)?o=>o.index===t:o=>o.data.id===t;return r==null?void 0:r.selectAll(`.${Ee.target} path`).filter(a)}};function of(t){return t[0]}function sf(t){return t[1]}function lf(t,e){var r=Fe(!0),a=null,o=xi,s=null,i=Oi(l);t=typeof t=="function"?t:t===void 0?of:Fe(t),e=typeof e=="function"?e:e===void 0?sf:Fe(e);function l(c){var d,g=(c=Ii(c)).length,p,y=!1,A;for(a==null&&(s=o(A=i())),d=0;d<=g;++d)!(d<g&&r(p=c[d],d,c))===y&&((y=!y)?s.lineStart():s.lineEnd()),y&&s.point(+t(p,d,c),+e(p,d,c));if(A)return s=null,A+""||null}return l.x=function(c){return arguments.length?(t=typeof c=="function"?c:Fe(+c),l):t},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:Fe(+c),l):e},l.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Fe(!!c),l):r},l.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),l):o},l.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),l):a},l}function v0(t,e,r){var a=null,o=Fe(!0),s=null,i=xi,l=null,c=Oi(d);t=typeof t=="function"?t:t===void 0?of:Fe(+t),e=typeof e=="function"?e:Fe(e===void 0?0:+e),r=typeof r=="function"?r:r===void 0?sf:Fe(+r);function d(p){var y,A,w,F=(p=Ii(p)).length,N,D=!1,K,J=new Array(F),W=new Array(F);for(s==null&&(l=i(K=c())),y=0;y<=F;++y){if(!(y<F&&o(N=p[y],y,p))===D)if(D=!D)A=y,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),w=y-1;w>=A;--w)l.point(J[w],W[w]);l.lineEnd(),l.areaEnd()}D&&(J[y]=+t(N,y,p),W[y]=+e(N,y,p),l.point(a?+a(N,y,p):J[y],r?+r(N,y,p):W[y]))}if(K)return l=null,K+""||null}function g(){return lf().defined(o).curve(i).context(s)}return d.x=function(p){return arguments.length?(t=typeof p=="function"?p:Fe(+p),a=null,d):t},d.x0=function(p){return arguments.length?(t=typeof p=="function"?p:Fe(+p),d):t},d.x1=function(p){return arguments.length?(a=p==null?null:typeof p=="function"?p:Fe(+p),d):a},d.y=function(p){return arguments.length?(e=typeof p=="function"?p:Fe(+p),r=null,d):e},d.y0=function(p){return arguments.length?(e=typeof p=="function"?p:Fe(+p),d):e},d.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Fe(+p),d):r},d.lineX0=d.lineY0=function(){return g().x(t).y(e)},d.lineY1=function(){return g().x(t).y(r)},d.lineX1=function(){return g().x(a).y(e)},d.defined=function(p){return arguments.length?(o=typeof p=="function"?p:Fe(!!p),d):o},d.curve=function(p){return arguments.length?(i=p,s!=null&&(l=i(s)),d):i},d.context=function(p){return arguments.length?(p==null?s=l=null:l=i(s=p),d):s},d}var fa={initArea(t){const e=this,{config:r}=e;t.insert("g",`.${r.area_front?En.circles:dr.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 r=this,{config:a,state:o,$el:s,$T:i}=r,l=e?s.subchart:s;a.area_linearGradient&&r.updateLinearGradient();const c=l.main.selectAll(`.${ro.areas}`).selectAll(`.${ro.area}`).data(r.lineData.bind(r));i(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",r.getClass("area",!0)).style("fill",r.updateAreaColor.bind(r)).style("opacity",function(){return o.orgAreaOpacity=st(this).style("opacity"),"0"}).merge(c),c.style("opacity",o.orgAreaOpacity),r.setRatioForGroupedData(l.area.data())},redrawArea(t,e,r=!1){const a=this,{area:o}=r?this.$el.subchart:this.$el,{orgAreaOpacity:s}=a.state;return[a.$T(o,e,ar()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",i=>String(a.isAreaRangeType(i)?s/1.75:s))]},generateDrawArea(t,e){const r=this,{config:a}=r,o=a.line_connectNull,s=a.axis_rotated,i=r.generateGetAreaPoints(t,e),l=r.getYScaleById.bind(r),c=p=>(e?r.subxx:r.xx).call(r,p),d=(p,y)=>r.isGrouped(p.id)?i(p,y)[0][1]:l(p.id,e)(r.isAreaRangeType(p)?r.getRangedData(p,"high"):r.getShapeYMin(p.id)),g=(p,y)=>r.isGrouped(p.id)?i(p,y)[1][1]:l(p.id,e)(r.isAreaRangeType(p)?r.getRangedData(p,"low"):p.value);return p=>{let y=o?r.filterRemoveNull(p.values):p.values,A=0,w=0,F;if(r.isAreaType(p)){let N=v0();N=s?N.y(c).x0(d).x1(g):N.x(c).y0(a.area_above?0:a.area_below?r.state.height:d).y1(g),o||(N=N.defined(D=>r.getBaseValue(D)!==null)),r.isStepType(p)&&(y=r.convertValuesToStep(y)),F=N.curve(r.getCurve(p))(y)}else y[0]&&(A=r.scale.x(y[0].x),w=r.getYScaleById(p.id)(y[0].value)),F=s?`M ${w} ${A}`:`M ${A} ${w}`;return F||"M 0 0"}},generateGetAreaPoints(t,e){const r=this,{config:a}=r,o=r.getShapeX(0,t,e),s=r.getShapeY(!!e),i=r.getShapeOffset(r.isAreaType,t,e),l=r.getYScaleById.bind(r);return function(c,d){const g=l.call(r,c.id,e)(r.getShapeYMin(c.id)),p=i(c,d)||g,y=o(c),A=c.value;let w=s(c);return a.axis_rotated&&(A>0&&w<g||A<0&&g<w)&&(w=g),[[y,p],[y,w-(g-p)],[y,w-(g-p)],[y,p]]}}};function Pi(t){const e=this.config.bar_connectLine,r=(e==null?void 0:e[t])||e;return/^(start|end)\-(start|end)$/.test(r)?r:null}var g0={initBar(){const{$el:t,config:e,state:{clip:r}}=this;t.bar=t.main.select(`.${Ee.chart}`),t.bar=e.bar_front?t.bar.append("g"):t.bar.insert("g",":first-child"),t.bar.attr("class",zn.chartBars).call(this.setCssRule(!1,`.${zn.chartBars}`,["pointer-events:none"])),e.clipPath===!1&&(e.bar_radius||e.bar_radius_ratio)&&t.bar.attr("clip-path",r.pathXAxis.replace(/#[^)]*/,`#${r.id}`))},updateTargetsForBar(t){const e=this,{config:r,$el:a}=e,o=e.getChartClass("Bar"),s=e.getClass("bars",!0),i=e.classFocus.bind(e),l=r.interaction_enabled&&r.data_selection_isselectable;a.bar||e.initBar(),a.main.select(`.${zn.chartBars}`).selectAll(`.${zn.chartBar}`).data(e.filterNullish(t)).attr("class",g=>o(g)+i(g)).enter().append("g").attr("class",o).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",s).style("cursor",g=>{var p;return(p=l==null?void 0:l.bind)!=null&&p.call(l,e.api)(g)?"pointer":null}).call(g=>{e.setCssRule(!0,` .${zn.bar}`,["fill"],e.color)(g),g.each(function(p){Pi.call(e,p.id)&&st(this).append("path").attr("class",zn.barConnectLine)})})},updateBar(t,e=!1){const r=this,{config:a,$el:o,$T:s}=r,i=e?o.subchart:o,l=r.getClass("bar",!0),c=r.initialOpacity.bind(r);a.bar_linearGradient&&r.updateLinearGradient();const d=i.main.selectAll(`.${zn.bars}`).selectAll(`.${zn.bar}`).data(r.labelishData.bind(r));s(d.exit(),t).style("opacity","0").remove(),i.bar=d.enter().append("path").attr("class",l).style("fill",r.updateBarColor.bind(r)).merge(d).style("opacity",c),r.setRatioForGroupedData(i.bar.data())},updateBarColor(t){const e=this,r=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):r?r(t):null},redrawBar(t,e,r=!1){const a=this,{bar:o}=r?a.$el.subchart:a.$el,s=[];return[a.$T(o,e,ar()).attr("d",function(i,l,c){const d=(ye(i.value)||a.isBarRangeType(i))&&t(i,l),g=Pi.call(a,i.id);if(d.length>1&&(s.push(d[1]),l===c.length-1)){const p=a.$T(st(this.parentNode.querySelector(`.${zn.barConnectLine}`)),e,ar());a.updateConnectLine(p,g,s),s.splice(0)}return d[0]}).style("fill",a.updateBarColor.bind(a)).style("clip-path",i=>i.clipPath).style("opacity",null)]},generateDrawBar(t,e){const r=this,{config:a}=r,o=r.generateGetBarPoints(t,e),s=a.axis_rotated,i=a.bar_radius,l=a.bar_radius_ratio,c=ye(i)&&i>0?()=>i:ye(l)?d=>d*l:null;return(d,g)=>{const p=o(d,g),y=+s,A=+!y,w=d.value<0,F=a[`axis_${r.axis.getId(d.id)}_inverted`],N=!F&&w||F&&!w,D=["",""],K=r.isGrouped(d.id),J=c&&K?r.isStackingRadiusData(d):!1,W=[p[0][y],p[0][A]];let rt=0;if(d.clipPath=null,c){const $t=s?A:y,Tt=p[2][$t]-p[0][$t];rt=!K||J?c(Tt):0;const yt=`a${rt} ${rt} ${N?"1 0 0":"0 0 1"} `;D[+!s]=`${yt}${rt},${rt}`,D[+s]=`${yt}${[-rt,rt][s?"sort":"reverse"]()}`,N&&D.reverse()}const Q=s?p[1][y]+(N?rt:-rt):p[1][A]+(N?-rt:rt);if(rt){let $t="";s?N&&W[0]<Q?$t=`0 ${Q-W[0]}px 0 0`:!N&&W[0]>Q&&($t=`0 0 0 ${W[0]-Q}px`):N&&W[1]>Q?$t=`${W[1]-Q}px 0 0 0`:!N&&W[1]<Q&&($t=`0 0 ${Q-W[1]}px 0`),$t&&(d.clipPath=`inset(${$t})`)}const ot=s?`H${Q} ${D[0]}V${p[2][A]-rt} ${D[1]}H${p[3][y]}`:`V${Q} ${D[0]}H${p[2][y]-rt} ${D[1]}V${p[3][A]}`,vt=[`M${p[0][y]},${p[0][A]}${ot}z`];return Pi.call(r,d.id)&&vt.push(s?{x:p[0][y],y:p[0][A],width:p[0][y]-Q,height:p[2][A]-p[0][A]}:{x:p[0][y],y:Q,width:p[2][y]-p[0][y],height:p[3][A]-Q}),vt}},isStackingRadiusData(t){const e=this,{$el:r,config:a,data:o,state:s}=e,{id:i,index:l,value:c}=t;if(s.hiddenTargetIds.indexOf(i)>-1){const y=r.bar.filter(A=>A.id===i&&A.value===c);return!y.empty()&&/a\d+/i.test(y.attr("d"))}const d=a.data_groups.find(y=>y.indexOf(i)>-1),p=e.orderTargets(e.filterTargetsToShow(o.targets.filter(e.isBarType,e))).filter(y=>d.indexOf(y.id)>-1).map(y=>y.values.filter(A=>A.index===l&&(ye(c)&&c>0?A.value>0:A.value<0))[0]).filter(Boolean).map(y=>y.id);return c!==0&&p.indexOf(i)===p.length-1},generateGetBarPoints(t,e){const r=this,{config:a}=r,o=e?r.axis.subX:r.axis.x,s=r.getIndicesMax(t)+1,i=r.getBarW("bar",o,s),l=r.getShapeX(i,t,!!e),c=r.getShapeY(!!e),d=r.getShapeOffset(r.isBarType,t,!!e),g=r.getYScaleById.bind(r);return(p,y)=>{const{id:A}=p,w=g.call(r,A,e)(r.getShapeYMin(A)),F=d(p,y)||w,N=ye(i)?i:i[p.id]||i._$width,D=a[`axis_${r.axis.getId(A)}_inverted`],K=p.value,J=l(p);let W=c(p);a.axis_rotated&&!D&&(K>0&&W<w||K<0&&w<W)&&(W=w),r.isBarRangeType(p)||(W-=w-F);const rt=J+N;return[[J,F],[J,W],[rt,W],[rt,F]]}},updateConnectLine(t,e,r){const a=r.map((o,s,i)=>{const l=this.config.axis_rotated,c=/^start-(start|end)$/.test(e),d=/^end-(start|end)$/.test(e),g=[],p=l?d?o.x-o.width:o.x:o.x+o.width,y=l||c?o.y+o.height:o.y;return s===0?g.push(`${p},${y}`):(g.push(l?`L${o.x-(/\w+-end$/.test(e)?o.width:0)},${o.y}`:`L${o.x},${o.y+(/\w+-start$/.test(e)?o.height:0)}`),s<i.length-1&&g.push(`M${p},${y}`)),g.join(" ")});t.attr("d",`M${a.join("")}z`)}},p0={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:r}=t.state,a=cn.bubbleBaseLength;let o=t.cache.get(a);return o||t.cache.add(a,o=er("min",[e,r])),o},getBubbleR(t){const e=this;let r=e.config.bubble_maxR;de(r)?r=r.bind(e.api)(t):ye(r)||(r=e.getBaseLength()/(e.getMaxDataCount()*2)+12);const a=er("max",e.getMinMaxData().max.map(i=>e.isBubbleZType(i)?e.getBubbleZData(i.value,"y"):Ge(i.value)?i.value.mid:i.value)),o=r*r*Math.PI,s=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(o/a);return Math.sqrt(s/Math.PI)},getBubbleZData(t,e){return Ge(t)?t[e]:t[e==="y"?0:1]}},m0=Object.defineProperty,cf=Object.getOwnPropertySymbols,y0=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable,uf=(t,e,r)=>e in t?m0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T0=(t,e)=>{for(var r in e||(e={}))y0.call(e,r)&&uf(t,r,e[r]);if(cf)for(var r of cf(e))x0.call(e,r)&&uf(t,r,e[r]);return t},S0={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Ee.chart}`).append("g").attr("class",fr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:r}=e,a=e.getChartClass("Candlestick");r.candlestick||e.initCandlestick(),e.$el.main.select(`.${fr.chartCandlesticks}`).selectAll(`.${fr.chartCandlestick}`).data(e.filterNullish(t)).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const r=this,{$el:a,$T:o}=r,s=e?a.subchart:a,i=r.getClass("candlestick",!0),l=r.initialOpacity.bind(r),c=s.main.selectAll(`.${fr.chartCandlestick}`).selectAll(`.${fr.candlestick}`).data(r.labelishData.bind(r));o(c.exit(),t).style("opacity","0").remove();const d=c.enter().filter(g=>g.value).append("g").attr("class",i);d.append("line"),d.append("path"),s.candlestick=c.merge(d).style("opacity",l)},generateDrawCandlestick(t,e){const r=this,{config:a}=r,o=r.generateGetCandlestickPoints(t,e),s=a.axis_rotated,i=a.candlestick_color_down;return(l,c,d)=>{const g=o(l,c),p=r.getCandlestickData(l),y=p==null?void 0:p._isUp,A=+s,w=+!A;d.classed&&d.classed(fr[y?"valueUp":"valueDown"],!0);const F=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]}`;d.select("path").attr("d",`M${g[0][A]},${g[0][w]}${F}z`).style("fill",K=>(y?r.color(K):Ge(i)?i[K.id]:i)||r.color(K));const N=d.select("line"),D=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 K in D)N.attr(K,D[K])}},generateGetCandlestickPoints(t,e=!1){const r=this,a=e?r.axis.subX:r.axis.x,o=r.getIndicesMax(t)+1,s=r.getBarW("candlestick",a,o),i=r.getShapeX(s,t,!!e),l=r.getShapeY(!!e),c=r.getShapeOffset(r.isBarType,t,!!e),d=r.getYScaleById.bind(r);return(g,p)=>{const y=d.call(r,g.id,e)(r.getShapeYMin(g.id)),A=c(g,p)||y,w=ye(s)?s:s[g.id]||s._$width,F=r.getCandlestickData(g);let N;if(F&&ye(F.open)&&ye(F.close)){const D={start:i(g),end:0};D.end=D.start+w;const K={start:l(F.open),end:l(F.close)},J={x:D.start+w/2,high:l(F.high),low:l(F.low)};K.start-=y-A,N=[[D.start,K.start],[D.end,K.end],[J.x,J.low,J.high]]}else N=[[0,0],[0,0],[0,0,0]];return N}},redrawCandlestick(t,e,r=!1){const a=this,{$el:o,$T:s}=a,{candlestick:i}=r?o.subchart:o,l=ar(!0);return[i.each(function(c,d){const g=s(st(this),e,l);t(c,d,g)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(Xe(t)){const[r,a,o,s,i=!1]=t;e={open:r,high:a,low:o,close:s},i!==!1&&(e.volume=i)}else Ge(t)&&(e=T0({},t));return e&&(e._isUp=e.close>=e.open),e||null}},$0=Object.defineProperty,ff=Object.getOwnPropertySymbols,A0=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,df=(t,e,r)=>e in t?$0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,I0=(t,e)=>{for(var r in e||(e={}))A0.call(e,r)&&df(t,r,e[r]);if(ff)for(var r of ff(e))E0.call(e,r)&&df(t,r,e[r]);return t};function _o(t=!1){const e=this,{config:r,state:{current:{width:a,height:o}}}=e,s=e.getCurrentPadding(),i=I0({width:a-(s.left+s.right),height:o-(r.legend_show?e.getLegendHeight()+10:0)-(s.top+s.bottom)},s);if(t){const{width:l,height:c}=hf.call(e,{width:i.width,height:i.height});i.width<l&&(i.width=l),i.height<c&&(i.height=c)}return i}function hf(t){const e=this,{config:r}=e;let a=r.funnel_neck_width,o=r.funnel_neck_height;return[a,o]=[a,o].map((s,i)=>{let l=s;return Ge(s)&&(l=t[i?"height":"width"]*s.ratio),l}),{width:a,height:o}}function R0(t){const e=this,{top:r,left:a,width:o}=_o.call(e,!0),s=[];return t.forEach((i,l)=>{const{ratio:c}=i,d=l>0?s[l-1][2][1]:r;s.push(i.coords=[[a,d],[a+o,d],[a+o,l>0?c+d:c+r],[a,l>0?c+d:c+r],[a,d]])}),s}function vf(t=!1){const e=this,{width:r,height:a,top:o,left:s}=_o.call(e,!0),i=hf.call(e,{width:r,height:a}),l=(r-i.width)/2,c=(r+i.width)/2,d=a-i.height,g=[[0,0],[r,0],[c,d],[c,a],[l,a],[l,d],[0,0]];return t&&g.forEach(p=>{p[0]+=s,p[1]+=o}),`M${g.join("L")}z`}function b0(t){const e=this,{config:r}=e,a=t.map(o=>({id:o.id,value:o.values.reduce((s,i)=>s+i.value,0)}));return r.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),gf.call(e,a)}function gf(t){const e=this,{height:r}=_o.call(e),a=e.getTotalDataSum(!0);return t.forEach(o=>{o.ratio=o.value/a*r}),t}var O0={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Ee.chart}`).append("g").classed(Ea.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(Ea.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:r,state:a}=t,o=s=>{var i;const l=s.isTrusted?s.target:(i=a.eventReceiver.rect)==null?void 0:i.node();let c;return/^path$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c};if(r.interaction_enabled){const s=a.inputType==="touch";e.on(s?"touchstart":"mouseover mousemove",i=>{const l=o(i);l&&(t.showTooltip([l],i.target),/^(touchstart|mouseover)$/.test(i.type)&&t.setOverOut(!0,l))},s?{passive:!0}:void 0).on(s?"touchend":"mouseout",i=>{const l=o(i);r.interaction_onout&&(t.hideTooltip(),t.setOverOut(!1,l))})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:r}}=e,a=e.getChartClass("Funnel"),o=e.getClass("funnel",!0);r||e.initFunnel();const s=b0.call(e,t.filter(e.isFunnelType.bind(e))),i=r.selectAll(`.${Ea.chartFunnel}`).data(e.filterNullish(s));i.exit().remove();const l=i.enter().insert("g",`.${Ea.funnelBackground}`);l.append("path"),r.path=l.merge(i).attr("class",c=>a(c)).select("path").attr("class",o).style("opacity","0").style("fill",e.color)},updateFunnel(t){const e=this,{$el:{funnel:r}}=e,a=t.map(({id:o})=>o);r.path=r.path.filter(o=>a.indexOf(o.id)>=0)},generateGetFunnelPoints(){const t=this,{$el:{funnel:e}}=t,r=t.filterTargetsToShow(e.path),{top:a,left:o,right:s}=_o.call(t),i=(o-s)/2,l={};let c=a!=null?a:0;return r.each((d,g)=>{var p;l[d.id]=[[i,c],[i,c+=((p=r==null?void 0:r[g])!=null?p:d).ratio]]}),d=>l[d.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:r}}=t,a=t.filterTargetsToShow(r.path),o=R0.call(t,gf.call(t,a.data()));r.attr("clip-path",`path('${vf.bind(t)()}')`),r.background.attr("d",vf.call(t,!0)),e(a).attr("d",(s,i)=>`M${o[i].join("L")}z`).style("opacity","1"),r.selectAll("g").style("opacity",null)}},C0={initGauge(){const t=this,{config:e,$el:{arcs:r}}=t,a=(o=null,s="")=>{r.append("text").attr("class",o).style("text-anchor","middle").style("pointer-events","none").text(s)};if(t.hasType("gauge")){const o=t.hasMultiArcGauge();r.append(o?"g":"path").attr("class",Le.chartArcsBackground).style("fill",!o&&e.gauge_background||null),e.gauge_units&&a(jn.chartArcsGaugeUnit),e.gauge_label_show&&(a(jn.chartArcsGaugeMin),!e.gauge_fullCircle&&a(jn.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:r}=t,o=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(r.rendered);!e.gauge_enforceMinMax&&o+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=o-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:r,$el:a}=t,{hiddenTargetIds:o}=t.state,s=a.main.selectAll(`.${Le.arcs}`).selectAll(`.${Le.arcLabelLine}`).data(t.arcData.bind(t));s.enter().append("rect").attr("class",l=>`${Le.arcLabelLine} ${Ee.target} ${Ee.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 d=2;let g=0,p=0,y="";if(o.indexOf(l.data.id)<0){const A=t.updateAngle(l),w=r.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(A.index+1),F=A.endAngle-Math.PI/2,N=r.radius-w,D=F-(N===0?0:1/N);c=r.radiusExpanded-r.radius+w,g=Math.cos(D)*N,p=Math.sin(D)*N,y=`rotate(${F*180/Math.PI}, ${g}, ${p})`}st(this).attr("x",g).attr("y",p).attr("width",c).attr("height",d).attr("transform",y).style("stroke-dasharray",`0, ${c+d}, 0`)})},textForGaugeMinMax(t,e){const r=this,{config:a}=r,o=a.gauge_label_extents;return de(o)?o.bind(r.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)}},P0=Object.defineProperty,M0=Object.defineProperties,w0=Object.getOwnPropertyDescriptors,pf=Object.getOwnPropertySymbols,D0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,mf=(t,e,r)=>e in t?P0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L0=(t,e)=>{for(var r in e||(e={}))D0.call(e,r)&&mf(t,r,e[r]);if(pf)for(var r of pf(e))N0.call(e,r)&&mf(t,r,e[r]);return t},F0=(t,e)=>M0(t,w0(e));function B0(t,e,r,a=!1){const o=t?[t,0]:r;for(let s=t||r.reduce((i,l)=>i+l);s<=e;)r.forEach(i=>{s+i<=e&&o.push(i),s+=i});return o.length%2!==0&&o.push(a?r[1]:0),{dash:o.join(" "),length:o.reduce((s,i)=>s+i,0)}}function U0(t,e,r){const a=this,o=[],s="2 2";if(Qe(e)){const i=(l,c)=>ln(l)?c:r?Jn.call(a,l):l;for(let l=0,c;c=e[l];l++){const d=i(c.start,t[0].x),g=i(c.end,t[t.length-1].x),p=c.style||{dasharray:s};o[l]={start:d,end:g,style:p}}}return o}var z0={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Ee.chart}`).append("g").attr("class",dr.chartLines).call(this.setCssRule(!1,`.${dr.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:r,line:a,main:o}}=e,s=e.getChartClass("Line"),i=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(p=>!(e.isScatterType(p)||e.isBubbleType(p))),d=o.select(`.${dr.chartLines}`).selectAll(`.${dr.chartLine}`).data(e.filterNullish(c)).attr("class",p=>s(p)+l(p)),g=d.enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(g.append("g").attr("class",i),e.hasTypeOf("Area")){const p=(!r&&g.empty()?d:g).filter(e.isAreaType.bind(e));e.initArea(p)}e.updateTargetForCircle(c,g)},updateLine(t,e=!1){const r=this,{format:{extraLineClasses:a},$el:o,$T:s}=r,i=e?o.subchart:o,l=i.main.selectAll(`.${dr.lines}`).selectAll(`.${dr.line}`).data(r.lineData.bind(r));s(l.exit(),t).style("opacity","0").remove(),i.line=l.enter().append("path").attr("class",c=>`${r.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",r.color).merge(l).style("opacity",r.initialOpacity.bind(r)).attr("transform",null)},redrawLine(t,e,r=!1){const a=this,{$el:o,$T:s}=a,{line:i}=r?o.subchart:o;return[s(i,e,ar()).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 o=e.getInterpolate(t)(a);return o.orgPoint=o.point,o.pointRotated=function(s,i){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+i*this._t;this._context.lineTo(this._x,l),this._context.lineTo(s,l),this._x=s,this._y=i},o.point=function(s,i){this._point===0?this.orgPoint(s,i):this.pointRotated(s,i)},o}:e.getInterpolate(t)},generateDrawLine(t,e){const r=this,{config:a,scale:o}=r,s=a.line_connectNull,i=a.axis_rotated,l=r.generateGetLinePoints(t,e),c=r.getYScaleById.bind(r),d=A=>(e?r.subxx:r.xx).call(r,A),g=(A,w)=>r.isGrouped(A.id)?l(A,w)[0][1]:c(A.id,e)(r.getBaseValue(A));let p=lf();p=i?p.x(g).y(d):p.x(d).y(g),s||(p=p.defined(A=>r.getBaseValue(A)!==null));const y=e?o.subX:o.x;return A=>{const w=c(A.id,e);let F=s?r.filterRemoveNull(A.values):A.values,N=0,D=0,K;if(r.isLineType(A)){const J=a.data_regions[A.id];J?(r.isAreaRangeType(A)&&(F=F.map(W=>F0(L0({},W),{value:r.getRangedData(W,"mid")}))),K=r.lineWithRegions(F,o.zoom||y,w,J)):(r.isStepType(A)&&(F=r.convertValuesToStep(F)),K=p.curve(r.getCurve(A))(F))}else F[0]&&(N=y(F[0].x),D=w(F[0].value)),K=i?`M ${D} ${N}`:`M ${N} ${D}`;return K||"M 0 0"}},lineWithRegions(t,e,r,a){const o=this,{config:s}=o,i=s.axis_rotated,l=o.axis.isTimeSeries(),c="2 2",d=U0.bind(o)(t,a,l),g=o.hasNullDataValue(t);let p,y,A,w;const F=i?Tt=>r(Tt.value):Tt=>e(Tt.x),N=i?Tt=>e(Tt.x):Tt=>r(Tt.value),D=Tt=>`M${Tt[0][0]},${Tt[0][1]}L${Tt[1][0]},${Tt[1][1]}`,K=l?(Tt,yt,Rt,xt)=>{const q=Tt.x.getTime(),Et=yt.x-Tt.x,dt=new Date(q+Et*Rt),bt=new Date(q+Et*(Rt+xt)),kt=i?[[r(y(Rt)),e(dt)],[r(y(Rt+A)),e(bt)]]:[[e(dt),r(y(Rt))],[e(bt),r(y(Rt+A))]];return D(kt)}:(Tt,yt,Rt,xt)=>{const q=e(yt.x,!i),Et=r(yt.value,i),dt=Rt+xt,bt=e(p(Rt),!i),kt=r(y(Rt),i);let Ht=e(p(dt),!i),Kt=r(y(dt),i);Ht>q&&(Ht=q),Tt.value>yt.value&&(i?Kt<Et:Kt>Et)&&(Kt=Et);const ie=[[bt,kt],[Ht,Kt]];return i&&ie.forEach(he=>he.reverse()),D(ie)},J={x:o.axis.getAxisType("x"),y:o.axis.getAxisType("y")};let W="";const rt=o.$el.line.filter(({id:Tt})=>Tt===t[0].id),Q=rt.clone().style("display","none"),ot=(Tt,yt)=>Tt.attr("d",yt).node().getTotalLength(),vt={dash:[],lastLength:0};let $t=!1;for(let Tt=0,yt;yt=t[Tt];Tt++){const Rt=t[Tt-1],xt=Rt&&Ne(Rt.value);let q=o.isWithinRegions(yt.x,d);if(Ne(yt.value)){if(ln(d)||!q||!xt)W+=`${Tt&&xt?"L":"M"}${F(yt)},${N(yt)}`;else if(xt)if(q=((q==null?void 0:q.dasharray)||c).split(" ").map(Number),p=Gr(J.x,Rt.x,yt.x),y=Gr(J.y,Rt.value,yt.value),g){const Et=e(yt.x)-e(Rt.x),dt=r(yt.value)-r(Rt.value),bt=Math.sqrt(Math.pow(Et,2)+Math.pow(dt,2));A=q[0]/bt,w=A*q[1];for(let kt=A;kt<=1;kt+=w)W+=K(Rt,yt,kt,A),kt+w>=1&&(W+=K(Rt,yt,1,0))}else{let Et=[];if($t=yt.x===t[t.length-1].x,l){const Ht=+Rt.x,Kt=new Date(Ht),ie=new Date(Ht+(+yt.x-Ht));Et=[[e(Kt),r(y(0))],[e(ie),r(y(1))]]}else Et=[[e(p(0)),r(y(0))],[e(p(1)),r(y(1))]];i&&Et.forEach(Ht=>Ht.reverse());const dt=ot(Q,W),bt=ot(Q,W+=`L${Et[1].join(",")}`),kt=B0(dt-vt.lastLength,bt-vt.lastLength,q,$t);vt.lastLength+=kt.length,vt.dash.push(kt.dash)}}}return vt.dash.length&&(!$t&&vt.dash.push(ot(Q,W)),Q.remove(),rt.attr("stroke-dasharray",vt.dash.join(" "))),W},isWithinRegions(t,e){for(let r=0,a;a=e[r];r++)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||Xe(e)&&e.indexOf(t.id)!==-1}};const da=()=>ar();var ts={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:r}}=this;let a=e.point_opacity;return ln(a)&&(a=this.getBaseValue(t)!==null&&r[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:r}=this;let a=r.point_opacity;return ln(a)&&(a=r.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=Ne(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(`.${Ee.chart} > .${En.chartCircles}`).empty()&&e.select(`.${Ee.chart}`).append("g").attr("class",En.chartCircles)},updateTargetForCircle(t,e){const r=this,{config:a,data:o,$el:s}=r,i=a.interaction_enabled&&a.data_selection_enabled,l=i&&a.data_selection_isselectable,c=r.getClass("circles",!0);if(!a.point_show)return;r.initCircle();let d=t,g=e;if(!d){d=r.filterNullish(o.targets).filter(y=>this.isScatterType(y)||this.isBubbleType(y));const p=s.main.select(`.${En.chartCircles}`).style("pointer-events","none").selectAll(`.${En.circles}`).data(d);p.exit().remove(),g=p.enter()}i&&g.append("g").attr("class",p=>r.generateClass(tn.selectedCircles,p.id)),g.append("g").attr("class",c).call(p=>{r.setCssRule(!0,`.${En.circles}`,["cursor:pointer"],l)(p),r.setCssRule(!0,` .${En.circle}`,["fill","stroke"],r.color)(p)}).style("opacity",function(){return st(this.parentNode).attr("class").indexOf(En.chartCircles)>-1?"0":null}),i&&d.forEach(p=>{s.main.selectAll(`.${tn.selectedCircles}${r.getTargetSelectorSuffix(p.id)}`).selectAll(`${tn.selectedCircle}`).each(y=>{y.value=p.values[y.index].value})})},updateCircle(t=!1){const e=this,{config:r,state:a,$el:o}=e,s=e.isPointFocusOnly(),i=t?o.subchart:o;if(r.point_show&&!a.toggling){r.point_radialGradient&&e.updateLinearGradient();const l=i.main.selectAll(`.${En.circles}`).selectAll(`.${En.circle}`).data(c=>{const d=e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?s?[c.values[0]]:c.values:[];return e.filterNullish(d)});l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),i.circle=i.main.selectAll(`.${En.circles} .${En.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,r=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):r?r(t):null},redrawCircle(t,e,r,a,o=!1){const s=this,{state:{rendered:i},$el:l,$T:c}=s,d=o?l.subchart:l,g=d.main.selectAll(`.${tn.selectedCircle}`);if(!s.config.point_show)return[];const p=s.point("update",s,t,e,s.updateCircleColor.bind(s),r,a,g),y=s.isCirclePoint()?"c":"",A=ar(),w=s.opacityForCircle.bind(s),F=[];return d.circle.each(function(N){let D=p.bind(this)(N);D=c(D,r||!i,A).style("opacity",w),F.push(D)}),[F,c(g,r).attr(`${y}x`,t).attr(`${y}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:r,resizing:a,toggling:o,transiting:s},$el:i}=e;let{circle:l}=i;if(s===!1&&l&&e.isPointFocusOnly()){const c=(r?e.radarCircleX:e.circleX).bind(e),d=(r?e.radarCircleY:e.circleY).bind(e),g=o||ln(t),p=e.point("update",e,c,d,e.getStylePropValue(e.color),a?!1:g);t&&(l=l.filter(function(y){var A;const w=(A=t.filter)==null?void 0:A.call(t,F=>F.id===y.id);return w.length?st(this).datum(w[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(y){const{id:A,index:w,value:F}=y;let N="hidden";Ne(F)&&(p.bind(this)(y),e.expandCircles(w,A),N=""),this.style.visibility=N})}},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,r=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,o)=>{const s=a.id;return e.isGrouped(s)?r(a,o)[0][1]:e.getYScaleById(s,t)(e.getBaseValue(a))}},expandCircles(t,e,r){const a=this,o=a.pointExpandedR.bind(a);r&&a.unexpandCircles();const s=a.getShapeByIndex("circle",t,e).classed(Ee.EXPANDED,!0),i=o(s)/a.config.point_r,l=1-i;a.isCirclePoint()?s.attr("r",o):s.each(function(){const c=st(this);if(this.tagName==="circle")c.attr("r",o);else{const{width:d,height:g}=Ar(this),p=l*(+c.attr("x")+d/2),y=l*(+c.attr("y")+g/2);c.attr("transform",`translate(${p} ${y}) scale(${i})`)}})},unexpandCircles(t){const e=this,r=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return st(this).classed(Ee.EXPANDED)}).classed(Ee.EXPANDED,!1);if(a.attr("r",r),!e.isCirclePoint()){const o=r(a)/e.config.point_r;a.attr("transform",o!==1?`scale(${o})`:null)}},pointR(t){const e=this,{config:r}=e,a=r.point_r;let o=a;return e.isBubbleType(t)?o=e.getBubbleR(t):de(a)&&(o=a.bind(e.api)(t)),t.r=o,o},pointExpandedR(t){const e=this,{config:r}=e,a=e.isBubbleType(t)?1.15:1.75;return r.point_focus_expand_enabled?r.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,r=e.config.point_select_r;return de(r)?r(t):r||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{state:r}=this,a=Zn(r.event,t),o=st(t),s=this.isCirclePoint(t)?"c":"",i=this.getPointSensitivity(o==null?void 0:o.datum());let l=+o.attr(`${s}x`),c=+o.attr(`${s}y`);if(!(l||c)&&t.nodeType===1){const{x:d,y:g}=Sn(t);l=d,c=g}return Math.sqrt(Math.pow(l-a[0],2)+Math.pow(c-a[1],2))<(e||i)},getPointSensitivity(t){const e=this;let r=e.config.point_sensitivity;if(t)de(r)?r=r.call(e.api,t):r==="radius"&&(r=t.r);else return r;return r},updatePointClass(t){const e=this,{circle:r}=e.$el;let a=!1;return(Ge(t)||r)&&(a=t===!0?r.each(function(o){let s=e.getClass("circle",!0)(o);this.getAttribute("class").indexOf(Ee.EXPANDED)>-1&&(s+=` ${Ee.EXPANDED}`),this.setAttribute("class",s)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const r=this,{config:a}=r,o=r.getShapeX(0,t,e),s=r.getShapeY(e),i=r.getShapeOffset(r.isLineType,t,e),l=r.getYScaleById.bind(r);return(c,d)=>{const g=l.call(r,c.id,e)(r.getShapeYMin(c.id)),p=i(c,d)||g,y=o(c);let A=s(c);a.axis_rotated&&(c.value>0&&A<g||c.value<0&&g<A)&&(A=g);const w=[y,A-(g-p)];return[w,w,w,w]}},custom:{create(t,e,r){return t.append("use").attr("xlink:href",`#${e}`).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update(t,e,r,a,o,s,i){const l=this,{width:c,height:d}=Ar(t.node()),g=A=>Ne(A.value)?e(A)-c/2:0,p=A=>Ne(A.value)?r(A)-d/2:0;let y=t;return o&&(s&&y.attr("x",g),y=l.$T(y,o,da()),i&&l.$T(i,o,da())),y.attr("x",g).attr("y",p).style("fill",a)}},circle:{create(t,e,r){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",r).node()},update(t,e,r,a,o,s,i){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),o&&(s&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,o,da())),i&&l.$T(c,o,da())),c.attr("cx",e).attr("cy",r).style("fill",a)}},rectangle:{create(t,e,r){const a=o=>e(o)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",r).node()},update(t,e,r,a,o,s,i){const l=this,c=l.config.point_r,d=y=>e(y)-c,g=y=>r(y)-c;let p=t;return o&&(s&&p.attr("x",d),p=l.$T(p,o,da()),i&&l.$T(i,o,da())),p.attr("x",d).attr("y",g).style("fill",a)}}};function j0(t){return Gn(t)&&de(t.create)&&de(t.update)}function G0(t,e){var r;const a=this,o=(c,d)=>{const g=c.attributes;for(let p=0,y;y=g[p];p++)y=y.name,d.setAttribute(y,c.getAttribute(y))},i=new DOMParser().parseFromString(ra(t),"image/svg+xml").documentElement,l=mn.createElementNS(Gt.svg,i.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",o(i,l),(r=i.childNodes)!=null&&r.length){const c=st(l);"innerHTML"in l?c.html(ra(i.innerHTML)):Fr(i.childNodes).forEach(d=>{o(d,c.append(d.tagName).node())})}a.$el.defs.node().appendChild(l)}var ha={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}`},getValidPointPattern(){const{config:t}=this,e=/^(circle|rect(angle)?)$/i.test(t.point_type)?t.point_type:"circle";return dn(t.point_pattern)?t.point_pattern:[e]},generatePoint(){const t=this,{$el:e,config:r}=t,a=[],o=t.getValidPointPattern();return function(s,i,...l){return function(c){var d,g,p,y;const A=t.getTargetSelectorSuffix(c.id||((d=c.data)==null?void 0:d.id)||c),w=st(this);a.indexOf(A)<0&&a.push(A);let F=o[a.indexOf(A)%o.length];if(t.hasValidPointType(F))F=t[F];else if(!j0(F||r.point_type)){const N=t.getDefsPointId(A);if(e.defs.select(`#${N}`).size()<1&&G0.call(t,F,N),s==="create")return(g=t.custom)==null?void 0:g.create.bind(i)(w,N,...l);if(s==="update")return(p=t.custom)==null?void 0:p.update.bind(i)(w,...l)}return(y=F[s])==null?void 0:y.bind(i)(w,...l)}}}};function yf(t){const e=t.config.polar_level_max;let r=t.getMinMaxData().max[0].value;return e&&e>r&&(r=e),r}var V0={initPolar(){const t=this,{$el:{arcs:e},config:r}=t,a=r.polar_level_text_show,o=r.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",Sr.levels),a&&o&&t.generateTextBGColorFilter(o)},getPolarOuterRadius(t,e){var r;const a=yf(this);return((r=t==null?void 0:t.data.values[0].value)!=null?r: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:r,$el:{arcs:{levels:a}}}=t,o=e.polar_level_depth,s=yf(t),i=Oo(0,o),l=r.radius,c=i.map(y=>l*((y+1)/o)),d=(e.polar_level_text_format||function(){}).bind(t.api),g=a.selectAll(`.${Sr.level}`).data(i);g.exit().remove();const p=g.enter().append("g").attr("class",(y,A)=>`${Sr.level} ${Sr.level}-${A}`);if(p.append("circle"),p.merge(g).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",y=>c[y]),e.polar_level_text_show){const y=e.polar_level_text_backgroundColor,A=`#${r.datetimeId}-labels-bg${t.getTargetSelectorSuffix(y)}`;p.append("text").style("text-anchor","middle"),p.merge(g).selectAll("text").attr("dy",w=>-c[w]+5).attr("filter",y?`url(${A})`:null).text(w=>d(s/i.length*(w+1)))}}};function X0(t,e,r,a,o,s){const i=t&&a>0?r-a:a,l=2*Math.PI;return o*(1-s*(e==="x"?Math.sin:Math.cos)(i*l/r))}const va=cn.radarPoints,xf=cn.radarTextWidth;var H0={initRadar(){const t=this,{config:e,state:{current:r},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Ee.chart}`).append("g").attr("class",el.chartRadars),a.radar.levels=a.radar.append("g").attr("class",Sr.levels),a.radar.axes=a.radar.append("g").attr("class",gn.axis),a.radar.shapes=a.radar.append("g").attr("class",sn.shapes),r.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:r,arcHeight:a}}=t,o=e.axis_x_categories.length<4?-20:10,s=(Math.min(r,a)-o)/2;return[s,s]},updateTargetsForRadar(t){const e=this,{config:r}=e;Kn(r.axis_x_categories)&&(r.axis_x_categories=Oo(0,er("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,r,a){const o=this,{config:s}=o,[i,l]=o.getRadarSize(),c=s.axis_x_categories.length,d=s.radar_direction_clockwise,g=Fr(t).map(p=>X0(d,p,c,e,Qe(r)?r:t==="x"?i:l,ye(a)?a:s.radar_size_ratio));return g.length===1?g[0]:g},generateRadarPoints(){const t=this,e=t.data.targets,[r,a]=t.getRadarSize(),o=t.cache.get(va)||{},s=o._size;(!s||s.width!==r&&s.height!==a)&&(e.forEach(i=>{o[i.id]=i.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),o._size={width:r,height:a},t.cache.add(va,o))},redrawRadar(){const t=this,{radar:e,main:r}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),r.select(`.${pn.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(va);return(e,r)=>{const a=t[e.id][r];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:r,$el:{radar:a}}=t,[o,s]=t.getRadarSize(),i=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,d=a.levels,g=Oo(0,i),p=e.radar_size_ratio*Math.min(o,s),y=g.map(D=>p*((D+1)/i)),A=(e.radar_level_text_format||function(){}).bind(t.api),w=g.map(D=>{const K=y[D];return Oo(0,l).map(W=>t.getRadarPosition(["x","y"],W,K,1).join(",")).join(" ")}),F=d.selectAll(`.${Sr.level}`).data(g);F.exit().remove();const N=F.enter().append("g").attr("class",(D,K)=>`${Sr.level} ${Sr.level}-${K}`);N.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(d.select("text").empty()&&d.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>A(0)),N.append("text").attr("dx","-.5em").style("text-anchor","end").text(D=>A(r.current.dataMax/g.length*(D+1)))),N.merge(F).attr("transform",D=>`translate(${o-y[D]}, ${s-y[D]})`).selectAll("polygon").attr("points",D=>w[D]),c&&d.selectAll("text").attr("x",D=>ln(D)?o:w[D].split(",")[0]).attr("y",D=>ln(D)?s:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:r}}=t,[a,o]=t.getRadarSize(),s=e.axis_x_categories;let i=r.axes.selectAll("g").data(s);i.exit().remove();const l=i.enter().append("g").attr("class",(c,d)=>`${gn.axis}-${d}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),i=l.merge(i),e.radar_axis_line_show&&i.select("line").attr("x1",a).attr("y1",o).attr("x2",(c,d)=>t.getRadarPosition("x",d)).attr("y2",(c,d)=>t.getRadarPosition("y",d)),e.radar_axis_text_show){const{x:c=0,y:d=0}=e.radar_axis_text_position,g=t.cache.get(xf)||0;if(i.select("text").style("text-anchor","middle").attr("dy",".5em").call(p=>{p.each(function(y){aa(st(this),String(y),[-.6,1.2])})}).datum((p,y)=>({index:y})).attr("transform",function(p){ln(this.width)&&(this.width=Sn(this,!0).width/2);let y=t.getRadarPosition("x",p.index,void 0,1),A=Math.round(t.getRadarPosition("y",p.index,void 0,1));return y>a?y+=this.width+c:Math.round(y)<a&&(y-=this.width+c),A>o?(A/2===o&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),A+=d):A<o&&(A-=d),`translate(${y} ${A})`}),!g){const p=[r.axes,r.levels].map(y=>nc(y.node()).width);p.every(y=>y>0)&&t.cache.add(xf,p[0]-p[1])}}},bindRadarEvent(){const t=this,{config:e,state:r,$el:{radar:a,svg:o}}=t,s=t.isPointFocusOnly(),{inputType:i,transiting:l}=r,c=i==="mouse",d=g=>{if(r.event=g,!e.interaction_onout)return;const p=t.getDataIndexFromEvent(g),y=ln(p);(c||y)&&(t.hideTooltip(),s?t.hideCircleFocus():t.unexpandCircles(),c?t.setOverOut(!1,p):y&&t.callOverOutForTouch())};a.axes.on(c?"mouseover ":"touchstart",g=>{if(l)return;r.event=g;const p=t.getDataIndexFromEvent(g);t.selectRectForSingle(o.node(),p),c?t.setOverOut(!0,p):t.callOverOutForTouch(p)},c?void 0:{passive:!0}).on("mouseout",c?d:null),c||o.on("touchstart",d,{passive:!0})},updateRadarShape(){const t=this,e=t.data.targets.filter(s=>t.isRadarType(s)),r=t.cache.get(va),a=t.$el.radar.shapes.selectAll("polygon").data(t.filterNullish(e)),o=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),o.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",s=>r[s.id].join(" ")),t.updateTargetForCircle(e,o)},radarCircleX(t){return this.cache.get(va)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(va)[t.id][t.index][1]}};function W0(t){var e=0,r=t.children,a=r&&r.length;if(!a)e=1;else for(;--a>=0;)e+=r[a].value;t.value=e}function Y0(){return this.eachAfter(W0)}function K0(t,e){let r=-1;for(const a of this)t.call(e,a,++r,this);return this}function Z0(t,e){for(var r=this,a=[r],o,s,i=-1;r=a.pop();)if(t.call(e,r,++i,this),o=r.children)for(s=o.length-1;s>=0;--s)a.push(o[s]);return this}function J0(t,e){for(var r=this,a=[r],o=[],s,i,l,c=-1;r=a.pop();)if(o.push(r),s=r.children)for(i=0,l=s.length;i<l;++i)a.push(s[i]);for(;r=o.pop();)t.call(e,r,++c,this);return this}function Q0(t,e){let r=-1;for(const a of this)if(t.call(e,a,++r,this))return a}function k0(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,a=e.children,o=a&&a.length;--o>=0;)r+=a[o].value;e.value=r})}function q0(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function _0(t){for(var e=this,r=t1(e,t),a=[e];e!==r;)e=e.parent,a.push(e);for(var o=a.length;t!==r;)a.splice(o,0,t),t=t.parent;return a}function t1(t,e){if(t===e)return t;var r=t.ancestors(),a=e.ancestors(),o=null;for(t=r.pop(),e=a.pop();t===e;)o=t,t=r.pop(),e=a.pop();return o}function e1(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function n1(){return Array.from(this)}function r1(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function a1(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*o1(){var t=this,e,r=[t],a,o,s;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,a=t.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);while(r.length)}function Mi(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=l1)):e===void 0&&(e=i1);for(var r=new es(t),a,o=[r],s,i,l,c;a=o.pop();)if((i=e(a.data))&&(c=(i=Array.from(i)).length))for(a.children=i,l=c-1;l>=0;--l)o.push(s=i[l]=new es(i[l])),s.parent=a,s.depth=a.depth+1;return r.eachBefore(u1)}function s1(){return Mi(this).eachBefore(c1)}function i1(t){return t.children}function l1(t){return Array.isArray(t)?t[1]:null}function c1(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function u1(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function es(t){this.data=t,this.depth=this.height=0,this.parent=null}es.prototype=Mi.prototype={constructor:es,count:Y0,each:K0,eachAfter:J0,eachBefore:Z0,find:Q0,sum:k0,sort:q0,path:_0,ancestors:e1,descendants:n1,leaves:r1,links:a1,copy:s1,[Symbol.iterator]:o1};function f1(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 ns(t,e,r,a,o){for(var s=t.children,i,l=-1,c=s.length,d=t.value&&(a-e)/t.value;++l<c;)i=s[l],i.y0=r,i.y1=o,i.x0=e,i.x1=e+=i.value*d}function rs(t,e,r,a,o){for(var s=t.children,i,l=-1,c=s.length,d=t.value&&(o-r)/t.value;++l<c;)i=s[l],i.x0=e,i.x1=a,i.y0=r,i.y1=r+=i.value*d}var Tf=(1+Math.sqrt(5))/2;function Sf(t,e,r,a,o,s){for(var i=[],l=e.children,c,d,g=0,p=0,y=l.length,A,w,F=e.value,N,D,K,J,W,rt,Q;g<y;){A=o-r,w=s-a;do N=l[p++].value;while(!N&&p<y);for(D=K=N,rt=Math.max(w/A,A/w)/(F*t),Q=N*N*rt,W=Math.max(K/Q,Q/D);p<y;++p){if(N+=d=l[p].value,d<D&&(D=d),d>K&&(K=d),Q=N*N*rt,J=Math.max(K/Q,Q/D),J>W){N-=d;break}W=J}i.push(c={value:N,dice:A<w,children:l.slice(g,p)}),c.dice?ns(c,r,a,o,F?a+=w*N/F:s):rs(c,r,a,F?r+=A*N/F:o,s),F-=N,g=p}return i}var $f=(function t(e){function r(a,o,s,i,l){Sf(e,a,o,s,i,l)}return r.ratio=function(a){return t((a=+a)>1?a:1)},r})(Tf);function DT(t){return t==null?null:Af(t)}function Af(t){if(typeof t!="function")throw new Error;return t}function Xa(){return 0}function Ha(t){return function(){return t}}function d1(){var t=$f,e=!1,r=1,a=1,o=[0],s=Xa,i=Xa,l=Xa,c=Xa,d=Xa;function g(y){return y.x0=y.y0=0,y.x1=r,y.y1=a,y.eachBefore(p),o=[0],e&&y.eachBefore(f1),y}function p(y){var A=o[y.depth],w=y.x0+A,F=y.y0+A,N=y.x1-A,D=y.y1-A;N<w&&(w=N=(w+N)/2),D<F&&(F=D=(F+D)/2),y.x0=w,y.y0=F,y.x1=N,y.y1=D,y.children&&(A=o[y.depth+1]=s(y)/2,w+=d(y)-A,F+=i(y)-A,N-=l(y)-A,D-=c(y)-A,N<w&&(w=N=(w+N)/2),D<F&&(F=D=(F+D)/2),t(y,w,F,N,D))}return g.round=function(y){return arguments.length?(e=!!y,g):e},g.size=function(y){return arguments.length?(r=+y[0],a=+y[1],g):[r,a]},g.tile=function(y){return arguments.length?(t=Af(y),g):t},g.padding=function(y){return arguments.length?g.paddingInner(y).paddingOuter(y):g.paddingInner()},g.paddingInner=function(y){return arguments.length?(s=typeof y=="function"?y:Ha(+y),g):s},g.paddingOuter=function(y){return arguments.length?g.paddingTop(y).paddingRight(y).paddingBottom(y).paddingLeft(y):g.paddingTop()},g.paddingTop=function(y){return arguments.length?(i=typeof y=="function"?y:Ha(+y),g):i},g.paddingRight=function(y){return arguments.length?(l=typeof y=="function"?y:Ha(+y),g):l},g.paddingBottom=function(y){return arguments.length?(c=typeof y=="function"?y:Ha(+y),g):c},g.paddingLeft=function(y){return arguments.length?(d=typeof y=="function"?y:Ha(+y),g):d},g}function Ef(t,e,r,a,o){var s=t.children,i,l=s.length,c,d=new Array(l+1);for(d[0]=c=i=0;i<l;++i)d[i+1]=c+=s[i].value;g(0,l,t.value,e,r,a,o);function g(p,y,A,w,F,N,D){if(p>=y-1){var K=s[p];K.x0=w,K.y0=F,K.x1=N,K.y1=D;return}for(var J=d[p],W=A/2+J,rt=p+1,Q=y-1;rt<Q;){var ot=rt+Q>>>1;d[ot]<W?rt=ot+1:Q=ot}W-d[rt-1]<d[rt]-W&&p+1<rt&&--rt;var vt=d[rt]-J,$t=A-vt;if(N-w>D-F){var Tt=A?(w*$t+N*vt)/A:N;g(p,rt,vt,w,F,Tt,D),g(rt,y,$t,Tt,F,N,D)}else{var yt=A?(F*$t+D*vt)/A:D;g(p,rt,vt,w,F,N,yt),g(rt,y,$t,w,yt,N,D)}}}function h1(t,e,r,a,o){(t.depth&1?rs:ns)(t,e,r,a,o)}var v1=(function t(e){function r(a,o,s,i,l){if((c=a._squarify)&&c.ratio===e)for(var c,d,g,p,y=-1,A,w=c.length,F=a.value;++y<w;){for(d=c[y],g=d.children,p=d.value=0,A=g.length;p<A;++p)d.value+=g[p].value;d.dice?ns(d,o,s,i,F?s+=(l-s)*d.value/F:l):rs(d,o,s,F?o+=(i-o)*d.value/F:i,l),F-=d.value}else a._squarify=c=Sf(e,a,o,s,i,l),c.ratio=e}return r.ratio=function(a){return t((a=+a)>1?a:1)},r})(Tf);function g1(t,e){const r=this,{scale:{x:a,y:o},state:{width:s}}=r;t.selectAll("g").attr("transform",i=>`translate(${i===e?"0,0":`${a(i.x0)},${o(i.y0)}`})`).select("rect").attr("width",i=>i===e?s:a(i.x1)-a(i.x0)).attr("height",i=>i===e?0:o(i.y1)-o(i.y0))}function p1(t){const e=this;return t.map(r=>{const{id:a,values:o}=r,{value:s}=o[0];return{name:a,id:a,value:s,ratio:e.getRatio("treemap",o[0])}})}function m1(t){const e=this,r=Mi(t).sum(o=>o.value),a=e.getSortCompareFn(!0);return[e.treemap(a?r.sort(a):r)]}var y1={initTreemap(){const t=this,{$el:e,state:{current:{width:r,height:a},clip:o,datetimeId:s}}=t;o.id=`${s}-clip`,t.treemap=d1().tile(t.getTreemapTile()),e.defs.append("clipPath").attr("id",o.id).append("rect").attr("width",r).attr("height",a),e.treemap=e.main.select(`.${Ee.chart}`).attr("clip-path",`url(#${o.id})`).append("g").classed(rl.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:r,state:a}=t,o=s=>{var i;const l=s.isTrusted?s.target:(i=a.eventReceiver.rect)==null?void 0:i.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c==null?void 0:c.data};if(r.interaction_enabled){const s=a.inputType==="touch";e.treemap.on(s?"touchstart":"mouseover mousemove",i=>{const l=o(i);l&&(t.showTooltip([l],i.currentTarget),/^(touchstart|mouseover)$/.test(i.type)&&t.setOverOut(!0,l))},s?{passive:!0}:void 0).on(s?"touchend":"mouseout",i=>{const l=o(i);r.interaction_onout&&(t.hideTooltip(),t.setOverOut(!1,l))})}},getTreemapTile(){var t,e;const r=this,{config:a,state:{current:{width:o,height:s}}}=r,i=(e={binary:Ef,dice:ns,slice:rs,sliceDice:h1,squarify:$f,resquarify:v1}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:Ef;return(l,c,d,g,p)=>{i(l,0,0,o,s);for(const y of l.children)y.x0=c+y.x0/o*(g-c),y.x1=c+y.x1/o*(g-c),y.y0=d+y.y0/s*(p-d),y.y1=d+y.y1/s*(p-d)}},getTreemapData(t){const e=this;return{name:"root",children:p1.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:r}}=e,a=m1.call(e,e.getTreemapData(t!=null?t:e.data.targets));r.data(e.filterNullish(a))},updateTreemap(t){const e=this,{$el:r,$T:a}=e,o=r.treemap.datum(),s=e.getChartClass("Treemap"),i=e.getClass("treemap",!0),l=r.treemap.selectAll("g").data(o.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),r.treemap.selectAll("g").attr("class",s).select("rect").attr("class",i).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:r,y:a}}=t,o={};return e.treemap.selectAll("g").each(s=>{o[s.data.name]=[[r(s.x0),a(s.y0)],[r(s.x1),a(s.y1)]]}),s=>o[s.id]},redrawTreemap(t){const e=this,{$el:r,state:{current:{width:a,height:o}}}=e;return r.defs.select("rect").attr("width",a).attr("height",o),[e.$T(r.treemap,t,ar()).call(g1.bind(e),r.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{$el:{treemap:r},config:a,scale:{x:o,y:s}}=e,{id:i,value:l}=t,c=a.treemap_label_format,d=e.getRatio("treemap",t),g=(d*100).toFixed(2),p=a.treemap_label_show&&di.call(e,d,"treemap")?null:"0",y=r.selectAll("g").filter(F=>F.data.id===i).datum();let A=0,w=0;if(y){const{x0:F,x1:N,y0:D,y1:K}=y;A=o(N)-o(F),w=s(K)-s(D)}return function(F){return F.style("opacity",p),de(c)?c.bind(e.api)(l,d,i,{width:A,height:w}):`${i}
|
|
61
|
+
${g}%`}}},Wr={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"},ga={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},x1={bar_connectLine:!1,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},T1={bubble_maxR:35,bubble_zerobased:!1},S1={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},$1={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},A1={scatter_zerobased:!1},wi={spline_interpolation_type:"cardinal"},as={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},E1={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_line:!1,donut_label_image:void 0,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},I1={funnel_neck_width:0,funnel_neck_height:0},R1={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_label_line:!1,gauge_label_image:void 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},b1={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,pie_label_line:!1,pie_label_image:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},O1={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_line:!1,polar_label_image:void 0,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},C1={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},P1={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function pa(t,e){$n(Xr.prototype,Object.values(Zu).concat(t)),$n(Rr.prototype,Ux),Br.setOptions(Object.values(Ju).concat(e||[]))}function yr(t,e){pa([ha,ts,z0].concat(t||[])),Br.setOptions([Wr,$1].concat(e||[]))}function ma(t,e){$n(Xr.prototype,[h0,ha].concat(t||[])),Br.setOptions([Wr].concat(e||[]))}let If=()=>(yr(fa,[ga]),(If=()=>fe.AREA)()),Rf=()=>(yr(fa,[ga]),(Rf=()=>fe.AREA_LINE_RANGE)()),bf=()=>(yr(fa,[ga]),(bf=()=>fe.AREA_STEP_RANGE)()),Of=()=>(yr(fa,[ga,wi]),(Of=()=>fe.AREA_SPLINE)()),Cf=()=>(yr(fa,[ga,wi]),(Cf=()=>fe.AREA_SPLINE_RANGE)()),Pf=()=>(yr(fa,[ga]),(Pf=()=>fe.AREA_STEP)()),Mf=()=>(yr(),(Mf=()=>fe.LINE)()),wf=()=>(yr(void 0,[wi]),(wf=()=>fe.SPLINE)()),Df=()=>(yr(),(Df=()=>fe.STEP)()),Nf=()=>(ma(void 0,[as,E1]),(Nf=()=>fe.DONUT)()),Lf=()=>(ma([C0],[as,R1]),(Lf=()=>fe.GAUGE)()),Ff=()=>(ma(void 0,[as,b1]),(Ff=()=>fe.PIE)()),Bf=()=>(ma([V0],[as,O1]),(Bf=()=>fe.POLAR)()),Uf=()=>(ma([Zu.eventrect,ts,H0],[Wr,C1,{axis_x_categories:Ju.optAxis.axis_x_categories}]),(Uf=()=>fe.RADAR)()),zf=()=>(pa([g0,ha],[x1,Wr]),(zf=()=>fe.BAR)()),jf=()=>(pa([ha,ts,p0],[T1,Wr]),(jf=()=>fe.BUBBLE)()),Gf=()=>(pa([S0,ha],[S1,Wr]),(Gf=()=>fe.CANDLESTICK)()),Vf=()=>(pa([ha,ts],[Wr,A1]),(Vf=()=>fe.SCATTER)()),Xf=()=>(ma([O0],[I1]),(Xf=()=>fe.FUNNEL)()),Hf=()=>(pa([y1],[P1]),(Hf=()=>fe.TREEMAP)()),Di=Object.create(null);const Wf={version:"3.18.0",generate(t){const e=oa(Object.create(null),Di,t),r=new Rr(e);return r.internal.charts=this.instance,this.instance.push(r),r},defaults(t){return Ge(t)&&(Di=t),Di},instance:[],plugin:{}};Object.keys(f).forEach(t=>f[t]()),Object.keys(u).forEach(t=>u[t]())})],Ya={};function Vn(x){var I=Ya[x];if(I!==void 0)return I.exports;var n=Ya[x]={exports:{}};return Ni[x].call(n.exports,n,n.exports,Vn),n.exports}(function(){Vn.d=function(x,I){for(var n in I)Vn.o(I,n)&&!Vn.o(x,n)&&Object.defineProperty(x,n,{enumerable:!0,get:I[n]})}})(),(function(){Vn.o=function(x,I){return Object.prototype.hasOwnProperty.call(x,I)}})(),(function(){Vn.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}})(),Vn(0);var Ka=Vn(628);return Ka})()});
|