billboard.js 2.2.7 → 2.2.8-a
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/CHANGELOG.md +1 -1
- package/dist/billboard.css +1 -1
- package/dist/billboard.js +3 -3
- package/dist/billboard.min.css +1 -1
- package/dist/billboard.min.js +2 -2
- package/dist/{billboard.esm.js → billboard.mjs} +3 -3
- package/dist/billboard.pkgd.js +1693 -1286
- package/dist/billboard.pkgd.min.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
- package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
- package/dist/plugin/{billboardjs-plugin-bubblecompare.esm.js → billboardjs-plugin-bubblecompare.mjs} +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
- package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
- package/dist/plugin/{billboardjs-plugin-stanford.esm.js → billboardjs-plugin-stanford.mjs} +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
- package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
- package/dist/plugin/{billboardjs-plugin-textoverlap.esm.js → billboardjs-plugin-textoverlap.mjs} +2 -2
- 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/package.json +2 -2
- package/src/.DS_Store +0 -0
- package/src/ChartInternal/.DS_Store +0 -0
- package/src/ChartInternal/shape/.DS_Store +0 -0
- package/src/Plugin/.DS_Store +0 -0
- package/src/config/.DS_Store +0 -0
- package/src/config/Options/.DS_Store +0 -0
- package/src/config/Store/.DS_Store +0 -0
- package/types/.DS_Store +0 -0
- package/types/plugin/.DS_Store +0 -0
- package/dist/billboard.js.map +0 -1
- package/dist/package.json +0 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* billboard.js, JavaScript chart library
|
|
6
6
|
* https://naver.github.io/billboard.js/
|
|
7
7
|
*
|
|
8
|
-
* @version 2.2.
|
|
8
|
+
* @version 2.2.8a
|
|
9
9
|
*
|
|
10
10
|
* All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills.
|
|
11
11
|
* - d3-axis ^1.0.12
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* - d3-transition ^1.3.2
|
|
23
23
|
* - d3-zoom ^1.8.3
|
|
24
24
|
*/
|
|
25
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(){var t=[function(t,e,n){n(1),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(112),n(123),n(125),n(135),n(136),n(138),n(141),n(144),n(146),n(148),n(149),n(150),n(151),n(153),n(154),n(156),n(157),n(159),n(163),n(164),n(165),n(166),n(171),n(172),n(174),n(175),n(176),n(178),n(181),n(182),n(183),n(184),n(185),n(190),n(192),n(193),n(194),n(195),n(196),n(203),n(205),n(208),n(210),n(211),n(212),n(213),n(214),n(218),n(219),n(221),n(222),n(223),n(225),n(226),n(227),n(94),n(228),n(229),n(237),n(239),n(240),n(241),n(243),n(244),n(246),n(247),n(249),n(250),n(251),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(264),n(265),n(267),n(269),n(270),n(271),n(272),n(273),n(275),n(277),n(278),n(279),n(280),n(282),n(283),n(285),n(286),n(287),n(288),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(308),n(309),n(310),n(312),n(313),n(314),n(315),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(363),n(364),n(366),n(367),n(368),n(369),n(370),n(372),n(373),n(375),n(378),n(379),n(380),n(381),n(385),n(386),n(388),n(389),n(390),n(391),n(393),n(394),n(395),n(396),n(397),n(398),n(400),n(403),n(406),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(472),n(474),n(476),n(477),n(480),n(481),n(484),n(485),n(486),n(491),n(492),n(493),n(496),n(499),n(504),n(505),n(81)},function(t,e,n){n(2),n(91),n(93),n(94),n(97)},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(8),o=n(14),s=n(36),u=n(6),c=n(27),l=n(7),f=n(39),h=n(25),d=n(47),g=n(12),p=n(18),v=n(69),y=n(11),x=n(72),_=n(74),m=n(58),b=n(76),w=n(67),T=n(5),A=n(45),S=n(73),E=n(10),M=n(48),k=n(35),O=n(54),R=n(55),C=n(41),I=n(34),L=n(79),D=n(80),P=n(82),F=n(83),N=n(52),z=n(84).forEach,X=O("hidden"),B="Symbol",j="prototype",U=N.set,$=N.getterFor(B),Y=Object[j],V=i.Symbol,G=V&&V[j],H=i.TypeError,W=i.QObject,q=T.f,Z=A.f,K=b.f,J=E.f,Q=o([].push),tt=k("symbols"),et=k("op-symbols"),nt=k("wks"),rt=!W||!W[j]||!W[j].findChild,it=u&&l((function(){return 7!=x(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=q(Y,e);r&&delete Y[e],Z(t,e,n),r&&t!==Y&&Z(Y,e,r)}:Z,at=function(t,e){var n=tt[t]=x(G);return U(n,{type:B,tag:t,description:e}),u||(n.description=e),n},ot=function(t,e,n){t===Y&&ot(et,e,n),d(t);var r=p(e);return d(n),f(tt,r)?(n.enumerable?(f(t,X)&&t[X][r]&&(t[X][r]=!1),n=x(n,{enumerable:y(0,!1)})):(f(t,X)||Z(t,X,y(1,{})),t[X][r]=!0),it(t,r,n)):Z(t,r,n)},st=function(t,e){d(t);var n=g(e),r=_(n).concat(ft(n));return z(r,(function(e){u&&!a(ut,n,e)||ot(t,e,n[e])})),t},ut=function(t){var e=p(t),n=a(J,this,e);return!(this===Y&&f(tt,e)&&!f(et,e))&&(!(n||!f(this,e)||!f(tt,e)||f(this,X)&&this[X][e])||n)},ct=function(t,e){var n=g(t),r=p(e);if(n!==Y||!f(tt,r)||f(et,r)){var i=q(n,r);return!i||!f(tt,r)||f(n,X)&&n[X][r]||(i.enumerable=!0),i}},lt=function(t){var e=K(g(t)),n=[];return z(e,(function(t){f(tt,t)||f(R,t)||Q(n,t)})),n},ft=function(t){var e=t===Y,n=K(e?et:g(t)),r=[];return z(n,(function(t){!f(tt,t)||e&&!f(Y,t)||Q(r,tt[t])})),r};c||(V=function(){if(h(G,this))throw H("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=C(t),n=function(t){this===Y&&a(n,et,t),f(this,X)&&f(this[X],e)&&(this[X][e]=!1),it(this,e,y(1,t))};return u&&rt&&it(Y,e,{configurable:!0,set:n}),at(e,t)},M(G=V[j],"toString",(function(){return $(this).tag})),M(V,"withoutSetter",(function(t){return at(C(t),t)})),E.f=ut,A.f=ot,S.f=st,T.f=ct,m.f=b.f=lt,w.f=ft,L.f=function(t){return at(I(t),t)},u&&(Z(G,"description",{configurable:!0,get:function(){return $(this).description}}),s||M(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:V}),z(_(nt),(function(t){D(t)})),r({target:B,stat:!0,forced:!c},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?x(t):st(x(t),e)},defineProperty:ot,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:lt}),P(),F(V,B),R[X]=!0},function(t,e,n){var r=n(4),i=n(5).f,a=n(44),o=n(48),s=n(38),u=n(56),c=n(68);t.exports=function(t,e){var n,l,f,h,d,g=t.target,p=t.global,v=t.stat;if(n=p?r:v?r[g]||s(g,{}):(r[g]||{}).prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&a(h,"sham",!0),o(n,l,h,t)}}},function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(t,e,n){var r=n(6),i=n(8),a=n(10),o=n(11),s=n(12),u=n(18),c=n(39),l=n(42),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},function(t,e,n){var r=n(7);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(9),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){var r=n(7);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(13),i=n(16);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(14),i=n(7),a=n(15),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},function(t,e,n){var r=n(9),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(t){return function(){return a.apply(t,arguments)}}},function(t,e,n){var r=n(14),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},function(t,e,n){var r=n(17),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},function(t){t.exports=function(t){return null==t}},function(t,e,n){var r=n(19),i=n(23);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(8),i=n(20),a=n(23),o=n(30),s=n(33),u=n(34),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var n,u=o(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e,n){var r=n(21),i=n(22),a=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===a}:function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(22),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},function(t,e,n){var r=n(24),i=n(21),a=n(25),o=n(26),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&a(e.prototype,s(t))}},function(t,e,n){var r=n(4),i=n(21),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(r[t]):r[t]&&r[t][e]}},function(t,e,n){var r=n(14);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(27);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(28),i=n(7);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,i,a=n(4),o=n(29),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){var r=n(31),i=n(17);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},function(t,e,n){var r=n(21),i=n(32),a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(8),i=n(21),a=n(20),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!a(s=r(n,t)))return s;if(i(n=t.valueOf)&&!a(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!a(s=r(n,t)))return s;throw o("Can't convert object to primitive value")}},function(t,e,n){var r=n(4),i=n(35),a=n(39),o=n(41),s=n(27),u=n(26),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:f("Symbol."+t)),l[t]}},function(t,e,n){var r=n(36),i=n(37);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.27.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){t.exports=!1},function(t,e,n){var r=n(4),i=n(38),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},function(t,e,n){var r=n(4),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(14),i=n(40),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},function(t,e,n){var r=n(16),i=Object;t.exports=function(t){return i(r(t))}},function(t,e,n){var r=n(14),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},function(t,e,n){var r=n(6),i=n(7),a=n(43);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(4),i=n(20),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var r=n(6),i=n(45),a=n(11);t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(6),i=n(42),a=n(46),o=n(47),s=n(18),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?a?function(t,e,n){if(o(t),e=s(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=s(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(6),i=n(7);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var r=n(20),i=String,a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},function(t,e,n){var r=n(21),i=n(45),a=n(49),o=n(38);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&a(n,c,s),s.global)u?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){var r=n(14),i=n(7),a=n(21),o=n(39),s=n(6),u=n(50).CONFIGURABLE,c=n(51),l=n(52),f=l.enforce,h=l.get,d=String,g=Object.defineProperty,p=r("".slice),v=r("".replace),y=r([].join),x=s&&!i((function(){return 8!==g((function(){}),"length",{value:8}).length})),_=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===p(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?g(t,"name",{value:e,configurable:!0}):t.name=e),x&&n&&o(n,"arity")&&t.length!==n.arity&&g(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return o(r,"source")||(r.source=y(_,"string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return a(this)&&h(this).source||c(this)}),"toString")},function(t,e,n){var r=n(6),i=n(39),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var r=n(14),i=n(21),a=n(37),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){var r,i,a,o=n(53),s=n(4),u=n(20),c=n(44),l=n(39),f=n(37),h=n(54),d=n(55),g="Object already initialized",p=s.TypeError,v=s.WeakMap;if(o||f.state){var y=f.state||(f.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw p(g);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},a=function(t){return y.has(t)}}else{var x=h("state");d[x]=!0,r=function(t,e){if(l(t,x))throw p(g);return e.facade=t,c(t,x,e),e},i=function(t){return l(t,x)?t[x]:{}},a=function(t){return l(t,x)}}t.exports={set:r,get:i,has:a,enforce:function(t){return a(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(4),i=n(21),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},function(t,e,n){var r=n(35),i=n(41),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},function(t){t.exports={}},function(t,e,n){var r=n(39),i=n(57),a=n(5),o=n(45);t.exports=function(t,e,n){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},function(t,e,n){var r=n(24),i=n(14),a=n(58),o=n(67),s=n(47),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?u(e,n(t)):e}},function(t,e,n){var r=n(59),i=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(14),i=n(39),a=n(12),o=n(60).indexOf,s=n(55),u=r([].push);t.exports=function(t,e){var n,r=a(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(l,n)||u(l,n));return l}},function(t,e,n){var r=n(12),i=n(61),a=n(64),o=function(t){return function(e,n,o){var s,u=r(e),c=a(u),l=i(o,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},function(t,e,n){var r=n(62),i=Math.max,a=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):a(n,e)}},function(t,e,n){var r=n(63);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},function(t,e,n){var r=n(65);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(62),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(7),i=n(21),a=/#|\.prototype\./,o=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){var r=n(70),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e,n){var r=n(71),i=n(21),a=n(15),o=n(34)("toStringTag"),s=Object,u="Arguments"==a(function(){return arguments}());t.exports=r?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),o))?n:u?a(e):"Object"==(r=a(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r={};r[n(34)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r,i=n(47),a=n(73),o=n(66),s=n(55),u=n(75),c=n(43),l=n(54),f="prototype",h="script",d=l("IE_PROTO"),g=function(){},p=function(t){return"<"+h+">"+t+"</"+h+">"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?v(r):(e=c("iframe"),n="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(r);for(var i=o.length;i--;)delete y[f][o[i]];return y()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[f]=i(t),n=new g,g[f]=null,n[d]=t):n=y(),void 0===e?n:a.f(n,e)}},function(t,e,n){var r=n(6),i=n(46),a=n(45),o=n(47),s=n(12),u=n(74);e.f=r&&!i?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,n=i[l++],r[n]);return t}},function(t,e,n){var r=n(59),i=n(66);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(24);t.exports=r("document","documentElement")},function(t,e,n){var r=n(15),i=n(12),a=n(58).f,o=n(77),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},function(t,e,n){var r=n(61),i=n(64),a=n(78),o=Array,s=Math.max;t.exports=function(t,e,n){for(var u=i(t),c=r(e,u),l=r(void 0===n?u:n,u),f=o(s(l-c,0)),h=0;c<l;c++,h++)a(f,h,t[c]);return f.length=h,f}},function(t,e,n){"use strict";var r=n(18),i=n(45),a=n(11);t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,a(0,n)):t[o]=n}},function(t,e,n){var r=n(34);e.f=r},function(t,e,n){var r=n(81),i=n(39),a=n(79),o=n(45).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(4);t.exports=r},function(t,e,n){var r=n(8),i=n(24),a=n(34),o=n(48);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=a("toPrimitive");e&&!e[s]&&o(e,s,(function(t){return r(n,this)}),{arity:1})}},function(t,e,n){var r=n(45).f,i=n(39),a=n(34)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(85),i=n(14),a=n(13),o=n(40),s=n(64),u=n(87),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(g,p,v,y){for(var x,_,m=o(g),b=a(m),w=r(p,v),T=s(b),A=0,S=y||u,E=e?S(g,T):n||h?S(g,0):void 0;T>A;A++)if((d||A in b)&&(_=w(x=b[A],A,m),t))if(e)E[A]=_;else if(_)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(E,x)}else switch(t){case 4:return!1;case 7:c(E,x)}return f?-1:i||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(86),i=n(31),a=n(9),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(15),i=n(14);t.exports=function(t){if("Function"===r(t))return i(t)}},function(t,e,n){var r=n(88);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(89),i=n(90),a=n(20),o=n(34)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?s:e}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(14),i=n(7),a=n(21),o=n(70),s=n(24),u=n(51),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),g=!h.exec(c),p=function(t){if(!a(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(h,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},function(t,e,n){var r=n(3),i=n(24),a=n(39),o=n(69),s=n(35),u=n(92),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=o(t);if(a(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},function(t,e,n){var r=n(27);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,n){var r=n(3),i=n(39),a=n(23),o=n(32),s=n(35),u=n(92),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(i(c,t))return c[t]}})},function(t,e,n){var r=n(3),i=n(24),a=n(95),o=n(8),s=n(14),u=n(7),c=n(89),l=n(21),f=n(20),h=n(23),d=n(96),g=n(27),p=i("JSON","stringify"),v=s(/./.exec),y=s("".charAt),x=s("".charCodeAt),_=s("".replace),m=s(1..toString),b=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,A=!g||u((function(){var t=i("Symbol")();return"[null]"!=p([t])||"{}"!=p({a:t})||"{}"!=p(Object(t))})),S=u((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),E=function(t,e){var n=d(arguments),r=e;if((f(e)||void 0!==t)&&!h(t))return c(e)||(e=function(t,e){if(l(r)&&(e=o(r,this,t,e)),!h(e))return e}),n[1]=e,a(p,null,n)},M=function(t,e,n){var r=y(n,e-1),i=y(n,e+1);return v(w,t)&&!v(T,i)||v(T,t)&&!v(w,r)?"\\u"+m(x(t,0),16):t};p&&r({target:"JSON",stat:!0,arity:3,forced:A||S},{stringify:function(t,e,n){var r=d(arguments),i=a(A?E:p,null,r);return S&&"string"==typeof i?_(i,b,M):i}})},function(t,e,n){var r=n(9),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},function(t,e,n){var r=n(14);t.exports=r([].slice)},function(t,e,n){var r=n(3),i=n(27),a=n(7),o=n(67),s=n(40);r({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(s(t)):[]}})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(4),o=n(14),s=n(39),u=n(21),c=n(25),l=n(69),f=n(45).f,h=n(56),d=a.Symbol,g=d&&d.prototype;if(i&&u(d)&&(!("description"in g)||void 0!==d().description)){var p={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(g,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};h(v,d),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(d("test")),x=o(g.valueOf),_=o(g.toString),m=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),w=o("".slice);f(g,"description",{configurable:!0,get:function(){var t=x(this);if(s(p,t))return"";var e=_(t),n=y?w(e,7,-1):b(e,m,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(80)("asyncIterator")},function(t,e,n){n(80)("hasInstance")},function(t,e,n){n(80)("isConcatSpreadable")},function(t,e,n){n(80)("iterator")},function(t,e,n){n(80)("match")},function(t,e,n){n(80)("matchAll")},function(t,e,n){n(80)("replace")},function(t,e,n){n(80)("search")},function(t,e,n){n(80)("species")},function(t,e,n){n(80)("split")},function(t,e,n){var r=n(80),i=n(82);r("toPrimitive"),i()},function(t,e,n){var r=n(24),i=n(80),a=n(83);i("toStringTag"),a(r("Symbol"),"Symbol")},function(t,e,n){n(80)("unscopables")},function(t,e,n){var r=n(3),i=n(4),a=n(95),o=n(113),s="WebAssembly",u=i[s],c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=o(s+"."+t,e,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},function(t,e,n){"use strict";var r=n(24),i=n(39),a=n(44),o=n(25),s=n(114),u=n(56),c=n(116),l=n(117),f=n(118),h=n(119),d=n(120),g=n(6),p=n(36);t.exports=function(t,e,n,v){var y="stackTraceLimit",x=v?2:1,_=t.split("."),m=_[_.length-1],b=r.apply(null,_);if(b){var w=b.prototype;if(!p&&i(w,"cause")&&delete w.cause,!n)return b;var T=r("Error"),A=e((function(t,e){var n=f(v?e:t,void 0),r=v?new b(t):new b;return void 0!==n&&a(r,"message",n),d(r,A,r.stack,2),this&&o(w,this)&&l(r,this,A),arguments.length>x&&h(r,arguments[x]),r}));if(A.prototype=w,"Error"!==m?s?s(A,T):u(A,T,{name:!0}):g&&y in b&&(c(A,b,y),c(A,b,"prepareStackTrace")),u(A,b),!p)try{w.name!==m&&a(w,"name",m),w.constructor=A}catch(t){}return A}}},function(t,e,n){var r=n(14),i=n(47),a=n(115);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(21),i=String,a=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},function(t,e,n){var r=n(45).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},function(t,e,n){var r=n(21),i=n(20),a=n(114);t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},function(t,e,n){var r=n(69);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(20),i=n(44);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},function(t,e,n){var r=n(44),i=n(121),a=n(122),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):r(t,"stack",i(n,s)))}},function(t,e,n){var r=n(14),i=Error,a=r("".replace),o=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=a(t,s,"");return t}},function(t,e,n){var r=n(7),i=n(11);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},function(t,e,n){var r=n(48),i=n(124),a=Error.prototype;a.toString!==i&&r(a,"toString",i)},function(t,e,n){"use strict";var r=n(6),i=n(7),a=n(47),o=n(72),s=n(118),u=Error.prototype.toString,c=i((function(){if(r){var t=o(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==u.call(t))return!0}return"2: 1"!==u.call({message:1,name:2})||"Error"!==u.call({})}));t.exports=c?function(){var t=a(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:u},function(t,e,n){n(126)},function(t,e,n){"use strict";var r=n(3),i=n(25),a=n(127),o=n(114),s=n(56),u=n(72),c=n(44),l=n(11),f=n(119),h=n(120),d=n(129),g=n(118),p=n(34)("toStringTag"),v=Error,y=[].push,x=function(t,e){var n,r=i(_,this);o?n=o(v(),r?a(this):_):(n=r?this:u(_),c(n,p,"Error")),void 0!==e&&c(n,"message",g(e)),h(n,x,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return d(t,y,{that:s}),c(n,"errors",s),n};o?o(x,v):s(x,v,{name:!0});var _=x.prototype=u(v.prototype,{constructor:l(1,x),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:x})},function(t,e,n){var r=n(39),i=n(21),a=n(40),o=n(54),s=n(128),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},function(t,e,n){var r=n(7);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(85),i=n(8),a=n(47),o=n(32),s=n(130),u=n(64),c=n(25),l=n(132),f=n(133),h=n(134),d=TypeError,g=function(t,e){this.stopped=t,this.result=e},p=g.prototype;t.exports=function(t,e,n){var v,y,x,_,m,b,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),k=r(e,T),O=function(t){return v&&h(v,"normal",t),new g(!0,t)},R=function(t){return A?(a(t),M?k(t[0],t[1],O):k(t[0],t[1])):M?k(t,O):k(t)};if(S)v=t.iterator;else if(E)v=t;else{if(!(y=f(t)))throw d(o(t)+" is not iterable");if(s(y)){for(x=0,_=u(t);_>x;x++)if((m=R(t[x]))&&c(p,m))return m;return new g(!1)}v=l(t,y)}for(b=S?t.next:v.next;!(w=i(b,v)).done;){try{m=R(w.value)}catch(t){h(v,"throw",t)}if("object"==typeof m&&m&&c(p,m))return m}return new g(!1)}},function(t,e,n){var r=n(34),i=n(131),a=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},function(t){t.exports={}},function(t,e,n){var r=n(8),i=n(31),a=n(47),o=n(32),s=n(133),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return a(r(n,t));throw u(o(t)+" is not iterable")}},function(t,e,n){var r=n(70),i=n(30),a=n(17),o=n(131),s=n(34)("iterator");t.exports=function(t){if(!a(t))return i(t,s)||i(t,"@@iterator")||o[r(t)]}},function(t,e,n){var r=n(8),i=n(47),a=n(30);t.exports=function(t,e,n){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw n;if(s)throw o;return i(o),n}},function(t,e,n){var r=n(3),i=n(24),a=n(95),o=n(7),s=n(113),u="AggregateError",c=i(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return a(t,this,arguments)}}),l,!0)})},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(64),o=n(62),s=n(137);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=a(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},function(t,e,n){var r=n(34),i=n(72),a=n(45).f,o=r("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(89),o=n(20),s=n(40),u=n(64),c=n(139),l=n(78),f=n(87),h=n(140),d=n(34),g=n(28),p=d("isConcatSpreadable"),v=g>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,arity:1,forced:!v||!h("concat")},{concat:function(t){var e,n,r,i,a,o=s(this),h=f(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(y(a=-1===e?o:arguments[e]))for(i=u(a),c(d+i),n=0;n<i;n++,d++)n in a&&l(h,d,a[n]);else c(d+1),l(h,d++,a);return h.length=d,h}})},function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},function(t,e,n){var r=n(7),i=n(34),a=n(28),o=i("species");t.exports=function(t){return a>=51||!r((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(3),i=n(142),a=n(137);r({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},function(t,e,n){"use strict";var r=n(40),i=n(61),a=n(64),o=n(143),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=a(n),c=i(t,u),l=i(e,u),f=arguments.length>2?arguments[2]:void 0,h=s((void 0===f?u:i(f,u))-l,u-c),d=1;for(l<c&&c<l+h&&(d=-1,l+=h-1,c+=h-1);h-- >0;)l in n?n[c]=n[l]:o(n,c),c+=d,l+=d;return n}},function(t,e,n){"use strict";var r=n(32),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},function(t,e,n){"use strict";var r=n(3),i=n(84).every;r({target:"Array",proto:!0,forced:!n(145)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){var r=n(3),i=n(147),a=n(137);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(t,e,n){"use strict";var r=n(40),i=n(61),a=n(64);t.exports=function(t){for(var e=r(this),n=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(3),i=n(84).filter;r({target:"Array",proto:!0,forced:!n(140)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(84).find,a=n(137),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(3),i=n(84).findIndex,a=n(137),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(3),i=n(152).findLast,a=n(137);r({target:"Array",proto:!0},{findLast:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},function(t,e,n){var r=n(85),i=n(13),a=n(40),o=n(64),s=function(t){var e=1==t;return function(n,s,u){for(var c,l=a(n),f=i(l),h=r(s,u),d=o(f);d-- >0;)if(h(c=f[d],d,l))switch(t){case 0:return c;case 1:return d}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},function(t,e,n){"use strict";var r=n(3),i=n(152).findLastIndex,a=n(137);r({target:"Array",proto:!0},{findLastIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},function(t,e,n){"use strict";var r=n(3),i=n(155),a=n(40),o=n(64),s=n(62),u=n(87);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),n=o(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},function(t,e,n){"use strict";var r=n(89),i=n(64),a=n(139),o=n(85),s=function(t,e,n,u,c,l,f,h){for(var d,g,p=c,v=0,y=!!f&&o(f,h);v<u;)v in n&&(d=y?y(n[v],v,e):n[v],l>0&&r(d)?(g=i(d),p=s(t,e,d,g,p,l-1)-1):(a(p+1),t[p]=d),p++),v++;return p};t.exports=s},function(t,e,n){"use strict";var r=n(3),i=n(155),a=n(31),o=n(40),s=n(64),u=n(87);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),r=s(n);return a(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(3),i=n(158);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,n){"use strict";var r=n(84).forEach,i=n(145)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(3),i=n(160);r({target:"Array",stat:!0,forced:!n(162)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){"use strict";var r=n(85),i=n(8),a=n(40),o=n(161),s=n(130),u=n(90),c=n(64),l=n(78),f=n(132),h=n(133),d=Array;t.exports=function(t){var e=a(t),n=u(this),g=arguments.length,p=g>1?arguments[1]:void 0,v=void 0!==p;v&&(p=r(p,g>2?arguments[2]:void 0));var y,x,_,m,b,w,T=h(e),A=0;if(!T||this===d&&s(T))for(y=c(e),x=n?new this(y):d(y);y>A;A++)w=v?p(e[A],A):e[A],l(x,A,w);else for(b=(m=f(e,T)).next,x=n?new this:[];!(_=i(b,m)).done;A++)w=v?o(m,p,[_.value,A],!0):_.value,l(x,A,w);return x.length=A,x}},function(t,e,n){var r=n(47),i=n(134);t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(34)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3),i=n(60).includes,a=n(7),o=n(137);r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){"use strict";var r=n(3),i=n(86),a=n(60).indexOf,o=n(145),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!o("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},function(t,e,n){n(3)({target:"Array",stat:!0},{isArray:n(89)})},function(t,e,n){"use strict";var r=n(12),i=n(137),a=n(131),o=n(52),s=n(45).f,u=n(167),c=n(170),l=n(36),f=n(6),h="Array Iterator",d=o.set,g=o.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=g(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var p=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(36),o=n(50),s=n(21),u=n(168),c=n(127),l=n(114),f=n(83),h=n(44),d=n(48),g=n(34),p=n(131),v=n(169),y=o.PROPER,x=o.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,b=g("iterator"),w="keys",T="values",A="entries",S=function(){return this};t.exports=function(t,e,n,o,g,v,E){u(n,e,o);var M,k,O,R=function(t){if(t===g&&P)return P;if(!m&&t in L)return L[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,L=t.prototype,D=L[b]||L["@@iterator"]||g&&L[g],P=!m&&D||R(g),F="Array"==e&&L.entries||D;if(F&&(M=c(F.call(new t)))!==Object.prototype&&M.next&&(a||c(M)===_||(l?l(M,_):s(M[b])||d(M,b,S)),f(M,C,!0,!0),a&&(p[C]=S)),y&&g==T&&D&&D.name!==T&&(!a&&x?h(L,"name",T):(I=!0,P=function(){return i(D,this)})),g)if(k={values:R(T),keys:v?P:R(w),entries:R(A)},E)for(O in k)(m||I||!(O in L))&&d(L,O,k[O]);else r({target:e,proto:!0,forced:m||I},k);return a&&!E||L[b]===P||d(L,b,P,{name:g}),p[e]=P,k}},function(t,e,n){"use strict";var r=n(169).IteratorPrototype,i=n(72),a=n(11),o=n(83),s=n(131),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:a(+!c,n)}),o(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var r,i,a,o=n(7),s=n(21),u=n(20),c=n(72),l=n(127),f=n(48),h=n(34),d=n(36),g=h("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=l(l(a)))!==Object.prototype&&(r=i):p=!0),!u(r)||o((function(){var t={};return r[g].call(t)!==t}))?r={}:d&&(r=c(r)),s(r[g])||f(r,g,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t){t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(13),o=n(12),s=n(145),u=i([].join);r({target:"Array",proto:!0,forced:a!=Object||!s("join",",")},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){var r=n(3),i=n(173);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){"use strict";var r=n(95),i=n(12),a=n(62),o=n(64),s=n(145),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=o(e),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var r=n(3),i=n(84).map;r({target:"Array",proto:!0,forced:!n(140)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(90),o=n(78),s=Array;r({target:"Array",stat:!0,forced:i((function(){function t(){}return!(s.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(a(this)?this:s)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(64),o=n(177),s=n(139);r({target:"Array",proto:!0,arity:1,forced:n(7)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=a(e),r=arguments.length;s(n+r);for(var u=0;u<r;u++)e[n]=arguments[u],n++;return o(e,n),n}})},function(t,e,n){"use strict";var r=n(6),i=n(89),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!o(t,"length").writable)throw a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){"use strict";var r=n(3),i=n(179).left,a=n(145),o=n(28);r({target:"Array",proto:!0,forced:!n(180)&&o>79&&o<83||!a("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(31),i=n(40),a=n(13),o=n(64),s=TypeError,u=function(t){return function(e,n,u,c){r(n);var l=i(e),f=a(l),h=o(l),d=t?h-1:0,g=t?-1:1;if(u<2)for(;;){if(d in f){c=f[d],d+=g;break}if(d+=g,t?d<0:h<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=g)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:u(!1),right:u(!0)}},function(t,e,n){var r=n(15);t.exports="undefined"!=typeof process&&"process"==r(process)},function(t,e,n){"use strict";var r=n(3),i=n(179).right,a=n(145),o=n(28);r({target:"Array",proto:!0,forced:!n(180)&&o>79&&o<83||!a("reduceRight")},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(89),o=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(t,e,n){"use strict";var r=n(3),i=n(89),a=n(90),o=n(20),s=n(61),u=n(64),c=n(12),l=n(78),f=n(34),h=n(140),d=n(96),g=h("slice"),p=f("species"),v=Array,y=Math.max;r({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,r,f,h=c(this),g=u(h),x=s(t,g),_=s(void 0===e?g:e,g);if(i(h)&&(n=h.constructor,(a(n)&&(n===v||i(n.prototype))||o(n)&&null===(n=n[p]))&&(n=void 0),n===v||void 0===n))return d(h,x,_);for(r=new(void 0===n?v:n)(y(_-x,0)),f=0;x<_;x++,f++)x in h&&l(r,f,h[x]);return r.length=f,r}})},function(t,e,n){"use strict";var r=n(3),i=n(84).some;r({target:"Array",proto:!0,forced:!n(145)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(31),o=n(40),s=n(64),u=n(143),c=n(69),l=n(7),f=n(186),h=n(145),d=n(187),g=n(188),p=n(28),v=n(189),y=[],x=i(y.sort),_=i(y.push),m=l((function(){y.sort(void 0)})),b=l((function(){y.sort(null)})),w=h("sort"),T=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(g)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;r<y.length;r++)e=y[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:m||!b||!w||!T},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(T)return void 0===t?x(e):x(e,t);var n,r,i=[],l=s(e);for(r=0;r<l;r++)r in e&&_(i,e[r]);for(f(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(i),r=0;r<n;)e[r]=i[r++];for(;r<l;)u(e,r++);return e}})},function(t,e,n){var r=n(77),i=Math.floor,a=function(t,e){var n=t.length,u=i(n/2);return n<8?o(t,e):s(t,a(r(t,0,u),e),a(r(t,u),e),e)},o=function(t,e){for(var n,r,i=t.length,a=1;a<i;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o<i||s<a;)t[o+s]=o<i&&s<a?r(e[o],n[s])<=0?e[o++]:n[s++]:o<i?e[o++]:n[s++];return t};t.exports=a},function(t,e,n){var r=n(29).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(29);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(29).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){n(191)("Array")},function(t,e,n){"use strict";var r=n(24),i=n(45),a=n(34),o=n(6),s=a("species");t.exports=function(t){var e=r(t),n=i.f;o&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(61),o=n(62),s=n(64),u=n(177),c=n(139),l=n(87),f=n(78),h=n(143),d=n(140)("splice"),g=Math.max,p=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,v,y,x,_=i(this),m=s(_),b=a(t,m),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=m-b):(n=w-2,r=p(g(o(e),0),m-b)),c(m+n-r),d=l(_,r),v=0;v<r;v++)(y=b+v)in _&&f(d,v,_[y]);if(d.length=r,n<r){for(v=b;v<m-r;v++)x=v+n,(y=v+r)in _?_[x]=_[y]:h(_,x);for(v=m;v>m-r+n;v--)h(_,v-1)}else if(n>r)for(v=m-r;v>b;v--)x=v+n-1,(y=v+r-1)in _?_[x]=_[y]:h(_,x);for(v=0;v<n;v++)_[v+b]=arguments[v+2];return u(_,m-r+n),d}})},function(t,e,n){n(137)("flat")},function(t,e,n){n(137)("flatMap")},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(64),o=n(177),s=n(143),u=n(139);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=i(this),n=a(e),r=arguments.length;if(r){u(n+r);for(var c=n;c--;){var l=c+r;c in e?e[l]=e[c]:s(e,l)}for(var f=0;f<r;f++)e[f]=arguments[f]}return o(e,n+r)}})},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(197),o=n(191),s="ArrayBuffer",u=a[s];r({global:!0,constructor:!0,forced:i[s]!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var r=n(4),i=n(14),a=n(6),o=n(198),s=n(50),u=n(44),c=n(199),l=n(7),f=n(200),h=n(62),d=n(65),g=n(201),p=n(202),v=n(127),y=n(114),x=n(58).f,_=n(45).f,m=n(147),b=n(77),w=n(83),T=n(52),A=s.PROPER,S=s.CONFIGURABLE,E=T.get,M=T.set,k="ArrayBuffer",O="DataView",R="prototype",C="Wrong index",I=r[k],L=I,D=L&&L[R],P=r[O],F=P&&P[R],N=Object.prototype,z=r.Array,X=r.RangeError,B=i(m),j=i([].reverse),U=p.pack,$=p.unpack,Y=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},G=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},H=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},W=function(t){return U(t,23,4)},q=function(t){return U(t,52,8)},Z=function(t,e){_(t[R],e,{get:function(){return E(this)[e]}})},K=function(t,e,n,r){var i=g(n),a=E(t);if(i+e>a.byteLength)throw X(C);var o=E(a.buffer).bytes,s=i+a.byteOffset,u=b(o,s,s+e);return r?u:j(u)},J=function(t,e,n,r,i,a){var o=g(n),s=E(t);if(o+e>s.byteLength)throw X(C);for(var u=E(s.buffer).bytes,c=o+s.byteOffset,l=r(+i),f=0;f<e;f++)u[c+f]=l[a?f:e-f-1]};if(o){var Q=A&&I.name!==k;if(l((function(){I(1)}))&&l((function(){new I(-1)}))&&!l((function(){return new I,new I(1.5),new I(NaN),1!=I.length||Q&&!S})))Q&&S&&u(I,"name",k);else{(L=function(t){return f(this,D),new I(g(t))})[R]=D;for(var tt,et=x(I),nt=0;et.length>nt;)(tt=et[nt++])in L||u(L,tt,I[tt]);D.constructor=L}y&&v(F)!==N&&y(F,N);var rt=new P(new L(2)),it=i(F.setInt8);rt.setInt8(0,2147483648),rt.setInt8(1,2147483649),!rt.getInt8(0)&&rt.getInt8(1)||c(F,{setInt8:function(t,e){it(this,t,e<<24>>24)},setUint8:function(t,e){it(this,t,e<<24>>24)}},{unsafe:!0})}else D=(L=function(t){f(this,D);var e=g(t);M(this,{bytes:B(z(e),0),byteLength:e}),a||(this.byteLength=e)})[R],F=(P=function(t,e,n){f(this,F),f(t,D);var r=E(t).byteLength,i=h(e);if(i<0||i>r)throw X("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw X("Wrong length");M(this,{buffer:t,byteLength:n,byteOffset:i}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=i)})[R],a&&(Z(L,"byteLength"),Z(P,"buffer"),Z(P,"byteLength"),Z(P,"byteOffset")),c(F,{getInt8:function(t){return K(this,1,t)[0]<<24>>24},getUint8:function(t){return K(this,1,t)[0]},getInt16:function(t){var e=K(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=K(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return H(K(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return H(K(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return $(K(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return $(K(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){J(this,1,t,Y,e)},setUint8:function(t,e){J(this,1,t,Y,e)},setInt16:function(t,e){J(this,2,t,V,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){J(this,2,t,V,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){J(this,4,t,G,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){J(this,4,t,G,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){J(this,4,t,W,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){J(this,8,t,q,e,arguments.length>2?arguments[2]:void 0)}});w(L,k),w(P,O),t.exports={ArrayBuffer:L,DataView:P}},function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(48);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(25),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(62),i=n(65),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw a("Wrong length or index");return n}},function(t){var e=Array,n=Math.abs,r=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;t.exports={pack:function(t,s,u){var c,l,f,h=e(u),d=8*u-s-1,g=(1<<d)-1,p=g>>1,v=23===s?r(2,-24)-r(2,-77):0,y=t<0||0===t&&1/t<0?1:0,x=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,c=g):(c=i(a(t)/o),t*(f=r(2,-c))<1&&(c--,f*=2),(t+=c+p>=1?v/f:v*r(2,1-p))*f>=2&&(c++,f/=2),c+p>=g?(l=0,c=g):c+p>=1?(l=(t*f-1)*r(2,s),c+=p):(l=t*r(2,p-1)*r(2,s),c=0));s>=8;)h[x++]=255&l,l/=256,s-=8;for(c=c<<s|l,d+=s;d>0;)h[x++]=255&c,c/=256,d-=8;return h[--x]|=128*y,h},unpack:function(t,e){var n,i=t.length,a=8*i-e-1,o=(1<<a)-1,s=o>>1,u=a-7,c=i-1,l=t[c--],f=127&l;for(l>>=7;u>0;)f=256*f+t[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=r(2,e),f-=s}return(l?-1:1)*n*r(2,f-e)}}},function(t,e,n){var r=n(3),i=n(204);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,n){"use strict";var r,i,a,o=n(198),s=n(6),u=n(4),c=n(21),l=n(20),f=n(39),h=n(70),d=n(32),g=n(44),p=n(48),v=n(45).f,y=n(25),x=n(127),_=n(114),m=n(34),b=n(41),w=n(52),T=w.enforce,A=w.get,S=u.Int8Array,E=S&&S.prototype,M=u.Uint8ClampedArray,k=M&&M.prototype,O=S&&x(S),R=E&&x(E),C=Object.prototype,I=u.TypeError,L=m("toStringTag"),D=b("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",F=o&&!!_&&"Opera"!==h(u.opera),N=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},X={BigInt64Array:8,BigUint64Array:8},B=function(t){var e=x(t);if(l(e)){var n=A(e);return n&&f(n,P)?n[P]:B(e)}},j=function(t){if(!l(t))return!1;var e=h(t);return f(z,e)||f(X,e)};for(r in z)(a=(i=u[r])&&i.prototype)?T(a)[P]=i:F=!1;for(r in X)(a=(i=u[r])&&i.prototype)&&(T(a)[P]=i);if((!F||!c(O)||O===Function.prototype)&&(O=function(){throw I("Incorrect invocation")},F))for(r in z)u[r]&&_(u[r],O);if((!F||!R||R===C)&&(R=O.prototype,F))for(r in z)u[r]&&_(u[r].prototype,R);if(F&&x(k)!==R&&_(k,R),s&&!f(R,L))for(r in N=!0,v(R,L,{get:function(){return l(this)?this[D]:void 0}}),z)u[r]&&g(u[r],D,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:N&&D,aTypedArray:function(t){if(j(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!_||y(O,t)))return t;throw I(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in z){var a=u[i];if(a&&f(a.prototype,t))try{delete a.prototype[t]}catch(n){try{a.prototype[t]=e}catch(t){}}}R[t]&&!n||p(R,t,n?e:F&&E[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(_){if(n)for(r in z)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(O[t]&&!n)return;try{return p(O,t,n?e:F&&O[t]||e)}catch(t){}}for(r in z)!(i=u[r])||i[t]&&!n||p(i,t,e)}},getTypedArrayConstructor:B,isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(z,e)||f(X,e)},isTypedArray:j,TypedArray:O,TypedArrayPrototype:R}},function(t,e,n){"use strict";var r=n(3),i=n(86),a=n(7),o=n(197),s=n(47),u=n(61),c=n(65),l=n(206),f=o.ArrayBuffer,h=o.DataView,d=h.prototype,g=i(f.prototype.slice),p=i(d.getUint8),v=i(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),a=new(l(this,f))(c(i-r)),o=new h(this),d=new h(a),y=0;r<i;)v(d,y++,p(o,r++));return a}})},function(t,e,n){var r=n(47),i=n(207),a=n(17),o=n(34)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||a(n=r(s)[o])?e:i(n)}},function(t,e,n){var r=n(90),i=n(32),a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a constructor")}},function(t,e,n){n(209)},function(t,e,n){var r=n(3),i=n(197);r({global:!0,constructor:!0,forced:!n(198)},{DataView:i.DataView})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(7)((function(){return 120!==new Date(16e11).getYear()})),o=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},function(t,e,n){var r=n(3),i=n(14),a=Date,o=i(a.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return o(new a)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(62),o=Date.prototype,s=i(o.getTime),u=i(o.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=a(t);return u(this,0<=e&&e<=99?e+1900:e)}})},function(t,e,n){n(3)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var r=n(3),i=n(215);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,n){"use strict";var r=n(14),i=n(7),a=n(216).start,o=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,f=r(c.getTime),h=r(c.getUTCDate),d=r(c.getUTCFullYear),g=r(c.getUTCHours),p=r(c.getUTCMilliseconds),v=r(c.getUTCMinutes),y=r(c.getUTCMonth),x=r(c.getUTCSeconds);t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!i((function(){l.call(new Date(NaN))}))?function(){if(!s(f(this)))throw o("Invalid time value");var t=this,e=d(t),n=p(t),r=e<0?"-":e>9999?"+":"";return r+a(u(e),r?6:4,0)+"-"+a(y(t)+1,2,0)+"-"+a(h(t),2,0)+"T"+a(g(t),2,0)+":"+a(v(t),2,0)+":"+a(x(t),2,0)+"."+a(n,3,0)+"Z"}:l},function(t,e,n){var r=n(14),i=n(65),a=n(69),o=n(217),s=n(16),u=r(o),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var o,f,h=a(s(e)),d=i(n),g=h.length,p=void 0===r?" ":a(r);return d<=g||""==p?h:((f=u(p,l((o=d-g)/p.length))).length>o&&(f=c(f,0,o)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},function(t,e,n){"use strict";var r=n(62),i=n(69),a=n(16),o=RangeError;t.exports=function(t){var e=i(a(this)),n="",s=r(t);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(40),o=n(19);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(39),i=n(48),a=n(220),o=n(34)("toPrimitive"),s=Date.prototype;r(s,o)||i(s,o,a)},function(t,e,n){"use strict";var r=n(47),i=n(33),a=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw a("Incorrect hint");return i(this,t)}},function(t,e,n){var r=n(14),i=n(48),a=Date.prototype,o="Invalid Date",s="toString",u=r(a[s]),c=r(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var t=c(this);return t==t?u(this):o}))},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(69),o=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1..toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=a(t),i="",c=r.length,d=0;d<c;)e=o(r,d++),u(f,e)?i+=e:i+=(n=s(e,0))<256?"%"+h(n,2):"%u"+l(h(n,4));return i}})},function(t,e,n){var r=n(3),i=n(224);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},function(t,e,n){"use strict";var r=n(14),i=n(31),a=n(20),o=n(39),s=n(96),u=n(9),c=Function,l=r([].concat),f=r([].join),h={},d=function(t,e,n){if(!o(h,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)};t.exports=u?c.bind:function(t){var e=i(this),n=e.prototype,r=s(arguments,1),o=function(){var n=l(r,s(arguments));return this instanceof o?d(e,n.length,n):e.apply(t,n)};return a(n)&&(o.prototype=n),o}},function(t,e,n){"use strict";var r=n(21),i=n(20),a=n(45),o=n(127),s=n(34),u=n(49),c=s("hasInstance"),l=Function.prototype;c in l||a.f(l,c,{value:u((function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;if(!i(e))return t instanceof this;for(;t=o(t);)if(e===t)return!0;return!1}),c)})},function(t,e,n){var r=n(6),i=n(50).EXISTS,a=n(14),o=n(45).f,s=Function.prototype,u=a(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=a(c.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},function(t,e,n){var r=n(3),i=n(4);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},function(t,e,n){var r=n(4);n(83)(r.JSON,"JSON",!0)},function(t,e,n){n(230)},function(t,e,n){"use strict";n(231)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(236))},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(14),o=n(68),s=n(48),u=n(232),c=n(129),l=n(200),f=n(21),h=n(17),d=n(20),g=n(7),p=n(162),v=n(83),y=n(117);t.exports=function(t,e,n){var x=-1!==t.indexOf("Map"),_=-1!==t.indexOf("Weak"),m=x?"set":"add",b=i[t],w=b&&b.prototype,T=b,A={},S=function(t){var e=a(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(_&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return _&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(_&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(o(t,!f(b)||!(_||w.forEach&&!g((function(){(new b).entries().next()})))))T=n.getConstructor(e,t,x,m),u.enable();else if(o(t,!0)){var E=new T,M=E[m](_?{}:-0,1)!=E,k=g((function(){E.has(1)})),O=p((function(t){new b(t)})),R=!_&&g((function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)}));O||((T=e((function(t,e){l(t,w);var n=y(new b,t,T);return h(e)||c(e,n[m],{that:n,AS_ENTRIES:x}),n}))).prototype=w,w.constructor=T),(k||R)&&(S("delete"),S("has"),x&&S("get")),(R||M)&&S(m),_&&w.clear&&delete w.clear}return A[t]=T,r({global:!0,constructor:!0,forced:T!=b},A),v(T,t),_||n.setStrong(T,t,x),T}},function(t,e,n){var r=n(3),i=n(14),a=n(55),o=n(20),s=n(39),u=n(45).f,c=n(58),l=n(76),f=n(233),h=n(41),d=n(235),g=!1,p=h("meta"),v=0,y=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},g=!0;var t=c.f,e=i([].splice),n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,a=r.length;i<a;i++)if(r[i]===p){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!f(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!f(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return d&&g&&f(t)&&!s(t,p)&&y(t),t}};a[p]=!0},function(t,e,n){var r=n(7),i=n(20),a=n(15),o=n(234),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&((!o||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(7);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(7);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var r=n(45).f,i=n(72),a=n(199),o=n(85),s=n(200),u=n(17),c=n(129),l=n(167),f=n(170),h=n(191),d=n(6),g=n(232).fastKey,p=n(52),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,r){s(t,h),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(r)||c(r,t[l],{that:t,AS_ENTRIES:n})})),h=f.prototype,p=y(e),x=function(t,e,n){var r,i,a=p(t),o=_(t,e);return o?o.value=n:(a.last=o={index:i=g(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),d?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},_=function(t,e){var n,r=p(t),i=g(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return a(h,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=_(e,t);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!_(this,t)}}),a(h,n?{get:function(t){var e=_(this,t);return e&&e.value},set:function(t,e){return x(this,0===t?0:t,e)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),d&&r(h,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=y(e),a=y(r);l(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){var r=n(3),i=n(238),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?o(e)+u:i(e-1+s(e-1)*s(e+1))}})},function(t){var e=Math.log;t.exports=Math.log1p||function(t){var n=+t;return n>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},function(t,e,n){var r=n(3),i=Math.asinh,a=Math.log,o=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){var n=+e;return isFinite(n)&&0!=n?n<0?-t(-n):a(n+o(n*n+1)):n}})},function(t,e,n){var r=n(3),i=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){var e=+t;return 0==e?e:a((1+e)/(1-e))/2}})},function(t,e,n){var r=n(3),i=n(242),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return i(e)*o(a(e),1/3)}})},function(t){t.exports=Math.sign||function(t){var e=+t;return 0==e||e!=e?e:e<0?-1:1}},function(t,e,n){var r=n(3),i=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-i(a(e+.5)*o):32}})},function(t,e,n){var r=n(3),i=n(245),a=Math.cosh,o=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=i(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){var e=+t;return 0==e?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:e},function(t,e,n){var r=n(3),i=n(245);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,n){n(3)({target:"Math",stat:!0},{fround:n(248)})},function(t,e,n){var r=n(242),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126);t.exports=Math.fround||function(t){var e,n,a=+t,l=i(a),f=r(a);return l<c?f*function(t){return t+1/o-1/o}(l/c/s)*c*s:(n=(e=(1+s/o)*l)-(e-l))>u||n!=n?f*(1/0):f*n}},function(t,e,n){var r=n(3),i=Math.hypot,a=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=a(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*o(i)}})},function(t,e,n){var r=n(3),i=n(7),a=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){n(3)({target:"Math",stat:!0},{log10:n(252)})},function(t){var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){n(3)({target:"Math",stat:!0},{log1p:n(238)})},function(t,e,n){var r=n(3),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/a}})},function(t,e,n){n(3)({target:"Math",stat:!0},{sign:n(242)})},function(t,e,n){var r=n(3),i=n(7),a=n(245),o=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return o(e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},function(t,e,n){var r=n(3),i=n(245),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=+t,n=i(e),r=i(-e);return n==1/0?1:r==1/0?-1:(n-r)/(a(e)+a(-e))}})},function(t,e,n){n(83)(Math,"Math",!0)},function(t,e,n){n(3)({target:"Math",stat:!0},{trunc:n(63)})},function(t,e,n){"use strict";var r=n(3),i=n(36),a=n(6),o=n(4),s=n(81),u=n(14),c=n(68),l=n(39),f=n(117),h=n(25),d=n(23),g=n(19),p=n(7),v=n(58).f,y=n(5).f,x=n(45).f,_=n(261),m=n(262).trim,b="Number",w=o[b],T=s[b],A=w.prototype,S=o.TypeError,E=u("".slice),M=u("".charCodeAt),k=function(t){var e=g(t,"number");return"bigint"==typeof e?e:O(e)},O=function(t){var e,n,r,i,a,o,s,u,c=g(t,"number");if(d(c))throw S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),43===(e=M(c,0))||45===e){if(88===(n=M(c,2))||120===n)return NaN}else if(48===e){switch(M(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=(a=E(c,2)).length,s=0;s<o;s++)if((u=M(a,s))<48||u>i)return NaN;return parseInt(a,r)}return+c},R=c(b,!w(" 0o1")||!w("0b1")||w("+0x1")),C=function(t){return h(A,t)&&p((function(){_(t)}))},I=function(t){var e=arguments.length<1?0:w(k(t));return C(this)?f(Object(e),this,I):e};I.prototype=A,R&&!i&&(A.constructor=I),r({global:!0,constructor:!0,wrap:!0,forced:R},{Number:I});var L=function(t,e){for(var n,r=a?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&x(t,n,y(e,n))};i&&T&&L(s[b],T),(R||i)&&L(s[b],w)},function(t,e,n){var r=n(14);t.exports=r(1..valueOf)},function(t,e,n){var r=n(14),i=n(16),a=n(69),o=n(263),s=r("".replace),u="["+o+"]",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),f=function(t){return function(e){var n=a(i(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,l,"")),n}};t.exports={start:f(1),end:f(2),trim:f(3)}},function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(3)({target:"Number",stat:!0},{isFinite:n(266)})},function(t,e,n){var r=n(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(3)({target:"Number",stat:!0},{isInteger:n(268)})},function(t,e,n){var r=n(20),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(3)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(3),i=n(268),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(3),i=n(274);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(4),i=n(7),a=n(14),o=n(69),s=n(262).trim,u=n(263),c=a("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(o(t)),n=l(e);return 0===n&&"-"==c(e,0)?-0:n}:l},function(t,e,n){var r=n(3),i=n(276);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,n){var r=n(4),i=n(7),a=n(14),o=n(69),s=n(262).trim,u=n(263),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=a(h.exec),g=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=g?function(t,e){var n=s(o(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(62),o=n(261),s=n(217),u=n(252),c=n(7),l=RangeError,f=String,h=isFinite,d=Math.abs,g=Math.floor,p=Math.pow,v=Math.round,y=i(1..toExponential),x=i(s),_=i("".slice),m="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0);r({target:"Number",proto:!0,forced:!m||!(c((function(){y(1,1/0)}))&&c((function(){y(1,-1/0)})))||!!c((function(){y(1/0,1/0),y(NaN,1/0)}))},{toExponential:function(t){var e=o(this);if(void 0===t)return y(e);var n=a(t);if(!h(e))return String(e);if(n<0||n>20)throw l("Incorrect fraction digits");if(m)return y(e,n);var r="",i="",s=0,c="",b="";if(e<0&&(r="-",e=-e),0===e)s=0,i=x("0",n+1);else{var w=u(e);s=g(w);var T=0,A=p(10,s-n);2*e>=(2*(T=v(e/A))+1)*A&&(T+=1),T>=p(10,n+1)&&(T/=10,s+=1),i=f(T)}return 0!==n&&(i=_(i,0,1)+"."+_(i,1)),0===s?(c="+",b="0"):(c=s>0?"+":"-",b=f(d(s))),r+(i+="e"+c+b)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(62),o=n(261),s=n(217),u=n(7),c=RangeError,l=String,f=Math.floor,h=i(s),d=i("".slice),g=i(1..toFixed),p=function(t,e,n){return 0===e?n:e%2==1?p(t,e-1,n*t):p(t*t,e/2,n)},v=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},x=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=l(t[e]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!u((function(){g({})}))},{toFixed:function(t){var e,n,r,i,s=o(this),u=a(t),f=[0,0,0,0,0,0],g="",_="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(g="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*p(2,69,1))-69)<0?s*p(2,-e,1):s/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(f,0,n),r=u;r>=7;)v(f,1e7,0),r-=7;for(v(f,p(10,r,1),0),r=e-1;r>=23;)y(f,1<<23),r-=23;y(f,1<<r),v(f,1,1),y(f,2),_=x(f)}else v(f,0,n),v(f,1<<-e,0),_=x(f)+h("0",u);return _=u>0?g+((i=_.length)<=u?"0."+h("0",u-i)+_:d(_,0,i-u)+"."+d(_,i-u)):g+_}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(7),o=n(261),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(o(this)):s(o(this),t)}})},function(t,e,n){var r=n(3),i=n(281);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(6),i=n(14),a=n(8),o=n(7),s=n(74),u=n(67),c=n(10),l=n(40),f=n(13),h=Object.assign,d=Object.defineProperty,g=i([].concat);t.exports=!h||o((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,o=1,h=u.f,d=c.f;i>o;)for(var p,v=f(arguments[o++]),y=h?g(s(v),h(v)):s(v),x=y.length,_=0;x>_;)p=y[_++],r&&!a(d,v,p)||(n[p]=v[p]);return n}:h},function(t,e,n){n(3)({target:"Object",stat:!0,sham:!n(6)},{create:n(72)})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(284),o=n(31),s=n(40),u=n(45);i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){u.f(s(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(36),i=n(4),a=n(7),o=n(189);t.exports=r||!a((function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},function(t,e,n){var r=n(3),i=n(6),a=n(73).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},function(t,e,n){var r=n(3),i=n(6),a=n(45).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(284),o=n(31),s=n(40),u=n(45);i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){u.f(s(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(3),i=n(289).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,n){var r=n(6),i=n(14),a=n(74),o=n(12),s=i(n(10).f),u=i([].push),c=function(t){return function(e){for(var n,i=o(e),c=a(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(3),i=n(235),a=n(7),o=n(20),s=n(232).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){u(1)})),sham:!i},{freeze:function(t){return u&&o(t)?u(s(t)):t}})},function(t,e,n){var r=n(3),i=n(129),a=n(78);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){a(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var r=n(3),i=n(7),a=n(12),o=n(5).f,s=n(6);r({target:"Object",stat:!0,forced:!s||i((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){var r=n(3),i=n(6),a=n(57),o=n(12),s=n(5),u=n(78);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),i=s.f,c=a(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(3),i=n(7),a=n(76).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){var r=n(3),i=n(7),a=n(40),o=n(127),s=n(128);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){n(3)({target:"Object",stat:!0},{hasOwn:n(39)})},function(t,e,n){n(3)({target:"Object",stat:!0},{is:n(298)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(3),i=n(233);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(t,e,n){var r=n(3),i=n(7),a=n(20),o=n(15),s=n(234),u=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(3),i=n(7),a=n(20),o=n(15),s=n(234),u=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(3),i=n(40),a=n(74);r({target:"Object",stat:!0,forced:n(7)((function(){a(1)}))},{keys:function(t){return a(i(t))}})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(284),o=n(40),s=n(18),u=n(127),c=n(5).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(284),o=n(40),s=n(18),u=n(127),c=n(5).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},function(t,e,n){var r=n(3),i=n(20),a=n(232).onFreeze,o=n(235),s=n(7),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{preventExtensions:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){"use strict";var r=n(6),i=n(307),a=n(20),o=n(40),s=n(16),u=Object.getPrototypeOf,c=Object.setPrototypeOf,l=Object.prototype,f="__proto__";if(r&&u&&c&&!(f in l))try{i(l,f,{configurable:!0,get:function(){return u(o(this))},set:function(t){var e=s(this);(a(t)||null===t)&&a(e)&&c(e,t)}})}catch(t){}},function(t,e,n){var r=n(49),i=n(45);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},function(t,e,n){var r=n(3),i=n(20),a=n(232).onFreeze,o=n(235),s=n(7),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{seal:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){n(3)({target:"Object",stat:!0},{setPrototypeOf:n(114)})},function(t,e,n){var r=n(71),i=n(48),a=n(311);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var r=n(71),i=n(70);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(3),i=n(289).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(3),i=n(274);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(3),i=n(276);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,n){n(316),n(331),n(333),n(334),n(335),n(336)},function(t,e,n){"use strict";var r,i,a,o=n(3),s=n(36),u=n(180),c=n(4),l=n(8),f=n(48),h=n(114),d=n(83),g=n(191),p=n(31),v=n(21),y=n(20),x=n(200),_=n(206),m=n(317).set,b=n(320),w=n(324),T=n(325),A=n(321),S=n(52),E=n(326),M=n(327),k=n(330),O="Promise",R=M.CONSTRUCTOR,C=M.REJECTION_EVENT,I=M.SUBCLASSING,L=S.getterFor(O),D=S.set,P=E&&E.prototype,F=E,N=P,z=c.TypeError,X=c.document,B=c.process,j=k.f,U=j,$=!!(X&&X.createEvent&&c.dispatchEvent),Y="unhandledrejection",V=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},G=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{s?(o||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=a:(f&&f.enter(),n=s(a),f&&(f.exit(),i=!0)),n===t.promise?c(z("Promise-chain cycle")):(r=V(n))?l(r,n,u,c):u(n)):c(a)}catch(t){f&&!i&&f.exit(),c(t)}},H=function(t,e){t.notified||(t.notified=!0,b((function(){for(var n,r=t.reactions;n=r.get();)G(n,t);t.notified=!1,e&&!t.rejection&&q(t)})))},W=function(t,e,n){var r,i;$?((r=X.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!C&&(i=c["on"+t])?i(r):t===Y&&w("Unhandled promise rejection",n)},q=function(t){l(m,c,(function(){var e,n=t.facade,r=t.value;if(Z(t)&&(e=T((function(){u?B.emit("unhandledRejection",r,n):W(Y,n,r)})),t.rejection=u||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},K=function(t){l(m,c,(function(){var e=t.facade;u?B.emit("rejectionHandled",e):W("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(r){t(e,r,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,H(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw z("Promise can't be resolved itself");var r=V(e);r?b((function(){var n={done:!1};try{l(r,e,J(tt,n,t),J(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,H(t,!1))}catch(e){Q({done:!1},e,t)}}};if(R&&(N=(F=function(t){x(this,N),p(t),l(r,this);var e=L(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(r=function(t){D(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=f(N,"then",(function(t,e){var n=L(this),r=j(_(this,F));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=u?B.domain:void 0,0==n.state?n.reactions.add(r):b((function(){G(r,n)})),r.promise})),i=function(){var t=new r,e=L(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},k.f=j=function(t){return t===F||undefined===t?new i(t):U(t)},!s&&v(E)&&P!==Object.prototype)){a=P.then,I||f(P,"then",(function(t,e){var n=this;return new F((function(t,e){l(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete P.constructor}catch(t){}h&&h(P,N)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:F}),d(F,O,!1,!0),g(O)},function(t,e,n){var r,i,a,o,s=n(4),u=n(95),c=n(85),l=n(21),f=n(39),h=n(7),d=n(75),g=n(96),p=n(43),v=n(318),y=n(319),x=n(180),_=s.setImmediate,m=s.clearImmediate,b=s.process,w=s.Dispatch,T=s.Function,A=s.MessageChannel,S=s.String,E=0,M={},k="onreadystatechange";h((function(){r=s.location}));var O=function(t){if(f(M,t)){var e=M[t];delete M[t],e()}},R=function(t){return function(){O(t)}},C=function(t){O(t.data)},I=function(t){s.postMessage(S(t),r.protocol+"//"+r.host)};_&&m||(_=function(t){v(arguments.length,1);var e=l(t)?t:T(t),n=g(arguments,1);return M[++E]=function(){u(e,void 0,n)},i(E),E},m=function(t){delete M[t]},x?i=function(t){b.nextTick(R(t))}:w&&w.now?i=function(t){w.now(R(t))}:A&&!y?(o=(a=new A).port2,a.port1.onmessage=C,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(I)?(i=I,s.addEventListener("message",C,!1)):i=k in p("script")?function(t){d.appendChild(p("script"))[k]=function(){d.removeChild(this),O(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:_,clear:m}},function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},function(t,e,n){var r=n(29);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){var r,i,a,o,s,u=n(4),c=n(85),l=n(5).f,f=n(317).set,h=n(321),d=n(319),g=n(322),p=n(323),v=n(180),y=u.MutationObserver||u.WebKitMutationObserver,x=u.document,_=u.process,m=u.Promise,b=l(u,"queueMicrotask"),w=b&&b.value;if(!w){var T=new h,A=function(){var t,e;for(v&&(t=_.domain)&&t.exit();e=T.get();)try{e()}catch(t){throw T.head&&r(),t}t&&t.enter()};d||v||p||!y||!x?!g&&m&&m.resolve?((o=m.resolve(void 0)).constructor=m,s=c(o.then,o),r=function(){s(A)}):v?r=function(){_.nextTick(A)}:(f=c(f,u),r=function(){f(A)}):(i=!0,a=x.createTextNode(""),new y(A).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),w=function(t){T.head||r(),T.add(t)}}t.exports=w},function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},function(t,e,n){var r=n(29);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},function(t,e,n){var r=n(29);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t){t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(4);t.exports=r.Promise},function(t,e,n){var r=n(4),i=n(326),a=n(21),o=n(68),s=n(51),u=n(34),c=n(328),l=n(329),f=n(36),h=n(28),d=i&&i.prototype,g=u("species"),p=!1,v=a(r.PromiseRejectionEvent),y=o("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[g]=r,!(p=n.then((function(){}))instanceof r))return!0}return!e&&(c||l)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:p}},function(t,e,n){var r=n(329),i=n(180);t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,n){"use strict";var r=n(31),i=TypeError,a=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new a(t)}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(330),s=n(325),u=n(129);r({target:"Promise",stat:!0,forced:n(332)},{all:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,l=1;u(t,(function(t){var a=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,o[a]=t,--l||r(o))}),c)})),--l||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){var r=n(326),i=n(162),a=n(327).CONSTRUCTOR;t.exports=a||!i((function(t){r.all(t).then(void 0,(function(){}))}))},function(t,e,n){"use strict";var r=n(3),i=n(36),a=n(327).CONSTRUCTOR,o=n(326),s=n(24),u=n(21),c=n(48),l=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(o)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(330),s=n(325),u=n(129);r({target:"Promise",stat:!0,forced:n(332)},{race:function(t){var e=this,n=o.f(e),r=n.reject,c=s((function(){var o=a(e.resolve);u(t,(function(t){i(o,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(330);r({target:"Promise",stat:!0,forced:n(327).CONSTRUCTOR},{reject:function(t){var e=a.f(this);return i(e.reject,void 0,t),e.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(24),a=n(36),o=n(326),s=n(327).CONSTRUCTOR,u=n(337),c=i("Promise"),l=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(t){return u(l&&this===c?o:this,t)}})},function(t,e,n){var r=n(47),i=n(20),a=n(330);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(330),s=n(325),u=n(129);r({target:"Promise",stat:!0,forced:n(332)},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||r(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(24),s=n(330),u=n(325),c=n(129),l=n(332),f="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(t){var e=this,n=o("AggregateError"),r=s.f(e),l=r.resolve,h=r.reject,d=u((function(){var r=a(e.resolve),o=[],s=0,u=1,d=!1;c(t,(function(t){var a=s++,c=!1;u++,i(r,e,t).then((function(t){c||d||(d=!0,l(t))}),(function(t){c||d||(c=!0,o[a]=t,--u||h(new n(o,f)))}))})),--u||h(new n(o,f))}));return d.error&&h(d.value),r.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(36),a=n(326),o=n(7),s=n(24),u=n(21),c=n(206),l=n(337),f=n(48),h=a&&a.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(a)){var d=s("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{unsafe:!0})}},function(t,e,n){var r=n(3),i=n(95),a=n(31),o=n(47);r({target:"Reflect",stat:!0,forced:!n(7)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(a(t),e,o(n))}})},function(t,e,n){var r=n(3),i=n(24),a=n(95),o=n(224),s=n(207),u=n(47),c=n(20),l=n(72),f=n(7),h=i("Reflect","construct"),d=Object.prototype,g=[].push,p=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),v=!f((function(){h((function(){}))})),y=p||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!p)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return a(g,r,e),new(a(o,t,r))}var i=n.prototype,f=l(c(i)?i:d),y=a(t,f,e);return c(y)?y:f}})},function(t,e,n){var r=n(3),i=n(6),a=n(47),o=n(18),s=n(45);r({target:"Reflect",stat:!0,forced:n(7)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){a(t);var r=o(e);a(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(3),i=n(47),a=n(5).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=a(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(3),i=n(8),a=n(20),o=n(47),s=n(346),u=n(5),c=n(127);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return o(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):a(l=c(e))?t(l,n,f):void 0}})},function(t,e,n){var r=n(39);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){var r=n(3),i=n(6),a=n(47),o=n(5);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){var r=n(3),i=n(47),a=n(127);r({target:"Reflect",stat:!0,sham:!n(128)},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(3)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(3),i=n(47),a=n(233);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),a(t)}})},function(t,e,n){n(3)({target:"Reflect",stat:!0},{ownKeys:n(57)})},function(t,e,n){var r=n(3),i=n(24),a=n(47);r({target:"Reflect",stat:!0,sham:!n(235)},{preventExtensions:function(t){a(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(3),i=n(8),a=n(47),o=n(20),s=n(346),u=n(7),c=n(45),l=n(5),f=n(127),h=n(11);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,g,p=arguments.length<4?e:arguments[3],v=l.f(a(e),n);if(!v){if(o(d=f(e)))return t(d,n,r,p);v=h(0)}if(s(v)){if(!1===v.writable||!o(p))return!1;if(u=l.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(p,n,u)}else c.f(p,n,h(0,r))}else{if(void 0===(g=v.set))return!1;i(g,p,r)}return!0}})},function(t,e,n){var r=n(3),i=n(47),a=n(115),o=n(114);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(3),i=n(4),a=n(83);r({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},function(t,e,n){var r=n(6),i=n(4),a=n(14),o=n(68),s=n(117),u=n(44),c=n(58).f,l=n(25),f=n(357),h=n(69),d=n(358),g=n(360),p=n(116),v=n(48),y=n(7),x=n(39),_=n(52).enforce,m=n(191),b=n(34),w=n(361),T=n(362),A=b("match"),S=i.RegExp,E=S.prototype,M=i.SyntaxError,k=a(E.exec),O=a("".charAt),R=a("".replace),C=a("".indexOf),I=a("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,P=/a/g,F=new S(D)!==D,N=g.MISSED_STICKY,z=g.UNSUPPORTED_Y,X=r&&(!F||N||w||T||y((function(){return P[A]=!1,S(D)!=D||S(P)==P||"/a/i"!=S(D,"i")})));if(o("RegExp",X)){for(var B=function(t,e){var n,r,i,a,o,c,g=l(E,this),p=f(t),v=void 0===e,y=[],m=t;if(!g&&p&&v&&t.constructor===B)return t;if((p||l(E,t))&&(t=t.source,v&&(e=d(m))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),m=t,w&&"dotAll"in D&&(r=!!e&&C(e,"s")>-1)&&(e=R(e,/s/g,"")),n=e,N&&"sticky"in D&&(i=!!e&&C(e,"y")>-1)&&z&&(e=R(e,/y/g,"")),T&&(a=function(t){for(var e,n=t.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=O(t,r)))e+=O(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:k(L,I(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||x(o,l))throw new M("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,a]}(t),t=a[0],y=a[1]),o=s(S(t,e),g?this:E,B),(r||i||y.length)&&(c=_(o),r&&(c.dotAll=!0,c.raw=B(function(t){for(var e,n=t.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(e=O(t,r))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\s\\S]":i+=e+O(t,++r);return i}(t),n)),i&&(c.sticky=!0),y.length&&(c.groups=y)),t!==m)try{u(o,"source",""===m?"(?:)":m)}catch(t){}return o},j=c(S),U=0;j.length>U;)p(B,S,j[U++]);E.constructor=B,B.prototype=E,v(i,"RegExp",B,{constructor:!0})}m("RegExp")},function(t,e,n){var r=n(20),i=n(15),a=n(34)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(8),i=n(39),a=n(25),o=n(359),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!a(s,t)?e:r(o,t)}},function(t,e,n){"use strict";var r=n(47);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(7),i=n(4).RegExp,a=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(t,e,n){var r=n(7),i=n(4).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(7),i=n(4).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(6),i=n(361),a=n(15),o=n(307),s=n(52).get,u=RegExp.prototype,c=TypeError;r&&i&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var r=n(3),i=n(365);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";var r,i,a=n(8),o=n(14),s=n(69),u=n(359),c=n(360),l=n(35),f=n(72),h=n(52).get,d=n(361),g=n(362),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),_=o("".indexOf),m=o("".replace),b=o("".slice),w=(i=/b*/g,a(v,r=/a/,"a"),a(v,i,"a"),0!==r.lastIndex||0!==i.lastIndex),T=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||d||g)&&(y=function(t){var e,n,r,i,o,c,l,d=this,g=h(d),S=s(t),E=g.raw;if(E)return E.lastIndex=d.lastIndex,e=a(y,E,S),d.lastIndex=E.lastIndex,e;var M=g.groups,k=T&&d.sticky,O=a(u,d),R=d.source,C=0,I=S;if(k&&(O=m(O,"y",""),-1===_(O,"g")&&(O+="g"),I=b(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(S,d.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,C++),n=new RegExp("^(?:"+R+")",O)),A&&(n=new RegExp("^"+R+"$(?!\\s)",O)),w&&(r=d.lastIndex),i=a(v,k?n:d,I),k?i?(i.input=b(i.input,C),i[0]=b(i[0],C),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),A&&i&&i.length>1&&a(p,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&M)for(i.groups=c=f(null),o=0;o<M.length;o++)c[(l=M[o])[0]]=i[l[1]];return i}),t.exports=y},function(t,e,n){var r=n(4),i=n(6),a=n(307),o=n(359),s=n(7),u=r.RegExp,c=u.prototype;i&&s((function(){var t=!0;try{u(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(a.hasIndices="d"),a)i(o,a[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(e)!==r||n!==r}))&&a(c,"flags",{configurable:!0,get:o})},function(t,e,n){var r=n(6),i=n(360).MISSED_STICKY,a=n(15),o=n(307),s=n(52).get,u=RegExp.prototype,c=TypeError;r&&i&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(364);var r,i,a=n(3),o=n(8),s=n(21),u=n(47),c=n(69),l=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),f=/./.test;a({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),n=c(t),r=e.exec;if(!s(r))return o(f,e,n);var i=o(r,e,n);return null!==i&&(u(i),!0)}})},function(t,e,n){"use strict";var r=n(50).PROPER,i=n(48),a=n(47),o=n(69),s=n(7),u=n(358),c="toString",l=RegExp.prototype[c],f=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=r&&l.name!=c;(f||h)&&i(RegExp.prototype,c,(function(){var t=a(this);return"/"+o(t.source)+"/"+o(u(t))}),{unsafe:!0})},function(t,e,n){n(371)},function(t,e,n){"use strict";n(231)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(236))},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(16),o=n(62),s=n(69),u=n(7),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),n=e.length,r=o(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},function(t,e,n){"use strict";var r=n(3),i=n(374).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(14),i=n(62),a=n(69),o=n(16),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=a(o(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){"use strict";var r,i=n(3),a=n(86),o=n(5).f,s=n(65),u=n(69),c=n(376),l=n(16),f=n(377),h=n(36),d=a("".endsWith),g=a("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),a=u(t);return d?d(e,a,i):g(e,i-a.length,i)===a}})},function(t,e,n){var r=n(357),i=TypeError;t.exports=function(t){if(r(t))throw i("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(34)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(3),i=n(14),a=n(61),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!=u.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],a(e,1114111)!==e)throw o(e+" is not a valid code point");n[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(376),o=n(16),s=n(69),u=n(377),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(374).charAt,i=n(69),a=n(52),o=n(167),s=n(170),u="String Iterator",c=a.set,l=a.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},function(t,e,n){"use strict";var r=n(8),i=n(382),a=n(47),o=n(17),s=n(65),u=n(69),c=n(16),l=n(30),f=n(383),h=n(384);i("match",(function(t,e,n){return[function(e){var n=c(this),i=o(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=a(this),i=u(t),o=n(e,r,i);if(o.done)return o.value;if(!r.global)return h(r,i);var c=r.unicode;r.lastIndex=0;for(var l,d=[],g=0;null!==(l=h(r,i));){var p=u(l[0]);d[g]=p,""===p&&(r.lastIndex=f(i,s(r.lastIndex),c)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(364);var r=n(86),i=n(48),a=n(365),o=n(7),s=n(34),u=n(44),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!g||n){var p=r(/./[h]),v=e(h,""[t],(function(t,e,n,i,o){var s=r(t),u=e.exec;return u===a||u===l.exec?d&&!o?{done:!0,value:p(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(l,h,v[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(374).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(8),i=n(47),a=n(21),o=n(15),s=n(365),u=TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var c=r(n,t,e);return null!==c&&i(c),c}if("RegExp"===o(t))return r(s,t,e);throw u("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(86),o=n(168),s=n(170),u=n(16),c=n(65),l=n(69),f=n(47),h=n(17),d=n(15),g=n(357),p=n(358),v=n(30),y=n(48),x=n(7),_=n(34),m=n(206),b=n(383),w=n(384),T=n(52),A=n(36),S=_("matchAll"),E="RegExp String",M=E+" Iterator",k=T.set,O=T.getterFor(M),R=RegExp.prototype,C=TypeError,I=a("".indexOf),L=a("".matchAll),D=!!L&&!x((function(){L("a",/./)})),P=o((function(t,e,n,r){k(this,{type:M,regexp:t,string:e,global:n,unicode:r,done:!1})}),E,(function(){var t=O(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,r=w(e,n);return null===r?(t.done=!0,s(void 0,!0)):t.global?(""===l(r[0])&&(e.lastIndex=b(n,c(e.lastIndex),t.unicode)),s(r,!1)):(t.done=!0,s(r,!1))})),F=function(t){var e,n,r,i=f(this),a=l(t),o=m(i,RegExp),s=l(p(i));return e=new o(o===RegExp?i.source:i,s),n=!!~I(s,"g"),r=!!~I(s,"u"),e.lastIndex=c(i.lastIndex),new P(e,a,n,r)};r({target:"String",proto:!0,forced:D},{matchAll:function(t){var e,n,r,a,o=u(this);if(h(t)){if(D)return L(o,t)}else{if(g(t)&&(e=l(u(p(t))),!~I(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(D)return L(o,t);if(void 0===(r=v(t,S))&&A&&"RegExp"==d(t)&&(r=F),r)return i(r,t,o)}return n=l(o),a=new RegExp(t,"g"),A?i(F,a,n):a[S](n)}}),A||S in R||y(R,S,F)},function(t,e,n){"use strict";var r=n(3),i=n(216).end;r({target:"String",proto:!0,forced:n(387)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(29);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){"use strict";var r=n(3),i=n(216).start;r({target:"String",proto:!0,forced:n(387)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),i=n(14),a=n(12),o=n(40),s=n(69),u=n(64),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){var e=a(o(t).raw),n=u(e);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(c(i,s(e[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(t,e,n){n(3)({target:"String",proto:!0},{repeat:n(217)})},function(t,e,n){"use strict";var r=n(95),i=n(8),a=n(14),o=n(382),s=n(7),u=n(47),c=n(21),l=n(17),f=n(62),h=n(65),d=n(69),g=n(16),p=n(383),v=n(30),y=n(392),x=n(384),_=n(34)("replace"),m=Math.max,b=Math.min,w=a([].concat),T=a([].push),A=a("".indexOf),S=a("".slice),E="$0"==="a".replace(/./,"$0"),M=!!/./[_]&&""===/./[_]("a","$0");o("replace",(function(t,e,n){var a=M?"$":"$0";return[function(t,n){var r=g(this),a=l(t)?void 0:v(t,_);return a?i(a,t,r,n):i(e,d(r),t,n)},function(t,i){var o=u(this),s=d(t);if("string"==typeof i&&-1===A(i,a)&&-1===A(i,"$<")){var l=n(e,o,s,i);if(l.done)return l.value}var g=c(i);g||(i=d(i));var v=o.global;if(v){var _=o.unicode;o.lastIndex=0}for(var E=[];;){var M=x(o,s);if(null===M)break;if(T(E,M),!v)break;""===d(M[0])&&(o.lastIndex=p(s,h(o.lastIndex),_))}for(var k,O="",R=0,C=0;C<E.length;C++){for(var I=d((M=E[C])[0]),L=m(b(f(M.index),s.length),0),D=[],P=1;P<M.length;P++)T(D,void 0===(k=M[P])?k:String(k));var F=M.groups;if(g){var N=w([I],D,L,s);void 0!==F&&T(N,F);var z=d(r(i,void 0,N))}else z=y(I,s,L,D,F,i);L>=R&&(O+=S(s,R,L)+z,R=L+I.length)}return O+S(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||M)},function(t,e,n){var r=n(14),i=n(40),a=Math.floor,o=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,g=r.length,p=l;return void 0!==f&&(f=i(f),p=c),s(h,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>g){var h=a(l/10);return 0===h?i:h<=g?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(14),o=n(16),s=n(21),u=n(17),c=n(357),l=n(69),f=n(30),h=n(358),d=n(392),g=n(34),p=n(36),v=g("replace"),y=TypeError,x=a("".indexOf),_=a("".replace),m=a("".slice),b=Math.max,w=function(t,e,n){return n>t.length?-1:""===e?n:x(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,a,g,T,A,S,E,M,k=o(this),O=0,R=0,C="";if(!u(t)){if((n=c(t))&&(r=l(o(h(t))),!~x(r,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(a=f(t,v))return i(a,t,k,e);if(p&&n)return _(l(k),t,e)}for(g=l(k),T=l(t),(A=s(e))||(e=l(e)),S=T.length,E=b(1,S),O=w(g,T,0);-1!==O;)M=A?l(e(T,O,g)):d(T,g,O,[],void 0,e),C+=m(g,R,O)+M,R=O+S,O=w(g,T,O+E);return R<g.length&&(C+=m(g,R)),C}})},function(t,e,n){"use strict";var r=n(8),i=n(382),a=n(47),o=n(17),s=n(16),u=n(298),c=n(69),l=n(30),f=n(384);i("search",(function(t,e,n){return[function(e){var n=s(this),i=o(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=a(this),i=c(t),o=n(e,r,i);if(o.done)return o.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(95),i=n(8),a=n(14),o=n(382),s=n(47),u=n(17),c=n(357),l=n(16),f=n(206),h=n(383),d=n(65),g=n(69),p=n(30),v=n(77),y=n(384),x=n(365),_=n(360),m=n(7),b=_.UNSUPPORTED_Y,w=4294967295,T=Math.min,A=[].push,S=a(/./.exec),E=a(A),M=a("".slice),k=!m((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var a=g(l(this)),o=void 0===n?w:n>>>0;if(0===o)return[];if(void 0===t)return[a];if(!c(t))return i(e,a,t,o);for(var s,u,f,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,y=new RegExp(t.source,d+"g");(s=i(x,y,a))&&!((u=y.lastIndex)>p&&(E(h,M(a,p,s.index)),s.length>1&&s.index<a.length&&r(A,h,v(s,1)),f=s[0].length,p=u,h.length>=o));)y.lastIndex===s.index&&y.lastIndex++;return p===a.length?!f&&S(y,"")||E(h,""):E(h,M(a,p)),h.length>o?v(h,0,o):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=l(this),o=u(e)?void 0:p(e,t);return o?i(o,e,r,n):i(a,g(r),e,n)},function(t,r){var i=s(this),o=g(t),u=n(a,i,o,r,a!==e);if(u.done)return u.value;var c=f(i,RegExp),l=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),v=new c(b?"^(?:"+i.source+")":i,p),x=void 0===r?w:r>>>0;if(0===x)return[];if(0===o.length)return null===y(v,o)?[o]:[];for(var _=0,m=0,A=[];m<o.length;){v.lastIndex=b?0:m;var S,k=y(v,b?M(o,m):o);if(null===k||(S=T(d(v.lastIndex+(b?m:0)),o.length))===_)m=h(o,m,l);else{if(E(A,M(o,_,m)),A.length===x)return A;for(var O=1;O<=k.length-1;O++)if(E(A,k[O]),A.length===x)return A;m=_=S}}return E(A,M(o,_)),A}]}),!k,b)},function(t,e,n){"use strict";var r,i=n(3),a=n(86),o=n(5).f,s=n(65),u=n(69),c=n(376),l=n(16),f=n(377),h=n(36),d=a("".startsWith),g=a("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):g(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(16),o=n(62),s=n(69),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(a(this)),f=i.length,h=o(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:o(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},function(t,e,n){"use strict";var r=n(3),i=n(262).trim;r({target:"String",proto:!0,forced:n(399)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(50).PROPER,i=n(7),a=n(263);t.exports=function(t){return i((function(){return!!a[t]()||"
"!=="
"[t]()||r&&a[t].name!==t}))}},function(t,e,n){n(401);var r=n(3),i=n(402);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},function(t,e,n){var r=n(3),i=n(402);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},function(t,e,n){"use strict";var r=n(262).end,i=n(399);t.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},function(t,e,n){n(404);var r=n(3),i=n(405);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},function(t,e,n){var r=n(3),i=n(405);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},function(t,e,n){"use strict";var r=n(262).start,i=n(399);t.exports=i("trimStart")?function(){return r(this)}:"".trimStart},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,n){var r=n(14),i=n(16),a=n(69),o=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=a(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(r),o,""")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var r=n(7);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(407);r({target:"String",proto:!0,forced:n(408)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,n){n(422)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(8),o=n(6),s=n(423),u=n(204),c=n(197),l=n(200),f=n(11),h=n(44),d=n(268),g=n(65),p=n(201),v=n(424),y=n(18),x=n(39),_=n(70),m=n(20),b=n(23),w=n(72),T=n(25),A=n(114),S=n(58).f,E=n(426),M=n(84).forEach,k=n(191),O=n(45),R=n(5),C=n(52),I=n(117),L=C.get,D=C.set,P=C.enforce,F=O.f,N=R.f,z=Math.round,X=i.RangeError,B=c.ArrayBuffer,j=B.prototype,U=c.DataView,$=u.NATIVE_ARRAY_BUFFER_VIEWS,Y=u.TYPED_ARRAY_TAG,V=u.TypedArray,G=u.TypedArrayPrototype,H=u.aTypedArrayConstructor,W=u.isTypedArray,q="BYTES_PER_ELEMENT",Z="Wrong length",K=function(t,e){H(t);for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i},J=function(t,e){F(t,e,{get:function(){return L(this)[e]}})},Q=function(t){var e;return T(j,t)||"ArrayBuffer"==(e=_(t))||"SharedArrayBuffer"==e},tt=function(t,e){return W(t)&&!b(e)&&e in t&&d(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?f(2,t[e]):N(t,e)},nt=function(t,e,n){return e=y(e),!(tt(t,e)&&m(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?F(t,e,n):(t[e]=n.value,t)};o?($||(R.f=et,O.f=nt,J(G,"buffer"),J(G,"byteOffset"),J(G,"byteLength"),J(G,"length")),r({target:"Object",stat:!0,forced:!$},{getOwnPropertyDescriptor:et,defineProperty:nt}),t.exports=function(t,e,n){var o=t.match(/\d+$/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],y=d,x=y&&y.prototype,_={},b=function(t,e){F(t,e,{get:function(){return function(t,e){var n=L(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=L(t);n&&(r=(r=z(r))<0?0:r>255?255:255&r),i.view[f](e*o+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};$?s&&(y=e((function(t,e,n,r){return l(t,x),I(m(e)?Q(e)?void 0!==r?new d(e,v(n,o),r):void 0!==n?new d(e,v(n,o)):new d(e):W(e)?K(y,e):a(E,y,e):new d(p(e)),t,y)})),A&&A(y,V),M(S(d),(function(t){t in y||h(y,t,d[t])})),y.prototype=x):(y=e((function(t,e,n,r){l(t,x);var i,s,u,c=0,f=0;if(m(e)){if(!Q(e))return W(e)?K(y,e):a(E,y,e);i=e,f=v(n,o);var h=e.byteLength;if(void 0===r){if(h%o)throw X(Z);if((s=h-f)<0)throw X(Z)}else if((s=g(r)*o)+f>h)throw X(Z);u=s/o}else u=p(e),i=new B(s=u*o);for(D(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new U(i)});c<u;)b(t,c++)})),A&&A(y,V),x=y.prototype=w(G)),x.constructor!==y&&h(x,"constructor",y),P(x).TypedArrayConstructor=y,Y&&h(x,Y,u);var T=y!=d;_[u]=y,r({global:!0,constructor:!0,forced:T,sham:!$},_),q in y||h(y,q,o),q in x||h(x,q,o),k(u)}):t.exports=function(){}},function(t,e,n){var r=n(4),i=n(7),a=n(162),o=n(204).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(t,e,n){var r=n(425),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw i("Wrong offset");return n}},function(t,e,n){var r=n(62),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw i("The argument can't be less than 0");return e}},function(t,e,n){var r=n(85),i=n(8),a=n(207),o=n(40),s=n(64),u=n(132),c=n(133),l=n(130),f=n(427),h=n(204).aTypedArrayConstructor,d=n(428);t.exports=function(t){var e,n,g,p,v,y,x,_,m=a(this),b=o(t),w=arguments.length,T=w>1?arguments[1]:void 0,A=void 0!==T,S=c(b);if(S&&!l(S))for(_=(x=u(b,S)).next,b=[];!(y=i(_,x)).done;)b.push(y.value);for(A&&w>2&&(T=r(T,arguments[2])),n=s(b),g=new(h(m))(n),p=f(g),e=0;n>e;e++)v=A?T(b[e],e):b[e],g[e]=p?d(v):+v;return g}},function(t,e,n){var r=n(70);t.exports=function(t){var e=r(t);return"BigInt64Array"==e||"BigUint64Array"==e}},function(t,e,n){var r=n(19),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw i("Can't convert number to bigint");return BigInt(e)}},function(t,e,n){n(422)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(422)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(422)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(422)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(422)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(422)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(422)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(422)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(204),i=n(64),a=n(62),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},function(t,e,n){"use strict";var r=n(14),i=n(204),a=r(n(142)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(84).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(147),a=n(428),o=n(70),s=n(8),u=n(14),c=n(7),l=r.aTypedArray,f=r.exportTypedArrayMethod,h=u("".slice);f("fill",(function(t){var e=arguments.length;l(this);var n="Big"===h(o(this),0,3)?a(t):+t;return s(i,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},function(t,e,n){"use strict";var r=n(204),i=n(84).filter,a=n(442),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},function(t,e,n){var r=n(443),i=n(444);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(64);t.exports=function(t,e){for(var n=0,i=r(e),a=new t(i);i>n;)a[n]=e[n++];return a}},function(t,e,n){var r=n(204),i=n(206),a=r.aTypedArrayConstructor,o=r.getTypedArrayConstructor;t.exports=function(t){return a(i(t,o(t)))}},function(t,e,n){"use strict";var r=n(204),i=n(84).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(84).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(152).findLast,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(152).findLastIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(84).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(423);(0,n(204).exportTypedArrayStaticMethod)("from",n(426),r)},function(t,e,n){"use strict";var r=n(204),i=n(60).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(60).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(7),a=n(14),o=n(204),s=n(166),u=n(34)("iterator"),c=r.Uint8Array,l=a(s.values),f=a(s.keys),h=a(s.entries),d=o.aTypedArray,g=o.exportTypedArrayMethod,p=c&&c.prototype,v=!i((function(){p[u].call([1])})),y=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,x=function(){return l(d(this))};g("entries",(function(){return h(d(this))}),v),g("keys",(function(){return f(d(this))}),v),g("values",x,v||!y,{name:"values"}),g(u,x,v||!y,{name:"values"})},function(t,e,n){"use strict";var r=n(204),i=n(14),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},function(t,e,n){"use strict";var r=n(204),i=n(95),a=n(173),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var r=n(204),i=n(84).map,a=n(444),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},function(t,e,n){"use strict";var r=n(204),i=n(423),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(a(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},function(t,e,n){"use strict";var r=n(204),i=n(179).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=n(179).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(204),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,n=i(e).length,r=o(n/2),a=0;a<r;)t=e[a],e[a++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var r=n(4),i=n(8),a=n(204),o=n(64),s=n(424),u=n(40),c=n(7),l=r.RangeError,f=r.Int8Array,h=f&&f.prototype,d=h&&h.set,g=a.aTypedArray,p=a.exportTypedArrayMethod,v=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),y=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){g(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(v)return i(d,this,n,e);var r=this.length,a=o(n),c=0;if(a+e>r)throw l("Wrong length");for(;c<a;)this[e+c]=n[c++]}),!v||y)},function(t,e,n){"use strict";var r=n(204),i=n(444),a=n(7),o=n(96),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(s(this),t,e),r=i(this),a=0,u=n.length,c=new r(u);u>a;)c[a]=n[a++];return c}),a((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(204),i=n(84).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(86),a=n(7),o=n(31),s=n(186),u=n(204),c=n(187),l=n(188),f=n(28),h=n(189),d=u.aTypedArray,g=u.exportTypedArrayMethod,p=r.Uint16Array,v=p&&i(p.prototype.sort),y=!(!v||a((function(){v(new p(2),null)}))&&a((function(){v(new p(2),{})}))),x=!!v&&!a((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new p(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(v(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));g("sort",(function(t){return void 0!==t&&o(t),x?v(this,t):s(d(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!x||y)},function(t,e,n){"use strict";var r=n(204),i=n(65),a=n(61),o=n(444),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=s(this),r=n.length,u=a(t,r);return new(o(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:a(e,r))-u))}))},function(t,e,n){"use strict";var r=n(4),i=n(95),a=n(204),o=n(7),s=n(96),u=r.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&o((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,h?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(204).exportTypedArrayMethod,i=n(7),a=n(4),o=n(14),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;r("toString",c,f)},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(69),o=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=a(t),i="",h=r.length,d=0;d<h;){if("%"===(e=s(r,d++)))if("u"===s(r,d)){if(n=c(r,d+1,d+5),u(f,n)){i+=o(parseInt(n,16)),d+=5;continue}}else if(n=c(r,d,d+2),u(l,n)){i+=o(parseInt(n,16)),d+=2;continue}i+=e}return i}})},function(t,e,n){n(470)},function(t,e,n){"use strict";var r,i=n(235),a=n(4),o=n(14),s=n(199),u=n(232),c=n(231),l=n(471),f=n(20),h=n(52).enforce,d=n(7),g=n(53),p=Object,v=Array.isArray,y=p.isExtensible,x=p.isFrozen,_=p.isSealed,m=p.freeze,b=p.seal,w={},T={},A=!a.ActiveXObject&&"ActiveXObject"in a,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=c("WeakMap",S,l),M=E.prototype,k=o(M.set);if(g)if(A){r=l.getConstructor(S,"WeakMap",!0),u.enable();var O=o(M.delete),R=o(M.has),C=o(M.get);s(M,{delete:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)||e.frozen.delete(t)}return O(this,t)},has:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),R(this,t)||e.frozen.has(t)}return R(this,t)},get:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),R(this,t)?C(this,t):e.frozen.get(t)}return C(this,t)},set:function(t,e){if(f(t)&&!y(t)){var n=h(this);n.frozen||(n.frozen=new r),R(this,t)?k(this,t,e):n.frozen.set(t,e)}else k(this,t,e);return this}})}else i&&d((function(){var t=m([]);return k(new E,t,1),!x(t)}))&&s(M,{set:function(t,e){var n;return v(t)&&(x(t)?n=w:_(t)&&(n=T)),k(this,t,e),n==w&&m(t),n==T&&b(t),this}})},function(t,e,n){"use strict";var r=n(14),i=n(199),a=n(232).getWeakData,o=n(200),s=n(47),u=n(17),c=n(20),l=n(129),f=n(84),h=n(39),d=n(52),g=d.set,p=d.getterFor,v=f.find,y=f.findIndex,x=r([].splice),_=0,m=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var n=w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,(function(e){return e[0]===t}));return~e&&x(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,i){o(t,d),g(t,{type:e,id:_++,frozen:void 0}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,v=p(e),y=function(t,e,n){var r=v(t),i=a(s(e),!0);return!0===i?m(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=v(this);if(!c(t))return!1;var n=a(t);return!0===n?m(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!c(t))return!1;var n=a(t);return!0===n?m(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=v(this);if(c(t)){var n=a(t);return!0===n?m(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return y(this,t,e)}}:{add:function(t){return y(this,t,!0)}}),f}}},function(t,e,n){n(473)},function(t,e,n){"use strict";n(231)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(471))},function(t,e,n){var r=n(3),i=n(4),a=n(24),o=n(14),s=n(8),u=n(7),c=n(69),l=n(39),f=n(318),h=n(475).ctoi,d=/[^\d+/a-z]/i,g=/[\t\n\f\r ]+/g,p=/[=]+$/,v=a("atob"),y=String.fromCharCode,x=o("".charAt),_=o("".replace),m=o(d.exec),b=u((function(){return""!==v(" ")})),w=!u((function(){v("a")})),T=!b&&!w&&!u((function(){v()})),A=!b&&!w&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:b||w||T||A},{atob:function(t){if(f(arguments.length,1),T||A)return s(v,i,t);var e,n,r=_(c(t),g,""),o="",u=0,b=0;if(r.length%4==0&&(r=_(r,p,"")),r.length%4==1||m(d,r))throw new(a("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=x(r,u++);)l(h,e)&&(n=b%4?64*n+h[e]:h[e],b++%4&&(o+=y(255&n>>(-2*b&6))));return o}})},function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n={},r=0;r<66;r++)n[e.charAt(r)]=r;t.exports={itoc:e,ctoi:n}},function(t,e,n){var r=n(3),i=n(4),a=n(24),o=n(14),s=n(8),u=n(7),c=n(69),l=n(318),f=n(475).itoc,h=a("btoa"),d=o("".charAt),g=o("".charCodeAt),p=!!h&&!u((function(){h()})),v=!!h&&u((function(){return"bnVsbA=="!==h(null)})),y=!!h&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:p||v||y},{btoa:function(t){if(l(arguments.length,1),p||v||y)return s(h,i,c(t));for(var e,n,r=c(t),o="",u=0,x=f;d(r,u)||(x="=",u%1);){if((n=g(r,u+=3/4))>255)throw new(a("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o+=d(x,63&(e=e<<8|n)>>8-u%1*8)}return o}})},function(t,e,n){var r=n(4),i=n(478),a=n(479),o=n(158),s=n(44),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(a)},function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(43)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(4),i=n(478),a=n(479),o=n(166),s=n(44),u=n(34),c=u("iterator"),l=u("toStringTag"),f=o.values,h=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(e){t[c]=f}if(t[l]||s(t,l,e),i[e])for(var n in o)if(t[n]!==o[n])try{s(t,n,o[n])}catch(e){t[n]=o[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(a,"DOMTokenList")},function(t,e,n){"use strict";var r=n(3),i=n(482),a=n(24),o=n(7),s=n(72),u=n(11),c=n(45).f,l=n(48),f=n(307),h=n(39),d=n(200),g=n(47),p=n(124),v=n(118),y=n(483),x=n(121),_=n(52),m=n(6),b=n(36),w="DOMException",T="DATA_CLONE_ERR",A=a("Error"),S=a(w)||function(){try{(new(a("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name==T&&25==t.code)return t.constructor}}(),E=S&&S.prototype,M=A.prototype,k=_.set,O=_.getterFor(w),R="stack"in A(w),C=function(t){return h(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,L);var t=arguments.length,e=v(t<1?void 0:arguments[0]),n=v(t<2?void 0:arguments[1],"Error"),r=C(n);if(k(this,{type:w,name:n,message:e,code:r}),m||(this.name=n,this.message=e,this.code=r),R){var i=A(e);i.name=w,c(this,"stack",u(1,x(i.stack,1)))}},L=I.prototype=s(M),D=function(t){return{enumerable:!0,configurable:!0,get:t}},P=function(t){return D((function(){return O(this)[t]}))};m&&(f(L,"code",P("code")),f(L,"message",P("message")),f(L,"name",P("name"))),c(L,"constructor",u(1,I));var F=o((function(){return!(new S instanceof A)})),N=F||o((function(){return M.toString!==p||"2: 1"!==String(new S(1,2))})),z=F||o((function(){return 25!==new S(1,"DataCloneError").code})),X=F||25!==S[T]||25!==E[T],B=b?N||z||X:F;r({global:!0,constructor:!0,forced:B},{DOMException:B?I:S});var j=a(w),U=j.prototype;for(var $ in N&&(b||S===j)&&l(U,"toString",p),z&&m&&S===j&&f(U,"code",D((function(){return C(g(this).name)}))),y)if(h(y,$)){var Y=y[$],V=Y.s,G=u(6,Y.c);h(j,V)||c(j,V,G),h(U,V)||c(U,V,G)}},function(t,e,n){var r=n(180);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(t){}}},function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(24),o=n(11),s=n(45).f,u=n(39),c=n(200),l=n(117),f=n(118),h=n(483),d=n(121),g=n(6),p=n(36),v="DOMException",y=a("Error"),x=a(v),_=function(){c(this,m);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new x(e,n),i=y(e);return i.name=v,s(r,"stack",o(1,d(i.stack,1))),l(r,this,_),r},m=_.prototype=x.prototype,b="stack"in y(v),w="stack"in new x(1,2),T=x&&g&&Object.getOwnPropertyDescriptor(i,v),A=!(!T||T.writable&&T.configurable),S=b&&!A&&!w;r({global:!0,constructor:!0,forced:p||S},{DOMException:S?_:x});var E=a(v),M=E.prototype;if(M.constructor!==E)for(var k in p||s(M,"constructor",o(1,E)),h)if(u(h,k)){var O=h[k],R=O.s;u(E,R)||s(E,R,o(6,O.c))}},function(t,e,n){var r=n(24),i="DOMException";n(83)(r(i),i)},function(t,e,n){n(487),n(488)},function(t,e,n){var r=n(3),i=n(4),a=n(317).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==a},{clearImmediate:a})},function(t,e,n){var r=n(3),i=n(4),a=n(317).set,o=n(489),s=i.setImmediate?o(a,!1):a;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},function(t,e,n){"use strict";var r,i=n(4),a=n(95),o=n(21),s=n(490),u=n(29),c=n(96),l=n(318),f=i.Function,h=/MSIE .\./.test(u)||s&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));t.exports=function(t,e){var n=e?2:1;return h?function(r,i){var s=l(arguments.length,1)>n,u=o(r)?r:f(r),h=s?c(arguments,n):[],d=s?function(){a(u,this,h)}:u;return e?t(d,i):t(d)}:t}},function(t){t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(t,e,n){var r=n(3),i=n(4),a=n(320),o=n(31),s=n(318),u=n(180),c=i.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(t){s(arguments.length,1),o(t);var e=u&&c.domain;a(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(307),o=n(6),s=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(o){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||a(i,"self",{get:function(){return i},set:function(t){if(this!==i)throw s("Illegal invocation");u(i,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(t){}},function(t,e,n){var r,i=n(36),a=n(3),o=n(4),s=n(24),u=n(14),c=n(7),l=n(41),f=n(21),h=n(90),d=n(17),g=n(20),p=n(23),v=n(129),y=n(47),x=n(70),_=n(39),m=n(78),b=n(44),w=n(64),T=n(318),A=n(358),S=n(494),E=n(495),M=n(122),k=n(28),O=n(328),R=n(329),C=n(180),I=o.Object,L=o.Array,D=o.Date,P=o.Error,F=o.EvalError,N=o.RangeError,z=o.ReferenceError,X=o.SyntaxError,B=o.TypeError,j=o.URIError,U=o.PerformanceMark,$=o.WebAssembly,Y=$&&$.CompileError||P,V=$&&$.LinkError||P,G=$&&$.RuntimeError||P,H=s("DOMException"),W=S.Map,q=S.has,Z=S.get,K=S.set,J=E.Set,Q=E.add,tt=s("Object","keys"),et=u([].push),nt=u((!0).valueOf),rt=u(1..valueOf),it=u("".valueOf),at=u(D.prototype.getTime),ot=l("structuredClone"),st="DataCloneError",ut="Transferring",ct=function(t){return!c((function(){var e=new o.Set([7]),n=t(e),r=t(I(7));return n==e||!n.has(7)||"object"!=typeof r||7!=r}))&&t},lt=function(t,e){return!c((function(){var n=new e,r=t({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof e&&r.a.stack===n.stack)}))},ft=o.structuredClone,ht=i||!lt(ft,P)||!lt(ft,H)||(r=ft,!!c((function(){var t=r(new o.AggregateError([1],ot,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=ot||3!=t.cause}))),dt=!ft&&ct((function(t){return new U(ot,{detail:t}).detail})),gt=ct(ft)||dt,pt=function(t){throw new H("Uncloneable type: "+t,st)},vt=function(t,e){throw new H((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",st)},yt=function(t,e){if(p(t)&&pt("Symbol"),!g(t))return t;if(e){if(q(e,t))return Z(e,t)}else e=new W;var n,r,i,a,u,c,l,h,d,v,y=x(t),T=!1;switch(y){case"Array":i=L(w(t)),T=!0;break;case"Object":i={},T=!0;break;case"Map":i=new W,T=!0;break;case"Set":i=new J,T=!0;break;case"RegExp":i=new RegExp(t.source,A(t));break;case"Error":switch(r=t.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=F();break;case"RangeError":i=N();break;case"ReferenceError":i=z();break;case"SyntaxError":i=X();break;case"TypeError":i=B();break;case"URIError":i=j();break;case"CompileError":i=Y();break;case"LinkError":i=V();break;case"RuntimeError":i=G();break;default:i=P()}T=!0;break;case"DOMException":i=new H(t.message,t.name),T=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=o[y],g(n)||vt(y),i=new n(yt(t.buffer,e),t.byteOffset,"DataView"===y?t.byteLength:t.length);break;case"DOMQuad":try{i=new DOMQuad(yt(t.p1,e),yt(t.p2,e),yt(t.p3,e),yt(t.p4,e))}catch(e){gt?i=gt(t):vt(y)}break;case"FileList":if(a=function(){var t;try{t=new o.DataTransfer}catch(e){try{t=new o.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(u=0,c=w(t);u<c;u++)a.items.add(yt(t[u],e));i=a.files}else gt?i=gt(t):vt(y);break;case"ImageData":try{i=new ImageData(yt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){gt?i=gt(t):vt(y)}break;default:if(gt)i=gt(t);else switch(y){case"BigInt":i=I(t.valueOf());break;case"Boolean":i=I(nt(t));break;case"Number":i=I(rt(t));break;case"String":i=I(it(t));break;case"Date":i=new D(at(t));break;case"ArrayBuffer":(n=o.DataView)||"function"==typeof t.slice||vt(y);try{if("function"==typeof t.slice)i=t.slice(0);else for(c=t.byteLength,i=new ArrayBuffer(c),d=new n(t),v=new n(i),u=0;u<c;u++)v.setUint8(u,d.getUint8(u))}catch(t){throw new H("ArrayBuffer is detached",st)}break;case"SharedArrayBuffer":i=t;break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){vt(y)}break;case"DOMPoint":case"DOMPointReadOnly":n=o[y];try{i=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){vt(y)}break;case"DOMRect":case"DOMRectReadOnly":n=o[y];try{i=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){vt(y)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=o[y];try{i=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){vt(y)}break;case"AudioData":case"VideoFrame":f(t.clone)||vt(y);try{i=t.clone()}catch(t){pt(y)}break;case"File":try{i=new File([t],t.name,t)}catch(t){vt(y)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":vt(y);default:pt(y)}}if(K(e,t,i),T)switch(y){case"Array":case"Object":for(l=tt(t),u=0,c=w(l);u<c;u++)h=l[u],m(i,h,yt(t[h],e));break;case"Map":t.forEach((function(t,n){K(i,yt(n,e),yt(t,e))}));break;case"Set":t.forEach((function(t){Q(i,yt(t,e))}));break;case"Error":b(i,"message",yt(t.message,e)),_(t,"cause")&&b(i,"cause",yt(t.cause,e)),"AggregateError"==r&&(i.errors=yt(t.errors,e));case"DOMException":M&&b(i,"stack",yt(t.stack,e))}return i},xt=ft&&!c((function(){if(R&&k>92||C&&k>94||O&&k>97)return!1;var t=new ArrayBuffer(8),e=ft(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength})),_t=function(t,e){if(!g(t))throw B("Transfer option cannot be converted to a sequence");var n=[];v(t,(function(t){et(n,y(t))}));var r,i,a,s,u,c,l=0,d=w(n);if(xt)for(s=ft(n,{transfer:n});l<d;)K(e,n[l],s[l++]);else for(;l<d;){if(r=n[l++],q(e,r))throw new H("Duplicate transferable",st);switch(i=x(r)){case"ImageBitmap":a=o.OffscreenCanvas,h(a)||vt(i,ut);try{(c=new a(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),u=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||vt(i,ut);try{u=r.clone(),r.close()}catch(t){}break;case"ArrayBuffer":case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":vt(i,ut)}if(void 0===u)throw new H("This object cannot be transferred: "+i,st);K(e,r,u)}};a({global:!0,enumerable:!0,sham:!xt,forced:ht},{structuredClone:function(t){var e,n=T(arguments.length,1)>1&&!d(arguments[1])?y(arguments[1]):void 0,r=n?n.transfer:void 0;return void 0!==r&&(e=new W,_t(r,e)),yt(t,e)}})},function(t,e,n){var r=n(14),i=Map.prototype;t.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},function(t,e,n){var r=n(14),i=Set.prototype;t.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i,$has:i.has,$keys:i.keys}},function(t,e,n){n(497),n(498)},function(t,e,n){var r=n(3),i=n(4),a=n(489)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==a},{setInterval:a})},function(t,e,n){var r=n(3),i=n(4),a=n(489)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==a},{setTimeout:a})},function(t,e,n){n(500)},function(t,e,n){"use strict";n(380);var r,i=n(3),a=n(6),o=n(501),s=n(4),u=n(85),c=n(14),l=n(48),f=n(307),h=n(200),d=n(39),g=n(281),p=n(160),v=n(77),y=n(374).codeAt,x=n(502),_=n(69),m=n(83),b=n(318),w=n(503),T=n(52),A=T.set,S=T.getterFor("URL"),E=w.URLSearchParams,M=w.getState,k=s.URL,O=s.TypeError,R=s.parseInt,C=Math.floor,I=Math.pow,L=c("".charAt),D=c(/./.exec),P=c([].join),F=c(1..toString),N=c([].pop),z=c([].push),X=c("".replace),B=c([].shift),j=c("".split),U=c("".slice),$=c("".toLowerCase),Y=c([].unshift),V="Invalid scheme",G="Invalid host",H="Invalid port",W=/[a-z]/i,q=/[\d+-.a-z]/i,Z=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,it=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)Y(e,t%256),t=C(t/256);return P(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=F(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},ot={},st=g({},ot,{" ":1,'"':1,"<":1,">":1,"`":1}),ut=g({},st,{"#":1,"?":1,"{":1,"}":1}),ct=g({},ut,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),lt=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ht=function(t,e){var n;return 2==t.length&&D(W,L(t,0))&&(":"==(n=L(t,1))||!e&&"|"==n)},dt=function(t){var e;return t.length>1&&ht(U(t,0,2))&&(2==t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},gt=function(t){return"."===t||"%2e"===$(t)},pt={},vt={},yt={},xt={},_t={},mt={},bt={},wt={},Tt={},At={},St={},Et={},Mt={},kt={},Ot={},Rt={},Ct={},It={},Lt={},Dt={},Pt={},Ft=function(t,e,n){var r,i,a,o=_(t);if(e){if(i=this.parse(o))throw O(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ft(n,!0)),i=this.parse(o,null,r))throw O(i);(a=M(new E)).bindURL(this),this.searchParams=a}};Ft.prototype={type:"URL",parse:function(t,e,n){var i,a,o,s,u,c=this,l=e||pt,f=0,h="",g=!1,y=!1,x=!1;for(t=_(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=X(t,rt,"")),t=X(t,it,""),i=p(t);f<=i.length;){switch(a=i[f],l){case pt:if(!a||!D(W,a)){if(e)return V;l=yt;continue}h+=$(a),l=vt;break;case vt:if(a&&(D(q,a)||"+"==a||"-"==a||"."==a))h+=$(a);else{if(":"!=a){if(e)return V;h="",l=yt,f=0;continue}if(e&&(c.isSpecial()!=d(ft,h)||"file"==h&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ft[c.scheme]==c.port&&(c.port=null));h="","file"==c.scheme?l=kt:c.isSpecial()&&n&&n.scheme==c.scheme?l=xt:c.isSpecial()?l=wt:"/"==i[f+1]?(l=_t,f++):(c.cannotBeABaseURL=!0,z(c.path,""),l=Lt)}break;case yt:if(!n||n.cannotBeABaseURL&&"#"!=a)return V;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Pt;break}l="file"==n.scheme?kt:mt;continue;case xt:if("/"!=a||"/"!=i[f+1]){l=mt;continue}l=Tt,f++;break;case _t:if("/"==a){l=At;break}l=It;continue;case mt:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=bt;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Dt;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Pt}break;case bt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=It;continue}l=At}else l=Tt;break;case wt:if(l=Tt,"/"!=a||"/"!=L(h,f+1))continue;f++;break;case Tt:if("/"!=a&&"\\"!=a){l=At;continue}break;case At:if("@"==a){g&&(h="%40"+h),g=!0,o=p(h);for(var m=0;m<o.length;m++){var b=o[m];if(":"!=b||x){var w=lt(b,ct);x?c.password+=w:c.username+=w}else x=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(g&&""==h)return"Invalid authority";f-=p(h).length+1,h="",l=St}else h+=a;break;case St:case Et:if(e&&"file"==c.scheme){l=Rt;continue}if(":"!=a||y){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==h)return G;if(e&&""==h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",l=Ct,e)return;continue}"["==a?y=!0:"]"==a&&(y=!1),h+=a}else{if(""==h)return G;if(s=c.parseHost(h))return s;if(h="",l=Mt,e==Et)return}break;case Mt:if(!D(Z,a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=h){var T=R(h,10);if(T>65535)return H;c.port=c.isSpecial()&&T===ft[c.scheme]?null:T,h=""}if(e)return;l=Ct;continue}return H}h+=a;break;case kt:if(c.scheme="file","/"==a||"\\"==a)l=Ot;else{if(!n||"file"!=n.scheme){l=It;continue}if(a==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Dt;else{if("#"!=a){dt(P(v(i,f),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=It;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Pt}}break;case Ot:if("/"==a||"\\"==a){l=Rt;break}n&&"file"==n.scheme&&!dt(P(v(i,f),""))&&(ht(n.path[0],!0)?z(c.path,n.path[0]):c.host=n.host),l=It;continue;case Rt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&ht(h))l=It;else if(""==h){if(c.host="",e)return;l=Ct}else{if(s=c.parseHost(h))return s;if("localhost"==c.host&&(c.host=""),e)return;h="",l=Ct}continue}h+=a;break;case Ct:if(c.isSpecial()){if(l=It,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=r&&(l=It,"/"!=a))continue}else c.fragment="",l=Pt;else c.query="",l=Dt;break;case It:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(u=$(u=h))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||z(c.path,"")):gt(h)?"/"==a||"\\"==a&&c.isSpecial()||z(c.path,""):("file"==c.scheme&&!c.path.length&&ht(h)&&(c.host&&(c.host=""),h=L(h,0)+":"),z(c.path,h)),h="","file"==c.scheme&&(a==r||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)B(c.path);"?"==a?(c.query="",l=Dt):"#"==a&&(c.fragment="",l=Pt)}else h+=lt(a,ut);break;case Lt:"?"==a?(c.query="",l=Dt):"#"==a?(c.fragment="",l=Pt):a!=r&&(c.path[0]+=lt(a,ot));break;case Dt:e||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":lt(a,ot)):(c.fragment="",l=Pt);break;case Pt:a!=r&&(c.fragment+=lt(a,st))}f++}},parseHost:function(t){var e,n,r;if("["==L(t,0)){if("]"!=L(t,t.length-1))return G;if(e=function(t){var e,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return L(t,f)};if(":"==h()){if(":"!=L(t,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=n=0;n<4&&D(tt,h());)e=16*e+R(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!D(Z,h()))return;for(;D(Z,h());){if(a=R(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}(U(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=x(t),D(et,t))return G;if(e=function(t){var e,n,r,i,a,o,s,u=j(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(a=10,i.length>1&&"0"==L(i,0)&&(a=D(K,i)?16:8,i=U(i,8==a?1:2)),""===i)o=0;else{if(!D(10==a?Q:8==a?J:tt,i))return t;o=R(i,a)}z(n,o)}for(r=0;r<e;r++)if(o=n[r],r==e-1){if(o>=I(256,5-e))return null}else if(o>255)return null;for(s=N(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s}(t),null===e)return G;this.host=e}else{if(D(nt,t))return G;for(e="",n=p(t),r=0;r<n.length;r++)e+=lt(n[r],ot);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&ht(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=at(i),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+P(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Nt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(_(t)+":",pt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=lt(e[n],ct)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=lt(e[n],ct)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,St)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getPort:function(){var t=this.port;return null===t?"":_(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=_(t))?this.port=null:this.parse(t,Mt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+P(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Ct))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=_(t))?this.query=null:("?"==L(t,0)&&(t=U(t,1)),this.query="",this.parse(t,Dt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=_(t))?("#"==L(t,0)&&(t=U(t,1)),this.fragment="",this.parse(t,Pt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Nt=function(t){var e=h(this,zt),n=b(arguments.length,1)>1?arguments[1]:void 0,r=A(e,new Ft(t,!1,n));a||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},zt=Nt.prototype,Xt=function(t,e){return{get:function(){return S(this)[t]()},set:e&&function(t){return S(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(f(zt,"href",Xt("serialize","setHref")),f(zt,"origin",Xt("getOrigin")),f(zt,"protocol",Xt("getProtocol","setProtocol")),f(zt,"username",Xt("getUsername","setUsername")),f(zt,"password",Xt("getPassword","setPassword")),f(zt,"host",Xt("getHost","setHost")),f(zt,"hostname",Xt("getHostname","setHostname")),f(zt,"port",Xt("getPort","setPort")),f(zt,"pathname",Xt("getPathname","setPathname")),f(zt,"search",Xt("getSearch","setSearch")),f(zt,"searchParams",Xt("getSearchParams")),f(zt,"hash",Xt("getHash","setHash"))),l(zt,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(zt,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),k){var Bt=k.createObjectURL,jt=k.revokeObjectURL;Bt&&l(Nt,"createObjectURL",u(Bt,k)),jt&&l(Nt,"revokeObjectURL",u(jt,k))}m(Nt,"URL"),i({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Nt})},function(t,e,n){var r=n(7),i=n(34),a=n(36),o=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),a&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){var r=n(14),i=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=r(o.exec),l=Math.floor,f=String.fromCharCode,h=r("".charCodeAt),d=r([].join),g=r([].push),p=r("".replace),v=r("".split),y=r("".toLowerCase),x=function(t){return t+22+75*(t<26)},_=function(t,e,n){var r=0;for(t=n?l(t/700):t>>1,t+=l(t/e);t>455;)t=l(t/35),r+=36;return l(r+36*t/(t+38))},m=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=h(t,n++);if(i>=55296&&i<=56319&&n<r){var a=h(t,n++);56320==(64512&a)?g(e,((1023&i)<<10)+(1023&a)+65536):(g(e,i),n--)}else g(e,i)}return e}(t);var n,r,a=t.length,o=128,c=0,p=72;for(n=0;n<t.length;n++)(r=t[n])<128&&g(e,f(r));var v=e.length,y=v;for(v&&g(e,"-");y<a;){var m=i;for(n=0;n<t.length;n++)(r=t[n])>=o&&r<m&&(m=r);var b=y+1;if(m-o>l((i-c)/b))throw u(s);for(c+=(m-o)*b,o=m,n=0;n<t.length;n++){if((r=t[n])<o&&++c>i)throw u(s);if(r==o){for(var w=c,T=36;;){var A=T<=p?1:T>=p+26?26:T-p;if(w<A)break;var S=w-A,E=36-A;g(e,f(x(A+S%E))),w=l(S/E),T+=36}g(e,f(x(w))),p=_(c,b,y==v),c=0,y++}}c++,o++}return d(e,"")};t.exports=function(t){var e,n,r=[],i=v(p(y(t),o,"."),".");for(e=0;e<i.length;e++)n=i[e],g(r,c(a,n)?"xn--"+m(n):n);return d(r,".")}},function(t,e,n){"use strict";n(166);var r=n(3),i=n(4),a=n(8),o=n(14),s=n(6),u=n(501),c=n(48),l=n(199),f=n(83),h=n(168),d=n(52),g=n(200),p=n(21),v=n(39),y=n(85),x=n(70),_=n(47),m=n(20),b=n(69),w=n(72),T=n(11),A=n(132),S=n(133),E=n(318),M=n(34),k=n(186),O=M("iterator"),R="URLSearchParams",C=R+"Iterator",I=d.set,L=d.getterFor(R),D=d.getterFor(C),P=Object.getOwnPropertyDescriptor,F=function(t){if(!s)return i[t];var e=P(i,t);return e&&e.value},N=F("fetch"),z=F("Request"),X=F("Headers"),B=z&&z.prototype,j=X&&X.prototype,U=i.RegExp,$=i.TypeError,Y=i.decodeURIComponent,V=i.encodeURIComponent,G=o("".charAt),H=o([].join),W=o([].push),q=o("".replace),Z=o([].shift),K=o([].splice),J=o("".split),Q=o("".slice),tt=/\+/g,et=Array(4),nt=function(t){return et[t-1]||(et[t-1]=U("((?:%[\\da-f]{2}){"+t+"})","gi"))},rt=function(t){try{return Y(t)}catch(e){return t}},it=function(t){var e=q(t,tt," "),n=4;try{return Y(e)}catch(t){for(;n;)e=q(e,nt(n--),rt);return e}},at=/[!'()~]|%20/g,ot={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},st=function(t){return ot[t]},ut=function(t){return q(V(t),at,st)},ct=h((function(t,e){I(this,{type:C,iterator:A(L(t).entries),kind:e})}),"Iterator",(function(){var t=D(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),lt=function(t){this.entries=[],this.url=null,void 0!==t&&(m(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===G(t,0)?Q(t,1):t:b(t)))};lt.prototype={type:R,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,s,u,c=S(t);if(c)for(n=(e=A(t,c)).next;!(r=a(n,e)).done;){if(o=(i=A(_(r.value))).next,(s=a(o,i)).done||(u=a(o,i)).done||!a(o,i).done)throw $("Expected sequence with length 2");W(this.entries,{key:b(s.value),value:b(u.value)})}else for(var l in t)v(t,l)&&W(this.entries,{key:l,value:b(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=J(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=J(e,"="),W(this.entries,{key:it(Z(n)),value:it(H(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],W(n,ut(t.key)+"="+ut(t.value));return H(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ft=function(){g(this,ht),I(this,new lt(arguments.length>0?arguments[0]:void 0))},ht=ft.prototype;if(l(ht,{append:function(t,e){E(arguments.length,2);var n=L(this);W(n.entries,{key:b(t),value:b(e)}),n.updateURL()},delete:function(t){E(arguments.length,1);for(var e=L(this),n=e.entries,r=b(t),i=0;i<n.length;)n[i].key===r?K(n,i,1):i++;e.updateURL()},get:function(t){E(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){E(arguments.length,1);for(var e=L(this).entries,n=b(t),r=[],i=0;i<e.length;i++)e[i].key===n&&W(r,e[i].value);return r},has:function(t){E(arguments.length,1);for(var e=L(this).entries,n=b(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){E(arguments.length,1);for(var n,r=L(this),i=r.entries,a=!1,o=b(t),s=b(e),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?K(i,u--,1):(a=!0,n.value=s));a||W(i,{key:o,value:s}),r.updateURL()},sort:function(){var t=L(this);k(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=L(this).entries,r=y(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new ct(this,"keys")},values:function(){return new ct(this,"values")},entries:function(){return new ct(this,"entries")}},{enumerable:!0}),c(ht,O,ht.entries,{name:"entries"}),c(ht,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),f(ft,R),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:ft}),!u&&p(X)){var dt=o(j.has),gt=o(j.set),pt=function(t){if(m(t)){var e,n=t.body;if(x(n)===R)return e=t.headers?new X(t.headers):new X,dt(e,"content-type")||gt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(t,{body:T(0,b(n)),headers:T(0,e)})}return t};if(p(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return N(t,arguments.length>1?pt(arguments[1]):{})}}),p(z)){var vt=function(t){return g(this,B),new z(t,arguments.length>1?pt(arguments[1]):{})};B.constructor=vt,vt.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:vt})}}t.exports={URLSearchParams:ft,getState:L}},function(t,e,n){"use strict";var r=n(3),i=n(8);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(t,e,n){n(503)},,function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return fd},default:function(){return fd}});var r={};n.r(r),n.d(r,{area:function(){return ph},areaLineRange:function(){return vh},areaSpline:function(){return yh},areaSplineRange:function(){return xh},areaStep:function(){return _h},bar:function(){return Mh},bubble:function(){return kh},donut:function(){return Th},gauge:function(){return Ah},line:function(){return mh},pie:function(){return Sh},radar:function(){return Eh},scatter:function(){return Oh},spline:function(){return bh},step:function(){return wh}});var i={};n.r(i),n.d(i,{selection:function(){return sd},subchart:function(){return ud},zoom:function(){return cd}});var a=new Date,o=new Date;function s(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return s((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return a.setTime(+e),o.setTime(+r),t(a),t(o),Math.floor(n(a,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var u=1e3,c=6e4,l=36e5,f=864e5,h=6048e5;function d(t){return s((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/h}))}var g=d(0),p=d(1),v=d(2),y=d(3),x=d(4),_=d(5),m=d(6),b=(g.range,p.range,v.range,y.range,x.range,_.range,m.range,s((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/f}),(function(t){return t.getUTCDate()-1}))),w=b;b.range;function T(t){return s((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/h}))}var A=T(0),S=T(1),E=T(2),M=T(3),k=T(4),O=T(5),R=T(6),C=(A.range,S.range,E.range,M.range,k.range,O.range,R.range,s((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/f}),(function(t){return t.getDate()-1}))),I=C,L=(C.range,s((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));L.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var D=L,P=(L.range,s((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));P.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var F=P;P.range;function N(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 z(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function X(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var B,j,U,$,Y,V={"-":"",_:" ",0:"0"},G=/^\s*\d+/,H=/^%/,W=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?Array(n-a+1).join(e)+i:i)}function Z(t){return t.replace(W,"\\$&")}function K(t){return new RegExp("^(?:"+t.map(Z).join("|")+")","i")}function J(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Q(t,e,n){var r=G.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function tt(t,e,n){var r=G.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function et(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function it(t,e,n){var r=G.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function at(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ot(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function st(t,e,n){var r=G.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ut(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ct(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function lt(t,e,n){var r=G.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ft(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function gt(t,e,n){var r=G.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=G.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vt(t,e,n){var r=H.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yt(t,e,n){var r=G.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function xt(t,e,n){var r=G.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function _t(t,e){return q(t.getDate(),e,2)}function mt(t,e){return q(t.getHours(),e,2)}function bt(t,e){return q(t.getHours()%12||12,e,2)}function wt(t,e){return q(1+I.count(D(t),t),e,3)}function Tt(t,e){return q(t.getMilliseconds(),e,3)}function At(t,e){return Tt(t,e)+"000"}function St(t,e){return q(t.getMonth()+1,e,2)}function Et(t,e){return q(t.getMinutes(),e,2)}function Mt(t,e){return q(t.getSeconds(),e,2)}function kt(t){var e=t.getDay();return 0===e?7:e}function Ot(t,e){return q(A.count(D(t)-1,t),e,2)}function Rt(t){var e=t.getDay();return e>=4||0===e?k(t):k.ceil(t)}function Ct(t,e){return t=Rt(t),q(k.count(D(t),t)+(4===D(t).getDay()),e,2)}function It(t){return t.getDay()}function Lt(t,e){return q(S.count(D(t)-1,t),e,2)}function Dt(t,e){return q(t.getFullYear()%100,e,2)}function Pt(t,e){return q((t=Rt(t)).getFullYear()%100,e,2)}function Ft(t,e){return q(t.getFullYear()%1e4,e,4)}function Nt(t,e){var n=t.getDay();return q((t=n>=4||0===n?k(t):k.ceil(t)).getFullYear()%1e4,e,4)}function zt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Xt(t,e){return q(t.getUTCDate(),e,2)}function Bt(t,e){return q(t.getUTCHours(),e,2)}function jt(t,e){return q(t.getUTCHours()%12||12,e,2)}function Ut(t,e){return q(1+w.count(F(t),t),e,3)}function $t(t,e){return q(t.getUTCMilliseconds(),e,3)}function Yt(t,e){return $t(t,e)+"000"}function Vt(t,e){return q(t.getUTCMonth()+1,e,2)}function Gt(t,e){return q(t.getUTCMinutes(),e,2)}function Ht(t,e){return q(t.getUTCSeconds(),e,2)}function Wt(t){var e=t.getUTCDay();return 0===e?7:e}function qt(t,e){return q(g.count(F(t)-1,t),e,2)}function Zt(t){var e=t.getUTCDay();return e>=4||0===e?x(t):x.ceil(t)}function Kt(t,e){return t=Zt(t),q(x.count(F(t),t)+(4===F(t).getUTCDay()),e,2)}function Jt(t){return t.getUTCDay()}function Qt(t,e){return q(p.count(F(t)-1,t),e,2)}function te(t,e){return q(t.getUTCFullYear()%100,e,2)}function ee(t,e){return q((t=Zt(t)).getUTCFullYear()%100,e,2)}function ne(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function re(t,e){var n=t.getUTCDay();return q((t=n>=4||0===n?x(t):x.ceil(t)).getUTCFullYear()%1e4,e,4)}function ie(){return"+0000"}function ae(){return"%"}function oe(t){return+t}function se(t){return Math.floor(+t/1e3)}function ue(){}function ce(t){return null==t?ue:function(){return this.querySelector(t)}}function le(){return[]}function fe(t){return null==t?le:function(){return this.querySelectorAll(t)}}function he(t){return function(){return this.matches(t)}}function de(t){return Array(t.length)}function ge(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}B=function(t){function e(t,e){return function(n){var r,i,a,o=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null==(i=V[r=t.charAt(++s)])?i="e"===r?" ":"0":r=t.charAt(++s),(a=e[r])&&(r=a(n,i)),o.push(r),u=s+1);return o.push(t.slice(u,s)),o.join("")}}function n(t,e){return function(n){var i,a,o=X(1900,void 0,1);if(r(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(a=(i=z(X(o.y,0,1))).getUTCDay(),i=a>4||0===a?p.ceil(i):p(i),i=w.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(a=(i=N(X(o.y,0,1))).getDay(),i=a>4||0===a?S.ceil(i):S(i),i=I.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),a="Z"in o?z(X(o.y,0,1)).getUTCDay():N(X(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(a+5)%7:o.w+7*o.U-(a+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,z(o)):N(o)}}function r(t,e,n,r){for(var i,a,o=0,s=e.length,u=n.length;o<s;){if(r>=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=M[i in V?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}var i=t.dateTime,a=t.date,o=t.time,s=t.periods,u=t.days,c=t.shortDays,l=t.months,f=t.shortMonths,h=K(s),d=J(s),g=K(u),v=J(u),y=K(c),x=J(c),_=K(l),m=J(l),b=K(f),T=J(f),A={a:function(t){return c[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return f[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:null,d:_t,e:_t,f:At,g:Pt,G:Nt,H:mt,I:bt,j:wt,L:Tt,m:St,M:Et,p:function(t){return s[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:oe,s:se,S:Mt,u:kt,U:Ot,V:Ct,w:It,W:Lt,x:null,X:null,y:Dt,Y:Ft,Z:zt,"%":ae},E={a:function(t){return c[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return l[t.getUTCMonth()]},c:null,d:Xt,e:Xt,f:Yt,g:ee,G:re,H:Bt,I:jt,j:Ut,L:$t,m:Vt,M:Gt,p:function(t){return s[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:oe,s:se,S:Ht,u:Wt,U:qt,V:Kt,w:Jt,W:Qt,x:null,X:null,y:te,Y:ne,Z:ie,"%":ae},M={a:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.w=x[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.w=v[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=b.exec(e.slice(n));return r?(t.m=T[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=_.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,n){return r(t,i,e,n)},d:ct,e:ct,f:pt,g:at,G:it,H:ft,I:ft,j:lt,L:gt,m:ut,M:ht,p:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.p=d[r[0].toLowerCase()],n+r[0].length):-1},q:st,Q:yt,s:xt,S:dt,u:tt,U:et,V:nt,w:Q,W:rt,x:function(t,e,n){return r(t,a,e,n)},X:function(t,e,n){return r(t,o,e,n)},y:at,Y:it,Z:ot,"%":vt};return A.x=e(a,A),A.X=e(o,A),A.c=e(i,A),E.x=e(a,E),E.X=e(o,E),E.c=e(i,E),{format:function(t){var n=e(t+="",A);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",E);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),j=B.format,U=B.parse,$=B.utcFormat,Y=B.utcParse,ge.prototype={constructor:ge,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var pe="$";function ve(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new ge(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function ye(t,e,n,r,i,a,o){var s,u,c,l={},f=e.length,h=a.length,d=Array(f);for(s=0;s<f;++s)(u=e[s])&&(d[s]=c=pe+o.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<h;++s)(u=l[c=pe+o.call(t,a[s],s,a)])?(r[s]=u,u.__data__=a[s],l[c]=null):n[s]=new ge(t,a[s]);for(s=0;s<f;++s)(u=e[s])&&l[d[s]]===u&&(i[s]=u)}function xe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var _e="http://www.w3.org/1999/xhtml",me={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function be(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),me.hasOwnProperty(e)?{space:me[e],local:t}:t}function we(t){return function(){this.removeAttribute(t)}}function Te(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ae(t,e){return function(){this.setAttribute(t,e)}}function Se(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ee(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Me(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ke(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Oe(t){return function(){this.style.removeProperty(t)}}function Re(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ce(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ie(t,e){return t.style.getPropertyValue(e)||ke(t).getComputedStyle(t,null).getPropertyValue(e)}function Le(t){return function(){delete this[t]}}function De(t,e){return function(){this[t]=e}}function Pe(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Fe(t){return t.trim().split(/^|\s+/)}function Ne(t){return t.classList||new ze(t)}function ze(t){this._node=t,this._names=Fe(t.getAttribute("class")||"")}function Xe(t,e){for(var n=Ne(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Be(t,e){for(var n=Ne(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function je(t){return function(){Xe(this,t)}}function Ue(t){return function(){Be(this,t)}}function $e(t,e){return function(){(e.apply(this,arguments)?Xe:Be)(this,t)}}function Ye(){this.textContent=""}function Ve(t){return function(){this.textContent=t}}function Ge(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function He(){this.innerHTML=""}function We(t){return function(){this.innerHTML=t}}function qe(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Ze(){this.nextSibling&&this.parentNode.appendChild(this)}function Ke(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Je(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_e&&e.documentElement.namespaceURI===_e?e.createElement(t):e.createElementNS(n,t)}}function Qe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function tn(t){var e=be(t);return(e.local?Qe:Je)(e)}function en(){return null}function nn(){var t=this.parentNode;t&&t.removeChild(this)}function rn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function an(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}ze.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var on={},sn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(on={mouseenter:"mouseover",mouseleave:"mouseout"}));function un(t,e,n){return t=cn(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function cn(t,e,n){return function(r){var i=sn;sn=r;try{t.call(this,this.__data__,e,n)}finally{sn=i}}}function ln(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function fn(t,e,n){var r=on.hasOwnProperty(t.type)?un:cn;return function(i,a,o){var s,u=this.__on,c=r(e,a,o);if(u)for(var l=0,f=u.length;l<f;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}function hn(t,e,n,r){var i=sn;t.sourceEvent=sn,sn=t;try{return e.apply(n,r)}finally{sn=i}}function dn(t,e,n){var r=ke(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function gn(t,e){return function(){return dn(this,t,e)}}function pn(t,e){return function(){return dn(this,t,e.apply(this,arguments))}}var vn=[null];function yn(t,e){this._groups=t,this._parents=e}function xn(){return new yn([[document.documentElement]],vn)}yn.prototype=xn.prototype={constructor:yn,select:function(t){"function"!=typeof t&&(t=ce(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=Array(u),l=0;l<u;++l)(a=s[l])&&(o=t.call(a,a.__data__,l,s))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new yn(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=fe(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new yn(r,i)},filter:function(t){"function"!=typeof t&&(t=he(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new yn(r,this._parents)},data:function(t,e){if(!t)return d=Array(this.size()),c=-1,this.each((function(t){d[++c]=t})),d;var n=e?ye:ve,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=i.length,o=Array(a),s=Array(a),u=Array(a),c=0;c<a;++c){var l=r[c],f=i[c],h=f.length,d=t.call(l,l&&l.__data__,c,r),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g);n(l,f,p,v,u[c]=Array(h),d,e);for(var y,x,_=0,m=0;_<g;++_)if(y=p[_]){for(_>=m&&(m=_+1);!(x=v[m])&&++m<g;);y._next=x||null}}return(o=new yn(o,r))._enter=s,o._exit=u,o},enter:function(){return new yn(this._enter||this._groups.map(de),this._parents)},exit:function(){return new yn(this._exit||this._groups.map(de),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new yn(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=xe);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,c=i[a]=Array(u),l=0;l<u;++l)(o=s[l])&&(c[l]=o);c.sort(e)}return new yn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)if(r=i[a])return r;return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=be(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Te:we:"function"==typeof e?n.local?Me:Ee:n.local?Se:Ae)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Oe:"function"==typeof e?Ce:Re)(t,e,null==n?"":n)):Ie(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Le:"function"==typeof e?Pe:De)(t,e)):this.node()[t]},classed:function(t,e){var n=Fe(t+"");if(arguments.length<2){for(var r=Ne(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?$e:e?je:Ue)(n,e))},text:function(t){return arguments.length?this.each(null==t?Ye:("function"==typeof t?Ge:Ve)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?He:("function"==typeof t?qe:We)(t)):this.node().innerHTML},raise:function(){return this.each(Ze)},lower:function(){return this.each(Ke)},append:function(t){var e="function"==typeof t?t:tn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:tn(t),r=null==e?en:"function"==typeof e?e:ce(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(nn)},clone:function(t){return this.select(t?an:rn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?fn:ln,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?pn:gn)(t,e))}};var _n=xn;function mn(t){return"string"==typeof t?new yn([[document.querySelector(t)]],[document.documentElement]):new yn([[t]],vn)}var bn={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",area:"bb-area",areas:"bb-areas",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",bar:"bb-bar",bars:"bb-bars",brush:"bb-brush",button:"bb-button",buttonZoomReset:"bb-zoom-reset",chart:"bb-chart",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsTitle:"bb-chart-arcs-title",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",chartCircles:"bb-chart-circles",chartLine:"bb-chart-line",chartLines:"bb-chart-lines",chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars",chartText:"bb-chart-text",chartTexts:"bb-chart-texts",circle:"bb-circle",circles:"bb-circles",colorPattern:"bb-color-pattern",colorScale:"bb-colorscale",defocused:"bb-defocused",dragarea:"bb-dragarea",empty:"bb-empty",eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single",focused:"bb-focused",gaugeValue:"bb-gauge-value",grid:"bb-grid",gridLines:"bb-grid-lines",legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemFocused:"bb-legend-item-focused",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile",level:"bb-level",levels:"bb-levels",line:"bb-line",lines:"bb-lines",main:"bb-main",region:"bb-region",regions:"bb-regions",selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",shape:"bb-shape",shapes:"bb-shapes",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions",subchart:"bb-subchart",target:"bb-target",text:"bb-text",texts:"bb-texts",title:"bb-title",tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name",xgrid:"bb-xgrid",xgridFocus:"bb-xgrid-focus",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridFocus:"bb-ygrid-focus",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids",zoomBrush:"bb-zoom-brush",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_",TextOverlapping:"text-overlapping"},wn={element:function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,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}},state:function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},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",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}}}},Tn=function(){function t(){var t=this;Object.keys(wn).forEach((function(e){t[e]=new wn[e]}))}return t.prototype.getStore=function(t){return this[t]},t}();function An(t){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(t)}function Sn(t){var e=function(t,e){if("object"!==An(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===An(e)?e:String(e)}function En(t,e,n){return(e=Sn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mn={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!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:350,plugins:[],render:{},regions:[]},kn={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_color:void 0,data_colors:{},data_labels:{},data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},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:""},On={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Rn={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Cn={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:void 0,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_usePoint:!1},In={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Ln={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null},Dn={value:function(){}};function Pn(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Fn(r)}function Fn(t){this._=t}function Nn(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function zn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Dn,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Fn.prototype=Pn.prototype={constructor:Fn,on:function(t,e){var n,r,i=this._,a=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=a[o]).type)i[n]=zn(i[n],t.name,e);else if(null==e)for(n in i)i[n]=zn(i[n],t.name,null);return this}for(;++o<s;)if((n=(t=a[o]).type)&&(n=Nn(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Fn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Xn=Pn;function Bn(){sn.stopImmediatePropagation()}function jn(){sn.preventDefault(),sn.stopImmediatePropagation()}function Un(t){var e=t.document.documentElement,n=mn(t).on("dragstart.drag",jn,!0);"onselectstart"in e?n.on("selectstart.drag",jn,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function $n(t,e){var n=t.document.documentElement,r=mn(t).on("dragstart.drag",null);e&&(r.on("click.drag",jn,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Yn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Vn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Gn(){}var Hn=.7,Wn=1/Hn,qn=/^#([0-9a-f]{3,8})$/,Zn=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Kn=new RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Jn=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Qn=new RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),tr=new RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),er=new RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),nr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rr(){return this.rgb().formatHex()}function ir(){return this.rgb().formatRgb()}function ar(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=qn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?or(e):3===n?new cr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?sr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?sr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zn.exec(t))?new cr(e[1],e[2],e[3],1):(e=Kn.exec(t))?new cr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Jn.exec(t))?sr(e[1],e[2],e[3],e[4]):(e=Qn.exec(t))?sr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tr.exec(t))?dr(e[1],e[2]/100,e[3]/100,1):(e=er.exec(t))?dr(e[1],e[2]/100,e[3]/100,e[4]):nr.hasOwnProperty(t)?or(nr[t]):"transparent"===t?new cr(NaN,NaN,NaN,0):null}function or(t){return new cr(t>>16&255,t>>8&255,255&t,1)}function sr(t,e,n,r){return r<=0&&(t=e=n=NaN),new cr(t,e,n,r)}function ur(t,e,n,r){return 1===arguments.length?((i=t)instanceof Gn||(i=ar(i)),i?new cr((i=i.rgb()).r,i.g,i.b,i.opacity):new cr):new cr(t,e,n,null==r?1:r);var i}function cr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function lr(){return"#"+hr(this.r)+hr(this.g)+hr(this.b)}function fr(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function hr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new pr(t,e,n,r)}function gr(t){if(t instanceof pr)return new pr(t.h,t.s,t.l,t.opacity);if(t instanceof Gn||(t=ar(t)),!t)return new pr;if(t instanceof pr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new pr(o,s,u,t.opacity)}function pr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function vr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function yr(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function xr(t){return function(){return t}}function _r(t,e){return function(n){return t+n*e}}function mr(t){return 1==(t=+t)?br:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):xr(isNaN(e)?n:e)}}function br(t,e){var n=e-t;return n?_r(t,n):xr(isNaN(t)?e:t)}Yn(Gn,ar,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rr,formatHex:rr,formatHsl:function(){return gr(this).formatHsl()},formatRgb:ir,toString:ir}),Yn(cr,ur,Vn(Gn,{brighter:function(t){return t=null==t?Wn:Math.pow(Wn,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Hn:Math.pow(Hn,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lr,formatHex:lr,formatRgb:fr,toString:fr})),Yn(pr,(function(t,e,n,r){return 1===arguments.length?gr(t):new pr(t,e,n,null==r?1:r)}),Vn(Gn,{brighter:function(t){return t=null==t?Wn:Math.pow(Wn,t),new pr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Hn:Math.pow(Hn,t),new pr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new cr(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var wr=function t(e){function n(t,e){var n=r((t=ur(t)).r,(e=ur(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=br(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}var r=mr(e);return n.gamma=t,n}(1);function Tr(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n<i;++n)r=ur(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}Tr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return yr((n-r/e)*e,o,i,a,s)}})),Tr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return yr((n-r/e)*e,i,a,o,s)}}));function Ar(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Sr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Er(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=Array(i),o=Array(r);for(n=0;n<i;++n)a[n]=Lr(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function Mr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function kr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Or(t,e){var n,r={},i={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?r[n]=Lr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cr=new RegExp(Rr.source,"g");function Ir(t,e){var n,r,i,a=Rr.lastIndex=Cr.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Rr.exec(t))&&(r=Cr.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:kr(n,r)})),a=Cr.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Lr(t,e){var n,r=typeof e;return null==e||"boolean"===r?xr(e):("number"===r?kr:"string"===r?(n=ar(e))?(e=n,wr):Ir:e instanceof ar?wr:e instanceof Date?Mr:Sr(e)?Ar:Array.isArray(e)?Er:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Or:kr)(t,e)}function Dr(){for(var t,e=sn;t=e.sourceEvent;)e=t;return e}function Pr(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function Fr(t,e,n){arguments.length<3&&(n=e,e=Dr().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return Pr(t,r);return null}function Nr(t){var e=Dr();return e.changedTouches&&(e=e.changedTouches[0]),Pr(t,e)}var zr,Xr,Br=0,jr=0,Ur=0,$r=1e3,Yr=0,Vr=0,Gr=0,Hr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qr(){return Vr||(Wr(Zr),Vr=Hr.now()+Gr)}function Zr(){Vr=0}function Kr(){this._call=this._time=this._next=null}function Jr(t,e,n){var r=new Kr;return r.restart(t,e,n),r}function Qr(){Vr=(Yr=Hr.now())+Gr,Br=jr=0;try{!function(){qr(),++Br;for(var t,e=zr;e;)(t=Vr-e._time)>=0&&e._call.call(null,t),e=e._next;--Br}()}finally{Br=0,function(){for(var t,e,n=zr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:zr=e);Xr=t,ei(r)}(),Vr=0}}function ti(){var t=Hr.now(),e=t-Yr;e>$r&&(Gr-=e,Yr=t)}function ei(t){Br||(jr&&(jr=clearTimeout(jr)),t-Vr>24?(t<1/0&&(jr=setTimeout(Qr,t-Hr.now()-Gr)),Ur&&(Ur=clearInterval(Ur))):(!Ur&&(Yr=Hr.now(),Ur=setInterval(ti,$r)),Br=1,Wr(Qr)))}function ni(t,e,n){var r=new Kr;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Kr.prototype=Jr.prototype={constructor:Kr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?qr():+n)+(null==e?0:+e),this._next||Xr===this||(Xr?Xr._next=this:zr=this,Xr=this),this._call=t,this._time=n,ei()},stop:function(){this._call&&(this._call=null,this._time=1/0,ei())}};var ri=Xn("start","end","cancel","interrupt"),ii=[],ai=0,oi=1,si=2,ui=3,ci=4,li=5,fi=6;function hi(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){function r(u){var c,l,f,h;if(n.state!==oi)return a();for(c in s)if((h=s[c]).name===n.name){if(h.state===ui)return ni(r);h.state===ci?(h.state=fi,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[c]):+c<e&&(h.state=fi,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete s[c])}if(ni((function(){n.state===ui&&(n.state=ci,n.timer.restart(i,n.delay,n.time),i(u))})),n.state=si,n.on.call("start",t,t.__data__,n.index,n.group),n.state===si){for(n.state=ui,o=Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(o[++l]=h);o.length=l+1}}function i(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=li,1),i=-1,s=o.length;++i<s;)o[i].call(t,r);n.state===li&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=fi,n.timer.stop(),delete s[e],s)return;delete t.__transition}var o,s=t.__transition;s[e]=n,n.timer=Jr((function(t){n.state=oi,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ri,tween:ii,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ai})}function di(t,e){var n=pi(t,e);if(n.state>ai)throw new Error("too late; already scheduled");return n}function gi(t,e){var n=pi(t,e);if(n.state>ui)throw new Error("too late; already running");return n}function pi(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function vi(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>si&&n.state<li,n.state=fi,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var yi,xi,_i,mi,bi=180/Math.PI,wi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ti(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*bi,skewX:Math.atan(u)*bi,scaleX:o,scaleY:s}}function Ai(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:kr(t,i)},{i:u-2,x:kr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t===e?e&&n.push(i(n)+"rotate("+e+r):(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:kr(t,e)}))}(a.rotate,o.rotate,s,u),function(t,e,n,a){t===e?e&&n.push(i(n)+"skewX("+e+r):a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:kr(t,e)})}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:kr(t,n)},{i:s-2,x:kr(e,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var Si=Ai((function(t){return"none"===t?wi:(yi||(yi=document.createElement("DIV"),xi=document.documentElement,_i=document.defaultView),yi.style.transform=t,t=_i.getComputedStyle(xi.appendChild(yi),null).getPropertyValue("transform"),xi.removeChild(yi),Ti(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Ei=Ai((function(t){return null==t?wi:(mi||(mi=document.createElementNS("http://www.w3.org/2000/svg","g")),mi.setAttribute("transform",t),(t=mi.transform.baseVal.consolidate())?Ti((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):wi)}),", ",")",")");function Mi(t,e){var n,r;return function(){var i=gi(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function ki(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=gi(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Oi(t,e,n){var r=t._id;return t.each((function(){var t=gi(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return pi(t,r).value[e]}}function Ri(t,e){var n;return("number"==typeof e?kr:e instanceof ar?wr:(n=ar(e))?(e=n,wr):Ir)(t,e)}function Ci(t){return function(){this.removeAttribute(t)}}function Ii(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Li(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Di(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Pi(t,e,n){var r,i,a;return function(){var o,s,u=n(this);return null==u?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u))}}function Fi(t,e,n){var r,i,a;return function(){var o,s,u=n(this);return null==u?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u))}}function Ni(t,e){function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,n)),r}var r,i;return n._value=e,n}function zi(t,e){function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,n)),r}var r,i;return n._value=e,n}function Xi(t,e){return function(){di(this,t).delay=+e.apply(this,arguments)}}function Bi(t,e){return e=+e,function(){di(this,t).delay=e}}function ji(t,e){return function(){gi(this,t).duration=+e.apply(this,arguments)}}function Ui(t,e){return e=+e,function(){gi(this,t).duration=e}}var $i=_n.prototype.constructor;function Yi(t){return function(){this.style.removeProperty(t)}}var Vi=0;function Gi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Hi(t){return _n().transition(t)}function Wi(){return++Vi}var qi=_n.prototype;Gi.prototype=Hi.prototype={constructor:Gi,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ce(t));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s,u,c=r[o],l=c.length,f=a[o]=Array(l),h=0;h<l;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,hi(f[h],e,n,h,f,pi(s,n)));return new Gi(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=fe(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,d=t.call(u,u.__data__,f,c),g=pi(u,n),p=0,v=d.length;p<v;++p)(h=d[p])&&hi(h,e,n,p,d,g);a.push(d),o.push(u)}return new Gi(a,o,e,n)},filter:function(t){"function"!=typeof t&&(t=he(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Gi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new Gi(o,this._parents,this._name,this._id)},selection:function(){return new $i(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Wi(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)if(o=s[c]){var l=pi(o,e);hi(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Gi(r,this._parents,t,n)},call:qi.call,nodes:qi.nodes,node:qi.node,size:qi.size,empty:qi.empty,each:qi.each,on:function(t,e){var n=this._id;return arguments.length<2?pi(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?di:gi;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=be(t),r="transform"===n?Ei:Ri;return this.attrTween(t,"function"==typeof e?(n.local?Fi:Pi)(n,r,Oi(this,"attr."+t,e)):null==e?(n.local?Ii:Ci)(n):(n.local?Di:Li)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=be(t);return this.tween(n,(r.local?Ni:zi)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Si:Ri;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ie(this,t),o=(this.style.removeProperty(t),Ie(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Yi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ie(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ie(this,t)),o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,s))}}(t,r,Oi(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e;return function(){var s=gi(this,t),u=s.on,c=null==s.value[o]?a||(a=Yi(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on("end."+o,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i;return function(){var a=Ie(this,t);return a===n+""?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=e.apply(this,arguments);return r!==a&&(i=(a=r)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,r,n)),i}var i,a;return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Oi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){function e(){var e=t.apply(this,arguments);return e!==r&&(n=(r=e)&&function(t){return function(e){this.textContent=t.call(this,e)}}(e)),n}var n,r;return e._value=t,e}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=pi(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?Mi:ki)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Xi:Bi)(e,t)):pi(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ji:Ui)(e,t)):pi(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){gi(this,t).ease=e}}(e,t)):pi(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--i&&a()}};n.each((function(){var n=gi(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))}};var Zi={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ki(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Zi.time=qr(),Zi;return n}_n.prototype.interrupt=function(t){return this.each((function(){vi(this,t)}))},_n.prototype.transition=function(t){var e,n;t instanceof Gi?(e=t._id,t=t._name):(e=Wi(),(n=Zi).time=qr(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)(o=s[c])&&hi(o,t,e,c,s,n||Ki(o,e));return new Gi(r,this._parents,t,e)};function Ji(t){return function(){return t}}function Qi(t,e,n){this.target=t,this.type=e,this.selection=n}function ta(){sn.stopImmediatePropagation()}function ea(){sn.preventDefault(),sn.stopImmediatePropagation()}var na={name:"drag"},ra={name:"space"},ia={name:"handle"},aa={name:"center"};function oa(t){return[+t[0],+t[1]]}function sa(t){return[oa(t[0]),oa(t[1])]}var ua={name:"x",handles:["w","e"].map(pa),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ca={name:"y",handles:["n","s"].map(pa),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},la=(["n","w","e","s","nw","ne","sw","se"].map(pa),{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"}),fa={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ha={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},da={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ga={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function pa(t){return{type:t}}function va(){return!sn.ctrlKey&&!sn.button}function ya(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function xa(){return navigator.maxTouchPoints||"ontouchstart"in this}function _a(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ma(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ba(t){function e(e){var r=e.property("__brush",u).selectAll(".overlay").data([pa("overlay")]);r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",la.overlay).merge(r).each((function(){var t=_a(this).extent;mn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([pa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",la.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return la[t.type]})),e.each(n).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",a).filter(h).on("touchstart.brush",a).on("touchmove.brush",o).on("touchend.brush touchcancel.brush",s).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function n(){var t=mn(this),e=_a(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-p/2:e[0][0]-p/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-p/2:e[0][1]-p/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+p:p})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+p:p}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function r(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new i(t,e,n):r}function i(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function a(){function e(){var t=P(m);!D||x||_||(Math.abs(t[0]-N[0])>Math.abs(t[1]-N[1])?_=!0:x=!0),N=t,y=!0,ea(),i()}function i(){var t;switch(I=N[0]-F[0],L=N[1]-F[1],w){case ra:case na:T&&(I=Math.max(k-o,Math.min(R-h,I)),s=o+I,g=h+I),A&&(L=Math.max(O-u,Math.min(C-p,L)),l=u+L,v=p+L);break;case ia:T<0?(I=Math.max(k-o,Math.min(R-o,I)),s=o+I,g=h):T>0&&(I=Math.max(k-h,Math.min(R-h,I)),s=o,g=h+I),A<0?(L=Math.max(O-u,Math.min(C-u,L)),l=u+L,v=p):A>0&&(L=Math.max(O-p,Math.min(C-p,L)),l=u,v=p+L);break;case aa:T&&(s=Math.max(k,Math.min(R,o-I*T)),g=Math.max(k,Math.min(R,h+I*T))),A&&(l=Math.max(O,Math.min(C,u-L*A)),v=Math.max(O,Math.min(C,p+L*A)))}g<s&&(T*=-1,t=o,o=h,h=t,t=s,s=g,g=t,b in fa&&B.attr("cursor",la[b=fa[b]])),v<l&&(A*=-1,t=u,u=p,p=t,t=l,l=v,v=t,b in ha&&B.attr("cursor",la[b=ha[b]])),S.selection&&(M=S.selection),x&&(s=M[0][0],g=M[1][0]),_&&(l=M[0][1],v=M[1][1]),(M[0][0]!==s||M[0][1]!==l||M[1][0]!==g||M[1][1]!==v)&&(S.selection=[[s,l],[g,v]],n.call(m),z.brush())}function a(){if(ta(),sn.touches){if(sn.touches.length)return;c&&clearTimeout(c),c=setTimeout((function(){c=null}),500)}else $n(sn.view,y),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);X.attr("pointer-events","all"),B.attr("cursor",la.overlay),S.selection&&(M=S.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(M)&&(S.selection=null,n.call(m)),z.end()}if((!c||sn.touches)&&f.apply(this,arguments)){var o,s,u,l,h,g,p,v,y,x,_,m=this,b=sn.target.__data__.type,w="selection"===(d&&sn.metaKey?b="overlay":b)?na:d&&sn.altKey?aa:ia,T=t===ca?null:da[b],A=t===ua?null:ga[b],S=_a(m),E=S.extent,M=S.selection,k=E[0][0],O=E[0][1],R=E[1][0],C=E[1][1],I=0,L=0,D=T&&A&&d&&sn.shiftKey,P=sn.touches?(U=sn.changedTouches[0].identifier,function(t){return Fr(t,sn.touches,U)}):Nr,F=P(m),N=F,z=r(m,arguments,!0).beforestart();"overlay"===b?(M&&(y=!0),S.selection=M=[[o=t===ca?k:F[0],u=t===ua?O:F[1]],[h=t===ca?R:o,p=t===ua?C:u]]):(o=M[0][0],u=M[0][1],h=M[1][0],p=M[1][1]),s=o,l=u,g=h,v=p;var X=mn(m).attr("pointer-events","none"),B=X.selectAll(".overlay").attr("cursor",la[b]);if(sn.touches)z.moved=e,z.ended=a;else{var j=mn(sn.view).on("mousemove.brush",e,!0).on("mouseup.brush",a,!0);d&&j.on("keydown.brush",(function(){switch(sn.keyCode){case 16:D=T&&A;break;case 18:w===ia&&(T&&(h=g-I*T,o=s+I*T),A&&(p=v-L*A,u=l+L*A),w=aa,i());break;case 32:(w===ia||w===aa)&&(T<0?h=g-I:T>0&&(o=s-I),A<0?p=v-L:A>0&&(u=l-L),w=ra,B.attr("cursor",la.selection),i());break;default:return}ea()}),!0).on("keyup.brush",(function(){switch(sn.keyCode){case 16:D&&(x=_=D=!1,i());break;case 18:w===aa&&(T<0?h=g:T>0&&(o=s),A<0?p=v:A>0&&(u=l),w=ia,i());break;case 32:w===ra&&(sn.altKey?(T&&(h=g-I*T,o=s+I*T),A&&(p=v-L*A,u=l+L*A),w=aa):(T<0?h=g:T>0&&(o=s),A<0?p=v:A>0&&(u=l),w=ia),B.attr("cursor",la[b]),i());break;default:return}ea()}),!0),Un(sn.view)}ta(),vi(m),n.call(m),z.start()}var U}function o(){r(this,arguments).moved()}function s(){r(this,arguments).ended()}function u(){var e=this.__brush||{selection:null};return e.extent=sa(l.apply(this,arguments)),e.dim=t,e}var c,l=ya,f=va,h=xa,d=!0,g=Xn("start","brush","end"),p=6;return e.move=function(e,i){e.selection?e.on("start.brush",(function(){r(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){r(this,arguments).end()})).tween("brush",(function(){function e(t){o.selection=1===t&&null===c?null:l(t),n.call(a),s.brush()}var a=this,o=a.__brush,s=r(a,arguments),u=o.selection,c=t.input("function"==typeof i?i.apply(this,arguments):i,o.extent),l=Lr(u,c);return null!==u&&null!==c?e:e(1)})):e.each((function(){var e=this,a=arguments,o=e.__brush,s=t.input("function"==typeof i?i.apply(e,a):i,o.extent),u=r(e,a).beforestart();vi(e),o.selection=null===s?null:s,n.call(e),u.start().brush().end()}))},e.clear=function(t){e.move(t,null)},i.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){hn(new Qi(e,n,t.output(this.state.selection)),g.apply,g,[n,this.that,this.args])}},e.extent=function(t){return arguments.length?(l="function"==typeof t?t:Ji(sa(t)),e):l},e.filter=function(t){return arguments.length?(f="function"==typeof t?t:Ji(!!t),e):f},e.touchable=function(t){return arguments.length?(h="function"==typeof t?t:Ji(!!t),e):h},e.handleSize=function(t){return arguments.length?(p=+t,e):p},e.keyModifiers=function(t){return arguments.length?(d=!!t,e):d},e.on=function(){var t=g.on.apply(g,arguments);return t===g?e:t},e}var wa="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")(),Ta=wa&&wa.document;function Aa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sa(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?Aa(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Aa(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Ea=function(t){return t||0===t},Ma=function(t){return"function"==typeof t},ka=function(t){return"string"==typeof t},Oa=function(t){return"number"==typeof t},Ra=function(t){return void 0===t},Ca=function(t){return void 0!==t},Ia=function(t){return"boolean"==typeof t},La=function(t){return 10*Math.ceil(t/10)},Da=function(t){return Math.ceil(t)+.5},Pa=function(t){return t[1]-t[0]},Fa=function(t){return"object"==typeof t},Na=function(t){return Ra(t)||null===t||ka(t)&&0===t.length||Fa(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Oa(t)&&isNaN(t)},za=function(t){return!Na(t)},Xa=function(t){return Array.isArray(t)},Ba=function(t){return t&&!t.nodeType&&Fa(t)&&!Xa(t)};function ja(t,e,n){return Ca(t[e])?t[e]:n}function Ua(t){for(var e=Ma(t),n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e&&t.call.apply(t,r),e}function $a(t,e){var n=0;t.each((function(){return++n})).on("end",(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];--n||e.apply.apply(e,[this].concat(r))}))}function Ya(t){return ka(t)?t.replace(/</g,"<").replace(/>/g,">"):t}function Va(t,e,n,r){if(void 0===n&&(n=[-1,1]),void 0===r&&(r=!1),t&&ka(e))if(-1===e.indexOf("\n"))t.text(e);else{var i=[t.text(),e].map((function(t){return t.replace(/[\s\n]/g,"")}));if(i[0]!==i[1]){var a=e.split("\n"),o=r?a.length-1:1;t.html(""),a.forEach((function(e,r){t.append("tspan").attr("x",0).attr("dy",(0===r?n[0]*o:n[1])+"em").text(e)}))}}}function Ga(t){var e=t.getBBox(),n=e.x,r=e.y,i=e.width,a=e.height;return[{x:n,y:r+a},{x:n,y:r},{x:n+i,y:r},{x:n+i,y:r+a}]}function Ha(t){var e,n=t.$el,r=sn,i=n.subchart.main||n.main;return r&&"brush"===r.type?e=r.selection:i&&(e=i.select("."+bn.brush).node())&&(e=ma(e)),e}function Wa(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function qa(t){void 0===t&&(t=!0);var e=Math.random();return t?e+"":e}function Za(t,e,n,r,i){if(n>r)return-1;var a=Math.floor((n+r)/2),o=t[a],s=o.x,u=o.w,c=void 0===u?0:u;return i&&(s=t[a].y,c=t[a].h),e>=s&&e<=s+c?a:e<s?Za(t,e,n,a-1,i):Za(t,e,a+1,r,i)}function Ka(t){var e=Ha(t);return!e||e[0]===e[1]}function Ja(t,e){for(var n in void 0===t&&(t={}),Xa(e)&&e.forEach((function(e){return Ja(t,e)})),e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var Qa=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},to=function(t){return[].slice.call(t)};var eo=function(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}};function no(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((function(t,e,n){return n.indexOf(t)===e}));return e?n.map((function(t){return new Date(t)})):n}function ro(t){return t&&t.length?t.reduce((function(t,e){return t.concat(e)})):[]}function io(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length||1===n.length&&!n[0])return t;var i=n.shift();return Ba(t)&&Ba(i)&&Object.keys(i).forEach((function(e){var n=i[e];Ba(n)?(!t[e]&&(t[e]={}),t[e]=io(t[e],n)):t[e]=Xa(n)?n.concat():n})),io.apply(void 0,[t].concat(n))}function ao(t,e){var n;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return t-e}:function(t,e){return e-t}:e&&!t.every(isNaN)?n=function(t,e){return t-e}:!e&&(n=function(t,e){return(t>e?-1:t<e&&1)||t===e&&0}),t.concat().sort(n)}function oo(t,e){var n=e.filter((function(t){return za(t)}));return n.length?Oa(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=ao(n,"min"===t)[0]):n=void 0,n}var so=function(t,e,n){void 0===n&&(n=1);for(var r=[],i=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<i;a++)r.push(t+a*n);return r},uo={mouse:function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=Ta.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,wa,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}(),touch:function(t,e,n){var r=new Touch(io({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function co(t,e){var n=t;for(var r in e)n=n.replace(new RegExp("{="+r+"}","g"),e[r]);return n}function lo(t){var e;if(t instanceof Date)e=t;else if(ka(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else Oa(t)&&!isNaN(t)&&(e=new Date(+t));return(!e||isNaN(+e))&&console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function fo(){return!Ta.hidden}function ho(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function go(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?ho(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ho(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var po=function(){function t(){return function(){for(var t=function(e){if(Ba(e)&&e.constructor){var n=new e.constructor;for(var r in e)n[r]=t(e[r]);return n}return e},e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.map((function(e){return t(e)})).reduce((function(t,e){return Sa(Sa({},t),e)}))}(Mn,kn,On,Rn,Cn,In,Ln,t.data)}return t.setOptions=function(t){this.data=t.reduce((function(t,e){return go(go({},t),e)}),this.data)},t}();po.data={};var vo="$baseLength",yo="__colorPattern__",xo="$dataMinMax",_o="$dataTotalSum",mo="$totalPerIndex",bo="legendItemTextBox",wo="$radarPoints",To="setOverOut",Ao="callOverOutForTouch",So="textRect",Eo=function(){function t(){this.cache={}}var e=t.prototype;return e.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},e.remove=function(t){var e=this;to(t).forEach((function(t){return delete e.cache[t]}))},e.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n,r=[],i=0;n=t[i];i++)n in this.cache&&r.push(this.cloneTarget(this.cache[n]));return r}var a=this.cache[t];return Ea(a)?a:null},e.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},e.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map((function(t){return{x:t.x,value:t.value,id:t.id}}))}},t}(),Mo=wa.setTimeout,ko=wa.clearTimeout;function Oo(){var t=[],e=function(e,n){var r;!function e(){for(var i,a=0,o=0;i=t[o];o++)if(!0===i||i.empty&&i.empty())a++;else try{i.transition()}catch(t){a++}r&&ko(r),a===t.length?n&&n():r=Mo(e,50)}()};return e.add=function(e){Xa(e)?t=t.concat(e):t.push(e)},e}var Ro={},Co={},Io=34,Lo=10,Do=13;function Po(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Fo(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function No(t,e){var n=t+"",r=n.length;return r<e?Array(e-r+1).join(0)+n:n}function zo(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+No(-t,6):t>9999?"+"+No(t,6):No(t,4)}(t.getUTCFullYear())+"-"+No(t.getUTCMonth()+1,2)+"-"+No(t.getUTCDate(),2)+(i?"T"+No(e,2)+":"+No(n,2)+":"+No(r,2)+"."+No(i,3)+"Z":r?"T"+No(e,2)+":"+No(n,2)+":"+No(r,2)+"Z":n||e?"T"+No(e,2)+":"+No(n,2)+"Z":"")}function Xo(t){function e(t,e){function n(){if(c)return Co;if(l)return l=!1,Ro;var e,n,r=s;if(t.charCodeAt(r)===Io){for(;s++<a&&t.charCodeAt(s)!==Io||t.charCodeAt(++s)===Io;);return(e=s)>=a?c=!0:(n=t.charCodeAt(s++))===Lo?l=!0:n===Do&&(l=!0,t.charCodeAt(s)===Lo&&++s),t.slice(r+1,e-1).replace(/""/g,'"')}for(;s<a;){if((n=t.charCodeAt(e=s++))===Lo)l=!0;else if(n===Do)l=!0,t.charCodeAt(s)===Lo&&++s;else if(n!==o)continue;return t.slice(r,e)}return c=!0,t.slice(r,a)}var r,i=[],a=t.length,s=0,u=0,c=a<=0,l=!1;for(t.charCodeAt(a-1)===Lo&&--a,t.charCodeAt(a-1)===Do&&--a;(r=n())!==Co;){for(var f=[];r!==Ro&&r!==Co;)f.push(r),r=n();e&&null==(f=e(f,u++))||i.push(f)}return i}function n(e,n){return e.map((function(e){return n.map((function(t){return i(e[t])})).join(t)}))}function r(e){return e.map(i).join(t)}function i(t){return null==t?"":t instanceof Date?zo(t):a.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n\r]"),o=t.charCodeAt(0);return{parse:function(t,n){var r,i,a=e(t,(function(t,e){return r?r(t,e-1):(i=t,void(r=n?function(t,e){var n=Po(t);return function(r,i){return e(n(r),i,t)}}(t,n):Po(t)))}));return a.columns=i||[],a},parseRows:e,format:function(e,r){return null==r&&(r=Fo(e)),[r.map(i).join(t)].concat(n(e,r)).join("\n")},formatBody:function(t,e){return null==e&&(e=Fo(t)),n(t,e).join("\n")},formatRows:function(t){return t.map(r).join("\n")},formatRow:r,formatValue:i}}var Bo=Xo(","),jo=Bo.parse,Uo=Bo.parseRows,$o=(Bo.format,Bo.formatBody,Bo.formatRows,Bo.formatRow,Bo.formatValue,Xo("\t")),Yo=$o.parse,Vo=$o.parseRows,Go=($o.format,$o.formatBody,$o.formatRows,$o.formatRow,$o.formatValue,{convertData:function(t,e){var n;if(t.bindto?(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach((function(e){var r="data_"+e;r in t&&(n[e]=t[r])}))):n=t,n.url&&e)this.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,e);else if(n.json)n=this.convertJsonToData(n.json,n.keys);else if(n.rows)n=this.convertRowsToData(n.rows);else if(n.columns)n=this.convertColumnsToData(n.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.");return Xa(n)&&n},convertUrlToData:function(t,e,n,r,i){var a=this;void 0===e&&(e="csv");var o=new XMLHttpRequest;o.open("GET",t),n&&Object.keys(n).forEach((function(t){o.setRequestHeader(t,n[t])})),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)throw new Error(t+": Something went wrong loading!");var n=o.responseText;n&&i.call(a,a["convert"+Qa(e)+"ToData"]("json"===e?JSON.parse(n):n,r))}},o.send()},convertCsvTsvToData:function(t,e){var n,r=t.rows(e);return 1===r.length?(n=[{}],r[0].forEach((function(t){n[0][t]=null}))):n=t.parse(e),n},convertCsvToData:function(t){return this.convertCsvTsvToData({rows:Uo,parse:jo},t)},convertTsvToData:function(t){return this.convertCsvTsvToData({rows:Vo,parse:Yo},t)},convertJsonToData:function(t,e){var n,r,i=this,a=this.config,o=[];if(Xa(t)){var s=e||a.data_keys;s.x?(n=s.value.concat(s.x),a.data_x=s.x):n=s.value,o.push(n),t.forEach((function(t){var e=n.map((function(e){var n=i.findValueInJson(t,e);return Ra(n)&&(n=null),n}));o.push(e)})),r=this.convertRowsToData(o)}else Object.keys(t).forEach((function(e){var n=t[e].concat();n.unshift(e),o.push(n)})),r=this.convertColumnsToData(o);return r},findValueInJson:function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),r=t;return n.some((function(t){return!(r=r&&t in r?r[t]:void 0)})),r},convertRowsToData:function(t){var e=t[0],n=[];return t.forEach((function(t,r){if(r>0){var i={};t.forEach((function(t,n){if(Ra(t))throw new Error("Source data is missing a component at ("+r+", "+n+")!");i[e[n]]=t})),n.push(i)}})),n},convertColumnsToData:function(t){var e=[];return t.forEach((function(t,n){var r=t[0];t.forEach((function(t,i){if(i>0){if(Ra(e[i-1])&&(e[i-1]={}),Ra(t))throw new Error("Source data is missing a component at ("+n+", "+i+")!");e[i-1][r]=t}}))})),e},convertDataToTargets:function(t,e){var n=this,r=this,i=r.axis,a=r.config,o=r.state,s=!1,u=!1,c=!1;i&&(s=i.isCategorized(),u=i.isTimeSeries(),c=i.isCustomX());var l,f=Object.keys(t[0]||{}),h=f.length?f.filter(r.isNotX,r):[],d=f.length?f.filter(r.isX,r):[];h.forEach((function(i){var o=n.getXKey(i);c||u?d.indexOf(o)>=0?l=(e&&r.data.xs[i]||[]).concat(t.map((function(t){return t[o]})).filter(Ea).map((function(t,e){return r.generateTargetX(t,i,e)}))):a.data_x?l=n.getOtherTargetXs():za(a.data_xs)&&(l=r.getXValuesOfXKey(o,r.data.targets)):l=t.map((function(t,e){return e})),l&&(n.data.xs[i]=l)})),h.forEach((function(t){if(!n.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}));var g=h.map((function(e,n){var i=a.data_idConverter.bind(r.api)(e),u=r.getXKey(e),l=c&&s,f=l&&t.map((function(t){return t.x})).every((function(t){return a.axis_x_categories.indexOf(t)>-1}));return{id:i,id_org:e,values:t.map((function(t,s){var c,h=t[u],d=t[e];return d=null===d||isNaN(d)||Ba(d)?Xa(d)||Ba(d)?d:null:+d,!l&&!o.hasRadar||0!==n||Ra(h)?c=r.generateTargetX(h,e,s):(!f&&0===n&&0===s&&(a.axis_x_categories=[]),-1===(c=a.axis_x_categories.indexOf(h))&&(c=a.axis_x_categories.length,a.axis_x_categories.push(h))),(Ra(d)||r.data.xs[e].length<=s)&&(c=void 0),{x:c,value:d,id:i}})).filter((function(t){return Ca(t.x)}))}}));return g.forEach((function(t){a.data_xSort&&(t.values=t.values.sort((function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}))),t.values.forEach((function(t,e){return t.index=e})),r.data.xs[t.id].sort((function(t,e){return t-e}))})),o.hasNegativeValue=r.hasNegativeValueInTargets(g),o.hasPositiveValue=r.hasPositiveValueInTargets(g),a.data_type&&r.setTargetType(r.mapToIds(g).filter((function(t){return!(t in a.data_types)})),a.data_type),g.forEach((function(t){return r.cache.add(t.id_org,t,!0)})),g}}),Ho={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,r=za(e.data_xs)&&function(t,e){var n=!1;return Object.keys(t).forEach((function(r){return t[r]===e&&(n=!0)})),n}(e.data_xs,t);return n||r},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some((function(e){return e.indexOf(t)>=0&&e.length>1})):e.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:za(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,r=this;return(e&&za(e)?r.mapToIds(e):[]).forEach((function(e){r.getXKey(e)===t&&(n=r.data.xs[e])})),n},getIndexByX:function(t,e){return e?e.indexOf(ka(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&Ea(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this.config;Object.keys(t).forEach((function(n){e.data_xs[n]=t[n]}))},isMultipleX:function(){return za(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0===e?t.id:e),t},getAllValuesOnIndex:function(t,e){void 0===e&&(e=!1);var n=this,r=n.filterTargetsToShow(n.data.targets).map((function(e){return n.addName(n.getValueOnIndex(e.values,t))}));return e&&(r=r.filter((function(t){return Ea(t.value)}))),r},getValueOnIndex:function(t,e){var n=t.filter((function(t){return t.index===e}));return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;t.forEach((function(t){t.values.forEach((function(r,i){r.x=n.generateTargetX(e[i],t.id,i)})),n.data.xs[t.id]=e}))},updateTargetXs:function(t,e){var n=this;t.forEach((function(t){e[t.id]&&n.updateTargetX([t],e[t.id])}))},generateTargetX:function(t,e,n){var r=this,i=r.axis,a=i&&i.isCategorized()?n:t||n;if(i&&i.isTimeSeries()){var o=lo.bind(r);a=o(t||r.getXValue(e,n))}else i&&i.isCustomX()&&!i.isCategorized()&&(a=Ea(t)?+t:r.getXValue(e,n));return a},updateXs:function(t){t.length&&(this.axis.xs=t.map((function(t){return t.x})))},getPrevX:function(t){var e=this.axis.xs[t-1];return Ca(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Ca(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,r=t.value;return r&&n&&(e.isAreaRangeType(t)?r=e.getAreaRangeData(t,"mid"):e.isBubbleZType(t)&&(r=e.getBubbleZData(r,"y"))),r},getMinMaxValue:function(t){var e,n,r=this.getBaseValue.bind(this);return(t||this.data.targets.map((function(t){return t.values}))).forEach((function(t,i){var a=t.map(r).filter(Oa);e=Math.min.apply(Math,[i?e:1/0].concat(a)),n=Math.max.apply(Math,[i?n:-1/0].concat(a))})),{min:e,max:n}},getMinMaxData:function(){var t=this,e=xo,n=t.cache.get(e);if(!n){var r=t.data.targets.map((function(t){return t.values})),i=t.getMinMaxValue(r),a=[],o=[];r.forEach((function(e){var n=t.getFilteredDataByValue(e,i.min),r=t.getFilteredDataByValue(e,i.max);n.length&&(a=a.concat(n)),r.length&&(o=o.concat(r))})),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=mo,n=t.cache.get(e);return t.isStackNormalized()&&!n&&(n=[],t.data.targets.forEach((function(t){t.values.forEach((function(t,e){n[e]||(n[e]=0),n[e]+=Oa(t.value)?t.value:0}))}))),n},getTotalDataSum:function(t){var e=this,n=_o,r=e.cache.get(n);if(!Oa(r)){var i=ro(e.data.targets.map((function(t){return t.values}))).map((function(t){return t.value}));r=i.length?i.reduce((function(t,e){return t+e})):0,e.cache.add(n,r=i)}return t&&(r-=e.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this.api,e=this.state.hiddenTargetIds,n=0;return e.length&&(n=t.data.values.bind(t)(e).reduce((function(t,e){return t+e}))),n},getFilteredDataByValue:function(t,e){var n=this;return t.filter((function(t){return n.getBaseValue(t)===e}))},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map((function(t){return t.values.length})))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?t=ao(no(t=t.map((function(t){return t.values})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.x})))).map((function(t,e){return{x:t,index:e}})):e&&(t=t[0].values),t},mapToIds:function(t){return t.map((function(t){return t.id}))},mapToTargetIds:function(t){return t?Xa(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n,r=this.mapToIds(t),i=0;n=r[i];i++)if(n===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter((function(t){return e.isTargetToShow(t.id)}))},mapTargetsToUniqueXs:function(t){var e=this.axis,n=[];return t&&t.length&&(n=no(ro(t.map((function(t){return t.values.map((function(t){return+t.x}))})))),n=e&&e.isTimeSeries()?n.map((function(t){return new Date(+t)})):n.map((function(t){return+t}))),ao(n)},addHiddenTargetIds:function(t){this.state.hiddenTargetIds=this.state.hiddenTargetIds.concat(t)},removeHiddenTargetIds:function(t){this.state.hiddenTargetIds=this.state.hiddenTargetIds.filter((function(e){return t.indexOf(e)<0}))},addHiddenLegendIds:function(t){this.state.hiddenLegendIds=this.state.hiddenLegendIds.concat(t)},removeHiddenLegendIds:function(t){this.state.hiddenLegendIds=this.state.hiddenLegendIds.filter((function(e){return t.indexOf(e)<0}))},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,r={},i=e.isMultipleX(),a=i?e.mapTargetsToUniqueXs(t).map((function(t){return ka(t)?t:+t})):null;return t.forEach((function(t){var o=[];t.values.forEach((function(t){var r=t.value;Xa(r)?o.push.apply(o,r):Ba(r)&&"high"in r?o.push.apply(o,Object.values(r)):e.isBubbleZType(t)?o.push(n&&e.getBubbleZData(r,"y")):i?o[e.getIndexByX(t.x,a)]=r:o.push(r)})),r[t.id]=o})),r},checkValueInTargets:function(t,e){for(var n,r=Object.keys(t),i=0;i<r.length;i++){n=t[r[i]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t<0}))},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t>0}))},_checkOrder:function(t){var e=this.config.data_order;return ka(e)&&e.toLowerCase()===t},isOrderDesc:function(){return this._checkOrder("desc")},isOrderAsc:function(){return this._checkOrder("asc")},orderTargets:function(t){var e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){void 0===t&&(t=!1);var e,n=this,r=n.config,i=n.isOrderAsc(),a=n.isOrderDesc();return i||a?e=function(e,n){var r=function(t,e){return t+Math.abs(e.value)},a=e.values.reduce(r,0),o=n.values.reduce(r,0);return t?i?a-o:o-a:i?o-a:a-o}:Ma(r.data_order)&&(e=r.data_order.bind(n.api)),e||null},filterByX:function(t,e){return ro(t.map((function(t){return t.values}))).filter((function(t){return t.x-e==0}))},filterRemoveNull:function(t){var e=this;return t.filter((function(t){return Ea(e.getBaseValue(t))}))},filterByXDomain:function(t,e){return t.map((function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter((function(t){return e[0]<=t.x&&t.x<=e[1]}))}}))},hasDataLabel:function(){var t=this.config.data_labels;return Ia(t)&&t||Fa(t)&&za(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,r=n.inputType,i=n.eventReceiver,a=i.coords,o=i.rect,s=e.axis_rotated,u="touch"===r&&t.changedTouches?t.changedTouches[0]:t;return Za(a,s?u.clientY-o.top:u.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var r=this,i=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text((function(t){return r.dataLabelFormat(t.id)(t)})).each((function(t,e){i[e]=1.3*this.getBoundingClientRect()[n]})).remove(),i},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n<t.length&&r===t[n].x;n++)i.push(t[n]);return i},findClosestFromTargets:function(t,e){var n=this,r=t.map((function(t){return n.findClosest(t.values,e)}));return n.findClosest(r,e)},findClosest:function(t,e){var n,r=this,i=r.config,a=r.$el.main,o=t.filter((function(t){return t&&Ea(t.value)})),s=i.point_sensitivity;return o.filter((function(t){return r.isBarType(t.id)})).forEach((function(t){var e=a.select("."+bn.bars+r.getTargetSelectorSuffix(t.id)+" ."+bn.bar+"-"+t.index).node();!n&&r.isWithinBar(e)&&(n=t)})),o.filter((function(t){return!r.isBarType(t.id)})).forEach((function(t){var i=r.dist(t,e);i<s&&(s=i,n=t)})),n},dist:function(t,e){var n=this,r=n.config.axis_rotated,i=n.scale,a=r?1:0,o=r?0:1,s=n.circleY(t,t.index),u=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,r=!!e&&e.isCategorized(),i=Xa(t)?t.concat():[t];if(!r&&!/step\-(after|before)/.test(n))return t;var a=i[0],o=i[i.length-1],s=a.id,u=a.x;return i.unshift({x:--u,value:a.value,id:s}),r&&"step-after"===n&&i.unshift({x:--u,value:a.value,id:s}),u=o.x,i.push({x:++u,value:o.value,id:s}),r&&"step-before"===n&&i.push({x:++u,value:o.value,id:s}),i},convertValuesToRange:function(t){var e=Xa(t)?t.concat():[t],n=[];return e.forEach((function(t){var e=t.x,r=t.id;n.push({x:e,id:r,value:t.value[0]}),n.push({x:e,id:r,value:t.value[2]})})),n},updateDataAttributes:function(t,e){var n=this.config["data_"+t];return Ra(e)||(Object.keys(e).forEach((function(t){n[t]=e[t]})),this.redraw({withLegend:!0})),n},getAreaRangeData:function(t,e){var n=t.value;if(Xa(n)){var r=["high","mid","low"].indexOf(e);return-1===r?null:n[r]}return n[e]},getRatio:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())s=e.value/r.getTotalDataSum(!0);else{var u=i.gauge_fullCircle?r.getArcLength():-2*r.getStartAngle(),c=r.hasType("gauge")?u:2*Math.PI;s=(e.endAngle-e.startAngle)/c}else if("index"===t){var l=o.data.values.bind(o),f=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var h=l(a.hiddenTargetIds,!1);h.length&&(h=h.reduce((function(t,e){return t.map((function(t,n){return(Oa(t)?t:0)+e[n]}))})),f=f.map((function(t,e){return t-h[e]})))}e.ratio=Oa(e.value)&&f&&f[e.index]>0?e.value/f[e.index]:0,s=e.ratio}else if("radar"===t)s=parseFloat(Math.max(e.value,0)+"")/a.current.dataMax*i.radar_size_ratio;else if("bar"===t){var d=r.getYScaleById.bind(r)(e.id).domain().reduce((function(t,e){return e-t}));s=Math.abs(e.value)/d}return n&&s?100*s:s},updateDataIndexByX:function(t){var e=t.reduce((function(t,e,n){return t[+e.x]=n,t}),{});this.data.targets.forEach((function(t){t.values.forEach((function(t,n){var r=e[+t.x];void 0===r&&(r=n),t.index=r}))}))},isBubbleZType:function(t){return this.isBubbleType(t)&&(Ba(t.value)&&("z"in t.value||"y"in t.value)||Xa(t.value)&&2===t.value.length)},getDataById:function(t){var e=this.cache.get(t)||this.api.data(t);return Xa(e)?e[0]:e}},Wo={load:function(t,e){var n=this,r=t;r&&(e.filter&&(r=r.filter(e.filter)),(e.type||e.types)&&r.forEach((function(t){var r=e.types&&e.types[t.id]||e.type;n.setTargetType(t.id,r)})),n.data.targets.forEach((function(t){for(var e=0;e<r.length;e++)if(t.id===r[e].id){t.values=r[e].values,r.splice(e,1);break}})),n.data.targets=n.data.targets.concat(r)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.updateTypesElements(),e.done&&e.done.call(n.api)},loadFromArgs:function(t){var e=this;if(e.config){e.cache.reset();var n=t.data||e.convertData(t,(function(n){return e.load(e.convertDataToTargets(n),t)}));n&&e.load(e.convertDataToTargets(n),t)}},unload:function(t,e){var n=this,r=n.state,i=n.$el,a=e,o=t;return n.cache.reset(),a||(a=function(){}),o=o.filter((function(t){return n.hasTarget(n.data.targets,t)})),o&&0!==o.length?(i.svg.selectAll(o.map((function(t){return n.selectorTarget(t)}))).transition().style("opacity","0").remove().call($a,a),o.forEach((function(t){r.withoutFadeIn[t]=!1,i.legend&&i.legend.selectAll("."+bn.legendItem+n.getTargetSelectorSuffix(t)).remove(),n.data.targets=n.data.targets.filter((function(e){return e.id!==t}))})),void n.updateTypesElements()):void a()}};function qo(t){return function(){return t}}function Zo(t,e,n,r,i,a,o,s,u,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=u,this._=c}function Ko(){return!sn.ctrlKey&&!sn.button}function Jo(){return this.parentNode}function Qo(t){return null==t?{x:sn.x,y:sn.y}:t}function ts(){return navigator.maxTouchPoints||"ontouchstart"in this}function es(){function t(t){t.on("mousedown.drag",e).filter(p).on("touchstart.drag",i).on("touchmove.drag",a).on("touchend.drag touchcancel.drag",o).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!f&&h.apply(this,arguments)){var t=s("mouse",d.apply(this,arguments),Nr,this,arguments);t&&(mn(sn.view).on("mousemove.drag",n,!0).on("mouseup.drag",r,!0),Un(sn.view),Bn(),l=!1,u=sn.clientX,c=sn.clientY,t("start"))}}function n(){if(jn(),!l){var t=sn.clientX-u,e=sn.clientY-c;l=t*t+e*e>_}v.mouse("drag")}function r(){mn(sn.view).on("mousemove.drag mouseup.drag",null),$n(sn.view,l),jn(),v.mouse("end")}function i(){if(h.apply(this,arguments)){var t,e,n=sn.changedTouches,r=d.apply(this,arguments),i=n.length;for(t=0;t<i;++t)(e=s(n[t].identifier,r,Fr,this,arguments))&&(Bn(),e("start"))}}function a(){var t,e,n=sn.changedTouches,r=n.length;for(t=0;t<r;++t)(e=v[n[t].identifier])&&(jn(),e("drag"))}function o(){var t,e,n=sn.changedTouches,r=n.length;for(f&&clearTimeout(f),f=setTimeout((function(){f=null}),500),t=0;t<r;++t)(e=v[n[t].identifier])&&(Bn(),e("end"))}function s(e,n,r,i,a){var o,s,u,c=r(n,e),l=y.copy();return hn(new Zo(t,"beforestart",o,e,x,c[0],c[1],0,0,l),(function(){return null!=(sn.subject=o=g.apply(i,a))&&(s=o.x-c[0]||0,u=o.y-c[1]||0,!0)}))?function f(h){var d,g=c;switch(h){case"start":v[e]=f,d=x++;break;case"end":delete v[e],--x;case"drag":c=r(n,e),d=x}hn(new Zo(t,h,o,e,d,c[0]+s,c[1]+u,c[0]-g[0],c[1]-g[1],l),l.apply,l,[h,i,a])}:void 0}var u,c,l,f,h=Ko,d=Jo,g=Qo,p=ts,v={},y=Xn("start","drag","end"),x=0,_=0;return t.filter=function(e){return arguments.length?(h="function"==typeof e?e:qo(!!e),t):h},t.container=function(e){return arguments.length?(d="function"==typeof e?e:qo(e),t):d},t.subject=function(e){return arguments.length?(g="function"==typeof e?e:qo(e),t):g},t.touchable=function(e){return arguments.length?(p="function"==typeof e?e:qo(!!e),t):p},t.on=function(){var e=y.on.apply(y,arguments);return e===y?t:e},t.clickDistance=function(e){return arguments.length?(_=(e=+e)*e,t):Math.sqrt(_)},t}Zo.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var ns={selectRectForSingle:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.data_selection_enabled,s=i.data_selection_grouped,u=i.data_selection_isselectable,c=i.tooltip_grouped,l=r.getAllValuesOnIndex(n);c&&(r.showTooltip(l,t),r.showGridFocus&&r.showGridFocus(l),!o||s)||a.selectAll("."+bn.shape+"-"+n).each((function(){mn(this).classed(bn.EXPANDED,!0),o&&e.style("cursor",s?"pointer":null),c||(r.hideGridFocus&&r.hideGridFocus(),r.hideTooltip(),!s&&r.expandCirclesBars(n))})).filter((function(t){return r.isWithinShape(this,t)})).call((function(i){var a=i.data();o&&(s||u&&u.bind(r.api)(a))&&e.style("cursor","pointer"),c||(r.showTooltip(a,t),r.showGridFocus&&r.showGridFocus(a),r.unexpandCircles&&r.unexpandCircles(),i.each((function(t){return r.expandCirclesBars(n,t.id)})))}))},expandCirclesBars:function(t,e,n){var r=this,i=r.config,a=r.$el,o=a.bar;a.circle&&i.point_focus_expand_enabled&&r.expandCircles(t,e,n),o&&r.expandBars(t,e,n)},setOverOut:function(t,e){var n=this,r=n.config,i=n.state.hasRadar,a=n.$el.main,o=Ba(e);if(o||-1!==e){var s=r[t?"data_onover":"data_onout"].bind(n.api);if(r.color_onover&&n.setOverColor(t,e,o),o)s(e,a.select("."+bn.arc+n.getTargetSelectorSuffix(e.id)).node());else if(r.tooltip_grouped)t&&(r.point_focus_only&&i?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.expandCirclesBars(e,null,!0)),n.isMultipleX()||a.selectAll("."+bn.shape+"-"+e).each((function(t){s(t,this)}));else{var u=n.cache.get(To)||[],c=a.selectAll("."+bn.shape+"-"+e).filter((function(t){return n.isWithinShape(this,t)}));c.each((function(t){var e=this;(0===u.length||u.every((function(t){return t!==e})))&&(s(t,this),u.push(this))})),u.length>0&&c.empty()&&(s=r.data_onout.bind(n.api),u.forEach((function(t){return s(mn(t).datum(),t)})),u=[]),n.cache.add(To,u)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(Ao);(Ba(t)&&n?t.id!==n.id:t!==n)&&((n||Oa(n))&&e.setOverOut(!1,n),(t||Oa(t))&&e.setOverOut(!0,t),e.cache.add(Ao,t))},getDraggableSelection:function(){var t=this,e=t.config;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?es().on("drag",(function(){t.drag(Nr(this))})).on("start",(function(){t.dragstart(Nr(this))})).on("end",(function(){t.dragend()})):function(){}},dispatchEvent:function(t,e,n){var r=this,i=r.config,a=r.state,o=a.eventReceiver,s=a.hasAxis,u=a.hasRadar,c=r.$el,l=c.eventRect,f=c.arcs,h=c.radar,d=r.isMultipleX(),g=(u?h.axes.select("."+bn.axis+"-"+e+" text"):l||f.selectAll("."+bn.target+" path").filter((function(t,n){return n===e}))).node(),p=g.getBoundingClientRect(),v=p.width,y=p.left,x=p.top;if(s&&!u&&!d){var _=o.coords[e];v=_.w,y+=_.x,x+=_.y}var m=y+(n?n[0]:0)+(d||i.axis_rotated?0:v/2),b=x+(n?n[1]:0);uo[/^(mouse|click)/.test(t)?"mouse":"touch"](g,t,{screenX:m,screenY:b,clientX:m,clientY:b})},setDragStatus:function(t){this.state.dragging=t}},rs={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,r=/s$/.test(t),i=/^(area|arc|line)s?$/.test(t),a=r?"id":"index";return function(o){var s=o.data||o;return(e?n.generateClass(bn[r?"shapes":"shape"],s[a]):"")+n.generateClass(bn[t],s[i?"id":a])}},getChartClass:function(t){var e=this;return function(n){return bn["chart"+t]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var r=n.id||n.data&&n.data.id||n;return e.indexOf(r)<0&&e.push(r),t[e.indexOf(r)%t.length]}},classRegion:function(t,e){return this.generateClass(bn.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" "+bn.target+"-"+e),this.generateClass(bn.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?bn.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?bn.defocused:"")},getTargetSelectorSuffix:function(t){return t||0===t?("-"+t).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},selectorTarget:function(t,e){var n=e||"",r=this.getTargetSelectorSuffix(t);return n+"."+(bn.target+r)+", "+n+"."+(bn.circles+r)},selectorTargets:function(t,e){var n=this,r=t||[];return r.length?r.map((function(t){return n.selectorTarget(t,e)})):null},selectorLegend:function(t){return"."+(bn.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return t&&t.length?t.map((function(t){return e.selectorLegend(t)})):null}};function is(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function as(t){return 1===t.length&&(e=t,t=function(t,n){return is(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}};var e}var os=as(is),ss=os.right,us=(os.left,ss);var cs=Array.prototype;cs.slice,cs.map;var ls=Math.sqrt(50),fs=Math.sqrt(10),hs=Math.sqrt(2);function ds(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=gs(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return r&&a.reverse(),a}function gs(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=ls?10:a>=fs?5:a>=hs?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=ls?10:a>=fs?5:a>=hs?2:1)}function ps(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=ls?i*=10:a>=fs?i*=5:a>=hs&&(i*=2),e<t?-i:i}function vs(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var ys="$";function xs(){}function _s(t,e){var n=new xs;if(t instanceof xs)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}xs.prototype=_s.prototype={constructor:xs,has:function(t){return ys+t in this},get:function(t){return this[ys+t]},set:function(t,e){return this[ys+t]=e,this},remove:function(t){var e=ys+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===ys&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===ys&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===ys&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===ys&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===ys&&++t;return t},empty:function(){for(var t in this)if(t[0]===ys)return!1;return!0},each:function(t){for(var e in this)e[0]===ys&&t(this[e],e.slice(1),this)}};var ms=_s;function bs(){}var ws=ms.prototype;function Ts(t,e){var n=new bs;if(t instanceof bs)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}bs.prototype=Ts.prototype={constructor:bs,has:ws.has,add:function(t){return this[ys+(t+="")]=t,this},remove:ws.remove,clear:ws.clear,values:ws.keys,size:ws.size,empty:ws.empty,each:ws.each};var As=Array.prototype,Ss=As.map,Es=As.slice,Ms={name:"implicit"};function ks(){function t(t){var a=t+"",o=e.get(a);if(!o){if(i!==Ms)return i;e.set(a,o=n.push(t))}return r[(o-1)%r.length]}var e=ms(),n=[],r=[],i=Ms;return t.domain=function(r){if(!arguments.length)return n.slice();n=[],e=ms();for(var i,a,o=-1,s=r.length;++o<s;)e.has(a=(i=r[o])+"")||e.set(a,n.push(i));return t},t.range=function(e){return arguments.length?(r=Es.call(e),t):r.slice()},t.unknown=function(e){return arguments.length?(i=e,t):i},t.copy=function(){return ks(n,r).unknown(i)},vs.apply(t,arguments),t}function Os(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Rs(t){return+t}var Cs=[0,1];function Is(t){return t}function Ls(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Ds(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function Ps(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Ls(i,r),a=n(o,a)):(r=Ls(r,i),a=n(a,o)),function(t){return a(r(t))}}function Fs(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Ls(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=us(t,e,1,r)-1;return a[n](i[n](e))}}function Ns(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function zs(){function t(){return a=Math.min(u.length,c.length)>2?Fs:Ps,o=s=null,e}function e(t){return isNaN(t=+t)?i:(o||(o=a(u.map(n),c,l)))(n(f(t)))}var n,r,i,a,o,s,u=Cs,c=Cs,l=Lr,f=Is;return e.invert=function(t){return f(r((s||(s=a(c,u.map(n),kr)))(t)))},e.domain=function(e){return arguments.length?(u=Ss.call(e,Rs),f===Is||(f=Ds(u)),t()):u.slice()},e.range=function(e){return arguments.length?(c=Es.call(e),t()):c.slice()},e.rangeRound=function(e){return c=Es.call(e),l=Os,t()},e.clamp=function(t){return arguments.length?(f=t?Ds(u):Is,e):f!==Is},e.interpolate=function(e){return arguments.length?(l=e,t()):l},e.unknown=function(t){return arguments.length?(i=t,e):i},function(e,i){return n=e,r=i,t()}}function Xs(t,e){return zs()(t,e)}var Bs,js=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Us(t){if(!(e=js.exec(t)))throw new Error("invalid format: "+t);var e;return new $s({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function $s(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ys(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Vs(t){return(t=Ys(Math.abs(t)))?t[1]:NaN}function Gs(t,e){var n=Ys(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}Us.prototype=$s.prototype,$s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hs={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Gs(100*t,e)},r:Gs,s:function(t,e){var n=Ys(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Bs=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+Ys(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Ws(t){return t}var qs,Zs,Ks,Js=Array.prototype.map,Qs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tu(t){function e(t){function e(t){var e,a,o,c=m,d=b;if("c"===_)d=w(t)+d,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),y),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==h&&(A=!1),c=(A?"("===h?h:l:"-"===h||"("===h?"":h)+c,d=("s"===_?Qs[8+Bs/3]:"")+d+(A&&"("===h?")":""),T)for(e=-1,a=t.length;++e<a;)if(48>(o=t.charCodeAt(e))||o>57){d=(46===o?s+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}v&&!g&&(t=i(t,1/0));var S=c.length+t.length+d.length,E=S<p?Array(p-S+1).join(n):"";switch(v&&g&&(t=i(E+t,E.length?p-d.length:1/0),E=""),r){case"<":t=c+t+d+E;break;case"=":t=c+E+t+d;break;case"^":t=E.slice(0,S=E.length>>1)+c+t+d+E.slice(S);break;default:t=E+c+t+d}return u(t)}var n=(t=Us(t)).fill,r=t.align,h=t.sign,d=t.symbol,g=t.zero,p=t.width,v=t.comma,y=t.precision,x=t.trim,_=t.type;"n"===_?(v=!0,_="g"):!Hs[_]&&(void 0===y&&(y=12),x=!0,_="g"),(g||"0"===n&&"="===r)&&(g=!0,n="0",r="=");var m="$"===d?a:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===d?o:/[%p]/.test(_)?c:"",w=Hs[_],T=/[defgprs%]/.test(_);return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),e.toString=function(){return t+""},e}var n,r,i=void 0===t.grouping||void 0===t.thousands?Ws:(n=Js.call(t.grouping,Number),r=t.thousands+"",function(t,e){for(var i=t.length,a=[],o=0,s=n[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=n[o=(o+1)%n.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Ws:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Js.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";return{format:e,formatPrefix:function(t,n){var r=e(((t=Us(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Vs(n)/3))),a=Math.pow(10,-i),o=Qs[8+i/3];return function(t){return r(a*t)+o}}}}function eu(t,e,n,r){var i,a=ps(t,e,n);switch((r=Us(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vs(e)/3)))-Vs(Math.abs(t)))}(a,o))||(r.precision=i),Ks(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vs(e)-Vs(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Vs(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Zs(r)}function nu(t){var e=t.domain;return t.ticks=function(t){var n=e();return ds(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return eu(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],u=i[o];return u<s&&(r=s,s=u,u=r,r=a,a=o,o=r),(r=gs(s,u,n))>0?r=gs(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=gs(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(u/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(u*r)/r,e(i)),t},t}function ru(){var t=Xs(Is,Is);return t.copy=function(){return Ns(t,ru())},vs.apply(t,arguments),nu(t)}function iu(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function au(t){return Math.log(t)}function ou(t){return Math.exp(t)}function su(t){return-Math.log(-t)}function uu(t){return-Math.exp(-t)}function cu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function lu(t){return function(e){return-t(-e)}}function fu(t){function e(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(o),r=function(t){return 10===t?cu:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(o),a()[0]<0?(n=lu(n),r=lu(r),t(su,uu)):t(au,ou),i}var n,r,i=t(au,ou),a=i.domain,o=10;return i.base=function(t){return arguments.length?(o=+t,e()):o},i.domain=function(t){return arguments.length?(a(t),e()):a()},i.ticks=function(t){var e,i=a(),s=i[0],u=i[i.length-1];(e=u<s)&&(h=s,s=u,u=h);var c,l,f,h=n(s),d=n(u),g=null==t?10:+t,p=[];if(o%1||!(d-h<g))p=ds(h,d,Math.min(d-h,g)).map(r);else if(h=Math.round(h)-1,d=Math.round(d)+1,s>0){for(;h<d;++h)for(l=1,c=r(h);l<o;++l)if(!((f=c*l)<s)){if(f>u)break;p.push(f)}}else for(;h<d;++h)for(l=o-1,c=r(h);l>=1;--l)if(!((f=c*l)<s)){if(f>u)break;p.push(f)}return e?p.reverse():p},i.tickFormat=function(t,e){if(null==e&&(e=10===o?".0e":","),"function"!=typeof e&&(e=Zs(e)),t===1/0)return e;null==t&&(t=10);var a=Math.max(1,o*t/i.ticks().length);return function(t){var i=t/r(Math.round(n(t)));return i*o<o-.5&&(i*=o),i<=a?e(t):""}},i.nice=function(){return a(iu(a(),{floor:function(t){return r(Math.floor(n(t)))},ceil:function(t){return r(Math.ceil(n(t)))}}))},i}function hu(){var t=fu(zs()).domain([1,10]);return t.copy=function(){return Ns(t,hu()).base(t.base())},vs.apply(t,arguments),t}function du(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function gu(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function pu(t){var e=1,n=t(du(e),gu(e));return n.constant=function(n){return arguments.length?t(du(e=+n),gu(e)):e},nu(n)}function vu(){var t=pu(zs());return t.copy=function(){return Ns(t,vu()).constant(t.constant())},vs.apply(t,arguments)}!function(t){qs=tu(t),Zs=qs.format,Ks=qs.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var yu=s((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),xu=yu,_u=(yu.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*c)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()}))),mu=_u,bu=(_u.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getMinutes()}))),wu=bu,Tu=(bu.range,s((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*u)}),(function(t,e){return(e-t)/u}),(function(t){return t.getUTCSeconds()}))),Au=Tu,Su=(Tu.range,s((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Su.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Su:null};var Eu=Su,Mu=(Su.range,1e3),ku=6e4,Ou=36e5,Ru=864e5,Cu=6048e5,Iu=2592e6,Lu=31536e6;function Du(t){return new Date(t)}function Pu(t){return t instanceof Date?+t:+new Date(+t)}function Fu(t,e,n,r,i,a,o,s,u){function c(s){return(o(s)<s?g:a(s)<s?p:i(s)<s?v:r(s)<s?y:e(s)<s?n(s)<s?x:_:t(s)<s?m:b)(s)}function l(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var a=Math.abs(r-n)/e,o=as((function(t){return t[2]})).right(w,a);o===w.length?(i=ps(n/Lu,r/Lu,e),e=t):o?(i=(o=w[a/w[o-1][2]<w[o][2]/a?o-1:o])[1],e=o[0]):(i=Math.max(ps(n,r,e),1),e=s)}return null==i?e:e.every(i)}var f=Xs(Is,Is),h=f.invert,d=f.domain,g=u(".%L"),p=u(":%S"),v=u("%I:%M"),y=u("%I %p"),x=u("%a %d"),_=u("%b %d"),m=u("%B"),b=u("%Y"),w=[[o,1,Mu],[o,5,5e3],[o,15,15e3],[o,30,3e4],[a,1,ku],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,Ou],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Ru],[r,2,1728e5],[n,1,Cu],[e,1,Iu],[e,3,7776e6],[t,1,Lu]];return f.invert=function(t){return new Date(h(t))},f.domain=function(t){return arguments.length?d(Ss.call(t,Pu)):d().map(Du)},f.ticks=function(t,e){var n,r=d(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=(n=l(t,i,a,e))?n.range(i,a+1):[],o?n.reverse():n},f.tickFormat=function(t,e){return null==e?c:u(e)},f.nice=function(t,e){var n=d();return(t=l(t,n[0],n[n.length-1],e))?d(iu(n,t)):f},f.copy=function(){return Ns(f,Fu(t,e,n,r,i,a,o,s,u))},f}function Nu(){return vs.apply(Fu(D,xu,A,I,mu,wu,Au,Eu,j).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var zu=s((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Xu=(zu.range,s((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()}))),Bu=(Xu.range,s((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCMinutes()})));Bu.range;var ju=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Uu={getColorFromCss:function(){var t=yo,e=Ta.body,n=e[t];if(!n){var r=Ta.createElement("span");r.className=bn.colorPattern,r.style.display="none",e.appendChild(r);var i=wa.getComputedStyle(r).backgroundImage;r.parentNode.removeChild(r),i.indexOf(";")>-1&&(n=i.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map((function(t){return t.trim().replace(/[\"'\s]/g,"")})).filter(Boolean),e[t]=n)}return n},generateColor:function(){var t=this,e=t.config,n=e.data_colors,r=e.data_color,i=[],a=za(e.color_pattern)?e.color_pattern:ks(t.getColorFromCss()||ju).range(),o=a;if(Ma(e.color_tiles)){var s=e.color_tiles.bind(t.api)(),u=a.map((function(e,n){var r=e.replace(/[#\(\)\s,]/g,""),i=t.state.datetimeId+"-pattern-"+r+"-"+n;return function(t,e,n){var r=mn(t.cloneNode(!0));return r.attr("id",n).insert("rect",":first-child").attr("width",r.attr("width")).attr("height",r.attr("height")).style("fill",e),{id:n,node:r.node()}}(s[n%s.length],e,i)}));a=u.map((function(t){return"url(#"+t.id+")"})),t.patterns=u}return function(s){var u,c=s.id||s.data&&s.data.id||s,l=t.isTypeOf(c,["line","spline","step"])||!e.data_types[c];return Ma(n[c])?u=n[c].bind(t.api)(s):n[c]?u=n[c]:(i.indexOf(c)<0&&i.push(c),u=l?o[i.indexOf(c)%o.length]:a[i.indexOf(c)%a.length],n[c]=u),Ma(r)?r.bind(t.api)(u,s):u}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,r="value"===n.unit,i=n.max||100,a=n.values&&n.values.length?n.values:[];return za(n)?function(t){for(var n=r?t:100*t/i,o=e[e.length-1],s=0,u=a.length;s<u;s++)if(n<=a[s]){o=e[s];break}return o}:null},setOverColor:function(t,e){var n=this,r=n.config,i=n.$el.main,a=r.color_onover,o=t?a:n.color;Ba(o)?o=function(t){var e=t.id;return e in a?a[e]:n.color(e)}:ka(o)?o=function(){return a}:Ma(a)&&(o=o.bind(n.api)),i.selectAll(Ba(e)?"."+bn.arc+n.getTargetSelectorSuffix(e.id):"."+bn.shape+"-"+e).style("fill",o)}},$u={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},Yu={Area:[$u.AREA,$u.AREA_SPLINE,$u.AREA_SPLINE_RANGE,$u.AREA_LINE_RANGE,$u.AREA_STEP],AreaRange:[$u.AREA_SPLINE_RANGE,$u.AREA_LINE_RANGE],Arc:[$u.PIE,$u.DONUT,$u.GAUGE,$u.RADAR],Line:[$u.LINE,$u.SPLINE,$u.AREA,$u.AREA_SPLINE,$u.AREA_SPLINE_RANGE,$u.AREA_LINE_RANGE,$u.STEP,$u.AREA_STEP],Step:[$u.STEP,$u.AREA_STEP],Spline:[$u.SPLINE,$u.AREA_SPLINE,$u.AREA_SPLINE_RANGE]},Vu={getYDomainMinMax:function(t,e){var n=this,r=n.axis,i=n.config,a="min"===e,o=i.data_groups,s=n.mapToIds(t),u=n.getValuesAsIdKeyed(t);if(o.length>0)for(var c,l=n["has"+(a?"Negative":"Positive")+"ValueInTargets"](t),f=function(t){if(0===(t=t.filter((t=>s.indexOf(t)>=0))).length)return c=t,"continue";const e=t[0],n=r.getId(e);l&&u[e]&&(u[e]=u[e].map((t=>(a?t<0:t>0)?t:0)));for(let i,o=1;i=t[o];o++){if(!u[i])continue;const t=r.getId(i);u[i].forEach(((r,i)=>{const o=+r;t!==n||l&&(a?o>0:o<0)||(u[e][i]+=o)}))}c=t},h=0;c=o[h];h++)f(c);return oo(e,Object.keys(u).map((function(t){return oo(e,u[t])})))},getYDomainMin:function(t){return this.getYDomainMinMax(t,"min")},getYDomainMax:function(t){return this.getYDomainMinMax(t,"max")},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some((function(n){return e.axis.getId(n)===t}))},getYDomain:function(t,e,n){var r=this,i=r.axis,a=r.config,o=r.scale,s="axis_"+e;if(r.isStackNormalized())return[0,100];var u=o&&o[e]&&"log"===o[e].type,c=t.filter((function(t){return i.getId(t.id)===e})),l=n?r.filterByXDomain(c,n):c;if(0===l.length)return r.isHiddenTargetWithYDomain(e)?o[e].domain():"y2"===e?o.y.domain():r.getYDomain(t,"y2",n);var f=a[s+"_min"],h=a[s+"_max"],d=r.getYDomainMin(l),g=r.getYDomainMax(l),p=a[s+"_center"],v=[$u.BAR,$u.BUBBLE,$u.SCATTER].concat(Yu.Line).some((function(t){var e=t.indexOf("area")>-1?"area":t;return r.hasType(t,l)&&a[e+"_zerobased"]})),y=a[s+"_inverted"],x=r.hasDataLabel()&&a.axis_rotated,_=r.hasDataLabel()&&!a.axis_rotated;d=Ea(f)?f:Ea(h)?d<h?d:h-10:d,g=Ea(h)?h:Ea(f)?f<g?g:f+10:g,isNaN(d)&&(d=0),isNaN(g)&&(g=d),d===g&&(d<0?g=0:d=0);var m=d>=0&&g>=0,b=d<=0&&g<=0;(Ea(f)&&m||Ea(h)&&b)&&(v=!1),v&&(m&&(d=0),b&&(g=0));var w=Math.abs(g-d),T={top:.1*w,bottom:.1*w};if(Ca(p)){var A=Math.max(Math.abs(d),Math.abs(g));g=p+A,d=p-A}if(x){var S=Pa(o.y.range()),E=r.getDataLabelLength(d,g,"width").map((function(t){return t/S}));["bottom","top"].forEach((function(t,e){T[t]+=w*(E[e]/(1-E[0]-E[1]))}))}else if(_){var M=r.getDataLabelLength(d,g,"height");["bottom","top"].forEach((function(t,e){T[t]+=i.convertPixelsToAxisPadding(M[e],w)}))}var k=a[s+"_padding"];za(k)&&["bottom","top"].forEach((function(t){T[t]=i.getPadding(k,t,T[t],w)})),v&&(m&&(T.bottom=d),b&&(T.top=-g));var O=u?[d,g].map((function(t){return t<0?0:t})):[d-T.bottom,g+T.top];return y?O.reverse():O},getXDomainMinMax:function(t,e){var n=this.config["axis_x_"+e],r=oo(e,t.map((function(t){return oo(e,t.values.map((function(t){return t.x})))}))),i=Ba(n)?n.value:n;return i=Ca(i)&&this.axis.isTimeSeries()?lo(i):i,Ba(n)&&n.fit&&("min"===e&&i<r||"max"===e&&i>r)&&(i=void 0),Ca(i)?i:r},getXDomainMin:function(t){return this.getXDomainMinMax(t,"min")},getXDomainMax:function(t){return this.getXDomainMinMax(t,"max")},getXDomainPadding:function(t){var e,n,r=this,i=r.axis,a=r.config,o=t[1]-t[0],s=a.axis_x_padding;i.isCategorized()?n=0:r.hasType("bar")?n=(e=r.getMaxDataCount())>1?o/(e-1)/2:.5:n=.01*o;var u=n,c=n;return Ba(s)&&za(s)?(u=Ea(s.left)?s.left:n,c=Ea(s.right)?s.right:n):Oa(a.axis_x_padding)&&(u=s,c=s),{left:u,right:c}},getXDomain:function(t){var e=this,n="log"===e.scale.x.type,r=[e.getXDomainMin(t),e.getXDomainMax(t)],i=0,a=0;if(n)i=r[0],a=r[1];else{var o=e.axis.isCategorized(),s=e.axis.isTimeSeries(),u=e.getXDomainPadding(r),c=r[0],l=r[1];c-l!=0||o||(s?(c=new Date(.5*c.getTime()),l=new Date(1.5*l.getTime())):(c=0===c?1:.5*c,l=0===l?-1:1.5*l)),(c||0===c)&&(i=s?new Date(c.getTime()-u.left):c-u.left),(l||0===l)&&(a=s?new Date(l.getTime()+u.right):l+u.right)}return[i,a]},updateXDomain:function(t,e,n,r,i){var a=this,o=a.config,s=a.org,u=a.scale,c=u.x,l=u.subX,f=o.zoom_enabled;if(n&&(c.domain(i||ao(a.getXDomain(t))),s.xDomain=c.domain(),f&&a.zoom.updateScaleExtent(),l.domain(c.domain()),a.brush&&a.brush.scale(l)),e){var h=i||!a.brush||Ka(a)?s.xDomain:Ha(a).map(l.invert);c.domain(h),f&&a.zoom.updateScaleExtent()}return r&&c.domain(a.trimXDomain(c.orgDomain())),c.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return Ca(t.zoom_x_min)&&(n=oo("min",[n,t.zoom_x_min])),Ca(t.zoom_x_max)&&(r=oo("max",[r,t.zoom_x_max])),[n,r]}};function Gu(t,e,n){var r=t.config,i="axis_"+e+"_tick_format";return(r[i]?r[i]:t.defaultValueFormat)(n)}var Hu={getYFormat:function(t){var e=this,n=e.yFormat,r=e.y2Format;return t&&!e.hasType("gauge")&&(n=e.defaultArcValueFormat,r=e.defaultArcValueFormat),function(t,i,a){return(e.axis&&"y2"===e.axis.getId(a)?r:n).call(e,t,i)}},yFormat:function(t){return Gu(this,"y",t)},y2Format:function(t){return Gu(this,"y2",t)},defaultValueFormat:function(t){return Ea(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},dataLabelFormat:function(t){var e=this.config.data_labels,n=function(t){return Ea(t)?+t:""},r=n;return Ma(e.format)?r=e.format:Fa(e.format)&&(r=e.format[t]?!0===e.format[t]?n:e.format[t]:function(){return""}),r.bind(this.api)}},Wu={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(!e.legend_contents_bindto&&(n.legend=t.$el.svg.append("g").classed(bn.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.scale,s=r.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=ja(u,"withTransition",!0),u.withTransitionForTransform=ja(u,"withTransitionForTransform",!0),i.legend_contents_bindto&&i.legend_contents_template?r.updateLegendTemplate():r.updateLegendElement(t||r.mapToIds(r.data.targets),u,n),s.legend.selectAll("."+bn.legendItem).classed(bn.legendItemHidden,(function(t){var e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!o.zoom),r.updateSvgSize(),r.transformAll(u.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,r=mn(e.legend_contents_bindto),i=e.legend_contents_template;if(!r.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach((function(e){var n=Ma(i)?i.bind(t.api)(e,t.color(e),t.api.data(e)[0].values):co(i,{COLOR:t.color(e),TITLE:e});n&&(o.push(e),s+=n)}));var u=r.html(s).selectAll((function(){return this.childNodes})).data(o);t.setLegendItem(u),n.legend=r}},updateSizeForLegend:function(t){var e=this,n=e.config,r=e.state,i=r.isLegendTop,a=r.isLegendLeft,o=r.isLegendRight,s=r.isLegendInset,u=r.current,c=t.width,l=t.height,f={top:i?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-c-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?f.top:u.height-l,right:NaN,bottom:0,left:o?u.width-c:s?f.left:0}},transformLegend:function(t){var e=this.$el.legend;(t?e.transition():e).attr("transform",this.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select("."+bn.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,r=t.isLegendInset,i=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||r?i*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,r=t.legendItemHeight,i=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,r)*(i+1):0},opacityForLegend:function(t){return t.classed(bn.legendItemHidden)?null:"1"},opacityForUnfocusedLegend:function(t){return t.classed(bn.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,r=n.$el.legend,i=n.mapToTargetIds(t);r&&r.selectAll("."+bn.legendItem).filter((function(t){return i.indexOf(t)>=0})).classed(bn.legendItemFocused,e).transition().duration(100).style("opacity",(function(){return(e?n.opacityForLegend:n.opacityForUnfocusedLegend).call(n,mn(this))}))},revertLegend:function(){var t=this,e=t.$el.legend;e&&e.selectAll("."+bn.legendItem).classed(bn.legendItemFocused,!1).transition().duration(100).style("opacity",(function(){return t.opacityForLegend(mn(this))}))},showLegend:function(t){var e=this,n=e.config,r=e.$el;n.legend_show||(n.legend_show=!0,r.legend?r.legend.style("visibility","visible"):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),r.legend.selectAll(e.selectorLegends(t)).style("visibility","visible").transition().style("opacity",(function(){return e.opacityForLegend(mn(this))}))},hideLegend:function(t){var e=this,n=e.config,r=e.$el.legend;n.legend_show&&Na(t)&&(n.legend_show=!1,r.style("visibility","hidden")),e.addHiddenLegendIds(t),r.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,r=this,i=r.cache,a=r.state,o=bo;return t&&(!(n=!a.redrawing&&i.get(o)||{})[t]&&(n[t]=r.getTextRect(e,bn.legendItem),i.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=e.api,r=e.config,i=e.state,a="touch"===i.inputType,o=e.hasType("gauge");t.attr("class",(function(t){var n=mn(this);return(!n.empty()&&n.attr("class")||"")+e.generateClass(bn.legendItem,t)})).style("visibility",(function(t){return e.isLegendToShow(t)?"visible":"hidden"})),r.interaction_enabled&&(t.style("cursor","pointer").on("click",(function(t){Ua(r.legend_item_onclick,n,t)||(sn.altKey?(n.hide(),n.show(t)):(n.toggle(t),mn(this).classed(bn.legendItemFocused,!1).style("opacity",null))),a&&e.hideTooltip()})),!a&&t.on("mouseout",(function(t){Ua(r.legend_item_onout,n,t)||(mn(this).classed(bn.legendItemFocused,!1),o&&e.undoMarkOverlapped(e,"."+bn.gaugeValue),e.api.revert())})).on("mouseover",(function(t){Ua(r.legend_item_onover,n,t)||(mn(this).classed(bn.legendItemFocused,!0),o&&e.markOverlapped(t,e,"."+bn.gaugeValue),!i.transiting&&e.isTargetToShow(t)&&n.focus(t))})))},updateLegendElement:function(t,e){var n,r,i,a=this,o=a.config,s=a.state,u=a.$el.legend,c=o.legend_item_tile_width+5,l=0,f=0,h=0,d={},g={},p={},v=[0],y={},x=0,_=s.isLegendRight||s.isLegendInset,m=t.filter((function(t){return!Ca(o.data_names[t])||null!==o.data_names[t]})),b=e.withTransition,w=function(t,e,n){var r,i=n===m.length-1,u=a.getLegendItemTextBox(e,t),b=u.width+c+(i&&!_?0:10)+o.legend_padding,w=u.height+4,T=_?w:b,A=_?a.getLegendHeight():a.getLegendWidth(),S=function(t,e){e||(r=(A-h-T)/2)<10&&(r=(A-T)/2,h=0,x++),y[t]=x,v[x]=s.isLegendInset?10:r,d[t]=h,h+=T};if(0===n&&(h=0,x=0,l=0,f=0),o.legend_show&&!a.isLegendToShow(e))return g[e]=0,p[e]=0,y[e]=0,void(d[e]=0);g[e]=b,p[e]=w,(!l||b>=l)&&(l=b),(!f||w>=f)&&(f=w);var E=_?f:l;o.legend_equally?(Object.keys(g).forEach((function(t){return g[t]=l})),Object.keys(p).forEach((function(t){return p[t]=f})),(r=(A-E*m.length)/2)<10?(h=0,x=0,m.forEach((function(t){return S(t)}))):S(e,!0)):S(e)};s.isLegendInset&&(x=o.legend_inset_step?o.legend_inset_step:m.length,a.updateLegendStep(x)),s.isLegendRight?(n=function(t){return l*y[t]},r=function(t){return v[y[t]]+d[t]}):s.isLegendInset?(n=function(t){return l*y[t]+10},r=function(t){return v[y[t]]+d[t]}):(n=function(t){return v[y[t]]+d[t]},r=function(t){return f*y[t]});var T=function(t,e){return n(t,e)+4+o.legend_item_tile_width},A=function(t,e){return n(t,e)},S=function(t,e){return n(t,e)-2},E=function(t,e){return n(t,e)-2+o.legend_item_tile_width},M=function(t,e){return r(t,e)+9},k=function(t,e){return r(t,e)-5},O=function(t,e){return r(t,e)+4},R=-200,C=u.selectAll("."+bn.legendItem).data(m).enter().append("g");a.setLegendItem(C),C.append("text").text((function(t){return Ca(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){w(this,t,e)})).style("pointer-events","none").attr("x",_?T:R).attr("y",_?R:M),C.append("rect").attr("class",bn.legendItemEvent).style("fill-opacity","0").attr("x",_?A:R).attr("y",_?R:k);var I=function(t){var e=a.getDataById(t);return a.levelColor?a.levelColor(e.values[0].value):a.color(e)},L=o.legend_usePoint;if(L){var D=[];C.append((function(t){var e=za(o.point_pattern)?o.point_pattern:[o.point_type];-1===D.indexOf(t)&&D.push(t);var n=e[D.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),Ta.createElementNS(me.svg,"hasValidPointType"in a&&a.hasValidPointType(n)?n:"use")})).attr("class",bn.legendItemPoint).style("fill",I).style("pointer-events","none").attr("href",(function(t,e,n){return"use"===n[e].nodeName.toLowerCase()?"#"+s.datetimeId+"-point-"+t:void 0}))}else C.append("line").attr("class",bn.legendItemTile).style("stroke",I).style("pointer-events","none").attr("x1",_?S:R).attr("y1",_?R:O).attr("x2",_?E:R).attr("y2",_?R:O).attr("stroke-width",o.legend_item_tile_height);i=u.select("."+bn.legendBackground+" rect"),s.isLegendInset&&l>0&&0===i.size()&&(i=u.insert("g","."+bn.legendItem).attr("class",bn.legendBackground).append("rect"));var P=u.selectAll("text").data(m).text((function(t){return Ca(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){w(this,t,e)}));(b?P.transition():P).attr("x",T).attr("y",M);var F=u.selectAll("rect."+bn.legendItemEvent).data(m);if((b?F.transition():F).attr("width",(function(t){return g[t]})).attr("height",(function(t){return p[t]})).attr("x",A).attr("y",k),L){var N=u.selectAll("."+bn.legendItemPoint).data(m);(b?N.transition():N).each((function(){var t,e,n,r=this.nodeName.toLowerCase(),i=o.point_r,a="x",s="y",u=2,c=2.5;if("circle"===r){var l=.2*i;a="cx",s="cy",t=i+l,u=2*i,c=-l}else if("rect"===r){var f=2.5*i;e=f,n=f,c=3}mn(this).attr(a,(function(t){return S(t)+u})).attr(s,(function(t){return O(t)-c})).attr("r",t).attr("width",e).attr("height",n)}))}else{var z=u.selectAll("line."+bn.legendItemTile).data(m);(b?z.transition():z).style("stroke",I).attr("x1",S).attr("y1",O).attr("x2",E).attr("y2",O)}i&&(b?i.transition():i).attr("height",a.getLegendHeight()-12).attr("width",l*(x+1)+10),a.updateLegendItemWidth(l),a.updateLegendItemHeight(f),a.updateLegendStep(x)}},qu={redraw:function(t){void 0===t&&(t={});var e=this,n=e.config,r=e.state,i=e.$el,a=i.main;r.redrawing=!0;var o=e.filterTargetsToShow(e.data.targets),s=t.initializing,u=t.flow,c=e.getWithOption(t),l=c.Transition?n.transition_duration:0,f=c.TransitionForExit?l:0,h=c.TransitionForAxis?l:0,d=e.axis&&e.axis.generateTransitions(h);e.updateSizes(s),c.Legend&&n.legend_show?(t.withTransition=!!l,e.updateLegend(e.mapToIds(e.data.targets),t,d)):c.Dimension&&e.updateDimension(!0),(!e.hasArcType()||r.hasRadar)&&e.updateCircleY&&e.updateCircleY(),n.data_empty_label_text&&a.select("text."+bn.text+"."+bn.empty).attr("x",r.width/2).attr("y",r.height/2).text(n.data_empty_label_text).style("display",o.length?"none":null),r.hasAxis?(e.axis.redrawAxis(o,c,d,u,s),e.hasGrid()&&e.updateGrid(l),n.regions.length&&e.updateRegion(l),e.hasType("bar")&&e.updateBar(f),e.hasTypeOf("Line")&&e.updateLine(f),e.hasTypeOf("Area")&&e.updateArea(f),i.text&&a.selectAll("."+bn.selectedCircles).filter(e.isBarType.bind(e)).selectAll("circle").remove(),n.interaction_enabled&&!u&&c.EventRect&&(e.redrawEventRect(),e.bindZoomEvent&&e.bindZoomEvent())):(i.arcs&&e.redrawArc(l,f,c.Transform),i.radar&&e.redrawRadar(f)),!r.resizing&&(e.hasPointType()||r.hasRadar)&&e.updateCircle(),e.hasDataLabel()&&!e.hasArcType(null,["radar"])&&e.updateText(f),e.redrawTitle&&e.redrawTitle(),s&&e.updateTypesElements(),e.generateRedrawList(o,u,l,c.Subchart),e.callPluginHook("$redraw",t,l)},generateRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=i.getDrawShape();o.hasAxis&&a.subchart_show&&i.redrawSubchart(r,n,s);var u=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:i.xv.bind(i)}),c=(n||u)&&fo(),l=i.getRedrawList(s,e,u,c),f=e||a.onrendered?function(){u&&u(),o.redrawing=!1,Ua(a.onrendered,i.api)}:null;if(f)if(c&&l.length){var h=Oo();Hi().duration(n).each((function(){l.reduce((function(t,e){return t.concat(e)}),[]).forEach((function(t){return h.add(t)}))})).call(h,f)}else o.transiting||f();i.mapToIds(i.data.targets).forEach((function(t){o.withoutFadeIn[t]=!0}))},getRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=o.hasAxis,u=o.hasRadar,c=i.$el.grid,l=t.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=[];if(s){var v=t.type,y=v.area,x=v.bar,_=v.line;(a.grid_x_lines.length||a.grid_y_lines.length)&&p.push(i.redrawGrid(r)),a.regions.length&&p.push(i.redrawRegion(r)),i.hasTypeOf("Line")&&p.push(i.redrawLine(_,r)),i.hasTypeOf("Area")&&p.push(i.redrawArea(y,r)),i.hasType("bar")&&p.push(i.redrawBar(x,r)),!e&&c.main&&p.push(i.updateGridFocus())}return(!i.hasArcType()||u)&&za(a.data_labels)&&!1!==a.data_labels&&p.push(i.redrawText(d,g,e,r)),(i.hasPointType()||u)&&!a.point_focus_only&&i.redrawCircle&&p.push(i.redrawCircle(f,h,r,n)),p},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,r=n.config,i=n.state;t.withTransition=ja(t,"withTransition",!0),t.withTransform=ja(t,"withTransform",!1),t.withLegend=ja(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=ja(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(i.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}};function Zu(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var r={linear:ru,log:vu,_log:hu,time:Nu}[t]();return r.type=t,/_?log/.test(t)&&r.clamp(!0),r.range([e,n])}var Ku={getXScale:function(t,e,n,r){var i=this,a=i.scale.zoom||Zu(i.axis.getAxisType("x"),t,e);return i.getCustomizedScale(n?a.domain(n):a,r)},getYScale:function(t,e,n,r){var i=Zu(this.axis.getAxisType(t),e,n);return r&&i.domain(r),i},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),r=e?n?"subY2":"subY":n?"y2":"y";return this.scale[r]},getCustomizedScale:function(t,e){var n=this,r=e||function(){return n.axis.x.tickOffset()},i=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var a in t)i[a]=t[a];return i.orgDomain=function(){return t.domain()},i.orgScale=function(){return t},n.axis.isCategorized()&&(i.domain=function(e){var n=e;return arguments.length?(t.domain(n),i):[(n=this.orgDomain())[0],n[1]+1]}),i},updateScales:function(t,e){void 0===e&&(e=!0);var n=this,r=n.axis,i=n.config,a=n.format,o=n.org,s=n.scale,u=n.state,c=u.width,l=u.height,f=u.width2,h=u.height2;if(u.hasAxis){var d=i.axis_rotated,g={x:d?1:0,y:d?0:l,subX:d?1:0,subY:d?0:h},p={x:d?l:c,y:d?c:1,subX:d?l:c,subY:d?f:1},v=e&&s.x&&s.x.orgDomain(),y=e&&o.xDomain;s.x=n.getXScale(g.x,p.x,v,(function(){return r.x.tickOffset()})),s.subX=n.getXScale(g.x,p.x,y,(function(t){return t%1?0:r.subX.tickOffset()})),a.xAxisTick=r.getXAxisTickFormat(),r.setAxis("x",s.x,i.axis_x_tick_outer,t),i.subchart_show&&r.setAxis("subX",s.subX,i.axis_x_tick_outer,t),s.y=n.getYScale("y",g.y,p.y,s.y?s.y.domain():i.axis_y_default),s.subY=n.getYScale("y",g.subY,p.subY,s.subY?s.subY.domain():i.axis_y_default),r.setAxis("y",s.y,i.axis_y_tick_outer,t),i.axis_y2_show&&(s.y2=n.getYScale("y2",g.y,p.y,s.y2?s.y2.domain():i.axis_y2_default),s.subY2=n.getYScale("y2",g.subY,p.subY,s.subY2?s.subY2.domain():i.axis_y2_default),r.setAxis("y2",s.y2,i.axis_y2_tick_outer,t))}else n.updateArc&&n.updateArc()},xx:function(t){var e=this.config,n=this.scale,r=n.x,i=n.zoom,a=e.zoom_enabled&&i?i:r;return t?a(Ea(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,r=e.config,i=e.scale.x,a=e.getBaseValue(t);return n.isTimeSeries()?a=lo.call(e,a):n.isCategorized()&&ka(a)&&(a=r.axis_x_categories.indexOf(a)),Math.ceil(i(a))},yv:function(t){var e=this.scale,n=e.y,r=e.y2,i=t.axis&&"y2"===t.axis?r:n;return Math.ceil(i(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}};function Ju(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Qu(t){this._context=t}function tc(t){return new Qu(t)}function ec(){}function nc(t){this._context=t}function rc(t){return new nc(t)}function ic(t){this._context=t}function ac(t){return new ic(t)}function oc(t,e){this._basis=new Qu(t),this._beta=e}Qu.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:Ju(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ju(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nc.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ju(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ju(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},oc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var sc=function t(e){function n(t){return 1===e?new Qu(t):new oc(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function uc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function cc(t,e){this._context=t,this._k=(1-e)/6}cc.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:uc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:uc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var lc=function t(e){function n(t){return new cc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function fc(t,e){this._context=t,this._k=(1-e)/6}fc.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:uc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var hc=function t(e){function n(t){return new fc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function dc(t,e){this._context=t,this._k=(1-e)/6}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:uc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gc=function t(e){function n(t){return new dc(t,e)}return n.tension=function(e){return t(+e)},n}(0),pc=Math.abs,vc=Math.atan2,yc=Math.cos,xc=Math.max,_c=Math.min,mc=Math.sin,bc=Math.sqrt,wc=1e-12,Tc=Math.PI,Ac=Tc/2,Sc=2*Tc;function Ec(t){return t>=1?Ac:t<=-1?-Ac:Math.asin(t)}function Mc(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>wc){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>wc){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function kc(t,e){this._context=t,this._alpha=e}kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Mc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Oc=function t(e){function n(t){return e?new kc(t,e):new cc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rc(t,e){this._context=t,this._alpha=e}Rc.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Mc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Cc=function t(e){function n(t){return e?new Rc(t,e):new fc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ic(t,e){this._context=t,this._alpha=e}Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Mc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lc=function t(e){function n(t){return e?new Ic(t,e):new dc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Dc(t){return t<0?-1:1}function Pc(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return(Dc(a)+Dc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function Fc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Nc(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function zc(t){this._context=t}function Xc(t){this._context=new Bc(t)}function Bc(t){this._context=t}function jc(t){return new zc(t)}function Uc(t){return new Xc(t)}function $c(t){this._context=t}function Yc(t){var e,n,r=t.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Vc(t){return new $c(t)}function Gc(t){this._context=t}function Hc(t){return new Gc(t)}function Wc(t){this._context=t}function qc(t){return new Wc(t)}function Zc(t,e){this._context=t,this._t=e}function Kc(t){return new Zc(t,.5)}function Jc(t){return new Zc(t,0)}function Qc(t){return new Zc(t,1)}zc.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:Nc(this,this._t0,Fc(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Nc(this,Fc(this,n=Pc(this,t,e)),n);break;default:Nc(this,this._t0,n=Pc(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Xc.prototype=Object.create(zc.prototype)).point=function(t,e){zc.prototype.point.call(this,e,t)},Bc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Yc(t),i=Yc(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Gc.prototype={areaStart:ec,areaEnd:ec,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))}},Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Zc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var tl={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state.hasRadar,r={type:{},indices:{},pos:{}};if(t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")){var i=t.getShapeIndices(t.isLineType);if(r.indices.line=i,r.type.line=t.generateDrawLine?t.generateDrawLine(i,!1):void 0,t.hasTypeOf("Area")){var a=t.getShapeIndices(t.isAreaType);r.indices.area=a,r.type.area=t.generateDrawArea?t.generateDrawArea(a,!1):void 0}}if(t.hasType("bar")){var o=t.getShapeIndices(t.isBarType);r.indices.bar=o,r.type.bar=t.generateDrawBar?t.generateDrawBar(o):void 0}if(!t.hasArcType()||n){var s=n?t.radarCircleX:e?t.circleY:t.circleX,u=n?t.radarCircleY:e?t.circleX:t.circleY;r.pos={xForText:t.generateXYForText(r.indices,!0),yForText:t.generateXYForText(r.indices,!1),cx:(s||function(){}).bind(t),cy:(u||function(){}).bind(t)}}return r},getShapeIndices:function(t){var e=this,n=e.config,r=n.data_xs,i=za(r),a={},o=i?{}:0;return i&&no(Object.keys(r).map((function(t){return r[t]}))).forEach((function(t){o[t]=0,a[t]={}})),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach((function(t){for(var e,i=(t.id in r?r[t.id]:""),s=i?a[i]:a,u=0;e=n.data_groups[u];u++)if(!(e.indexOf(t.id)<0))for(var c,l=0;c=e[l];l++)if(c in s){s[t.id]=s[c];break}Ra(s[t.id])&&(s[t.id]=i?o[i]++:o++,s.__max__=(i?o[i]:o)-1)})),a},getIndices:function(t,e){var n=this.config.data_xs;return za(n)?t[n[e]]:t},getIndicesMax:function(t){return za(this.config.data_xs)?Object.keys(t).map((function(e){return t[e].__max__||0})).reduce((function(t,e){return t+e})):t.__max__},getShapeX:function(t,e,n){var r=this,i=r.config,a=r.scale,o=n?a.subX:a.zoom||a.x,s=i.bar_padding,u=function(t,e){return t+e},c=Fa(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return function(n){var i=r.getIndices(e,n.id),a=n.id in i?i[n.id]:0,l=(i.__max__||0)+1,f=0;if(za(n.x)){var h=o(n.x,!0);f=c?h-(t[n.id]||t._$width)+t._$total.slice(0,a+1).reduce(u)-c:h-(Oa(t)?t:t._$width)*(l/2-a)}return t&&f&&l>1&&s&&(a&&(f+=s*a),l>2?f-=(l-1)*s/2:2===l&&(f-=s/2)),f}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(r){var i=n?e.getRatio("index",r,!0):e.isBubbleZType(r)?e.getBubbleZData(r.value,"y"):r.value;return e.getYScaleById(r.id,t)(i)}},getShapeYMin:function(t){var e=this,n=e.scale[e.axis.getId(t)].domain()[0];return!e.isGrouped(t)&&n>0?n:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),r=e.isStackNormalized(),i=n.map((function(t){var n=t.values,i={};e.isStepType(t)&&(n=e.convertValuesToStep(n));var a=n.reduce((function(t,n){var a=+n.x;return t[a]=n,i[a]=r?e.getRatio("index",n,!0):n.value,t}),{});return{id:t.id,rowValues:n,rowValueMapByXValue:a,values:i}}));return{indexMapByTargetId:n.reduce((function(t,e,n){return t[e.id]=n,t}),{}),shapeOffsetTargets:i}},getShapeOffset:function(t,e,n){var r=this,i=r.getShapeOffsetData(t),a=i.shapeOffsetTargets,o=i.indexMapByTargetId;return function(t,i){var s=r.getIndices(e,t.id),u=r.getYScaleById(t.id,n),c=u(r.getShapeYMin(t.id)),l=+t.x,f=c;return a.filter((function(e){return e.id!==t.id})).forEach((function(e){if(s[e.id]===s[t.id]&&o[e.id]<o[t.id]){var n=e.rowValues[i];n&&+n.x===l||(n=e.rowValueMapByXValue[l]),n&&n.value*t.value>=0&&(f+=u(e.values[l])-c)}})),f}},isWithinShape:function(t,e){var n,r=this,i=mn(t);return r.isTargetToShow(e.id)?"hasValidPointType"in r&&r.hasValidPointType(t.nodeName)?n=r.isStepType(e)?r.isWithinStep(t,r.getYScaleById(e.id)(e.value)):r.isWithinCircle(t,r.isBubbleType(e)?1.5*r.pointSelectR(e):0):"path"===t.nodeName&&(n=!i.classed(bn.bar)||r.isWithinBar(t)):n=!1,n},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:tc,"basis-closed":rc,"basis-open":ac,bundle:sc,cardinal:lc,"cardinal-closed":hc,"cardinal-open":gc,"catmull-rom":Oc,"catmull-rom-closed":Cc,"catmull-rom-open":Lc,"monotone-x":jc,"monotone-y":Uc,natural:Vc,"linear-closed":Hc,linear:qc,step:Kc,"step-after":Qc,"step-before":Jc}[e]},getInterpolateType:function(t){var e=this,n=e.config,r=n.spline_interpolation_type,i=e.isInterpolationType(r)?r:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"}},el={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,r=t.$el,i=n?e.axis_y2_axes.length:0,a=Ea(e.padding_top)?e.padding_top:0;return r.title&&r.title.node()&&(a+=t.getTitlePadding()),i&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*i),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,r=e.axis_rotated?"y":"x",i=n?e["axis_"+r+"_axes"].length:0;return(Ea(e.padding_bottom)?e.padding_bottom:0)+(i?t.getHorizontalAxisHeight(r)*i:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=n.axis_rotated,a=i?"x":"y",o=r?n["axis_"+a+"_axes"].length:0,s=r?e.getAxisWidthByAxisId(a,t):0;return(Ea(n.padding_left)?n.padding_left:r&&i?n.axis_x_show?Math.max(La(s),40):1:!r||n.axis_y_show&&!n.axis_y_inner?La(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state.hasAxis,i=e.state.isLegendRight?e.getLegendWidth()+20:0,a=r?n.axis_y2_axes.length:0,o=r?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return(Ea(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+i:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max(La(o)+i,s):Math.max(2+i+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e,n="offset"+Qa(t),r=this.$el.chart.node();!e&&r&&"BODY"!==r.tagName;){try{e=r.getBoundingClientRect()[t]}catch(t){n in r&&(e=r[n])}r=r.parentNode}if("width"===t){var i=Ta.body.offsetWidth;e>i&&(e=i)}return e},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height");return t.indexOf("px")>0?parseInt(t,10):0},getSvgLeft:function(t){var e=this,n=e.config,r=e.$el,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?bn.axisX:bn.axisY,o=r.main.select("."+a).node(),s=o&&i?o.getBoundingClientRect():{right:0},u=r.chart.node().getBoundingClientRect(),c=e.hasArcType(),l=s.right-u.left-(c?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=e.$el;r&&!t&&(e.axis.x&&n.axis_rotated?(e.axis.x.create(i.axis.x),e.axis.subX&&e.axis.subX.create(i.axis.subX)):(e.axis.y&&e.axis.y.create(i.axis.y),e.axis.y2&&e.axis.y2.create(i.axis.y2))),e.updateScales(t),e.updateSvgSize(),e.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,r=e.current,i=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",r.width).attr("height",r.height),i){var u=s.select("."+bn.brush+" .overlay"),c={width:0,height:0};u.size()&&(c.width=+u.attr("width"),c.height=+u.attr("height")),s.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",a).attr("height",o),s.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#"+n.idSubchart).select("rect").attr("width",a).attr("height",c.height)}},updateSizes:function(t){var e=this,n=e.config,r=e.state,i=e.$el.legend,a=n.axis_rotated,o=e.hasArcType();t||e.setContainerSize();var s={width:i?e.getLegendWidth():0,height:i?e.getLegendHeight():0};!o&&n.axis_x_show&&n.axis_x_tick_autorotate&&e.updateXAxisTickClip();var u=r.isLegendRight||r.isLegendInset?0:s.height,c=a||o?0:e.getHorizontalAxisHeight("x"),l=n.subchart_axis_x_show&&n.subchart_axis_x_tick_text_show?c:30,f=n.subchart_show&&!o?n.subchart_size_height+l:0;r.margin=!o&&a?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:e.getHorizontalAxisHeight("y")+u+e.getCurrentPaddingBottom(),left:f+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:c+f+u+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},r.margin2=a?{top:r.margin.top,right:NaN,bottom:20+u,left:e.state.rotatedPadding.left}:{top:r.current.height-f-u,right:NaN,bottom:l+u,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(s),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=a?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=a?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0);var h=e.hasType("gauge"),d=n.legend_show&&r.isLegendRight;r.arcWidth=r.width-(d?s.width+10:0),r.arcHeight=r.height-(d&&!h?0:10),h&&!n.gauge_fullCircle&&(r.arcHeight+=r.height-e.getPaddingBottomForGauge()),e.updateRadius&&e.updateRadius(),r.isLegendRight&&o&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}};function nl(t){return"string"==typeof t?new yn([document.querySelectorAll(t)],[document.documentElement]):new yn([null==t?[]:t],vn)}var rl={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?"1":"0"},initText:function(){this.$el.main.select("."+bn.chart).append("g").attr("class",bn.chartTexts)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),r=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select("."+bn.chartTexts).selectAll("."+bn.chartText).data(t).attr("class",(function(t){return n(t)+i(t)})).enter().append("g").style("opacity","0").attr("class",n).style("pointer-events","none").append("g").attr("class",r)},updateText:function(t){var e=this,n=e.config,r=e.$el,i=e.labelishData.bind(e),a=e.getClass("text","index");r.text=r.main.selectAll("."+bn.texts).selectAll("."+bn.text).data((function(t){return e.isRadarType(t)?t.values:i(t)})),r.text.exit().transition().duration(t).style("fill-opacity","0").remove(),r.text=r.text.enter().append("text").merge(e.$el.text).attr("class",a).attr("text-anchor",(function(t){return n.axis_rotated?t.value<0?"end":"start":"middle"})).style("fill",e.updateTextColor.bind(e)).style("fill-opacity","0").call((function(t){t.each((function(t,n,r){var i=e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value;i=e.dataLabelFormat(t.id)(i,t.id,n,r),Oa(i)?this.textContent=i:Va(mn(this),i)}))}))},updateTextColor:function(t){var e,n=this,r=n.config.data_labels_colors,i=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(ka(r))e=r;else if(Ba(r)){e=r[(t.data||t).id]}else Ma(r)&&(e=r.bind(n.api)(i,t));return e||i},redrawText:function(t,e,n,r){var i=this,a=qa(),o=n?0:i.opacityForText.bind(i);return i.$el.text.each((function(n,s){var u=mn(this);(r&&u.attr("x")?u.transition(a):u).call((function(n){n.each((function(n){mn(this).style("fill",i.updateTextColor.bind(i)).style("fill-opacity",o);var r=t.bind(this)(n,s),a=e.bind(this)(n,s);this.childElementCount?this.setAttribute("transform","translate("+r+" "+a+")"):(this.setAttribute("x",r),this.setAttribute("y",a))}))}))})),!0},getTextRect:function(t,e){var n=this,r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));var i=r.textContent,a=So+"-"+i.replace(/\W/g,"_"),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",mn(r).style("font")).classed(e,!0).text(i).call((function(t){o=Wa(t.node())})).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,r=Object.keys(t),i={},a=e?n.getXForText:n.getYForText;return n.hasType("radar")&&r.push("radar"),r.forEach((function(e){i[e]=n["generateGet"+Qa(e)+"Points"](t[e],!1)})),function(t,e){var r=(n.isAreaType(t)?"area":n.isBarType(t)&&"bar")||n.isRadarType(t)&&"radar"||"line";return a.call(n,i[r](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var r=this.config,i=r.axis_rotated;if(r.data_labels.centered&&this.isBarType(t)){var a=Wa(n),o=t.value>=0;if(i){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var u=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?u:-u-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var r,i,a=this,o=a.config,s=a.state,u=o.axis_rotated;if(u?(i=a.isBarType(e)?4:6,r=t[2][1]+i*(e.value<0?-1:1)):r=a.hasType("bar")?(t[2][0]+t[0][0])/2:t[0][0],null===e.value)if(r>s.width){var c=Wa(n).width;r=s.width-c}else r<0&&(r=4);return u&&(r+=a.getCenteredTextPos(e,t,n)),r+a.getTextPos(e.id,"x")},getYForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=a.point_r,c=Wa(n),l=3;if(s)r=(t[0][0]+t[2][0]+.6*c.height)/2;else if(r=t[2][1],Oa(u)&&u>5&&(i.isLineType(e)||i.isScatterType(e))&&(l+=a.point_r/2.3),e.value<0||0===e.value&&!o.hasPositiveValue&&o.hasNegativeValue)r+=c.height+(i.isBarType(e)?-l:l);else{var f=2*-l;i.isBarType(e)?f=-l:i.isBubbleType(e)&&(f=l),r+=f}if(null===e.value&&!s){var h=c.height;r<h?r=h:r>o.height&&(r=o.height-4)}return s||(r+=i.getCenteredTextPos(e,t,n)),r+i.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var r=e.$el.arcs.selectAll(n),i=r.filter((function(e){return e.data.id!==t})),a=r.filter((function(e){return e.data.id===t})),o=eo(a.node()),s=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};a.node()&&i.each((function(){var t=eo(this),e=mn(this),n=s(o.e,o.f)>s(t.e,t.f)?a:e,r=Math.ceil(Math.abs(o.e-t.e))<Math.ceil(n.node().getComputedTextLength()),i=Math.ceil(Math.abs(o.f-t.f))<parseInt(a.style("font-size"),10);e.classed(bn.TextOverlapping,r&&i)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){nl([this,this.previousSibling]).classed(bn.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function il(t,e){void 0===t&&(t="left");var n=Oa(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var al={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),Va(e.title.append("text").style("text-anchor",il(t.title_position)).attr("class",bn.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,r=t.$el.title;if(r){var i=t.yForTitle.call(t);/g/i.test(r.node().tagName)?r.attr("transform","translate("+il(e.title_position,n.width)+", "+i+")"):r.attr("x",t.xForTitle.call(t)).attr("y",i)}},xForTitle:function(){var t,e=this,n=e.config,r=e.state.current,i=n.title_position||"left",a=e.getTextRect(e.$el.title,bn.title).width;return/(right|center)/.test(i)?(t=r.width-a,i.indexOf("right")>=0?t=r.width-a-n.title_padding.right:i.indexOf("center")>=0&&(t=(r.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,bn.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},ol={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=mn(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.style("position","relative").append("div").attr("class",bn.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t=this,e=t.config,n=t.$el,r=t.state,i=r.hasAxis,a=r.hasRadar;if(e.tooltip_init_show){var o=!(i&&a);if(t.axis&&t.axis.isTimeSeries()&&ka(e.tooltip_init_x)){var s,u,c=t.data.targets[0];for(e.tooltip_init_x=lo.call(t,e.tooltip_init_x),s=0;(u=c.values[s])&&u.x-e.tooltip_init_x!=0;s++);e.tooltip_init_x=s}var l=t.data.targets.map((function(n){var r=o?0:e.tooltip_init_x;return t.addName(n.values[r])}));o&&(l=[l[e.tooltip_init_x]]),n.tooltip.html(t.getTooltipHTML(l,t.axis&&t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType(null,["radar"])),t.color)),e.tooltip_contents.bindto||n.tooltip.style("top",e.tooltip_init_position.top).style("left",e.tooltip_init_position.left).style("display","block")}},getTooltipHTML:function(){var t=this,e=t.api,n=t.config;return Ma(n.tooltip_contents)?n.tooltip_contents.bind(e).apply(void 0,arguments):t.getTooltipContent.apply(t,arguments)},getTooltipContent:function(t,e,n,r){var i=this,a=i.api,o=i.config,s=i.state,u=["title","name","value"].map((function(t){var e=o["tooltip_format_"+t];return Ma(e)?e.bind(a):e})),c=u[0],l=u[1],f=u[2];c=c||e,l=l||function(t){return t},f=f||(i.isStackNormalized()?function(t,e){return(100*e).toFixed(2)+"%"}:n);var h=o.tooltip_order,d=function(t){return i.axis&&i.isBubbleZType(t)?i.getBubbleZData(t.value,"z"):i.getBaseValue(t)},g=i.levelColor?function(t){return i.levelColor(t.value)}:function(t){return r(t)},p=o.tooltip_contents,v=p.template,y=i.mapToTargetIds();if(null===h&&o.data_groups.length){var x=i.orderTargets(i.data.targets).map((function(t){return t.id})).reverse();t.sort((function(t,e){var n=t?t.value:null,r=e?e.value:null;return n>0&&r>0&&(n=t.id?x.indexOf(t.id):null,r=e.id?x.indexOf(e.id):null),n-r}))}else/^(asc|desc)$/.test(h)?t.sort((function(t,e){var n=t?d(t):null,r=e?d(e):null;return"asc"===h?n-r:r-n})):Ma(h)&&t.sort(h.bind(a));var _,m,b,w,T,A=i.getTooltipContentTemplate(v),S=t.length,E=function(){if(!(m=t[T])||!d(m)&&0!==d(m))return"continue";if(Ra(_)){var e=(s.hasAxis||s.hasRadar)&&Ya(c?c(m.x):m.x);_=co(A[0],{CLASS_TOOLTIP:bn.tooltip,TITLE:Ea(e)?v?e:'<tr><th colspan="2">'+e+"</th></tr>":""})}if(!m.ratio&&i.$el.arcs&&(m.ratio=i.getRatio("arc",i.$el.arcs.select("path."+bn.arc+"-"+m.id).data()[0])),b=[m.ratio,m.id,m.index,t],w=Ya(f.apply(void 0,[d(m)].concat(b))),i.isAreaRangeType(m)){var n=["high","low"].map((function(t){return Ya(f.apply(void 0,[i.getAreaRangeData(m,t)].concat(b)))})),r=n[0],a=n[1];w="<b>Mid:</b> "+w+" <b>High:</b> "+r+" <b>Low:</b> "+a}if(void 0!==w){if(null===m.name)return"continue";var o=Ya(l.apply(void 0,[m.name].concat(b))),u=g(m),h={CLASS_TOOLTIP_NAME:bn.tooltipName+i.getTargetSelectorSuffix(m.id),COLOR:v||!i.patterns?u:'<svg><rect style="fill:'+u+'" width="10" height="10"></rect></svg>',NAME:o,VALUE:w};if(v&&Ba(p.text)){var x=y.indexOf(m.id);Object.keys(p.text).forEach((function(t){h[t]=p.text[t][x]}))}_+=co(A[1],h)}};for(T=0;T<S;T++)E();return _+"</table>"},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'+(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>')+'{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>').replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,r){var i=this,a=i.config,o=i.scale,s=i.state,u=s.width,c=s.height,l=s.current,f=s.isLegendRight,h=s.inputType,d=i.hasType("gauge")&&!a.gauge_fullCircle,g=i.getSvgLeft(!0),p=Nr(r),v=p[0],y=p[1],x=g+l.width-i.getCurrentPaddingRight(),_=i.getCurrentPaddingLeft(!0);if(i.hasArcType()){"touch"===h||i.hasType("radar")||(y+=d?c:c/2,v+=(u-(f?i.getLegendWidth():0))/2)}else{var m=o.x(t[0].x);a.axis_rotated?(y=m+20,v+=g+100,x-=g):(y-=5,v=g+_+20+(i.zoomScale?v:m))}v+e+15>x&&(v-=e+_),y+n>l.height&&(y-=d?3*n:n+30);var b={top:y,left:v};return Object.keys(b).forEach((function(t){b[t]<0&&(b[t]=0)})),b},showTooltip:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.tooltip,o=r.tooltip_contents.bindto,s=n.hasArcType(null,["radar"]),u=t.filter((function(t){return t&&Ea(n.getBaseValue(t))}));if(a&&0!==u.length&&r.tooltip_show){var c=a.datum(),l=c||{},f=l.width,h=void 0===f?0:f,d=l.height,g=void 0===d?0:d,p=JSON.stringify(t);if(!c||c.current!==p){var v=t.concat().sort()[0].index;Ua(r.tooltip_onshow,n.api,t),a.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getYFormat(s),n.color)).style("display",null).style("visibility",null).datum(c={index:v,current:p,width:h=a.property("offsetWidth"),height:g=a.property("offsetHeight")}),Ua(r.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,v)}if(!o){var y=(r.tooltip_position||n.tooltipPosition).call(this,u,h,g,e);["top","left"].forEach((function(t){var e=y[t];a.style(t,e+"px"),"left"!==t||c.xPosInPercent||(c.xPosInPercent=e/i.current.width*100)}))}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,r=t.$el.tooltip;e.add((function(){if("block"===r.style("display")){var t=n.current,e=r.datum(),i=e.width,a=e.xPosInPercent,o=t.width/100*a,s=t.width-(o+i);s<0&&(o+=s),r.style("left",o+"px")}}))},hideTooltip:function(t){var e=this,n=e.api,r=e.config,i=e.$el.tooltip;if(i&&"none"!==i.style("display")&&(!r.tooltip_doNotHide||t)){var a=JSON.parse(i.datum().current);Ua(r.tooltip_onhide,n,a),i.style("display","none").style("visibility","hidden").datum(null),Ua(r.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n=this,r=n.charts,i=n.config;if(sn&&sn.isTrusted&&i.tooltip_linked&&r.length>1){var a=i.tooltip_linked_name;r.filter((function(t){return t!==n.api})).forEach((function(n){var r=n.internal,i=r.config,o=r.$el,s=i.tooltip_linked,u=i.tooltip_linked_name,c=Ta.body.contains(o.chart.node());if(s&&a===u&&c){var l=o.tooltip.data()[0],f=e!==(l&&l.index);try{n.tooltip[t&&f?"show":"hide"]({index:e})}catch(t){}}}))}}},sl={getTranslate:function(t,e){void 0===e&&(e=0);var n,r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=0;if(e&&/^(x|y2?)$/.test(t)&&(u=i.getAxisSize(t)*e),"main"===t)n=Da(o.margin.left),r=Da(o.margin.top);else if("context"===t)n=Da(o.margin2.left),r=Da(o.margin2.top);else if("legend"===t)n=o.margin3.left,r=o.margin3.top;else if("x"===t)n=s?-u:0,r=s?0:o.height+u;else if("y"===t)n=s?0:-u,r=s?o.height+u:0;else if("y2"===t)n=s?0:o.width+u,r=s?1-u:0;else if("subX"===t)n=0,r=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("radar"===t){var c=i.getRadarSize()[0];n=o.width/2-c,r=Da(o.margin.top)}return"translate("+n+", "+r+")"},transformMain:function(t,e){var n,r,i,a=this,o=a.$el.main;e&&e.axisX?n=e.axisX:(n=o.select("."+bn.axisX),t&&(n=n.transition())),e&&e.axisY?r=e.axisY:(r=o.select("."+bn.axisY),t&&(r=r.transition())),e&&e.axisY2?i=e.axisY2:(i=o.select("."+bn.axisY2),t&&(i=i.transition())),(t?o.transition():o).attr("transform",a.getTranslate("main")),n.attr("transform",a.getTranslate("x")),r.attr("transform",a.getTranslate("y")),i.attr("transform",a.getTranslate("y2")),o.select("."+bn.chartArcs).attr("transform",a.getTranslate("arc"))},transformAll:function(t,e){var n=this,r=n.config,i=n.state.hasAxis,a=n.$el;n.transformMain(t,e),i&&r.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},ul={setTargetType:function(t,e){var n=this,r=n.config,i=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach((function(t){i[t]=e===r.data_types[t],r.data_types[t]=e})),t||(r.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys($u).forEach((function(n){var r=$u[n],i=t.hasType(r,null,!0),a=e.types.indexOf(r);-1===a&&i?e.types.push(r):a>-1&&!i&&e.types.splice(a,1)})),t.setChartElements()},hasType:function(t,e,n){void 0===n&&(n=!1);var r=this,i=r.config,a=r.state.current,o=i.data_types,s=e||r.data.targets,u=!1;return!n&&a.types.length&&a.types.indexOf(t)>-1?u=!0:s&&s.length?s.forEach((function(e){var n=o[e.id];n!==t&&(n||"line"!==t)||(u=!0)})):Object.keys(o).length?Object.keys(o).forEach((function(e){o[e]===t&&(u=!0)})):u=i.data_type===t,u},hasTypeOf:function(t,e,n){var r=this;return void 0===n&&(n=[]),!Yu[t].filter((function(t){return-1===n.indexOf(t)})).every((function(t){return!r.hasType(t,e)}))},isTypeOf:function(t,e){var n=ka(t)?t:t.id,r=this.config.data_types[n]||this.config.data_type;return Xa(e)?e.indexOf(r)>=0:r===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=ka(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Yu.Line)},isStepType:function(t){return this.isTypeOf(t,Yu.Step)},isSplineType:function(t){return this.isTypeOf(t,Yu.Spline)},isAreaType:function(t){return this.isTypeOf(t,Yu.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,Yu.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return!(!t||"circle"!==t.tagName)||"circle"===e.point_type&&(!n||Xa(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},barData:function(t){return this.isBarType(t)?t.values:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isRadarType(t)?t.values:[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},cl=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new po,e.cache=new Eo;var n=new Tn;e.$el=n.getStore("element"),e.state=n.getStore("state")}var e=t.prototype;return e.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),Ua(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),Ua(t.config.onafterinit,t.api)},e.init=function(){var t=this,e=t.config,n=t.state,r=t.$el;n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),t.initParams();var i={element:e.bindto,classname:"bb"};Ba(e.bindto)&&(i.element=e.bindto.element||"#chart",i.classname=e.bindto.classname||i.classname),r.chart=Ma(i.element.node)?e.bindto.element:mn(i.element||[]),r.chart.empty()&&(r.chart=mn(Ta.body.appendChild(Ta.createElement("div")))),r.chart.html("").classed(i.classname,!0),t.initToRender()},e.initToRender=function(t){var e=this,n=e.config,r=e.state,i=e.$el.chart,a=function(){return"none"===i.style("display")||"hidden"===i.style("visibility")},o=n.render.lazy||a(),s=wa.MutationObserver;if(o&&s&&!1!==n.render.observe&&!t&&new s((function(t,n){a()||(n.disconnect(),!r.rendered&&e.initToRender(!0))})).observe(i.node(),{attributes:!0,attributeFilter:["class","style"]}),!o||t){var u=e.convertData(n,e.initWithData);u&&e.initWithData(u),e.afterInit()}},e.initParams=function(){var t=this,e=t,n=e.config,r=e.format,i=e.state,a=n.axis_rotated;if(i.datetimeId="bb-"+ +new Date,t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.hasPointType()&&(t.point=t.generatePoint()),i.hasAxis){t.initClip(),r.extraLineClasses=t.generateExtraLineClass(),r.dataTime=n.data_xLocaltime?U:Y,r.axisTime=n.axis_x_localtime?j:$;var o=t.config.zoom_enabled&&"drag"===t.config.zoom_type;r.defaultAxisTime=function(e){var n=t.scale,i=n.x,a=n.zoom,s=o?a:a&&i.orgDomain().toString()!==a.domain().toString(),u=(e.getMilliseconds()?".%L":e.getSeconds()&&".:%S")||e.getMinutes()&&"%I:%M"||e.getHours()&&"%I %p"||1!==e.getDate()&&"%b %d"||s&&1===e.getDate()&&"%b'%y"||e.getMonth()&&"%-m/%-d"||"%Y";return r.axisTime(u)(e)}}i.isLegendRight="right"===n.legend_position,i.isLegendInset="inset"===n.legend_position,i.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,i.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,i.rotatedPaddingRight=a&&!n.axis_x_show?0:30,i.inputType=function(t,e){var n=!1;if(/Mobi/.test(wa.navigator.userAgent)&&e){var r=wa.navigator&&"maxTouchPoints"in wa.navigator&&wa.navigator.maxTouchPoints>0,i="ontouchmove"in wa||wa.DocumentTouch&&Ta instanceof wa.DocumentTouch;n=r||i}return(t&&!n&&"onmouseover"in wa?"mouse":n&&"touch")||null}(n.interaction_inputType_mouse,n.interaction_inputType_touch)},e.initWithData=function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=e.org,s=i.hasAxis,u=n.interaction_enabled;s&&(e.axis=e.getAxisInstance(),n.zoom_enabled&&e.initZoom()),e.data.xs={},e.data.targets=e.convertDataToTargets(t),n.data_filter&&(e.data.targets=e.data.targets.filter(n.data_filter.bind(e.api))),n.data_hide&&e.addHiddenTargetIds(!0===n.data_hide?e.mapToIds(e.data.targets):n.data_hide),n.legend_hide&&e.addHiddenLegendIds(!0===n.legend_hide?e.mapToIds(e.data.targets):n.legend_hide),e.updateSizes(),e.updateScales(!0);var c=r.x,l=r.y,f=r.y2,h=r.subX,d=r.subY,g=r.subY2;if(c&&(c.domain(ao(e.getXDomain(e.data.targets))),h.domain(c.domain()),o.xDomain=c.domain()),l&&(l.domain(e.getYDomain(e.data.targets,"y")),d.domain(l.domain())),f&&(f.domain(e.getYDomain(e.data.targets,"y2")),g&&g.domain(f.domain())),a.svg=a.chart.append("svg").style("overflow","hidden").style("display","block"),u&&i.inputType){var p="touch"===i.inputType;a.svg.on(p?"touchstart":"mouseenter",(function(){return Ua(n.onover,e.api)})).on(p?"touchend":"mouseleave",(function(){return Ua(n.onout,e.api)}))}n.svg_classname&&a.svg.attr("class",n.svg_classname);var v=Ma(n.color_tiles)&&e.patterns;(s||v)&&(a.defs=a.svg.append("defs"),s&&["id","idXAxis","idYAxis","idGrid"].forEach((function(t){e.appendClip(a.defs,i.clip[t])})),v&&e.patterns.forEach((function(t){return a.defs.append((function(){return t.node}))}))),e.updateSvgSize(),e.bindResize();var y=a.svg.append("g").classed(bn.main,!0).attr("transform",e.getTranslate("main"));if(a.main=y,n.subchart_show&&e.initSubchart(),n.tooltip_show&&e.initTooltip(),n.title_text&&e.initTitle(),n.legend_show&&e.initLegend(),n.data_empty_label_text&&y.append("text").attr("class",bn.text+" "+bn.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),s&&(n.regions.length&&e.initRegion(),!n.clipPath&&e.axis.init()),y.append("g").attr("class",bn.chart).attr("clip-path",i.clip.path),e.callPluginHook("$init"),s&&(u&&e.initEventRect&&e.initEventRect(),e.initGrid(),n.clipPath&&e.axis&&e.axis.init()),e.initChartElements(),e.updateTargets(e.data.targets),e.updateDimension(),Ua(n.oninit,e.api),e.setBackground(),e.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),n.data_onmin||n.data_onmax){var x=e.getMinMaxData();Ua(n.data_onmin,e.api,x.min),Ua(n.data_onmax,e.api,x.max)}n.tooltip_show&&e.initShowTooltip(),i.rendered=!0},e.initChartElements=function(){var t=this,e=t.state,n=e.hasAxis,r=e.hasRadar,i=[];n?(t.hasType("bar")&&i.push("Bar"),t.hasType("bubble")&&i.push("Bubble"),t.hasTypeOf("Line")&&i.push("Line")):(!r&&i.push("Arc","Pie"),t.hasType("gauge")?i.push("Gauge"):r&&i.push("Radar")),i.forEach((function(e){t["init"+e]()})),za(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()},e.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,r=t.defs,i=t.main,a=t.tooltip,o=t.legend,s=t.title,u=t.grid,c=t.arcs,l=t.circle,f=t.bar,h=t.line,d=t.area,g=t.text;this.api.$={chart:e,svg:n,defs:r,main:i,tooltip:a,legend:o,title:s,grid:u,arc:c,circles:l,bar:{bars:f},line:{lines:h,areas:d},text:{texts:g}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,r=t.$el.svg;if(za(e)){var i=r.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?i.attr("href",e.imgUrl):e.color&&i.style("fill",e.color).attr("clip-path",n.clip.path),i.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this,n=e.state,r=n.hasAxis,i=n.hasRadar;e.updateTargetsForText(t),r?(e.hasType("bar")&&e.updateTargetsForBar(t),e.hasTypeOf("Line")&&e.updateTargetsForLine(t),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t)):e.hasArcType(t)&&(i?e.updateTargetsForRadar(t):e.updateTargetsForArc(t)),(e.hasType("bubble")||e.hasType("scatter"))&&e.updateTargetForCircle&&e.updateTargetForCircle(),e.showTargets()},e.showTargets=function(){var t=this,e=t.config;t.$el.svg.selectAll("."+bn.target).filter((function(e){return t.isTargetToShow(e.id)})).transition().duration(e.transition_duration).style("opacity","1")},e.getWithOption=function(t){var e={Y:!0,Subchart:!0,Transition:!0,EventRect:!0,Dimension:!0,TrimXDomain:!0,Transform:!1,UpdateXDomain:!1,UpdateOrgXDomain:!1,Legend:!1,UpdateXAxis:"UpdateXDomain",TransitionForExit:"Transition",TransitionForAxis:"Transition"};return Object.keys(e).forEach((function(n){var r=e[n];ka(r)&&(r=e[r]),e[n]=ja(t,"with"+n,r)})),e},e.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?"1":"0"},e.bindResize=function(){var t=this,e=t.config,n=t.state,r=function(){var t,e=[],n=function(){n.clear(),t=Mo((function(){e.forEach((function(t){return t()}))}),200)};return n.clear=function(){t&&(ko(t),t=null)},n.add=function(t){return e.push(t)},n.remove=function(t){return e.splice(e.indexOf(t),1)},n}(),i=[];i.push((function(){return Ua(e.onresize,t,t.api)})),e.resize_auto&&i.push((function(){n.resizing=!0,t.api.flush(!1)})),i.push((function(){Ua(e.onresized,t,t.api),n.resizing=!1})),i.forEach((function(t){return r.add(t)})),t.resizeFunction=r,wa.addEventListener("resize",t.resizeFunction=r)},e.callPluginHook=function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.config.plugins.forEach((function(n){"$beforeInit"===t&&(n.$$=e,e.api.plugins.push(n)),n[t].apply(n,r)}))},t}();function ll(t){var e,n,r,i=this.config,a=function(){var t=n.shift();return t&&e&&Fa(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(i).forEach((function(o){e=t,n=o.split("_"),r=a(),Ca(r)&&(i[o]=r)}))}Ja(cl.prototype,[Go,Ho,Wo,{categoryName:function(t){var e=this.config.axis_x_categories;return e&&t<e.length?e[t]:t}},rs,Uu,Vu,ns,Hu,Wu,qu,Ku,tl,el,rl,al,ol,sl,ul]);var fl={resize:function(t){var e=this.internal,n=e.config,r=e.state;r.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,r.resizing=!0,this.flush(!1,!0),e.resizeFunction())},flush:function(t){var e=this.internal,n=e.state;n.rendered?(n.resizing?e.brush&&e.brush.updateResize():e.axis&&e.axis.setOrient(),e.scale.zoom=null,t?e.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&e.brush&&(e.brush.getSelection().call(e.brush.move),e.unselectRect())):e.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,r=n.chart,i=n.svg;if(za(e))for(var a in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),i.select("*").interrupt(),e.resizeFunction.clear(),wa.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).html(""),Object.keys(this).forEach((function(n){"internal"===n&&Object.keys(e).forEach((function(t){e[t]=null})),t[n]=null,delete t[n]})),this)this[a]=function(){};return null},config:function(t,e,n){var r,i=this.internal.config,a=t&&t.replace(/\./g,"_");return a in i&&(Ca(e)?(i[a]=e,r=e,n&&this.flush()):r=i[a]),r}};function hl(t){var e=this.internal.data.targets;if(!Ra(t)){var n=Xa(t)?t:[t];return e.filter((function(t){return n.some((function(e){return e===t.id}))}))}return e}Ja(hl,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){void 0===e&&(e=!0);var n=null;if(t){var r=this.data(t);r&&Xa(r)&&(n=[],r.forEach((function(t){var r=t.values.map((function(t){return t.value}));e?n=n.concat(r):n.push(r)})))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var dl={data:hl},gl=function(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(+("0x"+e))})))};function pl(t,e){var n,r,i=new XMLSerializer,a=t.cloneNode(!0),o=(n=to(Ta.styleSheets),r=[],n.forEach((function(t){try{t.cssRules&&t.cssRules.length&&(r=r.concat(to(t.cssRules)))}catch(e){console.error("Error while reading rules from "+t.href+": "+e.toString())}})),r).filter((function(t){return t.cssText})).map((function(t){return t.cssText}));a.setAttribute("xmlns",me.xhtml);var s=i.serializeToString(a),u=Ta.createElement("style");u.appendChild(Ta.createTextNode(o.join("\n")));var c=i.serializeToString(u),l=('<svg xmlns="'+me.svg+'" width="'+e.width+'" height="'+e.height+'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t'+c+"\n\t\t\t\t"+s.replace(/(url\()[^#]+/g,"$1")+"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,"+gl(l)}var vl={export:function(t,e){var n=this,r=this.internal,i=r.state,a=r.$el.chart,o=i.current,s=o.width,u=o.height,c=pl(a.node(),{width:s,height:u});if(e&&Ma(e)){var l=new Image;l.crossOrigin="Anonymous",l.onload=function(){var r=Ta.createElement("canvas"),i=r.getContext("2d");r.width=s,r.height=u,i.drawImage(l,0,0),e.bind(n)(r.toDataURL(t))},l.src=c}return c}},yl={focus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(bn.focused,!0).classed(bn.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(r),e.hasType("gauge")&&e.markOverlapped(t,e,"."+bn.gaugeValue)),e.toggleFocusLegend(r,!0),n.focusedTargetIds=r,n.defocusedTargetIds=n.defocusedTargetIds.filter((function(t){return r.indexOf(t)<0}))},defocus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e))).classed(bn.focused,!1).classed(bn.defocused,!0),e.hasArcType()&&(e.unexpandArc(r),e.hasType("gauge")&&e.undoMarkOverlapped(e,"."+bn.gaugeValue)),e.toggleFocusLegend(r,!1),n.focusedTargetIds=n.focusedTargetIds.filter((function(t){return r.indexOf(t)<0})),n.defocusedTargetIds=r},revert:function(t){var e=this.internal,n=e.config,r=e.state,i=e.$el,a=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(a)).classed(bn.focused,!1).classed(bn.defocused,!1),e.hasArcType()&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(a)).filter((function(){return mn(this).classed(bn.legendItemFocused)})).classed(bn.legendItemFocused,!1)),r.focusedTargetIds=[],r.defocusedTargetIds=[]}},xl={legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},_l={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach((function(e){n.data_classes[e]=t.classes[e]})),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach((function(e){n.data_axes[e]=t.axes[e]})),"colors"in t&&Object.keys(t.colors).forEach((function(e){n.data_colors[e]=t.colors[e]})),"unload"in t&&!1!==t.unload?e.unload(e.mapToTargetIds(!0===t.unload?null:t.unload),(function(){return e.loadFromArgs(t)})):e.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,r=t||{};Xa(r)?r={ids:r}:ka(r)&&(r={ids:[r]});var i=n.mapToTargetIds(r.ids);n.unload(i,(function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(i),r.done&&r.done.call(e)}))}};function ml(t,e,n){var r=this.internal,i=r.mapToTargetIds(e);r.state.toggling=!0,r[(t?"remove":"add")+"HiddenTargetIds"](i);var a=r.$el.svg.selectAll(r.selectorTargets(i)),o=t?"1":"0";t&&a.style("display",null),a.transition().style("opacity",o,"important").call($a,(function(){t||a.style("display","none"),a.style("opacity",o)})),n.withLegend&&r[(t?"show":"hide")+"Legend"](i),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.state.toggling=!1}var bl={show:function(t,e){void 0===e&&(e={}),ml.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),ml.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var r=this.internal,i={show:[],hide:[]};r.mapToTargetIds(t).forEach((function(t){return i[r.isTargetToShow(t)?"hide":"show"].push(t)})),i.show.length&&this.show(i.show,e),i.hide.length&&setTimeout((function(){return n.hide(i.hide,e)}),0)}},wl={show:function(t){var e,n,r=this.internal,i=r.config,a=r.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var o=t.data,s=r.getYScaleById(o.id)(o.value);r.isMultipleX()?n=[r.scale.x(o.x),s]:(!i.tooltip_grouped&&(n=[0,s]),e=Ea(o.index)?o.index:r.getIndexByX(o.x))}else Ca(t.x)?e=r.getIndexByX(t.x):Ca(t.index)&&(e=t.index);("mouse"===a?["mouseover","mousemove"]:["touchstart"]).forEach((function(t){r.dispatchEvent(t,e,n)}))},hide:function(){var t=this.internal,e=t.state.inputType,n=t.$el.tooltip,r=n&&n.datum();if(r){var i=JSON.parse(r.current)[0].index;("mouse"===e?["mouseout"]:["touchend"]).forEach((function(e){t.dispatchEvent(e,i)}))}"touch"===e&&t.callOverOutForTouch(),t.hideTooltip(!0),t.hideGridFocus(),t.unexpandCircles&&t.unexpandCircles(),t.unexpandBars&&t.unexpandBars()}},Tl={tooltip:wl},Al=function t(e){this.plugins=[],this.internal=void 0;var n=new cl(this);this.internal=n,function t(e,n,r){Object.keys(e).forEach((function(i){var a=Ma(e[i]),o=n!==r,s=Object.keys(e[i]).length>0;a&&(!o&&s||o)?n[i]=e[i].bind(r):!a&&(n[i]={}),s&&t(e[i],n[i],r)}))}(t.prototype,this,this),ll.call(n,e),n.beforeInit(),n.init()};function Sl(t,e,n){var r=t.config,i="axis_y_"+e,a="axis_y2_"+e;Ca(n)&&(Fa(n)?(Ea(n.x)&&(r["axis_x_"+e]=n.x),Ea(n.y)&&(r[i]=n.y),Ea(n.y2)&&(r[a]=n.y2)):(r[i]=n,r[a]=n),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function El(t,e){var n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}Ja(Al.prototype,[fl,{color:function(t){return this.internal.color(t)}},dl,vl,yl,xl,_l,bl,Tl]);var Ml={labels:function(t){var e,n=this.internal;return t&&(Object.keys(t).forEach((function(e){n.axis.setLabelText(e,t[e])})),n.axis.updateLabels()),["x","y","y2"].forEach((function(t){var r=n.axis.getLabelText(t);r&&(!e&&(e={}),e[t]=r)})),e},min:function(t){var e=this.internal;return Ea(t)?Sl(e,"min",t):El(e,"min")},max:function(t){var e=this.internal;return arguments.length?Sl(e,"max",t):El(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};Ca(t.max)&&e.max(t.max),Ca(t.min)&&e.min(t.min)}},kl={axis:Ml};function Ol(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}Ja(Ol,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var Rl={xgrids:Ol};function Cl(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}Ja(Cl,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var Il={ygrids:Cl},Ll={groups:function(t){var e=this.internal,n=e.config;return Ra(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function Dl(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}Ja(Dl,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this.internal,n=e.config,r=t||{},i=ja(r,"duration",n.transition_duration),a=ja(r,"classes",[bn.region]),o=e.$el.main.select("."+bn.regions).selectAll(a.map((function(t){return"."+t})));return(i?o.transition().duration(i):o).style("opacity","0").remove(),o=n.regions,Object.keys(r).length?(o=o.filter((function(t){var e=!1;return!t.class||(t.class.split(" ").forEach((function(t){a.indexOf(t)>=0&&(e=!0)})),!e)})),n.regions=o):n.regions=[],o}});var Pl={regions:Dl},Fl={x:function(t){var e=this.internal,n=e.axis,r=e.data,i=n.isCustomX()&&n.isCategorized();return Xa(t)&&(i?this.categories(t):(e.updateTargetX(r.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():r.xs},xs:function(t){var e=this.internal;return Ba(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},Nl={flow:function(t){var e,n,r,i,a=this.internal,o=0,s=0;if((t.json||t.rows||t.columns)&&(e=a.convertData(t)),e&&fo()){var u=[],c=a.getMaxDataCount(),l=a.convertDataToTargets(e,!0),f=a.axis.isTimeSeries();a.data.targets.forEach((function(t){for(var e=!1,n=0;n<l.length;n++)if(t.id===l[n].id){e=!0,t.values[t.values.length-1]&&(s=t.values[t.values.length-1].index+1),o=l[n].values.length;for(var r=0;r<o;r++)l[n].values[r].index=s+r,f||(l[n].values[r].x=s+r);t.values=t.values.concat(l[n].values),l.splice(n,1);break}e||u.push(t.id)})),a.data.targets.forEach((function(t){for(var e=0;e<u.length;e++)if(t.id===u[e]){s=t.values[t.values.length-1].index+1;for(var n=0;n<o;n++)t.values.push({id:t.id,index:s+n,x:f?a.getOtherTargetX(s+n):s+n,value:null})}})),a.data.targets.length&&l.forEach((function(t){for(var e=[],n=a.data.targets[0].values[0].index;n<s;n++)e.push({id:t.id,index:n,x:f?a.getOtherTargetX(n):n,value:null});t.values.forEach((function(t){t.index+=s,f||(t.x+=s)})),t.values=e.concat(t.values)})),a.data.targets=a.data.targets.concat(l);var h=a.data.targets[0],d=h.values[0];Ca(t.to)?(o=0,i=f?lo.call(a,t.to):t.to,h.values.forEach((function(t){t.x<i&&o++}))):Ca(t.length)&&(o=t.length),c?1===c&&f&&(r=(h.values[h.values.length-1].x-d.x)/2,n=[new Date(+d.x-r),new Date(+d.x+r)]):(r=f?h.values.length>1?h.values[h.values.length-1].x-d.x:d.x-a.getXDomain(a.data.targets)[0]:1,n=[d.x-r,d.x]),n&&a.updateXDomain(null,!0,!0,!1,n),a.updateTargets(a.data.targets),a.redraw({flow:{index:d.index,length:o,duration:Ea(t.duration)?t.duration:a.config.transition_duration,done:t.done,orgDataCount:c},withLegend:!0,withTransition:c>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}},zl=Array.prototype.slice;function Xl(t){return t}var Bl=1,jl=2,Ul=3,$l=4,Yl=1e-6;function Vl(t){return"translate("+(t+.5)+",0)"}function Gl(t){return"translate(0,"+(t+.5)+")"}function Hl(t){return function(e){return+t(e)}}function Wl(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function ql(){return!this.__axis}function Zl(t,e){function n(n){var h=null==i?e.ticks?e.ticks.apply(e,r):e.domain():i,d=null==a?e.tickFormat?e.tickFormat.apply(e,r):Xl:a,g=Math.max(o,0)+u,p=e.range(),v=+p[0]+.5,y=+p[p.length-1]+.5,x=(e.bandwidth?Wl:Hl)(e.copy()),_=n.selection?n.selection():n,m=_.selectAll(".domain").data([null]),b=_.selectAll(".tick").data(h,e).order(),w=b.exit(),T=b.enter().append("g").attr("class","tick"),A=b.select("line"),S=b.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(l,c*g).attr("dy",t===Bl?"0em":t===Ul?"0.71em":"0.32em")),n!==_&&(m=m.transition(n),b=b.transition(n),A=A.transition(n),S=S.transition(n),w=w.transition(n).attr("opacity",Yl).attr("transform",(function(t){return isFinite(t=x(t))?f(t):this.getAttribute("transform")})),T.attr("opacity",Yl).attr("transform",(function(t){var e=this.parentNode.__axis;return f(e&&isFinite(e=e(t))?e:x(t))}))),w.remove(),m.attr("d",t===$l||t==jl?s?"M"+c*s+","+v+"H0.5V"+y+"H"+c*s:"M0.5,"+v+"V"+y:s?"M"+v+","+c*s+"V0.5H"+y+"V"+c*s:"M"+v+",0.5H"+y),b.attr("opacity",1).attr("transform",(function(t){return f(x(t))})),A.attr(l+"2",c*o),S.attr(l,c*g).text(d),_.filter(ql).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===jl?"start":t===$l?"end":"middle"),_.each((function(){this.__axis=x}))}var r=[],i=null,a=null,o=6,s=6,u=3,c=t===Bl||t===$l?-1:1,l=t===$l||t===jl?"x":"y",f=t===Bl||t===Ul?Vl:Gl;return n.scale=function(t){return arguments.length?(e=t,n):e},n.ticks=function(){return r=zl.call(arguments),n},n.tickArguments=function(t){return arguments.length?(r=null==t?[]:zl.call(t),n):r.slice()},n.tickValues=function(t){return arguments.length?(i=null==t?null:zl.call(t),n):i&&i.slice()},n.tickFormat=function(t){return arguments.length?(a=t,n):a},n.tickSize=function(t){return arguments.length?(o=s=+t,n):o},n.tickSizeInner=function(t){return arguments.length?(o=+t,n):o},n.tickSizeOuter=function(t){return arguments.length?(s=+t,n):s},n.tickPadding=function(t){return arguments.length?(u=+t,n):u},n}function Kl(t){return Zl(Bl,t)}function Jl(t){return Zl(jl,t)}function Ql(t){return Zl(Ul,t)}function tf(t){return Zl($l,t)}var ef=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=Zu(),n=t.config,r=t.params;this.owner=t,this.config=n,this.scale=e,(n.noTransition||!r.config.transition_duration)&&(n.withoutTransition=!0),n.range=this.scaleExtent((r.orgXScale||e).range())}t.getSizeFor1Char=function(t){var e={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call((function(t){try{var n=t.node().getBBox(),r=n.width,i=n.height;r&&i&&(e.w=r,e.h=i)}catch(t){}finally{t.text("")}})),this.getSizeFor1Char=function(){return e},e};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this.config,n="x"===t?function(t){return"translate("+(t+e.tickOffset)+",0)"}:function(t){return"translate(0,"+t+")"};return function(t,e){t.attr("transform",(function(t){return n(Math.ceil(e(t)))}))}},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this.owner.params.tickStepSize,r=t.domain(),i=r[0],a=r[1],o=[];if(e&&n)for(var s=i;s<=a;)o.push(s),s+=n;else if(t.ticks){var u=this.config.tickArguments;if("log"!==t.type||u)o=t.ticks.apply(t,this.config.tickArguments||[]);else{var c=Zu("_log").domain([i>0?i:1,a]).range(t.range());o=c.ticks();for(var l=a.toFixed().length;o.length>15;l--)o=c.ticks(l);o.splice(0,1,i),o.splice(o.length-1,1,a)}o=o.map((function(t){return ka(t)&&Oa(t)&&!isNaN(t)&&Math.round(10*t)/10||t}))}else{for(var f=Math.ceil(i);f<a;f++)o.push(f);o.length>0&&o[0]>0&&o.unshift(o[0]-(o[1]-o[0]))}return o},e.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,r=e?e(n):n;return Ca(r)?r:""},e.transitionise=function(t){var e=this.config;return e.withoutTransition?t.interrupt():t.transition(e.transition)},t}(),nf=function(){function t(t){void 0===t&&(t={}),this.helper=void 0,this.config=void 0,this.params=void 0,this.g=void 0;var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new ef(this)}var e=t.prototype;return e.create=function(t){var e=this,n=this.config,r=this.helper,i=this.params,a=r.scale,o=n.orient,s=this.splitTickText.bind(this),u=/^(left|right)$/.test(o),c=/^(top|bottom)$/.test(o),l=r.getTickTransformSetter(c?"x":"y"),f=l===r.axisX?"y":"x",h=/^(top|left)$/.test(o)?-1:1,d=i.tickTextRotate;this.config.range=a.rangeExtent?a.rangeExtent():r.scaleExtent((i.orgXScale||a).range());var g,p=n.innerTickSize,v=n.tickLength,y=n.range,x=i.id,_=x&&/^(x|y|y2)$/.test(x)?i.config["axis_"+x+"_tick_text_position"]:{x:0,y:0},m="subX"===x?"subchart_axis_x":"axis_"+x,b=i.config[m+"_show"],w=!!b&&i.config[m+"_tick_show"],T=!!b&&i.config[m+"_tick_text_show"];t.each((function(){var t=mn(this),x=this.__chart__||a,m=r.copyScale();g=t,this.__chart__=m,n.tickOffset=i.isCategory?Math.ceil((m(1)-m(0))/2):0;var b=t.selectAll(".domain").data([0]);if(b.enter().append("path").attr("class","domain").merge(r.transitionise(b)).attr("d",(function(){var t=n.outerTickSize*h;return c?"M"+y[0]+","+t+"V0H"+y[1]+"V"+t:"M"+t+","+y[0]+"H0V"+y[1]+"H"+t})),w||T){var A=n.tickValues||r.generateTicks(m,u),S=t.selectAll(".tick").data(A,m),E=S.enter().insert("g",".domain").attr("class","tick").style("opacity","1"),M=S.exit().remove();S=E.merge(S),w&&E.append("line"),T&&E.append("text");var k=ef.getSizeFor1Char(S),O=[],R=S.select("text").selectAll("tspan").data((function(t,e){var n=i.tickMultiline?s(t,m,A,u,k.w):Xa(r.textFormatted(t))?r.textFormatted(t).concat():[r.textFormatted(t)];return O[e]=n.length,n.map((function(t){return{index:e,splitted:t}}))}));R.exit().remove(),(R=R.enter().append("tspan").merge(R).text((function(t){return t.splitted}))).attr("x",c?0:v*h).attr("dx",function(){var t=0;return/(top|bottom)/.test(o)&&d&&(t=8*Math.sin(Math.PI*(d/180))*("top"===o?-1:1)),t+(_.x||0)}()).attr("dy",(function(t,e){var n=0;return"top"!==o&&(n=k.h,0===e&&(n=u?-((O[t.index]-1)*(k.h/2)-3):0===_.y?".71em":0)),Oa(n)&&_.y?n+_.y:n||".71em"}));var C=S.select("line"),I=S.select("text");if(E.select("line").attr(f+"2",p*h),E.select("text").attr(f,v*h),e.setTickLineTextPosition(C,I),i.tickTitle){var L=I.select("title");(L.empty()?I.append("title"):L).text((function(t){return i.tickTitle[t]}))}if(m.bandwidth){var D=m,P=D.bandwidth()/2;m=x=function(t){return D(t)+P}}else x.bandwidth?x=m:l(M,m);l(E,x),l(r.transitionise(S).style("opacity","1"),m)}})),this.g=g},e.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},e.getTickSize=function(t){var e=this.helper.scale,n=this.config,r=n,i=r.innerTickSize,a=r.range,o=e(t)+(n.tickCentered?0:n.tickOffset);return a[0]<o&&o<a[1]?i:0},e.setTickLineTextPosition=function(t,e){var n=this.getTickXY(),r=this.config,i=r.innerTickSize,a=r.orient,o=r.tickLength,s=r.tickOffset,u=this.params.tickTextRotate,c=function(t){var e=["start","end"];return"top"===a&&e.reverse(),t?t>0?e[0]:e[1]:"middle"},l=function(t){return t?"rotate("+t+")":null},f=function(t){return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):o};"bottom"===a?(t.attr("x1",n.x).attr("x2",n.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",f(u)).style("text-anchor",c(u)).attr("transform",l(u))):"top"===a?(t.attr("x2",0).attr("y2",-i),e.attr("x",0).attr("y",2*-f(u)).style("text-anchor",c(u)).attr("transform",l(u))):"left"===a?(t.attr("x2",-i).attr("y1",n.y).attr("y2",n.y),e.attr("x",-o).attr("y",s).style("text-anchor","end")):"right"===a&&(t.attr("x2",i).attr("y2",0),e.attr("x",o).attr("y",0).style("text-anchor","start"))},e.splitTickText=function(t,e,n,r,i){var a=this.params,o=this.helper.textFormatted(t),s=ka(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(Xa(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=r?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var r,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),r=n.substr(0,s+1),o=i*r.length,u<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,o+"")},e.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},e.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",this):this.config.orient},e.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},e.tickOffset=function(){return this.config.tickOffset},e.tickInterval=function(t){var e,n=this;if(this.params.isCategory)e=2*this.config.tickOffset;else{e=(this.g.select("path.domain").node().getTotalLength()-2*this.config.outerTickSize)/(t||this.g.selectAll("line").size());var r=this.config.tickValues.map((function(t,e,r){var i=e+1;return i<r.length?n.helper.scale(r[i])-n.helper.scale(t):null})).filter(Boolean);e=Math.min.apply(Math,r.concat([e]))}return e===1/0?0:e},e.ticks=function(){for(var t=this.config,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length?(t.tickArguments=to(n),this):t.tickArguments},e.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this,n=this.config;if(Ma(t))n.tickValues=function(){return t(e.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},e.setTransition=function(t){return this.config.transition=t,this},t}(),rf={getAxisInstance:function(){return this.axis||new af(this)}},af=function(){function t(t){this.owner=void 0,this.x=void 0,this.subX=void 0,this.y=void 0,this.y2=void 0,this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}var e=t.prototype;return e.getAxisClassName=function(t){return bn.axis+" "+bn["axis"+Qa(t)]},e.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||za(t.data_xs))},e.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_"+t+"_type"]},e.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_"+t+"_type"]},e.isTimeSeriesY=function(){return this.isTimeSeries("y")},e.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e="time":this.isLog(t)&&(e="log"),e},e.init=function(){var t=this,e=this.owner,n=e.config,r=e.$el,i=r.main,a=r.axis,o=e.state.clip,s=n.axis_rotated,u=["x","y"];n.axis_y2_show&&u.push("y2"),u.forEach((function(r){var u=t.getAxisClassName(r),c=bn["axis"+r.toUpperCase()+"Label"];a[r]=i.append("g").attr("class",u).attr("clip-path",(function(){var t=null;return"x"===r?t=o.pathXAxis:"y"===r&&(t=o.pathYAxis),t})).attr("transform",e.getTranslate(r)).style("visibility",n["axis_"+r+"_show"]?"visible":"hidden"),a[r].append("text").attr("class",c).attr("transform",["rotate(-90)",null]["x"===r?+!s:+s]).style("text-anchor",(function(){return t.textAnchorForAxisLabel(r)})),t.generateAxes(r)}))},e.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,r=t.axis_y2_inner;this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?r?"bottom":"top":r?"left":"right",subX:e?"left":"bottom"}},e.generateAxes=function(t){var e,n=this.owner,r=n.config,i=[],a=r["axis_"+t+"_axes"],o=r.axis_rotated;"x"===t?e=o?tf:Ql:"y"===t?e=o?Ql:tf:"y2"===t&&(e=o?Kl:Jl),a.length&&a.forEach((function(r){var a=r.tick||{},o=n.scale[t].copy();r.domain&&o.domain(r.domain),i.push(e(o).ticks(a.count).tickFormat(Ma(a.format)?a.format.bind(n.api):function(t){return t}).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))})),this.axesList[t]=i},e.updateAxes=function(){var t=this,e=this.owner,n=e.config,r=e.$el.main;Object.keys(this.axesList).forEach((function(i){var a=n["axis_"+i+"_axes"],o=e.scale[i].copy(),s=o.range();t.axesList[i].forEach((function(u,c){var l=u.scale().range();s.every((function(t,e){return t===l[e]}))||u.scale().range(s);var f=t.getAxisClassName(i)+"-"+(c+1),h=r.select("."+f.replace(/\s/,"."));h.empty()?h=r.append("g").attr("class",f).style("visibility",n["axis_"+i+"_show"]?"visible":"hidden").call(u):(a[c].domain&&o.domain(a[c].domain),t.x.helper.transitionise(h).call(u.scale(o))),h.attr("transform",e.getTranslate(i,c+1))}))}))},e.setAxis=function(t,e,n,r){var i=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(i.scale.zoom||i.config.subchart_show||i.state.resizing))||r)},e.getAxis=function(t,e,n,r,i){var a,o=this.owner,s=o.config,u=/^(x|subX)$/.test(t),c=u?"x":t,l=u&&this.isCategorized(),f=this.orient[t],h=i?0:o.getAxisTickRotate(c);if(u)a=o.format.xAxisTick;else{var d=s["axis_"+t+"_tick_format"];Ma(d)&&(a=d.bind(o.api))}var g=this.tick[c],p=io({outerTick:n,noTransition:r,config:s,id:t,tickTextRotate:h},u&&{isCategory:l,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:l&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});u||(p.tickStepSize=s["axis_"+c+"_tick_stepSize"]);var v=new nf(p).scale(u&&o.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&g&&!Ma(g)){var y=lo.bind(o);g=g.map((function(t){return y(t)}))}else!u&&this.isTimeSeriesY()&&(v.ticks(s.axis_y_tick_time_value),g=null);g&&v.tickValues(g),v.tickFormat(a||!u&&o.isStackNormalized()&&function(t){return t+"%"}),l&&(v.tickCentered(s.axis_x_tick_centered),Na(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var x=s["axis_"+c+"_tick_count"];return x&&v.ticks(x),v},e.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config,a=i.axis_x_tick_fit,o=i.axis_x_tick_count;return(a||o&&a)&&(n=r.mapTargetsToUniqueXs(t),this.isCategorized()&&o>n.length&&(o=n.length),n=this.generateTickValues(n,o,this.isTimeSeries())),e?e.tickValues(n):this.x&&(this.x.tickValues(n),this.subX&&this.subX.tickValues(n)),n},e.getId=function(t){var e=this.owner,n=e.config,r=e.scale,i=n.data_axes[t];return i&&r[i]||(i="y"),i},e.getXAxisTickFormat=function(){var t,e=this.owner,n=e.config,r=e.format,i=n.axis_x_tick_format,a=this.isTimeSeries(),o=this.isCategorized();return i?Ma(i)?t=i.bind(e.api):a&&(t=function(t){return t?r.axisTime(i)(t):""}):t=a?r.defaultAxisTime:o?e.categoryName:function(t){return t<0?t.toFixed(0):t},Ma(t)?function(n){return t.apply(e,o?[n,e.categoryName(n)]:[n])}:t},e.getTickValues=function(t){var e=this.owner,n=e.config["axis_"+t+"_tick_values"],r=e[t+"Axis"];return(Ma(n)?n.call(e.api):n)||(r?r.tickValues():void 0)},e.getLabelOptionByAxisId=function(t){return this.owner.config["axis_"+t+"_label"]},e.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return ka(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,r=this.getLabelOptionByAxisId(t);ka(r)?n["axis_"+t+"_label"]=e:r&&(r.text=e)},e.getLabelPosition=function(t,e){var n=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),i=Fa(r)&&r.position?r.position:e[+!n],a=function(t){return!!~i.indexOf(t)};return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("bottom")}},e.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},e.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},e.xForAxisLabel=function(t){var e=this.owner,n=e.state,r=n.width,i=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-i/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?r/2:r:a.isBottom&&(o=-i),o},e.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(r="-0.5em"),r},e.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(r="start"),r},e.dyForAxisLabel=function(t){var e,n=this.owner,r=n.config,i=r.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=r["axis_"+t+"_tick_rotate"]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var u=r.axis_x_height;e=i?a?"1.2em":-25-s:a?"-0.5em":u?u-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=i?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(r["axis_"+t+"_inner"]?0:s+e[4]))*("y"===t?-1:1);return e},e.getMaxTickWidth=function(t,e){var n=this.owner,r=n.config,i=n.state.current,a=n.$el,o=a.svg,s=a.chart,u=i.maxTickWidths[t],c=0;if(e||!r["axis_"+t+"_show"]||0===n.filterTargetsToShow().length)return u.size;if(o){var l=/^y2?$/.test(t),f=n.filterTargetsToShow(n.data.targets),h=n.scale[t].copy().domain(n["get"+(l?"Y":"X")+"Domain"](f,t)),d=h.domain(),g=d[0]===d[1]&&d.every((function(t){return t>0})),p=Xa(u.domain)&&u.domain[0]===u.domain[1]&&u.domain.every((function(t){return t>0}));if(g||p)return u.size;u.domain=d,l||u.ticks.splice(0);var v=this.getAxis(t,h,!1,!1,!0),y=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&y&&v.tickValues(this.generateTickValues(d,y,l?this.isTimeSeriesY():this.isTimeSeries())),l||this.updateXAxisTickValues(f,v);var x=s.append("svg").style("visibility","hidden").style("position","fixed").style("top","0px").style("left","0px");v.create(x),x.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;c=Math.max(c,n),l||(u.ticks[e]=n)})),x.remove()}return c>0&&(u.size=c),u.size},e.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,r=e.config,i=e.state,a=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&r.axis_x_tick_fit&&!r.axis_x_tick_culling&&!r.axis_x_tick_multiline&&a>0&&a<90){var o=i.current.width-e.getCurrentPaddingLeft(),s=this.getXAxisTickMaxOverflow(a,o-t),u=Math.max(0,s)+t;return Math.min(u,o/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,r=n.axis,i=n.config,a=n.state,o=r.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,u=s.length,c=a.axis.x.padding,l=c.left,f=c.right,h=0,d=u-(o&&i.axis_x_tick_fit?.5:0),g=0;g<u;g++){var p=g+1,v=Math.cos(Math.PI*t/180)*s[g],y=p-(o?1:.5)+l;if(!(y<=0)){var x=(e-v)/y,_=v-x/2-((d-p)*x+f*x);h=Math.max(h,_)}}var m=n.filterTargetsToShow(n.data.targets),b=0;if(!o&&i.axis_x_tick_count<=m.length&&m[0].values.length){var w=Zu(n.axis.getAxisType("x"),0,e-h).domain([-1*l,n.getXDomainMax(n.data.targets)+1+f]);b=Math.ceil((w(1)-w(0))/2)}return h+b},e.getXAxisPadding=function(t){var e=this.owner,n=e.config.axis_x_padding;if(Na(n)?n={left:0,right:0}:(n.left=n.left||0,n.right=n.right||0),e.axis.isTimeSeries()){var r=+e.getXDomainMin(e.data.targets),i=+e.getXDomainMax(e.data.targets)-r,a=i+n.left+n.right,o=0,s=0;if(t&&a){var u=i/t/a;o=n.left/a/u,s=n.right/a/u}n={left:o,right:s}}return n},e.updateLabels=function(t){var e=this,n=this.owner.$el.main,r={x:n.select("."+bn.axisX+" ."+bn.axisXLabel),y:n.select("."+bn.axisY+" ."+bn.axisYLabel),y2:n.select("."+bn.axisY2+" ."+bn.axisY2Label)};Object.keys(r).filter((function(t){return!r[t].empty()})).forEach((function(n){var i=r[n];(t?i.transition():i).attr("x",(function(){return e.xForAxisLabel(n)})).attr("dx",(function(){return e.dxForAxisLabel(n)})).attr("dy",(function(){return e.dyForAxisLabel(n)})).text((function(){return e.getLabelText(n)}))}))},e.getPadding=function(t,e,n,r){var i=Oa(t)?t:t[e];return Ea(i)?this.convertPixelsToAxisPadding(i,r):n},e.convertPixelsToAxisPadding=function(t,e){var n=this.owner,r=n.config,i=n.state,a=i.width,o=i.height;return e*(t/(r.axis_rotated?a:o))},e.generateTickValues=function(t,e,n){var r=t;if(e){var i=Ma(e)?e():e;if(1===i)r=[t[0]];else if(2===i)r=[t[0],t[t.length-1]];else if(i>2){var a,o=this.isCategorized(),s=i-2,u=t[0],c=t[t.length-1];r=[u];for(var l=0;l<s;l++)a=+u+(c-u)/(s+1)*(l+1),r.push(n?new Date(a):o?Math.round(a):a);r.push(c)}}return n||(r=r.sort((function(t,e){return t-e}))),r},e.generateTransitions=function(t){var e=this.owner.$el.axis,n=["x","y","y2","subX"].map((function(n){var r=e[n];return r&&t&&(r=r.transition().duration(t)),r}));return{axisX:n[0],axisY:n[1],axisY2:n[2],axisSubX:n[3]}},e.redraw=function(t,e,n){var r=this,i=this.owner,a=i.config,o=i.$el,s=e?"0":"1";["x","y","y2","subX"].forEach((function(e){var i=r[e],u=o.axis[e];i&&u&&(!n&&!a.transition_duration&&(i.config.withoutTransition=!0),u.style("opacity",s),i.create(t["axis"+Qa(e)]))})),this.updateAxes()},e.redrawAxis=function(t,e,n,r,i){var a,o=this,s=this.owner,u=s.config,c=s.scale,l=s.$el,f=!!c.zoom;!f&&this.isCategorized()&&0===t.length&&c.x.domain([0,l.axis.x.selectAll(".tick").size()]),c.x&&t.length?(!f&&s.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),!u.axis_x_tick_values&&this.updateXAxisTickValues(t)):this.x&&(this.x.tickValues([]),this.subX&&this.subX.tickValues([])),u.zoom_rescale&&!r&&(a=c.x.orgDomain()),["y","y2"].forEach((function(e){var n=c[e];if(n){var r=u["axis_"+e+"_tick_values"],i=u["axis_"+e+"_tick_count"];if(n.domain(s.getYDomain(t,e,a)),!r&&i){var l=s.axis[e],f=n.domain();l.tickValues(o.generateTickValues(f,f.every((function(t){return 0===t}))?1:i,o.isTimeSeriesY()))}}})),this.redraw(n,s.hasArcType(),i),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y&&(c.subY&&c.subY.domain(s.getYDomain(t,"y")),c.subY2&&c.subY2.domain(s.getYDomain(t,"y2")))},e.setCulling=function(){var t=this.owner,e=t.config,n=t.state,r=n.clip,i=n.current,a=t.$el;["subX","x","y","y2"].forEach((function(t){var n=a.axis[t],o="subX"===t?"x":t,s=e["axis_"+o+"_tick_culling"];if(n&&s){var u,c=n.selectAll(".tick text"),l=ao(c.data()),f=l.length,h=e["axis_"+o+"_tick_culling_max"];if(f){for(var d=1;d<f;d++)if(f/d<h){u=d;break}c.each((function(t){this.style.display=l.indexOf(t)%u?"none":"block"}))}else c.style("display","block");if("x"===t){var g=i.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+bn.axisX+" .tick text").attr("clip-path",g)}}}))},t}(),of={initEventRect:function(){this.$el.main.select("."+bn.chart).append("g").attr("class",bn.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.isMultipleX();if(r.eventRect)t.updateEventRect(r.eventRect,!0);else{var a=t.$el.main.select("."+bn.eventRects).style("cursor",e.zoom_enabled&&"drag"!==e.zoom_type?e.axis_rotated?"ns-resize":"ew-resize":null).classed(bn.eventRectsMultiple,i).classed(bn.eventRectsSingle,!i).selectAll("."+bn.eventRect).data([0]).enter().append("rect");t.updateEventRect(a),i?t.generateEventRectsForMultipleXs(a):t.generateEventRectsForSingleX(a),a.call(t.getDraggableSelection()),r.eventRect=a,"touch"!==t.state.inputType||r.svg.on("touchstart.eventRect")||t.hasArcType()||t.bindTouchOnEventRect(i)}if(!i){var o=t.getMaxDataCountTarget();t.updateDataIndexByX(o),t.updateXs(o),t.updatePointClass&&t.updatePointClass(!0),n.eventReceiver.data=o}t.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.eventRect,s=a.svg,u=function(){n.unselectRect(),n.callOverOutForTouch()},c=r.interaction_inputType_touch.preventDefault,l=Ia(c)&&c||!1,f=!isNaN(c)&&c||null;o.on("touchstart",(function(){return n.updateEventRect()})).on("touchstart.eventRect touchmove.eventRect",(function(){var a=sn;if(!o.empty()&&o.classed(bn.eventRect)){if(i.dragging||i.flowing||n.hasArcType()||a.touches.length>1)return;(function(t){var n=t.type,i=t.changedTouches[0]["client"+(r.axis_rotated?"Y":"X")];"touchstart"===n?l?t.preventDefault():null!==f&&(e=i):"touchmove"===n&&(l||!0===e||null!==f&&Math.abs(e-i)>=f)&&(e=!0,t.preventDefault())})(a),function(e){if(t)n.selectRectForMultipleXs(e);else{var r=n.getDataIndexFromEvent(sn);n.callOverOutForTouch(r),-1===r?n.unselectRect():n.selectRectForSingle(e,o,r)}}(o.node())}else u()}),!0).on("touchend.eventRect",(function(){!o.empty()&&o.classed(bn.eventRect)&&(n.hasArcType()||!n.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)}),!0),s.on("touchstart",(function(){var t=sn.target;t&&t!==o.node()&&u()}))},updateEventRect:function(t,e){void 0===e&&(e=!1);var n=this.state,r=this.$el,i=n,a=i.eventReceiver,o=i.width,s=i.height,u=i.rendered,c=i.resizing,l=t||r.eventRect;(!u||c||e)&&(l.attr("x",0).attr("y",0).attr("width",o).attr("height",s),!u&&l.attr("class",bn.eventRect)),a&&(a.rect=l.node().getBoundingClientRect())},updateEventRectData:function(){var t,e,n,r,i=this,a=i.config,o=i.scale,s=i.state,u=o.zoom||o.x,c=a.axis_rotated;if(i.isMultipleX())t=0,e=0,n=s.width,r=s.height;else{var l,f;if(i.axis.isCategorized())l=i.getEventRectWidth(),f=function(t){return u(t.x)-l/2};else{var h=function(t){var e=t.index;return{prev:i.getPrevX(e),next:i.getNextX(e)}};l=function(t){var e=h(t);return null===e.prev&&null===e.next?c?s.height:s.width:(null===e.prev&&(e.prev=u.domain()[0]),null===e.next&&(e.next=u.domain()[1]),Math.max(0,(u(e.next)-u(e.prev))/2))},f=function(t){var e=h(t),n=t.x;return null===e.prev&&null===e.next?0:(null===e.prev&&(e.prev=u.domain()[0]),(u(n)+u(e.prev))/2)}}t=c?0:f,e=c?f:0,n=c?s.width:l,r=c?l:s.height}var d=s.eventReceiver,g=function(t,e){return Ma(t)?t(e):t};d.coords.splice(d.data.length),d.data.forEach((function(i,a){d.coords[a]={x:g(t,i),y:g(e,i),w:g(n,i),h:g(r,i)}}))},selectRectForMultipleXs:function(t){var e=this,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!r.dragging&&!e.hasArcType(i)){var a=Nr(t),o=e.findClosestFromTargets(i,a);if(r.mouseover&&(!o||o.id!==r.mouseover.id)&&(n.data_onout.call(e.api,r.mouseover),r.mouseover=void 0),!o)return void e.unselectRect();var s=(e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(i,o.x)).map((function(t){return e.addName(t)}));e.showTooltip(s,t),e.expandCirclesBars(o.index,o.id,!0),e.showGridFocus(s),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select("."+bn.eventRect).style("cursor","pointer"),!r.mouseover&&(n.data_onover.call(e.api,o),r.mouseover=o))}},unselectRect:function(){var t=this,e=t.config,n=t.$el,r=n.bar,i=n.circle,a=n.tooltip;t.$el.svg.select("."+bn.eventRect).style("cursor",null),t.hideGridFocus(),a&&(t.hideTooltip(),t._handleLinkedCharts(!1)),i&&!e.point_focus_only&&t.unexpandCircles(),r&&t.unexpandBars()},generateEventRectsForSingleX:function(t){var e=this,n=e.config,r=e.state,i=r.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",(function(){var t=i.currentIdx,n=i.data[-1===t?e.getDataIndexFromEvent(sn):t];e.clickHandlerForSingleX.bind(this)(n,e)}));if("mouse"===r.inputType){a.on("mouseover",(function(){return e.updateEventRect()})).on("mousemove",(function(){var t=function(){var t=sn?e.getDataIndexFromEvent(sn):i.currentIdx;return t>-1?i.data[t]:null}();if(!(r.dragging||r.flowing||e.hasArcType()||!t||n.tooltip_grouped&&t&&t.index===i.currentIdx)){var o=t.index;e.isStepType(t)&&"step-after"===n.line_step_type&&Nr(this)[0]<e.scale.x(e.getXValue(t.id,o))&&(o-=1),o!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=o),-1===o?e.unselectRect():e.selectRectForSingle(this,a,o),e.setOverOut(-1!==o,o)}})).on("mouseout",(function(){!n||e.hasArcType()||-1===i.currentIdx||(e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)}))}return a},clickHandlerForSingleX:function(t,e){var n=e,r=n.config,i=n.state,a=n.$el.main;if(!t||n.hasArcType()||i.cancelClick)i.cancelClick&&(i.cancelClick=!1);else{var o=t.index;a.selectAll("."+bn.shape+"-"+o).each((function(t){(r.data_selection_grouped||n.isWithinShape(this,t))&&(n.toggleShape&&n.toggleShape(this,t,o),r.data_onclick.bind(n.api)(t,this))}))}},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state.inputType;t.on("click",(function(){e.clickHandlerForMultipleXS.bind(this)(e)})),"mouse"===n&&t.on("mouseover mousemove",(function(){e.selectRectForMultipleXs(this)})).on("mouseout",(function(){!e.config||e.hasArcType()||e.unselectRect()}))},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,r=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(r)){var i=Nr(this),a=e.findClosestFromTargets(r,i);!a||(e.isBarType(a.id)||e.dist(a,i)<n.point_sensitivity)&&e.$el.main.selectAll("."+bn.shapes+e.getTargetSelectorSuffix(a.id)).selectAll("."+bn.shape+"-"+a.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,a))&&(e.toggleShape&&e.toggleShape(this,a,a.index),n.data_onclick.bind(e.api)(a,this))}))}}};function sf(t){return+t}var uf={generateFlow:function(t){var e=this,n=e.data,r=e.state,i=e.$el;return function(){var a=t.flow.length;r.flowing=!0,n.targets.forEach((function(t){t.values.splice(0,a)})),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach((function(t){var e=t.split("."),n=i[e[0]];n&&e.length>1&&(n=n[e[1]]),n&&n.size()&&(o[t]=n)})),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n=this,r=e.flow,i=e.targets,a=r,o=a.duration,s=void 0===o?e.duration:o,u=a.index,c=a.length,l=a.orgDataCount,f=n.getFlowTransform(i,l,u,c),h=Oo(),d=Hi().ease(sf).duration(s);h.add(Object.keys(t).map((function(e){var r=t[e];return r="axis.x"===e?r.transition(d).call((function(t){return n.axis.x.setTransition(d).create(t)})):"region.list"===e?r.filter(n.isRegionOnX).transition(d).attr("transform",f):r.transition(d).attr("transform",f)}))),d.call(h,(function(){n.cleanUpFlow(t,e)}))},cleanUpFlow:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.svg,o=r.axis_rotated,s=e.flow,u=e.shape,c=e.xv,l=u.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=s,v=p.done,y=void 0===v?function(){}:v,x=p.length;x&&(["circle","text","shape","eventRect"].forEach((function(t){for(var e=[],n=0;n<x;n++)e.push("."+bn[t]+"-"+n);a.selectAll("."+bn[t+"s"]).selectAll(e).remove()})),a.select("."+bn.xgrid).remove()),Object.keys(t).forEach((function(e){var a=t[e];if("axis.x"!==e&&a.attr("transform",null),"grid.x"===e)a.attr(i.xgridAttr);else if("gridLines.x"===e)a.attr("x1",o?0:c).attr("x2",o?i.width:c);else if("gridLines.x"===e)a.select("line").attr("x1",o?0:c).attr("x2",o?i.width:c),a.select("text").attr("x",o?i.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(e))a.attr("d",u.type[e]);else if("text"===e)a.attr("x",d).attr("y",g).style("fill-opacity",n.opacityForText.bind(n));else if("circle"!==e)"region.list"===e&&a.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n));else if(n.isCirclePoint())a.attr("cx",f).attr("cy",h);else{a.attr("x",(function(t){return f(t)-r.point_r})).attr("y",(function(t){return h(t)-r.point_r})).attr("cx",f).attr("cy",h)}})),r.interaction_enabled&&n.redrawEventRect(),y.call(n.api),i.flowing=!1},getFlowTransform:function(t,e,n,r){var i,a=this,o=a.data,s=a.scale.x,u=o.targets[0].values,c=a.getValueOnIndex(u,n),l=a.getValueOnIndex(u,n+r),f=s.domain(),h=a.updateXDomain(t,!0,!0);return e?i=1===e||(c&&c.x)===(l&&l.x)||a.axis.isTimeSeries()?s(f[0])-s(h[0]):s(c.x)-s(l.x):1===u.length?a.axis.isTimeSeries()?(c=a.getValueOnIndex(u,0),l=a.getValueOnIndex(u,u.length-1),i=s(c.x)-s(l.x)):i=Pa(h)/2:i=s(f[0])-s(h[0]),"translate("+i+",0) scale("+Pa(f)/Pa(h)+",1)"}},cf={initClip:function(){var t=this,e=t.state.clip;e.id=t.state.datetimeId+"-clip",e.idXAxis=e.id+"-xaxis",e.idYAxis=e.id+"-yaxis",e.idGrid=e.id+"-grid",e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url("+(!!wa.navigator&&wa.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":Ta.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?0:20),u=o?-(1+s):-(s-1),c=-Math.max(15,r.top),l=o?r.left+20:i+10+s,f=(o?r.top+a+10:r.bottom)+20;t.attr("x",u).attr("y",c).attr("width",l).attr("height",f)},setYAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?20:0),u=e.axis_y_inner,c=u?-1:o?-(1+s):-(s-1),l=-(o?20:r.top),f=(o?i+15+s:r.left+20)+(u?20:0),h=(o?r.bottom:r.top+a)+10;t.attr("x",c).attr("y",l).attr("width",f).attr("height",h)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!r.idXAxisTickTexts){var s=r.id+"-xaxisticktexts";t.appendClip(a,s),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==i&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,r=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&r){var i=Math.sin(Math.PI/180*Math.abs(r));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,r=this.$el.svg;r&&r.select("#"+e.idXAxisTickTexts+" rect").attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},lf=function(t){return Ea(t.position)||"end"},ff=function(t){return"start"===t.position?4:"middle"===t.position?0:-4};function hf(t,e,n){return function(r){var i=t?0:e;return"start"===r.position?i=t?-n:0:"middle"===r.position&&(i=(t?-n:e)/2),i}}function df(t,e){"grid"===e&&t.each((function(){var t=mn(this);["x1","x2","y1","y2"].forEach((function(e){return t.attr(e,Math.ceil(+t.attr(e)))}))}))}var gf={hasGrid:function(){var t=this.config;return["x","y"].some((function(e){return t["grid_"+e+"_show"]||t["grid_"+e+"_lines"].length}))},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(r.gridLines.main=r.main.insert("g","."+bn.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",bn.grid+" "+bn.gridLines),r.gridLines.main.append("g").attr("class",bn.xgridLines),r.gridLines.main.append("g").attr("class",bn.ygridLines),r.gridLines.x=nl([]))},updateXGrid:function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=a.main,s=a.grid,u=n.axis_rotated,c=e.generateGridData(n.grid_x_type,r.x),l=e.axis.isCategorized()?e.axis.x.tickOffset():0,f=function(t){return(r.zoom||r.x)(t)+l*(u?-1:1)};i.xgridAttr=u?{x1:0,x2:i.width,y1:f,y2:f}:{x1:f,x2:f,y1:0,y2:i.height},s.x=o.select("."+bn.xgrids).selectAll("."+bn.xgrid).data(c),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",bn.xgrid).merge(s.x),t||s.x.each((function(){var t=mn(this);Object.keys(i.xgridAttr).forEach((function(e){t.attr(e,i.xgridAttr[e]).style("opacity",(function(){return t.attr(u?"y1":"x1")===(u?i.height:0)?"0":"1"}))}))}))},updateYGrid:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.grid,a=r.main,o=e.axis_rotated,s=t.axis.y.tickValues()||t.scale.y.ticks(e.grid_y_ticks),u=function(e){return Math.ceil(t.scale.y(e))};i.y=a.select("."+bn.ygrids).selectAll("."+bn.ygrid).data(s),i.y.exit().remove(),i.y=i.y.enter().append("line").attr("class",bn.ygrid).merge(i.y),i.y.attr("x1",o?u:0).attr("x2",o?u:n.width).attr("y1",o?0:u).attr("y2",o?n.height:u),df(i.y,"grid")},updateGrid:function(t){var e=this,n=e.$el,r=n.grid;n.gridLines.main||e.initGridLines(),r.main.style("visibility",e.hasArcType()?"hidden":"visible"),e.hideGridFocus(),e.updateXGridLines(t),e.updateYGridLines(t)},updateXGridLines:function(t){var e=this,n=e.config,r=e.$el,i=r.gridLines,a=r.main,o=n.axis_rotated;n.grid_x_show&&e.updateXGrid();var s=a.select("."+bn.xgridLines).selectAll("."+bn.xgridLine).data(n.grid_x_lines);s.exit().transition().duration(t).style("opacity","0").remove();var u=s.enter().append("g");u.append("line").style("opacity","0"),u.append("text").attr("transform",o?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),(s=u.merge(s)).attr("class",(function(t){return(bn.xgridLine+" "+(t.class||"")).trim()})).select("text").attr("text-anchor",lf).attr("dx",ff).transition().duration(t).text((function(t){return t.text})).transition().style("opacity","1"),i.x=s},updateYGridLines:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=e.$el,s=n.axis_rotated;n.grid_y_show&&e.updateYGrid();var u=o.main.select("."+bn.ygridLines).selectAll("."+bn.ygridLine).data(n.grid_y_lines);u.exit().transition().duration(t).style("opacity","0").remove();var c=u.enter().append("g");c.append("line").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),u=c.merge(u);var l=e.yv.bind(e);u.attr("class",(function(t){return(bn.ygridLine+" "+(t.class||"")).trim()})).select("line").transition().duration(t).attr("x1",s?l:0).attr("x2",s?l:i).attr("y1",s?0:l).attr("y2",s?a:l).transition().style("opacity","1"),u.select("text").attr("text-anchor",lf).attr("dx",ff).transition().duration(t).attr("dy",-5).attr("x",hf(s,i,a)).attr("y",l).text((function(t){return t.text})).transition().style("opacity","1"),o.gridLines.y=u},redrawGrid:function(t){var e=this,n=e.config.axis_rotated,r=e.state,i=r.width,a=r.height,o=e.$el.gridLines,s=e.xv.bind(e),u=o.x.select("line"),c=o.x.select("text");return u=(t?u.transition():u).attr("x1",n?0:s).attr("x2",n?i:s).attr("y1",n?s:0).attr("y2",n?s:a),c=(t?c.transition():c).attr("x",hf(!n,i,a)).attr("y",s).text((function(t){return t.text})),[u.style("opacity","1"),c.style("opacity","1")]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el,i=e.grid_front,a="."+bn[i&&r.gridLines.main?"gridLines":"chart"]+(i?" + *":""),o=r.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",bn.grid);r.grid.main=o,e.grid_x_show&&o.append("g").attr("class",bn.xgrids),e.grid_y_show&&o.append("g").attr("class",bn.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",bn.xgridFocus).append("line").attr("class",bn.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",bn.ygridFocus).append("line").attr("class",bn.ygridFocus))},showGridFocus:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=n.axis_rotated,s=e.$el.main.selectAll("line."+bn.xgridFocus+", line."+bn.ygridFocus),u=(t||[s.datum()]).filter((function(t){return t&&Ea(e.getBaseValue(t))}));if(n.tooltip_show&&0!==u.length&&!e.hasType("bubble")&&!e.hasArcType()){var c=n.grid_focus_edge&&!n.tooltip_grouped,l=e.xx.bind(e);s.style("visibility","visible").data(u.concat(u)).each((function(t){var n,r=mn(this),s={x:l(t),y:e.getYScaleById(t.id)(t.value)};if(r.classed(bn.xgridFocus))n=o?[null,s.x,c?s.y:i,s.x]:[s.x,c?s.y:null,s.x,a];else{var u="y2"===e.axis.getId(t.id);n=o?[s.y,c&&!u?s.x:null,s.y,c&&u?s.x:a]:[c&&u?s.x:null,s.y,c&&!u?s.x:i,s.y]}["x1","y1","x2","y2"].forEach((function(t,e){return r.attr(t,n[e])}))})),df(s,"grid"),e.showCircleFocus&&e.showCircleFocus(t)}},hideGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.resizing,i=t.$el.main;"mouse"!==n&&r||(i.selectAll("line."+bn.xgridFocus+", line."+bn.ygridFocus).style("visibility","hidden"),t.hideCircleFocus&&t.hideCircleFocus())},updateGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.width,i=e.height,a=e.resizing,o=t.$el.grid.main.select("line."+bn.xgridFocus);if("touch"===n)o.empty()?a&&t.showCircleFocus():t.showGridFocus();else{var s=t.config.axis_rotated;o.attr("x1",s?0:-10).attr("x2",s?r:-10).attr("y1",s?-10:0).attr("y2",s?-10:i)}return!0},generateGridData:function(t,e){var n=this.$el.main.select("."+bn.axisX).selectAll(".tick").size(),r=[];if("year"===t)for(var i=this.getXDomain(),a=i[0].getFullYear(),o=i[1].getFullYear(),s=a;s<=o;s++)r.push(new Date(s+"-01-01 00:00:00"));else(r=e.ticks(10)).length>n&&(r=r.filter((function(t){return(t+"").indexOf(".")<0})));return r},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Xa(t)?t.concat():[t]).forEach((function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)})),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,r=n.config,i=n.getGridFilterToRemove(t),a=e?bn.xgridLines:bn.ygridLines,o=e?bn.xgridLine:bn.ygridLine;n.$el.main.select("."+a).selectAll("."+o).filter(i).transition().duration(r.transition_duration).style("opacity","0").remove();var s="grid_"+(e?"x":"y")+"_lines";r[s]=r[s].filter((function(t){return!i(t)}))}},pf={initRegion:function(){var t=this.$el;t.region.main=t.main.append("g").attr("clip-path",this.state.clip.path).attr("class",bn.regions)},updateRegion:function(t){var e=this,n=e.config,r=e.$el;r.region.main||e.initRegion(),r.region.main.style("visibility",e.hasArcType()?"hidden":"visible");var i=r.main.select("."+bn.regions).selectAll("."+bn.region).data(n.regions);i.exit().transition().duration(t).style("opacity","0").remove(),(i=i.enter().append("g").merge(i).attr("class",e.classRegion.bind(e))).append("rect").style("fill-opacity","0"),r.region.list=i},redrawRegion:function(t){var e=this,n=e.$el.region.list.select("rect");return n=(t?n.transition():n).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),[(t?n.transition():n).style("fill-opacity",(function(t){return Ea(t.opacity)?t.opacity:"0.1"})).on("end",(function(){mn(this.parentNode).selectAll("rect:not([x])").remove()}))]},getRegionXY:function(t,e){var n=this,r=n.config,i=n.scale,a=r.axis_rotated,o="x"===t,s="start",u=0;return"y"===e.axis||"y2"===e.axis?(!o&&(s="end"),(o?a:!a)&&s in e&&(u=(0,i[e.axis])(e[s]))):(o?!a:a)&&s in e&&(u=(i.zoom||i.x)(n.axis.isTimeSeries()?lo.call(n,e[s]):e[s])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=r.axis_rotated,s="width"===t,u=n[s?"regionX":"regionY"](e),c="end",l=a[t];return"y"===e.axis||"y2"===e.axis?(!s&&(c="start"),(s?o:!o)&&c in e&&(l=(0,i[e.axis])(e[c]))):(s?!o:o)&&c in e&&(l=(i.zoom||i.x)(n.axis.isTimeSeries()?lo.call(n,e[c]):e[c])),l<u?0:l-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},vf={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n=this;if(n.axis){var r=n.axis&&n.axis.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(r.isInner?20:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,r=e.state,i=r.current,a=r.rotatedPadding,o=r.isLegendRight,s=r.isLegendInset,u=n.axis_rotated,c=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var l=e.getAxisTickRotate(t);return("x"===t&&!u||/y2?/.test(t)&&u)&&l&&(c=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-l)/180),!n.axis_x_tick_multiline&&i.height&&c>i.height/2&&(c=i.height/2)),c+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,r=e.config,i=e.state,a=e.$el,o=r["axis_"+t+"_tick_rotate"];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(r.axis_x_tick_fit&&s){var u=r.axis_x_tick_count,c=i.current.maxTickWidths.x.ticks.length,l=0;u?l=u>c?c:u:c&&(l=c),l!==i.axis.x.tickCount&&(i.axis.x.padding=e.axis.getXAxisPadding(l)),i.axis.x.tickCount=l}a.svg&&r.axis_x_tick_fit&&!r.axis_x_tick_multiline&&!r.axis_x_tick_culling&&r.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?r.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,r=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),i=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(i?r/i:0)}},yf={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_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:[]},xf={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_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]};function _f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mf(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?_f(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_f(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var bf=mf(mf(mf({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),yf),xf),wf=[kl,{category:function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},Rl,Il,Nl,Ll,Pl,Fl],Tf=[rf,cf,of,uf,gf,pf,vf],Af=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},bf,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}];function Sf(t){return function(){return t}}function Ef(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Mf(t){return t}var kf=Math.PI,Of=2*kf,Rf=1e-6,Cf=Of-Rf;function If(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lf(){return new If}If.prototype=Lf.prototype={constructor:If,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,l=o-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>Rf)if(Math.abs(l*s-u*c)>Rf&&i){var h=n-a,d=r-o,g=s*s+u*u,p=Math.sqrt(g),v=Math.sqrt(f),y=i*Math.tan((kf-Math.acos((g+f-(h*h+d*d))/(2*p*v)))/2),x=y/v,_=y/p;Math.abs(x-1)>Rf&&(this._+="L"+(t+x*c)+","+(e+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>Rf||Math.abs(this._y1-c)>Rf)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%Of+Of),f>Cf?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>Rf&&(this._+="A"+n+","+n+",0,"+ +(f>=kf)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Df=Lf;function Pf(t){return t.innerRadius}function Ff(t){return t.outerRadius}function Nf(t){return t.startAngle}function zf(t){return t.endAngle}function Xf(t){return t&&t.padAngle}function Bf(t,e,n,r,i,a,o){var s=t-n,u=e-r,c=(o?a:-a)/bc(s*s+u*u),l=c*u,f=-c*s,h=t+l,d=e+f,g=n+l,p=r+f,v=(h+g)/2,y=(d+p)/2,x=g-h,_=p-d,m=x*x+_*_,b=i-a,w=h*p-g*d,T=(_<0?-1:1)*bc(xc(0,b*b*m-w*w)),A=(w*_-x*T)/m,S=(-w*x-_*T)/m,E=(w*_+x*T)/m,M=(-w*x+_*T)/m,k=A-v,O=S-y,R=E-v,C=M-y;return k*k+O*O>R*R+C*C&&(A=E,S=M),{cx:A,cy:S,x01:-l,y01:-f,x11:A*(i/b-1),y11:S*(i/b-1)}}function jf(){function t(){var t,c,l=+e.apply(this,arguments),f=+n.apply(this,arguments),h=a.apply(this,arguments)-Ac,d=o.apply(this,arguments)-Ac,g=pc(d-h),p=d>h;if(u||(u=t=Df()),f<l&&(c=f,f=l,l=c),f>wc)if(g>Sc-wc)u.moveTo(f*yc(h),f*mc(h)),u.arc(0,0,f,h,d,!p),l>wc&&(u.moveTo(l*yc(d),l*mc(d)),u.arc(0,0,l,d,h,p));else{var v,y,x=h,_=d,m=h,b=d,w=g,T=g,A=s.apply(this,arguments)/2,S=A>wc&&(i?+i.apply(this,arguments):bc(l*l+f*f)),E=_c(pc(f-l)/2,+r.apply(this,arguments)),M=E,k=E;if(S>wc){var O=Ec(S/l*mc(A)),R=Ec(S/f*mc(A));(w-=2*O)>wc?(m+=O*=p?1:-1,b-=O):(w=0,m=b=(h+d)/2),(T-=2*R)>wc?(x+=R*=p?1:-1,_-=R):(T=0,x=_=(h+d)/2)}var C=f*yc(x),I=f*mc(x),L=l*yc(b),D=l*mc(b);if(E>wc){var P,F=f*yc(_),N=f*mc(_),z=l*yc(m),X=l*mc(m);if(g<Tc&&(P=function(t,e,n,r,i,a,o,s){var u=n-t,c=r-e,l=o-i,f=s-a,h=f*u-l*c;if(!(h*h<wc))return[t+(h=(l*(e-a)-f*(t-i))/h)*u,e+h*c]}(C,I,z,X,F,N,L,D))){var B=C-P[0],j=I-P[1],U=F-P[0],$=N-P[1],Y=1/mc(function(t){return t>1?0:t<-1?Tc:Math.acos(t)}((B*U+j*$)/(bc(B*B+j*j)*bc(U*U+$*$)))/2),V=bc(P[0]*P[0]+P[1]*P[1]);M=_c(E,(l-V)/(Y-1)),k=_c(E,(f-V)/(Y+1))}}T>wc?k>wc?(v=Bf(z,X,C,I,f,k,p),y=Bf(F,N,L,D,f,k,p),u.moveTo(v.cx+v.x01,v.cy+v.y01),k<E?u.arc(v.cx,v.cy,k,vc(v.y01,v.x01),vc(y.y01,y.x01),!p):(u.arc(v.cx,v.cy,k,vc(v.y01,v.x01),vc(v.y11,v.x11),!p),u.arc(0,0,f,vc(v.cy+v.y11,v.cx+v.x11),vc(y.cy+y.y11,y.cx+y.x11),!p),u.arc(y.cx,y.cy,k,vc(y.y11,y.x11),vc(y.y01,y.x01),!p))):(u.moveTo(C,I),u.arc(0,0,f,x,_,!p)):u.moveTo(C,I),l>wc&&w>wc?M>wc?(v=Bf(L,D,F,N,l,-M,p),y=Bf(C,I,z,X,l,-M,p),u.lineTo(v.cx+v.x01,v.cy+v.y01),M<E?u.arc(v.cx,v.cy,M,vc(v.y01,v.x01),vc(y.y01,y.x01),!p):(u.arc(v.cx,v.cy,M,vc(v.y01,v.x01),vc(v.y11,v.x11),!p),u.arc(0,0,l,vc(v.cy+v.y11,v.cx+v.x11),vc(y.cy+y.y11,y.cx+y.x11),p),u.arc(y.cx,y.cy,M,vc(y.y11,y.x11),vc(y.y01,y.x01),!p))):u.arc(0,0,l,b,m,p):u.lineTo(L,D)}else u.moveTo(0,0);return u.closePath(),t?(u=null,t+""||null):void 0}var e=Pf,n=Ff,r=Sf(0),i=null,a=Nf,o=zf,s=Xf,u=null;return t.centroid=function(){var t=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Tc/2;return[yc(r)*t,mc(r)*t]},t.innerRadius=function(n){return arguments.length?(e="function"==typeof n?n:Sf(+n),t):e},t.outerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),t):n},t.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:Sf(+e),t):r},t.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:Sf(+e),t):i},t.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:Sf(+e),t):a},t.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Sf(+e),t):o},t.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Sf(+e),t):s},t.context=function(e){return arguments.length?(u=null==e?null:e,t):u},t}var Uf={initPie:function(){var t=this,e=t.config,n=e.data_type,r=e.pie_padding,i=e[n+"_startingAngle"]||0,a=(t.hasType("pie")&&r?.01*r:e[n+"_padAngle"])||0;t.pie=function(){function t(t){var s,u,c,l,f,h=t.length,d=0,g=Array(h),p=Array(h),v=+i.apply(this,arguments),y=Math.min(Sc,Math.max(-Sc,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=x*(y<0?-1:1);for(s=0;s<h;++s)(f=p[g[s]=s]=+e(t[s],s,t))>0&&(d+=f);for(null==n?null!=r&&g.sort((function(e,n){return r(t[e],t[n])})):g.sort((function(t,e){return n(p[t],p[e])})),s=0,c=d?(y-h*_)/d:0;s<h;++s,v=l)u=g[s],l=v+((f=p[u])>0?f*c:0)+_,p[u]={data:t[u],index:s,value:f,startAngle:v,endAngle:l,padAngle:x};return p}var e=Mf,n=Ef,r=null,i=Sf(0),a=Sf(Sc),o=Sf(0);return t.value=function(n){return arguments.length?(e="function"==typeof n?n:Sf(+n),t):e},t.sortValues=function(e){return arguments.length?(n=e,r=null,t):n},t.sort=function(e){return arguments.length?(r=e,n=null,t):r},t.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Sf(+e),t):i},t.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:Sf(+e),t):a},t.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Sf(+e),t):o},t}().startAngle(i).endAngle(i+2*Math.PI).padAngle(a).value((function(t){return t.values.reduce((function(t,e){return t+e.value}),0)})).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,r=e.pie_padding,i=e.gauge_width||e.donut_width,a=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=i?(n.radius-i)/n.radius:.6,n.gaugeArcWidth=i||(a<=n.radius-n.innerRadius?n.radius-n.innerRadius:a<=n.radius?a:n.radius);var o=e.pie_innerRadius||(r?r*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:o},getRadius:function(t){var e=t&&t.data,n=this.state,r=n.innerRadius,i=n.outerRadius;return!Oa(r)&&e&&(r=r[e.id]||0),Ba(i)&&e&&e.id in i?i=i[e.id]:!Oa(i)&&(i=this.state.radius),{innerRadius:r,outerRadius:i}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=3.6*this.config.gauge_arcLength,e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getStartAngle:function(){var t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,r=Math.PI/2,i=t.gauge_startingAngle;return!e&&i<=n?i=n:!e&&i>=r?i=r:(i>Math.PI||i<-1*Math.PI)&&(i=Math.PI),i},updateAngle:function(t){var e=this,n=e.config,r=e.state,i=e.pie,a=t,o=!1;if(!n)return null;var s=e.getStartAngle(),u=n.gauge_fullCircle?e.getArcLength():-2*s;if(a.data&&e.isGaugeType(a.data)&&!e.hasMultiArcGauge()){var c=u*(e.getTotalDataSum(r.rendered)/(n.gauge_max-n.gauge_min));i=i.startAngle(s).endAngle(c+s)}if(i(e.filterTargetsToShow()).forEach((function(t,e){o||t.data.id!==a.data.id||(o=!0,(a=t).index=e)})),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&e.hasMultiArcGauge()){var l=n.gauge_min,f=n.gauge_max,h=a.value<l?0:a.value<f?a.value-l:f-l;a.startAngle=s,a.endAngle=s+u/(f-l)*h}return o?a:null},getSvgArc:function(){var t=this,e=t.state,n=e.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,r=t.hasMultiArcGauge(),i=jf().innerRadius((function(i){var a=t.getRadius(i).innerRadius;return r?e.radius-n*(i.index+1):Oa(a)?a:0})).outerRadius((function(i){var a=t.getRadius(i).outerRadius;return r?e.radius-n*i.index:a})),a=function(e,n){var r="M 0 0";if(e.value||e.data){var a=!n&&t.updateAngle(e);n?r=i(e):a&&(r=i(a))}return r};return a.centroid=i.centroid,a},getSvgArcExpanded:function(t){var e=this,n=e.state,r=t||1,i=n.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,a=e.hasMultiArcGauge(),o=Math.min(n.radiusExpanded*r-n.radius,.8*i-100*(1-r)),s=jf().innerRadius((function(t){return a?n.radius-i*(t.index+1):e.getRadius(t).innerRadius})).outerRadius((function(t){var s;if(a)s=n.radius-i*t.index+o;else{var u=e.getRadius(t).outerRadius,c=n.radiusExpanded;n.radius!==u&&(c-=Math.abs(n.radius-u)),s=c*r}return s}));return function(t){var n=e.updateAngle(t);return n?s(n):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this,n=e.config,r=e.state.radiusExpanded,i=e.updateAngle(t),a="";if(i)if(e.hasMultiArcGauge()){var o=Math.sin(i.endAngle-Math.PI/2);a="translate("+(c=Math.cos(i.endAngle-Math.PI/2)*(r+25))+","+(l=o*(r+15-Math.abs(10*o))+3)+")"}else if(!e.hasType("gauge")||e.data.targets.length>1){var s=e.getRadius(t).outerRadius,u=this.svgArc.centroid(i),c=isNaN(u[0])?0:u[0],l=isNaN(u[1])?0:u[1],f=Math.sqrt(c*c+l*l),h=e.hasType("donut")&&n.donut_label_ratio||e.hasType("pie")&&n.pie_label_ratio;a="translate("+c*(h=h?Ma(h)?h.bind(e.api)(t,s,f):h:s&&(f?(36/s>.375?1.175-36/s:.8)*s/f:0))+","+l*h+")"}return a},convertToArcData:function(t){return this.addName({id:t.data?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).each((function(t){var r=mn(this),i=e.updateAngle(t),a=e.getRatio("arc",i);if(e.meetsLabelThreshold(a,(e.hasType("donut")?"donut":e.hasType("gauge")&&"gauge")||e.hasType("pie")&&"pie")){var o=(i||t).value;Va(r,(e.getArcLabelFormat()||e.defaultArcValueFormat)(o,a,t.data.id).toString(),[-1,1],n)}else r.text("")}))},expandArc:function(t){var e=this,n=e.state.transiting,r=e.$el;if(n)var i=setInterval((function(){n||(clearInterval(i),r.legend.selectAll("."+bn.legendItemFocused).size()>0&&e.expandArc(t))}),10);else{var a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a,"."+bn.chartArc)).each((function(t){if(e.shouldExpand(t.data.id)){var n=e.getExpandConfig(t.data.id,"duration"),r=e.getSvgArcExpanded(e.getExpandConfig(t.data.id,"rate"));mn(this).selectAll("path").transition().duration(n).attr("d",e.svgArcExpanded).transition().duration(2*n).attr("d",r)}}))}},unexpandArc:function(t){var e=this,n=e.state.transiting,r=e.$el.svg;if(!n){var i=e.mapToTargetIds(t);r.selectAll(e.selectorTargets(i,"."+bn.chartArc)).selectAll("path").transition().duration((function(t){return e.getExpandConfig(t.data.id,"duration")})).attr("d",e.svgArc),r.selectAll(""+bn.arc).style("opacity","1")}},getExpandConfig:function(t,e){var n,r=this,i=r.config;return r.isDonutType(t)?n="donut":r.isGaugeType(t)?n="gauge":r.isPieType(t)&&(n="pie"),n?i[n+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=t.config;return["pie","donut","gauge"].some((function(n){return t.hasType(n)&&e[n+"_label_show"]}))},getArcLabelFormat:function(){var t=this,e=t.config,n=e.pie_label_format;return t.hasType("gauge")?n=e.gauge_label_format:t.hasType("donut")&&(n=e.donut_label_format),Ma(n)?n.bind(t.api):n},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},updateTargetsForArc:function(t){var e=this,n=e.$el,r=e.hasType("gauge"),i=e.getChartClass("Arc"),a=e.getClass("arcs",!0),o=e.classFocus.bind(e),s=n.main.select("."+bn.chartArcs),u=s.selectAll("."+bn.chartArc).data(e.pie(t)).attr("class",(function(t){return i(t)+o(t.data)})),c=u.enter().append("g").attr("class",i);c.append("g").attr("class",a).merge(u),c.append("text").attr("dy",r&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor","middle").style("pointer-events","none"),n.text=s.selectAll("."+bn.target+" text")},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select("."+bn.chart).append("g").attr("class",bn.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var r=t.$el.arcs.append("text").attr("class",bn[n?"chartArcsGaugeTitle":"chartArcsTitle"]).style("text-anchor","middle");n&&r.attr("dy","-0.3em").style("font-size","27px"),Va(r,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.$el.main,s=i.interaction_enabled,u=s&&i.data_selection_isselectable,c=o.selectAll("."+bn.arcs).selectAll("."+bn.arc).data(r.arcData.bind(r));c.exit().transition().duration(e).style("opacity","0").remove(),c=c.enter().append("path").attr("class",r.getClass("arc",!0)).style("fill",(function(t){return r.color(t.data)})).style("cursor",(function(t){return u&&u.bind(r.api)(t)?"pointer":null})).style("opacity","0").each((function(t){r.isGaugeType(t.data)&&(t.startAngle=i.gauge_startingAngle,t.endAngle=i.gauge_startingAngle),this._current=t})).merge(c),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),c.attr("transform",(function(t){return!r.isGaugeType(t.data)&&n?"scale(0)":""})).style("opacity",(function(t){return t===this._current?"0":"1"})).each((function(){a.transiting=!0})).transition().duration(t).attrTween("d",(function(t){var e=r.updateAngle(t);if(!e)return function(){return"M 0 0"};isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var n=Lr(this._current,e);return this._current=n(0),function(e){var i=n(e);return i.data=t.data,r.getArc(i,!0)}})).attr("transform",n?"scale(1)":"").style("fill",(function(t){var e;return r.levelColor?(e=r.levelColor(t.data.values[0].value),i.data_colors[t.data.id]=e):e=r.color(t.data),e})).style("opacity","1").call($a,(function(){if(r.levelColor){var t=mn(this),e=t.datum();r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,Ua(i.onrendered,r.api)})),s&&r.bindArcEvent(c),r.hasType("gauge")&&r.redrawBackgroundArcs(),r.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge(),i=e.gauge_fullCircle,a=0===t.filterTargetsToShow(t.data.targets).length&&!!e.data_empty_label_text,o=t.getStartAngle(),s=i?o+t.getArcLength():-1*o,u=t.$el.arcs.select((r?"g":"")+"."+bn.chartArcsBackground);if(r){var c=0;(u=u.selectAll("path."+bn.chartArcsBackground).data(t.data.targets)).enter().append("path").attr("class",(function(t,e){return bn.chartArcsBackground+" "+bn.chartArcsBackground+"-"+e})).merge(u).style("fill",e.gauge_background||null).attr("d",(function(r){var i=r.id;if(a||n.hiddenTargetIds.indexOf(i)>=0)return"M 0 0";var u={data:[{value:e.gauge_max}],startAngle:o,endAngle:s,index:c++};return t.getArc(u,!0,!0)})),u.exit().remove()}else u.attr("d",a?"M 0 0":function(){var n={data:[{value:e.gauge_max}],startAngle:o,endAngle:s};return t.getArc(n,!0,!0)})},bindArcEvent:function(t){function e(t,e,n){r.expandArc(n),r.api.focus(n),r.toggleFocusLegend(n,!0),r.showTooltip([e],t)}function n(t){var e=t&&t.id||void 0;r.unexpandArc(e),r.api.revert(),r.revertLegend(),r.hideTooltip()}var r=this,i=r.config,a=r.state,o="touch"===a.inputType,s="mouse"===a.inputType;if(t.on("click",(function(t,e){var n,a=r.updateAngle(t);a&&(n=r.convertToArcData(a),r.toggleShape&&r.toggleShape(this,n,e),i.data_onclick.bind(r.api)(n,this))})),s&&t.on("mouseover",(function(t){if(!a.transiting){var n=r.updateAngle(t),i=n?r.convertToArcData(n):null;e(this,i,i&&i.id||void 0),r.setOverOut(!0,i)}})).on("mouseout",(function(t){if(!a.transiting){var e=r.updateAngle(t),i=e?r.convertToArcData(e):null;n(),r.setOverOut(!1,i)}})).on("mousemove",(function(t){var e=r.updateAngle(t),n=e?r.convertToArcData(e):null;r.showTooltip([n],this)})),o&&r.hasArcType()&&!r.radars){var u=function(){if(!a.transiting){var t=function(){var t=sn.changedTouches[0];return mn(Ta.elementFromPoint(t.clientX,t.clientY))}(),i=t.datum(),o=i&&i.data&&i.data.id?r.updateAngle(i):null,s=o?r.convertToArcData(o):null,u=s&&s.id||void 0;r.callOverOutForTouch(s),Ra(u)?n():e(this,s,u)}};r.$el.svg.on("touchstart",u).on("touchmove",u)}},redrawArcText:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.main,s=a.arcs,u=n.hasType("gauge"),c=n.hasMultiArcGauge();if(u&&1===n.data.targets.length&&r.gauge_title||(e=o.selectAll("."+bn.chartArc).select("text").style("opacity","0").attr("class",(function(t){return n.isGaugeType(t.data)?bn.gaugeValue:null})).call(n.textForArcLabel.bind(n)).attr("transform",n.transformForArcLabel.bind(n)).style("font-size",(function(t){return n.isGaugeType(t.data)&&1===n.data.targets.length&&!c?Math.round(i.radius/5)+"px":null})).transition().duration(t).style("opacity",(function(t){return n.isTargetToShow(t.data.id)&&n.isArcType(t.data)?"1":"0"})),c&&e.attr("dy","-.1em")),o.select("."+bn.chartArcsTitle).style("opacity",n.hasType("donut")||u?"1":"0"),u){var l=r.gauge_fullCircle;l&&e&&e.attr("dy",""+(c?0:Math.round(i.radius/14))),r.gauge_label_show&&(s.select("."+bn.chartArcsGaugeUnit).attr("dy",(l?1.5:.75)+"em").text(r.gauge_units),s.select("."+bn.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(l?1:2))+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_min,!1)),!l&&s.select("."+bn.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/2+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_max,!0)))}}};function $f(t){return t[0]}function Yf(t){return t[1]}function Vf(){function t(t){var s,u,c,l=t.length,f=!1;for(null==i&&(o=a(c=Df())),s=0;s<=l;++s)!(s<l&&r(u=t[s],s,t))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,t),+n(u,s,t));if(c)return o=null,c+""||null}var e=$f,n=Yf,r=Sf(!0),i=null,a=qc,o=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Sf(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),t):n},t.defined=function(e){return arguments.length?(r="function"==typeof e?e:Sf(!!e),t):r},t.curve=function(e){return arguments.length?(a=e,null!=i&&(o=a(i)),t):a},t.context=function(e){return arguments.length?(null==e?i=o=null:o=a(i=e),t):i},t}var Gf={initArea:function(t){var e=this.config;t.insert("g","."+bn[e.area_front?"circles":"lines"]).attr("class",this.getClass("areas",!0))},updateAreaGradient:function(){var t=this,e=t.config,n=t.state.datetimeId,r=t.$el.defs;t.data.targets.forEach((function(i){var a=n+"-areaGradient"+t.getTargetSelectorSuffix(i.id);if(t.isAreaType(i)&&r.select("#"+a).empty()){var o=t.color(i),s=e.area_linearGradient,u=s.x,c=void 0===u?[0,0]:u,l=s.y,f=void 0===l?[0,1]:l,h=s.stops,d=void 0===h?[[0,o,1],[1,o,0]]:h,g=r.append("linearGradient").attr("id",""+a).attr("x1",c[0]).attr("x2",c[1]).attr("y1",f[0]).attr("y2",f[1]);d.forEach((function(e){var n=Ma(e[1])?e[1].bind(t.api)(i.id):e[1];g.append("stop").attr("offset",e[0]).attr("stop-color",n||o).attr("stop-opacity",e[2])}))}}))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?"url(#"+e.state.datetimeId+"-areaGradient"+e.getTargetSelectorSuffix(t.id)+")":e.color(t)},updateArea:function(t){var e=this,n=e.config,r=e.state,i=e.$el;n.area_linearGradient&&e.updateAreaGradient(),i.area=i.main.selectAll("."+bn.areas).selectAll("."+bn.area).data(e.lineData.bind(e)),i.area.exit().transition().duration(t).style("opacity","0").remove(),i.area=i.area.enter().append("path").attr("class",e.getClass("area",!0)).style("fill",e.updateAreaColor.bind(e)).style("opacity",(function(){return r.orgAreaOpacity=mn(this).style("opacity"),"0"})).merge(i.area),i.area.style("opacity",r.orgAreaOpacity)},redrawArea:function(t,e){var n=this,r=n.state.orgAreaOpacity;return[(e?n.$el.area.transition(qa()):n.$el.area).attr("d",t).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(t){return(n.isAreaRangeType(t)?r/1.75:r)+""}))]},generateDrawArea:function(t,e){var n=this,r=n.config,i=r.line_connectNull,a=r.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),u=function(t){return(e?n.subxx:n.xx).call(n,t)},c=function(t,r){return n.isGrouped(t.id)?o(t,r)[0][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getAreaRangeData(t,"high"):n.getShapeYMin(t.id))},l=function(t,r){return n.isGrouped(t.id)?o(t,r)[1][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getAreaRangeData(t,"low"):t.value)};return function(t){var e,o=i?n.filterRemoveNull(t.values):t.values,s=0,f=0;if(n.isAreaType(t)){var h=function(){function t(t){var e,l,f,h,d,g=t.length,p=!1,v=Array(g),y=Array(g);for(null==s&&(c=u(d=Df())),e=0;e<=g;++e){if(!(e<g&&o(h=t[e],e,t))===p)if(p=!p)l=e,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=e-1;f>=l;--f)c.point(v[f],y[f]);c.lineEnd(),c.areaEnd()}p&&(v[e]=+n(h,e,t),y[e]=+i(h,e,t),c.point(r?+r(h,e,t):v[e],a?+a(h,e,t):y[e]))}if(d)return c=null,d+""||null}function e(){return Vf().defined(o).curve(u).context(s)}var n=$f,r=null,i=Sf(0),a=Yf,o=Sf(!0),s=null,u=qc,c=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),r=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),t):n},t.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Sf(+e),t):r},t.y=function(e){return arguments.length?(i="function"==typeof e?e:Sf(+e),a=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:Sf(+e),t):i},t.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:Sf(+e),t):a},t.lineX0=t.lineY0=function(){return e().x(n).y(i)},t.lineY1=function(){return e().x(n).y(a)},t.lineX1=function(){return e().x(r).y(i)},t.defined=function(e){return arguments.length?(o="function"==typeof e?e:Sf(!!e),t):o},t.curve=function(e){return arguments.length?(u=e,null!=s&&(c=u(s)),t):u},t.context=function(e){return arguments.length?(null==e?s=c=null:c=u(s=e),t):s},t}();h=a?h.y(u).x0(c).x1(l):h.x(u).y0(r.area_above?0:c).y1(l),i||(h=h.defined((function(t){return null!==n.getBaseValue(t)}))),n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=h.curve(n.getCurve(t))(o)}else o[0]&&(s=n.scale.x(o[0].x),f=n.getYScaleById(t.id)(o[0].value)),e=a?"M "+f+" "+s:"M "+s+" "+f;return e||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);return r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c),[[f,l],[f,h-(c-l)],[f,h-(c-l)],[f,l]]}}},Hf={initBar:function(){var t=this.$el;t.bar=t.main.select("."+bn.chart).insert("g",":first-child").attr("class",bn.chartBars)},updateTargetsForBar:function(t){var e=this,n=e.config,r=e.$el,i=e.getChartClass("Bar"),a=e.getClass("bars",!0),o=e.classFocus.bind(e),s=n.interaction_enabled&&n.data_selection_isselectable;r.bar||e.initBar(),e.$el.main.select("."+bn.chartBars).selectAll("."+bn.chartBar).data(t).attr("class",(function(t){return i(t)+o(t)})).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events","none").append("g").attr("class",a).style("cursor",(function(t){return s&&s.bind(e.api)(t)?"pointer":null}))},updateBar:function(t){var e=this,n=e.$el,r=e.barData.bind(e),i=e.getClass("bar",!0),a=e.initialOpacity.bind(e);n.bar=n.main.selectAll("."+bn.bars).selectAll("."+bn.bar).data(r),n.bar.exit().transition().duration(t).style("opacity","0").remove(),n.bar=n.bar.enter().append("path").attr("class",i).style("fill",e.color).merge(n.bar).style("opacity",a)},redrawBar:function(t,e){var n=this.$el.bar;return[(e?n.transition(qa()):n).attr("d",t).style("fill",this.color).style("opacity","1")]},getBarW:function(t,e){var n=this,r=n.config,i=n.org,a=n.scale,o=n.getMaxDataCount(),s=r.data_groups.length,u=a.zoom&&!n.axis.isCategorized()?i.xDomain.map((function(t){return a.zoom(t)})).reduce((function(t,e){return Math.abs(t)+e}))/o:t.tickInterval(o),c=function(t){var n=t?r.bar_width[t]:r.bar_width,i=t?n.ratio:r.bar_width_ratio,a=t?n.max:r.bar_width_max,o=Oa(n)?n:e?u*i/e:0;return a&&o>a?a:o},l=c();return!s&&Fa(r.bar_width)&&(l={_$width:l,_$total:[]},n.filterTargetsToShow(n.data.targets).forEach((function(t){r.bar_width[t.id]&&(l[t.id]=c(t.id),l._$total.push(l[t.id]||l._$width))}))),l},getBars:function(t,e){var n=this.$el.main,r=Ea(t)?"-"+t:"";return(e?n.selectAll("."+bn.bars+this.getTargetSelectorSuffix(e)):n).selectAll("."+bn.bar+r)},expandBars:function(t,e,n){n&&this.unexpandBars(),this.getBars(t,e).classed(bn.EXPANDED,!0)},unexpandBars:function(t){this.getBars(t).classed(bn.EXPANDED,!1)},generateDrawBar:function(t,e){var n=this.config,r=this.generateGetBarPoints(t,e),i=n.axis_rotated,a=n.data_groups.length,o=n.bar_radius,s=n.bar_radius_ratio,u=Oa(o)&&o>0?function(){return o}:Oa(s)?function(t){return t*s}:null;return function(t,e){var n=r(t,e),o=+i,s=+!o,c=t.value<0,l=["",""],f=0;if(u&&!a){var h=i?s:o,d=n[2][h]-n[0][h],g="a"+(f=u(d))+","+f+" "+(c?"1 0 0":"0 0 1")+" ";l[+!i]=""+g+f+","+f,l[+i]=""+g+[-f,f][i?"sort":"reverse"](),c&&l.reverse()}var p=i?"H"+(n[1][o]-f)+" "+l[0]+"V"+(n[2][s]-f)+" "+l[1]+"H"+n[3][o]:"V"+(n[1][s]+(c?-f:f))+" "+l[0]+"H"+(n[2][o]-f)+" "+l[1]+"V"+n[3][s];return"M"+n[0][o]+","+n[0][s]+p+"z"}},generateGetBarPoints:function(t,e){var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW(i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a=l.call(n,t.id,e)(n.getShapeYMin(t.id)),f=c(t,i)||a,h=Oa(o)?o:o[t.id]||o._$width,d=s(t),g=u(t);r.axis_rotated&&(t.value>0&&g<a||t.value<0&&a<g)&&(g=a);var p=d+h;return[[d,f],[d,g-=a-f],[p,g],[p,f]]}},isWithinBar:function(t){var e=Nr(t),n=Ga(t),r=n[0],i=n[1],a=Math.min(r.x,i.x),o=Math.min(r.y,i.y),s=this.config.bar_sensitivity,u=t.getBBox(),c=u.width,l=u.height;return a-s<e[0]&&e[0]<a+c+s&&o-s<e[1]&&e[1]<o+l+s}},Wf={initGauge:function(){var t=this,e=t.config,n=t.$el.arcs,r=function(t){n.append("text").attr("class",t).style("text-anchor","middle").style("pointer-events","none")};if(t.hasType("gauge")){var i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",bn.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&r(bn.chartArcsGaugeUnit),e.gauge_label_show&&(r(bn.chartArcsGaugeMin),!e.gauge_fullCircle&&r(bn.chartArcsGaugeMax))}},updateGaugeMax:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);r>e.gauge_max&&(e.gauge_max=r)},redrawMultiArcGauge:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.state.hiddenTargetIds,a=r.main.selectAll("."+bn.arcs).selectAll("."+bn.arcLabelLine).data(t.arcData.bind(t));a.enter().append("rect").attr("class",(function(t){return bn.arcLabelLine+" "+bn.target+" "+bn.target+"-"+t.data.id})).merge(a).style("fill",(function(e){return t.levelColor?t.levelColor(e.data.values[0].value):t.color(e.data)})).style("display",e.gauge_label_show?"":"none").each((function(e){var r=0,a=0,o=0,s="";if(i.indexOf(e.data.id)<0){var u=t.updateAngle(e),c=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(u.index+1),l=u.endAngle-Math.PI/2,f=n.radius-c,h=l-(0===f?0:1/f);r=n.radiusExpanded-n.radius+c,a=Math.cos(h)*f,o=Math.sin(h)*f,s="rotate("+180*l/Math.PI+", "+a+", "+o+")"}mn(this).attr("x",a).attr("y",o).attr("width",r).attr("height",2).attr("transform",s).style("stroke-dasharray","0, "+(r+2)+", 0")}))},textForGaugeMinMax:function(t,e){var n=this.config.gauge_label_extents;return Ma(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){var t=this.config;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge:function(){return this.getGaugeLabelHeight()*(this.config.gauge_label_show?2:2.5)}},qf={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle",t.point_sensitivity=25)},getBaseLength:function(){var t=this,e=t.state,n=e.width,r=e.height,i=vo,a=t.cache.get(i);return a||t.cache.add(i,a=oo("min",[n,r])),a},getBubbleR:function(t){var e=this,n=e.config.bubble_maxR;Ma(n)?n=n.bind(e.api)(t):!Oa(n)&&(n=e.getBaseLength()/(2*e.getMaxDataCount())+12);var r=oo("max",e.getMinMaxData().max.map((function(t){return e.isBubbleZType(t)?e.getBubbleZData(t.value,"y"):Ba(t.value)?t.value.mid:t.value}))),i=n*n*Math.PI,a=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/r);return Math.sqrt(a/Math.PI)},getBubbleZData:function(t,e){return Ba(t)?t[e]:t["y"===e?0:1]}},Zf={initLine:function(){var t=this.$el;t.line=t.main.select("."+bn.chart).append("g").attr("class",bn.chartLines)},updateTargetsForLine:function(t){var e=this,n=e.$el,r=n.area,i=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),u=e.classFocus.bind(e);i||e.initLine();var c=t.filter((function(t){return!(e.isScatterType(t)||e.isBubbleType(t))})),l=a.select("."+bn.chartLines).selectAll("."+bn.chartLine).data(c).attr("class",(function(t){return o(t)+u(t)})),f=l.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events","none");f.append("g").attr("class",s),e.hasTypeOf("Area")&&e.initArea(!r&&f.empty()?l:f),e.updateTargetForCircle(c,f)},updateLine:function(t){var e=this,n=e.format.extraLineClasses,r=e.$el;r.line=r.main.selectAll("."+bn.lines).selectAll("."+bn.line).data(e.lineData.bind(e)),r.line.exit().transition().duration(t).style("opacity","0").remove(),r.line=r.line.enter().append("path").attr("class",(function(t){return e.getClass("line",!0)(t)+" "+(n(t)||"")})).style("stroke",e.color).merge(r.line).style("opacity",e.initialOpacity.bind(e)).style("shape-rendering",(function(t){return e.isStepType(t)?"crispEdges":""})).attr("transform",null)},redrawLine:function(t,e){var n=this.$el.line;return[(e?n.transition(qa()):n).attr("d",t).style("stroke",this.color).style("opacity","1")]},getCurve:function(t){var e=this;return e.config.axis_rotated&&e.isStepType(t)?function(n){var r=e.getInterpolate(t)(n);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},r.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},r}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,r=n.config,i=n.scale,a=r.line_connectNull,o=r.axis_rotated,s=n.generateGetLinePoints(t,e),u=n.getYScaleById.bind(n),c=function(t){return(e?n.subxx:n.xx).call(n,t)},l=function(t,r){return n.isGrouped(t.id)?s(t,r)[0][1]:u(t.id,e)(n.getBaseValue(t))},f=Vf();f=o?f.x(l).y(c):f.x(c).y(l),a||(f=f.defined((function(t){return null!==n.getBaseValue(t)})));var h=e?i.subX:i.x;return function(t){var i,s=u(t.id,e),c=a?n.filterRemoveNull(t.values):t.values,l=0,d=0;if(n.isLineType(t)){var g=r.data_regions[t.id];g?i=n.lineWithRegions(c,h,s,g):(n.isStepType(t)&&(c=n.convertValuesToStep(c)),i=f.curve(n.getCurve(t))(c))}else c[0]&&(l=h(c[0].x),d=s(c[0].value)),i=o?"M "+d+" "+l:"M "+l+" "+d;return i||"M 0 0"}},lineWithRegions:function(t,e,n,r){var i,a,o,s,u=this,c=u.config.axis_rotated,l=u.axis.isTimeSeries(),f=u.axis.isCategorized()?.5:0,h=[],d=function(t,e){for(var n,r=0;n=e[r];r++)if(n.start<t&&t<=n.end)return n.style;return!1};if(Ca(r))for(var g,p=function(t,e){return Ra(t)?e:l?lo.call(u,t):t},v=0;g=r[v];v++){var y=p(g.start,t[0].x),x=p(g.end,t[t.length-1].x),_=g.style||{dasharray:"2 2"};h[v]={start:y,end:x,style:_}}for(var m,b=c?function(t){return n(t.value)}:function(t){return e(t.x)},w=c?function(t){return e(t.x)}:function(t){return n(t.value)},T=function(t){return"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]},A=l?function(t,r,i,s){var u=t.x.getTime(),l=r.x-t.x,f=new Date(u+l*i),h=new Date(u+l*(i+s)),d=c?[[n(a(i)),e(f)],[n(a(i+o)),e(h)]]:[[e(f),n(a(i))],[e(h),n(a(i+o))]];return T(d)}:function(t,r,o,s){var u=c?[[n(a(o),!0),e(i(o))],[n(a(o+s),!0),e(i(o+s))]]:[[e(i(o),!0),n(a(o))],[e(i(o+s),!0),n(a(o+s))]];return T(u)},S={x:u.axis.getAxisType("x"),y:u.axis.getAxisType("y")},E="",M=0;m=t[M];M++){var k=t[M-1],O=k&&Ea(k.value);_=d(m.x,h);if(Ea(m.value))if(!Ra(h)&&_&&O){if(O){try{_=_.dasharray.split(" ")}catch(t){_=["2","2"]}i=Zu(S.x,k.x+f,m.x+f),a=Zu(S.y,k.value,m.value);var R=e(m.x)-e(k.x),C=n(m.value)-n(k.value),I=Math.sqrt(Math.pow(R,2)+Math.pow(C,2));s=(o=_[0]/I)*_[1];for(var L=o;L<=1;L+=s)E+=A(k,m,L,o),L+s>=1&&(E+=A(k,m,1,0))}}else E+=(M&&O?"L":"M")+b(m)+","+w(m)}return E},isWithinStep:function(t,e){return Math.abs(e-Nr(t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||Xa(e)&&-1!==e.indexOf(t.id)}},Kf=function(){return qa()},Jf={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Fa(e)&&Ma(e.create)&&Ma(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,r=e.point_opacity;return Ra(r)&&(r=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),r},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return Ra(n)&&(n=e.point_show&&!e.point_focus_only?"1":"0",n=Ea(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+bn.chartCircles).empty()&&e.select("."+bn.chart).append("g").attr("class",bn.chartCircles)},updateTargetForCircle:function(t,e){var n=this,r=this,i=r.config,a=r.data,o=r.$el,s=i.interaction_enabled&&i.data_selection_enabled,u=s&&i.data_selection_isselectable,c=r.getClass("circles",!0);if(i.point_show){o.circle||r.initCircle();var l=t,f=e;if(!l){l=a.targets.filter((function(t){return n.isScatterType(t)||n.isBubbleType(t)}));var h=o.main.select("."+bn.chartCircles).style("pointer-events","none").selectAll("."+bn.circles).data(l).attr("class",c);h.exit().remove(),f=h.enter()}s&&f.append("g").attr("class",(function(t){return r.generateClass(bn.selectedCircles,t.id)})),f.append("g").attr("class",c).style("cursor",(function(t){return u&&u(t)?"pointer":null})),s&&l.forEach((function(t){o.main.selectAll("."+bn.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll(""+bn.selectedCircle).each((function(e){e.value=t.values[e.index].value}))}))}},updateCircle:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=e.point_focus_only;if(e.point_show&&!n.toggling){var a=r.main.selectAll("."+bn.circles).selectAll("."+bn.circle).data((function(e){return t.isLineType(e)&&t.shouldDrawPointsForLine(e)||t.isBubbleType(e)||t.isRadarType(e)||t.isScatterType(e)?i?[e.values[0]]:e.values:[]}));a.exit().remove(),a.enter().filter(Boolean).append(t.point("create",this,t.pointR.bind(t),t.color)),r.circle=r.main.selectAll("."+bn.circles+" ."+bn.circle).style("stroke",t.color).style("opacity",t.initialOpacityForCircle.bind(t))}},redrawCircle:function(t,e,n,r){var i=this,a=i.state.rendered,o=i.$el,s=o.circle,u=o.main.selectAll("."+bn.selectedCircle);if(!i.config.point_show)return[];var c=i.point("update",i,t,e,i.color,n,r,u),l=i.isCirclePoint()?"c":"",f=qa(),h=i.opacityForCircle.bind(i),d=[];return s.each((function(t){var e=c.bind(this)(t);e=(n||!a?e.transition(f):e).style("opacity",h),d.push(e)})),[d,(n?u.transition():u).attr(l+"x",t).attr(l+"y",e)]},showCircleFocus:function(t){var e=this,n=e.config,r=e.state,i=r.hasRadar,a=r.resizing,o=r.toggling,s=r.transiting,u=e.$el.circle;if(!1===s&&n.point_focus_only&&u){var c=(i?e.radarCircleX:e.circleX).bind(e),l=(i?e.radarCircleY:e.circleY).bind(e),f=o||Ra(t),h=e.point("update",e,c,l,e.color,!a&&f);t&&(u=u.filter((function(e){var n=t.filter((function(t){return t.id===e.id}));return!!n.length&&mn(this).datum(n[0])}))),u.attr("class",this.updatePointClass.bind(this)).style("opacity","1").each((function(t){var n=t.id,r=t.index,i=t.value,a="hidden";Ea(i)&&(h.bind(this)(t),e.expandCircles(r,n),a=""),this.style.visibility=a}))}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(){var t=this,e=t.generateGetLinePoints(t.getShapeIndices(t.isLineType),!1);t.circleY=function(n,r){var i=n.id;return t.isGrouped(i)?e(n,r)[0][1]:t.getYScaleById(i)(t.getBaseValue(n))}},getCircles:function(t,e){var n=this,r=Ea(t)?"-"+t:"";return(e?n.$el.main.selectAll("."+bn.circles+n.getTargetSelectorSuffix(e)):n.$el.main).selectAll("."+bn.circle+r)},expandCircles:function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles();var a=r.getCircles(t,e).classed(bn.EXPANDED,!0),o=i(a)/r.config.point_r,s=1-o;r.isCirclePoint()?a.attr("r",i):a.each((function(){var t=mn(this);if("circle"===this.tagName)t.attr("r",i);else{var e=this.getBBox(),n=e.width,r=e.height,a=s*(+t.attr("x")+n/2),u=s*(+t.attr("y")+r/2);t.attr("transform","translate("+a+" "+u+") scale("+o+")")}}))},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),r=e.getCircles(t).filter((function(){return mn(this).classed(bn.EXPANDED)})).classed(bn.EXPANDED,!1);r.attr("r",n),e.isCirclePoint()||r.attr("transform","scale("+n(r)/e.config.point_r+")")},pointR:function(t){var e=this,n=e.config.point_r,r=n;return e.isBubbleType(t)?r=e.getBubbleR(t):Ma(n)&&(r=n.bind(e.api)(t)),r},pointExpandedR:function(t){var e=this,n=e.config,r=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*r:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return Ma(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=Nr(t),r=mn(t),i=this.isCirclePoint(t)?"c":"",a=+r.attr(i+"x"),o=+r.attr(i+"y");if(!a&&!o&&1===t.nodeType){var s=Wa(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n=function(t,e){for(var n,r=t.attributes,i=0;n=r[i];i++)n=n.name,e.setAttribute(n,t.getAttribute(n))},r=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,i=Ta.createElementNS(me.svg,r.nodeName.toLowerCase());if(i.id=e,i.style.fill="inherit",i.style.stroke="inherit",n(r,i),r.childNodes&&r.childNodes.length){var a=mn(i);"innerHTML"in i?a.html(r.innerHTML):to(r.childNodes).forEach((function(t){n(t,a.append(t.tagName).node())}))}this.$el.defs.node().appendChild(i)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){var e=this,n=e.$el.circle,r=!1;return(Ba(t)||n)&&(r=!0===t?n.each((function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(bn.EXPANDED)>-1&&(n+=" "+bn.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),r},generateGetLinePoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c);var d=[f,h-(c-l)];return[d,d,d,d]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,r=[],i=za(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=arguments.length,s=Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return function(o){var u=t.getTargetSelectorSuffix(o.id||o.data&&o.data.id||o),c=mn(this);r.indexOf(u)<0&&r.push(u);var l=i[r.indexOf(u)%i.length];if(t.hasValidPointType(l))l=t[l];else if(!t.hasValidPointDrawMethods(l)){var f=n+"-point"+u;if(t.pointFromDefs(f).size()<1&&t.insertPointInfoDefs(l,f),"create"===e)return t.custom.create.bind(a).apply(void 0,[c,f].concat(s));if("update"===e)return t.custom.update.bind(a).apply(void 0,[c].concat(s))}return l[e].bind(a).apply(void 0,[c].concat(s))}}},custom:{create:function(t,e,n,r){return t.append("use").attr("xlink:href","#"+e).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update:function(t,e,n,r,i,a,o){var s=t.node().getBBox(),u=s.width,c=s.height,l=function(t){return e(t)-u/2},f=t;if(i){var h=Kf();a&&f.attr("x",l),f=f.transition(h),o&&o.transition(Kf())}return f.attr("x",l).attr("y",(function(t){return n(t)-c/2})).style("fill",r)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=t;if(s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),i){var c=Kf();a&&u.attr("cx",e),u.attr("cx")&&(u=u.transition(c)),o&&o.transition(Kf())}return u.attr("cx",e).attr("cy",n).style("fill",r)}},rectangle:{create:function(t,e,n){var r=function(t){return 2*e(t)};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",r).attr("height",r).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this.config.point_r,u=function(t){return e(t)-s},c=t;if(i){var l=Kf();a&&c.attr("x",u),c=c.transition(l),o&&o.transition(Kf())}return c.attr("x",u).attr("y",(function(t){return n(t)-s})).style("fill",r)}}};var Qf=wo,th={initRadar:function(){var t=this,e=t.config,n=t.state.current,r=t.$el;t.hasType("radar")&&(r.radar=r.main.select("."+bn.chart).append("g").attr("class",bn.chartRadars),r.radar.levels=r.radar.append("g").attr("class",bn.levels),r.radar.axes=r.radar.append("g").attr("class",bn.axis),r.radar.shapes=r.radar.append("g").attr("class",bn.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){var t=this.config,e=this.state,n=e.arcWidth,r=e.arcHeight,i=t.axis_x_categories.length<4?-20:10,a=(Math.min(n,r)-i)/2;return[a,a]},updateTargetsForRadar:function(t){var e=this.config;Na(e.axis_x_categories)&&(e.axis_x_categories=so(0,oo("max",t.map((function(t){return t.values.length}))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,r){var i=this.config,a=this.getRadarSize(),o=a[0],s=a[1],u=i.axis_x_categories.length,c=i.radar_direction_clockwise,l=to(t).map((function(a){return function(t,e,n,r,i,a){var o=t&&r>0?n-r:r,s=2*Math.PI;return i*(1-a*("x"===e?Math.sin:Math.cos)(o*s/n))}(c,a,u,e,Ca(n)?n:"x"===t?o:s,Oa(r)?r:i.radar_size_ratio)}));return 1===l.length?l[0]:l},generateRadarPoints:function(){var t=this,e=t.data.targets,n=t.getRadarSize(),r=n[0],i=n[1],a=t.cache.get(Qf)||{},o=a._size;o&&(o.width===r||o.height===i)||(e.forEach((function(e){a[e.id]=e.values.map((function(e,n){return t.getRadarPosition(["x","y"],n,void 0,t.getRatio("radar",e))}))})),a._size={width:r,height:i},t.cache.add(Qf,a))},redrawRadar:function(t){var e=this,n=e.$el,r=n.radar,i=n.main,a=e.getTranslate("radar");a&&(r.attr("transform",a),i.select("."+bn.chartTexts).attr("transform",a),e.generateRadarPoints(),e.updateRadarLevel(),e.updateRadarAxes(),e.updateRadarShape(t))},generateGetRadarPoints:function(){var t=this.cache.get(Qf);return function(e,n){var r=t[e.id][n];return[r,r,r,r]}},updateRadarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.radar,i=t.getRadarSize(),a=i[0],o=i[1],s=e.radar_level_depth,u=e.axis_x_categories.length,c=e.radar_level_text_show,l=r.levels,f=so(0,s),h=e.radar_size_ratio*Math.min(a,o),d=f.map((function(t){return h*((t+1)/s)})),g=(e.radar_level_text_format||function(){}).bind(t.api),p=f.map((function(e){var n=d[e];return so(0,u).map((function(e){return t.getRadarPosition(["x","y"],e,n,1).join(",")})).join(" ")})),v=l.selectAll("."+bn.level).data(f);v.exit().remove();var y=v.enter().append("g").attr("class",(function(t,e){return bn.level+" "+bn.level+"-"+e}));y.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(l.select("text").empty()&&l.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text((function(){return g(0)})),y.append("text").attr("dx","-.5em").style("text-anchor","end").text((function(t){return g(n.current.dataMax/f.length*(t+1))}))),y.merge(v).attr("transform",(function(t){return"translate("+(a-d[t])+", "+(o-d[t])+")"})).selectAll("polygon").attr("points",(function(t){return p[t]})),c&&l.selectAll("text").attr("x",(function(t){return Ra(t)?a:p[t].split(",")[0]})).attr("y",(function(t){return Ra(t)?o:0}))},updateRadarAxes:function(){var t=this,e=t.config,n=t.$el.radar,r=t.getRadarSize(),i=r[0],a=r[1],o=e.axis_x_categories,s=n.axes.selectAll("g").data(o);s.exit().remove();var u=s.enter().append("g").attr("class",(function(t,e){return bn.axis+"-"+e}));if(e.radar_axis_line_show&&u.append("line"),e.radar_axis_text_show&&u.append("text"),s=u.merge(s),e.radar_axis_line_show&&s.select("line").attr("x1",i).attr("y1",a).attr("x2",(function(e,n){return t.getRadarPosition("x",n)})).attr("y2",(function(e,n){return t.getRadarPosition("y",n)})),e.radar_axis_text_show){var c=e.radar_axis_text_position,l=c.x,f=void 0===l?0:l,h=c.y,d=void 0===h?0:h;s.select("text").style("text-anchor","middle").attr("dy",".5em").call((function(t){t.each((function(t){Va(mn(this),t+"",[-.6,1.2])}))})).datum((function(t,e){return{index:e}})).attr("transform",(function(e){Ra(this.width)&&(this.width=this.getBoundingClientRect().width/2);var n=t.getRadarPosition("x",e.index,void 0,1),r=Math.round(t.getRadarPosition("y",e.index,void 0,1));return n>i?n+=this.width+f:Math.round(n)<i&&(n-=this.width+f),r>a?(r/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),r+=d):r<a&&(r-=d),"translate("+n+" "+r+")"}))}t.bindEvent()},bindEvent:function(){var t=this,e=t.config,n=t.state,r=n.inputType,i=n.transiting,a=t.$el,o=a.radar,s=a.svg,u=e.point_focus_only;if(e.interaction_enabled){var c="mouse"===r,l=function(){var t=sn.target;/tspan/i.test(t.tagName)&&(t=t.parentNode);var e=mn(t).datum();return e&&1===Object.keys(e).length?e.index:void 0},f=function(){var e=l(),n=Ra(e);(c||n)&&(t.hideTooltip(),u?t.hideCircleFocus():t.unexpandCircles(),c?t.setOverOut(!1,e):n&&t.callOverOutForTouch())};o.axes.selectAll("text").on(c?"mouseover ":"touchstart",(function(){if(!i){var e=l();t.selectRectForSingle(s.node(),null,e),c?t.setOverOut(!0,e):t.callOverOutForTouch(e)}})).on("mouseout",c?f:null),c||s.on("touchstart",f)}},updateRadarShape:function(t){var e=this,n=e.data.targets.filter((function(t){return e.isRadarType(t)})),r=e.cache.get(Qf),i=e.$el.radar.shapes.selectAll("polygon").data(n),a=i.enter().append("g").attr("class",e.getChartClass("Radar"));i.exit().transition().duration(t).remove(),a.append("polygon").merge(i).style("fill",e.color).style("stroke",e.color).attr("points",(function(t){return r[t.id].join(" ")})),e.updateTargetForCircle(n,a)},radarCircleX:function(t){return this.cache.get(Qf)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(Qf)[t.id][t.index][1]}},eh={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},nh={area_above:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},rh={bar_label_threshold:0,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},ih={bubble_maxR:35,bubble_zerobased:!1},ah={line_connectNull:!1,line_step_type:"step",line_zerobased:!1,line_classes:void 0,line_point:!0},oh={scatter_zerobased:!1},sh={spline_interpolation_type:"cardinal"},uh={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},ch={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_label_extents:void 0,gauge_label_threshold:0,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},lh={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},fh={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1};function hh(t,e){Ja(cl.prototype,Tf.concat(t)),Ja(Al.prototype,wf),po.setOptions(Af.concat(e||[]))}function dh(t,e){hh([Jf,Zf].concat(t||[])),po.setOptions([eh,ah].concat(e||[]))}function gh(t,e){Ja(cl.prototype,[Uf].concat(t||[])),po.setOptions(e)}var ph=function(){return dh(Gf,[nh]),(ph=function(){return $u.AREA})()},vh=function(){return dh(Gf,[nh]),(vh=function(){return $u.AREA_LINE_RANGE})()},yh=function(){return dh(Gf,[nh,sh]),(yh=function(){return $u.AREA_SPLINE})()},xh=function(){return dh(Gf,[nh,sh]),(xh=function(){return $u.AREA_SPLINE_RANGE})()},_h=function(){return dh(Gf,[nh]),(_h=function(){return $u.AREA_STEP})()},mh=function(){return dh(),(mh=function(){return $u.LINE})()},bh=function(){return dh(void 0,[sh]),(bh=function(){return $u.SPLINE})()},wh=function(){return dh(),(wh=function(){return $u.STEP})()},Th=function(){return gh(void 0,[uh]),(Th=function(){return $u.DONUT})()},Ah=function(){return gh([Wf],[ch]),(Ah=function(){return $u.GAUGE})()},Sh=function(){return gh(void 0,[lh]),(Sh=function(){return $u.PIE})()},Eh=function(){return gh([Jf,th],[eh,fh]),(Eh=function(){return $u.RADAR})()},Mh=function(){return hh([Hf],rh),(Mh=function(){return $u.BAR})()},kh=function(){return hh([Jf,qf],[ih,eh]),(kh=function(){return $u.BUBBLE})()},Oh=function(){return hh([Jf],[eh,oh]),(Oh=function(){return $u.SCATTER})()},Rh={selected:function(t){var e=this.internal,n=[];return e.$el.main.selectAll("."+(bn.shapes+e.getTargetSelectorSuffix(t))).selectAll("."+bn.shape).filter((function(){return mn(this).classed(bn.SELECTED)})).each((function(t){return n.push(t)})),n},select:function(t,e,n){var r=this.internal,i=r.config,a=r.$el;i.data_selection_enabled&&a.main.selectAll("."+bn.shapes).selectAll("."+bn.shape).each((function(a,o){var s=mn(this),u=a.data?a.data.id:a.id,c=r.getToggle(this,a).bind(r),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,f=!e||e.indexOf(o)>=0,h=s.classed(bn.SELECTED);s.classed(bn.line)||s.classed(bn.area)||(l&&f?i.data_selection_isselectable.bind(r.api)(a)&&!h&&c(!0,s.classed(bn.SELECTED,!0),a,o):Ca(n)&&n&&h&&c(!1,s.classed(bn.SELECTED,!1),a,o))}))},unselect:function(t,e){var n=this.internal,r=n.config,i=n.$el;r.data_selection_enabled&&i.main.selectAll("."+bn.shapes).selectAll("."+bn.shape).each((function(i,a){var o=mn(this),s=i.data?i.data.id:i.id,u=n.getToggle(this,i).bind(n),c=r.data_selection_grouped||!t||t.indexOf(s)>=0,l=!e||e.indexOf(a)>=0,f=o.classed(bn.SELECTED);o.classed(bn.line)||o.classed(bn.area)||c&&l&&r.data_selection_isselectable.bind(n.api)(i)&&f&&u(!1,o.classed(bn.SELECTED,!1),i,a)}))}},Ch=Math.SQRT2,Ih=2,Lh=4,Dh=1e-12;function Ph(t){return((t=Math.exp(t))+1/t)/2}function Fh(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],u=e[1],c=e[2],l=s-i,f=u-a,h=l*l+f*f;if(h<Dh)r=Math.log(c/o)/Ch,n=function(t){return[i+t*l,a+t*f,o*Math.exp(Ch*t*r)]};else{var d=Math.sqrt(h),g=(c*c-o*o+Lh*h)/(2*o*Ih*d),p=(c*c-o*o-Lh*h)/(2*c*Ih*d),v=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(p*p+1)-p);r=(y-v)/Ch,n=function(t){var e=t*r,n=Ph(v),s=o/(Ih*d)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(Ch*e+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+s*l,a+s*f,o*n/Ph(Ch*e+v)]}}return n.duration=1e3*r,n}function Nh(t){return function(){return t}}function zh(t,e,n){this.target=t,this.type=e,this.transform=n}function Xh(t,e,n){this.k=t,this.x=e,this.y=n}Xh.prototype={constructor:Xh,scale:function(t){return 1===t?this:new Xh(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Xh(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 Bh=new Xh(1,0,0);function jh(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Bh;return t.__zoom}function Uh(){sn.stopImmediatePropagation()}function $h(){sn.preventDefault(),sn.stopImmediatePropagation()}function Yh(){return!sn.ctrlKey&&!sn.button}function Vh(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Gh(){return this.__zoom||Bh}function Hh(){return-sn.deltaY*(1===sn.deltaMode?.05:sn.deltaMode?1:.002)}function Wh(){return navigator.maxTouchPoints||"ontouchstart"in this}function qh(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}jh.prototype=Xh.prototype;var Zh=function(t){var e,n=this.internal,r=n.config,i=n.scale,a=t;if(r.zoom_enabled&&a){if(n.axis.isTimeSeries()&&(a=a.map((function(t){return lo.bind(n)(t)}))),function(t,e){var n=e[0],r=e[1];return t.every((function(t,e){return 0===e?t>=n:t<=r}))}(a,n.getZoomDomain())){if(n.api.tooltip.hide(),r.subchart_show){var o=i.zoom||i.x;n.brush.getSelection().call(n.brush.move,[o(a[0]),o(a[1])]),e=a}else i.x.domain(a),i.zoom=i.x,n.axis.x.scale(i.zoom),e=i.zoom.orgDomain();n.redraw({withTransition:!0,withY:r.zoom_rescale,withDimension:!1}),n.setZoomResetButton(),Ua(r.zoom_onzoom,n.api,e)}}else e=i.zoom?i.zoom.domain():i.x.orgDomain();return e};Ja(Zh,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=oo("max",[r[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=oo("min",[r[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(Ba(t)){var n=t.min,r=t.max;Ca(n)&&e.min(n),Ca(r)&&e.max(r)}return{min:e.min(),max:e.max()}}});var Kh={zoom:Zh,unzoom:function(){var t=this.internal,e=t.config;if(t.scale.zoom){e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(Bh),t.updateZoom(!0),t.zoom.resetBtn&&t.zoom.resetBtn.style("display","none");var n=t.$el.main.select("."+bn.eventRects);jh(n.node())!==Bh&&t.zoom.transform(n,Bh),t.redraw({withTransition:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withY:e.zoom_rescale})}}},Jh={drag:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!e.hasArcType()&&n.data_selection_enabled&&(!n.zoom_enabled||e.zoom.altDomain)&&n.data_selection_multiple){var s=r.dragStart||[0,0],u=s[0],c=s[1],l=t[0],f=t[1],h=Math.min(u,l),d=Math.max(u,l),g=a?r.margin.top:Math.min(c,f),p=a?r.height:Math.max(c,f);i.select("."+bn.dragarea).attr("x",h).attr("y",g).attr("width",d-h).attr("height",p-g),i.selectAll("."+bn.shapes).selectAll("."+bn.shape).filter((function(t){return o&&o.bind(e.api)(t)})).each((function(t,n){var r,i=mn(this),a=i.classed(bn.SELECTED),o=i.classed(bn.INCLUDED),s=!1;if(i.classed(bn.circle)){var u=1*+i.attr("cx"),c=1*+i.attr("cy");r=e.togglePoint,s=h<u&&u<d&&g<c&&c<p}else{if(!i.classed(bn.bar))return;var l=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height,i=Ga(t);return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:n,height:r}}(this),f=l.x,v=(c=l.y,l.width),y=l.height;r=e.togglePath,s=!(d<f||f+v<h||p<c||c+y<g)}s^o&&(i.classed(bn.INCLUDED,!o),i.classed(bn.SELECTED,!a),r.call(e,!a,i,t,n))}))}},dragstart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main;e.hasArcType()||!n.data_selection_enabled||(r.dragStart=t,i.select("."+bn.chart).append("rect").attr("class",bn.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main;t.hasArcType()||!e.data_selection_enabled||(n.select("."+bn.dragarea).transition().duration(100).style("opacity","0").remove(),n.selectAll("."+bn.shape).classed(bn.INCLUDED,!1),t.setDragStatus(!1))}};function Qh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function td(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?Qh(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Qh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var ed=td(td({},Jh),{},{selectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.axis_rotated,s=(o?r.circleY:r.circleX).bind(r),u=(o?r.circleX:r.circleY).bind(r),c=r.pointSelectR.bind(r);Ua(i.data_onselected,r.api,e,t.node()),a.select("."+bn.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+bn.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",(function(){return r.generateClass(bn.selectedCircle,n)})).attr("cx",s).attr("cy",u).attr("stroke",r.color).attr("r",(function(t){return 1.4*r.pointSelectR(t)})).transition().duration(100).attr("r",c)},unselectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el;Ua(i.data_onunselected,r.api,e,t.node()),a.main.select("."+bn.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+bn.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},togglePoint:function(t,e,n,r){this[(t?"":"un")+"selectPoint"](e,n,r)},selectPath:function(t,e){var n=this,r=n.config;Ua(r.data_onselected,n.api,e,t.node()),r.interaction_brighten&&t.transition().duration(100).style("fill",(function(){return ur(n.color(e)).brighter(.75)}))},unselectPath:function(t,e){var n=this,r=n.config;Ua(r.data_onunselected,n.api,e,t.node()),r.interaction_brighten&&t.transition().duration(100).style("fill",(function(){return n.color(e)}))},togglePath:function(t,e,n,r){this[(t?"":"un")+"selectPath"](e,n,r)},getToggle:function(t,e){var n=this;return"path"===t.nodeName?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var r,i=this,a=i.config,o=i.$el.main,s=mn(t),u=s.classed(bn.SELECTED),c=i.getToggle(t,e).bind(i);if(a.data_selection_enabled&&a.data_selection_isselectable.bind(i.api)(e)){if(!a.data_selection_multiple){var l="."+bn.shapes;a.data_selection_grouped&&(l+=i.getTargetSelectorSuffix(e.id)),o.selectAll(l).selectAll("."+bn.shape).each((function(t,e){var n=mn(this);n.classed(bn.SELECTED)&&(r=n,c(!1,n.classed(bn.SELECTED,!1),t,e))}))}r&&r.node()===s.node()||(s.classed(bn.SELECTED,!u),c(!u,s,e,n))}}}),nd={initBrush:function(){var t=this,e=t.config,n=t.scale,r=t.$el.subchart,i=e.axis_rotated;t.brush=ba(i?ca:ua);var a,o,s=function(){t.redrawForBrush()};t.brush.on("start",(function(){"touch"===t.state.inputType&&t.hideTooltip(),s()})).on("brush",s).on("end",(function(){a=n.x.orgDomain()})),t.brush.updateResize=function(){var t=this;o&&clearTimeout(o),o=setTimeout((function(){var e=t.getSelection();a&&ma(e.node())&&t.move(e,a.map(n.subX.orgScale()))}),0)},t.brush.update=function(){return 0===this.extent()()[1].filter((function(t){return isNaN(t)})).length&&r.main&&r.main.select("."+bn.brush).call(this),this},t.brush.scale=function(n){var r=e.subchart_size_height||function(){var e=t.$el.svg.select("."+bn.brush+" .overlay"),n={width:0,height:0};return e.size()&&(n.width=+e.attr("width"),n.height=+e.attr("height")),n[i?"width":"height"]}(),a=t.getExtent();!a&&n.range?a=[[0,0],[n.range()[1],r]]:Xa(a)&&(a=a.map((function(t,e){return[t,e>0?r:e]}))),i&&a[1].reverse(),this.extent(a),this.update()},t.brush.getSelection=function(){return r.main?r.main.select("."+bn.brush):mn([])}},initSubchart:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.hasAxis,a=t.$el,o=a.defs,s=a.svg,u=a.subchart,c=a.axis;if(i){var l=e.subchart_show?"visible":"hidden",f=r.id+"-subchart",h=t.getClipPath(f);r.idSubchart=f,t.appendClip(o,f),t.initBrush(),u.main=s.append("g").classed(bn.subchart,!0).attr("transform",t.getTranslate("context"));var d=u.main;d.style("visibility",l),d.append("g").attr("clip-path",h).attr("class",bn.chart),t.hasType("bar")&&d.select("."+bn.chart).append("g").attr("class",bn.chartBars),d.select("."+bn.chart).append("g").attr("class",bn.chartLines),d.append("g").attr("clip-path",h).attr("class",bn.brush).call(t.brush),c.subX=d.append("g").attr("class",bn.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?l:"hidden")}},updateTargetsForSubchart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.subchart.main,a=e.getChartClass("Bar"),o=e.getClass("bars",!0),s=e.getChartClass("Line"),u=e.getClass("lines",!0),c=e.getClass("areas",!0);if(n.subchart_show){var l=i.select("."+bn.chartBars).selectAll("."+bn.chartBar).data(t).attr("class",a);l.enter().append("g").style("opacity","0").attr("class",a).merge(l).append("g").attr("class",o);var f=i.select("."+bn.chartLines).selectAll("."+bn.chartLine).data(t).attr("class",s),h=f.enter().append("g").style("opacity","0").attr("class",s).merge(f);h.append("g").attr("class",u),e.hasTypeOf("Area")&&h.append("g").attr("class",c),i.selectAll("."+bn.brush+" rect").attr(n.axis_rotated?"width":"height",n.axis_rotated?r.width2:r.height2)}},updateBarForSubchart:function(t){var e=this,n=e.$el.subchart;n.bar=n.main.selectAll("."+bn.bars).selectAll("."+bn.bar).data(e.barData.bind(e)),n.bar.exit().transition().duration(t).style("opacity","0").remove(),n.bar=n.bar.enter().append("path").attr("class",e.getClass("bar",!0)).style("stroke","none").style("fill",e.color).merge(n.bar).style("opacity",e.initialOpacity.bind(e))},redrawBarForSubchart:function(t,e,n){var r=this.$el.subchart.bar;(e?r.transition(qa()).duration(n):r).attr("d",t).style("opacity","1")},updateLineForSubchart:function(t){var e=this,n=e.$el.subchart;n.line=n.main.selectAll("."+bn.lines).selectAll("."+bn.line).data(e.lineData.bind(e)),n.line.exit().transition().duration(t).style("opacity","0").remove(),n.line=n.line.enter().append("path").attr("class",e.getClass("line",!0)).style("stroke",e.color).merge(n.line).style("opacity",e.initialOpacity.bind(e))},redrawLineForSubchart:function(t,e,n){var r=this.$el.subchart.line;(e?r.transition(qa()).duration(n):r).attr("d",t).style("opacity","1")},updateAreaForSubchart:function(t){var e=this,n=e.$el.subchart;n.area=n.main.selectAll("."+bn.areas).selectAll("."+bn.area).data(e.lineData.bind(e)),n.area.exit().transition().duration(t).style("opacity","0").remove(),n.area=n.area.enter().append("path").attr("class",e.getClass("area",!0)).style("fill",e.color).style("opacity",(function(){return e.state.orgAreaOpacity=mn(this).style("opacity"),"0"})).merge(n.area).style("opacity","0")},redrawAreaForSubchart:function(t,e,n){var r=this.$el.subchart.area;(e?r.transition(qa()).duration(n):r).attr("d",t).style("fill",this.color).style("opacity",this.state.orgAreaOpacity)},redrawSubchart:function(t,e,n){var r=this,i=r.config;r.$el.subchart.main.style("visibility",i.subchart_show?"visible":"hidden"),i.subchart_show&&(sn&&"zoom"===sn.type&&r.brush.update(),t&&(!Ka(r)&&r.brush.update(),Object.keys(n.type).forEach((function(t){var i=Qa(t),a=r["generateDraw"+i](n.indices[t],!0);r["update"+i+"ForSubchart"](e),r["redraw"+i+"ForSubchart"](a,e,e)}))))},redrawForBrush:function(){var t=this,e=t.config,n=e.subchart_onbrush,r=e.zoom_rescale,i=t.scale;t.redraw({withTransition:!1,withY:r,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),n.bind(t.api)(i.x.orgDomain())},transformContext:function(t,e){var n,r=this,i=r.$el.subchart.main;e&&e.axisSubX?n=e.axisSubX:(n=i.select("."+bn.axisX),t&&(n=n.transition())),i.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subX"))},getExtent:function(){var t=this,e=t.config,n=t.scale,r=e.axis_x_extent;if(r)if(Ma(r))r=r.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&r.every(isNaN)){var i=lo.bind(t);r=r.map((function(t){return n.subX(i(t))}))}return r}},rd={initZoom:function(){var t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);var e=this,n=e.config,r=e.$el.main,i=n.zoom_enabled,a=r.select("."+bn.eventRects);i&&t?!n.subchart_show&&e.bindZoomOnEventRect(a,n.zoom_type):!1===t&&(e.api.unzoom(),a.on(".zoom",null).on(".drag",null))},generateZoom:function(){var t=this,e=t.config,n=t.org,r=t.scale,i=function(){function t(t){t.property("__zoom",Gh).on("wheel.zoom",s).on("mousedown.zoom",u).on("dblclick.zoom",c).filter(_).on("touchstart.zoom",l).on("touchmove.zoom",f).on("touchend.zoom touchcancel.zoom",h).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(t,e){return(e=Math.max(m[0],Math.min(m[1],e)))===t.k?t:new Xh(e,t.x,t.y)}function n(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Xh(t.k,r,i)}function r(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function i(t,e,n){t.on("start.zoom",(function(){a(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){a(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=a(t,i),s=v.apply(t,i),u=null==n?r(s):"function"==typeof n?n.apply(t,i):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=T(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new Xh(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function a(t,e,n){return!n&&t.__zooming||new o(t,e)}function o(t,e){this.that=t,this.args=e,this.active=0,this.extent=v.apply(t,e),this.taps=0}function s(){if(p.apply(this,arguments)){var t=a(this,arguments),r=this.__zoom,i=Math.max(m[0],Math.min(m[1],r.k*Math.pow(2,x.apply(this,arguments)))),o=Nr(this);if(t.wheel)(t.mouse[0][0]!==o[0]||t.mouse[0][1]!==o[1])&&(t.mouse[1]=r.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(r.k===i)return;t.mouse=[o,r.invert(o)],vi(this),t.start()}$h(),t.wheel=setTimeout((function(){t.wheel=null,t.end()}),150),t.zoom("mouse",y(n(e(r,i),t.mouse[0],t.mouse[1]),t.extent,b))}}function u(){if(!g&&p.apply(this,arguments)){var t=a(this,arguments,!0),e=mn(sn.view).on("mousemove.zoom",(function(){if($h(),!t.moved){var e=sn.clientX-i,r=sn.clientY-o;t.moved=e*e+r*r>S}t.zoom("mouse",y(n(t.that.__zoom,t.mouse[0]=Nr(t.that),t.mouse[1]),t.extent,b))}),!0).on("mouseup.zoom",(function(){e.on("mousemove.zoom mouseup.zoom",null),$n(sn.view,t.moved),$h(),t.end()}),!0),r=Nr(this),i=sn.clientX,o=sn.clientY;Un(sn.view),Uh(),t.mouse=[r,this.__zoom.invert(r)],vi(this),t.start()}}function c(){if(p.apply(this,arguments)){var r=this.__zoom,a=Nr(this),o=r.invert(a),s=r.k*(sn.shiftKey?.5:2),u=y(n(e(r,s),a,o),v.apply(this,arguments),b);$h(),w>0?mn(this).transition().duration(w).call(i,u,a):mn(this).call(t.transform,u)}}function l(){if(p.apply(this,arguments)){var t,e,n,r,i=sn.touches,o=i.length,s=a(this,arguments,sn.changedTouches.length===o);for(Uh(),e=0;e<o;++e)r=[r=Fr(this,i,(n=i[e]).identifier),this.__zoom.invert(r),n.identifier],s.touch0?!s.touch1&&s.touch0[2]!==r[2]&&(s.touch1=r,s.taps=0):(s.touch0=r,t=!0,s.taps=1+!!d);d&&(d=clearTimeout(d)),t&&(s.taps<2&&(d=setTimeout((function(){d=null}),500)),vi(this),s.start())}}function f(){if(this.__zooming){var t,r,i,o,s=a(this,arguments),u=sn.changedTouches,c=u.length;for($h(),d&&(d=clearTimeout(d)),s.taps=0,t=0;t<c;++t)i=Fr(this,u,(r=u[t]).identifier),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var l=s.touch0[0],f=s.touch0[1],h=s.touch1[0],g=s.touch1[1],p=(p=h[0]-l[0])*p+(p=h[1]-l[1])*p,v=(v=g[0]-f[0])*v+(v=g[1]-f[1])*v;r=e(r,Math.sqrt(p/v)),i=[(l[0]+h[0])/2,(l[1]+h[1])/2],o=[(f[0]+g[0])/2,(f[1]+g[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",y(n(r,i,o),s.extent,b))}}function h(){if(this.__zooming){var t,e,n=a(this,arguments),r=sn.changedTouches,i=r.length;for(Uh(),g&&clearTimeout(g),g=setTimeout((function(){g=null}),500),t=0;t<i;++t)e=r[t],n.touch0&&n.touch0[2]===e.identifier?delete n.touch0:n.touch1&&n.touch1[2]===e.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),2===n.taps){var o=mn(this).on("dblclick.zoom");o&&o.apply(this,arguments)}}}var d,g,p=Yh,v=Vh,y=qh,x=Hh,_=Wh,m=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],w=250,T=Fh,A=Xn("start","zoom","end"),S=0;return t.transform=function(t,e,n){var r=t.selection?t.selection():t;r.property("__zoom",Gh),t===r?r.interrupt().each((function(){a(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})):i(t,e,n)},t.scaleBy=function(e,n,r){t.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)}),r)},t.scaleTo=function(i,a,o){t.transform(i,(function(){var t=v.apply(this,arguments),i=this.__zoom,s=null==o?r(t):"function"==typeof o?o.apply(this,arguments):o,u=i.invert(s),c="function"==typeof a?a.apply(this,arguments):a;return y(n(e(i,c),s,u),t,b)}),o)},t.translateBy=function(e,n,r){t.transform(e,(function(){return y(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof r?r.apply(this,arguments):r),v.apply(this,arguments),b)}))},t.translateTo=function(e,n,i,a){t.transform(e,(function(){var t=v.apply(this,arguments),e=this.__zoom,o=null==a?r(t):"function"==typeof a?a.apply(this,arguments):a;return y(Bh.translate(o[0],o[1]).scale(e.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof i?-i.apply(this,arguments):-i),t,b)}),a)},o.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){hn(new zh(t,e,this.that.__zoom),A.apply,A,[e,this.that,this.args])}},t.wheelDelta=function(e){return arguments.length?(x="function"==typeof e?e:Nh(+e),t):x},t.filter=function(e){return arguments.length?(p="function"==typeof e?e:Nh(!!e),t):p},t.touchable=function(e){return arguments.length?(_="function"==typeof e?e:Nh(!!e),t):_},t.extent=function(e){return arguments.length?(v="function"==typeof e?e:Nh([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),t):v},t.scaleExtent=function(e){return arguments.length?(m[0]=+e[0],m[1]=+e[1],t):[m[0],m[1]]},t.translateExtent=function(e){return arguments.length?(b[0][0]=+e[0][0],b[1][0]=+e[1][0],b[0][1]=+e[0][1],b[1][1]=+e[1][1],t):[[b[0][0],b[0][1]],[b[1][0],b[1][1]]]},t.constrain=function(e){return arguments.length?(y=e,t):y},t.duration=function(e){return arguments.length?(w=+e,t):w},t.interpolate=function(e){return arguments.length?(T=e,t):T},t.on=function(){var e=A.on.apply(A,arguments);return e===A?t:e},t.clickDistance=function(e){return arguments.length?(S=(e=+e)*e,t):Math.sqrt(S)},t}().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=function(){var n=e.zoom_extent||[1,10];return[n[0],Math.max(t.getMaxDataCount()/n[1],n[1])]},i.updateScaleExtent=function(){var e=Pa(t.scale.x.orgDomain())/Pa(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this},i.updateTransformScale=function(i){n.xScale&&n.xScale.range(r.x.range());var a=i[e.axis_rotated?"rescaleY":"rescaleX"](n.xScale||r.x),o=t.trimXDomain(a.domain()),s=e.zoom_rescale;a.domain(o,n.xDomain),r.zoom=t.getCustomizedScale(a),t.axis.x.scale(r.zoom),s&&(!n.xScale&&(n.xScale=r.x.copy()),r.x.domain(o))},t.zoom=i},onZoomStart:function(){var t=this,e=sn.sourceEvent;e&&(t.zoom.startEvent=e,t.state.zooming=!0,Ua(t.config.zoom_onzoomstart,t.api,e))},onZoom:function(){var t=this,e=t.config,n=t.scale,r=t.org,i=sn,a=i.sourceEvent;if(e.zoom_enabled&&i.sourceEvent&&0!==t.filterTargetsToShow(t.data.targets).length&&(n.zoom||!(a.type.indexOf("touch")>-1)||1!==a.touches.length)){var o="mousemove"===a.type,s=a.wheelDelta<0,u=i.transform;!o&&s&&n.x.domain().every((function(t,e){return t!==r.xDomain[e]}))&&n.x.domain(r.xDomain),t.zoom.updateTransformScale(u),t.axis.isCategorized()&&n.x.orgDomain()[0]===r.xDomain[0]&&n.x.domain([r.xDomain[0]-1e-10,n.x.orgDomain()[1]]),t.redraw({withTransition:!1,withY:e.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),t.state.cancelClick=o,Ua(e.zoom_onzoom,t.api,n.zoom.domain())}},onZoomEnd:function(){var t=this,e=t.config,n=t.scale,r=t.zoom.startEvent,i=sn&&sn.sourceEvent;r&&r.type.indexOf("touch")>-1&&(r=r.changedTouches[0],i=i.changedTouches[0]),!r||i&&r.clientX===i.clientX&&r.clientY===i.clientY||(t.redrawEventRect(),t.updateZoom(),t.state.zooming=!1,Ua(e.zoom_onzoomend,t.api,n[n.zoom?"zoom":"subX"].domain()))},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return Ca(t.zoom_x_min)&&(n=oo("min",[n,t.zoom_x_min])),Ca(t.zoom_x_max)&&(r=oo("max",[r,t.zoom_x_max])),[n,r]},updateZoom:function(t){var e=this,n=e.scale,r=n.subX,i=n.x,a=n.zoom;if(a){var o=a.domain(),s=r.domain(),u=(o[0]<=s[0]||o[0]-.015<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-.015);(t||u)&&(e.axis.x.scale(r),i.domain(r.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(t,e){var n="drag"===e?this.zoomBehaviour:this.zoom;t.call(n).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t,e=this,n=e.config,r=e.state,i=n.axis_rotated,a=0,o=0,s={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=es().clickDistance(4).on("start",(function(){e.setDragStatus(!0),e.unselectRect(),t||(t=e.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",bn.zoomBrush).attr("width",i?r.width:0).attr("height",i?0:r.height)),a=Nr(this)[s.index],o=a,t.attr(s.axis,a).attr(s.attr,0),e.onZoomStart()})).on("drag",(function(){o=Nr(this)[s.index],t.attr(s.axis,Math.min(a,o)).attr(s.attr,Math.abs(o-a))})).on("end",(function(){var n,r=e.scale.zoom||e.scale.x;if(e.setDragStatus(!1),t.attr(s.axis,0).attr(s.attr,0),a>o&&(a=(n=[o,a])[0],o=n[1]),a<0&&(o+=Math.abs(a),a=0),a!==o)e.api.zoom([a,o].map((function(t){return r.invert(t)}))),e.onZoomEnd();else if(e.isMultipleX())e.clickHandlerForMultipleXS.bind(this)(e);else{var i=sn.sourceEvent||sn,u="clientX"in i?[i.clientX,i.clientY]:[i.x,i.y],c=u[0],l=u[1],f=Ta.elementFromPoint(c,l);e.clickHandlerForSingleX.bind(f)(mn(f).datum(),e)}}))},setZoomResetButton:function(){var t=this,e=t.config,n=e.zoom_resetButton;n&&"drag"===e.zoom_type&&(t.zoom.resetBtn?t.zoom.resetBtn.style("display",null):t.zoom.resetBtn=t.$el.chart.append("div").classed(bn.button,!0).append("span").on("click",(function(){Ma(n.onclick)&&n.onclick.bind(t.api)(this),t.api.unzoom()})).classed(bn.buttonZoomReset,!0).text(n.text||"Reset Zoom"))}},id={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){},data_onunselected:function(){}},ad={subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_text_show:!0,subchart_onbrush:function(){}},od={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},sd=function(){return Ja(cl.prototype,ed),Ja(Al.prototype,Rh),po.setOptions([id]),(sd=function(){return!0})()},ud=function(){return Ja(cl.prototype,nd),po.setOptions([ad]),(ud=function(){return!0})()},cd=function(){return Ja(cl.prototype,rd),Ja(Al.prototype,Kh),po.setOptions([od]),(cd=function(){return!0})()},ld={},fd={version:"2.2.7",generate:function(t){var e=io({},ld,t),n=new Al(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return Ba(t)&&(ld=t),ld},instance:[],plugin:{}};Object.keys(r).forEach((function(t){return r[t]()})),Object.keys(i).forEach((function(t){return i[t]()}))}],e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(0),n(507)}()}));
|
|
25
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(this,(function(){return function(){var t=[function(t,e,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(126),n(128),n(138),n(139),n(141),n(144),n(147),n(149),n(151),n(152),n(153),n(154),n(156),n(157),n(159),n(160),n(162),n(166),n(167),n(168),n(169),n(174),n(175),n(177),n(178),n(179),n(181),n(184),n(185),n(186),n(187),n(188),n(193),n(195),n(196),n(198),n(201),n(202),n(203),n(204),n(205),n(207),n(214),n(216),n(219),n(221),n(222),n(223),n(224),n(225),n(229),n(230),n(232),n(233),n(234),n(236),n(237),n(238),n(95),n(239),n(240),n(248),n(250),n(251),n(252),n(254),n(255),n(257),n(258),n(260),n(261),n(262),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(275),n(276),n(278),n(280),n(281),n(282),n(283),n(284),n(286),n(288),n(289),n(290),n(291),n(293),n(294),n(296),n(297),n(298),n(299),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(322),n(323),n(324),n(325),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(373),n(374),n(376),n(377),n(378),n(379),n(380),n(382),n(383),n(385),n(388),n(389),n(390),n(391),n(395),n(396),n(398),n(399),n(400),n(401),n(403),n(404),n(405),n(406),n(407),n(408),n(410),n(413),n(416),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(484),n(486),n(488),n(489),n(492),n(493),n(496),n(497),n(498),n(503),n(504),n(505),n(509),n(512),n(517),n(518),n(519),n(82)},function(t,e,n){n(2),n(92),n(94),n(95),n(99)},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(8),o=n(14),s=n(36),u=n(6),c=n(27),l=n(7),f=n(39),h=n(25),d=n(47),g=n(12),p=n(18),v=n(69),y=n(11),x=n(72),_=n(74),m=n(58),b=n(76),w=n(67),T=n(5),A=n(45),S=n(73),E=n(10),M=n(48),k=n(79),O=n(35),R=n(54),C=n(55),I=n(41),L=n(34),D=n(80),P=n(81),F=n(83),z=n(84),N=n(52),B=n(85).forEach,X=R("hidden"),j="Symbol",U="prototype",$=N.set,Y=N.getterFor(j),V=Object[U],G=i.Symbol,H=G&&G[U],W=i.TypeError,q=i.QObject,Z=T.f,K=A.f,J=b.f,Q=E.f,tt=o([].push),et=O("symbols"),nt=O("op-symbols"),rt=O("wks"),it=!q||!q[U]||!q[U].findChild,at=u&&l((function(){return 7!=x(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(V,e);r&&delete V[e],K(t,e,n),r&&t!==V&&K(V,e,r)}:K,ot=function(t,e){var n=et[t]=x(H);return $(n,{type:j,tag:t,description:e}),u||(n.description=e),n},st=function(t,e,n){t===V&&st(nt,e,n),d(t);var r=p(e);return d(n),f(et,r)?(n.enumerable?(f(t,X)&&t[X][r]&&(t[X][r]=!1),n=x(n,{enumerable:y(0,!1)})):(f(t,X)||K(t,X,y(1,{})),t[X][r]=!0),at(t,r,n)):K(t,r,n)},ut=function(t,e){d(t);var n=g(e),r=_(n).concat(ht(n));return B(r,(function(e){u&&!a(ct,n,e)||st(t,e,n[e])})),t},ct=function(t){var e=p(t),n=a(Q,this,e);return!(this===V&&f(et,e)&&!f(nt,e))&&(!(n||!f(this,e)||!f(et,e)||f(this,X)&&this[X][e])||n)},lt=function(t,e){var n=g(t),r=p(e);if(n!==V||!f(et,r)||f(nt,r)){var i=Z(n,r);return!i||!f(et,r)||f(n,X)&&n[X][r]||(i.enumerable=!0),i}},ft=function(t){var e=J(g(t)),n=[];return B(e,(function(t){f(et,t)||f(C,t)||tt(n,t)})),n},ht=function(t){var e=t===V,n=J(e?nt:g(t)),r=[];return B(n,(function(t){!f(et,t)||e&&!f(V,t)||tt(r,et[t])})),r};c||(G=function(){if(h(H,this))throw W("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=I(t),n=function(t){this===V&&a(n,nt,t),f(this,X)&&f(this[X],e)&&(this[X][e]=!1),at(this,e,y(1,t))};return u&&it&&at(V,e,{configurable:!0,set:n}),ot(e,t)},M(H=G[U],"toString",(function(){return Y(this).tag})),M(G,"withoutSetter",(function(t){return ot(I(t),t)})),E.f=ct,A.f=st,S.f=ut,T.f=lt,m.f=b.f=ft,w.f=ht,D.f=function(t){return ot(L(t),t)},u&&(k(H,"description",{configurable:!0,get:function(){return Y(this).description}}),s||M(V,"propertyIsEnumerable",ct,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),B(_(rt),(function(t){P(t)})),r({target:j,stat:!0,forced:!c},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?x(t):ut(x(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:lt}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ft}),F(),z(G,j),C[X]=!0},function(t,e,n){var r=n(4),i=n(5).f,a=n(44),o=n(48),s=n(38),u=n(56),c=n(68);t.exports=function(t,e){var n,l,f,h,d,g=t.target,p=t.global,v=t.stat;if(n=p?r:v?r[g]||s(g,{}):(r[g]||{}).prototype)for(l in e){if(h=e[l],f=t.dontCallGetSet?(d=i(n,l))&&d.value:n[l],!c(p?l:g+(v?".":"#")+l,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;u(h,f)}(t.sham||f&&f.sham)&&a(h,"sham",!0),o(n,l,h,t)}}},function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(t,e,n){var r=n(6),i=n(8),a=n(10),o=n(11),s=n(12),u=n(18),c=n(39),l=n(42),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=s(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},function(t,e,n){var r=n(7);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(9),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(t,e,n){var r=n(7);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(13),i=n(16);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(14),i=n(7),a=n(15),o=Object,s=r("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},function(t,e,n){var r=n(9),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);t.exports=r?o:function(t){return function(){return a.apply(t,arguments)}}},function(t,e,n){var r=n(14),i=r({}.toString),a=r("".slice);t.exports=function(t){return a(i(t),8,-1)}},function(t,e,n){var r=n(17),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},function(t){t.exports=function(t){return null==t}},function(t,e,n){var r=n(19),i=n(23);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},function(t,e,n){var r=n(8),i=n(20),a=n(23),o=n(30),s=n(33),u=n(34),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var n,u=o(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!i(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e,n){var r=n(21),i=n(22),a=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===a}:function(t){return"object"==typeof t?null!==t:r(t)}},function(t,e,n){var r=n(22),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},function(t,e,n){var r=n(24),i=n(21),a=n(25),o=n(26),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&a(e.prototype,s(t))}},function(t,e,n){var r=n(4),i=n(21);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},function(t,e,n){var r=n(14);t.exports=r({}.isPrototypeOf)},function(t,e,n){var r=n(27);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(28),i=n(7);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(t,e,n){var r,i,a=n(4),o=n(29),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,n){var r=n(31),i=n(17);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},function(t,e,n){var r=n(21),i=n(32),a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a function")}},function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},function(t,e,n){var r=n(8),i=n(21),a=n(20),o=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!a(s=r(n,t)))return s;if(i(n=t.valueOf)&&!a(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!a(s=r(n,t)))return s;throw o("Can't convert object to primitive value")}},function(t,e,n){var r=n(4),i=n(35),a=n(39),o=n(41),s=n(27),u=n(26),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:f("Symbol."+t)),l[t]}},function(t,e,n){var r=n(36),i=n(37);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.29.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t){t.exports=!1},function(t,e,n){var r=n(4),i=n(38),a="__core-js_shared__",o=r[a]||i(a,{});t.exports=o},function(t,e,n){var r=n(4),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(14),i=n(40),a=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},function(t,e,n){var r=n(16),i=Object;t.exports=function(t){return i(r(t))}},function(t,e,n){var r=n(14),i=0,a=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},function(t,e,n){var r=n(6),i=n(7),a=n(43);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(4),i=n(20),a=r.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},function(t,e,n){var r=n(6),i=n(45),a=n(11);t.exports=r?function(t,e,n){return i.f(t,e,a(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(6),i=n(42),a=n(46),o=n(47),s=n(18),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?a?function(t,e,n){if(o(t),e=s(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=s(e),o(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(6),i=n(7);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,n){var r=n(20),i=String,a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not an object")}},function(t,e,n){var r=n(21),i=n(45),a=n(49),o=n(38);t.exports=function(t,e,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&a(n,c,s),s.global)u?t[e]=n:o(e,n);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){var r=n(14),i=n(7),a=n(21),o=n(39),s=n(6),u=n(50).CONFIGURABLE,c=n(51),l=n(52),f=l.enforce,h=l.get,d=String,g=Object.defineProperty,p=r("".slice),v=r("".replace),y=r([].join),x=s&&!i((function(){return 8!==g((function(){}),"length",{value:8}).length})),_=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===p(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?g(t,"name",{value:e,configurable:!0}):t.name=e),x&&n&&o(n,"arity")&&t.length!==n.arity&&g(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=f(t);return o(r,"source")||(r.source=y(_,"string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return a(this)&&h(this).source||c(this)}),"toString")},function(t,e,n){var r=n(6),i=n(39),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(t,e,n){var r=n(14),i=n(21),a=n(37),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},function(t,e,n){var r,i,a,o=n(53),s=n(4),u=n(20),c=n(44),l=n(39),f=n(37),h=n(54),d=n(55),g="Object already initialized",p=s.TypeError,v=s.WeakMap;if(o||f.state){var y=f.state||(f.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw p(g);return e.facade=t,y.set(t,e),e},i=function(t){return y.get(t)||{}},a=function(t){return y.has(t)}}else{var x=h("state");d[x]=!0,r=function(t,e){if(l(t,x))throw p(g);return e.facade=t,c(t,x,e),e},i=function(t){return l(t,x)?t[x]:{}},a=function(t){return l(t,x)}}t.exports={set:r,get:i,has:a,enforce:function(t){return a(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(4),i=n(21),a=r.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},function(t,e,n){var r=n(35),i=n(41),a=r("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},function(t){t.exports={}},function(t,e,n){var r=n(39),i=n(57),a=n(5),o=n(45);t.exports=function(t,e,n){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var f=s[l];r(t,f)||n&&r(n,f)||u(t,f,c(e,f))}}},function(t,e,n){var r=n(24),i=n(14),a=n(58),o=n(67),s=n(47),u=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=a.f(s(t)),n=o.f;return n?u(e,n(t)):e}},function(t,e,n){var r=n(59),i=n(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(14),i=n(39),a=n(12),o=n(60).indexOf,s=n(55),u=r([].push);t.exports=function(t,e){var n,r=a(t),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;e.length>c;)i(r,n=e[c++])&&(~o(l,n)||u(l,n));return l}},function(t,e,n){var r=n(12),i=n(61),a=n(64),o=function(t){return function(e,n,o){var s,u=r(e),c=a(u),l=i(o,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},function(t,e,n){var r=n(62),i=Math.max,a=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):a(n,e)}},function(t,e,n){var r=n(63);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},function(t,e,n){var r=n(65);t.exports=function(t){return r(t.length)}},function(t,e,n){var r=n(62),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(7),i=n(21),a=/#|\.prototype\./,o=function(t,e){var n=u[s(t)];return n==l||n!=c&&(i(e)?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},function(t,e,n){var r=n(70),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},function(t,e,n){var r=n(71),i=n(21),a=n(15),o=n(34)("toStringTag"),s=Object,u="Arguments"==a(function(){return arguments}());t.exports=r?a:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),o))?n:u?a(e):"Object"==(r=a(e))&&i(e.callee)?"Arguments":r}},function(t,e,n){var r={};r[n(34)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r,i=n(47),a=n(73),o=n(66),s=n(55),u=n(75),c=n(43),l=n(54),f="prototype",h="script",d=l("IE_PROTO"),g=function(){},p=function(t){return"<"+h+">"+t+"</"+h+">"},v=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?v(r):(e=c("iframe"),n="java"+h+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F):v(r);for(var i=o.length;i--;)delete y[f][o[i]];return y()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[f]=i(t),n=new g,g[f]=null,n[d]=t):n=y(),void 0===e?n:a.f(n,e)}},function(t,e,n){var r=n(6),i=n(46),a=n(45),o=n(47),s=n(12),u=n(74);e.f=r&&!i?Object.defineProperties:function(t,e){o(t);for(var n,r=s(e),i=u(e),c=i.length,l=0;c>l;)a.f(t,n=i[l++],r[n]);return t}},function(t,e,n){var r=n(59),i=n(66);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(24);t.exports=r("document","documentElement")},function(t,e,n){var r=n(15),i=n(12),a=n(58).f,o=n(77),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==r(t)?function(t){try{return a(t)}catch(t){return o(s)}}(t):a(i(t))}},function(t,e,n){var r=n(61),i=n(64),a=n(78),o=Array,s=Math.max;t.exports=function(t,e,n){for(var u=i(t),c=r(e,u),l=r(void 0===n?u:n,u),f=o(s(l-c,0)),h=0;c<l;c++,h++)a(f,h,t[c]);return f.length=h,f}},function(t,e,n){"use strict";var r=n(18),i=n(45),a=n(11);t.exports=function(t,e,n){var o=r(e);o in t?i.f(t,o,a(0,n)):t[o]=n}},function(t,e,n){var r=n(49),i=n(45);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},function(t,e,n){var r=n(34);e.f=r},function(t,e,n){var r=n(82),i=n(39),a=n(80),o=n(45).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||o(e,t,{value:a.f(t)})}},function(t,e,n){var r=n(4);t.exports=r},function(t,e,n){var r=n(8),i=n(24),a=n(34),o=n(48);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=a("toPrimitive");e&&!e[s]&&o(e,s,(function(t){return r(n,this)}),{arity:1})}},function(t,e,n){var r=n(45).f,i=n(39),a=n(34)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},function(t,e,n){var r=n(86),i=n(14),a=n(13),o=n(40),s=n(64),u=n(88),c=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,f=6==t,h=7==t,d=5==t||f;return function(g,p,v,y){for(var x,_,m=o(g),b=a(m),w=r(p,v),T=s(b),A=0,S=y||u,E=e?S(g,T):n||h?S(g,0):void 0;T>A;A++)if((d||A in b)&&(_=w(x=b[A],A,m),t))if(e)E[A]=_;else if(_)switch(t){case 3:return!0;case 5:return x;case 6:return A;case 2:c(E,x)}else switch(t){case 4:return!1;case 7:c(E,x)}return f?-1:i||l?l:E}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(t,e,n){var r=n(87),i=n(31),a=n(9),o=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(15),i=n(14);t.exports=function(t){if("Function"===r(t))return i(t)}},function(t,e,n){var r=n(89);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},function(t,e,n){var r=n(90),i=n(91),a=n(20),o=n(34)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?s:e}},function(t,e,n){var r=n(15);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(14),i=n(7),a=n(21),o=n(70),s=n(24),u=n(51),c=function(){},l=[],f=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=r(h.exec),g=!h.exec(c),p=function(t){if(!a(t))return!1;try{return f(c,l,t),!0}catch(t){return!1}},v=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g||!!d(h,u(t))}catch(t){return!0}};v.sham=!0,t.exports=!f||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?v:p},function(t,e,n){var r=n(3),i=n(24),a=n(39),o=n(69),s=n(35),u=n(93),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=o(t);if(a(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,l[n]=e,n}})},function(t,e,n){var r=n(27);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,n){var r=n(3),i=n(39),a=n(23),o=n(32),s=n(35),u=n(93),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!a(t))throw TypeError(o(t)+" is not a symbol");if(i(c,t))return c[t]}})},function(t,e,n){var r=n(3),i=n(24),a=n(96),o=n(8),s=n(14),u=n(7),c=n(21),l=n(23),f=n(97),h=n(98),d=n(27),g=String,p=i("JSON","stringify"),v=s(/./.exec),y=s("".charAt),x=s("".charCodeAt),_=s("".replace),m=s(1..toString),b=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,T=/^[\uDC00-\uDFFF]$/,A=!d||u((function(){var t=i("Symbol")();return"[null]"!=p([t])||"{}"!=p({a:t})||"{}"!=p(Object(t))})),S=u((function(){return'"\\udf06\\ud834"'!==p("\udf06\ud834")||'"\\udead"'!==p("\udead")})),E=function(t,e){var n=f(arguments),r=h(e);if(c(r)||void 0!==t&&!l(t))return n[1]=function(t,e){if(c(r)&&(e=o(r,this,g(t),e)),!l(e))return e},a(p,null,n)},M=function(t,e,n){var r=y(n,e-1),i=y(n,e+1);return v(w,t)&&!v(T,i)||v(T,t)&&!v(w,r)?"\\u"+m(x(t,0),16):t};p&&r({target:"JSON",stat:!0,arity:3,forced:A||S},{stringify:function(t,e,n){var r=f(arguments),i=a(A?E:p,null,r);return S&&"string"==typeof i?_(i,b,M):i}})},function(t,e,n){var r=n(9),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},function(t,e,n){var r=n(14);t.exports=r([].slice)},function(t,e,n){var r=n(14),i=n(90),a=n(21),o=n(15),s=n(69),u=r([].push);t.exports=function(t){if(a(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r<e;r++){var c=t[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!=o(c)&&"String"!=o(c)||u(n,s(c))}var l=n.length,f=!0;return function(t,e){if(f)return f=!1,e;if(i(this))return e;for(var r=0;r<l;r++)if(n[r]===t)return e}}}},function(t,e,n){var r=n(3),i=n(27),a=n(7),o=n(67),s=n(40);r({target:"Object",stat:!0,forced:!i||a((function(){o.f(1)}))},{getOwnPropertySymbols:function(t){var e=o.f;return e?e(s(t)):[]}})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(4),o=n(14),s=n(39),u=n(21),c=n(25),l=n(69),f=n(79),h=n(56),d=a.Symbol,g=d&&d.prototype;if(i&&u(d)&&(!("description"in g)||void 0!==d().description)){var p={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(g,this)?new d(t):void 0===t?d():d(t);return""===t&&(p[e]=!0),e};h(v,d),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(d("test")),x=o(g.valueOf),_=o(g.toString),m=/^Symbol\((.*)\)[^)]+$/,b=o("".replace),w=o("".slice);f(g,"description",{configurable:!0,get:function(){var t=x(this);if(s(p,t))return"";var e=_(t),n=y?w(e,7,-1):b(e,m,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(t,e,n){n(81)("asyncIterator")},function(t,e,n){n(81)("hasInstance")},function(t,e,n){n(81)("isConcatSpreadable")},function(t,e,n){n(81)("iterator")},function(t,e,n){n(81)("match")},function(t,e,n){n(81)("matchAll")},function(t,e,n){n(81)("replace")},function(t,e,n){n(81)("search")},function(t,e,n){n(81)("species")},function(t,e,n){n(81)("split")},function(t,e,n){var r=n(81),i=n(83);r("toPrimitive"),i()},function(t,e,n){var r=n(24),i=n(81),a=n(84);i("toStringTag"),a(r("Symbol"),"Symbol")},function(t,e,n){n(81)("unscopables")},function(t,e,n){var r=n(3),i=n(4),a=n(96),o=n(115),s="WebAssembly",u=i[s],c=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},f=function(t,e){if(u&&u[t]){var n={};n[t]=o(s+"."+t,e,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};l("Error",(function(t){return function(e){return a(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return a(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return a(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return a(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return a(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return a(t,this,arguments)}})),l("URIError",(function(t){return function(e){return a(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return a(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return a(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return a(t,this,arguments)}}))},function(t,e,n){"use strict";var r=n(24),i=n(39),a=n(44),o=n(25),s=n(116),u=n(56),c=n(119),l=n(120),f=n(121),h=n(122),d=n(123),g=n(6),p=n(36);t.exports=function(t,e,n,v){var y="stackTraceLimit",x=v?2:1,_=t.split("."),m=_[_.length-1],b=r.apply(null,_);if(b){var w=b.prototype;if(!p&&i(w,"cause")&&delete w.cause,!n)return b;var T=r("Error"),A=e((function(t,e){var n=f(v?e:t,void 0),r=v?new b(t):new b;return void 0!==n&&a(r,"message",n),d(r,A,r.stack,2),this&&o(w,this)&&l(r,this,A),arguments.length>x&&h(r,arguments[x]),r}));if(A.prototype=w,"Error"!==m?s?s(A,T):u(A,T,{name:!0}):g&&y in b&&(c(A,b,y),c(A,b,"prepareStackTrace")),u(A,b),!p)try{w.name!==m&&a(w,"name",m),w.constructor=A}catch(t){}return A}}},function(t,e,n){var r=n(117),i=n(47),a=n(118);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),e?t(n,r):n.__proto__=r,n}}():void 0)},function(t,e,n){var r=n(14),i=n(31);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},function(t,e,n){var r=n(21),i=String,a=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},function(t,e,n){var r=n(45).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},function(t,e,n){var r=n(21),i=n(20),a=n(116);t.exports=function(t,e,n){var o,s;return a&&r(o=e.constructor)&&o!==n&&i(s=o.prototype)&&s!==n.prototype&&a(t,s),t}},function(t,e,n){var r=n(69);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},function(t,e,n){var r=n(20),i=n(44);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},function(t,e,n){var r=n(44),i=n(124),a=n(125),o=Error.captureStackTrace;t.exports=function(t,e,n,s){a&&(o?o(t,e):r(t,"stack",i(n,s)))}},function(t,e,n){var r=n(14),i=Error,a=r("".replace),o=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=a(t,s,"");return t}},function(t,e,n){var r=n(7),i=n(11);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},function(t,e,n){var r=n(48),i=n(127),a=Error.prototype;a.toString!==i&&r(a,"toString",i)},function(t,e,n){"use strict";var r=n(6),i=n(7),a=n(47),o=n(72),s=n(121),u=Error.prototype.toString,c=i((function(){if(r){var t=o(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==u.call(t))return!0}return"2: 1"!==u.call({message:1,name:2})||"Error"!==u.call({})}));t.exports=c?function(){var t=a(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:u},function(t,e,n){n(129)},function(t,e,n){"use strict";var r=n(3),i=n(25),a=n(130),o=n(116),s=n(56),u=n(72),c=n(44),l=n(11),f=n(122),h=n(123),d=n(132),g=n(121),p=n(34)("toStringTag"),v=Error,y=[].push,x=function(t,e){var n,r=i(_,this);o?n=o(v(),r?a(this):_):(n=r?this:u(_),c(n,p,"Error")),void 0!==e&&c(n,"message",g(e)),h(n,x,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return d(t,y,{that:s}),c(n,"errors",s),n};o?o(x,v):s(x,v,{name:!0});var _=x.prototype=u(v.prototype,{constructor:l(1,x),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:x})},function(t,e,n){var r=n(39),i=n(21),a=n(40),o=n(54),s=n(131),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(r(e,u))return e[u];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},function(t,e,n){var r=n(7);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,n){var r=n(86),i=n(8),a=n(47),o=n(32),s=n(133),u=n(64),c=n(25),l=n(135),f=n(136),h=n(137),d=TypeError,g=function(t,e){this.stopped=t,this.result=e},p=g.prototype;t.exports=function(t,e,n){var v,y,x,_,m,b,w,T=n&&n.that,A=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),k=r(e,T),O=function(t){return v&&h(v,"normal",t),new g(!0,t)},R=function(t){return A?(a(t),M?k(t[0],t[1],O):k(t[0],t[1])):M?k(t,O):k(t)};if(S)v=t.iterator;else if(E)v=t;else{if(!(y=f(t)))throw d(o(t)+" is not iterable");if(s(y)){for(x=0,_=u(t);_>x;x++)if((m=R(t[x]))&&c(p,m))return m;return new g(!1)}v=l(t,y)}for(b=S?t.next:v.next;!(w=i(b,v)).done;){try{m=R(w.value)}catch(t){h(v,"throw",t)}if("object"==typeof m&&m&&c(p,m))return m}return new g(!1)}},function(t,e,n){var r=n(34),i=n(134),a=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},function(t){t.exports={}},function(t,e,n){var r=n(8),i=n(31),a=n(47),o=n(32),s=n(136),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return a(r(n,t));throw u(o(t)+" is not iterable")}},function(t,e,n){var r=n(70),i=n(30),a=n(17),o=n(134),s=n(34)("iterator");t.exports=function(t){if(!a(t))return i(t,s)||i(t,"@@iterator")||o[r(t)]}},function(t,e,n){var r=n(8),i=n(47),a=n(30);t.exports=function(t,e,n){var o,s;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){s=!0,o=t}if("throw"===e)throw n;if(s)throw o;return i(o),n}},function(t,e,n){var r=n(3),i=n(24),a=n(96),o=n(7),s=n(115),u="AggregateError",c=i(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(u,(function(t){return function(e,n){return a(t,this,arguments)}}),l,!0)})},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(64),o=n(62),s=n(140);r({target:"Array",proto:!0},{at:function(t){var e=i(this),n=a(e),r=o(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}}),s("at")},function(t,e,n){var r=n(34),i=n(72),a=n(45).f,o=r("unscopables"),s=Array.prototype;null==s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(90),o=n(20),s=n(40),u=n(64),c=n(142),l=n(78),f=n(88),h=n(143),d=n(34),g=n(28),p=d("isConcatSpreadable"),v=g>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),y=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:a(t)};r({target:"Array",proto:!0,arity:1,forced:!v||!h("concat")},{concat:function(t){var e,n,r,i,a,o=s(this),h=f(o,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(y(a=-1===e?o:arguments[e]))for(i=u(a),c(d+i),n=0;n<i;n++,d++)n in a&&l(h,d,a[n]);else c(d+1),l(h,d++,a);return h.length=d,h}})},function(t){var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},function(t,e,n){var r=n(7),i=n(34),a=n(28),o=i("species");t.exports=function(t){return a>=51||!r((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var r=n(3),i=n(145),a=n(140);r({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},function(t,e,n){"use strict";var r=n(40),i=n(61),a=n(64),o=n(146),s=Math.min;t.exports=[].copyWithin||function(t,e){var n=r(this),u=a(n),c=i(t,u),l=i(e,u),f=arguments.length>2?arguments[2]:void 0,h=s((void 0===f?u:i(f,u))-l,u-c),d=1;for(l<c&&c<l+h&&(d=-1,l+=h-1,c+=h-1);h-- >0;)l in n?n[c]=n[l]:o(n,c),c+=d,l+=d;return n}},function(t,e,n){"use strict";var r=n(32),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},function(t,e,n){"use strict";var r=n(3),i=n(85).every;r({target:"Array",proto:!0,forced:!n(148)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(7);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){var r=n(3),i=n(150),a=n(140);r({target:"Array",proto:!0},{fill:i}),a("fill")},function(t,e,n){"use strict";var r=n(40),i=n(61),a=n(64);t.exports=function(t){for(var e=r(this),n=a(e),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var r=n(3),i=n(85).filter;r({target:"Array",proto:!0,forced:!n(143)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(85).find,a=n(140),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(3),i=n(85).findIndex,a=n(140),o="findIndex",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a(o)},function(t,e,n){"use strict";var r=n(3),i=n(155).findLast,a=n(140);r({target:"Array",proto:!0},{findLast:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},function(t,e,n){var r=n(86),i=n(13),a=n(40),o=n(64),s=function(t){var e=1==t;return function(n,s,u){for(var c,l=a(n),f=i(l),h=r(s,u),d=o(f);d-- >0;)if(h(c=f[d],d,l))switch(t){case 0:return c;case 1:return d}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},function(t,e,n){"use strict";var r=n(3),i=n(155).findLastIndex,a=n(140);r({target:"Array",proto:!0},{findLastIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},function(t,e,n){"use strict";var r=n(3),i=n(158),a=n(40),o=n(64),s=n(62),u=n(88);r({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=a(this),n=o(e),r=u(e,0);return r.length=i(r,e,e,n,0,void 0===t?1:s(t)),r}})},function(t,e,n){"use strict";var r=n(90),i=n(64),a=n(142),o=n(86),s=function(t,e,n,u,c,l,f,h){for(var d,g,p=c,v=0,y=!!f&&o(f,h);v<u;)v in n&&(d=y?y(n[v],v,e):n[v],l>0&&r(d)?(g=i(d),p=s(t,e,d,g,p,l-1)-1):(a(p+1),t[p]=d),p++),v++;return p};t.exports=s},function(t,e,n){"use strict";var r=n(3),i=n(158),a=n(31),o=n(40),s=n(64),u=n(88);r({target:"Array",proto:!0},{flatMap:function(t){var e,n=o(this),r=s(n);return a(t),(e=u(n,0)).length=i(e,n,n,r,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,n){"use strict";var r=n(3),i=n(161);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,n){"use strict";var r=n(85).forEach,i=n(148)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,n){var r=n(3),i=n(163);r({target:"Array",stat:!0,forced:!n(165)((function(t){Array.from(t)}))},{from:i})},function(t,e,n){"use strict";var r=n(86),i=n(8),a=n(40),o=n(164),s=n(133),u=n(91),c=n(64),l=n(78),f=n(135),h=n(136),d=Array;t.exports=function(t){var e=a(t),n=u(this),g=arguments.length,p=g>1?arguments[1]:void 0,v=void 0!==p;v&&(p=r(p,g>2?arguments[2]:void 0));var y,x,_,m,b,w,T=h(e),A=0;if(!T||this===d&&s(T))for(y=c(e),x=n?new this(y):d(y);y>A;A++)w=v?p(e[A],A):e[A],l(x,A,w);else for(b=(m=f(e,T)).next,x=n?new this:[];!(_=i(b,m)).done;A++)w=v?o(m,p,[_.value,A],!0):_.value,l(x,A,w);return x.length=A,x}},function(t,e,n){var r=n(47),i=n(137);t.exports=function(t,e,n,a){try{return a?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},function(t,e,n){var r=n(34)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},t(a)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(3),i=n(60).includes,a=n(7),o=n(140);r({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,n){"use strict";var r=n(3),i=n(87),a=n(60).indexOf,o=n(148),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!o("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},function(t,e,n){n(3)({target:"Array",stat:!0},{isArray:n(90)})},function(t,e,n){"use strict";var r=n(12),i=n(140),a=n(134),o=n(52),s=n(45).f,u=n(170),c=n(173),l=n(36),f=n(6),h="Array Iterator",d=o.set,g=o.getterFor(h);t.exports=u(Array,"Array",(function(t,e){d(this,{type:h,target:r(t),index:0,kind:e})}),(function(){var t=g(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var p=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(36),o=n(50),s=n(21),u=n(171),c=n(130),l=n(116),f=n(84),h=n(44),d=n(48),g=n(34),p=n(134),v=n(172),y=o.PROPER,x=o.CONFIGURABLE,_=v.IteratorPrototype,m=v.BUGGY_SAFARI_ITERATORS,b=g("iterator"),w="keys",T="values",A="entries",S=function(){return this};t.exports=function(t,e,n,o,g,v,E){u(n,e,o);var M,k,O,R=function(t){if(t===g&&P)return P;if(!m&&t in L)return L[t];switch(t){case w:case T:case A:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",I=!1,L=t.prototype,D=L[b]||L["@@iterator"]||g&&L[g],P=!m&&D||R(g),F="Array"==e&&L.entries||D;if(F&&(M=c(F.call(new t)))!==Object.prototype&&M.next&&(a||c(M)===_||(l?l(M,_):s(M[b])||d(M,b,S)),f(M,C,!0,!0),a&&(p[C]=S)),y&&g==T&&D&&D.name!==T&&(!a&&x?h(L,"name",T):(I=!0,P=function(){return i(D,this)})),g)if(k={values:R(T),keys:v?P:R(w),entries:R(A)},E)for(O in k)(m||I||!(O in L))&&d(L,O,k[O]);else r({target:e,proto:!0,forced:m||I},k);return a&&!E||L[b]===P||d(L,b,P,{name:g}),p[e]=P,k}},function(t,e,n){"use strict";var r=n(172).IteratorPrototype,i=n(72),a=n(11),o=n(84),s=n(134),u=function(){return this};t.exports=function(t,e,n,c){var l=e+" Iterator";return t.prototype=i(r,{next:a(+!c,n)}),o(t,l,!1,!0),s[l]=u,t}},function(t,e,n){"use strict";var r,i,a,o=n(7),s=n(21),u=n(20),c=n(72),l=n(130),f=n(48),h=n(34),d=n(36),g=h("iterator"),p=!1;[].keys&&("next"in(a=[].keys())?(i=l(l(a)))!==Object.prototype&&(r=i):p=!0),!u(r)||o((function(){var t={};return r[g].call(t)!==t}))?r={}:d&&(r=c(r)),s(r[g])||f(r,g,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(t){t.exports=function(t,e){return{value:t,done:e}}},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(13),o=n(12),s=n(148),u=i([].join);r({target:"Array",proto:!0,forced:a!=Object||!s("join",",")},{join:function(t){return u(o(this),void 0===t?",":t)}})},function(t,e,n){var r=n(3),i=n(176);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,n){"use strict";var r=n(96),i=n(12),a=n(62),o=n(64),s=n(148),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),h=l||!f;t.exports=h?function(t){if(l)return r(c,this,arguments)||0;var e=i(this),n=o(e),s=n-1;for(arguments.length>1&&(s=u(s,a(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in e&&e[s]===t)return s||0;return-1}:c},function(t,e,n){"use strict";var r=n(3),i=n(85).map;r({target:"Array",proto:!0,forced:!n(143)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(91),o=n(78),s=Array;r({target:"Array",stat:!0,forced:i((function(){function t(){}return!(s.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,n=new(a(this)?this:s)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(64),o=n(180),s=n(142);r({target:"Array",proto:!0,arity:1,forced:n(7)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=a(e),r=arguments.length;s(n+r);for(var u=0;u<r;u++)e[n]=arguments[u],n++;return o(e,n),n}})},function(t,e,n){"use strict";var r=n(6),i=n(90),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!o(t,"length").writable)throw a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){"use strict";var r=n(3),i=n(182).left,a=n(148),o=n(28);r({target:"Array",proto:!0,forced:!n(183)&&o>79&&o<83||!a("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(31),i=n(40),a=n(13),o=n(64),s=TypeError,u=function(t){return function(e,n,u,c){r(n);var l=i(e),f=a(l),h=o(l),d=t?h-1:0,g=t?-1:1;if(u<2)for(;;){if(d in f){c=f[d],d+=g;break}if(d+=g,t?d<0:h<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:h>d;d+=g)d in f&&(c=n(c,f[d],d,l));return c}};t.exports={left:u(!1),right:u(!0)}},function(t,e,n){var r=n(15);t.exports="undefined"!=typeof process&&"process"==r(process)},function(t,e,n){"use strict";var r=n(3),i=n(182).right,a=n(148),o=n(28);r({target:"Array",proto:!0,forced:!n(183)&&o>79&&o<83||!a("reduceRight")},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(90),o=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},function(t,e,n){"use strict";var r=n(3),i=n(90),a=n(91),o=n(20),s=n(61),u=n(64),c=n(12),l=n(78),f=n(34),h=n(143),d=n(97),g=h("slice"),p=f("species"),v=Array,y=Math.max;r({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,r,f,h=c(this),g=u(h),x=s(t,g),_=s(void 0===e?g:e,g);if(i(h)&&(n=h.constructor,(a(n)&&(n===v||i(n.prototype))||o(n)&&null===(n=n[p]))&&(n=void 0),n===v||void 0===n))return d(h,x,_);for(r=new(void 0===n?v:n)(y(_-x,0)),f=0;x<_;x++,f++)x in h&&l(r,f,h[x]);return r.length=f,r}})},function(t,e,n){"use strict";var r=n(3),i=n(85).some;r({target:"Array",proto:!0,forced:!n(148)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(31),o=n(40),s=n(64),u=n(146),c=n(69),l=n(7),f=n(189),h=n(148),d=n(190),g=n(191),p=n(28),v=n(192),y=[],x=i(y.sort),_=i(y.push),m=l((function(){y.sort(void 0)})),b=l((function(){y.sort(null)})),w=h("sort"),T=!l((function(){if(p)return p<70;if(!(d&&d>3)){if(g)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;r<y.length;r++)e=y[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:m||!b||!w||!T},{sort:function(t){void 0!==t&&a(t);var e=o(this);if(T)return void 0===t?x(e):x(e,t);var n,r,i=[],l=s(e);for(r=0;r<l;r++)r in e&&_(i,e[r]);for(f(i,function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:c(e)>c(n)?1:-1}}(t)),n=s(i),r=0;r<n;)e[r]=i[r++];for(;r<l;)u(e,r++);return e}})},function(t,e,n){var r=n(77),i=Math.floor,a=function(t,e){var n=t.length,u=i(n/2);return n<8?o(t,e):s(t,a(r(t,0,u),e),a(r(t,u),e),e)},o=function(t,e){for(var n,r,i=t.length,a=1;a<i;){for(r=a,n=t[a];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==a++&&(t[r]=n)}return t},s=function(t,e,n,r){for(var i=e.length,a=n.length,o=0,s=0;o<i||s<a;)t[o+s]=o<i&&s<a?r(e[o],n[s])<=0?e[o++]:n[s++]:o<i?e[o++]:n[s++];return t};t.exports=a},function(t,e,n){var r=n(29).match(/firefox\/(\d+)/i);t.exports=!!r&&+r[1]},function(t,e,n){var r=n(29);t.exports=/MSIE|Trident/.test(r)},function(t,e,n){var r=n(29).match(/AppleWebKit\/(\d+)\./);t.exports=!!r&&+r[1]},function(t,e,n){n(194)("Array")},function(t,e,n){"use strict";var r=n(24),i=n(79),a=n(34),o=n(6),s=a("species");t.exports=function(t){var e=r(t);o&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(61),o=n(62),s=n(64),u=n(180),c=n(142),l=n(88),f=n(78),h=n(146),d=n(143)("splice"),g=Math.max,p=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,v,y,x,_=i(this),m=s(_),b=a(t,m),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=m-b):(n=w-2,r=p(g(o(e),0),m-b)),c(m+n-r),d=l(_,r),v=0;v<r;v++)(y=b+v)in _&&f(d,v,_[y]);if(d.length=r,n<r){for(v=b;v<m-r;v++)x=v+n,(y=v+r)in _?_[x]=_[y]:h(_,x);for(v=m;v>m-r+n;v--)h(_,v-1)}else if(n>r)for(v=m-r;v>b;v--)x=v+n-1,(y=v+r-1)in _?_[x]=_[y]:h(_,x);for(v=0;v<n;v++)_[v+b]=arguments[v+2];return u(_,m-r+n),d}})},function(t,e,n){"use strict";var r=n(3),i=n(197),a=n(12),o=n(140),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(a(this),s)}}),o("toReversed")},function(t,e,n){var r=n(64);t.exports=function(t,e){for(var n=r(t),i=new e(n),a=0;a<n;a++)i[a]=t[n-a-1];return i}},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(31),o=n(12),s=n(199),u=n(200),c=n(140),l=Array,f=i(u("Array").sort);r({target:"Array",proto:!0},{toSorted:function(t){void 0!==t&&a(t);var e=o(this),n=s(l,e);return f(n,t)}}),c("toSorted")},function(t,e,n){var r=n(64);t.exports=function(t,e){for(var n=0,i=r(e),a=new t(i);i>n;)a[n]=e[n++];return a}},function(t,e,n){var r=n(4);t.exports=function(t){return r[t].prototype}},function(t,e,n){"use strict";var r=n(3),i=n(140),a=n(142),o=n(64),s=n(61),u=n(12),c=n(62),l=Array,f=Math.max,h=Math.min;r({target:"Array",proto:!0},{toSpliced:function(t,e){var n,r,i,d,g=u(this),p=o(g),v=s(t,p),y=arguments.length,x=0;for(0===y?n=r=0:1===y?(n=0,r=p-v):(n=y-2,r=h(f(c(e),0),p-v)),i=a(p+n-r),d=l(i);x<v;x++)d[x]=g[x];for(;x<v+n;x++)d[x]=arguments[x-v+2];for(;x<i;x++)d[x]=g[x+r-n];return d}}),i("toSpliced")},function(t,e,n){n(140)("flat")},function(t,e,n){n(140)("flatMap")},function(t,e,n){"use strict";var r=n(3),i=n(40),a=n(64),o=n(180),s=n(146),u=n(142);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}()},{unshift:function(t){var e=i(this),n=a(e),r=arguments.length;if(r){u(n+r);for(var c=n;c--;){var l=c+r;c in e?e[l]=e[c]:s(e,l)}for(var f=0;f<r;f++)e[f]=arguments[f]}return o(e,n+r)}})},function(t,e,n){"use strict";var r=n(3),i=n(206),a=n(12),o=Array;r({target:"Array",proto:!0},{with:function(t,e){return i(a(this),o,t,e)}})},function(t,e,n){var r=n(64),i=n(62),a=RangeError;t.exports=function(t,e,n,o){var s=r(t),u=i(n),c=u<0?s+u:u;if(c>=s||c<0)throw a("Incorrect index");for(var l=new e(s),f=0;f<s;f++)l[f]=f===c?o:t[f];return l}},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(208),o=n(194),s="ArrayBuffer",u=a[s];r({global:!0,constructor:!0,forced:i[s]!==u},{ArrayBuffer:u}),o(s)},function(t,e,n){"use strict";var r=n(4),i=n(14),a=n(6),o=n(209),s=n(50),u=n(44),c=n(79),l=n(210),f=n(7),h=n(211),d=n(62),g=n(65),p=n(212),v=n(213),y=n(130),x=n(116),_=n(58).f,m=n(150),b=n(77),w=n(84),T=n(52),A=s.PROPER,S=s.CONFIGURABLE,E="ArrayBuffer",M="DataView",k="prototype",O="Wrong index",R=T.getterFor(E),C=T.getterFor(M),I=T.set,L=r[E],D=L,P=D&&D[k],F=r[M],z=F&&F[k],N=Object.prototype,B=r.Array,X=r.RangeError,j=i(m),U=i([].reverse),$=v.pack,Y=v.unpack,V=function(t){return[255&t]},G=function(t){return[255&t,t>>8&255]},H=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},W=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},q=function(t){return $(t,23,4)},Z=function(t){return $(t,52,8)},K=function(t,e,n){c(t[k],e,{configurable:!0,get:function(){return n(this)[e]}})},J=function(t,e,n,r){var i=p(n),a=C(t);if(i+e>a.byteLength)throw X(O);var o=a.bytes,s=i+a.byteOffset,u=b(o,s,s+e);return r?u:U(u)},Q=function(t,e,n,r,i,a){var o=p(n),s=C(t);if(o+e>s.byteLength)throw X(O);for(var u=s.bytes,c=o+s.byteOffset,l=r(+i),f=0;f<e;f++)u[c+f]=l[a?f:e-f-1]};if(o){var tt=A&&L.name!==E;if(f((function(){L(1)}))&&f((function(){new L(-1)}))&&!f((function(){return new L,new L(1.5),new L(NaN),1!=L.length||tt&&!S})))tt&&S&&u(L,"name",E);else{(D=function(t){return h(this,P),new L(p(t))})[k]=P;for(var et,nt=_(L),rt=0;nt.length>rt;)(et=nt[rt++])in D||u(D,et,L[et]);P.constructor=D}x&&y(z)!==N&&x(z,N);var it=new F(new D(2)),at=i(z.setInt8);it.setInt8(0,2147483648),it.setInt8(1,2147483649),!it.getInt8(0)&&it.getInt8(1)||l(z,{setInt8:function(t,e){at(this,t,e<<24>>24)},setUint8:function(t,e){at(this,t,e<<24>>24)}},{unsafe:!0})}else P=(D=function(t){h(this,P);var e=p(t);I(this,{type:E,bytes:j(B(e),0),byteLength:e}),a||(this.byteLength=e,this.detached=!1)})[k],z=(F=function(t,e,n){h(this,z),h(t,P);var r=R(t),i=r.byteLength,o=d(e);if(o<0||o>i)throw X("Wrong offset");if(o+(n=void 0===n?i-o:g(n))>i)throw X("Wrong length");I(this,{type:M,buffer:t,byteLength:n,byteOffset:o,bytes:r.bytes}),a||(this.buffer=t,this.byteLength=n,this.byteOffset=o)})[k],a&&(K(D,"byteLength",R),K(F,"buffer",C),K(F,"byteLength",C),K(F,"byteOffset",C)),l(z,{getInt8:function(t){return J(this,1,t)[0]<<24>>24},getUint8:function(t){return J(this,1,t)[0]},getInt16:function(t){var e=J(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=J(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return W(J(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return W(J(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Y(J(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Y(J(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Q(this,1,t,V,e)},setUint8:function(t,e){Q(this,1,t,V,e)},setInt16:function(t,e){Q(this,2,t,G,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Q(this,2,t,G,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Q(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Q(this,4,t,H,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Q(this,4,t,q,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Q(this,8,t,Z,e,arguments.length>2?arguments[2]:void 0)}});w(D,E),w(F,M),t.exports={ArrayBuffer:D,DataView:F}},function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,n){var r=n(48);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){var r=n(25),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},function(t,e,n){var r=n(62),i=n(65),a=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=i(e);if(e!==n)throw a("Wrong length or index");return n}},function(t){var e=Array,n=Math.abs,r=Math.pow,i=Math.floor,a=Math.log,o=Math.LN2;t.exports={pack:function(t,s,u){var c,l,f,h=e(u),d=8*u-s-1,g=(1<<d)-1,p=g>>1,v=23===s?r(2,-24)-r(2,-77):0,y=t<0||0===t&&1/t<0?1:0,x=0;for((t=n(t))!=t||t===1/0?(l=t!=t?1:0,c=g):(c=i(a(t)/o),t*(f=r(2,-c))<1&&(c--,f*=2),(t+=c+p>=1?v/f:v*r(2,1-p))*f>=2&&(c++,f/=2),c+p>=g?(l=0,c=g):c+p>=1?(l=(t*f-1)*r(2,s),c+=p):(l=t*r(2,p-1)*r(2,s),c=0));s>=8;)h[x++]=255&l,l/=256,s-=8;for(c=c<<s|l,d+=s;d>0;)h[x++]=255&c,c/=256,d-=8;return h[--x]|=128*y,h},unpack:function(t,e){var n,i=t.length,a=8*i-e-1,o=(1<<a)-1,s=o>>1,u=a-7,c=i-1,l=t[c--],f=127&l;for(l>>=7;u>0;)f=256*f+t[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=e;u>0;)n=256*n+t[c--],u-=8;if(0===f)f=1-s;else{if(f===o)return n?NaN:l?-1/0:1/0;n+=r(2,e),f-=s}return(l?-1:1)*n*r(2,f-e)}}},function(t,e,n){var r=n(3),i=n(215);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,n){"use strict";var r,i,a,o=n(209),s=n(6),u=n(4),c=n(21),l=n(20),f=n(39),h=n(70),d=n(32),g=n(44),p=n(48),v=n(79),y=n(25),x=n(130),_=n(116),m=n(34),b=n(41),w=n(52),T=w.enforce,A=w.get,S=u.Int8Array,E=S&&S.prototype,M=u.Uint8ClampedArray,k=M&&M.prototype,O=S&&x(S),R=E&&x(E),C=Object.prototype,I=u.TypeError,L=m("toStringTag"),D=b("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",F=o&&!!_&&"Opera"!==h(u.opera),z=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},B={BigInt64Array:8,BigUint64Array:8},X=function(t){var e=x(t);if(l(e)){var n=A(e);return n&&f(n,P)?n[P]:X(e)}},j=function(t){if(!l(t))return!1;var e=h(t);return f(N,e)||f(B,e)};for(r in N)(a=(i=u[r])&&i.prototype)?T(a)[P]=i:F=!1;for(r in B)(a=(i=u[r])&&i.prototype)&&(T(a)[P]=i);if((!F||!c(O)||O===Function.prototype)&&(O=function(){throw I("Incorrect invocation")},F))for(r in N)u[r]&&_(u[r],O);if((!F||!R||R===C)&&(R=O.prototype,F))for(r in N)u[r]&&_(u[r].prototype,R);if(F&&x(k)!==R&&_(k,R),s&&!f(R,L))for(r in z=!0,v(R,L,{configurable:!0,get:function(){return l(this)?this[D]:void 0}}),N)u[r]&&g(u[r],D,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:z&&D,aTypedArray:function(t){if(j(t))return t;throw I("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!_||y(O,t)))return t;throw I(d(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,n,r){if(s){if(n)for(var i in N){var a=u[i];if(a&&f(a.prototype,t))try{delete a.prototype[t]}catch(n){try{a.prototype[t]=e}catch(t){}}}R[t]&&!n||p(R,t,n?e:F&&E[t]||e,r)}},exportTypedArrayStaticMethod:function(t,e,n){var r,i;if(s){if(_){if(n)for(r in N)if((i=u[r])&&f(i,t))try{delete i[t]}catch(t){}if(O[t]&&!n)return;try{return p(O,t,n?e:F&&O[t]||e)}catch(t){}}for(r in N)!(i=u[r])||i[t]&&!n||p(i,t,e)}},getTypedArrayConstructor:X,isView:function(t){if(!l(t))return!1;var e=h(t);return"DataView"===e||f(N,e)||f(B,e)},isTypedArray:j,TypedArray:O,TypedArrayPrototype:R}},function(t,e,n){"use strict";var r=n(3),i=n(87),a=n(7),o=n(208),s=n(47),u=n(61),c=n(65),l=n(217),f=o.ArrayBuffer,h=o.DataView,d=h.prototype,g=i(f.prototype.slice),p=i(d.getUint8),v=i(d.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:a((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(g&&void 0===e)return g(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),a=new(l(this,f))(c(i-r)),o=new h(this),d=new h(a),y=0;r<i;)v(d,y++,p(o,r++));return a}})},function(t,e,n){var r=n(47),i=n(218),a=n(17),o=n(34)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||a(n=r(s)[o])?e:i(n)}},function(t,e,n){var r=n(91),i=n(32),a=TypeError;t.exports=function(t){if(r(t))return t;throw a(i(t)+" is not a constructor")}},function(t,e,n){n(220)},function(t,e,n){var r=n(3),i=n(208);r({global:!0,constructor:!0,forced:!n(209)},{DataView:i.DataView})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(7)((function(){return 120!==new Date(16e11).getYear()})),o=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}})},function(t,e,n){var r=n(3),i=n(14),a=Date,o=i(a.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return o(new a)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(62),o=Date.prototype,s=i(o.getTime),u=i(o.setFullYear);r({target:"Date",proto:!0},{setYear:function(t){s(this);var e=a(t);return u(this,0<=e&&e<=99?e+1900:e)}})},function(t,e,n){n(3)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(t,e,n){var r=n(3),i=n(226);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,n){"use strict";var r=n(14),i=n(7),a=n(227).start,o=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,f=r(c.getTime),h=r(c.getUTCDate),d=r(c.getUTCFullYear),g=r(c.getUTCHours),p=r(c.getUTCMilliseconds),v=r(c.getUTCMinutes),y=r(c.getUTCMonth),x=r(c.getUTCSeconds);t.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!i((function(){l.call(new Date(NaN))}))?function(){if(!s(f(this)))throw o("Invalid time value");var t=this,e=d(t),n=p(t),r=e<0?"-":e>9999?"+":"";return r+a(u(e),r?6:4,0)+"-"+a(y(t)+1,2,0)+"-"+a(h(t),2,0)+"T"+a(g(t),2,0)+":"+a(v(t),2,0)+":"+a(x(t),2,0)+"."+a(n,3,0)+"Z"}:l},function(t,e,n){var r=n(14),i=n(65),a=n(69),o=n(228),s=n(16),u=r(o),c=r("".slice),l=Math.ceil,f=function(t){return function(e,n,r){var o,f,h=a(s(e)),d=i(n),g=h.length,p=void 0===r?" ":a(r);return d<=g||""==p?h:((f=u(p,l((o=d-g)/p.length))).length>o&&(f=c(f,0,o)),t?h+f:f+h)}};t.exports={start:f(!1),end:f(!0)}},function(t,e,n){"use strict";var r=n(62),i=n(69),a=n(16),o=RangeError;t.exports=function(t){var e=i(a(this)),n="",s=r(t);if(s<0||s==1/0)throw o("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(3),i=n(7),a=n(40),o=n(19);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=a(this),n=o(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var r=n(39),i=n(48),a=n(231),o=n(34)("toPrimitive"),s=Date.prototype;r(s,o)||i(s,o,a)},function(t,e,n){"use strict";var r=n(47),i=n(33),a=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw a("Incorrect hint");return i(this,t)}},function(t,e,n){var r=n(14),i=n(48),a=Date.prototype,o="Invalid Date",s="toString",u=r(a[s]),c=r(a.getTime);String(new Date(NaN))!=o&&i(a,s,(function(){var t=c(this);return t==t?u(this):o}))},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(69),o=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1..toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,h=function(t,e){for(var n=c(t,16);n.length<e;)n="0"+n;return n};r({global:!0},{escape:function(t){for(var e,n,r=a(t),i="",c=r.length,d=0;d<c;)e=o(r,d++),u(f,e)?i+=e:i+=(n=s(e,0))<256?"%"+h(n,2):"%u"+l(h(n,4));return i}})},function(t,e,n){var r=n(3),i=n(235);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},function(t,e,n){"use strict";var r=n(14),i=n(31),a=n(20),o=n(39),s=n(97),u=n(9),c=Function,l=r([].concat),f=r([].join),h={};t.exports=u?c.bind:function(t){var e=i(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!o(h,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";h[e]=c("C,a","return new C("+f(r,",")+")")}return h[e](t,n)}(e,n.length,n):e.apply(t,n)};return a(n)&&(u.prototype=n),u}},function(t,e,n){"use strict";var r=n(21),i=n(20),a=n(45),o=n(130),s=n(34),u=n(49),c=s("hasInstance"),l=Function.prototype;c in l||a.f(l,c,{value:u((function(t){if(!r(this)||!i(t))return!1;var e=this.prototype;if(!i(e))return t instanceof this;for(;t=o(t);)if(e===t)return!0;return!1}),c)})},function(t,e,n){var r=n(6),i=n(50).EXISTS,a=n(14),o=n(79),s=Function.prototype,u=a(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=a(c.exec);r&&!i&&o(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},function(t,e,n){var r=n(3),i=n(4);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},function(t,e,n){var r=n(4);n(84)(r.JSON,"JSON",!0)},function(t,e,n){n(241)},function(t,e,n){"use strict";n(242)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(247))},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(14),o=n(68),s=n(48),u=n(243),c=n(132),l=n(211),f=n(21),h=n(17),d=n(20),g=n(7),p=n(165),v=n(84),y=n(120);t.exports=function(t,e,n){var x=-1!==t.indexOf("Map"),_=-1!==t.indexOf("Weak"),m=x?"set":"add",b=i[t],w=b&&b.prototype,T=b,A={},S=function(t){var e=a(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(_&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return _&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(_&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};if(o(t,!f(b)||!(_||w.forEach&&!g((function(){(new b).entries().next()})))))T=n.getConstructor(e,t,x,m),u.enable();else if(o(t,!0)){var E=new T,M=E[m](_?{}:-0,1)!=E,k=g((function(){E.has(1)})),O=p((function(t){new b(t)})),R=!_&&g((function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)}));O||((T=e((function(t,e){l(t,w);var n=y(new b,t,T);return h(e)||c(e,n[m],{that:n,AS_ENTRIES:x}),n}))).prototype=w,w.constructor=T),(k||R)&&(S("delete"),S("has"),x&&S("get")),(R||M)&&S(m),_&&w.clear&&delete w.clear}return A[t]=T,r({global:!0,constructor:!0,forced:T!=b},A),v(T,t),_||n.setStrong(T,t,x),T}},function(t,e,n){var r=n(3),i=n(14),a=n(55),o=n(20),s=n(39),u=n(45).f,c=n(58),l=n(76),f=n(244),h=n(41),d=n(246),g=!1,p=h("meta"),v=0,y=function(t){u(t,p,{value:{objectID:"O"+v++,weakData:{}}})},x=t.exports={enable:function(){x.enable=function(){},g=!0;var t=c.f,e=i([].splice),n={};n[p]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,a=r.length;i<a;i++)if(r[i]===p){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,p)){if(!f(t))return"F";if(!e)return"E";y(t)}return t[p].objectID},getWeakData:function(t,e){if(!s(t,p)){if(!f(t))return!0;if(!e)return!1;y(t)}return t[p].weakData},onFreeze:function(t){return d&&g&&f(t)&&!s(t,p)&&y(t),t}};a[p]=!0},function(t,e,n){var r=n(7),i=n(20),a=n(15),o=n(245),s=Object.isExtensible,u=r((function(){s(1)}));t.exports=u||o?function(t){return!!i(t)&&((!o||"ArrayBuffer"!=a(t))&&(!s||s(t)))}:s},function(t,e,n){var r=n(7);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},function(t,e,n){var r=n(7);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e,n){"use strict";var r=n(72),i=n(79),a=n(210),o=n(86),s=n(211),u=n(17),c=n(132),l=n(170),f=n(173),h=n(194),d=n(6),g=n(243).fastKey,p=n(52),v=p.set,y=p.getterFor;t.exports={getConstructor:function(t,e,n,l){var f=t((function(t,i){s(t,h),v(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),u(i)||c(i,t[l],{that:t,AS_ENTRIES:n})})),h=f.prototype,p=y(e),x=function(t,e,n){var r,i,a=p(t),o=_(t,e);return o?o.value=n:(a.last=o={index:i=g(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=o),r&&(r.next=o),d?a.size++:t.size++,"F"!==i&&(a.index[i]=o)),t},_=function(t,e){var n,r=p(t),i=g(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return a(h,{clear:function(){for(var t=p(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,d?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=_(e,t);if(r){var i=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first==r&&(n.first=i),n.last==r&&(n.last=a),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=p(this),r=o(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!_(this,t)}}),a(h,n?{get:function(t){var e=_(this,t);return e&&e.value},set:function(t,e){return x(this,0===t?0:t,e)}}:{add:function(t){return x(this,t=0===t?0:t,t)}}),d&&i(h,"size",{configurable:!0,get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",i=y(e),a=y(r);l(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=a(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?f("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){var r=n(3),i=n(249),a=Math.acosh,o=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!a||710!=Math.floor(a(Number.MAX_VALUE))||a(1/0)!=1/0},{acosh:function(t){var e=+t;return e<1?NaN:e>94906265.62425156?o(e)+u:i(e-1+s(e-1)*s(e+1))}})},function(t){var e=Math.log;t.exports=Math.log1p||function(t){var n=+t;return n>-1e-8&&n<1e-8?n-n*n/2:e(1+n)}},function(t,e,n){var r=n(3),i=Math.asinh,a=Math.log,o=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){var n=+e;return isFinite(n)&&0!=n?n<0?-t(-n):a(n+o(n*n+1)):n}})},function(t,e,n){var r=n(3),i=Math.atanh,a=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){var e=+t;return 0==e?e:a((1+e)/(1-e))/2}})},function(t,e,n){var r=n(3),i=n(253),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(t){var e=+t;return i(e)*o(a(e),1/3)}})},function(t){t.exports=Math.sign||function(t){var e=+t;return 0==e||e!=e?e:e<0?-1:1}},function(t,e,n){var r=n(3),i=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(t){var e=t>>>0;return e?31-i(a(e+.5)*o):32}})},function(t,e,n){var r=n(3),i=n(256),a=Math.cosh,o=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!a||a(710)===1/0},{cosh:function(t){var e=i(o(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t){var e=Math.expm1,n=Math.exp;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){var e=+t;return 0==e?e:e>-1e-6&&e<1e-6?e+e*e/2:n(e)-1}:e},function(t,e,n){var r=n(3),i=n(256);r({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,n){n(3)({target:"Math",stat:!0},{fround:n(259)})},function(t,e,n){var r=n(253),i=Math.abs,a=Math.pow,o=a(2,-52),s=a(2,-23),u=a(2,127)*(2-s),c=a(2,-126);t.exports=Math.fround||function(t){var e,n,a=+t,l=i(a),f=r(a);return l<c?f*function(t){return t+1/o-1/o}(l/c/s)*c*s:(n=(e=(1+s/o)*l)-(e-l))>u||n!=n?f*(1/0):f*n}},function(t,e,n){var r=n(3),i=Math.hypot,a=Math.abs,o=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=a(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*o(i)}})},function(t,e,n){var r=n(3),i=n(7),a=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!=a(4294967295,5)||2!=a.length}))},{imul:function(t,e){var n=65535,r=+t,i=+e,a=n&r,o=n&i;return 0|a*o+((n&r>>>16)*o+a*(n&i>>>16)<<16>>>0)}})},function(t,e,n){n(3)({target:"Math",stat:!0},{log10:n(263)})},function(t){var e=Math.log,n=Math.LOG10E;t.exports=Math.log10||function(t){return e(t)*n}},function(t,e,n){n(3)({target:"Math",stat:!0},{log1p:n(249)})},function(t,e,n){var r=n(3),i=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(t){return i(t)/a}})},function(t,e,n){n(3)({target:"Math",stat:!0},{sign:n(253)})},function(t,e,n){var r=n(3),i=n(7),a=n(256),o=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return o(e)<1?(a(e)-a(-e))/2:(s(e-1)-s(-e-1))*(u/2)}})},function(t,e,n){var r=n(3),i=n(256),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(t){var e=+t,n=i(e),r=i(-e);return n==1/0?1:r==1/0?-1:(n-r)/(a(e)+a(-e))}})},function(t,e,n){n(84)(Math,"Math",!0)},function(t,e,n){n(3)({target:"Math",stat:!0},{trunc:n(63)})},function(t,e,n){"use strict";var r=n(3),i=n(36),a=n(6),o=n(4),s=n(82),u=n(14),c=n(68),l=n(39),f=n(120),h=n(25),d=n(23),g=n(19),p=n(7),v=n(58).f,y=n(5).f,x=n(45).f,_=n(272),m=n(273).trim,b="Number",w=o[b],T=s[b],A=w.prototype,S=o.TypeError,E=u("".slice),M=u("".charCodeAt),k=function(t){var e,n,r,i,a,o,s,u,c=g(t,"number");if(d(c))throw S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=m(c),43===(e=M(c,0))||45===e){if(88===(n=M(c,2))||120===n)return NaN}else if(48===e){switch(M(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(o=(a=E(c,2)).length,s=0;s<o;s++)if((u=M(a,s))<48||u>i)return NaN;return parseInt(a,r)}return+c},O=c(b,!w(" 0o1")||!w("0b1")||w("+0x1")),R=function(t){var e,n=arguments.length<1?0:w(function(t){var e=g(t,"number");return"bigint"==typeof e?e:k(e)}(t));return h(A,e=this)&&p((function(){_(e)}))?f(Object(n),this,R):n};R.prototype=A,O&&!i&&(A.constructor=R),r({global:!0,constructor:!0,wrap:!0,forced:O},{Number:R});var C=function(t,e){for(var n,r=a?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(e,n=r[i])&&!l(t,n)&&x(t,n,y(e,n))};i&&T&&C(s[b],T),(O||i)&&C(s[b],w)},function(t,e,n){var r=n(14);t.exports=r(1..valueOf)},function(t,e,n){var r=n(14),i=n(16),a=n(69),o=n(274),s=r("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(t){return function(e){var n=a(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:l(1),end:l(2),trim:l(3)}},function(t){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,n){n(3)({target:"Number",stat:!0},{isFinite:n(277)})},function(t,e,n){var r=n(4).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&r(t)}},function(t,e,n){n(3)({target:"Number",stat:!0},{isInteger:n(279)})},function(t,e,n){var r=n(20),i=Math.floor;t.exports=Number.isInteger||function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){n(3)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(3),i=n(279),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&a(t)<=9007199254740991}})},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){n(3)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(3),i=n(285);r({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(4),i=n(7),a=n(14),o=n(69),s=n(273).trim,u=n(274),c=a("".charAt),l=r.parseFloat,f=r.Symbol,h=f&&f.iterator,d=1/l(u+"-0")!=-1/0||h&&!i((function(){l(Object(h))}));t.exports=d?function(t){var e=s(o(t)),n=l(e);return 0===n&&"-"==c(e,0)?-0:n}:l},function(t,e,n){var r=n(3),i=n(287);r({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,n){var r=n(4),i=n(7),a=n(14),o=n(69),s=n(273).trim,u=n(274),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,h=/^[+-]?0x/i,d=a(h.exec),g=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));t.exports=g?function(t,e){var n=s(o(t));return c(n,e>>>0||(d(h,n)?16:10))}:c},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(62),o=n(272),s=n(228),u=n(263),c=n(7),l=RangeError,f=String,h=isFinite,d=Math.abs,g=Math.floor,p=Math.pow,v=Math.round,y=i(1..toExponential),x=i(s),_=i("".slice),m="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0);r({target:"Number",proto:!0,forced:!m||!(c((function(){y(1,1/0)}))&&c((function(){y(1,-1/0)})))||!!c((function(){y(1/0,1/0),y(NaN,1/0)}))},{toExponential:function(t){var e=o(this);if(void 0===t)return y(e);var n=a(t);if(!h(e))return String(e);if(n<0||n>20)throw l("Incorrect fraction digits");if(m)return y(e,n);var r="",i="",s=0,c="",b="";if(e<0&&(r="-",e=-e),0===e)s=0,i=x("0",n+1);else{var w=u(e);s=g(w);var T=0,A=p(10,s-n);2*e>=(2*(T=v(e/A))+1)*A&&(T+=1),T>=p(10,n+1)&&(T/=10,s+=1),i=f(T)}return 0!==n&&(i=_(i,0,1)+"."+_(i,1)),0===s?(c="+",b="0"):(c=s>0?"+":"-",b=f(d(s))),r+(i+="e"+c+b)}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(62),o=n(272),s=n(228),u=n(7),c=RangeError,l=String,f=Math.floor,h=i(s),d=i("".slice),g=i(1..toFixed),p=function(t,e,n){return 0===e?n:e%2==1?p(t,e-1,n*t):p(t*t,e/2,n)},v=function(t,e,n){for(var r=-1,i=n;++r<6;)i+=e*t[r],t[r]=i%1e7,i=f(i/1e7)},y=function(t,e){for(var n=6,r=0;--n>=0;)r+=t[n],t[n]=f(r/e),r=r%e*1e7},x=function(t){for(var e=6,n="";--e>=0;)if(""!==n||0===e||0!==t[e]){var r=l(t[e]);n=""===n?r:n+h("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!u((function(){g({})}))},{toFixed:function(t){var e,n,r,i,s=o(this),u=a(t),f=[0,0,0,0,0,0],g="",_="0";if(u<0||u>20)throw c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(g="-",s=-s),s>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(s*p(2,69,1))-69)<0?s*p(2,-e,1):s/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(v(f,0,n),r=u;r>=7;)v(f,1e7,0),r-=7;for(v(f,p(10,r,1),0),r=e-1;r>=23;)y(f,1<<23),r-=23;y(f,1<<r),v(f,1,1),y(f,2),_=x(f)}else v(f,0,n),v(f,1<<-e,0),_=x(f)+h("0",u);return _=u>0?g+((i=_.length)<=u?"0."+h("0",u-i)+_:d(_,0,i-u)+"."+d(_,i-u)):g+_}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(7),o=n(272),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:a((function(){return"1"!==s(1,void 0)}))||!a((function(){s({})}))},{toPrecision:function(t){return void 0===t?s(o(this)):s(o(this),t)}})},function(t,e,n){var r=n(3),i=n(292);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},function(t,e,n){"use strict";var r=n(6),i=n(14),a=n(8),o=n(7),s=n(74),u=n(67),c=n(10),l=n(40),f=n(13),h=Object.assign,d=Object.defineProperty,g=i([].concat);t.exports=!h||o((function(){if(r&&1!==h({b:1},h(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=h({},t)[n]||s(h({},e)).join("")!=i}))?function(t,e){for(var n=l(t),i=arguments.length,o=1,h=u.f,d=c.f;i>o;)for(var p,v=f(arguments[o++]),y=h?g(s(v),h(v)):s(v),x=y.length,_=0;x>_;)p=y[_++],r&&!a(d,v,p)||(n[p]=v[p]);return n}:h},function(t,e,n){n(3)({target:"Object",stat:!0,sham:!n(6)},{create:n(72)})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(295),o=n(31),s=n(40),u=n(45);i&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(t,e){u.f(s(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(36),i=n(4),a=n(7),o=n(192);t.exports=r||!a((function(){if(!(o&&o<535)){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}}))},function(t,e,n){var r=n(3),i=n(6),a=n(73).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!i},{defineProperties:a})},function(t,e,n){var r=n(3),i=n(6),a=n(45).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!i},{defineProperty:a})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(295),o=n(31),s=n(40),u=n(45);i&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(t,e){u.f(s(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){var r=n(3),i=n(300).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,n){var r=n(6),i=n(14),a=n(74),o=n(12),s=i(n(10).f),u=i([].push),c=function(t){return function(e){for(var n,i=o(e),c=a(i),l=c.length,f=0,h=[];l>f;)n=c[f++],r&&!s(i,n)||u(h,t?[n,i[n]]:i[n]);return h}};t.exports={entries:c(!0),values:c(!1)}},function(t,e,n){var r=n(3),i=n(246),a=n(7),o=n(20),s=n(243).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){u(1)})),sham:!i},{freeze:function(t){return u&&o(t)?u(s(t)):t}})},function(t,e,n){var r=n(3),i=n(132),a=n(78);r({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,n){a(e,t,n)}),{AS_ENTRIES:!0}),e}})},function(t,e,n){var r=n(3),i=n(7),a=n(12),o=n(5).f,s=n(6);r({target:"Object",stat:!0,forced:!s||i((function(){o(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return o(a(t),e)}})},function(t,e,n){var r=n(3),i=n(6),a=n(57),o=n(12),s=n(5),u=n(78);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),i=s.f,c=a(r),l={},f=0;c.length>f;)void 0!==(n=i(r,e=c[f++]))&&u(l,e,n);return l}})},function(t,e,n){var r=n(3),i=n(7),a=n(76).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:a})},function(t,e,n){var r=n(3),i=n(7),a=n(40),o=n(130),s=n(131);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(t){return o(a(t))}})},function(t,e,n){n(3)({target:"Object",stat:!0},{hasOwn:n(39)})},function(t,e,n){n(3)({target:"Object",stat:!0},{is:n(309)})},function(t){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var r=n(3),i=n(244);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(t,e,n){var r=n(3),i=n(7),a=n(20),o=n(15),s=n(245),u=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isFrozen:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(3),i=n(7),a=n(20),o=n(15),s=n(245),u=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isSealed:function(t){return!a(t)||(!(!s||"ArrayBuffer"!=o(t))||!!u&&u(t))}})},function(t,e,n){var r=n(3),i=n(40),a=n(74);r({target:"Object",stat:!0,forced:n(7)((function(){a(1)}))},{keys:function(t){return a(i(t))}})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(295),o=n(40),s=n(18),u=n(130),c=n(5).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.get}while(n=u(n))}})},function(t,e,n){"use strict";var r=n(3),i=n(6),a=n(295),o=n(40),s=n(18),u=n(130),c=n(5).f;i&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(t){var e,n=o(this),r=s(t);do{if(e=c(n,r))return e.set}while(n=u(n))}})},function(t,e,n){var r=n(3),i=n(20),a=n(243).onFreeze,o=n(246),s=n(7),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{preventExtensions:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){"use strict";var r=n(6),i=n(79),a=n(20),o=n(40),s=n(16),u=Object.getPrototypeOf,c=Object.setPrototypeOf,l=Object.prototype,f="__proto__";if(r&&u&&c&&!(f in l))try{i(l,f,{configurable:!0,get:function(){return u(o(this))},set:function(t){var e=s(this);(a(t)||null===t)&&a(e)&&c(e,t)}})}catch(t){}},function(t,e,n){var r=n(3),i=n(20),a=n(243).onFreeze,o=n(246),s=n(7),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!o},{seal:function(t){return u&&i(t)?u(a(t)):t}})},function(t,e,n){n(3)({target:"Object",stat:!0},{setPrototypeOf:n(116)})},function(t,e,n){var r=n(71),i=n(48),a=n(321);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(t,e,n){"use strict";var r=n(71),i=n(70);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,n){var r=n(3),i=n(300).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,n){var r=n(3),i=n(285);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,n){var r=n(3),i=n(287);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,n){n(326),n(341),n(343),n(344),n(345),n(346)},function(t,e,n){"use strict";var r,i,a,o=n(3),s=n(36),u=n(183),c=n(4),l=n(8),f=n(48),h=n(116),d=n(84),g=n(194),p=n(31),v=n(21),y=n(20),x=n(211),_=n(217),m=n(327).set,b=n(330),w=n(334),T=n(335),A=n(331),S=n(52),E=n(336),M=n(337),k=n(340),O="Promise",R=M.CONSTRUCTOR,C=M.REJECTION_EVENT,I=M.SUBCLASSING,L=S.getterFor(O),D=S.set,P=E&&E.prototype,F=E,z=P,N=c.TypeError,B=c.document,X=c.process,j=k.f,U=j,$=!!(B&&B.createEvent&&c.dispatchEvent),Y="unhandledrejection",V=function(t){var e;return!(!y(t)||!v(e=t.then))&&e},G=function(t,e){var n,r,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{s?(o||(2===e.rejection&&K(e),e.rejection=1),!0===s?n=a:(f&&f.enter(),n=s(a),f&&(f.exit(),i=!0)),n===t.promise?c(N("Promise-chain cycle")):(r=V(n))?l(r,n,u,c):u(n)):c(a)}catch(t){f&&!i&&f.exit(),c(t)}},H=function(t,e){t.notified||(t.notified=!0,b((function(){for(var n,r=t.reactions;n=r.get();)G(n,t);t.notified=!1,e&&!t.rejection&&q(t)})))},W=function(t,e,n){var r,i;$?((r=B.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!C&&(i=c["on"+t])?i(r):t===Y&&w("Unhandled promise rejection",n)},q=function(t){l(m,c,(function(){var e,n=t.facade,r=t.value;if(Z(t)&&(e=T((function(){u?X.emit("unhandledRejection",r,n):W(Y,n,r)})),t.rejection=u||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},K=function(t){l(m,c,(function(){var e=t.facade;u?X.emit("rejectionHandled",e):W("rejectionhandled",e,t.value)}))},J=function(t,e,n){return function(r){t(e,r,n)}},Q=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,H(t,!0))},tt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw N("Promise can't be resolved itself");var r=V(e);r?b((function(){var n={done:!1};try{l(r,e,J(tt,n,t),J(Q,n,t))}catch(e){Q(n,e,t)}})):(t.value=e,t.state=1,H(t,!1))}catch(e){Q({done:!1},e,t)}}};if(R&&(z=(F=function(t){x(this,z),p(t),l(r,this);var e=L(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(r=function(t){D(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=f(z,"then",(function(t,e){var n=L(this),r=j(_(this,F));return n.parent=!0,r.ok=!v(t)||t,r.fail=v(e)&&e,r.domain=u?X.domain:void 0,0==n.state?n.reactions.add(r):b((function(){G(r,n)})),r.promise})),i=function(){var t=new r,e=L(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},k.f=j=function(t){return t===F||undefined===t?new i(t):U(t)},!s&&v(E)&&P!==Object.prototype)){a=P.then,I||f(P,"then",(function(t,e){var n=this;return new F((function(t,e){l(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete P.constructor}catch(t){}h&&h(P,z)}o({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:F}),d(F,O,!1,!0),g(O)},function(t,e,n){var r,i,a,o,s=n(4),u=n(96),c=n(86),l=n(21),f=n(39),h=n(7),d=n(75),g=n(97),p=n(43),v=n(328),y=n(329),x=n(183),_=s.setImmediate,m=s.clearImmediate,b=s.process,w=s.Dispatch,T=s.Function,A=s.MessageChannel,S=s.String,E=0,M={},k="onreadystatechange";h((function(){r=s.location}));var O=function(t){if(f(M,t)){var e=M[t];delete M[t],e()}},R=function(t){return function(){O(t)}},C=function(t){O(t.data)},I=function(t){s.postMessage(S(t),r.protocol+"//"+r.host)};_&&m||(_=function(t){v(arguments.length,1);var e=l(t)?t:T(t),n=g(arguments,1);return M[++E]=function(){u(e,void 0,n)},i(E),E},m=function(t){delete M[t]},x?i=function(t){b.nextTick(R(t))}:w&&w.now?i=function(t){w.now(R(t))}:A&&!y?(o=(a=new A).port2,a.port1.onmessage=C,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(I)?(i=I,s.addEventListener("message",C,!1)):i=k in p("script")?function(t){d.appendChild(p("script"))[k]=function(){d.removeChild(this),O(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:_,clear:m}},function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},function(t,e,n){var r=n(29);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(t,e,n){var r,i,a,o,s,u=n(4),c=n(86),l=n(5).f,f=n(327).set,h=n(331),d=n(329),g=n(332),p=n(333),v=n(183),y=u.MutationObserver||u.WebKitMutationObserver,x=u.document,_=u.process,m=u.Promise,b=l(u,"queueMicrotask"),w=b&&b.value;if(!w){var T=new h,A=function(){var t,e;for(v&&(t=_.domain)&&t.exit();e=T.get();)try{e()}catch(t){throw T.head&&r(),t}t&&t.enter()};d||v||p||!y||!x?!g&&m&&m.resolve?((o=m.resolve(void 0)).constructor=m,s=c(o.then,o),r=function(){s(A)}):v?r=function(){_.nextTick(A)}:(f=c(f,u),r=function(){f(A)}):(i=!0,a=x.createTextNode(""),new y(A).observe(a,{characterData:!0}),r=function(){a.data=i=!i}),w=function(t){T.head||r(),T.add(t)}}t.exports=w},function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},function(t,e,n){var r=n(29);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},function(t,e,n){var r=n(29);t.exports=/web0s(?!.*chrome)/i.test(r)},function(t){t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}},function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){var r=n(4);t.exports=r.Promise},function(t,e,n){var r=n(4),i=n(336),a=n(21),o=n(68),s=n(51),u=n(34),c=n(338),l=n(339),f=n(36),h=n(28),d=i&&i.prototype,g=u("species"),p=!1,v=a(r.PromiseRejectionEvent),y=o("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(f&&(!d.catch||!d.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[g]=r,!(p=n.then((function(){}))instanceof r))return!0}return!e&&(c||l)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:p}},function(t,e,n){var r=n(339),i=n(183);t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},function(t){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,n){"use strict";var r=n(31),i=TypeError,a=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new a(t)}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(340),s=n(335),u=n(132);r({target:"Promise",stat:!0,forced:n(342)},{all:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,l=1;u(t,(function(t){var a=s++,u=!1;l++,i(n,e,t).then((function(t){u||(u=!0,o[a]=t,--l||r(o))}),c)})),--l||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){var r=n(336),i=n(165),a=n(337).CONSTRUCTOR;t.exports=a||!i((function(t){r.all(t).then(void 0,(function(){}))}))},function(t,e,n){"use strict";var r=n(3),i=n(36),a=n(337).CONSTRUCTOR,o=n(336),s=n(24),u=n(21),c=n(48),l=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(o)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(340),s=n(335),u=n(132);r({target:"Promise",stat:!0,forced:n(342)},{race:function(t){var e=this,n=o.f(e),r=n.reject,c=s((function(){var o=a(e.resolve);u(t,(function(t){i(o,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(340);r({target:"Promise",stat:!0,forced:n(337).CONSTRUCTOR},{reject:function(t){var e=a.f(this);return i(e.reject,void 0,t),e.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(24),a=n(36),o=n(336),s=n(337).CONSTRUCTOR,u=n(347),c=i("Promise"),l=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(t){return u(l&&this===c?o:this,t)}})},function(t,e,n){var r=n(47),i=n(20),a=n(340);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=a.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(340),s=n(335),u=n(132);r({target:"Promise",stat:!0,forced:n(342)},{allSettled:function(t){var e=this,n=o.f(e),r=n.resolve,c=n.reject,l=s((function(){var n=a(e.resolve),o=[],s=0,c=1;u(t,(function(t){var a=s++,u=!1;c++,i(n,e,t).then((function(t){u||(u=!0,o[a]={status:"fulfilled",value:t},--c||r(o))}),(function(t){u||(u=!0,o[a]={status:"rejected",reason:t},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(31),o=n(24),s=n(340),u=n(335),c=n(132),l=n(342),f="No one promise resolved";r({target:"Promise",stat:!0,forced:l},{any:function(t){var e=this,n=o("AggregateError"),r=s.f(e),l=r.resolve,h=r.reject,d=u((function(){var r=a(e.resolve),o=[],s=0,u=1,d=!1;c(t,(function(t){var a=s++,c=!1;u++,i(r,e,t).then((function(t){c||d||(d=!0,l(t))}),(function(t){c||d||(c=!0,o[a]=t,--u||h(new n(o,f)))}))})),--u||h(new n(o,f))}));return d.error&&h(d.value),r.promise}})},function(t,e,n){"use strict";var r=n(3),i=n(36),a=n(336),o=n(7),s=n(24),u=n(21),c=n(217),l=n(347),f=n(48),h=a&&a.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!a&&o((function(){h.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=c(this,s("Promise")),n=u(t);return this.then(n?function(n){return l(e,t()).then((function(){return n}))}:t,n?function(n){return l(e,t()).then((function(){throw n}))}:t)}}),!i&&u(a)){var d=s("Promise").prototype.finally;h.finally!==d&&f(h,"finally",d,{unsafe:!0})}},function(t,e,n){var r=n(3),i=n(96),a=n(31),o=n(47);r({target:"Reflect",stat:!0,forced:!n(7)((function(){Reflect.apply((function(){}))}))},{apply:function(t,e,n){return i(a(t),e,o(n))}})},function(t,e,n){var r=n(3),i=n(24),a=n(96),o=n(235),s=n(218),u=n(47),c=n(20),l=n(72),f=n(7),h=i("Reflect","construct"),d=Object.prototype,g=[].push,p=f((function(){function t(){}return!(h((function(){}),[],t)instanceof t)})),v=!f((function(){h((function(){}))})),y=p||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(t,e){s(t),u(e);var n=arguments.length<3?t:s(arguments[2]);if(v&&!p)return h(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return a(g,r,e),new(a(o,t,r))}var i=n.prototype,f=l(c(i)?i:d),y=a(t,f,e);return c(y)?y:f}})},function(t,e,n){var r=n(3),i=n(6),a=n(47),o=n(18),s=n(45);r({target:"Reflect",stat:!0,forced:n(7)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,n){a(t);var r=o(e);a(n);try{return s.f(t,r,n),!0}catch(t){return!1}}})},function(t,e,n){var r=n(3),i=n(47),a=n(5).f;r({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var n=a(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},function(t,e,n){var r=n(3),i=n(8),a=n(20),o=n(47),s=n(356),u=n(5),c=n(130);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,l,f=arguments.length<3?e:arguments[2];return o(e)===f?e[n]:(r=u.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):a(l=c(e))?t(l,n,f):void 0}})},function(t,e,n){var r=n(39);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},function(t,e,n){var r=n(3),i=n(6),a=n(47),o=n(5);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return o.f(a(t),e)}})},function(t,e,n){var r=n(3),i=n(47),a=n(130);r({target:"Reflect",stat:!0,sham:!n(131)},{getPrototypeOf:function(t){return a(i(t))}})},function(t,e,n){n(3)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,n){var r=n(3),i=n(47),a=n(244);r({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),a(t)}})},function(t,e,n){n(3)({target:"Reflect",stat:!0},{ownKeys:n(57)})},function(t,e,n){var r=n(3),i=n(24),a=n(47);r({target:"Reflect",stat:!0,sham:!n(246)},{preventExtensions:function(t){a(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,n){var r=n(3),i=n(8),a=n(47),o=n(20),s=n(356),u=n(7),c=n(45),l=n(5),f=n(130),h=n(11);r({target:"Reflect",stat:!0,forced:u((function(){var t=function(){},e=c.f(new t,"a",{configurable:!0});return!1!==Reflect.set(t.prototype,"a",1,e)}))},{set:function t(e,n,r){var u,d,g,p=arguments.length<4?e:arguments[3],v=l.f(a(e),n);if(!v){if(o(d=f(e)))return t(d,n,r,p);v=h(0)}if(s(v)){if(!1===v.writable||!o(p))return!1;if(u=l.f(p,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(p,n,u)}else c.f(p,n,h(0,r))}else{if(void 0===(g=v.set))return!1;i(g,p,r)}return!0}})},function(t,e,n){var r=n(3),i=n(47),a=n(118),o=n(116);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),a(e);try{return o(t,e),!0}catch(t){return!1}}})},function(t,e,n){var r=n(3),i=n(4),a=n(84);r({global:!0},{Reflect:{}}),a(i.Reflect,"Reflect",!0)},function(t,e,n){var r=n(6),i=n(4),a=n(14),o=n(68),s=n(120),u=n(44),c=n(58).f,l=n(25),f=n(367),h=n(69),d=n(368),g=n(370),p=n(119),v=n(48),y=n(7),x=n(39),_=n(52).enforce,m=n(194),b=n(34),w=n(371),T=n(372),A=b("match"),S=i.RegExp,E=S.prototype,M=i.SyntaxError,k=a(E.exec),O=a("".charAt),R=a("".replace),C=a("".indexOf),I=a("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,P=/a/g,F=new S(D)!==D,z=g.MISSED_STICKY,N=g.UNSUPPORTED_Y,B=r&&(!F||z||w||T||y((function(){return P[A]=!1,S(D)!=D||S(P)==P||"/a/i"!=S(D,"i")})));if(o("RegExp",B)){for(var X=function(t,e){var n,r,i,a,o,c,g=l(E,this),p=f(t),v=void 0===e,y=[],m=t;if(!g&&p&&v&&t.constructor===X)return t;if((p||l(E,t))&&(t=t.source,v&&(e=d(m))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),m=t,w&&"dotAll"in D&&(r=!!e&&C(e,"s")>-1)&&(e=R(e,/s/g,"")),n=e,z&&"sticky"in D&&(i=!!e&&C(e,"y")>-1)&&N&&(e=R(e,/y/g,"")),T&&(a=function(t){for(var e,n=t.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,l="";r<=n;r++){if("\\"===(e=O(t,r)))e+=O(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:k(L,I(t,r+1))&&(r+=2,u=!0),i+=e,c++;continue;case">"===e&&u:if(""===l||x(o,l))throw new M("Invalid capture group name");o[l]=!0,a[a.length]=[l,c],u=!1,l="";continue}u?l+=e:i+=e}return[i,a]}(t),t=a[0],y=a[1]),o=s(S(t,e),g?this:E,X),(r||i||y.length)&&(c=_(o),r&&(c.dotAll=!0,c.raw=X(function(t){for(var e,n=t.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(e=O(t,r))?a||"."!==e?("["===e?a=!0:"]"===e&&(a=!1),i+=e):i+="[\\s\\S]":i+=e+O(t,++r);return i}(t),n)),i&&(c.sticky=!0),y.length&&(c.groups=y)),t!==m)try{u(o,"source",""===m?"(?:)":m)}catch(t){}return o},j=c(S),U=0;j.length>U;)p(X,S,j[U++]);E.constructor=X,X.prototype=E,v(i,"RegExp",X,{constructor:!0})}m("RegExp")},function(t,e,n){var r=n(20),i=n(15),a=n(34)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(8),i=n(39),a=n(25),o=n(369),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!a(s,t)?e:r(o,t)}},function(t,e,n){"use strict";var r=n(47);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){var r=n(7),i=n(4).RegExp,a=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),o=a||r((function(){return!i("a","y").sticky})),s=a||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a}},function(t,e,n){var r=n(7),i=n(4).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var r=n(7),i=n(4).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e,n){var r=n(6),i=n(371),a=n(15),o=n(79),s=n(52).get,u=RegExp.prototype,c=TypeError;r&&i&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";var r=n(3),i=n(375);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,n){"use strict";var r,i,a=n(8),o=n(14),s=n(69),u=n(369),c=n(370),l=n(35),f=n(72),h=n(52).get,d=n(371),g=n(372),p=l("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,x=o("".charAt),_=o("".indexOf),m=o("".replace),b=o("".slice),w=(i=/b*/g,a(v,r=/a/,"a"),a(v,i,"a"),0!==r.lastIndex||0!==i.lastIndex),T=c.BROKEN_CARET,A=void 0!==/()??/.exec("")[1];(w||A||T||d||g)&&(y=function(t){var e,n,r,i,o,c,l,d=this,g=h(d),S=s(t),E=g.raw;if(E)return E.lastIndex=d.lastIndex,e=a(y,E,S),d.lastIndex=E.lastIndex,e;var M=g.groups,k=T&&d.sticky,O=a(u,d),R=d.source,C=0,I=S;if(k&&(O=m(O,"y",""),-1===_(O,"g")&&(O+="g"),I=b(S,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==x(S,d.lastIndex-1))&&(R="(?: "+R+")",I=" "+I,C++),n=new RegExp("^(?:"+R+")",O)),A&&(n=new RegExp("^"+R+"$(?!\\s)",O)),w&&(r=d.lastIndex),i=a(v,k?n:d,I),k?i?(i.input=b(i.input,C),i[0]=b(i[0],C),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:w&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),A&&i&&i.length>1&&a(p,i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&M)for(i.groups=c=f(null),o=0;o<M.length;o++)c[(l=M[o])[0]]=i[l[1]];return i}),t.exports=y},function(t,e,n){var r=n(4),i=n(6),a=n(79),o=n(369),s=n(7),u=r.RegExp,c=u.prototype;i&&s((function(){var t=!0;try{u(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(a.hasIndices="d"),a)i(o,a[o]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(e)!==r||n!==r}))&&a(c,"flags",{configurable:!0,get:o})},function(t,e,n){var r=n(6),i=n(370).MISSED_STICKY,a=n(15),o=n(79),s=n(52).get,u=RegExp.prototype,c=TypeError;r&&i&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!s(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},function(t,e,n){"use strict";n(374);var r,i,a=n(3),o=n(8),s=n(21),u=n(47),c=n(69),l=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),f=/./.test;a({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=u(this),n=c(t),r=e.exec;if(!s(r))return o(f,e,n);var i=o(r,e,n);return null!==i&&(u(i),!0)}})},function(t,e,n){"use strict";var r=n(50).PROPER,i=n(48),a=n(47),o=n(69),s=n(7),u=n(368),c="toString",l=RegExp.prototype[c],f=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),h=r&&l.name!=c;(f||h)&&i(RegExp.prototype,c,(function(){var t=a(this);return"/"+o(t.source)+"/"+o(u(t))}),{unsafe:!0})},function(t,e,n){n(381)},function(t,e,n){"use strict";n(242)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(247))},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(16),o=n(62),s=n(69),u=n(7),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(t){var e=s(a(this)),n=e.length,r=o(t),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(e,i)}})},function(t,e,n){"use strict";var r=n(3),i=n(384).codeAt;r({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,n){var r=n(14),i=n(62),a=n(69),o=n(16),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(t){return function(e,n){var r,l,f=a(o(e)),h=i(n),d=f.length;return h<0||h>=d?t?"":void 0:(r=u(f,h))<55296||r>56319||h+1===d||(l=u(f,h+1))<56320||l>57343?t?s(f,h):r:t?c(f,h,h+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},function(t,e,n){"use strict";var r,i=n(3),a=n(87),o=n(5).f,s=n(65),u=n(69),c=n(386),l=n(16),f=n(387),h=n(36),d=a("".endsWith),g=a("".slice),p=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!v},{endsWith:function(t){var e=u(l(this));c(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,i=void 0===n?r:p(s(n),r),a=u(t);return d?d(e,a,i):g(e,i-a.length,i)===a}})},function(t,e,n){var r=n(367),i=TypeError;t.exports=function(t){if(r(t))throw i("The method doesn't accept regular expressions");return t}},function(t,e,n){var r=n(34)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,n){var r=n(3),i=n(14),a=n(61),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!=u.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],a(e,1114111)!==e)throw o(e+" is not a valid code point");n[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(386),o=n(16),s=n(69),u=n(387),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var r=n(384).charAt,i=n(69),a=n(52),o=n(170),s=n(173),u="String Iterator",c=a.set,l=a.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:i(t),index:0})}),(function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},function(t,e,n){"use strict";var r=n(8),i=n(392),a=n(47),o=n(17),s=n(65),u=n(69),c=n(16),l=n(30),f=n(393),h=n(394);i("match",(function(t,e,n){return[function(e){var n=c(this),i=o(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=a(this),i=u(t),o=n(e,r,i);if(o.done)return o.value;if(!r.global)return h(r,i);var c=r.unicode;r.lastIndex=0;for(var l,d=[],g=0;null!==(l=h(r,i));){var p=u(l[0]);d[g]=p,""===p&&(r.lastIndex=f(i,s(r.lastIndex),c)),g++}return 0===g?null:d}]}))},function(t,e,n){"use strict";n(374);var r=n(87),i=n(48),a=n(375),o=n(7),s=n(34),u=n(44),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,n,f){var h=s(t),d=!o((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),g=d&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!d||!g||n){var p=r(/./[h]),v=e(h,""[t],(function(t,e,n,i,o){var s=r(t),u=e.exec;return u===a||u===l.exec?d&&!o?{done:!0,value:p(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(l,h,v[1])}f&&u(l[h],"sham",!0)}},function(t,e,n){"use strict";var r=n(384).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},function(t,e,n){var r=n(8),i=n(47),a=n(21),o=n(15),s=n(375),u=TypeError;t.exports=function(t,e){var n=t.exec;if(a(n)){var c=r(n,t,e);return null!==c&&i(c),c}if("RegExp"===o(t))return r(s,t,e);throw u("RegExp#exec called on incompatible receiver")}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(87),o=n(171),s=n(173),u=n(16),c=n(65),l=n(69),f=n(47),h=n(17),d=n(15),g=n(367),p=n(368),v=n(30),y=n(48),x=n(7),_=n(34),m=n(217),b=n(393),w=n(394),T=n(52),A=n(36),S=_("matchAll"),E="RegExp String",M=E+" Iterator",k=T.set,O=T.getterFor(M),R=RegExp.prototype,C=TypeError,I=a("".indexOf),L=a("".matchAll),D=!!L&&!x((function(){L("a",/./)})),P=o((function(t,e,n,r){k(this,{type:M,regexp:t,string:e,global:n,unicode:r,done:!1})}),E,(function(){var t=O(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,r=w(e,n);return null===r?(t.done=!0,s(void 0,!0)):t.global?(""===l(r[0])&&(e.lastIndex=b(n,c(e.lastIndex),t.unicode)),s(r,!1)):(t.done=!0,s(r,!1))})),F=function(t){var e,n,r,i=f(this),a=l(t),o=m(i,RegExp),s=l(p(i));return e=new o(o===RegExp?i.source:i,s),n=!!~I(s,"g"),r=!!~I(s,"u"),e.lastIndex=c(i.lastIndex),new P(e,a,n,r)};r({target:"String",proto:!0,forced:D},{matchAll:function(t){var e,n,r,a,o=u(this);if(h(t)){if(D)return L(o,t)}else{if(g(t)&&(e=l(u(p(t))),!~I(e,"g")))throw C("`.matchAll` does not allow non-global regexes");if(D)return L(o,t);if(void 0===(r=v(t,S))&&A&&"RegExp"==d(t)&&(r=F),r)return i(r,t,o)}return n=l(o),a=new RegExp(t,"g"),A?i(F,a,n):a[S](n)}}),A||S in R||y(R,S,F)},function(t,e,n){"use strict";var r=n(3),i=n(227).end;r({target:"String",proto:!0,forced:n(397)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(29);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(t,e,n){"use strict";var r=n(3),i=n(227).start;r({target:"String",proto:!0,forced:n(397)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(3),i=n(14),a=n(12),o=n(40),s=n(69),u=n(64),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(t){var e=a(o(t).raw),n=u(e);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(c(i,s(e[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(t,e,n){n(3)({target:"String",proto:!0},{repeat:n(228)})},function(t,e,n){"use strict";var r=n(96),i=n(8),a=n(14),o=n(392),s=n(7),u=n(47),c=n(21),l=n(17),f=n(62),h=n(65),d=n(69),g=n(16),p=n(393),v=n(30),y=n(402),x=n(394),_=n(34)("replace"),m=Math.max,b=Math.min,w=a([].concat),T=a([].push),A=a("".indexOf),S=a("".slice),E="$0"==="a".replace(/./,"$0"),M=!!/./[_]&&""===/./[_]("a","$0");o("replace",(function(t,e,n){var a=M?"$":"$0";return[function(t,n){var r=g(this),a=l(t)?void 0:v(t,_);return a?i(a,t,r,n):i(e,d(r),t,n)},function(t,i){var o=u(this),s=d(t);if("string"==typeof i&&-1===A(i,a)&&-1===A(i,"$<")){var l=n(e,o,s,i);if(l.done)return l.value}var g=c(i);g||(i=d(i));var v=o.global;if(v){var _=o.unicode;o.lastIndex=0}for(var E=[];;){var M=x(o,s);if(null===M)break;if(T(E,M),!v)break;""===d(M[0])&&(o.lastIndex=p(s,h(o.lastIndex),_))}for(var k,O="",R=0,C=0;C<E.length;C++){for(var I=d((M=E[C])[0]),L=m(b(f(M.index),s.length),0),D=[],P=1;P<M.length;P++)T(D,void 0===(k=M[P])?k:String(k));var F=M.groups;if(g){var z=w([I],D,L,s);void 0!==F&&T(z,F);var N=d(r(i,void 0,z))}else N=y(I,s,L,D,F,i);L>=R&&(O+=S(s,R,L)+N,R=L+I.length)}return O+S(s,R)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||M)},function(t,e,n){var r=n(14),i=n(40),a=Math.floor,o=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,f,h){var d=n+t.length,g=r.length,p=l;return void 0!==f&&(f=i(f),p=c),s(h,p,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,d);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>g){var h=a(l/10);return 0===h?i:h<=g?void 0===r[h-1]?o(s,1):r[h-1]+o(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(t,e,n){"use strict";var r=n(3),i=n(8),a=n(14),o=n(16),s=n(21),u=n(17),c=n(367),l=n(69),f=n(30),h=n(368),d=n(402),g=n(34),p=n(36),v=g("replace"),y=TypeError,x=a("".indexOf),_=a("".replace),m=a("".slice),b=Math.max,w=function(t,e,n){return n>t.length?-1:""===e?n:x(t,e,n)};r({target:"String",proto:!0},{replaceAll:function(t,e){var n,r,a,g,T,A,S,E,M,k=o(this),O=0,R=0,C="";if(!u(t)){if((n=c(t))&&(r=l(o(h(t))),!~x(r,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(a=f(t,v))return i(a,t,k,e);if(p&&n)return _(l(k),t,e)}for(g=l(k),T=l(t),(A=s(e))||(e=l(e)),S=T.length,E=b(1,S),O=w(g,T,0);-1!==O;)M=A?l(e(T,O,g)):d(T,g,O,[],void 0,e),C+=m(g,R,O)+M,R=O+S,O=w(g,T,O+E);return R<g.length&&(C+=m(g,R)),C}})},function(t,e,n){"use strict";var r=n(8),i=n(392),a=n(47),o=n(17),s=n(16),u=n(309),c=n(69),l=n(30),f=n(394);i("search",(function(t,e,n){return[function(e){var n=s(this),i=o(e)?void 0:l(e,t);return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=a(this),i=c(t),o=n(e,r,i);if(o.done)return o.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},function(t,e,n){"use strict";var r=n(96),i=n(8),a=n(14),o=n(392),s=n(47),u=n(17),c=n(367),l=n(16),f=n(217),h=n(393),d=n(65),g=n(69),p=n(30),v=n(77),y=n(394),x=n(375),_=n(370),m=n(7),b=_.UNSUPPORTED_Y,w=4294967295,T=Math.min,A=[].push,S=a(/./.exec),E=a(A),M=a("".slice),k=!m((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));o("split",(function(t,e,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var a=g(l(this)),o=void 0===n?w:n>>>0;if(0===o)return[];if(void 0===t)return[a];if(!c(t))return i(e,a,t,o);for(var s,u,f,h=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,y=new RegExp(t.source,d+"g");(s=i(x,y,a))&&!((u=y.lastIndex)>p&&(E(h,M(a,p,s.index)),s.length>1&&s.index<a.length&&r(A,h,v(s,1)),f=s[0].length,p=u,h.length>=o));)y.lastIndex===s.index&&y.lastIndex++;return p===a.length?!f&&S(y,"")||E(h,""):E(h,M(a,p)),h.length>o?v(h,0,o):h}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=l(this),o=u(e)?void 0:p(e,t);return o?i(o,e,r,n):i(a,g(r),e,n)},function(t,r){var i=s(this),o=g(t),u=n(a,i,o,r,a!==e);if(u.done)return u.value;var c=f(i,RegExp),l=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),v=new c(b?"^(?:"+i.source+")":i,p),x=void 0===r?w:r>>>0;if(0===x)return[];if(0===o.length)return null===y(v,o)?[o]:[];for(var _=0,m=0,A=[];m<o.length;){v.lastIndex=b?0:m;var S,k=y(v,b?M(o,m):o);if(null===k||(S=T(d(v.lastIndex+(b?m:0)),o.length))===_)m=h(o,m,l);else{if(E(A,M(o,_,m)),A.length===x)return A;for(var O=1;O<=k.length-1;O++)if(E(A,k[O]),A.length===x)return A;m=_=S}}return E(A,M(o,_)),A}]}),!k,b)},function(t,e,n){"use strict";var r,i=n(3),a=n(87),o=n(5).f,s=n(65),u=n(69),c=n(386),l=n(16),f=n(387),h=n(36),d=a("".startsWith),g=a("".slice),p=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!!(h||v||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!v},{startsWith:function(t){var e=u(l(this));c(t);var n=s(p(arguments.length>1?arguments[1]:void 0,e.length)),r=u(t);return d?d(e,r,n):g(e,n,n+r.length)===r}})},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(16),o=n(62),s=n(69),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(t,e){var n,r,i=s(a(this)),f=i.length,h=o(t);return h===1/0&&(h=0),h<0&&(h=c(f+h,0)),(n=void 0===e?f:o(e))<=0||n===1/0||h>=(r=l(h+n,f))?"":u(i,h,r)}})},function(t,e,n){"use strict";var r=n(3),i=n(273).trim;r({target:"String",proto:!0,forced:n(409)("trim")},{trim:function(){return i(this)}})},function(t,e,n){var r=n(50).PROPER,i=n(7),a=n(274);t.exports=function(t){return i((function(){return!!a[t]()||"
"!=="
"[t]()||r&&a[t].name!==t}))}},function(t,e,n){n(411);var r=n(3),i=n(412);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},function(t,e,n){var r=n(3),i=n(412);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},function(t,e,n){"use strict";var r=n(273).end,i=n(409);t.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},function(t,e,n){n(414);var r=n(3),i=n(415);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},function(t,e,n){var r=n(3),i=n(415);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},function(t,e,n){"use strict";var r=n(273).start,i=n(409);t.exports=i("trimStart")?function(){return r(this)}:"".trimStart},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,n){var r=n(14),i=n(16),a=n(69),o=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var u=a(i(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+s(a(r),o,""")+'"'),c+">"+u+"</"+e+">"}},function(t,e,n){var r=n(7);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,n){"use strict";var r=n(3),i=n(417);r({target:"String",proto:!0,forced:n(418)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,n){n(432)("Float32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(8),o=n(6),s=n(433),u=n(215),c=n(208),l=n(211),f=n(11),h=n(44),d=n(279),g=n(65),p=n(212),v=n(434),y=n(18),x=n(39),_=n(70),m=n(20),b=n(23),w=n(72),T=n(25),A=n(116),S=n(58).f,E=n(436),M=n(85).forEach,k=n(194),O=n(79),R=n(45),C=n(5),I=n(52),L=n(120),D=I.get,P=I.set,F=I.enforce,z=R.f,N=C.f,B=Math.round,X=i.RangeError,j=c.ArrayBuffer,U=j.prototype,$=c.DataView,Y=u.NATIVE_ARRAY_BUFFER_VIEWS,V=u.TYPED_ARRAY_TAG,G=u.TypedArray,H=u.TypedArrayPrototype,W=u.aTypedArrayConstructor,q=u.isTypedArray,Z="BYTES_PER_ELEMENT",K="Wrong length",J=function(t,e){W(t);for(var n=0,r=e.length,i=new t(r);r>n;)i[n]=e[n++];return i},Q=function(t,e){O(t,e,{configurable:!0,get:function(){return D(this)[e]}})},tt=function(t){var e;return T(U,t)||"ArrayBuffer"==(e=_(t))||"SharedArrayBuffer"==e},et=function(t,e){return q(t)&&!b(e)&&e in t&&d(+e)&&e>=0},nt=function(t,e){return e=y(e),et(t,e)?f(2,t[e]):N(t,e)},rt=function(t,e,n){return e=y(e),!(et(t,e)&&m(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?z(t,e,n):(t[e]=n.value,t)};o?(Y||(C.f=nt,R.f=rt,Q(H,"buffer"),Q(H,"byteOffset"),Q(H,"byteLength"),Q(H,"length")),r({target:"Object",stat:!0,forced:!Y},{getOwnPropertyDescriptor:nt,defineProperty:rt}),t.exports=function(t,e,n){var o=t.match(/\d+/)[0]/8,u=t+(n?"Clamped":"")+"Array",c="get"+t,f="set"+t,d=i[u],y=d,x=y&&y.prototype,_={},b=function(t,e){z(t,e,{get:function(){return function(t,e){var n=D(t);return n.view[c](e*o+n.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var i=D(t);n&&(r=(r=B(r))<0?0:r>255?255:255&r),i.view[f](e*o+i.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};Y?s&&(y=e((function(t,e,n,r){return l(t,x),L(m(e)?tt(e)?void 0!==r?new d(e,v(n,o),r):void 0!==n?new d(e,v(n,o)):new d(e):q(e)?J(y,e):a(E,y,e):new d(p(e)),t,y)})),A&&A(y,G),M(S(d),(function(t){t in y||h(y,t,d[t])})),y.prototype=x):(y=e((function(t,e,n,r){l(t,x);var i,s,u,c=0,f=0;if(m(e)){if(!tt(e))return q(e)?J(y,e):a(E,y,e);i=e,f=v(n,o);var h=e.byteLength;if(void 0===r){if(h%o)throw X(K);if((s=h-f)<0)throw X(K)}else if((s=g(r)*o)+f>h)throw X(K);u=s/o}else u=p(e),i=new j(s=u*o);for(P(t,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new $(i)});c<u;)b(t,c++)})),A&&A(y,G),x=y.prototype=w(H)),x.constructor!==y&&h(x,"constructor",y),F(x).TypedArrayConstructor=y,V&&h(x,V,u);var T=y!=d;_[u]=y,r({global:!0,constructor:!0,forced:T,sham:!Y},_),Z in y||h(y,Z,o),Z in x||h(x,Z,o),k(u)}):t.exports=function(){}},function(t,e,n){var r=n(4),i=n(7),a=n(165),o=n(215).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;t.exports=!o||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!a((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(t,e,n){var r=n(435),i=RangeError;t.exports=function(t,e){var n=r(t);if(n%e)throw i("Wrong offset");return n}},function(t,e,n){var r=n(62),i=RangeError;t.exports=function(t){var e=r(t);if(e<0)throw i("The argument can't be less than 0");return e}},function(t,e,n){var r=n(86),i=n(8),a=n(218),o=n(40),s=n(64),u=n(135),c=n(136),l=n(133),f=n(437),h=n(215).aTypedArrayConstructor,d=n(438);t.exports=function(t){var e,n,g,p,v,y,x,_,m=a(this),b=o(t),w=arguments.length,T=w>1?arguments[1]:void 0,A=void 0!==T,S=c(b);if(S&&!l(S))for(_=(x=u(b,S)).next,b=[];!(y=i(_,x)).done;)b.push(y.value);for(A&&w>2&&(T=r(T,arguments[2])),n=s(b),g=new(h(m))(n),p=f(g),e=0;n>e;e++)v=A?T(b[e],e):b[e],g[e]=p?d(v):+v;return g}},function(t,e,n){var r=n(70);t.exports=function(t){var e=r(t);return"BigInt64Array"==e||"BigUint64Array"==e}},function(t,e,n){var r=n(19),i=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw i("Can't convert number to bigint");return BigInt(e)}},function(t,e,n){n(432)("Float64",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(432)("Int8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(432)("Int16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(432)("Int32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(432)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(432)("Uint8",(function(t){return function(e,n,r){return t(this,e,n,r)}}),!0)},function(t,e,n){n(432)("Uint16",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){n(432)("Uint32",(function(t){return function(e,n,r){return t(this,e,n,r)}}))},function(t,e,n){"use strict";var r=n(215),i=n(64),a=n(62),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(t){var e=o(this),n=i(e),r=a(t),s=r>=0?r:n+r;return s<0||s>=n?void 0:e[s]}))},function(t,e,n){"use strict";var r=n(14),i=n(215),a=r(n(145)),o=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(t,e){return a(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(85).every,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(150),a=n(438),o=n(70),s=n(8),u=n(14),c=n(7),l=r.aTypedArray,f=r.exportTypedArrayMethod,h=u("".slice);f("fill",(function(t){var e=arguments.length;l(this);var n="Big"===h(o(this),0,3)?a(t):+t;return s(i,this,n,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},function(t,e,n){"use strict";var r=n(215),i=n(85).filter,a=n(452),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(t){var e=i(o(this),t,arguments.length>1?arguments[1]:void 0);return a(this,e)}))},function(t,e,n){var r=n(199),i=n(453);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){var r=n(215),i=n(217),a=r.aTypedArrayConstructor,o=r.getTypedArrayConstructor;t.exports=function(t){return a(i(t,o(t)))}},function(t,e,n){"use strict";var r=n(215),i=n(85).find,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(85).findIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(155).findLast,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(155).findLastIndex,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(85).forEach,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(t){i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(433);(0,n(215).exportTypedArrayStaticMethod)("from",n(436),r)},function(t,e,n){"use strict";var r=n(215),i=n(60).includes,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(60).indexOf,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(7),a=n(14),o=n(215),s=n(169),u=n(34)("iterator"),c=r.Uint8Array,l=a(s.values),f=a(s.keys),h=a(s.entries),d=o.aTypedArray,g=o.exportTypedArrayMethod,p=c&&c.prototype,v=!i((function(){p[u].call([1])})),y=!!p&&p.values&&p[u]===p.values&&"values"===p.values.name,x=function(){return l(d(this))};g("entries",(function(){return h(d(this))}),v),g("keys",(function(){return f(d(this))}),v),g("values",x,v||!y,{name:"values"}),g(u,x,v||!y,{name:"values"})},function(t,e,n){"use strict";var r=n(215),i=n(14),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=i([].join);o("join",(function(t){return s(a(this),t)}))},function(t,e,n){"use strict";var r=n(215),i=n(96),a=n(176),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return i(a,o(this),e>1?[t,arguments[1]]:[t])}))},function(t,e,n){"use strict";var r=n(215),i=n(85).map,a=n(453),o=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},function(t,e,n){"use strict";var r=n(215),i=n(433),a=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,n=new(a(this))(e);e>t;)n[t]=arguments[t++];return n}),i)},function(t,e,n){"use strict";var r=n(215),i=n(182).left,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=n(182).right,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return i(a(this),t,e,e>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(215),i=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a("reverse",(function(){for(var t,e=this,n=i(e).length,r=o(n/2),a=0;a<r;)t=e[a],e[a++]=e[--n],e[n]=t;return e}))},function(t,e,n){"use strict";var r=n(4),i=n(8),a=n(215),o=n(64),s=n(434),u=n(40),c=n(7),l=r.RangeError,f=r.Int8Array,h=f&&f.prototype,d=h&&h.set,g=a.aTypedArray,p=a.exportTypedArrayMethod,v=!c((function(){var t=new Uint8ClampedArray(2);return i(d,t,{length:1,0:3},1),3!==t[1]})),y=v&&a.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new f(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));p("set",(function(t){g(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=u(t);if(v)return i(d,this,n,e);var r=this.length,a=o(n),c=0;if(a+e>r)throw l("Wrong length");for(;c<a;)this[e+c]=n[c++]}),!v||y)},function(t,e,n){"use strict";var r=n(215),i=n(453),a=n(7),o=n(97),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(t,e){for(var n=o(s(this),t,e),r=i(this),a=0,u=n.length,c=new r(u);u>a;)c[a]=n[a++];return c}),a((function(){new Int8Array(1).slice()})))},function(t,e,n){"use strict";var r=n(215),i=n(85).some,a=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,n){"use strict";var r=n(4),i=n(87),a=n(7),o=n(31),s=n(189),u=n(215),c=n(190),l=n(191),f=n(28),h=n(192),d=u.aTypedArray,g=u.exportTypedArrayMethod,p=r.Uint16Array,v=p&&i(p.prototype.sort),y=!(!v||a((function(){v(new p(2),null)}))&&a((function(){v(new p(2),{})}))),x=!!v&&!a((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(h)return h<602;var t,e,n=new p(516),r=Array(516);for(t=0;t<516;t++)e=t%4,n[t]=515-t,r[t]=t-2*e+3;for(v(n,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(n[t]!==r[t])return!0}));g("sort",(function(t){return void 0!==t&&o(t),x?v(this,t):s(d(this),function(t){return function(e,n){return void 0!==t?+t(e,n)||0:n!=n?-1:e!=e?1:0===e&&0===n?1/e>0&&1/n<0?1:-1:e>n}}(t))}),!x||y)},function(t,e,n){"use strict";var r=n(215),i=n(65),a=n(61),o=n(453),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(t,e){var n=s(this),r=n.length,u=a(t,r);return new(o(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===e?r:a(e,r))-u))}))},function(t,e,n){"use strict";var r=n(4),i=n(96),a=n(215),o=n(7),s=n(97),u=r.Int8Array,c=a.aTypedArray,l=a.exportTypedArrayMethod,f=[].toLocaleString,h=!!u&&o((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,h?s(c(this)):c(this),s(arguments))}),o((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!o((function(){u.prototype.toLocaleString.call([1,2])})))},function(t,e,n){"use strict";var r=n(197),i=n(215),a=i.aTypedArray,o=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;o("toReversed",(function(){return r(a(this),s(this))}))},function(t,e,n){"use strict";var r=n(215),i=n(14),a=n(31),o=n(199),s=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&a(t);var e=s(this),n=o(u(e),e);return l(n,t)}))},function(t,e,n){"use strict";var r=n(215).exportTypedArrayMethod,i=n(7),a=n(4),o=n(14),s=a.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=o([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!=c;r("toString",c,f)},function(t,e,n){"use strict";var r=n(206),i=n(215),a=n(437),o=n(62),s=n(438),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();l("with",{with:function(t,e){var n=u(this),i=o(t),l=a(n)?s(e):+e;return r(n,c(n),i,l)}}.with,!f)},function(t,e,n){"use strict";var r=n(3),i=n(14),a=n(69),o=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(t){for(var e,n,r=a(t),i="",h=r.length,d=0;d<h;){if("%"===(e=s(r,d++)))if("u"===s(r,d)){if(n=c(r,d+1,d+5),u(f,n)){i+=o(parseInt(n,16)),d+=5;continue}}else if(n=c(r,d,d+2),u(l,n)){i+=o(parseInt(n,16)),d+=2;continue}i+=e}return i}})},function(t,e,n){n(482)},function(t,e,n){"use strict";var r,i=n(246),a=n(4),o=n(14),s=n(210),u=n(243),c=n(242),l=n(483),f=n(20),h=n(52).enforce,d=n(7),g=n(53),p=Object,v=Array.isArray,y=p.isExtensible,x=p.isFrozen,_=p.isSealed,m=p.freeze,b=p.seal,w={},T={},A=!a.ActiveXObject&&"ActiveXObject"in a,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},E=c("WeakMap",S,l),M=E.prototype,k=o(M.set);if(g)if(A){r=l.getConstructor(S,"WeakMap",!0),u.enable();var O=o(M.delete),R=o(M.has),C=o(M.get);s(M,{delete:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),O(this,t)||e.frozen.delete(t)}return O(this,t)},has:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),R(this,t)||e.frozen.has(t)}return R(this,t)},get:function(t){if(f(t)&&!y(t)){var e=h(this);return e.frozen||(e.frozen=new r),R(this,t)?C(this,t):e.frozen.get(t)}return C(this,t)},set:function(t,e){if(f(t)&&!y(t)){var n=h(this);n.frozen||(n.frozen=new r),R(this,t)?k(this,t,e):n.frozen.set(t,e)}else k(this,t,e);return this}})}else i&&d((function(){var t=m([]);return k(new E,t,1),!x(t)}))&&s(M,{set:function(t,e){var n;return v(t)&&(x(t)?n=w:_(t)&&(n=T)),k(this,t,e),n==w&&m(t),n==T&&b(t),this}})},function(t,e,n){"use strict";var r=n(14),i=n(210),a=n(243).getWeakData,o=n(211),s=n(47),u=n(17),c=n(20),l=n(132),f=n(85),h=n(39),d=n(52),g=d.set,p=d.getterFor,v=f.find,y=f.findIndex,x=r([].splice),_=0,m=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},w=function(t,e){return v(t.entries,(function(t){return t[0]===e}))};b.prototype={get:function(t){var e=w(this,t);if(e)return e[1]},has:function(t){return!!w(this,t)},set:function(t,e){var n=w(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=y(this.entries,(function(e){return e[0]===t}));return~e&&x(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var f=t((function(t,i){o(t,d),g(t,{type:e,id:_++,frozen:void 0}),u(i)||l(i,t[r],{that:t,AS_ENTRIES:n})})),d=f.prototype,v=p(e),y=function(t,e,n){var r=v(t),i=a(s(e),!0);return!0===i?m(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=v(this);if(!c(t))return!1;var n=a(t);return!0===n?m(e).delete(t):n&&h(n,e.id)&&delete n[e.id]},has:function(t){var e=v(this);if(!c(t))return!1;var n=a(t);return!0===n?m(e).has(t):n&&h(n,e.id)}}),i(d,n?{get:function(t){var e=v(this);if(c(t)){var n=a(t);return!0===n?m(e).get(t):n?n[e.id]:void 0}},set:function(t,e){return y(this,t,e)}}:{add:function(t){return y(this,t,!0)}}),f}}},function(t,e,n){n(485)},function(t,e,n){"use strict";n(242)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(483))},function(t,e,n){var r=n(3),i=n(4),a=n(24),o=n(14),s=n(8),u=n(7),c=n(69),l=n(39),f=n(328),h=n(487).ctoi,d=/[^\d+/a-z]/i,g=/[\t\n\f\r ]+/g,p=/[=]{1,2}$/,v=a("atob"),y=String.fromCharCode,x=o("".charAt),_=o("".replace),m=o(d.exec),b=u((function(){return""!==v(" ")})),w=!u((function(){v("a")})),T=!b&&!w&&!u((function(){v()})),A=!b&&!w&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:b||w||T||A},{atob:function(t){if(f(arguments.length,1),T||A)return s(v,i,t);var e,n,r=_(c(t),g,""),o="",u=0,b=0;if(r.length%4==0&&(r=_(r,p,"")),r.length%4==1||m(d,r))throw new(a("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;e=x(r,u++);)l(h,e)&&(n=b%4?64*n+h[e]:h[e],b++%4&&(o+=y(255&n>>(-2*b&6))));return o}})},function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n={},r=0;r<66;r++)n[e.charAt(r)]=r;t.exports={itoc:e,ctoi:n}},function(t,e,n){var r=n(3),i=n(4),a=n(24),o=n(14),s=n(8),u=n(7),c=n(69),l=n(328),f=n(487).itoc,h=a("btoa"),d=o("".charAt),g=o("".charCodeAt),p=!!h&&!u((function(){h()})),v=!!h&&u((function(){return"bnVsbA=="!==h(null)})),y=!!h&&1!==h.length;r({global:!0,bind:!0,enumerable:!0,forced:p||v||y},{btoa:function(t){if(l(arguments.length,1),p||v||y)return s(h,i,c(t));for(var e,n,r=c(t),o="",u=0,x=f;d(r,u)||(x="=",u%1);){if((n=g(r,u+=3/4))>255)throw new(a("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o+=d(x,63&(e=e<<8|n)>>8-u%1*8)}return o}})},function(t,e,n){var r=n(4),i=n(490),a=n(491),o=n(161),s=n(44),u=function(t){if(t&&t.forEach!==o)try{s(t,"forEach",o)}catch(e){t.forEach=o}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(a)},function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){var r=n(43)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},function(t,e,n){var r=n(4),i=n(490),a=n(491),o=n(169),s=n(44),u=n(34),c=u("iterator"),l=u("toStringTag"),f=o.values,h=function(t,e){if(t){if(t[c]!==f)try{s(t,c,f)}catch(e){t[c]=f}if(t[l]||s(t,l,e),i[e])for(var n in o)if(t[n]!==o[n])try{s(t,n,o[n])}catch(e){t[n]=o[n]}}};for(var d in i)h(r[d]&&r[d].prototype,d);h(a,"DOMTokenList")},function(t,e,n){"use strict";var r=n(3),i=n(494),a=n(24),o=n(7),s=n(72),u=n(11),c=n(45).f,l=n(48),f=n(79),h=n(39),d=n(211),g=n(47),p=n(127),v=n(121),y=n(495),x=n(124),_=n(52),m=n(6),b=n(36),w="DOMException",T="DATA_CLONE_ERR",A=a("Error"),S=a(w)||function(){try{(new(a("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(t){if(t.name==T&&25==t.code)return t.constructor}}(),E=S&&S.prototype,M=A.prototype,k=_.set,O=_.getterFor(w),R="stack"in A(w),C=function(t){return h(y,t)&&y[t].m?y[t].c:0},I=function(){d(this,L);var t=arguments.length,e=v(t<1?void 0:arguments[0]),n=v(t<2?void 0:arguments[1],"Error"),r=C(n);if(k(this,{type:w,name:n,message:e,code:r}),m||(this.name=n,this.message=e,this.code=r),R){var i=A(e);i.name=w,c(this,"stack",u(1,x(i.stack,1)))}},L=I.prototype=s(M),D=function(t){return{enumerable:!0,configurable:!0,get:t}},P=function(t){return D((function(){return O(this)[t]}))};m&&(f(L,"code",P("code")),f(L,"message",P("message")),f(L,"name",P("name"))),c(L,"constructor",u(1,I));var F=o((function(){return!(new S instanceof A)})),z=F||o((function(){return M.toString!==p||"2: 1"!==String(new S(1,2))})),N=F||o((function(){return 25!==new S(1,"DataCloneError").code})),B=F||25!==S[T]||25!==E[T],X=b?z||N||B:F;r({global:!0,constructor:!0,forced:X},{DOMException:X?I:S});var j=a(w),U=j.prototype;for(var $ in z&&(b||S===j)&&l(U,"toString",p),N&&m&&S===j&&f(U,"code",D((function(){return C(g(this).name)}))),y)if(h(y,$)){var Y=y[$],V=Y.s,G=u(6,Y.c);h(j,V)||c(j,V,G),h(U,V)||c(U,V,G)}},function(t,e,n){var r=n(183);t.exports=function(t){try{if(r)return Function('return require("'+t+'")')()}catch(t){}}},function(t){t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(24),o=n(11),s=n(45).f,u=n(39),c=n(211),l=n(120),f=n(121),h=n(495),d=n(124),g=n(6),p=n(36),v="DOMException",y=a("Error"),x=a(v),_=function(){c(this,m);var t=arguments.length,e=f(t<1?void 0:arguments[0]),n=f(t<2?void 0:arguments[1],"Error"),r=new x(e,n),i=y(e);return i.name=v,s(r,"stack",o(1,d(i.stack,1))),l(r,this,_),r},m=_.prototype=x.prototype,b="stack"in y(v),w="stack"in new x(1,2),T=x&&g&&Object.getOwnPropertyDescriptor(i,v),A=!(!T||T.writable&&T.configurable),S=b&&!A&&!w;r({global:!0,constructor:!0,forced:p||S},{DOMException:S?_:x});var E=a(v),M=E.prototype;if(M.constructor!==E)for(var k in p||s(M,"constructor",o(1,E)),h)if(u(h,k)){var O=h[k],R=O.s;u(E,R)||s(E,R,o(6,O.c))}},function(t,e,n){var r=n(24),i="DOMException";n(84)(r(i),i)},function(t,e,n){n(499),n(500)},function(t,e,n){var r=n(3),i=n(4),a=n(327).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==a},{clearImmediate:a})},function(t,e,n){var r=n(3),i=n(4),a=n(327).set,o=n(501),s=i.setImmediate?o(a,!1):a;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},function(t,e,n){"use strict";var r,i=n(4),a=n(96),o=n(21),s=n(502),u=n(29),c=n(97),l=n(328),f=i.Function,h=/MSIE .\./.test(u)||s&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));t.exports=function(t,e){var n=e?2:1;return h?function(r,i){var s=l(arguments.length,1)>n,u=o(r)?r:f(r),h=s?c(arguments,n):[],d=s?function(){a(u,this,h)}:u;return e?t(d,i):t(d)}:t}},function(t){t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(t,e,n){var r=n(3),i=n(4),a=n(330),o=n(31),s=n(328),u=n(183),c=i.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(t){s(arguments.length,1),o(t);var e=u&&c.domain;a(e?e.bind(t):t)}})},function(t,e,n){"use strict";var r=n(3),i=n(4),a=n(79),o=n(6),s=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(o){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||a(i,"self",{get:function(){return i},set:function(t){if(this!==i)throw s("Illegal invocation");u(i,"self",{value:t,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(t){}},function(t,e,n){var r,i=n(36),a=n(3),o=n(4),s=n(24),u=n(14),c=n(7),l=n(41),f=n(21),h=n(91),d=n(17),g=n(20),p=n(23),v=n(132),y=n(47),x=n(70),_=n(39),m=n(78),b=n(44),w=n(64),T=n(328),A=n(368),S=n(506),E=n(507),M=n(125),k=n(508),O=o.Object,R=o.Array,C=o.Date,I=o.Error,L=o.EvalError,D=o.RangeError,P=o.ReferenceError,F=o.SyntaxError,z=o.TypeError,N=o.URIError,B=o.PerformanceMark,X=o.WebAssembly,j=X&&X.CompileError||I,U=X&&X.LinkError||I,$=X&&X.RuntimeError||I,Y=s("DOMException"),V=S.Map,G=S.has,H=S.get,W=S.set,q=E.Set,Z=E.add,K=s("Object","keys"),J=u([].push),Q=u((!0).valueOf),tt=u(1..valueOf),et=u("".valueOf),nt=u(C.prototype.getTime),rt=l("structuredClone"),it="DataCloneError",at="Transferring",ot=function(t){return!c((function(){var e=new o.Set([7]),n=t(e),r=t(O(7));return n==e||!n.has(7)||"object"!=typeof r||7!=r}))&&t},st=function(t,e){return!c((function(){var n=new e,r=t({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof e&&r.a.stack===n.stack)}))},ut=o.structuredClone,ct=i||!st(ut,I)||!st(ut,Y)||(r=ut,!!c((function(){var t=r(new o.AggregateError([1],rt,{cause:3}));return"AggregateError"!=t.name||1!=t.errors[0]||t.message!=rt||3!=t.cause}))),lt=!ut&&ot((function(t){return new B(rt,{detail:t}).detail})),ft=ot(ut)||lt,ht=function(t){throw new Y("Uncloneable type: "+t,it)},dt=function(t,e){throw new Y((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",it)},gt=function(t,e){if(p(t)&&ht("Symbol"),!g(t))return t;if(e){if(G(e,t))return H(e,t)}else e=new V;var n,r,i,a,u,c,l,h,d,v,y,T=x(t),S=!1;switch(T){case"Array":i=R(w(t)),S=!0;break;case"Object":i={},S=!0;break;case"Map":i=new V,S=!0;break;case"Set":i=new q,S=!0;break;case"RegExp":i=new RegExp(t.source,A(t));break;case"Error":switch(r=t.name){case"AggregateError":i=s("AggregateError")([]);break;case"EvalError":i=L();break;case"RangeError":i=D();break;case"ReferenceError":i=P();break;case"SyntaxError":i=F();break;case"TypeError":i=z();break;case"URIError":i=N();break;case"CompileError":i=j();break;case"LinkError":i=U();break;case"RuntimeError":i=$();break;default:i=I()}S=!0;break;case"DOMException":i=new Y(t.message,t.name),S=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=o[T],g(n)||dt(T),i=new n(gt(t.buffer,e),t.byteOffset,"DataView"===T?t.byteLength:t.length);break;case"DOMQuad":try{i=new DOMQuad(gt(t.p1,e),gt(t.p2,e),gt(t.p3,e),gt(t.p4,e))}catch(e){ft?i=ft(t):dt(T)}break;case"FileList":if(a=function(){var t;try{t=new o.DataTransfer}catch(e){try{t=new o.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(u=0,c=w(t);u<c;u++)a.items.add(gt(t[u],e));i=a.files}else ft?i=ft(t):dt(T);break;case"ImageData":try{i=new ImageData(gt(t.data,e),t.width,t.height,{colorSpace:t.colorSpace})}catch(e){ft?i=ft(t):dt(T)}break;default:if(ft)i=ft(t);else switch(T){case"BigInt":i=O(t.valueOf());break;case"Boolean":i=O(Q(t));break;case"Number":i=O(tt(t));break;case"String":i=O(et(t));break;case"Date":i=new C(nt(t));break;case"ArrayBuffer":(n=o.DataView)||"function"==typeof t.slice||dt(T);try{if("function"!=typeof t.slice||t.resizable){c=t.byteLength,y="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,i=new ArrayBuffer(c,y),d=new n(t),v=new n(i);for(u=0;u<c;u++)v.setUint8(u,d.getUint8(u))}else i=t.slice(0)}catch(t){throw new Y("ArrayBuffer is detached",it)}break;case"SharedArrayBuffer":i=t;break;case"Blob":try{i=t.slice(0,t.size,t.type)}catch(t){dt(T)}break;case"DOMPoint":case"DOMPointReadOnly":n=o[T];try{i=n.fromPoint?n.fromPoint(t):new n(t.x,t.y,t.z,t.w)}catch(t){dt(T)}break;case"DOMRect":case"DOMRectReadOnly":n=o[T];try{i=n.fromRect?n.fromRect(t):new n(t.x,t.y,t.width,t.height)}catch(t){dt(T)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=o[T];try{i=n.fromMatrix?n.fromMatrix(t):new n(t)}catch(t){dt(T)}break;case"AudioData":case"VideoFrame":f(t.clone)||dt(T);try{i=t.clone()}catch(t){ht(T)}break;case"File":try{i=new File([t],t.name,t)}catch(t){dt(T)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":dt(T);default:ht(T)}}if(W(e,t,i),S)switch(T){case"Array":case"Object":for(l=K(t),u=0,c=w(l);u<c;u++)h=l[u],m(i,h,gt(t[h],e));break;case"Map":t.forEach((function(t,n){W(i,gt(n,e),gt(t,e))}));break;case"Set":t.forEach((function(t){Z(i,gt(t,e))}));break;case"Error":b(i,"message",gt(t.message,e)),_(t,"cause")&&b(i,"cause",gt(t.cause,e)),"AggregateError"==r&&(i.errors=gt(t.errors,e));case"DOMException":M&&b(i,"stack",gt(t.stack,e))}return i};a({global:!0,enumerable:!0,sham:!k,forced:ct},{structuredClone:function(t){var e,n=T(arguments.length,1)>1&&!d(arguments[1])?y(arguments[1]):void 0,r=n?n.transfer:void 0;return void 0!==r&&function(t,e){if(!g(t))throw z("Transfer option cannot be converted to a sequence");var n=[];v(t,(function(t){J(n,y(t))}));var r,i,a,s,u,c,l=0,d=w(n);if(k)for(s=ut(n,{transfer:n});l<d;)W(e,n[l],s[l++]);else for(;l<d;){if(r=n[l++],G(e,r))throw new Y("Duplicate transferable",it);switch(i=x(r)){case"ImageBitmap":a=o.OffscreenCanvas,h(a)||dt(i,at);try{(c=new a(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),u=c.transferToImageBitmap()}catch(t){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||dt(i,at);try{u=r.clone(),r.close()}catch(t){}break;case"ArrayBuffer":f(r.transfer)||dt(i,at),u=r.transfer();break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":dt(i,at)}if(void 0===u)throw new Y("This object cannot be transferred: "+i,it);W(e,r,u)}}(r,e=new V),gt(t,e)}})},function(t,e,n){var r=n(14),i=Map.prototype;t.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},function(t,e,n){var r=n(14),i=Set.prototype;t.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i,$has:i.has,$keys:i.keys}},function(t,e,n){var r=n(4),i=n(7),a=n(28),o=n(338),s=n(339),u=n(183),c=r.structuredClone;t.exports=!!c&&!i((function(){if(s&&a>92||u&&a>94||o&&a>97)return!1;var t=new ArrayBuffer(8),e=c(t,{transfer:[t]});return 0!=t.byteLength||8!=e.byteLength}))},function(t,e,n){n(510),n(511)},function(t,e,n){var r=n(3),i=n(4),a=n(501)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==a},{setInterval:a})},function(t,e,n){var r=n(3),i=n(4),a=n(501)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==a},{setTimeout:a})},function(t,e,n){n(513)},function(t,e,n){"use strict";n(390);var r,i=n(3),a=n(6),o=n(514),s=n(4),u=n(86),c=n(14),l=n(48),f=n(79),h=n(211),d=n(39),g=n(292),p=n(163),v=n(77),y=n(384).codeAt,x=n(515),_=n(69),m=n(84),b=n(328),w=n(516),T=n(52),A=T.set,S=T.getterFor("URL"),E=w.URLSearchParams,M=w.getState,k=s.URL,O=s.TypeError,R=s.parseInt,C=Math.floor,I=Math.pow,L=c("".charAt),D=c(/./.exec),P=c([].join),F=c(1..toString),z=c([].pop),N=c([].push),B=c("".replace),X=c([].shift),j=c("".split),U=c("".slice),$=c("".toLowerCase),Y=c([].unshift),V="Invalid scheme",G="Invalid host",H="Invalid port",W=/[a-z]/i,q=/[\d+-.a-z]/i,Z=/\d/,K=/^0x/i,J=/^[0-7]+$/,Q=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,at=/[\t\n\r]/g,ot=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)Y(e,t%256),t=C(t/256);return P(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,a=0;a<8;a++)0!==t[a]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(e=r,n=i),e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=F(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},st={},ut=g({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=g({},ut,{"#":1,"?":1,"{":1,"}":1}),lt=g({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(t,e){var n=y(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ht={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var n;return 2==t.length&&D(W,L(t,0))&&(":"==(n=L(t,1))||!e&&"|"==n)},gt=function(t){var e;return t.length>1&&dt(U(t,0,2))&&(2==t.length||"/"===(e=L(t,2))||"\\"===e||"?"===e||"#"===e)},pt=function(t){return"."===t||"%2e"===$(t)},vt={},yt={},xt={},_t={},mt={},bt={},wt={},Tt={},At={},St={},Et={},Mt={},kt={},Ot={},Rt={},Ct={},It={},Lt={},Dt={},Pt={},Ft={},zt=function(t,e,n){var r,i,a,o=_(t);if(e){if(i=this.parse(o))throw O(i);this.searchParams=null}else{if(void 0!==n&&(r=new zt(n,!0)),i=this.parse(o,null,r))throw O(i);(a=M(new E)).bindURL(this),this.searchParams=a}};zt.prototype={type:"URL",parse:function(t,e,n){var i,a,o,s,u,c=this,l=e||vt,f=0,h="",g=!1,y=!1,x=!1;for(t=_(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=B(t,rt,""),t=B(t,it,"$1")),t=B(t,at,""),i=p(t);f<=i.length;){switch(a=i[f],l){case vt:if(!a||!D(W,a)){if(e)return V;l=xt;continue}h+=$(a),l=yt;break;case yt:if(a&&(D(q,a)||"+"==a||"-"==a||"."==a))h+=$(a);else{if(":"!=a){if(e)return V;h="",l=xt,f=0;continue}if(e&&(c.isSpecial()!=d(ht,h)||"file"==h&&(c.includesCredentials()||null!==c.port)||"file"==c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&ht[c.scheme]==c.port&&(c.port=null));h="","file"==c.scheme?l=Ot:c.isSpecial()&&n&&n.scheme==c.scheme?l=_t:c.isSpecial()?l=Tt:"/"==i[f+1]?(l=mt,f++):(c.cannotBeABaseURL=!0,N(c.path,""),l=Dt)}break;case xt:if(!n||n.cannotBeABaseURL&&"#"!=a)return V;if(n.cannotBeABaseURL&&"#"==a){c.scheme=n.scheme,c.path=v(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ft;break}l="file"==n.scheme?Ot:bt;continue;case _t:if("/"!=a||"/"!=i[f+1]){l=bt;continue}l=At,f++;break;case mt:if("/"==a){l=St;break}l=Lt;continue;case bt:if(c.scheme=n.scheme,a==r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query;else if("/"==a||"\\"==a&&c.isSpecial())l=wt;else if("?"==a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.path.length--,l=Lt;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=v(n.path),c.query=n.query,c.fragment="",l=Ft}break;case wt:if(!c.isSpecial()||"/"!=a&&"\\"!=a){if("/"!=a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Lt;continue}l=St}else l=At;break;case Tt:if(l=At,"/"!=a||"/"!=L(h,f+1))continue;f++;break;case At:if("/"!=a&&"\\"!=a){l=St;continue}break;case St:if("@"==a){g&&(h="%40"+h),g=!0,o=p(h);for(var m=0;m<o.length;m++){var b=o[m];if(":"!=b||x){var w=ft(b,lt);x?c.password+=w:c.username+=w}else x=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(g&&""==h)return"Invalid authority";f-=p(h).length+1,h="",l=Et}else h+=a;break;case Et:case Mt:if(e&&"file"==c.scheme){l=Ct;continue}if(":"!=a||y){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()){if(c.isSpecial()&&""==h)return G;if(e&&""==h&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(h))return s;if(h="",l=It,e)return;continue}"["==a?y=!0:"]"==a&&(y=!1),h+=a}else{if(""==h)return G;if(s=c.parseHost(h))return s;if(h="",l=kt,e==Mt)return}break;case kt:if(!D(Z,a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&c.isSpecial()||e){if(""!=h){var T=R(h,10);if(T>65535)return H;c.port=c.isSpecial()&&T===ht[c.scheme]?null:T,h=""}if(e)return;l=It;continue}return H}h+=a;break;case Ot:if(c.scheme="file","/"==a||"\\"==a)l=Rt;else{if(!n||"file"!=n.scheme){l=Lt;continue}if(a==r)c.host=n.host,c.path=v(n.path),c.query=n.query;else if("?"==a)c.host=n.host,c.path=v(n.path),c.query="",l=Pt;else{if("#"!=a){gt(P(v(i,f),""))||(c.host=n.host,c.path=v(n.path),c.shortenPath()),l=Lt;continue}c.host=n.host,c.path=v(n.path),c.query=n.query,c.fragment="",l=Ft}}break;case Rt:if("/"==a||"\\"==a){l=Ct;break}n&&"file"==n.scheme&&!gt(P(v(i,f),""))&&(dt(n.path[0],!0)?N(c.path,n.path[0]):c.host=n.host),l=Lt;continue;case Ct:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!e&&dt(h))l=Lt;else if(""==h){if(c.host="",e)return;l=It}else{if(s=c.parseHost(h))return s;if("localhost"==c.host&&(c.host=""),e)return;h="",l=It}continue}h+=a;break;case It:if(c.isSpecial()){if(l=Lt,"/"!=a&&"\\"!=a)continue}else if(e||"?"!=a)if(e||"#"!=a){if(a!=r&&(l=Lt,"/"!=a))continue}else c.fragment="",l=Ft;else c.query="",l=Pt;break;case Lt:if(a==r||"/"==a||"\\"==a&&c.isSpecial()||!e&&("?"==a||"#"==a)){if(".."===(u=$(u=h))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"==a||"\\"==a&&c.isSpecial()||N(c.path,"")):pt(h)?"/"==a||"\\"==a&&c.isSpecial()||N(c.path,""):("file"==c.scheme&&!c.path.length&&dt(h)&&(c.host&&(c.host=""),h=L(h,0)+":"),N(c.path,h)),h="","file"==c.scheme&&(a==r||"?"==a||"#"==a))for(;c.path.length>1&&""===c.path[0];)X(c.path);"?"==a?(c.query="",l=Pt):"#"==a&&(c.fragment="",l=Ft)}else h+=ft(a,ct);break;case Dt:"?"==a?(c.query="",l=Pt):"#"==a?(c.fragment="",l=Ft):a!=r&&(c.path[0]+=ft(a,st));break;case Pt:e||"#"!=a?a!=r&&("'"==a&&c.isSpecial()?c.query+="%27":c.query+="#"==a?"%23":ft(a,st)):(c.fragment="",l=Ft);break;case Ft:a!=r&&(c.fragment+=ft(a,ut))}f++}},parseHost:function(t){var e,n,r;if("["==L(t,0)){if("]"!=L(t,t.length-1))return G;if(e=function(t){var e,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,h=function(){return L(t,f)};if(":"==h()){if(":"!=L(t,1))return;f+=2,l=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=n=0;n<4&&D(tt,h());)e=16*e+R(h(),16),f++,n++;if("."==h()){if(0==n)return;if(f-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;f++}if(!D(Z,h()))return;for(;D(Z,h());){if(a=R(h(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;u[c++]=e}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(o=c-l,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[l+o-1],u[l+--o]=s;else if(8!=c)return;return u}(U(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=x(t),D(et,t))return G;if(e=function(t){var e,n,r,i,a,o,s,u=j(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(n=[],r=0;r<e;r++){if(""==(i=u[r]))return t;if(a=10,i.length>1&&"0"==L(i,0)&&(a=D(K,i)?16:8,i=U(i,8==a?1:2)),""===i)o=0;else{if(!D(10==a?Q:8==a?J:tt,i))return t;o=R(i,a)}N(n,o)}for(r=0;r<e;r++)if(o=n[r],r==e-1){if(o>=I(256,5-e))return null}else if(o>255)return null;for(s=z(n),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s}(t),null===e)return G;this.host=e}else{if(D(nt,t))return G;for(e="",n=p(t),r=0;r<n.length;r++)e+=ft(n[r],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return d(ht,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&dt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,a=t.port,o=t.path,s=t.query,u=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=ot(i),null!==a&&(c+=":"+a)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?o[0]:o.length?"/"+P(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw O(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new Nt(t.path[0]).origin}catch(t){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+ot(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(_(t)+":",vt)},getUsername:function(){return this.username},setUsername:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=ft(e[n],lt)}},getPassword:function(){return this.password},setPassword:function(t){var e=p(_(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=ft(e[n],lt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?ot(t):ot(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Et)},getHostname:function(){var t=this.host;return null===t?"":ot(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Mt)},getPort:function(){var t=this.port;return null===t?"":_(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=_(t))?this.port=null:this.parse(t,kt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+P(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,It))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=_(t))?this.query=null:("?"==L(t,0)&&(t=U(t,1)),this.query="",this.parse(t,Pt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=_(t))?("#"==L(t,0)&&(t=U(t,1)),this.fragment="",this.parse(t,Ft)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Nt=function(t){var e=h(this,Bt),n=b(arguments.length,1)>1?arguments[1]:void 0,r=A(e,new zt(t,!1,n));a||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Bt=Nt.prototype,Xt=function(t,e){return{get:function(){return S(this)[t]()},set:e&&function(t){return S(this)[e](t)},configurable:!0,enumerable:!0}};if(a&&(f(Bt,"href",Xt("serialize","setHref")),f(Bt,"origin",Xt("getOrigin")),f(Bt,"protocol",Xt("getProtocol","setProtocol")),f(Bt,"username",Xt("getUsername","setUsername")),f(Bt,"password",Xt("getPassword","setPassword")),f(Bt,"host",Xt("getHost","setHost")),f(Bt,"hostname",Xt("getHostname","setHostname")),f(Bt,"port",Xt("getPort","setPort")),f(Bt,"pathname",Xt("getPathname","setPathname")),f(Bt,"search",Xt("getSearch","setSearch")),f(Bt,"searchParams",Xt("getSearchParams")),f(Bt,"hash",Xt("getHash","setHash"))),l(Bt,"toJSON",(function(){return S(this).serialize()}),{enumerable:!0}),l(Bt,"toString",(function(){return S(this).serialize()}),{enumerable:!0}),k){var jt=k.createObjectURL,Ut=k.revokeObjectURL;jt&&l(Nt,"createObjectURL",u(jt,k)),Ut&&l(Nt,"revokeObjectURL",u(Ut,k))}m(Nt,"URL"),i({global:!0,constructor:!0,forced:!o,sham:!a},{URL:Nt})},function(t,e,n){var r=n(7),i=n(34),a=n(6),o=n(36),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e.delete("b"),n+=r+t})),o&&!t.toJSON||!e.size&&(o||!a)||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},function(t,e,n){var r=n(14),i=2147483647,a=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",u=RangeError,c=r(o.exec),l=Math.floor,f=String.fromCharCode,h=r("".charCodeAt),d=r([].join),g=r([].push),p=r("".replace),v=r("".split),y=r("".toLowerCase),x=function(t){return t+22+75*(t<26)},_=function(t,e,n){var r=0;for(t=n?l(t/700):t>>1,t+=l(t/e);t>455;)t=l(t/35),r+=36;return l(r+36*t/(t+38))},m=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=h(t,n++);if(i>=55296&&i<=56319&&n<r){var a=h(t,n++);56320==(64512&a)?g(e,((1023&i)<<10)+(1023&a)+65536):(g(e,i),n--)}else g(e,i)}return e}(t);var n,r,a=t.length,o=128,c=0,p=72;for(n=0;n<t.length;n++)(r=t[n])<128&&g(e,f(r));var v=e.length,y=v;for(v&&g(e,"-");y<a;){var m=i;for(n=0;n<t.length;n++)(r=t[n])>=o&&r<m&&(m=r);var b=y+1;if(m-o>l((i-c)/b))throw u(s);for(c+=(m-o)*b,o=m,n=0;n<t.length;n++){if((r=t[n])<o&&++c>i)throw u(s);if(r==o){for(var w=c,T=36;;){var A=T<=p?1:T>=p+26?26:T-p;if(w<A)break;var S=w-A,E=36-A;g(e,f(x(A+S%E))),w=l(S/E),T+=36}g(e,f(x(w))),p=_(c,b,y==v),c=0,y++}}c++,o++}return d(e,"")};t.exports=function(t){var e,n,r=[],i=v(p(y(t),o,"."),".");for(e=0;e<i.length;e++)n=i[e],g(r,c(a,n)?"xn--"+m(n):n);return d(r,".")}},function(t,e,n){"use strict";n(169);var r=n(3),i=n(4),a=n(8),o=n(14),s=n(6),u=n(514),c=n(48),l=n(79),f=n(210),h=n(84),d=n(171),g=n(52),p=n(211),v=n(21),y=n(39),x=n(86),_=n(70),m=n(47),b=n(20),w=n(69),T=n(72),A=n(11),S=n(135),E=n(136),M=n(328),k=n(34),O=n(189),R=k("iterator"),C="URLSearchParams",I=C+"Iterator",L=g.set,D=g.getterFor(C),P=g.getterFor(I),F=Object.getOwnPropertyDescriptor,z=function(t){if(!s)return i[t];var e=F(i,t);return e&&e.value},N=z("fetch"),B=z("Request"),X=z("Headers"),j=B&&B.prototype,U=X&&X.prototype,$=i.RegExp,Y=i.TypeError,V=i.decodeURIComponent,G=i.encodeURIComponent,H=o("".charAt),W=o([].join),q=o([].push),Z=o("".replace),K=o([].shift),J=o([].splice),Q=o("".split),tt=o("".slice),et=/\+/g,nt=Array(4),rt=function(t){return nt[t-1]||(nt[t-1]=$("((?:%[\\da-f]{2}){"+t+"})","gi"))},it=function(t){try{return V(t)}catch(e){return t}},at=function(t){var e=Z(t,et," "),n=4;try{return V(e)}catch(t){for(;n;)e=Z(e,rt(n--),it);return e}},ot=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ut=function(t){return st[t]},ct=function(t){return Z(G(t),ot,ut)},lt=d((function(t,e){L(this,{type:I,iterator:S(D(t).entries),kind:e})}),"Iterator",(function(){var t=P(this),e=t.kind,n=t.iterator.next(),r=n.value;return n.done||(n.value="keys"===e?r.key:"values"===e?r.value:[r.key,r.value]),n}),!0),ft=function(t){this.entries=[],this.url=null,void 0!==t&&(b(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===H(t,0)?tt(t,1):t:w(t)))};ft.prototype={type:C,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,s,u,c=E(t);if(c)for(n=(e=S(t,c)).next;!(r=a(n,e)).done;){if(o=(i=S(m(r.value))).next,(s=a(o,i)).done||(u=a(o,i)).done||!a(o,i).done)throw Y("Expected sequence with length 2");q(this.entries,{key:w(s.value),value:w(u.value)})}else for(var l in t)y(t,l)&&q(this.entries,{key:l,value:w(t[l])})},parseQuery:function(t){if(t)for(var e,n,r=Q(t,"&"),i=0;i<r.length;)(e=r[i++]).length&&(n=Q(e,"="),q(this.entries,{key:at(K(n)),value:at(W(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],q(n,ct(t.key)+"="+ct(t.value));return W(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ht=function(){p(this,dt);var t=L(this,new ft(arguments.length>0?arguments[0]:void 0));s||(this.length=t.entries.length)},dt=ht.prototype;if(f(dt,{append:function(t,e){M(arguments.length,2);var n=D(this);q(n.entries,{key:w(t),value:w(e)}),s||this.length++,n.updateURL()},delete:function(t){M(arguments.length,1);for(var e=D(this),n=e.entries,r=w(t),i=0;i<n.length;)n[i].key===r?J(n,i,1):i++;s||(this.length=n.length),e.updateURL()},get:function(t){M(arguments.length,1);for(var e=D(this).entries,n=w(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){M(arguments.length,1);for(var e=D(this).entries,n=w(t),r=[],i=0;i<e.length;i++)e[i].key===n&&q(r,e[i].value);return r},has:function(t){M(arguments.length,1);for(var e=D(this).entries,n=w(t),r=0;r<e.length;)if(e[r++].key===n)return!0;return!1},set:function(t,e){M(arguments.length,1);for(var n,r=D(this),i=r.entries,a=!1,o=w(t),u=w(e),c=0;c<i.length;c++)(n=i[c]).key===o&&(a?J(i,c--,1):(a=!0,n.value=u));a||q(i,{key:o,value:u}),s||(this.length=i.length),r.updateURL()},sort:function(){var t=D(this);O(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=D(this).entries,r=x(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new lt(this,"keys")},values:function(){return new lt(this,"values")},entries:function(){return new lt(this,"entries")}},{enumerable:!0}),c(dt,R,dt.entries,{name:"entries"}),c(dt,"toString",(function(){return D(this).serialize()}),{enumerable:!0}),s&&l(dt,"size",{get:function(){return D(this).entries.length},configurable:!0,enumerable:!0}),h(ht,C),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:ht}),!u&&v(X)){var gt=o(U.has),pt=o(U.set),vt=function(t){if(b(t)){var e,n=t.body;if(_(n)===C)return e=t.headers?new X(t.headers):new X,gt(e,"content-type")||pt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(t,{body:A(0,w(n)),headers:A(0,e)})}return t};if(v(N)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return N(t,arguments.length>1?vt(arguments[1]):{})}}),v(B)){var yt=function(t){return p(this,j),new B(t,arguments.length>1?vt(arguments[1]):{})};j.constructor=yt,yt.prototype=j,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:yt})}}t.exports={URLSearchParams:ht,getState:D}},function(t,e,n){"use strict";var r=n(3),i=n(8);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(t,e,n){n(516)},function(t,e,n){"use strict";var r=n(6),i=n(14),a=n(79),o=URLSearchParams.prototype,s=i(o.forEach);r&&!("size"in o)&&a(o,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},,function(t,e,n){"use strict";n.r(e),n.d(e,{bb:function(){return fd},default:function(){return fd}});var r={};n.r(r),n.d(r,{area:function(){return ph},areaLineRange:function(){return vh},areaSpline:function(){return yh},areaSplineRange:function(){return xh},areaStep:function(){return _h},bar:function(){return Mh},bubble:function(){return kh},donut:function(){return Th},gauge:function(){return Ah},line:function(){return mh},pie:function(){return Sh},radar:function(){return Eh},scatter:function(){return Oh},spline:function(){return bh},step:function(){return wh}});var i={};n.r(i),n.d(i,{selection:function(){return sd},subchart:function(){return ud},zoom:function(){return cd}});var a=new Date,o=new Date;function s(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,a){var o,s=[];if(n=i.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o<n&&n<r);return s},i.filter=function(n){return s((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return a.setTime(+e),o.setTime(+r),t(a),t(o),Math.floor(n(a,o))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var u=1e3,c=6e4,l=36e5,f=864e5,h=6048e5;function d(t){return s((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/h}))}var g=d(0),p=d(1),v=d(2),y=d(3),x=d(4),_=d(5),m=d(6),b=(g.range,p.range,v.range,y.range,x.range,_.range,m.range,s((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/f}),(function(t){return t.getUTCDate()-1}))),w=b;b.range;function T(t){return s((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/h}))}var A=T(0),S=T(1),E=T(2),M=T(3),k=T(4),O=T(5),R=T(6),C=(A.range,S.range,E.range,M.range,k.range,O.range,R.range,s((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*c)/f}),(function(t){return t.getDate()-1}))),I=C,L=(C.range,s((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));L.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var D=L,P=(L.range,s((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));P.every=function(t){return isFinite(t=Math.floor(t))&&t>0?s((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var F=P;P.range;function z(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 N(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 B(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var X,j,U,$,Y,V={"-":"",_:" ",0:"0"},G=/^\s*\d+/,H=/^%/,W=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?Array(n-a+1).join(e)+i:i)}function Z(t){return t.replace(W,"\\$&")}function K(t){return new RegExp("^(?:"+t.map(Z).join("|")+")","i")}function J(t){for(var e={},n=-1,r=t.length;++n<r;)e[t[n].toLowerCase()]=n;return e}function Q(t,e,n){var r=G.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function tt(t,e,n){var r=G.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function et(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function nt(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function rt(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function it(t,e,n){var r=G.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function at(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ot(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function st(t,e,n){var r=G.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ut(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ct(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function lt(t,e,n){var r=G.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ft(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ht(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dt(t,e,n){var r=G.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function gt(t,e,n){var r=G.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function pt(t,e,n){var r=G.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function vt(t,e,n){var r=H.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yt(t,e,n){var r=G.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function xt(t,e,n){var r=G.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function _t(t,e){return q(t.getDate(),e,2)}function mt(t,e){return q(t.getHours(),e,2)}function bt(t,e){return q(t.getHours()%12||12,e,2)}function wt(t,e){return q(1+I.count(D(t),t),e,3)}function Tt(t,e){return q(t.getMilliseconds(),e,3)}function At(t,e){return Tt(t,e)+"000"}function St(t,e){return q(t.getMonth()+1,e,2)}function Et(t,e){return q(t.getMinutes(),e,2)}function Mt(t,e){return q(t.getSeconds(),e,2)}function kt(t){var e=t.getDay();return 0===e?7:e}function Ot(t,e){return q(A.count(D(t)-1,t),e,2)}function Rt(t){var e=t.getDay();return e>=4||0===e?k(t):k.ceil(t)}function Ct(t,e){return t=Rt(t),q(k.count(D(t),t)+(4===D(t).getDay()),e,2)}function It(t){return t.getDay()}function Lt(t,e){return q(S.count(D(t)-1,t),e,2)}function Dt(t,e){return q(t.getFullYear()%100,e,2)}function Pt(t,e){return q((t=Rt(t)).getFullYear()%100,e,2)}function Ft(t,e){return q(t.getFullYear()%1e4,e,4)}function zt(t,e){var n=t.getDay();return q((t=n>=4||0===n?k(t):k.ceil(t)).getFullYear()%1e4,e,4)}function Nt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Bt(t,e){return q(t.getUTCDate(),e,2)}function Xt(t,e){return q(t.getUTCHours(),e,2)}function jt(t,e){return q(t.getUTCHours()%12||12,e,2)}function Ut(t,e){return q(1+w.count(F(t),t),e,3)}function $t(t,e){return q(t.getUTCMilliseconds(),e,3)}function Yt(t,e){return $t(t,e)+"000"}function Vt(t,e){return q(t.getUTCMonth()+1,e,2)}function Gt(t,e){return q(t.getUTCMinutes(),e,2)}function Ht(t,e){return q(t.getUTCSeconds(),e,2)}function Wt(t){var e=t.getUTCDay();return 0===e?7:e}function qt(t,e){return q(g.count(F(t)-1,t),e,2)}function Zt(t){var e=t.getUTCDay();return e>=4||0===e?x(t):x.ceil(t)}function Kt(t,e){return t=Zt(t),q(x.count(F(t),t)+(4===F(t).getUTCDay()),e,2)}function Jt(t){return t.getUTCDay()}function Qt(t,e){return q(p.count(F(t)-1,t),e,2)}function te(t,e){return q(t.getUTCFullYear()%100,e,2)}function ee(t,e){return q((t=Zt(t)).getUTCFullYear()%100,e,2)}function ne(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function re(t,e){var n=t.getUTCDay();return q((t=n>=4||0===n?x(t):x.ceil(t)).getUTCFullYear()%1e4,e,4)}function ie(){return"+0000"}function ae(){return"%"}function oe(t){return+t}function se(t){return Math.floor(+t/1e3)}function ue(){}function ce(t){return null==t?ue:function(){return this.querySelector(t)}}function le(){return[]}function fe(t){return null==t?le:function(){return this.querySelectorAll(t)}}function he(t){return function(){return this.matches(t)}}function de(t){return Array(t.length)}function ge(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}X=function(t){function e(t,e){return function(n){var r,i,a,o=[],s=-1,u=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null==(i=V[r=t.charAt(++s)])?i="e"===r?" ":"0":r=t.charAt(++s),(a=e[r])&&(r=a(n,i)),o.push(r),u=s+1);return o.push(t.slice(u,s)),o.join("")}}function n(t,e){return function(n){var i,a,o=B(1900,void 0,1);if(r(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(a=(i=N(B(o.y,0,1))).getUTCDay(),i=a>4||0===a?p.ceil(i):p(i),i=w.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(a=(i=z(B(o.y,0,1))).getDay(),i=a>4||0===a?S.ceil(i):S(i),i=I.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),a="Z"in o?N(B(o.y,0,1)).getUTCDay():z(B(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(a+5)%7:o.w+7*o.U-(a+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,N(o)):z(o)}}function r(t,e,n,r){for(var i,a,o=0,s=e.length,u=n.length;o<s;){if(r>=u)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=M[i in V?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}var i=t.dateTime,a=t.date,o=t.time,s=t.periods,u=t.days,c=t.shortDays,l=t.months,f=t.shortMonths,h=K(s),d=J(s),g=K(u),v=J(u),y=K(c),x=J(c),_=K(l),m=J(l),b=K(f),T=J(f),A={a:function(t){return c[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return f[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:null,d:_t,e:_t,f:At,g:Pt,G:zt,H:mt,I:bt,j:wt,L:Tt,m:St,M:Et,p:function(t){return s[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:oe,s:se,S:Mt,u:kt,U:Ot,V:Ct,w:It,W:Lt,x:null,X:null,y:Dt,Y:Ft,Z:Nt,"%":ae},E={a:function(t){return c[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return l[t.getUTCMonth()]},c:null,d:Bt,e:Bt,f:Yt,g:ee,G:re,H:Xt,I:jt,j:Ut,L:$t,m:Vt,M:Gt,p:function(t){return s[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:oe,s:se,S:Ht,u:Wt,U:qt,V:Kt,w:Jt,W:Qt,x:null,X:null,y:te,Y:ne,Z:ie,"%":ae},M={a:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.w=x[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.w=v[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=b.exec(e.slice(n));return r?(t.m=T[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=_.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,e,n){return r(t,i,e,n)},d:ct,e:ct,f:pt,g:at,G:it,H:ft,I:ft,j:lt,L:gt,m:ut,M:ht,p:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.p=d[r[0].toLowerCase()],n+r[0].length):-1},q:st,Q:yt,s:xt,S:dt,u:tt,U:et,V:nt,w:Q,W:rt,x:function(t,e,n){return r(t,a,e,n)},X:function(t,e,n){return r(t,o,e,n)},y:at,Y:it,Z:ot,"%":vt};return A.x=e(a,A),A.X=e(o,A),A.c=e(i,A),E.x=e(a,E),E.X=e(o,E),E.c=e(i,E),{format:function(t){var n=e(t+="",A);return n.toString=function(){return t},n},parse:function(t){var e=n(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var n=e(t+="",E);return n.toString=function(){return t},n},utcParse:function(t){var e=n(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),j=X.format,U=X.parse,$=X.utcFormat,Y=X.utcParse,ge.prototype={constructor:ge,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var pe="$";function ve(t,e,n,r,i,a){for(var o,s=0,u=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],r[s]=o):n[s]=new ge(t,a[s]);for(;s<u;++s)(o=e[s])&&(i[s]=o)}function ye(t,e,n,r,i,a,o){var s,u,c,l={},f=e.length,h=a.length,d=Array(f);for(s=0;s<f;++s)(u=e[s])&&(d[s]=c=pe+o.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<h;++s)(u=l[c=pe+o.call(t,a[s],s,a)])?(r[s]=u,u.__data__=a[s],l[c]=null):n[s]=new ge(t,a[s]);for(s=0;s<f;++s)(u=e[s])&&l[d[s]]===u&&(i[s]=u)}function xe(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var _e="http://www.w3.org/1999/xhtml",me={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function be(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),me.hasOwnProperty(e)?{space:me[e],local:t}:t}function we(t){return function(){this.removeAttribute(t)}}function Te(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ae(t,e){return function(){this.setAttribute(t,e)}}function Se(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ee(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Me(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function ke(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Oe(t){return function(){this.style.removeProperty(t)}}function Re(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ce(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Ie(t,e){return t.style.getPropertyValue(e)||ke(t).getComputedStyle(t,null).getPropertyValue(e)}function Le(t){return function(){delete this[t]}}function De(t,e){return function(){this[t]=e}}function Pe(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Fe(t){return t.trim().split(/^|\s+/)}function ze(t){return t.classList||new Ne(t)}function Ne(t){this._node=t,this._names=Fe(t.getAttribute("class")||"")}function Be(t,e){for(var n=ze(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Xe(t,e){for(var n=ze(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function je(t){return function(){Be(this,t)}}function Ue(t){return function(){Xe(this,t)}}function $e(t,e){return function(){(e.apply(this,arguments)?Be:Xe)(this,t)}}function Ye(){this.textContent=""}function Ve(t){return function(){this.textContent=t}}function Ge(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function He(){this.innerHTML=""}function We(t){return function(){this.innerHTML=t}}function qe(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Ze(){this.nextSibling&&this.parentNode.appendChild(this)}function Ke(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Je(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===_e&&e.documentElement.namespaceURI===_e?e.createElement(t):e.createElementNS(n,t)}}function Qe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function tn(t){var e=be(t);return(e.local?Qe:Je)(e)}function en(){return null}function nn(){var t=this.parentNode;t&&t.removeChild(this)}function rn(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function an(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}Ne.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var on={},sn=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(on={mouseenter:"mouseover",mouseleave:"mouseout"}));function un(t,e,n){return t=cn(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function cn(t,e,n){return function(r){var i=sn;sn=r;try{t.call(this,this.__data__,e,n)}finally{sn=i}}}function ln(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function fn(t,e,n){var r=on.hasOwnProperty(t.type)?un:cn;return function(i,a,o){var s,u=this.__on,c=r(e,a,o);if(u)for(var l=0,f=u.length;l<f;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}function hn(t,e,n,r){var i=sn;t.sourceEvent=sn,sn=t;try{return e.apply(n,r)}finally{sn=i}}function dn(t,e,n){var r=ke(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function gn(t,e){return function(){return dn(this,t,e)}}function pn(t,e){return function(){return dn(this,t,e.apply(this,arguments))}}var vn=[null];function yn(t,e){this._groups=t,this._parents=e}function xn(){return new yn([[document.documentElement]],vn)}yn.prototype=xn.prototype={constructor:yn,select:function(t){"function"!=typeof t&&(t=ce(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o,s=e[i],u=s.length,c=r[i]=Array(u),l=0;l<u;++l)(a=s[l])&&(o=t.call(a,a.__data__,l,s))&&("__data__"in a&&(o.__data__=a.__data__),c[l]=o);return new yn(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=fe(t));for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,s=e[a],u=s.length,c=0;c<u;++c)(o=s[c])&&(r.push(t.call(o,o.__data__,c,s)),i.push(o));return new yn(r,i)},filter:function(t){"function"!=typeof t&&(t=he(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new yn(r,this._parents)},data:function(t,e){if(!t)return d=Array(this.size()),c=-1,this.each((function(t){d[++c]=t})),d;var n=e?ye:ve,r=this._parents,i=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var a=i.length,o=Array(a),s=Array(a),u=Array(a),c=0;c<a;++c){var l=r[c],f=i[c],h=f.length,d=t.call(l,l&&l.__data__,c,r),g=d.length,p=s[c]=Array(g),v=o[c]=Array(g);n(l,f,p,v,u[c]=Array(h),d,e);for(var y,x,_=0,m=0;_<g;++_)if(y=p[_]){for(_>=m&&(m=_+1);!(x=v[m])&&++m<g;);y._next=x||null}}return(o=new yn(o,r))._enter=s,o._exit=u,o},enter:function(){return new yn(this._enter||this._groups.map(de),this._parents)},exit:function(){return new yn(this._exit||this._groups.map(de),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=this.exit();return r="function"==typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new yn(o,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=xe);for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o,s=n[a],u=s.length,c=i[a]=Array(u),l=0;l<u;++l)(o=s[l])&&(c[l]=o);c.sort(e)}return new yn(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)if(r=i[a])return r;return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,a=e[n],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=be(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Te:we:"function"==typeof e?n.local?Me:Ee:n.local?Se:Ae)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Oe:"function"==typeof e?Ce:Re)(t,e,null==n?"":n)):Ie(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Le:"function"==typeof e?Pe:De)(t,e)):this.node()[t]},classed:function(t,e){var n=Fe(t+"");if(arguments.length<2){for(var r=ze(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?$e:e?je:Ue)(n,e))},text:function(t){return arguments.length?this.each(null==t?Ye:("function"==typeof t?Ge:Ve)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?He:("function"==typeof t?qe:We)(t)):this.node().innerHTML},raise:function(){return this.each(Ze)},lower:function(){return this.each(Ke)},append:function(t){var e="function"==typeof t?t:tn(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:tn(t),r=null==e?en:"function"==typeof e?e:ce(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(nn)},clone:function(t){return this.select(t?an:rn)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,a=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(s=e?fn:ln,null==n&&(n=!1),r=0;r<o;++r)this.each(s(a[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<o;++r)if((i=a[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?pn:gn)(t,e))}};var _n=xn;function mn(t){return"string"==typeof t?new yn([[document.querySelector(t)]],[document.documentElement]):new yn([[t]],vn)}var bn={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",area:"bb-area",areas:"bb-areas",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",bar:"bb-bar",bars:"bb-bars",brush:"bb-brush",button:"bb-button",buttonZoomReset:"bb-zoom-reset",chart:"bb-chart",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsTitle:"bb-chart-arcs-title",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars",chartCircles:"bb-chart-circles",chartLine:"bb-chart-line",chartLines:"bb-chart-lines",chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars",chartText:"bb-chart-text",chartTexts:"bb-chart-texts",circle:"bb-circle",circles:"bb-circles",colorPattern:"bb-color-pattern",colorScale:"bb-colorscale",defocused:"bb-defocused",dragarea:"bb-dragarea",empty:"bb-empty",eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single",focused:"bb-focused",gaugeValue:"bb-gauge-value",grid:"bb-grid",gridLines:"bb-grid-lines",legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemFocused:"bb-legend-item-focused",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile",level:"bb-level",levels:"bb-levels",line:"bb-line",lines:"bb-lines",main:"bb-main",region:"bb-region",regions:"bb-regions",selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",shape:"bb-shape",shapes:"bb-shapes",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions",subchart:"bb-subchart",target:"bb-target",text:"bb-text",texts:"bb-texts",title:"bb-title",tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name",xgrid:"bb-xgrid",xgridFocus:"bb-xgrid-focus",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridFocus:"bb-ygrid-focus",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids",zoomBrush:"bb-zoom-brush",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_",TextOverlapping:"text-overlapping"},wn={element:function(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,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}},state:function(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasRadar:!1,current:{width:0,height:0,dataMax:0,maxTickWidths:{x:{size:0,ticks:[],clipPath:0,domain:""},y:{size:0,domain:""},y2:{size:0,domain:""}},types:[]},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},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",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}}}},Tn=function(){function t(){var t=this;Object.keys(wn).forEach((function(e){t[e]=new wn[e]}))}return t.prototype.getStore=function(t){return this[t]},t}();function An(t){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(t)}function Sn(t){var e=function(t,e){if("object"!==An(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==An(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===An(e)?e:String(e)}function En(t,e,n){return(e=Sn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Mn={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!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:350,plugins:[],render:{},regions:[]},kn={data_x:void 0,data_idConverter:function(t){return t},data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_color:void 0,data_colors:{},data_labels:{},data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:function(){},data_onover:function(){},data_onout:function(){},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:""},On={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Rn={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Cn={legend_show:!0,legend_hide:!1,legend_contents_bindto:void 0,legend_contents_template:void 0,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,legend_usePoint:!1},In={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Ln={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:function(){},tooltip_onhide:function(){},tooltip_onshown:function(){},tooltip_onhidden:function(){},tooltip_order:null},Dn={value:function(){}};function Pn(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Fn(r)}function Fn(t){this._=t}function zn(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Nn(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Dn,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Fn.prototype=Pn.prototype={constructor:Fn,on:function(t,e){var n,r,i=this._,a=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=a[o]).type)i[n]=Nn(i[n],t.name,e);else if(null==e)for(n in i)i[n]=Nn(i[n],t.name,null);return this}for(;++o<s;)if((n=(t=a[o]).type)&&(n=zn(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Fn(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=0,n=(r=this._[t]).length;a<n;++a)r[a].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,a=r.length;i<a;++i)r[i].value.apply(e,n)}};var Bn=Pn;function Xn(){sn.stopImmediatePropagation()}function jn(){sn.preventDefault(),sn.stopImmediatePropagation()}function Un(t){var e=t.document.documentElement,n=mn(t).on("dragstart.drag",jn,!0);"onselectstart"in e?n.on("selectstart.drag",jn,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function $n(t,e){var n=t.document.documentElement,r=mn(t).on("dragstart.drag",null);e&&(r.on("click.drag",jn,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Yn(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Vn(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Gn(){}var Hn=.7,Wn=1/Hn,qn=/^#([0-9a-f]{3,8})$/,Zn=new RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Kn=new RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Jn=new RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),Qn=new RegExp("^rgba\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),tr=new RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),er=new RegExp("^hsla\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),nr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rr(){return this.rgb().formatHex()}function ir(){return this.rgb().formatRgb()}function ar(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=qn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?or(e):3===n?new cr(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?sr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?sr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zn.exec(t))?new cr(e[1],e[2],e[3],1):(e=Kn.exec(t))?new cr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Jn.exec(t))?sr(e[1],e[2],e[3],e[4]):(e=Qn.exec(t))?sr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tr.exec(t))?dr(e[1],e[2]/100,e[3]/100,1):(e=er.exec(t))?dr(e[1],e[2]/100,e[3]/100,e[4]):nr.hasOwnProperty(t)?or(nr[t]):"transparent"===t?new cr(NaN,NaN,NaN,0):null}function or(t){return new cr(t>>16&255,t>>8&255,255&t,1)}function sr(t,e,n,r){return r<=0&&(t=e=n=NaN),new cr(t,e,n,r)}function ur(t,e,n,r){return 1===arguments.length?((i=t)instanceof Gn||(i=ar(i)),i?new cr((i=i.rgb()).r,i.g,i.b,i.opacity):new cr):new cr(t,e,n,null==r?1:r);var i}function cr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function lr(){return"#"+hr(this.r)+hr(this.g)+hr(this.b)}function fr(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function hr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new pr(t,e,n,r)}function gr(t){if(t instanceof pr)return new pr(t.h,t.s,t.l,t.opacity);if(t instanceof Gn||(t=ar(t)),!t)return new pr;if(t instanceof pr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n<r):n===a?(r-e)/s+2:(e-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new pr(o,s,u,t.opacity)}function pr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function vr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function yr(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function xr(t){return function(){return t}}function _r(t,e){return function(n){return t+n*e}}function mr(t){return 1==(t=+t)?br:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):xr(isNaN(e)?n:e)}}function br(t,e){var n=e-t;return n?_r(t,n):xr(isNaN(t)?e:t)}Yn(Gn,ar,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rr,formatHex:rr,formatHsl:function(){return gr(this).formatHsl()},formatRgb:ir,toString:ir}),Yn(cr,ur,Vn(Gn,{brighter:function(t){return t=null==t?Wn:Math.pow(Wn,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Hn:Math.pow(Hn,t),new cr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:lr,formatHex:lr,formatRgb:fr,toString:fr})),Yn(pr,(function(t,e,n,r){return 1===arguments.length?gr(t):new pr(t,e,n,null==r?1:r)}),Vn(Gn,{brighter:function(t){return t=null==t?Wn:Math.pow(Wn,t),new pr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Hn:Math.pow(Hn,t),new pr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new cr(vr(t>=240?t-240:t+120,i,r),vr(t,i,r),vr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var wr=function t(e){function n(t,e){var n=r((t=ur(t)).r,(e=ur(e)).r),i=r(t.g,e.g),a=r(t.b,e.b),o=br(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}var r=mr(e);return n.gamma=t,n}(1);function Tr(t){return function(e){var n,r,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(n=0;n<i;++n)r=ur(e[n]),a[n]=r.r||0,o[n]=r.g||0,s[n]=r.b||0;return a=t(a),o=t(o),s=t(s),r.opacity=1,function(t){return r.r=a(t),r.g=o(t),r.b=s(t),r+""}}}Tr((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r<e-1?t[r+2]:2*a-i;return yr((n-r/e)*e,o,i,a,s)}})),Tr((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],a=t[r%e],o=t[(r+1)%e],s=t[(r+2)%e];return yr((n-r/e)*e,i,a,o,s)}}));function Ar(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Sr(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Er(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=Array(i),o=Array(r);for(n=0;n<i;++n)a[n]=Lr(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<i;++n)o[n]=a[n](t);return o}}function Mr(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function kr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Or(t,e){var n,r={},i={};for(n in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)n in t?r[n]=Lr(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Rr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Cr=new RegExp(Rr.source,"g");function Ir(t,e){var n,r,i,a=Rr.lastIndex=Cr.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=Rr.exec(t))&&(r=Cr.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:kr(n,r)})),a=Cr.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function Lr(t,e){var n,r=typeof e;return null==e||"boolean"===r?xr(e):("number"===r?kr:"string"===r?(n=ar(e))?(e=n,wr):Ir:e instanceof ar?wr:e instanceof Date?Mr:Sr(e)?Ar:Array.isArray(e)?Er:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Or:kr)(t,e)}function Dr(){for(var t,e=sn;t=e.sourceEvent;)e=t;return e}function Pr(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function Fr(t,e,n){arguments.length<3&&(n=e,e=Dr().changedTouches);for(var r,i=0,a=e?e.length:0;i<a;++i)if((r=e[i]).identifier===n)return Pr(t,r);return null}function zr(t){var e=Dr();return e.changedTouches&&(e=e.changedTouches[0]),Pr(t,e)}var Nr,Br,Xr=0,jr=0,Ur=0,$r=1e3,Yr=0,Vr=0,Gr=0,Hr="object"==typeof performance&&performance.now?performance:Date,Wr="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qr(){return Vr||(Wr(Zr),Vr=Hr.now()+Gr)}function Zr(){Vr=0}function Kr(){this._call=this._time=this._next=null}function Jr(t,e,n){var r=new Kr;return r.restart(t,e,n),r}function Qr(){Vr=(Yr=Hr.now())+Gr,Xr=jr=0;try{!function(){qr(),++Xr;for(var t,e=Nr;e;)(t=Vr-e._time)>=0&&e._call.call(null,t),e=e._next;--Xr}()}finally{Xr=0,function(){for(var t,e,n=Nr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Nr=e);Br=t,ei(r)}(),Vr=0}}function ti(){var t=Hr.now(),e=t-Yr;e>$r&&(Gr-=e,Yr=t)}function ei(t){Xr||(jr&&(jr=clearTimeout(jr)),t-Vr>24?(t<1/0&&(jr=setTimeout(Qr,t-Hr.now()-Gr)),Ur&&(Ur=clearInterval(Ur))):(!Ur&&(Yr=Hr.now(),Ur=setInterval(ti,$r)),Xr=1,Wr(Qr)))}function ni(t,e,n){var r=new Kr;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Kr.prototype=Jr.prototype={constructor:Kr,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?qr():+n)+(null==e?0:+e),this._next||Br===this||(Br?Br._next=this:Nr=this,Br=this),this._call=t,this._time=n,ei()},stop:function(){this._call&&(this._call=null,this._time=1/0,ei())}};var ri=Bn("start","end","cancel","interrupt"),ii=[],ai=0,oi=1,si=2,ui=3,ci=4,li=5,fi=6;function hi(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){function r(u){var c,l,f,h;if(n.state!==oi)return a();for(c in s)if((h=s[c]).name===n.name){if(h.state===ui)return ni(r);h.state===ci?(h.state=fi,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete s[c]):+c<e&&(h.state=fi,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete s[c])}if(ni((function(){n.state===ui&&(n.state=ci,n.timer.restart(i,n.delay,n.time),i(u))})),n.state=si,n.on.call("start",t,t.__data__,n.index,n.group),n.state===si){for(n.state=ui,o=Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(o[++l]=h);o.length=l+1}}function i(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=li,1),i=-1,s=o.length;++i<s;)o[i].call(t,r);n.state===li&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=fi,n.timer.stop(),delete s[e],s)return;delete t.__transition}var o,s=t.__transition;s[e]=n,n.timer=Jr((function(t){n.state=oi,n.timer.restart(r,n.delay,n.time),n.delay<=t&&r(t-n.delay)}),0,n.time)}(t,n,{name:e,index:r,group:i,on:ri,tween:ii,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:ai})}function di(t,e){var n=pi(t,e);if(n.state>ai)throw new Error("too late; already scheduled");return n}function gi(t,e){var n=pi(t,e);if(n.state>ui)throw new Error("too late; already running");return n}function pi(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function vi(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>si&&n.state<li,n.state=fi,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var yi,xi,_i,mi,bi=180/Math.PI,wi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ti(t,e,n,r,i,a){var o,s,u;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*bi,skewX:Math.atan(u)*bi,scaleX:o,scaleY:s}}function Ai(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s=[],u=[];return a=t(a),o=t(o),function(t,r,i,a,o,s){if(t!==i||r!==a){var u=o.push("translate(",null,e,null,n);s.push({i:u-4,x:kr(t,i)},{i:u-2,x:kr(r,a)})}else(i||a)&&o.push("translate("+i+e+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,u),function(t,e,n,a){t===e?e&&n.push(i(n)+"rotate("+e+r):(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:kr(t,e)}))}(a.rotate,o.rotate,s,u),function(t,e,n,a){t===e?e&&n.push(i(n)+"skewX("+e+r):a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:kr(t,e)})}(a.skewX,o.skewX,s,u),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:kr(t,n)},{i:s-2,x:kr(e,r)})}else(1!==n||1!==r)&&a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,u),a=o=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var Si=Ai((function(t){return"none"===t?wi:(yi||(yi=document.createElement("DIV"),xi=document.documentElement,_i=document.defaultView),yi.style.transform=t,t=_i.getComputedStyle(xi.appendChild(yi),null).getPropertyValue("transform"),xi.removeChild(yi),Ti(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),"px, ","px)","deg)"),Ei=Ai((function(t){return null==t?wi:(mi||(mi=document.createElementNS("http://www.w3.org/2000/svg","g")),mi.setAttribute("transform",t),(t=mi.transform.baseVal.consolidate())?Ti((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):wi)}),", ",")",")");function Mi(t,e){var n,r;return function(){var i=gi(this,t),a=i.tween;if(a!==n)for(var o=0,s=(r=n=a).length;o<s;++o)if(r[o].name===e){(r=r.slice()).splice(o,1);break}i.tween=r}}function ki(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var a=gi(this,t),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function Oi(t,e,n){var r=t._id;return t.each((function(){var t=gi(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return pi(t,r).value[e]}}function Ri(t,e){var n;return("number"==typeof e?kr:e instanceof ar?wr:(n=ar(e))?(e=n,wr):Ir)(t,e)}function Ci(t){return function(){this.removeAttribute(t)}}function Ii(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Li(t,e,n){var r,i;return function(){var a=this.getAttribute(t);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Di(t,e,n){var r,i;return function(){var a=this.getAttributeNS(t.space,t.local);return a===n+""?null:a===r?i:i=e(r=a,n)}}function Pi(t,e,n){var r,i,a;return function(){var o,s,u=n(this);return null==u?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u))}}function Fi(t,e,n){var r,i,a;return function(){var o,s,u=n(this);return null==u?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:o===r&&s===i?a:(i=s,a=e(r=o,u))}}function zi(t,e){function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,n)),r}var r,i;return n._value=e,n}function Ni(t,e){function n(){var n=e.apply(this,arguments);return n!==i&&(r=(i=n)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,n)),r}var r,i;return n._value=e,n}function Bi(t,e){return function(){di(this,t).delay=+e.apply(this,arguments)}}function Xi(t,e){return e=+e,function(){di(this,t).delay=e}}function ji(t,e){return function(){gi(this,t).duration=+e.apply(this,arguments)}}function Ui(t,e){return e=+e,function(){gi(this,t).duration=e}}var $i=_n.prototype.constructor;function Yi(t){return function(){this.style.removeProperty(t)}}var Vi=0;function Gi(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Hi(t){return _n().transition(t)}function Wi(){return++Vi}var qi=_n.prototype;Gi.prototype=Hi.prototype={constructor:Gi,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=ce(t));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s,u,c=r[o],l=c.length,f=a[o]=Array(l),h=0;h<l;++h)(s=c[h])&&(u=t.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,hi(f[h],e,n,h,f,pi(s,n)));return new Gi(a,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=fe(t));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,d=t.call(u,u.__data__,f,c),g=pi(u,n),p=0,v=d.length;p<v;++p)(h=d[p])&&hi(h,e,n,p,d,g);a.push(d),o.push(u)}return new Gi(a,o,e,n)},filter:function(t){"function"!=typeof t&&(t=he(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var a,o=e[i],s=o.length,u=r[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&u.push(a);return new Gi(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var u,c=e[s],l=n[s],f=c.length,h=o[s]=Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<r;++s)o[s]=e[s];return new Gi(o,this._parents,this._name,this._id)},selection:function(){return new $i(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Wi(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)if(o=s[c]){var l=pi(o,e);hi(o,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Gi(r,this._parents,t,n)},call:qi.call,nodes:qi.nodes,node:qi.node,size:qi.size,empty:qi.empty,each:qi.each,on:function(t,e){var n=this._id;return arguments.length<2?pi(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,a=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?di:gi;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=be(t),r="transform"===n?Ei:Ri;return this.attrTween(t,"function"==typeof e?(n.local?Fi:Pi)(n,r,Oi(this,"attr."+t,e)):null==e?(n.local?Ii:Ci)(n):(n.local?Di:Li)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=be(t);return this.tween(n,(r.local?zi:Ni)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Si:Ri;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Ie(this,t),o=(this.style.removeProperty(t),Ie(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,Yi(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,a;return function(){var o=Ie(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ie(this,t)),o===u?null:o===r&&u===i?a:(i=u,a=e(r=o,s))}}(t,r,Oi(this,"style."+t,e))).each(function(t,e){var n,r,i,a,o="style."+e;return function(){var s=gi(this,t),u=s.on,c=null==s.value[o]?a||(a=Yi(e)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on("end."+o,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i;return function(){var a=Ie(this,t);return a===n+""?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=e.apply(this,arguments);return r!==a&&(i=(a=r)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,r,n)),i}var i,a;return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Oi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){function e(){var e=t.apply(this,arguments);return e!==r&&(n=(r=e)&&function(t){return function(e){this.textContent=t.call(this,e)}}(e)),n}var n,r;return e._value=t,e}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=pi(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===t)return r.value;return null}return this.each((null==e?Mi:ki)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Bi:Xi)(e,t)):pi(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ji:Ui)(e,t)):pi(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){gi(this,t).ease=e}}(e,t)):pi(this.node(),e).ease},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var s={value:o},u={value:function(){0==--i&&a()}};n.each((function(){var n=gi(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))}};var Zi={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ki(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return Zi.time=qr(),Zi;return n}_n.prototype.interrupt=function(t){return this.each((function(){vi(this,t)}))},_n.prototype.transition=function(t){var e,n;t instanceof Gi?(e=t._id,t=t._name):(e=Wi(),(n=Zi).time=qr(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,s=r[a],u=s.length,c=0;c<u;++c)(o=s[c])&&hi(o,t,e,c,s,n||Ki(o,e));return new Gi(r,this._parents,t,e)};function Ji(t){return function(){return t}}function Qi(t,e,n){this.target=t,this.type=e,this.selection=n}function ta(){sn.stopImmediatePropagation()}function ea(){sn.preventDefault(),sn.stopImmediatePropagation()}var na={name:"drag"},ra={name:"space"},ia={name:"handle"},aa={name:"center"};function oa(t){return[+t[0],+t[1]]}function sa(t){return[oa(t[0]),oa(t[1])]}var ua={name:"x",handles:["w","e"].map(pa),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ca={name:"y",handles:["n","s"].map(pa),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},la=(["n","w","e","s","nw","ne","sw","se"].map(pa),{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"}),fa={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ha={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},da={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ga={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function pa(t){return{type:t}}function va(){return!sn.ctrlKey&&!sn.button}function ya(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function xa(){return navigator.maxTouchPoints||"ontouchstart"in this}function _a(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function ma(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ba(t){function e(e){var r=e.property("__brush",u).selectAll(".overlay").data([pa("overlay")]);r.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",la.overlay).merge(r).each((function(){var t=_a(this).extent;mn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([pa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",la.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return la[t.type]})),e.each(n).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",a).filter(h).on("touchstart.brush",a).on("touchmove.brush",o).on("touchend.brush touchcancel.brush",s).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function n(){var t=mn(this),e=_a(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-p/2:e[0][0]-p/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-p/2:e[0][1]-p/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+p:p})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+p:p}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function r(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new i(t,e,n):r}function i(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function a(){function e(){var t=P(m);!D||x||_||(Math.abs(t[0]-z[0])>Math.abs(t[1]-z[1])?_=!0:x=!0),z=t,y=!0,ea(),i()}function i(){var t;switch(I=z[0]-F[0],L=z[1]-F[1],w){case ra:case na:T&&(I=Math.max(k-o,Math.min(R-h,I)),s=o+I,g=h+I),A&&(L=Math.max(O-u,Math.min(C-p,L)),l=u+L,v=p+L);break;case ia:T<0?(I=Math.max(k-o,Math.min(R-o,I)),s=o+I,g=h):T>0&&(I=Math.max(k-h,Math.min(R-h,I)),s=o,g=h+I),A<0?(L=Math.max(O-u,Math.min(C-u,L)),l=u+L,v=p):A>0&&(L=Math.max(O-p,Math.min(C-p,L)),l=u,v=p+L);break;case aa:T&&(s=Math.max(k,Math.min(R,o-I*T)),g=Math.max(k,Math.min(R,h+I*T))),A&&(l=Math.max(O,Math.min(C,u-L*A)),v=Math.max(O,Math.min(C,p+L*A)))}g<s&&(T*=-1,t=o,o=h,h=t,t=s,s=g,g=t,b in fa&&X.attr("cursor",la[b=fa[b]])),v<l&&(A*=-1,t=u,u=p,p=t,t=l,l=v,v=t,b in ha&&X.attr("cursor",la[b=ha[b]])),S.selection&&(M=S.selection),x&&(s=M[0][0],g=M[1][0]),_&&(l=M[0][1],v=M[1][1]),(M[0][0]!==s||M[0][1]!==l||M[1][0]!==g||M[1][1]!==v)&&(S.selection=[[s,l],[g,v]],n.call(m),N.brush())}function a(){if(ta(),sn.touches){if(sn.touches.length)return;c&&clearTimeout(c),c=setTimeout((function(){c=null}),500)}else $n(sn.view,y),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);B.attr("pointer-events","all"),X.attr("cursor",la.overlay),S.selection&&(M=S.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(M)&&(S.selection=null,n.call(m)),N.end()}if((!c||sn.touches)&&f.apply(this,arguments)){var o,s,u,l,h,g,p,v,y,x,_,m=this,b=sn.target.__data__.type,w="selection"===(d&&sn.metaKey?b="overlay":b)?na:d&&sn.altKey?aa:ia,T=t===ca?null:da[b],A=t===ua?null:ga[b],S=_a(m),E=S.extent,M=S.selection,k=E[0][0],O=E[0][1],R=E[1][0],C=E[1][1],I=0,L=0,D=T&&A&&d&&sn.shiftKey,P=sn.touches?(U=sn.changedTouches[0].identifier,function(t){return Fr(t,sn.touches,U)}):zr,F=P(m),z=F,N=r(m,arguments,!0).beforestart();"overlay"===b?(M&&(y=!0),S.selection=M=[[o=t===ca?k:F[0],u=t===ua?O:F[1]],[h=t===ca?R:o,p=t===ua?C:u]]):(o=M[0][0],u=M[0][1],h=M[1][0],p=M[1][1]),s=o,l=u,g=h,v=p;var B=mn(m).attr("pointer-events","none"),X=B.selectAll(".overlay").attr("cursor",la[b]);if(sn.touches)N.moved=e,N.ended=a;else{var j=mn(sn.view).on("mousemove.brush",e,!0).on("mouseup.brush",a,!0);d&&j.on("keydown.brush",(function(){switch(sn.keyCode){case 16:D=T&&A;break;case 18:w===ia&&(T&&(h=g-I*T,o=s+I*T),A&&(p=v-L*A,u=l+L*A),w=aa,i());break;case 32:(w===ia||w===aa)&&(T<0?h=g-I:T>0&&(o=s-I),A<0?p=v-L:A>0&&(u=l-L),w=ra,X.attr("cursor",la.selection),i());break;default:return}ea()}),!0).on("keyup.brush",(function(){switch(sn.keyCode){case 16:D&&(x=_=D=!1,i());break;case 18:w===aa&&(T<0?h=g:T>0&&(o=s),A<0?p=v:A>0&&(u=l),w=ia,i());break;case 32:w===ra&&(sn.altKey?(T&&(h=g-I*T,o=s+I*T),A&&(p=v-L*A,u=l+L*A),w=aa):(T<0?h=g:T>0&&(o=s),A<0?p=v:A>0&&(u=l),w=ia),X.attr("cursor",la[b]),i());break;default:return}ea()}),!0),Un(sn.view)}ta(),vi(m),n.call(m),N.start()}var U}function o(){r(this,arguments).moved()}function s(){r(this,arguments).ended()}function u(){var e=this.__brush||{selection:null};return e.extent=sa(l.apply(this,arguments)),e.dim=t,e}var c,l=ya,f=va,h=xa,d=!0,g=Bn("start","brush","end"),p=6;return e.move=function(e,i){e.selection?e.on("start.brush",(function(){r(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){r(this,arguments).end()})).tween("brush",(function(){function e(t){o.selection=1===t&&null===c?null:l(t),n.call(a),s.brush()}var a=this,o=a.__brush,s=r(a,arguments),u=o.selection,c=t.input("function"==typeof i?i.apply(this,arguments):i,o.extent),l=Lr(u,c);return null!==u&&null!==c?e:e(1)})):e.each((function(){var e=this,a=arguments,o=e.__brush,s=t.input("function"==typeof i?i.apply(e,a):i,o.extent),u=r(e,a).beforestart();vi(e),o.selection=null===s?null:s,n.call(e),u.start().brush().end()}))},e.clear=function(t){e.move(t,null)},i.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){hn(new Qi(e,n,t.output(this.state.selection)),g.apply,g,[n,this.that,this.args])}},e.extent=function(t){return arguments.length?(l="function"==typeof t?t:Ji(sa(t)),e):l},e.filter=function(t){return arguments.length?(f="function"==typeof t?t:Ji(!!t),e):f},e.touchable=function(t){return arguments.length?(h="function"==typeof t?t:Ji(!!t),e):h},e.handleSize=function(t){return arguments.length?(p=+t,e):p},e.keyModifiers=function(t){return arguments.length?(d=!!t,e):d},e.on=function(){var t=g.on.apply(g,arguments);return t===g?e:t},e}var wa="object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")(),Ta=wa&&wa.document;function Aa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Sa(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?Aa(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Aa(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var Ea=function(t){return t||0===t},Ma=function(t){return"function"==typeof t},ka=function(t){return"string"==typeof t},Oa=function(t){return"number"==typeof t},Ra=function(t){return void 0===t},Ca=function(t){return void 0!==t},Ia=function(t){return"boolean"==typeof t},La=function(t){return 10*Math.ceil(t/10)},Da=function(t){return Math.ceil(t)+.5},Pa=function(t){return t[1]-t[0]},Fa=function(t){return"object"==typeof t},za=function(t){return Ra(t)||null===t||ka(t)&&0===t.length||Fa(t)&&!(t instanceof Date)&&0===Object.keys(t).length||Oa(t)&&isNaN(t)},Na=function(t){return!za(t)},Ba=function(t){return Array.isArray(t)},Xa=function(t){return t&&!t.nodeType&&Fa(t)&&!Ba(t)};function ja(t,e,n){return Ca(t[e])?t[e]:n}function Ua(t){for(var e=Ma(t),n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e&&t.call.apply(t,r),e}function $a(t,e){var n=0;t.each((function(){return++n})).on("end",(function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];--n||e.apply.apply(e,[this].concat(r))}))}function Ya(t){return ka(t)?t.replace(/</g,"<").replace(/>/g,">"):t}function Va(t,e,n,r){if(void 0===n&&(n=[-1,1]),void 0===r&&(r=!1),t&&ka(e))if(-1===e.indexOf("\n"))t.text(e);else{var i=[t.text(),e].map((function(t){return t.replace(/[\s\n]/g,"")}));if(i[0]!==i[1]){var a=e.split("\n"),o=r?a.length-1:1;t.html(""),a.forEach((function(e,r){t.append("tspan").attr("x",0).attr("dy",(0===r?n[0]*o:n[1])+"em").text(e)}))}}}function Ga(t){var e=t.getBBox(),n=e.x,r=e.y,i=e.width,a=e.height;return[{x:n,y:r+a},{x:n,y:r},{x:n+i,y:r},{x:n+i,y:r+a}]}function Ha(t){var e,n=t.$el,r=sn,i=n.subchart.main||n.main;return r&&"brush"===r.type?e=r.selection:i&&(e=i.select("."+bn.brush).node())&&(e=ma(e)),e}function Wa(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function qa(t){void 0===t&&(t=!0);var e=Math.random();return t?e+"":e}function Za(t,e,n,r,i){if(n>r)return-1;var a=Math.floor((n+r)/2),o=t[a],s=o.x,u=o.w,c=void 0===u?0:u;return i&&(s=t[a].y,c=t[a].h),e>=s&&e<=s+c?a:e<s?Za(t,e,n,a-1,i):Za(t,e,a+1,r,i)}function Ka(t){var e=Ha(t);return!e||e[0]===e[1]}function Ja(t,e){for(var n in void 0===t&&(t={}),Ba(e)&&e.forEach((function(e){return Ja(t,e)})),e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}var Qa=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},to=function(t){return[].slice.call(t)};var eo=function(t){var e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}};function no(t){var e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((function(t,e,n){return n.indexOf(t)===e}));return e?n.map((function(t){return new Date(t)})):n}function ro(t){return t&&t.length?t.reduce((function(t,e){return t.concat(e)})):[]}function io(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length||1===n.length&&!n[0])return t;var i=n.shift();return Xa(t)&&Xa(i)&&Object.keys(i).forEach((function(e){var n=i[e];Xa(n)?(!t[e]&&(t[e]={}),t[e]=io(t[e],n)):t[e]=Ba(n)?n.concat():n})),io.apply(void 0,[t].concat(n))}function ao(t,e){var n;return void 0===e&&(e=!0),t[0]instanceof Date?n=e?function(t,e){return t-e}:function(t,e){return e-t}:e&&!t.every(isNaN)?n=function(t,e){return t-e}:!e&&(n=function(t,e){return(t>e?-1:t<e&&1)||t===e&&0}),t.concat().sort(n)}function oo(t,e){var n=e.filter((function(t){return Na(t)}));return n.length?Oa(n[0])?n=Math[t].apply(Math,n):n[0]instanceof Date&&(n=ao(n,"min"===t)[0]):n=void 0,n}var so=function(t,e,n){void 0===n&&(n=1);for(var r=[],i=0|Math.max(0,Math.ceil((e-t)/n)),a=t;a<i;a++)r.push(t+a*n);return r},uo={mouse:function(){try{return new MouseEvent("t"),function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}),t.dispatchEvent(new MouseEvent(e,n))}}catch(t){return function(t,e,n){void 0===n&&(n={bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});var r=Ta.createEvent("MouseEvent");r.initMouseEvent(e,n.bubbles,n.cancelable,wa,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}}(),touch:function(t,e,n){var r=new Touch(io({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function co(t,e){var n=t;for(var r in e)n=n.replace(new RegExp("{="+r+"}","g"),e[r]);return n}function lo(t){var e;if(t instanceof Date)e=t;else if(ka(t)){var n=this.config;e=this.format.dataTime(n.data_xFormat)(t)}else Oa(t)&&!isNaN(t)&&(e=new Date(+t));return(!e||isNaN(+e))&&console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function fo(){return!Ta.hidden}function ho(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function go(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?ho(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ho(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var po=function(){function t(){return function(){for(var t=function(e){if(Xa(e)&&e.constructor){var n=new e.constructor;for(var r in e)n[r]=t(e[r]);return n}return e},e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.map((function(e){return t(e)})).reduce((function(t,e){return Sa(Sa({},t),e)}))}(Mn,kn,On,Rn,Cn,In,Ln,t.data)}return t.setOptions=function(t){this.data=t.reduce((function(t,e){return go(go({},t),e)}),this.data)},t}();po.data={};var vo="$baseLength",yo="__colorPattern__",xo="$dataMinMax",_o="$dataTotalSum",mo="$totalPerIndex",bo="legendItemTextBox",wo="$radarPoints",To="setOverOut",Ao="callOverOutForTouch",So="textRect",Eo=function(){function t(){this.cache={}}var e=t.prototype;return e.add=function(t,e,n){return void 0===n&&(n=!1),this.cache[t]=n?this.cloneTarget(e):e,this.cache[t]},e.remove=function(t){var e=this;to(t).forEach((function(t){return delete e.cache[t]}))},e.get=function(t,e){if(void 0===e&&(e=!1),e){for(var n,r=[],i=0;n=t[i];i++)n in this.cache&&r.push(this.cloneTarget(this.cache[n]));return r}var a=this.cache[t];return Ea(a)?a:null},e.reset=function(t){for(var e in this.cache)(t||/^\$/.test(e))&&(this.cache[e]=null)},e.cloneTarget=function(t){return{id:t.id,id_org:t.id_org,values:t.values.map((function(t){return{x:t.x,value:t.value,id:t.id}}))}},t}(),Mo=wa.setTimeout,ko=wa.clearTimeout;function Oo(){var t=[],e=function(e,n){var r;!function e(){for(var i,a=0,o=0;i=t[o];o++)if(!0===i||i.empty&&i.empty())a++;else try{i.transition()}catch(t){a++}r&&ko(r),a===t.length?n&&n():r=Mo(e,50)}()};return e.add=function(e){Ba(e)?t=t.concat(e):t.push(e)},e}var Ro={},Co={},Io=34,Lo=10,Do=13;function Po(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function Fo(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var r in t)r in e||n.push(e[r]=r)})),n}function zo(t,e){var n=t+"",r=n.length;return r<e?Array(e-r+1).join(0)+n:n}function No(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+zo(-t,6):t>9999?"+"+zo(t,6):zo(t,4)}(t.getUTCFullYear())+"-"+zo(t.getUTCMonth()+1,2)+"-"+zo(t.getUTCDate(),2)+(i?"T"+zo(e,2)+":"+zo(n,2)+":"+zo(r,2)+"."+zo(i,3)+"Z":r?"T"+zo(e,2)+":"+zo(n,2)+":"+zo(r,2)+"Z":n||e?"T"+zo(e,2)+":"+zo(n,2)+"Z":"")}function Bo(t){function e(t,e){function n(){if(c)return Co;if(l)return l=!1,Ro;var e,n,r=s;if(t.charCodeAt(r)===Io){for(;s++<a&&t.charCodeAt(s)!==Io||t.charCodeAt(++s)===Io;);return(e=s)>=a?c=!0:(n=t.charCodeAt(s++))===Lo?l=!0:n===Do&&(l=!0,t.charCodeAt(s)===Lo&&++s),t.slice(r+1,e-1).replace(/""/g,'"')}for(;s<a;){if((n=t.charCodeAt(e=s++))===Lo)l=!0;else if(n===Do)l=!0,t.charCodeAt(s)===Lo&&++s;else if(n!==o)continue;return t.slice(r,e)}return c=!0,t.slice(r,a)}var r,i=[],a=t.length,s=0,u=0,c=a<=0,l=!1;for(t.charCodeAt(a-1)===Lo&&--a,t.charCodeAt(a-1)===Do&&--a;(r=n())!==Co;){for(var f=[];r!==Ro&&r!==Co;)f.push(r),r=n();e&&null==(f=e(f,u++))||i.push(f)}return i}function n(e,n){return e.map((function(e){return n.map((function(t){return i(e[t])})).join(t)}))}function r(e){return e.map(i).join(t)}function i(t){return null==t?"":t instanceof Date?No(t):a.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n\r]"),o=t.charCodeAt(0);return{parse:function(t,n){var r,i,a=e(t,(function(t,e){return r?r(t,e-1):(i=t,void(r=n?function(t,e){var n=Po(t);return function(r,i){return e(n(r),i,t)}}(t,n):Po(t)))}));return a.columns=i||[],a},parseRows:e,format:function(e,r){return null==r&&(r=Fo(e)),[r.map(i).join(t)].concat(n(e,r)).join("\n")},formatBody:function(t,e){return null==e&&(e=Fo(t)),n(t,e).join("\n")},formatRows:function(t){return t.map(r).join("\n")},formatRow:r,formatValue:i}}var Xo=Bo(","),jo=Xo.parse,Uo=Xo.parseRows,$o=(Xo.format,Xo.formatBody,Xo.formatRows,Xo.formatRow,Xo.formatValue,Bo("\t")),Yo=$o.parse,Vo=$o.parseRows,Go=($o.format,$o.formatBody,$o.formatRows,$o.formatRow,$o.formatValue,{convertData:function(t,e){var n;if(t.bindto?(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach((function(e){var r="data_"+e;r in t&&(n[e]=t[r])}))):n=t,n.url&&e)this.convertUrlToData(n.url,n.mimeType,n.headers,n.keys,e);else if(n.json)n=this.convertJsonToData(n.json,n.keys);else if(n.rows)n=this.convertRowsToData(n.rows);else if(n.columns)n=this.convertColumnsToData(n.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.");return Ba(n)&&n},convertUrlToData:function(t,e,n,r,i){var a=this;void 0===e&&(e="csv");var o=new XMLHttpRequest;o.open("GET",t),n&&Object.keys(n).forEach((function(t){o.setRequestHeader(t,n[t])})),o.onreadystatechange=function(){if(4===o.readyState){if(200!==o.status)throw new Error(t+": Something went wrong loading!");var n=o.responseText;n&&i.call(a,a["convert"+Qa(e)+"ToData"]("json"===e?JSON.parse(n):n,r))}},o.send()},convertCsvTsvToData:function(t,e){var n,r=t.rows(e);return 1===r.length?(n=[{}],r[0].forEach((function(t){n[0][t]=null}))):n=t.parse(e),n},convertCsvToData:function(t){return this.convertCsvTsvToData({rows:Uo,parse:jo},t)},convertTsvToData:function(t){return this.convertCsvTsvToData({rows:Vo,parse:Yo},t)},convertJsonToData:function(t,e){var n,r,i=this,a=this.config,o=[];if(Ba(t)){var s=e||a.data_keys;s.x?(n=s.value.concat(s.x),a.data_x=s.x):n=s.value,o.push(n),t.forEach((function(t){var e=n.map((function(e){var n=i.findValueInJson(t,e);return Ra(n)&&(n=null),n}));o.push(e)})),r=this.convertRowsToData(o)}else Object.keys(t).forEach((function(e){var n=t[e].concat();n.unshift(e),o.push(n)})),r=this.convertColumnsToData(o);return r},findValueInJson:function(t,e){if(void 0!==t[e])return t[e];var n=e.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),r=t;return n.some((function(t){return!(r=r&&t in r?r[t]:void 0)})),r},convertRowsToData:function(t){var e=t[0],n=[];return t.forEach((function(t,r){if(r>0){var i={};t.forEach((function(t,n){if(Ra(t))throw new Error("Source data is missing a component at ("+r+", "+n+")!");i[e[n]]=t})),n.push(i)}})),n},convertColumnsToData:function(t){var e=[];return t.forEach((function(t,n){var r=t[0];t.forEach((function(t,i){if(i>0){if(Ra(e[i-1])&&(e[i-1]={}),Ra(t))throw new Error("Source data is missing a component at ("+n+", "+i+")!");e[i-1][r]=t}}))})),e},convertDataToTargets:function(t,e){var n=this,r=this,i=r.axis,a=r.config,o=r.state,s=!1,u=!1,c=!1;i&&(s=i.isCategorized(),u=i.isTimeSeries(),c=i.isCustomX());var l,f=Object.keys(t[0]||{}),h=f.length?f.filter(r.isNotX,r):[],d=f.length?f.filter(r.isX,r):[];h.forEach((function(i){var o=n.getXKey(i);c||u?d.indexOf(o)>=0?l=(e&&r.data.xs[i]||[]).concat(t.map((function(t){return t[o]})).filter(Ea).map((function(t,e){return r.generateTargetX(t,i,e)}))):a.data_x?l=n.getOtherTargetXs():Na(a.data_xs)&&(l=r.getXValuesOfXKey(o,r.data.targets)):l=t.map((function(t,e){return e})),l&&(n.data.xs[i]=l)})),h.forEach((function(t){if(!n.data.xs[t])throw new Error('x is not defined for id = "'+t+'".')}));var g=h.map((function(e,n){var i=a.data_idConverter.bind(r.api)(e),u=r.getXKey(e),l=c&&s,f=l&&t.map((function(t){return t.x})).every((function(t){return a.axis_x_categories.indexOf(t)>-1}));return{id:i,id_org:e,values:t.map((function(t,s){var c,h=t[u],d=t[e];return d=null===d||isNaN(d)||Xa(d)?Ba(d)||Xa(d)?d:null:+d,!l&&!o.hasRadar||0!==n||Ra(h)?c=r.generateTargetX(h,e,s):(!f&&0===n&&0===s&&(a.axis_x_categories=[]),-1===(c=a.axis_x_categories.indexOf(h))&&(c=a.axis_x_categories.length,a.axis_x_categories.push(h))),(Ra(d)||r.data.xs[e].length<=s)&&(c=void 0),{x:c,value:d,id:i}})).filter((function(t){return Ca(t.x)}))}}));return g.forEach((function(t){a.data_xSort&&(t.values=t.values.sort((function(t,e){return(t.x||0===t.x?t.x:1/0)-(e.x||0===e.x?e.x:1/0)}))),t.values.forEach((function(t,e){return t.index=e})),r.data.xs[t.id].sort((function(t,e){return t-e}))})),o.hasNegativeValue=r.hasNegativeValueInTargets(g),o.hasPositiveValue=r.hasPositiveValueInTargets(g),a.data_type&&r.setTargetType(r.mapToIds(g).filter((function(t){return!(t in a.data_types)})),a.data_type),g.forEach((function(t){return r.cache.add(t.id_org,t,!0)})),g}}),Ho={isX:function(t){var e=this.config,n=e.data_x&&t===e.data_x,r=Na(e.data_xs)&&function(t,e){var n=!1;return Object.keys(t).forEach((function(r){return t[r]===e&&(n=!0)})),n}(e.data_xs,t);return n||r},isNotX:function(t){return!this.isX(t)},isStackNormalized:function(){var t=this.config;return!(!t.data_stack_normalize||!t.data_groups.length)},isGrouped:function(t){var e=this.config.data_groups;return t?e.some((function(e){return e.indexOf(t)>=0&&e.length>1})):e.length>0},getXKey:function(t){var e=this.config;return e.data_x?e.data_x:Na(e.data_xs)?e.data_xs[t]:null},getXValuesOfXKey:function(t,e){var n,r=this;return(e&&Na(e)?r.mapToIds(e):[]).forEach((function(e){r.getXKey(e)===t&&(n=r.data.xs[e])})),n},getIndexByX:function(t,e){return e?e.indexOf(ka(t)?t:+t):(this.filterByX(this.data.targets,t)[0]||{index:null}).index},getXValue:function(t,e){var n=this;return t in n.data.xs&&n.data.xs[t]&&Ea(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs:function(){var t=Object.keys(this.data.xs);return t.length?this.data.xs[t[0]]:null},getOtherTargetX:function(t){var e=this.getOtherTargetXs();return e&&t<e.length?e[t]:null},addXs:function(t){var e=this.config;Object.keys(t).forEach((function(n){e.data_xs[n]=t[n]}))},isMultipleX:function(){return Na(this.config.data_xs)||!this.config.data_xSort||this.hasType("bubble")||this.hasType("scatter")},addName:function(t){var e,n=this.config;return t&&(e=n.data_names[t.id],t.name=void 0===e?t.id:e),t},getAllValuesOnIndex:function(t,e){void 0===e&&(e=!1);var n=this,r=n.filterTargetsToShow(n.data.targets).map((function(e){return n.addName(n.getValueOnIndex(e.values,t))}));return e&&(r=r.filter((function(t){return Ea(t.value)}))),r},getValueOnIndex:function(t,e){var n=t.filter((function(t){return t.index===e}));return n.length?n[0]:null},updateTargetX:function(t,e){var n=this;t.forEach((function(t){t.values.forEach((function(r,i){r.x=n.generateTargetX(e[i],t.id,i)})),n.data.xs[t.id]=e}))},updateTargetXs:function(t,e){var n=this;t.forEach((function(t){e[t.id]&&n.updateTargetX([t],e[t.id])}))},generateTargetX:function(t,e,n){var r=this,i=r.axis,a=i&&i.isCategorized()?n:t||n;if(i&&i.isTimeSeries()){var o=lo.bind(r);a=o(t||r.getXValue(e,n))}else i&&i.isCustomX()&&!i.isCategorized()&&(a=Ea(t)?+t:r.getXValue(e,n));return a},updateXs:function(t){t.length&&(this.axis.xs=t.map((function(t){return t.x})))},getPrevX:function(t){var e=this.axis.xs[t-1];return Ca(e)?e:null},getNextX:function(t){var e=this.axis.xs[t+1];return Ca(e)?e:null},getBaseValue:function(t){var e=this,n=e.state.hasAxis,r=t.value;return r&&n&&(e.isAreaRangeType(t)?r=e.getAreaRangeData(t,"mid"):e.isBubbleZType(t)&&(r=e.getBubbleZData(r,"y"))),r},getMinMaxValue:function(t){var e,n,r=this.getBaseValue.bind(this);return(t||this.data.targets.map((function(t){return t.values}))).forEach((function(t,i){var a=t.map(r).filter(Oa);e=Math.min.apply(Math,[i?e:1/0].concat(a)),n=Math.max.apply(Math,[i?n:-1/0].concat(a))})),{min:e,max:n}},getMinMaxData:function(){var t=this,e=xo,n=t.cache.get(e);if(!n){var r=t.data.targets.map((function(t){return t.values})),i=t.getMinMaxValue(r),a=[],o=[];r.forEach((function(e){var n=t.getFilteredDataByValue(e,i.min),r=t.getFilteredDataByValue(e,i.max);n.length&&(a=a.concat(n)),r.length&&(o=o.concat(r))})),t.cache.add(e,n={min:a,max:o})}return n},getTotalPerIndex:function(){var t=this,e=mo,n=t.cache.get(e);return t.isStackNormalized()&&!n&&(n=[],t.data.targets.forEach((function(t){t.values.forEach((function(t,e){n[e]||(n[e]=0),n[e]+=Oa(t.value)?t.value:0}))}))),n},getTotalDataSum:function(t){var e=this,n=_o,r=e.cache.get(n);if(!Oa(r)){var i=ro(e.data.targets.map((function(t){return t.values}))).map((function(t){return t.value}));r=i.length?i.reduce((function(t,e){return t+e})):0,e.cache.add(n,r=i)}return t&&(r-=e.getHiddenTotalDataSum()),r},getHiddenTotalDataSum:function(){var t=this.api,e=this.state.hiddenTargetIds,n=0;return e.length&&(n=t.data.values.bind(t)(e).reduce((function(t,e){return t+e}))),n},getFilteredDataByValue:function(t,e){var n=this;return t.filter((function(t){return n.getBaseValue(t)===e}))},getMaxDataCount:function(){return Math.max.apply(Math,this.data.targets.map((function(t){return t.values.length})))},getMaxDataCountTarget:function(){var t=this.filterTargetsToShow()||[],e=t.length;return e>1?t=ao(no(t=t.map((function(t){return t.values})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.x})))).map((function(t,e){return{x:t,index:e}})):e&&(t=t[0].values),t},mapToIds:function(t){return t.map((function(t){return t.id}))},mapToTargetIds:function(t){return t?Ba(t)?t.concat():[t]:this.mapToIds(this.data.targets)},hasTarget:function(t,e){for(var n,r=this.mapToIds(t),i=0;n=r[i];i++)if(n===e)return!0;return!1},isTargetToShow:function(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow:function(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow:function(t){var e=this;return(t||e.data.targets).filter((function(t){return e.isTargetToShow(t.id)}))},mapTargetsToUniqueXs:function(t){var e=this.axis,n=[];return t&&t.length&&(n=no(ro(t.map((function(t){return t.values.map((function(t){return+t.x}))})))),n=e&&e.isTimeSeries()?n.map((function(t){return new Date(+t)})):n.map((function(t){return+t}))),ao(n)},addHiddenTargetIds:function(t){this.state.hiddenTargetIds=this.state.hiddenTargetIds.concat(t)},removeHiddenTargetIds:function(t){this.state.hiddenTargetIds=this.state.hiddenTargetIds.filter((function(e){return t.indexOf(e)<0}))},addHiddenLegendIds:function(t){this.state.hiddenLegendIds=this.state.hiddenLegendIds.concat(t)},removeHiddenLegendIds:function(t){this.state.hiddenLegendIds=this.state.hiddenLegendIds.filter((function(e){return t.indexOf(e)<0}))},getValuesAsIdKeyed:function(t){var e=this,n=e.state.hasAxis,r={},i=e.isMultipleX(),a=i?e.mapTargetsToUniqueXs(t).map((function(t){return ka(t)?t:+t})):null;return t.forEach((function(t){var o=[];t.values.forEach((function(t){var r=t.value;Ba(r)?o.push.apply(o,r):Xa(r)&&"high"in r?o.push.apply(o,Object.values(r)):e.isBubbleZType(t)?o.push(n&&e.getBubbleZData(r,"y")):i?o[e.getIndexByX(t.x,a)]=r:o.push(r)})),r[t.id]=o})),r},checkValueInTargets:function(t,e){for(var n,r=Object.keys(t),i=0;i<r.length;i++){n=t[r[i]].values;for(var a=0;a<n.length;a++)if(e(n[a].value))return!0}return!1},hasMultiTargets:function(){return this.filterTargetsToShow().length>1},hasNegativeValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t<0}))},hasPositiveValueInTargets:function(t){return this.checkValueInTargets(t,(function(t){return t>0}))},_checkOrder:function(t){var e=this.config.data_order;return ka(e)&&e.toLowerCase()===t},isOrderDesc:function(){return this._checkOrder("desc")},isOrderAsc:function(){return this._checkOrder("asc")},orderTargets:function(t){var e=[].concat(t),n=this.getSortCompareFn();return n&&e.sort(n),e},getSortCompareFn:function(t){void 0===t&&(t=!1);var e,n=this,r=n.config,i=n.isOrderAsc(),a=n.isOrderDesc();return i||a?e=function(e,n){var r=function(t,e){return t+Math.abs(e.value)},a=e.values.reduce(r,0),o=n.values.reduce(r,0);return t?i?a-o:o-a:i?o-a:a-o}:Ma(r.data_order)&&(e=r.data_order.bind(n.api)),e||null},filterByX:function(t,e){return ro(t.map((function(t){return t.values}))).filter((function(t){return t.x-e==0}))},filterRemoveNull:function(t){var e=this;return t.filter((function(t){return Ea(e.getBaseValue(t))}))},filterByXDomain:function(t,e){return t.map((function(t){return{id:t.id,id_org:t.id_org,values:t.values.filter((function(t){return e[0]<=t.x&&t.x<=e[1]}))}}))},hasDataLabel:function(){var t=this.config.data_labels;return Ia(t)&&t||Fa(t)&&Na(t)},getDataIndexFromEvent:function(t){var e=this.config,n=this.state,r=n.inputType,i=n.eventReceiver,a=i.coords,o=i.rect,s=e.axis_rotated,u="touch"===r&&t.changedTouches?t.changedTouches[0]:t;return Za(a,s?u.clientY-o.top:u.clientX-o.left,0,a.length-1,s)},getDataLabelLength:function(t,e,n){var r=this,i=[0,0];return r.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text((function(t){return r.dataLabelFormat(t.id)(t)})).each((function(t,e){i[e]=1.3*this.getBoundingClientRect()[n]})).remove(),i},isNoneArc:function(t){return this.hasTarget(this.data.targets,t.id)},isArc:function(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues:function(t,e){var n,r=t[e].x,i=[];for(n=e-1;n>=0&&r===t[n].x;n--)i.push(t[n]);for(n=e;n<t.length&&r===t[n].x;n++)i.push(t[n]);return i},findClosestFromTargets:function(t,e){var n=this,r=t.map((function(t){return n.findClosest(t.values,e)}));return n.findClosest(r,e)},findClosest:function(t,e){var n,r=this,i=r.config,a=r.$el.main,o=t.filter((function(t){return t&&Ea(t.value)})),s=i.point_sensitivity;return o.filter((function(t){return r.isBarType(t.id)})).forEach((function(t){var e=a.select("."+bn.bars+r.getTargetSelectorSuffix(t.id)+" ."+bn.bar+"-"+t.index).node();!n&&r.isWithinBar(e)&&(n=t)})),o.filter((function(t){return!r.isBarType(t.id)})).forEach((function(t){var i=r.dist(t,e);i<s&&(s=i,n=t)})),n},dist:function(t,e){var n=this,r=n.config.axis_rotated,i=n.scale,a=r?1:0,o=r?0:1,s=n.circleY(t,t.index),u=(i.zoom||i.x)(t.x);return Math.sqrt(Math.pow(u-e[a],2)+Math.pow(s-e[o],2))},convertValuesToStep:function(t){var e=this.axis,n=this.config.line_step_type,r=!!e&&e.isCategorized(),i=Ba(t)?t.concat():[t];if(!r&&!/step\-(after|before)/.test(n))return t;var a=i[0],o=i[i.length-1],s=a.id,u=a.x;return i.unshift({x:--u,value:a.value,id:s}),r&&"step-after"===n&&i.unshift({x:--u,value:a.value,id:s}),u=o.x,i.push({x:++u,value:o.value,id:s}),r&&"step-before"===n&&i.push({x:++u,value:o.value,id:s}),i},convertValuesToRange:function(t){var e=Ba(t)?t.concat():[t],n=[];return e.forEach((function(t){var e=t.x,r=t.id;n.push({x:e,id:r,value:t.value[0]}),n.push({x:e,id:r,value:t.value[2]})})),n},updateDataAttributes:function(t,e){var n=this.config["data_"+t];return Ra(e)||(Object.keys(e).forEach((function(t){n[t]=e[t]})),this.redraw({withLegend:!0})),n},getAreaRangeData:function(t,e){var n=t.value;if(Ba(n)){var r=["high","mid","low"].indexOf(e);return-1===r?null:n[r]}return n[e]},getRatio:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.api,s=0;if(e&&o.data.shown().length)if(s=e.ratio||e.value,"arc"===t)if(r.pie.padAngle()())s=e.value/r.getTotalDataSum(!0);else{var u=i.gauge_fullCircle?r.getArcLength():-2*r.getStartAngle(),c=r.hasType("gauge")?u:2*Math.PI;s=(e.endAngle-e.startAngle)/c}else if("index"===t){var l=o.data.values.bind(o),f=this.getTotalPerIndex();if(a.hiddenTargetIds.length){var h=l(a.hiddenTargetIds,!1);h.length&&(h=h.reduce((function(t,e){return t.map((function(t,n){return(Oa(t)?t:0)+e[n]}))})),f=f.map((function(t,e){return t-h[e]})))}e.ratio=Oa(e.value)&&f&&f[e.index]>0?e.value/f[e.index]:0,s=e.ratio}else if("radar"===t)s=parseFloat(Math.max(e.value,0)+"")/a.current.dataMax*i.radar_size_ratio;else if("bar"===t){var d=r.getYScaleById.bind(r)(e.id).domain().reduce((function(t,e){return e-t}));s=Math.abs(e.value)/d}return n&&s?100*s:s},updateDataIndexByX:function(t){var e=t.reduce((function(t,e,n){return t[+e.x]=n,t}),{});this.data.targets.forEach((function(t){t.values.forEach((function(t,n){var r=e[+t.x];void 0===r&&(r=n),t.index=r}))}))},isBubbleZType:function(t){return this.isBubbleType(t)&&(Xa(t.value)&&("z"in t.value||"y"in t.value)||Ba(t.value)&&2===t.value.length)},getDataById:function(t){var e=this.cache.get(t)||this.api.data(t);return Ba(e)?e[0]:e}},Wo={load:function(t,e){var n=this,r=t;r&&(e.filter&&(r=r.filter(e.filter)),(e.type||e.types)&&r.forEach((function(t){var r=e.types&&e.types[t.id]||e.type;n.setTargetType(t.id,r)})),n.data.targets.forEach((function(t){for(var e=0;e<r.length;e++)if(t.id===r[e].id){t.values=r[e].values,r.splice(e,1);break}})),n.data.targets=n.data.targets.concat(r)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.updateTypesElements(),e.done&&e.done.call(n.api)},loadFromArgs:function(t){var e=this;if(e.config){e.cache.reset();var n=t.data||e.convertData(t,(function(n){return e.load(e.convertDataToTargets(n),t)}));n&&e.load(e.convertDataToTargets(n),t)}},unload:function(t,e){var n=this,r=n.state,i=n.$el,a=e,o=t;return n.cache.reset(),a||(a=function(){}),o=o.filter((function(t){return n.hasTarget(n.data.targets,t)})),o&&0!==o.length?(i.svg.selectAll(o.map((function(t){return n.selectorTarget(t)}))).transition().style("opacity","0").remove().call($a,a),o.forEach((function(t){r.withoutFadeIn[t]=!1,i.legend&&i.legend.selectAll("."+bn.legendItem+n.getTargetSelectorSuffix(t)).remove(),n.data.targets=n.data.targets.filter((function(e){return e.id!==t}))})),void n.updateTypesElements()):void a()}};function qo(t){return function(){return t}}function Zo(t,e,n,r,i,a,o,s,u,c){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=u,this._=c}function Ko(){return!sn.ctrlKey&&!sn.button}function Jo(){return this.parentNode}function Qo(t){return null==t?{x:sn.x,y:sn.y}:t}function ts(){return navigator.maxTouchPoints||"ontouchstart"in this}function es(){function t(t){t.on("mousedown.drag",e).filter(p).on("touchstart.drag",i).on("touchmove.drag",a).on("touchend.drag touchcancel.drag",o).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(){if(!f&&h.apply(this,arguments)){var t=s("mouse",d.apply(this,arguments),zr,this,arguments);t&&(mn(sn.view).on("mousemove.drag",n,!0).on("mouseup.drag",r,!0),Un(sn.view),Xn(),l=!1,u=sn.clientX,c=sn.clientY,t("start"))}}function n(){if(jn(),!l){var t=sn.clientX-u,e=sn.clientY-c;l=t*t+e*e>_}v.mouse("drag")}function r(){mn(sn.view).on("mousemove.drag mouseup.drag",null),$n(sn.view,l),jn(),v.mouse("end")}function i(){if(h.apply(this,arguments)){var t,e,n=sn.changedTouches,r=d.apply(this,arguments),i=n.length;for(t=0;t<i;++t)(e=s(n[t].identifier,r,Fr,this,arguments))&&(Xn(),e("start"))}}function a(){var t,e,n=sn.changedTouches,r=n.length;for(t=0;t<r;++t)(e=v[n[t].identifier])&&(jn(),e("drag"))}function o(){var t,e,n=sn.changedTouches,r=n.length;for(f&&clearTimeout(f),f=setTimeout((function(){f=null}),500),t=0;t<r;++t)(e=v[n[t].identifier])&&(Xn(),e("end"))}function s(e,n,r,i,a){var o,s,u,c=r(n,e),l=y.copy();return hn(new Zo(t,"beforestart",o,e,x,c[0],c[1],0,0,l),(function(){return null!=(sn.subject=o=g.apply(i,a))&&(s=o.x-c[0]||0,u=o.y-c[1]||0,!0)}))?function f(h){var d,g=c;switch(h){case"start":v[e]=f,d=x++;break;case"end":delete v[e],--x;case"drag":c=r(n,e),d=x}hn(new Zo(t,h,o,e,d,c[0]+s,c[1]+u,c[0]-g[0],c[1]-g[1],l),l.apply,l,[h,i,a])}:void 0}var u,c,l,f,h=Ko,d=Jo,g=Qo,p=ts,v={},y=Bn("start","drag","end"),x=0,_=0;return t.filter=function(e){return arguments.length?(h="function"==typeof e?e:qo(!!e),t):h},t.container=function(e){return arguments.length?(d="function"==typeof e?e:qo(e),t):d},t.subject=function(e){return arguments.length?(g="function"==typeof e?e:qo(e),t):g},t.touchable=function(e){return arguments.length?(p="function"==typeof e?e:qo(!!e),t):p},t.on=function(){var e=y.on.apply(y,arguments);return e===y?t:e},t.clickDistance=function(e){return arguments.length?(_=(e=+e)*e,t):Math.sqrt(_)},t}Zo.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};var ns={selectRectForSingle:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.data_selection_enabled,s=i.data_selection_grouped,u=i.data_selection_isselectable,c=i.tooltip_grouped,l=r.getAllValuesOnIndex(n);c&&(r.showTooltip(l,t),r.showGridFocus&&r.showGridFocus(l),!o||s)||a.selectAll("."+bn.shape+"-"+n).each((function(){mn(this).classed(bn.EXPANDED,!0),o&&e.style("cursor",s?"pointer":null),c||(r.hideGridFocus&&r.hideGridFocus(),r.hideTooltip(),!s&&r.expandCirclesBars(n))})).filter((function(t){return r.isWithinShape(this,t)})).call((function(i){var a=i.data();o&&(s||u&&u.bind(r.api)(a))&&e.style("cursor","pointer"),c||(r.showTooltip(a,t),r.showGridFocus&&r.showGridFocus(a),r.unexpandCircles&&r.unexpandCircles(),i.each((function(t){return r.expandCirclesBars(n,t.id)})))}))},expandCirclesBars:function(t,e,n){var r=this,i=r.config,a=r.$el,o=a.bar;a.circle&&i.point_focus_expand_enabled&&r.expandCircles(t,e,n),o&&r.expandBars(t,e,n)},setOverOut:function(t,e){var n=this,r=n.config,i=n.state.hasRadar,a=n.$el.main,o=Xa(e);if(o||-1!==e){var s=r[t?"data_onover":"data_onout"].bind(n.api);if(r.color_onover&&n.setOverColor(t,e,o),o)s(e,a.select("."+bn.arc+n.getTargetSelectorSuffix(e.id)).node());else if(r.tooltip_grouped)t&&(r.point_focus_only&&i?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.expandCirclesBars(e,null,!0)),n.isMultipleX()||a.selectAll("."+bn.shape+"-"+e).each((function(t){s(t,this)}));else{var u=n.cache.get(To)||[],c=a.selectAll("."+bn.shape+"-"+e).filter((function(t){return n.isWithinShape(this,t)}));c.each((function(t){var e=this;(0===u.length||u.every((function(t){return t!==e})))&&(s(t,this),u.push(this))})),u.length>0&&c.empty()&&(s=r.data_onout.bind(n.api),u.forEach((function(t){return s(mn(t).datum(),t)})),u=[]),n.cache.add(To,u)}}},callOverOutForTouch:function(t){var e=this,n=e.cache.get(Ao);(Xa(t)&&n?t.id!==n.id:t!==n)&&((n||Oa(n))&&e.setOverOut(!1,n),(t||Oa(t))&&e.setOverOut(!0,t),e.cache.add(Ao,t))},getDraggableSelection:function(){var t=this,e=t.config;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?es().on("drag",(function(){t.drag(zr(this))})).on("start",(function(){t.dragstart(zr(this))})).on("end",(function(){t.dragend()})):function(){}},dispatchEvent:function(t,e,n){var r=this,i=r.config,a=r.state,o=a.eventReceiver,s=a.hasAxis,u=a.hasRadar,c=r.$el,l=c.eventRect,f=c.arcs,h=c.radar,d=r.isMultipleX(),g=(u?h.axes.select("."+bn.axis+"-"+e+" text"):l||f.selectAll("."+bn.target+" path").filter((function(t,n){return n===e}))).node(),p=g.getBoundingClientRect(),v=p.width,y=p.left,x=p.top;if(s&&!u&&!d){var _=o.coords[e];v=_.w,y+=_.x,x+=_.y}var m=y+(n?n[0]:0)+(d||i.axis_rotated?0:v/2),b=x+(n?n[1]:0);uo[/^(mouse|click)/.test(t)?"mouse":"touch"](g,t,{screenX:m,screenY:b,clientX:m,clientY:b})},setDragStatus:function(t){this.state.dragging=t}},rs={generateClass:function(t,e){return" "+t+" "+(t+this.getTargetSelectorSuffix(e))},getClass:function(t,e){var n=this,r=/s$/.test(t),i=/^(area|arc|line)s?$/.test(t),a=r?"id":"index";return function(o){var s=o.data||o;return(e?n.generateClass(bn[r?"shapes":"shape"],s[a]):"")+n.generateClass(bn[t],s[i?"id":a])}},getChartClass:function(t){var e=this;return function(n){return bn["chart"+t]+e.classTarget((n.data?n.data:n).id)}},generateExtraLineClass:function(){var t=this.config.line_classes||[],e=[];return function(n){var r=n.id||n.data&&n.data.id||n;return e.indexOf(r)<0&&e.push(r),t[e.indexOf(r)%t.length]}},classRegion:function(t,e){return this.generateClass(bn.region,e)+" "+("class"in t?t.class:"")},classTarget:function(t){var e=this.config.data_classes[t],n="";return e&&(n=" "+bn.target+"-"+e),this.generateClass(bn.target,t)+n},classFocus:function(t){return this.classFocused(t)+this.classDefocused(t)},classFocused:function(t){return" "+(this.state.focusedTargetIds.indexOf(t.id)>=0?bn.focused:"")},classDefocused:function(t){return" "+(this.state.defocusedTargetIds.indexOf(t.id)>=0?bn.defocused:"")},getTargetSelectorSuffix:function(t){return t||0===t?("-"+t).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},selectorTarget:function(t,e){var n=e||"",r=this.getTargetSelectorSuffix(t);return n+"."+(bn.target+r)+", "+n+"."+(bn.circles+r)},selectorTargets:function(t,e){var n=this,r=t||[];return r.length?r.map((function(t){return n.selectorTarget(t,e)})):null},selectorLegend:function(t){return"."+(bn.legendItem+this.getTargetSelectorSuffix(t))},selectorLegends:function(t){var e=this;return t&&t.length?t.map((function(t){return e.selectorLegend(t)})):null}};function is(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function as(t){return 1===t.length&&(e=t,t=function(t,n){return is(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r<i;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}};var e}var os=as(is),ss=os.right,us=(os.left,ss);var cs=Array.prototype;cs.slice,cs.map;var ls=Math.sqrt(50),fs=Math.sqrt(10),hs=Math.sqrt(2);function ds(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(o=gs(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=Array(i=Math.ceil(e-t+1));++s<i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=Array(i=Math.ceil(t-e+1));++s<i;)a[s]=(t-s)/o;return r&&a.reverse(),a}function gs(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=ls?10:a>=fs?5:a>=hs?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=ls?10:a>=fs?5:a>=hs?2:1)}function ps(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=ls?i*=10:a>=fs?i*=5:a>=hs&&(i*=2),e<t?-i:i}function vs(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var ys="$";function xs(){}function _s(t,e){var n=new xs;if(t instanceof xs)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e(r=t[i],i,t),r)}else if(t)for(var o in t)n.set(o,t[o]);return n}xs.prototype=_s.prototype={constructor:xs,has:function(t){return ys+t in this},get:function(t){return this[ys+t]},set:function(t,e){return this[ys+t]=e,this},remove:function(t){var e=ys+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===ys&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===ys&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===ys&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===ys&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===ys&&++t;return t},empty:function(){for(var t in this)if(t[0]===ys)return!1;return!0},each:function(t){for(var e in this)e[0]===ys&&t(this[e],e.slice(1),this)}};var ms=_s;function bs(){}var ws=ms.prototype;function Ts(t,e){var n=new bs;if(t instanceof bs)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r<i;)n.add(t[r]);else for(;++r<i;)n.add(e(t[r],r,t))}return n}bs.prototype=Ts.prototype={constructor:bs,has:ws.has,add:function(t){return this[ys+(t+="")]=t,this},remove:ws.remove,clear:ws.clear,values:ws.keys,size:ws.size,empty:ws.empty,each:ws.each};var As=Array.prototype,Ss=As.map,Es=As.slice,Ms={name:"implicit"};function ks(){function t(t){var a=t+"",o=e.get(a);if(!o){if(i!==Ms)return i;e.set(a,o=n.push(t))}return r[(o-1)%r.length]}var e=ms(),n=[],r=[],i=Ms;return t.domain=function(r){if(!arguments.length)return n.slice();n=[],e=ms();for(var i,a,o=-1,s=r.length;++o<s;)e.has(a=(i=r[o])+"")||e.set(a,n.push(i));return t},t.range=function(e){return arguments.length?(r=Es.call(e),t):r.slice()},t.unknown=function(e){return arguments.length?(i=e,t):i},t.copy=function(){return ks(n,r).unknown(i)},vs.apply(t,arguments),t}function Os(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Rs(t){return+t}var Cs=[0,1];function Is(t){return t}function Ls(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Ds(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function Ps(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Ls(i,r),a=n(o,a)):(r=Ls(r,i),a=n(a,o)),function(t){return a(r(t))}}function Fs(t,e,n){var r=Math.min(t.length,e.length)-1,i=Array(r),a=Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Ls(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return function(e){var n=us(t,e,1,r)-1;return a[n](i[n](e))}}function zs(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ns(){function t(){return a=Math.min(u.length,c.length)>2?Fs:Ps,o=s=null,e}function e(t){return isNaN(t=+t)?i:(o||(o=a(u.map(n),c,l)))(n(f(t)))}var n,r,i,a,o,s,u=Cs,c=Cs,l=Lr,f=Is;return e.invert=function(t){return f(r((s||(s=a(c,u.map(n),kr)))(t)))},e.domain=function(e){return arguments.length?(u=Ss.call(e,Rs),f===Is||(f=Ds(u)),t()):u.slice()},e.range=function(e){return arguments.length?(c=Es.call(e),t()):c.slice()},e.rangeRound=function(e){return c=Es.call(e),l=Os,t()},e.clamp=function(t){return arguments.length?(f=t?Ds(u):Is,e):f!==Is},e.interpolate=function(e){return arguments.length?(l=e,t()):l},e.unknown=function(t){return arguments.length?(i=t,e):i},function(e,i){return n=e,r=i,t()}}function Bs(t,e){return Ns()(t,e)}var Xs,js=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Us(t){if(!(e=js.exec(t)))throw new Error("invalid format: "+t);var e;return new $s({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function $s(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ys(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Vs(t){return(t=Ys(Math.abs(t)))?t[1]:NaN}function Gs(t,e){var n=Ys(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+Array(i-r.length+2).join("0")}Us.prototype=$s.prototype,$s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Hs={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Gs(100*t,e)},r:Gs,s:function(t,e){var n=Ys(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Xs=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+Array(1-a).join("0")+Ys(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Ws(t){return t}var qs,Zs,Ks,Js=Array.prototype.map,Qs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tu(t){function e(t){function e(t){var e,a,o,c=m,d=b;if("c"===_)d=w(t)+d,t="";else{var A=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:w(Math.abs(t),y),x&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==h&&(A=!1),c=(A?"("===h?h:l:"-"===h||"("===h?"":h)+c,d=("s"===_?Qs[8+Xs/3]:"")+d+(A&&"("===h?")":""),T)for(e=-1,a=t.length;++e<a;)if(48>(o=t.charCodeAt(e))||o>57){d=(46===o?s+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}v&&!g&&(t=i(t,1/0));var S=c.length+t.length+d.length,E=S<p?Array(p-S+1).join(n):"";switch(v&&g&&(t=i(E+t,E.length?p-d.length:1/0),E=""),r){case"<":t=c+t+d+E;break;case"=":t=c+E+t+d;break;case"^":t=E.slice(0,S=E.length>>1)+c+t+d+E.slice(S);break;default:t=E+c+t+d}return u(t)}var n=(t=Us(t)).fill,r=t.align,h=t.sign,d=t.symbol,g=t.zero,p=t.width,v=t.comma,y=t.precision,x=t.trim,_=t.type;"n"===_?(v=!0,_="g"):!Hs[_]&&(void 0===y&&(y=12),x=!0,_="g"),(g||"0"===n&&"="===r)&&(g=!0,n="0",r="=");var m="$"===d?a:"#"===d&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===d?o:/[%p]/.test(_)?c:"",w=Hs[_],T=/[defgprs%]/.test(_);return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),e.toString=function(){return t+""},e}var n,r,i=void 0===t.grouping||void 0===t.thousands?Ws:(n=Js.call(t.grouping,Number),r=t.thousands+"",function(t,e){for(var i=t.length,a=[],o=0,s=n[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=n[o=(o+1)%n.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Ws:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Js.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"-":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";return{format:e,formatPrefix:function(t,n){var r=e(((t=Us(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Vs(n)/3))),a=Math.pow(10,-i),o=Qs[8+i/3];return function(t){return r(a*t)+o}}}}function eu(t,e,n,r){var i,a=ps(t,e,n);switch((r=Us(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Vs(e)/3)))-Vs(Math.abs(t)))}(a,o))||(r.precision=i),Ks(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vs(e)-Vs(t))+1}(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Vs(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return Zs(r)}function nu(t){var e=t.domain;return t.ticks=function(t){var n=e();return ds(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return eu(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],u=i[o];return u<s&&(r=s,s=u,u=r,r=a,a=o,o=r),(r=gs(s,u,n))>0?r=gs(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=gs(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(u/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(u*r)/r,e(i)),t},t}function ru(){var t=Bs(Is,Is);return t.copy=function(){return zs(t,ru())},vs.apply(t,arguments),nu(t)}function iu(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function au(t){return Math.log(t)}function ou(t){return Math.exp(t)}function su(t){return-Math.log(-t)}function uu(t){return-Math.exp(-t)}function cu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function lu(t){return function(e){return-t(-e)}}function fu(t){function e(){return n=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(o),r=function(t){return 10===t?cu:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(o),a()[0]<0?(n=lu(n),r=lu(r),t(su,uu)):t(au,ou),i}var n,r,i=t(au,ou),a=i.domain,o=10;return i.base=function(t){return arguments.length?(o=+t,e()):o},i.domain=function(t){return arguments.length?(a(t),e()):a()},i.ticks=function(t){var e,i=a(),s=i[0],u=i[i.length-1];(e=u<s)&&(h=s,s=u,u=h);var c,l,f,h=n(s),d=n(u),g=null==t?10:+t,p=[];if(o%1||!(d-h<g))p=ds(h,d,Math.min(d-h,g)).map(r);else if(h=Math.round(h)-1,d=Math.round(d)+1,s>0){for(;h<d;++h)for(l=1,c=r(h);l<o;++l)if(!((f=c*l)<s)){if(f>u)break;p.push(f)}}else for(;h<d;++h)for(l=o-1,c=r(h);l>=1;--l)if(!((f=c*l)<s)){if(f>u)break;p.push(f)}return e?p.reverse():p},i.tickFormat=function(t,e){if(null==e&&(e=10===o?".0e":","),"function"!=typeof e&&(e=Zs(e)),t===1/0)return e;null==t&&(t=10);var a=Math.max(1,o*t/i.ticks().length);return function(t){var i=t/r(Math.round(n(t)));return i*o<o-.5&&(i*=o),i<=a?e(t):""}},i.nice=function(){return a(iu(a(),{floor:function(t){return r(Math.floor(n(t)))},ceil:function(t){return r(Math.ceil(n(t)))}}))},i}function hu(){var t=fu(Ns()).domain([1,10]);return t.copy=function(){return zs(t,hu()).base(t.base())},vs.apply(t,arguments),t}function du(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function gu(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function pu(t){var e=1,n=t(du(e),gu(e));return n.constant=function(n){return arguments.length?t(du(e=+n),gu(e)):e},nu(n)}function vu(){var t=pu(Ns());return t.copy=function(){return zs(t,vu()).constant(t.constant())},vs.apply(t,arguments)}!function(t){qs=tu(t),Zs=qs.format,Ks=qs.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var yu=s((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),xu=yu,_u=(yu.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u-t.getMinutes()*c)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getHours()}))),mu=_u,bu=(_u.range,s((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*u)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getMinutes()}))),wu=bu,Tu=(bu.range,s((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*u)}),(function(t,e){return(e-t)/u}),(function(t){return t.getUTCSeconds()}))),Au=Tu,Su=(Tu.range,s((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Su.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Su:null};var Eu=Su,Mu=(Su.range,1e3),ku=6e4,Ou=36e5,Ru=864e5,Cu=6048e5,Iu=2592e6,Lu=31536e6;function Du(t){return new Date(t)}function Pu(t){return t instanceof Date?+t:+new Date(+t)}function Fu(t,e,n,r,i,a,o,s,u){function c(s){return(o(s)<s?g:a(s)<s?p:i(s)<s?v:r(s)<s?y:e(s)<s?n(s)<s?x:_:t(s)<s?m:b)(s)}function l(e,n,r,i){if(null==e&&(e=10),"number"==typeof e){var a=Math.abs(r-n)/e,o=as((function(t){return t[2]})).right(w,a);o===w.length?(i=ps(n/Lu,r/Lu,e),e=t):o?(i=(o=w[a/w[o-1][2]<w[o][2]/a?o-1:o])[1],e=o[0]):(i=Math.max(ps(n,r,e),1),e=s)}return null==i?e:e.every(i)}var f=Bs(Is,Is),h=f.invert,d=f.domain,g=u(".%L"),p=u(":%S"),v=u("%I:%M"),y=u("%I %p"),x=u("%a %d"),_=u("%b %d"),m=u("%B"),b=u("%Y"),w=[[o,1,Mu],[o,5,5e3],[o,15,15e3],[o,30,3e4],[a,1,ku],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,Ou],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Ru],[r,2,1728e5],[n,1,Cu],[e,1,Iu],[e,3,7776e6],[t,1,Lu]];return f.invert=function(t){return new Date(h(t))},f.domain=function(t){return arguments.length?d(Ss.call(t,Pu)):d().map(Du)},f.ticks=function(t,e){var n,r=d(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=(n=l(t,i,a,e))?n.range(i,a+1):[],o?n.reverse():n},f.tickFormat=function(t,e){return null==e?c:u(e)},f.nice=function(t,e){var n=d();return(t=l(t,n[0],n[n.length-1],e))?d(iu(n,t)):f},f.copy=function(){return zs(f,Fu(t,e,n,r,i,a,o,s,u))},f}function zu(){return vs.apply(Fu(D,xu,A,I,mu,wu,Au,Eu,j).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Nu=s((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Bu=(Nu.range,s((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*l)}),(function(t,e){return(e-t)/l}),(function(t){return t.getUTCHours()}))),Xu=(Bu.range,s((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*c)}),(function(t,e){return(e-t)/c}),(function(t){return t.getUTCMinutes()})));Xu.range;var ju=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Uu={getColorFromCss:function(){var t=yo,e=Ta.body,n=e[t];if(!n){var r=Ta.createElement("span");r.className=bn.colorPattern,r.style.display="none",e.appendChild(r);var i=wa.getComputedStyle(r).backgroundImage;r.parentNode.removeChild(r),i.indexOf(";")>-1&&(n=i.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(";").map((function(t){return t.trim().replace(/[\"'\s]/g,"")})).filter(Boolean),e[t]=n)}return n},generateColor:function(){var t=this,e=t.config,n=e.data_colors,r=e.data_color,i=[],a=Na(e.color_pattern)?e.color_pattern:ks(t.getColorFromCss()||ju).range(),o=a;if(Ma(e.color_tiles)){var s=e.color_tiles.bind(t.api)(),u=a.map((function(e,n){var r=e.replace(/[#\(\)\s,]/g,""),i=t.state.datetimeId+"-pattern-"+r+"-"+n;return function(t,e,n){var r=mn(t.cloneNode(!0));return r.attr("id",n).insert("rect",":first-child").attr("width",r.attr("width")).attr("height",r.attr("height")).style("fill",e),{id:n,node:r.node()}}(s[n%s.length],e,i)}));a=u.map((function(t){return"url(#"+t.id+")"})),t.patterns=u}return function(s){var u,c=s.id||s.data&&s.data.id||s,l=t.isTypeOf(c,["line","spline","step"])||!e.data_types[c];return Ma(n[c])?u=n[c].bind(t.api)(s):n[c]?u=n[c]:(i.indexOf(c)<0&&i.push(c),u=l?o[i.indexOf(c)%o.length]:a[i.indexOf(c)%a.length],n[c]=u),Ma(r)?r.bind(t.api)(u,s):u}},generateLevelColor:function(){var t=this.config,e=t.color_pattern,n=t.color_threshold,r="value"===n.unit,i=n.max||100,a=n.values&&n.values.length?n.values:[];return Na(n)?function(t){for(var n=r?t:100*t/i,o=e[e.length-1],s=0,u=a.length;s<u;s++)if(n<=a[s]){o=e[s];break}return o}:null},setOverColor:function(t,e){var n=this,r=n.config,i=n.$el.main,a=r.color_onover,o=t?a:n.color;Xa(o)?o=function(t){var e=t.id;return e in a?a[e]:n.color(e)}:ka(o)?o=function(){return a}:Ma(a)&&(o=o.bind(n.api)),i.selectAll(Xa(e)?"."+bn.arc+n.getTargetSelectorSuffix(e.id):"."+bn.shape+"-"+e).style("fill",o)}},$u={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",BAR:"bar",BUBBLE:"bubble",DONUT:"donut",GAUGE:"gauge",LINE:"line",PIE:"pie",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step"},Yu={Area:[$u.AREA,$u.AREA_SPLINE,$u.AREA_SPLINE_RANGE,$u.AREA_LINE_RANGE,$u.AREA_STEP],AreaRange:[$u.AREA_SPLINE_RANGE,$u.AREA_LINE_RANGE],Arc:[$u.PIE,$u.DONUT,$u.GAUGE,$u.RADAR],Line:[$u.LINE,$u.SPLINE,$u.AREA,$u.AREA_SPLINE,$u.AREA_SPLINE_RANGE,$u.AREA_LINE_RANGE,$u.STEP,$u.AREA_STEP],Step:[$u.STEP,$u.AREA_STEP],Spline:[$u.SPLINE,$u.AREA_SPLINE,$u.AREA_SPLINE_RANGE]},Vu={getYDomainMinMax:function(t,e){var n=this,r=n.axis,i=n.config,a="min"===e,o=i.data_groups,s=n.mapToIds(t),u=n.getValuesAsIdKeyed(t);if(o.length>0)for(var c,l=n["has"+(a?"Negative":"Positive")+"ValueInTargets"](t),f=function(t){if(0===(t=t.filter((t=>s.indexOf(t)>=0))).length)return c=t,"continue";const e=t[0],n=r.getId(e);l&&u[e]&&(u[e]=u[e].map((t=>(a?t<0:t>0)?t:0)));for(let i,o=1;i=t[o];o++){if(!u[i])continue;const t=r.getId(i);u[i].forEach(((r,i)=>{const o=+r;t!==n||l&&(a?o>0:o<0)||(u[e][i]+=o)}))}c=t},h=0;c=o[h];h++)f(c);return oo(e,Object.keys(u).map((function(t){return oo(e,u[t])})))},getYDomainMin:function(t){return this.getYDomainMinMax(t,"min")},getYDomainMax:function(t){return this.getYDomainMinMax(t,"max")},isHiddenTargetWithYDomain:function(t){var e=this;return e.state.hiddenTargetIds.some((function(n){return e.axis.getId(n)===t}))},getYDomain:function(t,e,n){var r=this,i=r.axis,a=r.config,o=r.scale,s="axis_"+e;if(r.isStackNormalized())return[0,100];var u=o&&o[e]&&"log"===o[e].type,c=t.filter((function(t){return i.getId(t.id)===e})),l=n?r.filterByXDomain(c,n):c;if(0===l.length)return r.isHiddenTargetWithYDomain(e)?o[e].domain():"y2"===e?o.y.domain():r.getYDomain(t,"y2",n);var f=a[s+"_min"],h=a[s+"_max"],d=r.getYDomainMin(l),g=r.getYDomainMax(l),p=a[s+"_center"],v=[$u.BAR,$u.BUBBLE,$u.SCATTER].concat(Yu.Line).some((function(t){var e=t.indexOf("area")>-1?"area":t;return r.hasType(t,l)&&a[e+"_zerobased"]})),y=a[s+"_inverted"],x=r.hasDataLabel()&&a.axis_rotated,_=r.hasDataLabel()&&!a.axis_rotated;d=Ea(f)?f:Ea(h)?d<h?d:h-10:d,g=Ea(h)?h:Ea(f)?f<g?g:f+10:g,isNaN(d)&&(d=0),isNaN(g)&&(g=d),d===g&&(d<0?g=0:d=0);var m=d>=0&&g>=0,b=d<=0&&g<=0;(Ea(f)&&m||Ea(h)&&b)&&(v=!1),v&&(m&&(d=0),b&&(g=0));var w=Math.abs(g-d),T={top:.1*w,bottom:.1*w};if(Ca(p)){var A=Math.max(Math.abs(d),Math.abs(g));g=p+A,d=p-A}if(x){var S=Pa(o.y.range()),E=r.getDataLabelLength(d,g,"width").map((function(t){return t/S}));["bottom","top"].forEach((function(t,e){T[t]+=w*(E[e]/(1-E[0]-E[1]))}))}else if(_){var M=r.getDataLabelLength(d,g,"height");["bottom","top"].forEach((function(t,e){T[t]+=i.convertPixelsToAxisPadding(M[e],w)}))}var k=a[s+"_padding"];Na(k)&&["bottom","top"].forEach((function(t){T[t]=i.getPadding(k,t,T[t],w)})),v&&(m&&(T.bottom=d),b&&(T.top=-g));var O=u?[d,g].map((function(t){return t<0?0:t})):[d-T.bottom,g+T.top];return y?O.reverse():O},getXDomainMinMax:function(t,e){var n=this.config["axis_x_"+e],r=oo(e,t.map((function(t){return oo(e,t.values.map((function(t){return t.x})))}))),i=Xa(n)?n.value:n;return i=Ca(i)&&this.axis.isTimeSeries()?lo(i):i,Xa(n)&&n.fit&&("min"===e&&i<r||"max"===e&&i>r)&&(i=void 0),Ca(i)?i:r},getXDomainMin:function(t){return this.getXDomainMinMax(t,"min")},getXDomainMax:function(t){return this.getXDomainMinMax(t,"max")},getXDomainPadding:function(t){var e,n,r=this,i=r.axis,a=r.config,o=t[1]-t[0],s=a.axis_x_padding;i.isCategorized()?n=0:r.hasType("bar")?n=(e=r.getMaxDataCount())>1?o/(e-1)/2:.5:n=.01*o;var u=n,c=n;return Xa(s)&&Na(s)?(u=Ea(s.left)?s.left:n,c=Ea(s.right)?s.right:n):Oa(a.axis_x_padding)&&(u=s,c=s),{left:u,right:c}},getXDomain:function(t){var e=this,n="log"===e.scale.x.type,r=[e.getXDomainMin(t),e.getXDomainMax(t)],i=0,a=0;if(n)i=r[0],a=r[1];else{var o=e.axis.isCategorized(),s=e.axis.isTimeSeries(),u=e.getXDomainPadding(r),c=r[0],l=r[1];c-l!=0||o||(s?(c=new Date(.5*c.getTime()),l=new Date(1.5*l.getTime())):(c=0===c?1:.5*c,l=0===l?-1:1.5*l)),(c||0===c)&&(i=s?new Date(c.getTime()-u.left):c-u.left),(l||0===l)&&(a=s?new Date(l.getTime()+u.right):l+u.right)}return[i,a]},updateXDomain:function(t,e,n,r,i){var a=this,o=a.config,s=a.org,u=a.scale,c=u.x,l=u.subX,f=o.zoom_enabled;if(n&&(c.domain(i||ao(a.getXDomain(t))),s.xDomain=c.domain(),f&&a.zoom.updateScaleExtent(),l.domain(c.domain()),a.brush&&a.brush.scale(l)),e){var h=i||!a.brush||Ka(a)?s.xDomain:Ha(a).map(l.invert);c.domain(h),f&&a.zoom.updateScaleExtent()}return r&&c.domain(a.trimXDomain(c.orgDomain())),c.domain()},trimXDomain:function(t){var e=this.getZoomDomain(),n=e[0],r=e[1];return t[0]<=n&&(t[1]=+t[1]+(n-t[0]),t[0]=n),r<=t[1]&&(t[0]=+t[0]-(t[1]-r),t[1]=r),t},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return Ca(t.zoom_x_min)&&(n=oo("min",[n,t.zoom_x_min])),Ca(t.zoom_x_max)&&(r=oo("max",[r,t.zoom_x_max])),[n,r]}};function Gu(t,e,n){var r=t.config,i="axis_"+e+"_tick_format";return(r[i]?r[i]:t.defaultValueFormat)(n)}var Hu={getYFormat:function(t){var e=this,n=e.yFormat,r=e.y2Format;return t&&!e.hasType("gauge")&&(n=e.defaultArcValueFormat,r=e.defaultArcValueFormat),function(t,i,a){return(e.axis&&"y2"===e.axis.getId(a)?r:n).call(e,t,i)}},yFormat:function(t){return Gu(this,"y",t)},y2Format:function(t){return Gu(this,"y2",t)},defaultValueFormat:function(t){return Ea(t)?+t:""},defaultArcValueFormat:function(t,e){return(100*e).toFixed(1)+"%"},dataLabelFormat:function(t){var e=this.config.data_labels,n=function(t){return Ea(t)?+t:""},r=n;return Ma(e.format)?r=e.format:Fa(e.format)&&(r=e.format[t]?!0===e.format[t]?n:e.format[t]:function(){return""}),r.bind(this.api)}},Wu={initLegend:function(){var t=this,e=t.config,n=t.$el;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(!e.legend_contents_bindto&&(n.legend=t.$el.svg.append("g").classed(bn.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.scale,s=r.$el,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=ja(u,"withTransition",!0),u.withTransitionForTransform=ja(u,"withTransitionForTransform",!0),i.legend_contents_bindto&&i.legend_contents_template?r.updateLegendTemplate():r.updateLegendElement(t||r.mapToIds(r.data.targets),u,n),s.legend.selectAll("."+bn.legendItem).classed(bn.legendItemHidden,(function(t){var e=!r.isTargetToShow(t);return e&&(this.style.opacity=null),e})),r.updateScales(!1,!o.zoom),r.updateSvgSize(),r.transformAll(u.withTransitionForTransform,n),a.legendHasRendered=!0},updateLegendTemplate:function(){var t=this,e=t.config,n=t.$el,r=mn(e.legend_contents_bindto),i=e.legend_contents_template;if(!r.empty()){var a=t.mapToIds(t.data.targets),o=[],s="";a.forEach((function(e){var n=Ma(i)?i.bind(t.api)(e,t.color(e),t.api.data(e)[0].values):co(i,{COLOR:t.color(e),TITLE:e});n&&(o.push(e),s+=n)}));var u=r.html(s).selectAll((function(){return this.childNodes})).data(o);t.setLegendItem(u),n.legend=r}},updateSizeForLegend:function(t){var e=this,n=e.config,r=e.state,i=r.isLegendTop,a=r.isLegendLeft,o=r.isLegendRight,s=r.isLegendInset,u=r.current,c=t.width,l=t.height,f={top:i?e.getCurrentPaddingTop()+n.legend_inset_y+5.5:u.height-l-e.getCurrentPaddingBottom()-n.legend_inset_y,left:a?e.getCurrentPaddingLeft()+n.legend_inset_x+.5:u.width-c-e.getCurrentPaddingRight()-n.legend_inset_x+.5};e.state.margin3={top:o?0:s?f.top:u.height-l,right:NaN,bottom:0,left:o?u.width-c:s?f.left:0}},transformLegend:function(t){var e=this.$el.legend;(t?e.transition():e).attr("transform",this.getTranslate("legend"))},updateLegendStep:function(t){this.state.legendStep=t},updateLegendItemWidth:function(t){this.state.legendItemWidth=t},updateLegendItemHeight:function(t){this.state.legendItemHeight=t},updateLegendItemColor:function(t,e){var n=this.$el.legend;n&&n.select("."+bn.legendItem+"-"+t+" line").style("stroke",e)},getLegendWidth:function(){var t=this.state,e=t.current.width,n=t.isLegendRight,r=t.isLegendInset,i=t.legendItemWidth,a=t.legendStep;return this.config.legend_show?n||r?i*(a+1):e:0},getLegendHeight:function(){var t=this.state,e=t.current,n=t.isLegendRight,r=t.legendItemHeight,i=t.legendStep;return this.config.legend_show?n?e.height:Math.max(20,r)*(i+1):0},opacityForLegend:function(t){return t.classed(bn.legendItemHidden)?null:"1"},opacityForUnfocusedLegend:function(t){return t.classed(bn.legendItemHidden)?null:"0.3"},toggleFocusLegend:function(t,e){var n=this,r=n.$el.legend,i=n.mapToTargetIds(t);r&&r.selectAll("."+bn.legendItem).filter((function(t){return i.indexOf(t)>=0})).classed(bn.legendItemFocused,e).transition().duration(100).style("opacity",(function(){return(e?n.opacityForLegend:n.opacityForUnfocusedLegend).call(n,mn(this))}))},revertLegend:function(){var t=this,e=t.$el.legend;e&&e.selectAll("."+bn.legendItem).classed(bn.legendItemFocused,!1).transition().duration(100).style("opacity",(function(){return t.opacityForLegend(mn(this))}))},showLegend:function(t){var e=this,n=e.config,r=e.$el;n.legend_show||(n.legend_show=!0,r.legend?r.legend.style("visibility","visible"):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),r.legend.selectAll(e.selectorLegends(t)).style("visibility","visible").transition().style("opacity",(function(){return e.opacityForLegend(mn(this))}))},hideLegend:function(t){var e=this,n=e.config,r=e.$el.legend;n.legend_show&&za(t)&&(n.legend_show=!1,r.style("visibility","hidden")),e.addHiddenLegendIds(t),r.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox:function(t,e){var n,r=this,i=r.cache,a=r.state,o=bo;return t&&(!(n=!a.redrawing&&i.get(o)||{})[t]&&(n[t]=r.getTextRect(e,bn.legendItem),i.add(o,n)),n=n[t]),n},setLegendItem:function(t){var e=this,n=e.api,r=e.config,i=e.state,a="touch"===i.inputType,o=e.hasType("gauge");t.attr("class",(function(t){var n=mn(this);return(!n.empty()&&n.attr("class")||"")+e.generateClass(bn.legendItem,t)})).style("visibility",(function(t){return e.isLegendToShow(t)?"visible":"hidden"})),r.interaction_enabled&&(t.style("cursor","pointer").on("click",(function(t){Ua(r.legend_item_onclick,n,t)||(sn.altKey?(n.hide(),n.show(t)):(n.toggle(t),mn(this).classed(bn.legendItemFocused,!1).style("opacity",null))),a&&e.hideTooltip()})),!a&&t.on("mouseout",(function(t){Ua(r.legend_item_onout,n,t)||(mn(this).classed(bn.legendItemFocused,!1),o&&e.undoMarkOverlapped(e,"."+bn.gaugeValue),e.api.revert())})).on("mouseover",(function(t){Ua(r.legend_item_onover,n,t)||(mn(this).classed(bn.legendItemFocused,!0),o&&e.markOverlapped(t,e,"."+bn.gaugeValue),!i.transiting&&e.isTargetToShow(t)&&n.focus(t))})))},updateLegendElement:function(t,e){var n,r,i,a=this,o=a.config,s=a.state,u=a.$el.legend,c=o.legend_item_tile_width+5,l=0,f=0,h=0,d={},g={},p={},v=[0],y={},x=0,_=s.isLegendRight||s.isLegendInset,m=t.filter((function(t){return!Ca(o.data_names[t])||null!==o.data_names[t]})),b=e.withTransition,w=function(t,e,n){var r,i=n===m.length-1,u=a.getLegendItemTextBox(e,t),b=u.width+c+(i&&!_?0:10)+o.legend_padding,w=u.height+4,T=_?w:b,A=_?a.getLegendHeight():a.getLegendWidth(),S=function(t,e){e||(r=(A-h-T)/2)<10&&(r=(A-T)/2,h=0,x++),y[t]=x,v[x]=s.isLegendInset?10:r,d[t]=h,h+=T};if(0===n&&(h=0,x=0,l=0,f=0),o.legend_show&&!a.isLegendToShow(e))return g[e]=0,p[e]=0,y[e]=0,void(d[e]=0);g[e]=b,p[e]=w,(!l||b>=l)&&(l=b),(!f||w>=f)&&(f=w);var E=_?f:l;o.legend_equally?(Object.keys(g).forEach((function(t){return g[t]=l})),Object.keys(p).forEach((function(t){return p[t]=f})),(r=(A-E*m.length)/2)<10?(h=0,x=0,m.forEach((function(t){return S(t)}))):S(e,!0)):S(e)};s.isLegendInset&&(x=o.legend_inset_step?o.legend_inset_step:m.length,a.updateLegendStep(x)),s.isLegendRight?(n=function(t){return l*y[t]},r=function(t){return v[y[t]]+d[t]}):s.isLegendInset?(n=function(t){return l*y[t]+10},r=function(t){return v[y[t]]+d[t]}):(n=function(t){return v[y[t]]+d[t]},r=function(t){return f*y[t]});var T=function(t,e){return n(t,e)+4+o.legend_item_tile_width},A=function(t,e){return n(t,e)},S=function(t,e){return n(t,e)-2},E=function(t,e){return n(t,e)-2+o.legend_item_tile_width},M=function(t,e){return r(t,e)+9},k=function(t,e){return r(t,e)-5},O=function(t,e){return r(t,e)+4},R=-200,C=u.selectAll("."+bn.legendItem).data(m).enter().append("g");a.setLegendItem(C),C.append("text").text((function(t){return Ca(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){w(this,t,e)})).style("pointer-events","none").attr("x",_?T:R).attr("y",_?R:M),C.append("rect").attr("class",bn.legendItemEvent).style("fill-opacity","0").attr("x",_?A:R).attr("y",_?R:k);var I=function(t){var e=a.getDataById(t);return a.levelColor?a.levelColor(e.values[0].value):a.color(e)},L=o.legend_usePoint;if(L){var D=[];C.append((function(t){var e=Na(o.point_pattern)?o.point_pattern:[o.point_type];-1===D.indexOf(t)&&D.push(t);var n=e[D.indexOf(t)%e.length];return"rectangle"===n&&(n="rect"),Ta.createElementNS(me.svg,"hasValidPointType"in a&&a.hasValidPointType(n)?n:"use")})).attr("class",bn.legendItemPoint).style("fill",I).style("pointer-events","none").attr("href",(function(t,e,n){return"use"===n[e].nodeName.toLowerCase()?"#"+s.datetimeId+"-point-"+t:void 0}))}else C.append("line").attr("class",bn.legendItemTile).style("stroke",I).style("pointer-events","none").attr("x1",_?S:R).attr("y1",_?R:O).attr("x2",_?E:R).attr("y2",_?R:O).attr("stroke-width",o.legend_item_tile_height);i=u.select("."+bn.legendBackground+" rect"),s.isLegendInset&&l>0&&0===i.size()&&(i=u.insert("g","."+bn.legendItem).attr("class",bn.legendBackground).append("rect"));var P=u.selectAll("text").data(m).text((function(t){return Ca(o.data_names[t])?o.data_names[t]:t})).each((function(t,e){w(this,t,e)}));(b?P.transition():P).attr("x",T).attr("y",M);var F=u.selectAll("rect."+bn.legendItemEvent).data(m);if((b?F.transition():F).attr("width",(function(t){return g[t]})).attr("height",(function(t){return p[t]})).attr("x",A).attr("y",k),L){var z=u.selectAll("."+bn.legendItemPoint).data(m);(b?z.transition():z).each((function(){var t,e,n,r=this.nodeName.toLowerCase(),i=o.point_r,a="x",s="y",u=2,c=2.5;if("circle"===r){var l=.2*i;a="cx",s="cy",t=i+l,u=2*i,c=-l}else if("rect"===r){var f=2.5*i;e=f,n=f,c=3}mn(this).attr(a,(function(t){return S(t)+u})).attr(s,(function(t){return O(t)-c})).attr("r",t).attr("width",e).attr("height",n)}))}else{var N=u.selectAll("line."+bn.legendItemTile).data(m);(b?N.transition():N).style("stroke",I).attr("x1",S).attr("y1",O).attr("x2",E).attr("y2",O)}i&&(b?i.transition():i).attr("height",a.getLegendHeight()-12).attr("width",l*(x+1)+10),a.updateLegendItemWidth(l),a.updateLegendItemHeight(f),a.updateLegendStep(x)}},qu={redraw:function(t){void 0===t&&(t={});var e=this,n=e.config,r=e.state,i=e.$el,a=i.main;r.redrawing=!0;var o=e.filterTargetsToShow(e.data.targets),s=t.initializing,u=t.flow,c=e.getWithOption(t),l=c.Transition?n.transition_duration:0,f=c.TransitionForExit?l:0,h=c.TransitionForAxis?l:0,d=e.axis&&e.axis.generateTransitions(h);e.updateSizes(s),c.Legend&&n.legend_show?(t.withTransition=!!l,e.updateLegend(e.mapToIds(e.data.targets),t,d)):c.Dimension&&e.updateDimension(!0),(!e.hasArcType()||r.hasRadar)&&e.updateCircleY&&e.updateCircleY(),n.data_empty_label_text&&a.select("text."+bn.text+"."+bn.empty).attr("x",r.width/2).attr("y",r.height/2).text(n.data_empty_label_text).style("display",o.length?"none":null),r.hasAxis?(e.axis.redrawAxis(o,c,d,u,s),e.hasGrid()&&e.updateGrid(l),n.regions.length&&e.updateRegion(l),e.hasType("bar")&&e.updateBar(f),e.hasTypeOf("Line")&&e.updateLine(f),e.hasTypeOf("Area")&&e.updateArea(f),i.text&&a.selectAll("."+bn.selectedCircles).filter(e.isBarType.bind(e)).selectAll("circle").remove(),n.interaction_enabled&&!u&&c.EventRect&&(e.redrawEventRect(),e.bindZoomEvent&&e.bindZoomEvent())):(i.arcs&&e.redrawArc(l,f,c.Transform),i.radar&&e.redrawRadar(f)),!r.resizing&&(e.hasPointType()||r.hasRadar)&&e.updateCircle(),e.hasDataLabel()&&!e.hasArcType(null,["radar"])&&e.updateText(f),e.redrawTitle&&e.redrawTitle(),s&&e.updateTypesElements(),e.generateRedrawList(o,u,l,c.Subchart),e.callPluginHook("$redraw",t,l)},generateRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=i.getDrawShape();o.hasAxis&&a.subchart_show&&i.redrawSubchart(r,n,s);var u=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:s,xv:i.xv.bind(i)}),c=(n||u)&&fo(),l=i.getRedrawList(s,e,u,c),f=e||a.onrendered?function(){u&&u(),o.redrawing=!1,Ua(a.onrendered,i.api)}:null;if(f)if(c&&l.length){var h=Oo();Hi().duration(n).each((function(){l.reduce((function(t,e){return t.concat(e)}),[]).forEach((function(t){return h.add(t)}))})).call(h,f)}else o.transiting||f();i.mapToIds(i.data.targets).forEach((function(t){o.withoutFadeIn[t]=!0}))},getRedrawList:function(t,e,n,r){var i=this,a=i.config,o=i.state,s=o.hasAxis,u=o.hasRadar,c=i.$el.grid,l=t.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=[];if(s){var v=t.type,y=v.area,x=v.bar,_=v.line;(a.grid_x_lines.length||a.grid_y_lines.length)&&p.push(i.redrawGrid(r)),a.regions.length&&p.push(i.redrawRegion(r)),i.hasTypeOf("Line")&&p.push(i.redrawLine(_,r)),i.hasTypeOf("Area")&&p.push(i.redrawArea(y,r)),i.hasType("bar")&&p.push(i.redrawBar(x,r)),!e&&c.main&&p.push(i.updateGridFocus())}return(!i.hasArcType()||u)&&Na(a.data_labels)&&!1!==a.data_labels&&p.push(i.redrawText(d,g,e,r)),(i.hasPointType()||u)&&!a.point_focus_only&&i.redrawCircle&&p.push(i.redrawCircle(f,h,r,n)),p},updateAndRedraw:function(t){void 0===t&&(t={});var e,n=this,r=n.config,i=n.state;t.withTransition=ja(t,"withTransition",!0),t.withTransform=ja(t,"withTransform",!1),t.withLegend=ja(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=ja(t,"withTransitionForTransform",t.withTransition),t.withLegend&&r.legend_show||(i.hasAxis&&(e=n.axis.generateTransitions(t.withTransitionForAxis?r.transition_duration:0)),n.updateScales(),n.updateSvgSize(),n.transformAll(t.withTransitionForTransform,e)),n.redraw(t,e)},redrawWithoutRescale:function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})}};function Zu(t,e,n){void 0===t&&(t="linear"),void 0===e&&(e=0),void 0===n&&(n=1);var r={linear:ru,log:vu,_log:hu,time:zu}[t]();return r.type=t,/_?log/.test(t)&&r.clamp(!0),r.range([e,n])}var Ku={getXScale:function(t,e,n,r){var i=this,a=i.scale.zoom||Zu(i.axis.getAxisType("x"),t,e);return i.getCustomizedScale(n?a.domain(n):a,r)},getYScale:function(t,e,n,r){var i=Zu(this.axis.getAxisType(t),e,n);return r&&i.domain(r),i},getYScaleById:function(t,e){void 0===e&&(e=!1);var n="y2"===this.axis.getId(t),r=e?n?"subY2":"subY":n?"y2":"y";return this.scale[r]},getCustomizedScale:function(t,e){var n=this,r=e||function(){return n.axis.x.tickOffset()},i=function(e,n){var i=t(e)+r();return n?i:Math.ceil(i)};for(var a in t)i[a]=t[a];return i.orgDomain=function(){return t.domain()},i.orgScale=function(){return t},n.axis.isCategorized()&&(i.domain=function(e){var n=e;return arguments.length?(t.domain(n),i):[(n=this.orgDomain())[0],n[1]+1]}),i},updateScales:function(t,e){void 0===e&&(e=!0);var n=this,r=n.axis,i=n.config,a=n.format,o=n.org,s=n.scale,u=n.state,c=u.width,l=u.height,f=u.width2,h=u.height2;if(u.hasAxis){var d=i.axis_rotated,g={x:d?1:0,y:d?0:l,subX:d?1:0,subY:d?0:h},p={x:d?l:c,y:d?c:1,subX:d?l:c,subY:d?f:1},v=e&&s.x&&s.x.orgDomain(),y=e&&o.xDomain;s.x=n.getXScale(g.x,p.x,v,(function(){return r.x.tickOffset()})),s.subX=n.getXScale(g.x,p.x,y,(function(t){return t%1?0:r.subX.tickOffset()})),a.xAxisTick=r.getXAxisTickFormat(),r.setAxis("x",s.x,i.axis_x_tick_outer,t),i.subchart_show&&r.setAxis("subX",s.subX,i.axis_x_tick_outer,t),s.y=n.getYScale("y",g.y,p.y,s.y?s.y.domain():i.axis_y_default),s.subY=n.getYScale("y",g.subY,p.subY,s.subY?s.subY.domain():i.axis_y_default),r.setAxis("y",s.y,i.axis_y_tick_outer,t),i.axis_y2_show&&(s.y2=n.getYScale("y2",g.y,p.y,s.y2?s.y2.domain():i.axis_y2_default),s.subY2=n.getYScale("y2",g.subY,p.subY,s.subY2?s.subY2.domain():i.axis_y2_default),r.setAxis("y2",s.y2,i.axis_y2_tick_outer,t))}else n.updateArc&&n.updateArc()},xx:function(t){var e=this.config,n=this.scale,r=n.x,i=n.zoom,a=e.zoom_enabled&&i?i:r;return t?a(Ea(t.x)?t.x:t):null},xv:function(t){var e=this,n=e.axis,r=e.config,i=e.scale.x,a=e.getBaseValue(t);return n.isTimeSeries()?a=lo.call(e,a):n.isCategorized()&&ka(a)&&(a=r.axis_x_categories.indexOf(a)),Math.ceil(i(a))},yv:function(t){var e=this.scale,n=e.y,r=e.y2,i=t.axis&&"y2"===t.axis?r:n;return Math.ceil(i(this.getBaseValue(t)))},subxx:function(t){return t?this.scale.subX(t.x):null}};function Ju(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Qu(t){this._context=t}function tc(t){return new Qu(t)}function ec(){}function nc(t){this._context=t}function rc(t){return new nc(t)}function ic(t){this._context=t}function ac(t){return new ic(t)}function oc(t,e){this._basis=new Qu(t),this._beta=e}Qu.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:Ju(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ju(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nc.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ju(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ju(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},oc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*o),this._beta*e[u]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var sc=function t(e){function n(t){return 1===e?new Qu(t):new oc(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function uc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function cc(t,e){this._context=t,this._k=(1-e)/6}cc.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:uc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:uc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var lc=function t(e){function n(t){return new cc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function fc(t,e){this._context=t,this._k=(1-e)/6}fc.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:uc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var hc=function t(e){function n(t){return new fc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function dc(t,e){this._context=t,this._k=(1-e)/6}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:uc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gc=function t(e){function n(t){return new dc(t,e)}return n.tension=function(e){return t(+e)},n}(0),pc=Math.abs,vc=Math.atan2,yc=Math.cos,xc=Math.max,_c=Math.min,mc=Math.sin,bc=Math.sqrt,wc=1e-12,Tc=Math.PI,Ac=Tc/2,Sc=2*Tc;function Ec(t){return t>=1?Ac:t<=-1?-Ac:Math.asin(t)}function Mc(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>wc){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>wc){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function kc(t,e){this._context=t,this._alpha=e}kc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Mc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Oc=function t(e){function n(t){return e?new kc(t,e):new cc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Rc(t,e){this._context=t,this._alpha=e}Rc.prototype={areaStart:ec,areaEnd:ec,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Mc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Cc=function t(e){function n(t){return e?new Rc(t,e):new fc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ic(t,e){this._context=t,this._alpha=e}Ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:Mc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lc=function t(e){function n(t){return e?new Ic(t,e):new dc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Dc(t){return t<0?-1:1}function Pc(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0);return(Dc(a)+Dc(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*r)/(r+i)))||0}function Fc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function zc(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Nc(t){this._context=t}function Bc(t){this._context=new Xc(t)}function Xc(t){this._context=t}function jc(t){return new Nc(t)}function Uc(t){return new Bc(t)}function $c(t){this._context=t}function Yc(t){var e,n,r=t.length-1,i=Array(r),a=Array(r),o=Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,o[e]-=n*o[e-1];for(i[r-1]=o[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Vc(t){return new $c(t)}function Gc(t){this._context=t}function Hc(t){return new Gc(t)}function Wc(t){this._context=t}function qc(t){return new Wc(t)}function Zc(t,e){this._context=t,this._t=e}function Kc(t){return new Zc(t,.5)}function Jc(t){return new Zc(t,0)}function Qc(t){return new Zc(t,1)}Nc.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:zc(this,this._t0,Fc(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zc(this,Fc(this,n=Pc(this,t,e)),n);break;default:zc(this,this._t0,n=Pc(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Bc.prototype=Object.create(Nc.prototype)).point=function(t,e){Nc.prototype.point.call(this,e,t)},Xc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}},$c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Yc(t),i=Yc(e),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Gc.prototype={areaStart:ec,areaEnd:ec,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))}},Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},Zc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var tl={getDrawShape:function(){var t=this,e=t.config.axis_rotated,n=t.state.hasRadar,r={type:{},indices:{},pos:{}};if(t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")){var i=t.getShapeIndices(t.isLineType);if(r.indices.line=i,r.type.line=t.generateDrawLine?t.generateDrawLine(i,!1):void 0,t.hasTypeOf("Area")){var a=t.getShapeIndices(t.isAreaType);r.indices.area=a,r.type.area=t.generateDrawArea?t.generateDrawArea(a,!1):void 0}}if(t.hasType("bar")){var o=t.getShapeIndices(t.isBarType);r.indices.bar=o,r.type.bar=t.generateDrawBar?t.generateDrawBar(o):void 0}if(!t.hasArcType()||n){var s=n?t.radarCircleX:e?t.circleY:t.circleX,u=n?t.radarCircleY:e?t.circleX:t.circleY;r.pos={xForText:t.generateXYForText(r.indices,!0),yForText:t.generateXYForText(r.indices,!1),cx:(s||function(){}).bind(t),cy:(u||function(){}).bind(t)}}return r},getShapeIndices:function(t){var e=this,n=e.config,r=n.data_xs,i=Na(r),a={},o=i?{}:0;return i&&no(Object.keys(r).map((function(t){return r[t]}))).forEach((function(t){o[t]=0,a[t]={}})),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach((function(t){for(var e,i=(t.id in r?r[t.id]:""),s=i?a[i]:a,u=0;e=n.data_groups[u];u++)if(!(e.indexOf(t.id)<0))for(var c,l=0;c=e[l];l++)if(c in s){s[t.id]=s[c];break}Ra(s[t.id])&&(s[t.id]=i?o[i]++:o++,s.__max__=(i?o[i]:o)-1)})),a},getIndices:function(t,e){var n=this.config.data_xs;return Na(n)?t[n[e]]:t},getIndicesMax:function(t){return Na(this.config.data_xs)?Object.keys(t).map((function(e){return t[e].__max__||0})).reduce((function(t,e){return t+e})):t.__max__},getShapeX:function(t,e,n){var r=this,i=r.config,a=r.scale,o=n?a.subX:a.zoom||a.x,s=i.bar_padding,u=function(t,e){return t+e},c=Fa(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return function(n){var i=r.getIndices(e,n.id),a=n.id in i?i[n.id]:0,l=(i.__max__||0)+1,f=0;if(Na(n.x)){var h=o(n.x,!0);f=c?h-(t[n.id]||t._$width)+t._$total.slice(0,a+1).reduce(u)-c:h-(Oa(t)?t:t._$width)*(l/2-a)}return t&&f&&l>1&&s&&(a&&(f+=s*a),l>2?f-=(l-1)*s/2:2===l&&(f-=s/2)),f}},getShapeY:function(t){var e=this,n=e.isStackNormalized();return function(r){var i=n?e.getRatio("index",r,!0):e.isBubbleZType(r)?e.getBubbleZData(r.value,"y"):r.value;return e.getYScaleById(r.id,t)(i)}},getShapeYMin:function(t){var e=this,n=e.scale[e.axis.getId(t)].domain()[0];return!e.isGrouped(t)&&n>0?n:0},getShapeOffsetData:function(t){var e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),r=e.isStackNormalized(),i=n.map((function(t){var n=t.values,i={};e.isStepType(t)&&(n=e.convertValuesToStep(n));var a=n.reduce((function(t,n){var a=+n.x;return t[a]=n,i[a]=r?e.getRatio("index",n,!0):n.value,t}),{});return{id:t.id,rowValues:n,rowValueMapByXValue:a,values:i}}));return{indexMapByTargetId:n.reduce((function(t,e,n){return t[e.id]=n,t}),{}),shapeOffsetTargets:i}},getShapeOffset:function(t,e,n){var r=this,i=r.getShapeOffsetData(t),a=i.shapeOffsetTargets,o=i.indexMapByTargetId;return function(t,i){var s=r.getIndices(e,t.id),u=r.getYScaleById(t.id,n),c=u(r.getShapeYMin(t.id)),l=+t.x,f=c;return a.filter((function(e){return e.id!==t.id})).forEach((function(e){if(s[e.id]===s[t.id]&&o[e.id]<o[t.id]){var n=e.rowValues[i];n&&+n.x===l||(n=e.rowValueMapByXValue[l]),n&&n.value*t.value>=0&&(f+=u(e.values[l])-c)}})),f}},isWithinShape:function(t,e){var n,r=this,i=mn(t);return r.isTargetToShow(e.id)?"hasValidPointType"in r&&r.hasValidPointType(t.nodeName)?n=r.isStepType(e)?r.isWithinStep(t,r.getYScaleById(e.id)(e.value)):r.isWithinCircle(t,r.isBubbleType(e)?1.5*r.pointSelectR(e):0):"path"===t.nodeName&&(n=!i.classed(bn.bar)||r.isWithinBar(t)):n=!1,n},getInterpolate:function(t){var e=this.getInterpolateType(t);return{basis:tc,"basis-closed":rc,"basis-open":ac,bundle:sc,cardinal:lc,"cardinal-closed":hc,"cardinal-open":gc,"catmull-rom":Oc,"catmull-rom-closed":Cc,"catmull-rom-open":Lc,"monotone-x":jc,"monotone-y":Uc,natural:Vc,"linear-closed":Hc,linear:qc,step:Kc,"step-after":Qc,"step-before":Jc}[e]},getInterpolateType:function(t){var e=this,n=e.config,r=n.spline_interpolation_type,i=e.isInterpolationType(r)?r:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"}},el={setContainerSize:function(){var t=this,e=t.state;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth:function(){return this.config.size_width||this.getParentWidth()},getCurrentHeight:function(){var t=this,e=t.config,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getCurrentPaddingTop:function(){var t=this,e=t.config,n=t.state.hasAxis,r=t.$el,i=n?e.axis_y2_axes.length:0,a=Ea(e.padding_top)?e.padding_top:0;return r.title&&r.title.node()&&(a+=t.getTitlePadding()),i&&e.axis_rotated&&(a+=t.getHorizontalAxisHeight("y2")*i),a},getCurrentPaddingBottom:function(){var t=this,e=t.config,n=t.state.hasAxis,r=e.axis_rotated?"y":"x",i=n?e["axis_"+r+"_axes"].length:0;return(Ea(e.padding_bottom)?e.padding_bottom:0)+(i?t.getHorizontalAxisHeight(r)*i:0)},getCurrentPaddingLeft:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=n.axis_rotated,a=i?"x":"y",o=r?n["axis_"+a+"_axes"].length:0,s=r?e.getAxisWidthByAxisId(a,t):0;return(Ea(n.padding_left)?n.padding_left:r&&i?n.axis_x_show?Math.max(La(s),40):1:!r||n.axis_y_show&&!n.axis_y_inner?La(s):e.axis.getAxisLabelPosition("y").isOuter?30:1)+s*o},getCurrentPaddingRight:function(t){void 0===t&&(t=!1);var e=this,n=e.config,r=e.state.hasAxis,i=e.state.isLegendRight?e.getLegendWidth()+20:0,a=r?n.axis_y2_axes.length:0,o=r?e.getAxisWidthByAxisId("y2"):0,s=t?e.axis.getXAxisTickTextY2Overflow(10):0;return(Ea(n.padding_right)?n.padding_right+1:e.axis&&n.axis_rotated?10+i:!e.axis||n.axis_y2_show&&!n.axis_y2_inner?Math.max(La(o)+i,s):Math.max(2+i+(e.axis.getAxisLabelPosition("y2").isOuter?20:0),s))+o*a},getParentRectValue:function(t){for(var e,n="offset"+Qa(t),r=this.$el.chart.node();!e&&r&&"BODY"!==r.tagName;){try{e=r.getBoundingClientRect()[t]}catch(t){n in r&&(e=r[n])}r=r.parentNode}if("width"===t){var i=Ta.body.offsetWidth;e>i&&(e=i)}return e},getParentWidth:function(){return this.getParentRectValue("width")},getParentHeight:function(){var t=this.$el.chart.style("height");return t.indexOf("px")>0?parseInt(t,10):0},getSvgLeft:function(t){var e=this,n=e.config,r=e.$el,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,a=n.axis_rotated?bn.axisX:bn.axisY,o=r.main.select("."+a).node(),s=o&&i?o.getBoundingClientRect():{right:0},u=r.chart.node().getBoundingClientRect(),c=e.hasArcType(),l=s.right-u.left-(c?0:e.getCurrentPaddingLeft(t));return l>0?l:0},updateDimension:function(t){var e=this,n=e.config,r=e.state.hasAxis,i=e.$el;r&&!t&&(e.axis.x&&n.axis_rotated?(e.axis.x.create(i.axis.x),e.axis.subX&&e.axis.subX.create(i.axis.subX)):(e.axis.y&&e.axis.y.create(i.axis.y),e.axis.y2&&e.axis.y2.create(i.axis.y2))),e.updateScales(t),e.updateSvgSize(),e.transformAll(!1)},updateSvgSize:function(){var t=this,e=t.state,n=e.clip,r=e.current,i=e.hasAxis,a=e.width,o=e.height,s=t.$el.svg;if(s.attr("width",r.width).attr("height",r.height),i){var u=s.select("."+bn.brush+" .overlay"),c={width:0,height:0};u.size()&&(c.width=+u.attr("width"),c.height=+u.attr("height")),s.selectAll(["#"+n.id,"#"+n.idGrid]).select("rect").attr("width",a).attr("height",o),s.select("#"+n.idXAxis).select("rect").call(t.setXAxisClipPath.bind(t)),s.select("#"+n.idYAxis).select("rect").call(t.setYAxisClipPath.bind(t)),n.idSubchart&&s.select("#"+n.idSubchart).select("rect").attr("width",a).attr("height",c.height)}},updateSizes:function(t){var e=this,n=e.config,r=e.state,i=e.$el.legend,a=n.axis_rotated,o=e.hasArcType();t||e.setContainerSize();var s={width:i?e.getLegendWidth():0,height:i?e.getLegendHeight():0};!o&&n.axis_x_show&&n.axis_x_tick_autorotate&&e.updateXAxisTickClip();var u=r.isLegendRight||r.isLegendInset?0:s.height,c=a||o?0:e.getHorizontalAxisHeight("x"),l=n.subchart_axis_x_show&&n.subchart_axis_x_tick_text_show?c:30,f=n.subchart_show&&!o?n.subchart_size_height+l:0;r.margin=!o&&a?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:e.getHorizontalAxisHeight("y")+u+e.getCurrentPaddingBottom(),left:f+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(!0),bottom:c+f+u+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},r.margin2=a?{top:r.margin.top,right:NaN,bottom:20+u,left:e.state.rotatedPadding.left}:{top:r.current.height-f-u,right:NaN,bottom:l+u,left:r.margin.left},r.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(s),r.width=r.current.width-r.margin.left-r.margin.right,r.height=r.current.height-r.margin.top-r.margin.bottom,r.width<0&&(r.width=0),r.height<0&&(r.height=0),r.width2=a?r.margin.left-r.rotatedPadding.left-r.rotatedPadding.right:r.width,r.height2=a?r.height:r.current.height-r.margin2.top-r.margin2.bottom,r.width2<0&&(r.width2=0),r.height2<0&&(r.height2=0);var h=e.hasType("gauge"),d=n.legend_show&&r.isLegendRight;r.arcWidth=r.width-(d?s.width+10:0),r.arcHeight=r.height-(d&&!h?0:10),h&&!n.gauge_fullCircle&&(r.arcHeight+=r.height-e.getPaddingBottomForGauge()),e.updateRadius&&e.updateRadius(),r.isLegendRight&&o&&(r.margin3.left=r.arcWidth/2+1.1*r.radiusExpanded)}};function nl(t){return"string"==typeof t?new yn([document.querySelectorAll(t)],[document.documentElement]):new yn([null==t?[]:t],vn)}var rl={opacityForText:function(t){var e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?"1":"0"},initText:function(){this.$el.main.select("."+bn.chart).append("g").attr("class",bn.chartTexts)},updateTargetsForText:function(t){var e=this,n=e.getChartClass("Text"),r=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select("."+bn.chartTexts).selectAll("."+bn.chartText).data(t).attr("class",(function(t){return n(t)+i(t)})).enter().append("g").style("opacity","0").attr("class",n).style("pointer-events","none").append("g").attr("class",r)},updateText:function(t){var e=this,n=e.config,r=e.$el,i=e.labelishData.bind(e),a=e.getClass("text","index");r.text=r.main.selectAll("."+bn.texts).selectAll("."+bn.text).data((function(t){return e.isRadarType(t)?t.values:i(t)})),r.text.exit().transition().duration(t).style("fill-opacity","0").remove(),r.text=r.text.enter().append("text").merge(e.$el.text).attr("class",a).attr("text-anchor",(function(t){return n.axis_rotated?t.value<0?"end":"start":"middle"})).style("fill",e.updateTextColor.bind(e)).style("fill-opacity","0").call((function(t){t.each((function(t,n,r){var i=e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value;i=e.dataLabelFormat(t.id)(i,t.id,n,r),Oa(i)?this.textContent=i:Va(mn(this),i)}))}))},updateTextColor:function(t){var e,n=this,r=n.config.data_labels_colors,i=n.isArcType(t)&&!n.isRadarType(t)?null:n.color(t);if(ka(r))e=r;else if(Xa(r)){e=r[(t.data||t).id]}else Ma(r)&&(e=r.bind(n.api)(i,t));return e||i},redrawText:function(t,e,n,r){var i=this,a=qa(),o=n?0:i.opacityForText.bind(i);return i.$el.text.each((function(n,s){var u=mn(this);(r&&u.attr("x")?u.transition(a):u).call((function(n){n.each((function(n){mn(this).style("fill",i.updateTextColor.bind(i)).style("fill-opacity",o);var r=t.bind(this)(n,s),a=e.bind(this)(n,s);this.childElementCount?this.setAttribute("transform","translate("+r+" "+a+")"):(this.setAttribute("x",r),this.setAttribute("y",a))}))}))})),!0},getTextRect:function(t,e){var n=this,r=t.node?t.node():t;/text/i.test(r.tagName)||(r=r.querySelector("text"));var i=r.textContent,a=So+"-"+i.replace(/\W/g,"_"),o=n.cache.get(a);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",mn(r).style("font")).classed(e,!0).text(i).call((function(t){o=Wa(t.node())})).remove(),n.cache.add(a,o)),o},generateXYForText:function(t,e){var n=this,r=Object.keys(t),i={},a=e?n.getXForText:n.getYForText;return n.hasType("radar")&&r.push("radar"),r.forEach((function(e){i[e]=n["generateGet"+Qa(e)+"Points"](t[e],!1)})),function(t,e){var r=(n.isAreaType(t)?"area":n.isBarType(t)&&"bar")||n.isRadarType(t)&&"radar"||"line";return a.call(n,i[r](t,e),t,this)}},getCenteredTextPos:function(t,e,n){var r=this.config,i=r.axis_rotated;if(r.data_labels.centered&&this.isBarType(t)){var a=Wa(n),o=t.value>=0;if(i){var s=(o?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+a.width/2;return o?-s-3:s+2}var u=(o?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+a.height/2;return o?u:-u-2}return 0},getTextPos:function(t,e){var n=this.config.data_labels_position;return(t in n?n[t]:n)[e]||0},getXForText:function(t,e,n){var r,i,a=this,o=a.config,s=a.state,u=o.axis_rotated;if(u?(i=a.isBarType(e)?4:6,r=t[2][1]+i*(e.value<0?-1:1)):r=a.hasType("bar")?(t[2][0]+t[0][0])/2:t[0][0],null===e.value)if(r>s.width){var c=Wa(n).width;r=s.width-c}else r<0&&(r=4);return u&&(r+=a.getCenteredTextPos(e,t,n)),r+a.getTextPos(e.id,"x")},getYForText:function(t,e,n){var r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=a.point_r,c=Wa(n),l=3;if(s)r=(t[0][0]+t[2][0]+.6*c.height)/2;else if(r=t[2][1],Oa(u)&&u>5&&(i.isLineType(e)||i.isScatterType(e))&&(l+=a.point_r/2.3),e.value<0||0===e.value&&!o.hasPositiveValue&&o.hasNegativeValue)r+=c.height+(i.isBarType(e)?-l:l);else{var f=2*-l;i.isBarType(e)?f=-l:i.isBubbleType(e)&&(f=l),r+=f}if(null===e.value&&!s){var h=c.height;r<h?r=h:r>o.height&&(r=o.height-4)}return s||(r+=i.getCenteredTextPos(e,t,n)),r+i.getTextPos(e.id,"y")},markOverlapped:function(t,e,n){var r=e.$el.arcs.selectAll(n),i=r.filter((function(e){return e.data.id!==t})),a=r.filter((function(e){return e.data.id===t})),o=eo(a.node()),s=function(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))};a.node()&&i.each((function(){var t=eo(this),e=mn(this),n=s(o.e,o.f)>s(t.e,t.f)?a:e,r=Math.ceil(Math.abs(o.e-t.e))<Math.ceil(n.node().getComputedTextLength()),i=Math.ceil(Math.abs(o.f-t.f))<parseInt(a.style("font-size"),10);e.classed(bn.TextOverlapping,r&&i)}))},undoMarkOverlapped:function(t,e){t.$el.arcs.selectAll(e).each((function(){nl([this,this.previousSibling]).classed(bn.TextOverlapping,!1)}))},meetsLabelThreshold:function(t,e){void 0===t&&(t=0);return t>=(this.config[e+"_label_threshold"]||0)}};function il(t,e){void 0===t&&(t="left");var n=Oa(e);return t.indexOf("center")>-1?n?e/2:"middle":t.indexOf("right")>-1?n?e:"end":n?0:"start"}var al={initTitle:function(){var t=this.config,e=this.$el;t.title_text&&(e.title=e.svg.append("g"),Va(e.title.append("text").style("text-anchor",il(t.title_position)).attr("class",bn.title),t.title_text,[.3,1.5]))},redrawTitle:function(){var t=this,e=t.config,n=t.state.current,r=t.$el.title;if(r){var i=t.yForTitle.call(t);/g/i.test(r.node().tagName)?r.attr("transform","translate("+il(e.title_position,n.width)+", "+i+")"):r.attr("x",t.xForTitle.call(t)).attr("y",i)}},xForTitle:function(){var t,e=this,n=e.config,r=e.state.current,i=n.title_position||"left",a=e.getTextRect(e.$el.title,bn.title).width;return/(right|center)/.test(i)?(t=r.width-a,i.indexOf("right")>=0?t=r.width-a-n.title_padding.right:i.indexOf("center")>=0&&(t=(r.width-a)/2)):t=n.title_padding.left||0,t},yForTitle:function(){var t=this;return(t.config.title_padding.top||0)+t.getTextRect(t.$el.title,bn.title).height},getTitlePadding:function(){return this.yForTitle()+(this.config.title_padding.bottom||0)}},ol={initTooltip:function(){var t=this,e=t.config,n=t.$el;n.tooltip=mn(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.style("position","relative").append("div").attr("class",bn.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip:function(){var t=this,e=t.config,n=t.$el,r=t.state,i=r.hasAxis,a=r.hasRadar;if(e.tooltip_init_show){var o=!(i&&a);if(t.axis&&t.axis.isTimeSeries()&&ka(e.tooltip_init_x)){var s,u,c=t.data.targets[0];for(e.tooltip_init_x=lo.call(t,e.tooltip_init_x),s=0;(u=c.values[s])&&u.x-e.tooltip_init_x!=0;s++);e.tooltip_init_x=s}var l=t.data.targets.map((function(n){var r=o?0:e.tooltip_init_x;return t.addName(n.values[r])}));o&&(l=[l[e.tooltip_init_x]]),n.tooltip.html(t.getTooltipHTML(l,t.axis&&t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType(null,["radar"])),t.color)),e.tooltip_contents.bindto||n.tooltip.style("top",e.tooltip_init_position.top).style("left",e.tooltip_init_position.left).style("display","block")}},getTooltipHTML:function(){var t=this,e=t.api,n=t.config;return Ma(n.tooltip_contents)?n.tooltip_contents.bind(e).apply(void 0,arguments):t.getTooltipContent.apply(t,arguments)},getTooltipContent:function(t,e,n,r){var i=this,a=i.api,o=i.config,s=i.state,u=["title","name","value"].map((function(t){var e=o["tooltip_format_"+t];return Ma(e)?e.bind(a):e})),c=u[0],l=u[1],f=u[2];c=c||e,l=l||function(t){return t},f=f||(i.isStackNormalized()?function(t,e){return(100*e).toFixed(2)+"%"}:n);var h=o.tooltip_order,d=function(t){return i.axis&&i.isBubbleZType(t)?i.getBubbleZData(t.value,"z"):i.getBaseValue(t)},g=i.levelColor?function(t){return i.levelColor(t.value)}:function(t){return r(t)},p=o.tooltip_contents,v=p.template,y=i.mapToTargetIds();if(null===h&&o.data_groups.length){var x=i.orderTargets(i.data.targets).map((function(t){return t.id})).reverse();t.sort((function(t,e){var n=t?t.value:null,r=e?e.value:null;return n>0&&r>0&&(n=t.id?x.indexOf(t.id):null,r=e.id?x.indexOf(e.id):null),n-r}))}else/^(asc|desc)$/.test(h)?t.sort((function(t,e){var n=t?d(t):null,r=e?d(e):null;return"asc"===h?n-r:r-n})):Ma(h)&&t.sort(h.bind(a));var _,m,b,w,T,A=i.getTooltipContentTemplate(v),S=t.length,E=function(){if(!(m=t[T])||!d(m)&&0!==d(m))return"continue";if(Ra(_)){var e=(s.hasAxis||s.hasRadar)&&Ya(c?c(m.x):m.x);_=co(A[0],{CLASS_TOOLTIP:bn.tooltip,TITLE:Ea(e)?v?e:'<tr><th colspan="2">'+e+"</th></tr>":""})}if(!m.ratio&&i.$el.arcs&&(m.ratio=i.getRatio("arc",i.$el.arcs.select("path."+bn.arc+"-"+m.id).data()[0])),b=[m.ratio,m.id,m.index,t],w=Ya(f.apply(void 0,[d(m)].concat(b))),i.isAreaRangeType(m)){var n=["high","low"].map((function(t){return Ya(f.apply(void 0,[i.getAreaRangeData(m,t)].concat(b)))})),r=n[0],a=n[1];w="<b>Mid:</b> "+w+" <b>High:</b> "+r+" <b>Low:</b> "+a}if(void 0!==w){if(null===m.name)return"continue";var o=Ya(l.apply(void 0,[m.name].concat(b))),u=g(m),h={CLASS_TOOLTIP_NAME:bn.tooltipName+i.getTargetSelectorSuffix(m.id),COLOR:v||!i.patterns?u:'<svg><rect style="fill:'+u+'" width="10" height="10"></rect></svg>',NAME:o,VALUE:w};if(v&&Xa(p.text)){var x=y.indexOf(m.id);Object.keys(p.text).forEach((function(t){h[t]=p.text[t][x]}))}_+=co(A[1],h)}};for(T=0;T<S;T++)E();return _+"</table>"},getTooltipContentTemplate:function(t){return(t||'<table class="{=CLASS_TOOLTIP}"><tbody>\n\t\t\t\t{=TITLE}\n\t\t\t\t{{<tr class="{=CLASS_TOOLTIP_NAME}">\n\t\t\t\t\t<td class="name">'+(this.patterns?"{=COLOR}":'<span style="background-color:{=COLOR}"></span>')+'{=NAME}</td>\n\t\t\t\t\t<td class="value">{=VALUE}</td>\n\t\t\t\t</tr>}}\n\t\t\t</tbody></table>').replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},tooltipPosition:function(t,e,n,r){var i=this,a=i.config,o=i.scale,s=i.state,u=s.width,c=s.height,l=s.current,f=s.isLegendRight,h=s.inputType,d=i.hasType("gauge")&&!a.gauge_fullCircle,g=i.getSvgLeft(!0),p=zr(r),v=p[0],y=p[1],x=g+l.width-i.getCurrentPaddingRight(),_=i.getCurrentPaddingLeft(!0);if(i.hasArcType()){"touch"===h||i.hasType("radar")||(y+=d?c:c/2,v+=(u-(f?i.getLegendWidth():0))/2)}else{var m=o.x(t[0].x);a.axis_rotated?(y=m+20,v+=g+100,x-=g):(y-=5,v=g+_+20+(i.zoomScale?v:m))}v+e+15>x&&(v-=e+_),y+n>l.height&&(y-=d?3*n:n+30);var b={top:y,left:v};return Object.keys(b).forEach((function(t){b[t]<0&&(b[t]=0)})),b},showTooltip:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.tooltip,o=r.tooltip_contents.bindto,s=n.hasArcType(null,["radar"]),u=t.filter((function(t){return t&&Ea(n.getBaseValue(t))}));if(a&&0!==u.length&&r.tooltip_show){var c=a.datum(),l=c||{},f=l.width,h=void 0===f?0:f,d=l.height,g=void 0===d?0:d,p=JSON.stringify(t);if(!c||c.current!==p){var v=t.concat().sort()[0].index;Ua(r.tooltip_onshow,n.api,t),a.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getYFormat(s),n.color)).style("display",null).style("visibility",null).datum(c={index:v,current:p,width:h=a.property("offsetWidth"),height:g=a.property("offsetHeight")}),Ua(r.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,v)}if(!o){var y=(r.tooltip_position||n.tooltipPosition).call(this,u,h,g,e);["top","left"].forEach((function(t){var e=y[t];a.style(t,e+"px"),"left"!==t||c.xPosInPercent||(c.xPosInPercent=e/i.current.width*100)}))}}},bindTooltipResizePos:function(){var t=this,e=t.resizeFunction,n=t.state,r=t.$el.tooltip;e.add((function(){if("block"===r.style("display")){var t=n.current,e=r.datum(),i=e.width,a=e.xPosInPercent,o=t.width/100*a,s=t.width-(o+i);s<0&&(o+=s),r.style("left",o+"px")}}))},hideTooltip:function(t){var e=this,n=e.api,r=e.config,i=e.$el.tooltip;if(i&&"none"!==i.style("display")&&(!r.tooltip_doNotHide||t)){var a=JSON.parse(i.datum().current);Ua(r.tooltip_onhide,n,a),i.style("display","none").style("visibility","hidden").datum(null),Ua(r.tooltip_onhidden,n,a)}},_handleLinkedCharts:function(t,e){var n=this,r=n.charts,i=n.config;if(sn&&sn.isTrusted&&i.tooltip_linked&&r.length>1){var a=i.tooltip_linked_name;r.filter((function(t){return t!==n.api})).forEach((function(n){var r=n.internal,i=r.config,o=r.$el,s=i.tooltip_linked,u=i.tooltip_linked_name,c=Ta.body.contains(o.chart.node());if(s&&a===u&&c){var l=o.tooltip.data()[0],f=e!==(l&&l.index);try{n.tooltip[t&&f?"show":"hide"]({index:e})}catch(t){}}}))}}},sl={getTranslate:function(t,e){void 0===e&&(e=0);var n,r,i=this,a=i.config,o=i.state,s=a.axis_rotated,u=0;if(e&&/^(x|y2?)$/.test(t)&&(u=i.getAxisSize(t)*e),"main"===t)n=Da(o.margin.left),r=Da(o.margin.top);else if("context"===t)n=Da(o.margin2.left),r=Da(o.margin2.top);else if("legend"===t)n=o.margin3.left,r=o.margin3.top;else if("x"===t)n=s?-u:0,r=s?0:o.height+u;else if("y"===t)n=s?0:-u,r=s?o.height+u:0;else if("y2"===t)n=s?0:o.width+u,r=s?1-u:0;else if("subX"===t)n=0,r=s?0:o.height2;else if("arc"===t)n=o.arcWidth/2,r=o.arcHeight/2;else if("radar"===t){var c=i.getRadarSize()[0];n=o.width/2-c,r=Da(o.margin.top)}return"translate("+n+", "+r+")"},transformMain:function(t,e){var n,r,i,a=this,o=a.$el.main;e&&e.axisX?n=e.axisX:(n=o.select("."+bn.axisX),t&&(n=n.transition())),e&&e.axisY?r=e.axisY:(r=o.select("."+bn.axisY),t&&(r=r.transition())),e&&e.axisY2?i=e.axisY2:(i=o.select("."+bn.axisY2),t&&(i=i.transition())),(t?o.transition():o).attr("transform",a.getTranslate("main")),n.attr("transform",a.getTranslate("x")),r.attr("transform",a.getTranslate("y")),i.attr("transform",a.getTranslate("y2")),o.select("."+bn.chartArcs).attr("transform",a.getTranslate("arc"))},transformAll:function(t,e){var n=this,r=n.config,i=n.state.hasAxis,a=n.$el;n.transformMain(t,e),i&&r.subchart_show&&n.transformContext(t,e),a.legend&&n.transformLegend(t)}},ul={setTargetType:function(t,e){var n=this,r=n.config,i=n.state.withoutFadeIn;n.mapToTargetIds(t).forEach((function(t){i[t]=e===r.data_types[t],r.data_types[t]=e})),t||(r.data_type=e)},updateTypesElements:function(){var t=this,e=t.state.current;Object.keys($u).forEach((function(n){var r=$u[n],i=t.hasType(r,null,!0),a=e.types.indexOf(r);-1===a&&i?e.types.push(r):a>-1&&!i&&e.types.splice(a,1)})),t.setChartElements()},hasType:function(t,e,n){void 0===n&&(n=!1);var r=this,i=r.config,a=r.state.current,o=i.data_types,s=e||r.data.targets,u=!1;return!n&&a.types.length&&a.types.indexOf(t)>-1?u=!0:s&&s.length?s.forEach((function(e){var n=o[e.id];n!==t&&(n||"line"!==t)||(u=!0)})):Object.keys(o).length?Object.keys(o).forEach((function(e){o[e]===t&&(u=!0)})):u=i.data_type===t,u},hasTypeOf:function(t,e,n){var r=this;return void 0===n&&(n=[]),!Yu[t].filter((function(t){return-1===n.indexOf(t)})).every((function(t){return!r.hasType(t,e)}))},isTypeOf:function(t,e){var n=ka(t)?t:t.id,r=this.config.data_types[n]||this.config.data_type;return Ba(e)?e.indexOf(r)>=0:r===e},hasPointType:function(){var t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType:function(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge:function(){return this.hasType("gauge")&&"multi"===this.config.gauge_type},isLineType:function(t){var e=ka(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,Yu.Line)},isStepType:function(t){return this.isTypeOf(t,Yu.Step)},isSplineType:function(t){return this.isTypeOf(t,Yu.Spline)},isAreaType:function(t){return this.isTypeOf(t,Yu.Area)},isAreaRangeType:function(t){return this.isTypeOf(t,Yu.AreaRange)},isBarType:function(t){return this.isTypeOf(t,"bar")},isBubbleType:function(t){return this.isTypeOf(t,"bubble")},isScatterType:function(t){return this.isTypeOf(t,"scatter")},isPieType:function(t){return this.isTypeOf(t,"pie")},isGaugeType:function(t){return this.isTypeOf(t,"gauge")},isDonutType:function(t){return this.isTypeOf(t,"donut")},isRadarType:function(t){return this.isTypeOf(t,"radar")},isArcType:function(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isRadarType(t)},isCirclePoint:function(t){var e=this.config,n=e.point_pattern;return!(!t||"circle"!==t.tagName)||"circle"===e.point_type&&(!n||Ba(n)&&0===n.length)},lineData:function(t){return this.isLineType(t)?[t]:[]},arcData:function(t){return this.isArcType(t.data)?[t]:[]},barData:function(t){return this.isBarType(t)?t.values:[]},labelishData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isRadarType(t)?t.values:[]},barLineBubbleData:function(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType:function(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}},cl=function(){function t(t){this.api=void 0,this.config=void 0,this.cache=void 0,this.$el=void 0,this.state=void 0,this.charts=void 0,this.data={xs:{},targets:[]},this.axis=void 0,this.scale={x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null},this.org={xScale:null,xDomain:null},this.color=void 0,this.patterns=void 0,this.levelColor=void 0,this.point=void 0,this.brush=void 0,this.format={extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null};var e=this;e.api=t,e.config=new po,e.cache=new Eo;var n=new Tn;e.$el=n.getStore("element"),e.state=n.getStore("state")}var e=t.prototype;return e.beforeInit=function(){var t=this;t.callPluginHook("$beforeInit"),Ua(t.config.onbeforeinit,t.api)},e.afterInit=function(){var t=this;t.callPluginHook("$afterInit"),Ua(t.config.onafterinit,t.api)},e.init=function(){var t=this,e=t.config,n=t.state,r=t.$el;n.hasAxis=!t.hasArcType(),n.hasRadar=!n.hasAxis&&t.hasType("radar"),t.initParams();var i={element:e.bindto,classname:"bb"};Xa(e.bindto)&&(i.element=e.bindto.element||"#chart",i.classname=e.bindto.classname||i.classname),r.chart=Ma(i.element.node)?e.bindto.element:mn(i.element||[]),r.chart.empty()&&(r.chart=mn(Ta.body.appendChild(Ta.createElement("div")))),r.chart.html("").classed(i.classname,!0),t.initToRender()},e.initToRender=function(t){var e=this,n=e.config,r=e.state,i=e.$el.chart,a=function(){return"none"===i.style("display")||"hidden"===i.style("visibility")},o=n.render.lazy||a(),s=wa.MutationObserver;if(o&&s&&!1!==n.render.observe&&!t&&new s((function(t,n){a()||(n.disconnect(),!r.rendered&&e.initToRender(!0))})).observe(i.node(),{attributes:!0,attributeFilter:["class","style"]}),!o||t){var u=e.convertData(n,e.initWithData);u&&e.initWithData(u),e.afterInit()}},e.initParams=function(){var t=this,e=t,n=e.config,r=e.format,i=e.state,a=n.axis_rotated;if(i.datetimeId="bb-"+ +new Date,t.color=t.generateColor(),t.levelColor=t.generateLevelColor(),t.hasPointType()&&(t.point=t.generatePoint()),i.hasAxis){t.initClip(),r.extraLineClasses=t.generateExtraLineClass(),r.dataTime=n.data_xLocaltime?U:Y,r.axisTime=n.axis_x_localtime?j:$;var o=t.config.zoom_enabled&&"drag"===t.config.zoom_type;r.defaultAxisTime=function(e){var n=t.scale,i=n.x,a=n.zoom,s=o?a:a&&i.orgDomain().toString()!==a.domain().toString(),u=(e.getMilliseconds()?".%L":e.getSeconds()&&".:%S")||e.getMinutes()&&"%I:%M"||e.getHours()&&"%I %p"||1!==e.getDate()&&"%b %d"||s&&1===e.getDate()&&"%b'%y"||e.getMonth()&&"%-m/%-d"||"%Y";return r.axisTime(u)(e)}}i.isLegendRight="right"===n.legend_position,i.isLegendInset="inset"===n.legend_position,i.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,i.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,i.rotatedPaddingRight=a&&!n.axis_x_show?0:30,i.inputType=function(t,e){var n=!1;if(/Mobi/.test(wa.navigator.userAgent)&&e){var r=wa.navigator&&"maxTouchPoints"in wa.navigator&&wa.navigator.maxTouchPoints>0,i="ontouchmove"in wa||wa.DocumentTouch&&Ta instanceof wa.DocumentTouch;n=r||i}return(t&&!n&&"onmouseover"in wa?"mouse":n&&"touch")||null}(n.interaction_inputType_mouse,n.interaction_inputType_touch)},e.initWithData=function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=e.org,s=i.hasAxis,u=n.interaction_enabled;s&&(e.axis=e.getAxisInstance(),n.zoom_enabled&&e.initZoom()),e.data.xs={},e.data.targets=e.convertDataToTargets(t),n.data_filter&&(e.data.targets=e.data.targets.filter(n.data_filter.bind(e.api))),n.data_hide&&e.addHiddenTargetIds(!0===n.data_hide?e.mapToIds(e.data.targets):n.data_hide),n.legend_hide&&e.addHiddenLegendIds(!0===n.legend_hide?e.mapToIds(e.data.targets):n.legend_hide),e.updateSizes(),e.updateScales(!0);var c=r.x,l=r.y,f=r.y2,h=r.subX,d=r.subY,g=r.subY2;if(c&&(c.domain(ao(e.getXDomain(e.data.targets))),h.domain(c.domain()),o.xDomain=c.domain()),l&&(l.domain(e.getYDomain(e.data.targets,"y")),d.domain(l.domain())),f&&(f.domain(e.getYDomain(e.data.targets,"y2")),g&&g.domain(f.domain())),a.svg=a.chart.append("svg").style("overflow","hidden").style("display","block"),u&&i.inputType){var p="touch"===i.inputType;a.svg.on(p?"touchstart":"mouseenter",(function(){return Ua(n.onover,e.api)})).on(p?"touchend":"mouseleave",(function(){return Ua(n.onout,e.api)}))}n.svg_classname&&a.svg.attr("class",n.svg_classname);var v=Ma(n.color_tiles)&&e.patterns;(s||v)&&(a.defs=a.svg.append("defs"),s&&["id","idXAxis","idYAxis","idGrid"].forEach((function(t){e.appendClip(a.defs,i.clip[t])})),v&&e.patterns.forEach((function(t){return a.defs.append((function(){return t.node}))}))),e.updateSvgSize(),e.bindResize();var y=a.svg.append("g").classed(bn.main,!0).attr("transform",e.getTranslate("main"));if(a.main=y,n.subchart_show&&e.initSubchart(),n.tooltip_show&&e.initTooltip(),n.title_text&&e.initTitle(),n.legend_show&&e.initLegend(),n.data_empty_label_text&&y.append("text").attr("class",bn.text+" "+bn.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),s&&(n.regions.length&&e.initRegion(),!n.clipPath&&e.axis.init()),y.append("g").attr("class",bn.chart).attr("clip-path",i.clip.path),e.callPluginHook("$init"),s&&(u&&e.initEventRect&&e.initEventRect(),e.initGrid(),n.clipPath&&e.axis&&e.axis.init()),e.initChartElements(),e.updateTargets(e.data.targets),e.updateDimension(),Ua(n.oninit,e.api),e.setBackground(),e.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),n.data_onmin||n.data_onmax){var x=e.getMinMaxData();Ua(n.data_onmin,e.api,x.min),Ua(n.data_onmax,e.api,x.max)}n.tooltip_show&&e.initShowTooltip(),i.rendered=!0},e.initChartElements=function(){var t=this,e=t.state,n=e.hasAxis,r=e.hasRadar,i=[];n?(t.hasType("bar")&&i.push("Bar"),t.hasType("bubble")&&i.push("Bubble"),t.hasTypeOf("Line")&&i.push("Line")):(!r&&i.push("Arc","Pie"),t.hasType("gauge")?i.push("Gauge"):r&&i.push("Radar")),i.forEach((function(e){t["init"+e]()})),Na(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()},e.setChartElements=function(){var t=this.$el,e=t.chart,n=t.svg,r=t.defs,i=t.main,a=t.tooltip,o=t.legend,s=t.title,u=t.grid,c=t.arcs,l=t.circle,f=t.bar,h=t.line,d=t.area,g=t.text;this.api.$={chart:e,svg:n,defs:r,main:i,tooltip:a,legend:o,title:s,grid:u,arc:c,circles:l,bar:{bars:f},line:{lines:h,areas:d},text:{texts:g}}},e.setBackground=function(){var t=this,e=t.config.background,n=t.state,r=t.$el.svg;if(Na(e)){var i=r.select("g").insert(e.imgUrl?"image":"rect",":first-child");e.imgUrl?i.attr("href",e.imgUrl):e.color&&i.style("fill",e.color).attr("clip-path",n.clip.path),i.attr("class",e.class||null).attr("width","100%").attr("height","100%")}},e.updateTargets=function(t){var e=this,n=e.state,r=n.hasAxis,i=n.hasRadar;e.updateTargetsForText(t),r?(e.hasType("bar")&&e.updateTargetsForBar(t),e.hasTypeOf("Line")&&e.updateTargetsForLine(t),e.updateTargetsForSubchart&&e.updateTargetsForSubchart(t)):e.hasArcType(t)&&(i?e.updateTargetsForRadar(t):e.updateTargetsForArc(t)),(e.hasType("bubble")||e.hasType("scatter"))&&e.updateTargetForCircle&&e.updateTargetForCircle(),e.showTargets()},e.showTargets=function(){var t=this,e=t.config;t.$el.svg.selectAll("."+bn.target).filter((function(e){return t.isTargetToShow(e.id)})).transition().duration(e.transition_duration).style("opacity","1")},e.getWithOption=function(t){var e={Y:!0,Subchart:!0,Transition:!0,EventRect:!0,Dimension:!0,TrimXDomain:!0,Transform:!1,UpdateXDomain:!1,UpdateOrgXDomain:!1,Legend:!1,UpdateXAxis:"UpdateXDomain",TransitionForExit:"Transition",TransitionForAxis:"Transition"};return Object.keys(e).forEach((function(n){var r=e[n];ka(r)&&(r=e[r]),e[n]=ja(t,"with"+n,r)})),e},e.initialOpacity=function(t){var e=this.state.withoutFadeIn;return null!==this.getBaseValue(t)&&e[t.id]?"1":"0"},e.bindResize=function(){var t=this,e=t.config,n=t.state,r=function(){var t,e=[],n=function(){n.clear(),t=Mo((function(){e.forEach((function(t){return t()}))}),200)};return n.clear=function(){t&&(ko(t),t=null)},n.add=function(t){return e.push(t)},n.remove=function(t){return e.splice(e.indexOf(t),1)},n}(),i=[];i.push((function(){return Ua(e.onresize,t,t.api)})),e.resize_auto&&i.push((function(){n.resizing=!0,t.api.flush(!1)})),i.push((function(){Ua(e.onresized,t,t.api),n.resizing=!1})),i.forEach((function(t){return r.add(t)})),t.resizeFunction=r,wa.addEventListener("resize",t.resizeFunction=r)},e.callPluginHook=function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.config.plugins.forEach((function(n){"$beforeInit"===t&&(n.$$=e,e.api.plugins.push(n)),n[t].apply(n,r)}))},t}();function ll(t){var e,n,r,i=this.config,a=function(){var t=n.shift();return t&&e&&Fa(e)&&t in e?(e=e[t],a()):t?void 0:e};Object.keys(i).forEach((function(o){e=t,n=o.split("_"),r=a(),Ca(r)&&(i[o]=r)}))}Ja(cl.prototype,[Go,Ho,Wo,{categoryName:function(t){var e=this.config.axis_x_categories;return e&&t<e.length?e[t]:t}},rs,Uu,Vu,ns,Hu,Wu,qu,Ku,tl,el,rl,al,ol,sl,ul]);var fl={resize:function(t){var e=this.internal,n=e.config,r=e.state;r.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,r.resizing=!0,this.flush(!1,!0),e.resizeFunction())},flush:function(t){var e=this.internal,n=e.state;n.rendered?(n.resizing?e.brush&&e.brush.updateResize():e.axis&&e.axis.setOrient(),e.scale.zoom=null,t?e.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&e.brush&&(e.brush.getSelection().call(e.brush.move),e.unselectRect())):e.initToRender(!0)},destroy:function(){var t=this,e=this.internal,n=e.$el,r=n.chart,i=n.svg;if(Na(e))for(var a in e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),i.select("*").interrupt(),e.resizeFunction.clear(),wa.removeEventListener("resize",e.resizeFunction),r.classed("bb",!1).html(""),Object.keys(this).forEach((function(n){"internal"===n&&Object.keys(e).forEach((function(t){e[t]=null})),t[n]=null,delete t[n]})),this)this[a]=function(){};return null},config:function(t,e,n){var r,i=this.internal.config,a=t&&t.replace(/\./g,"_");return a in i&&(Ca(e)?(i[a]=e,r=e,n&&this.flush()):r=i[a]),r}};function hl(t){var e=this.internal.data.targets;if(!Ra(t)){var n=Ba(t)?t:[t];return e.filter((function(t){return n.some((function(e){return e===t.id}))}))}return e}Ja(hl,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e){void 0===e&&(e=!0);var n=null;if(t){var r=this.data(t);r&&Ba(r)&&(n=[],r.forEach((function(t){var r=t.values.map((function(t){return t.value}));e?n=n.concat(r):n.push(r)})))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var dl={data:hl},gl=function(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(+("0x"+e))})))};function pl(t,e){var n,r,i=new XMLSerializer,a=t.cloneNode(!0),o=(n=to(Ta.styleSheets),r=[],n.forEach((function(t){try{t.cssRules&&t.cssRules.length&&(r=r.concat(to(t.cssRules)))}catch(e){console.error("Error while reading rules from "+t.href+": "+e.toString())}})),r).filter((function(t){return t.cssText})).map((function(t){return t.cssText}));a.setAttribute("xmlns",me.xhtml);var s=i.serializeToString(a),u=Ta.createElement("style");u.appendChild(Ta.createTextNode(o.join("\n")));var c=i.serializeToString(u),l=('<svg xmlns="'+me.svg+'" width="'+e.width+'" height="'+e.height+'">\n\t\t\t<foreignObject width="100%" height="100%">\n\t\t\t\t'+c+"\n\t\t\t\t"+s.replace(/(url\()[^#]+/g,"$1")+"\n\t\t\t</foreignObject></svg>").replace("/\n/g","%0A");return"data:image/svg+xml;base64,"+gl(l)}var vl={export:function(t,e){var n=this,r=this.internal,i=r.state,a=r.$el.chart,o=i.current,s=o.width,u=o.height,c=pl(a.node(),{width:s,height:u});if(e&&Ma(e)){var l=new Image;l.crossOrigin="Anonymous",l.onload=function(){var r=Ta.createElement("canvas"),i=r.getContext("2d");r.width=s,r.height=u,i.drawImage(l,0,0),e.bind(n)(r.toDataURL(t))},l.src=c}return c}},yl={focus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(bn.focused,!0).classed(bn.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(r),e.hasType("gauge")&&e.markOverlapped(t,e,"."+bn.gaugeValue)),e.toggleFocusLegend(r,!0),n.focusedTargetIds=r,n.defocusedTargetIds=n.defocusedTargetIds.filter((function(t){return r.indexOf(t)<0}))},defocus:function(t){var e=this.internal,n=e.state,r=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(r.filter(e.isTargetToShow,e))).classed(bn.focused,!1).classed(bn.defocused,!0),e.hasArcType()&&(e.unexpandArc(r),e.hasType("gauge")&&e.undoMarkOverlapped(e,"."+bn.gaugeValue)),e.toggleFocusLegend(r,!1),n.focusedTargetIds=n.focusedTargetIds.filter((function(t){return r.indexOf(t)<0})),n.defocusedTargetIds=r},revert:function(t){var e=this.internal,n=e.config,r=e.state,i=e.$el,a=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(a)).classed(bn.focused,!1).classed(bn.defocused,!1),e.hasArcType()&&e.unexpandArc(a),n.legend_show&&(e.showLegend(a.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(a)).filter((function(){return mn(this).classed(bn.legendItemFocused)})).classed(bn.legendItemFocused,!1)),r.focusedTargetIds=[],r.defocusedTargetIds=[]}},xl={legend:{show:function(t){var e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){var e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},_l={load:function(t){var e=this.internal,n=e.config;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach((function(e){n.data_classes[e]=t.classes[e]})),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach((function(e){n.data_axes[e]=t.axes[e]})),"colors"in t&&Object.keys(t.colors).forEach((function(e){n.data_colors[e]=t.colors[e]})),"unload"in t&&!1!==t.unload?e.unload(e.mapToTargetIds(!0===t.unload?null:t.unload),(function(){return e.loadFromArgs(t)})):e.loadFromArgs(t)},unload:function(t){var e=this,n=this.internal,r=t||{};Ba(r)?r={ids:r}:ka(r)&&(r={ids:[r]});var i=n.mapToTargetIds(r.ids);n.unload(i,(function(){n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),n.cache.remove(i),r.done&&r.done.call(e)}))}};function ml(t,e,n){var r=this.internal,i=r.mapToTargetIds(e);r.state.toggling=!0,r[(t?"remove":"add")+"HiddenTargetIds"](i);var a=r.$el.svg.selectAll(r.selectorTargets(i)),o=t?"1":"0";t&&a.style("display",null),a.transition().style("opacity",o,"important").call($a,(function(){t||a.style("display","none"),a.style("opacity",o)})),n.withLegend&&r[(t?"show":"hide")+"Legend"](i),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),r.state.toggling=!1}var bl={show:function(t,e){void 0===e&&(e={}),ml.call(this,!0,t,e)},hide:function(t,e){void 0===e&&(e={}),ml.call(this,!1,t,e)},toggle:function(t,e){var n=this;void 0===e&&(e={});var r=this.internal,i={show:[],hide:[]};r.mapToTargetIds(t).forEach((function(t){return i[r.isTargetToShow(t)?"hide":"show"].push(t)})),i.show.length&&this.show(i.show,e),i.hide.length&&setTimeout((function(){return n.hide(i.hide,e)}),0)}},wl={show:function(t){var e,n,r=this.internal,i=r.config,a=r.state.inputType;if(t.mouse&&(n=t.mouse),t.data){var o=t.data,s=r.getYScaleById(o.id)(o.value);r.isMultipleX()?n=[r.scale.x(o.x),s]:(!i.tooltip_grouped&&(n=[0,s]),e=Ea(o.index)?o.index:r.getIndexByX(o.x))}else Ca(t.x)?e=r.getIndexByX(t.x):Ca(t.index)&&(e=t.index);("mouse"===a?["mouseover","mousemove"]:["touchstart"]).forEach((function(t){r.dispatchEvent(t,e,n)}))},hide:function(){var t=this.internal,e=t.state.inputType,n=t.$el.tooltip,r=n&&n.datum();if(r){var i=JSON.parse(r.current)[0].index;("mouse"===e?["mouseout"]:["touchend"]).forEach((function(e){t.dispatchEvent(e,i)}))}"touch"===e&&t.callOverOutForTouch(),t.hideTooltip(!0),t.hideGridFocus(),t.unexpandCircles&&t.unexpandCircles(),t.unexpandBars&&t.unexpandBars()}},Tl={tooltip:wl},Al=function t(e){this.plugins=[],this.internal=void 0;var n=new cl(this);this.internal=n,function t(e,n,r){Object.keys(e).forEach((function(i){var a=Ma(e[i]),o=n!==r,s=Object.keys(e[i]).length>0;a&&(!o&&s||o)?n[i]=e[i].bind(r):!a&&(n[i]={}),s&&t(e[i],n[i],r)}))}(t.prototype,this,this),ll.call(n,e),n.beforeInit(),n.init()};function Sl(t,e,n){var r=t.config,i="axis_y_"+e,a="axis_y2_"+e;Ca(n)&&(Fa(n)?(Ea(n.x)&&(r["axis_x_"+e]=n.x),Ea(n.y)&&(r[i]=n.y),Ea(n.y2)&&(r[a]=n.y2)):(r[i]=n,r[a]=n),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function El(t,e){var n=t.config;return{x:n["axis_x_"+e],y:n["axis_y_"+e],y2:n["axis_y2_"+e]}}Ja(Al.prototype,[fl,{color:function(t){return this.internal.color(t)}},dl,vl,yl,xl,_l,bl,Tl]);var Ml={labels:function(t){var e,n=this.internal;return t&&(Object.keys(t).forEach((function(e){n.axis.setLabelText(e,t[e])})),n.axis.updateLabels()),["x","y","y2"].forEach((function(t){var r=n.axis.getLabelText(t);r&&(!e&&(e={}),e[t]=r)})),e},min:function(t){var e=this.internal;return Ea(t)?Sl(e,"min",t):El(e,"min")},max:function(t){var e=this.internal;return arguments.length?Sl(e,"max",t):El(e,"max")},range:function(t){var e=this.axis;if(!arguments.length)return{max:e.max(),min:e.min()};Ca(t.max)&&e.max(t.max),Ca(t.min)&&e.min(t.min)}},kl={axis:Ml};function Ol(t){var e=this.internal,n=e.config;return t?(n.grid_x_lines=t,e.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines}Ja(Ol,{add:function(t){return this.xgrids(this.internal.config.grid_x_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!0)}});var Rl={xgrids:Ol};function Cl(t){var e=this.internal,n=e.config;return t?(n.grid_y_lines=t,e.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines}Ja(Cl,{add:function(t){return this.ygrids(this.internal.config.grid_y_lines.concat(t||[]))},remove:function(t){this.internal.removeGridLines(t,!1)}});var Il={ygrids:Cl},Ll={groups:function(t){var e=this.internal,n=e.config;return Ra(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function Dl(t){var e=this.internal,n=e.config;return t?(n.regions=t,e.redrawWithoutRescale(),t):n.regions}Ja(Dl,{add:function(t){var e=this.internal,n=e.config;return t?(n.regions=n.regions.concat(t),e.redrawWithoutRescale(),n.regions):n.regions},remove:function(t){var e=this.internal,n=e.config,r=t||{},i=ja(r,"duration",n.transition_duration),a=ja(r,"classes",[bn.region]),o=e.$el.main.select("."+bn.regions).selectAll(a.map((function(t){return"."+t})));return(i?o.transition().duration(i):o).style("opacity","0").remove(),o=n.regions,Object.keys(r).length?(o=o.filter((function(t){var e=!1;return!t.class||(t.class.split(" ").forEach((function(t){a.indexOf(t)>=0&&(e=!0)})),!e)})),n.regions=o):n.regions=[],o}});var Pl={regions:Dl},Fl={x:function(t){var e=this.internal,n=e.axis,r=e.data,i=n.isCustomX()&&n.isCategorized();return Ba(t)&&(i?this.categories(t):(e.updateTargetX(r.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():r.xs},xs:function(t){var e=this.internal;return Xa(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}},zl={flow:function(t){var e,n,r,i,a=this.internal,o=0,s=0;if((t.json||t.rows||t.columns)&&(e=a.convertData(t)),e&&fo()){var u=[],c=a.getMaxDataCount(),l=a.convertDataToTargets(e,!0),f=a.axis.isTimeSeries();a.data.targets.forEach((function(t){for(var e=!1,n=0;n<l.length;n++)if(t.id===l[n].id){e=!0,t.values[t.values.length-1]&&(s=t.values[t.values.length-1].index+1),o=l[n].values.length;for(var r=0;r<o;r++)l[n].values[r].index=s+r,f||(l[n].values[r].x=s+r);t.values=t.values.concat(l[n].values),l.splice(n,1);break}e||u.push(t.id)})),a.data.targets.forEach((function(t){for(var e=0;e<u.length;e++)if(t.id===u[e]){s=t.values[t.values.length-1].index+1;for(var n=0;n<o;n++)t.values.push({id:t.id,index:s+n,x:f?a.getOtherTargetX(s+n):s+n,value:null})}})),a.data.targets.length&&l.forEach((function(t){for(var e=[],n=a.data.targets[0].values[0].index;n<s;n++)e.push({id:t.id,index:n,x:f?a.getOtherTargetX(n):n,value:null});t.values.forEach((function(t){t.index+=s,f||(t.x+=s)})),t.values=e.concat(t.values)})),a.data.targets=a.data.targets.concat(l);var h=a.data.targets[0],d=h.values[0];Ca(t.to)?(o=0,i=f?lo.call(a,t.to):t.to,h.values.forEach((function(t){t.x<i&&o++}))):Ca(t.length)&&(o=t.length),c?1===c&&f&&(r=(h.values[h.values.length-1].x-d.x)/2,n=[new Date(+d.x-r),new Date(+d.x+r)]):(r=f?h.values.length>1?h.values[h.values.length-1].x-d.x:d.x-a.getXDomain(a.data.targets)[0]:1,n=[d.x-r,d.x]),n&&a.updateXDomain(null,!0,!0,!1,n),a.updateTargets(a.data.targets),a.redraw({flow:{index:d.index,length:o,duration:Ea(t.duration)?t.duration:a.config.transition_duration,done:t.done,orgDataCount:c},withLegend:!0,withTransition:c>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}},Nl=Array.prototype.slice;function Bl(t){return t}var Xl=1,jl=2,Ul=3,$l=4,Yl=1e-6;function Vl(t){return"translate("+(t+.5)+",0)"}function Gl(t){return"translate(0,"+(t+.5)+")"}function Hl(t){return function(e){return+t(e)}}function Wl(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function ql(){return!this.__axis}function Zl(t,e){function n(n){var h=null==i?e.ticks?e.ticks.apply(e,r):e.domain():i,d=null==a?e.tickFormat?e.tickFormat.apply(e,r):Bl:a,g=Math.max(o,0)+u,p=e.range(),v=+p[0]+.5,y=+p[p.length-1]+.5,x=(e.bandwidth?Wl:Hl)(e.copy()),_=n.selection?n.selection():n,m=_.selectAll(".domain").data([null]),b=_.selectAll(".tick").data(h,e).order(),w=b.exit(),T=b.enter().append("g").attr("class","tick"),A=b.select("line"),S=b.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),b=b.merge(T),A=A.merge(T.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),S=S.merge(T.append("text").attr("fill","currentColor").attr(l,c*g).attr("dy",t===Xl?"0em":t===Ul?"0.71em":"0.32em")),n!==_&&(m=m.transition(n),b=b.transition(n),A=A.transition(n),S=S.transition(n),w=w.transition(n).attr("opacity",Yl).attr("transform",(function(t){return isFinite(t=x(t))?f(t):this.getAttribute("transform")})),T.attr("opacity",Yl).attr("transform",(function(t){var e=this.parentNode.__axis;return f(e&&isFinite(e=e(t))?e:x(t))}))),w.remove(),m.attr("d",t===$l||t==jl?s?"M"+c*s+","+v+"H0.5V"+y+"H"+c*s:"M0.5,"+v+"V"+y:s?"M"+v+","+c*s+"V0.5H"+y+"V"+c*s:"M"+v+",0.5H"+y),b.attr("opacity",1).attr("transform",(function(t){return f(x(t))})),A.attr(l+"2",c*o),S.attr(l,c*g).text(d),_.filter(ql).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===jl?"start":t===$l?"end":"middle"),_.each((function(){this.__axis=x}))}var r=[],i=null,a=null,o=6,s=6,u=3,c=t===Xl||t===$l?-1:1,l=t===$l||t===jl?"x":"y",f=t===Xl||t===Ul?Vl:Gl;return n.scale=function(t){return arguments.length?(e=t,n):e},n.ticks=function(){return r=Nl.call(arguments),n},n.tickArguments=function(t){return arguments.length?(r=null==t?[]:Nl.call(t),n):r.slice()},n.tickValues=function(t){return arguments.length?(i=null==t?null:Nl.call(t),n):i&&i.slice()},n.tickFormat=function(t){return arguments.length?(a=t,n):a},n.tickSize=function(t){return arguments.length?(o=s=+t,n):o},n.tickSizeInner=function(t){return arguments.length?(o=+t,n):o},n.tickSizeOuter=function(t){return arguments.length?(s=+t,n):s},n.tickPadding=function(t){return arguments.length?(u=+t,n):u},n}function Kl(t){return Zl(Xl,t)}function Jl(t){return Zl(jl,t)}function Ql(t){return Zl(Ul,t)}function tf(t){return Zl($l,t)}var ef=function(){function t(t){this.owner=void 0,this.config=void 0,this.scale=void 0;var e=Zu(),n=t.config,r=t.params;this.owner=t,this.config=n,this.scale=e,(n.noTransition||!r.config.transition_duration)&&(n.withoutTransition=!0),n.range=this.scaleExtent((r.orgXScale||e).range())}t.getSizeFor1Char=function(t){var e={w:5.5,h:11.5};return t.empty()||t.select("text").text("0").call((function(t){try{var n=t.node().getBBox(),r=n.width,i=n.height;r&&i&&(e.w=r,e.h=i)}catch(t){}finally{t.text("")}})),this.getSizeFor1Char=function(){return e},e};var e=t.prototype;return e.getTickTransformSetter=function(t){var e=this.config,n="x"===t?function(t){return"translate("+(t+e.tickOffset)+",0)"}:function(t){return"translate(0,"+t+")"};return function(t,e){t.attr("transform",(function(t){return n(Math.ceil(e(t)))}))}},e.scaleExtent=function(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]},e.generateTicks=function(t,e){var n=this.owner.params.tickStepSize,r=t.domain(),i=r[0],a=r[1],o=[];if(e&&n)for(var s=i;s<=a;)o.push(s),s+=n;else if(t.ticks){var u=this.config.tickArguments;if("log"!==t.type||u)o=t.ticks.apply(t,this.config.tickArguments||[]);else{var c=Zu("_log").domain([i>0?i:1,a]).range(t.range());o=c.ticks();for(var l=a.toFixed().length;o.length>15;l--)o=c.ticks(l);o.splice(0,1,i),o.splice(o.length-1,1,a)}o=o.map((function(t){return ka(t)&&Oa(t)&&!isNaN(t)&&Math.round(10*t)/10||t}))}else{for(var f=Math.ceil(i);f<a;f++)o.push(f);o.length>0&&o[0]>0&&o.unshift(o[0]-(o[1]-o[0]))}return o},e.copyScale=function(){var t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t},e.textFormatted=function(t){var e=this.config.tickFormat,n=/\d+\.\d+0{5,}\d$/.test(t)?+(t+"").replace(/0+\d$/,""):t,r=e?e(n):n;return Ca(r)?r:""},e.transitionise=function(t){var e=this.config;return e.withoutTransition?t.interrupt():t.transition(e.transition)},t}(),nf=function(){function t(t){void 0===t&&(t={}),this.helper=void 0,this.config=void 0,this.params=void 0,this.g=void 0;var e={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding,this.config=e,this.params=t,this.helper=new ef(this)}var e=t.prototype;return e.create=function(t){var e=this,n=this.config,r=this.helper,i=this.params,a=r.scale,o=n.orient,s=this.splitTickText.bind(this),u=/^(left|right)$/.test(o),c=/^(top|bottom)$/.test(o),l=r.getTickTransformSetter(c?"x":"y"),f=l===r.axisX?"y":"x",h=/^(top|left)$/.test(o)?-1:1,d=i.tickTextRotate;this.config.range=a.rangeExtent?a.rangeExtent():r.scaleExtent((i.orgXScale||a).range());var g,p=n.innerTickSize,v=n.tickLength,y=n.range,x=i.id,_=x&&/^(x|y|y2)$/.test(x)?i.config["axis_"+x+"_tick_text_position"]:{x:0,y:0},m="subX"===x?"subchart_axis_x":"axis_"+x,b=i.config[m+"_show"],w=!!b&&i.config[m+"_tick_show"],T=!!b&&i.config[m+"_tick_text_show"];t.each((function(){var t=mn(this),x=this.__chart__||a,m=r.copyScale();g=t,this.__chart__=m,n.tickOffset=i.isCategory?Math.ceil((m(1)-m(0))/2):0;var b=t.selectAll(".domain").data([0]);if(b.enter().append("path").attr("class","domain").merge(r.transitionise(b)).attr("d",(function(){var t=n.outerTickSize*h;return c?"M"+y[0]+","+t+"V0H"+y[1]+"V"+t:"M"+t+","+y[0]+"H0V"+y[1]+"H"+t})),w||T){var A=n.tickValues||r.generateTicks(m,u),S=t.selectAll(".tick").data(A,m),E=S.enter().insert("g",".domain").attr("class","tick").style("opacity","1"),M=S.exit().remove();S=E.merge(S),w&&E.append("line"),T&&E.append("text");var k=ef.getSizeFor1Char(S),O=[],R=S.select("text").selectAll("tspan").data((function(t,e){var n=i.tickMultiline?s(t,m,A,u,k.w):Ba(r.textFormatted(t))?r.textFormatted(t).concat():[r.textFormatted(t)];return O[e]=n.length,n.map((function(t){return{index:e,splitted:t}}))}));R.exit().remove(),(R=R.enter().append("tspan").merge(R).text((function(t){return t.splitted}))).attr("x",c?0:v*h).attr("dx",function(){var t=0;return/(top|bottom)/.test(o)&&d&&(t=8*Math.sin(Math.PI*(d/180))*("top"===o?-1:1)),t+(_.x||0)}()).attr("dy",(function(t,e){var n=0;return"top"!==o&&(n=k.h,0===e&&(n=u?-((O[t.index]-1)*(k.h/2)-3):0===_.y?".71em":0)),Oa(n)&&_.y?n+_.y:n||".71em"}));var C=S.select("line"),I=S.select("text");if(E.select("line").attr(f+"2",p*h),E.select("text").attr(f,v*h),e.setTickLineTextPosition(C,I),i.tickTitle){var L=I.select("title");(L.empty()?I.append("title"):L).text((function(t){return i.tickTitle[t]}))}if(m.bandwidth){var D=m,P=D.bandwidth()/2;m=x=function(t){return D(t)+P}}else x.bandwidth?x=m:l(M,m);l(E,x),l(r.transitionise(S).style("opacity","1"),m)}})),this.g=g},e.getTickXY=function(){var t=this.config,e={x:0,y:0};return this.params.isCategory&&(e.x=t.tickCentered?0:t.tickOffset,e.y=t.tickCentered?t.tickOffset:0),e},e.getTickSize=function(t){var e=this.helper.scale,n=this.config,r=n,i=r.innerTickSize,a=r.range,o=e(t)+(n.tickCentered?0:n.tickOffset);return a[0]<o&&o<a[1]?i:0},e.setTickLineTextPosition=function(t,e){var n=this.getTickXY(),r=this.config,i=r.innerTickSize,a=r.orient,o=r.tickLength,s=r.tickOffset,u=this.params.tickTextRotate,c=function(t){var e=["start","end"];return"top"===a&&e.reverse(),t?t>0?e[0]:e[1]:"middle"},l=function(t){return t?"rotate("+t+")":null},f=function(t){return t?11.5-2.5*(t/("bottom"===a?15:23))*(t>0?1:-1):o};"bottom"===a?(t.attr("x1",n.x).attr("x2",n.x).attr("y2",this.getTickSize.bind(this)),e.attr("x",0).attr("y",f(u)).style("text-anchor",c(u)).attr("transform",l(u))):"top"===a?(t.attr("x2",0).attr("y2",-i),e.attr("x",0).attr("y",2*-f(u)).style("text-anchor",c(u)).attr("transform",l(u))):"left"===a?(t.attr("x2",-i).attr("y1",n.y).attr("y2",n.y),e.attr("x",-o).attr("y",s).style("text-anchor","end")):"right"===a&&(t.attr("x2",i).attr("y2",0),e.attr("x",o).attr("y",0).style("text-anchor","start"))},e.splitTickText=function(t,e,n,r,i){var a=this.params,o=this.helper.textFormatted(t),s=ka(o)&&o.indexOf("\n")>-1?o.split("\n"):[];if(s.length)return s;if(Ba(o))return o;var u=a.tickWidth;return(!u||u<=0)&&(u=r?95:a.isCategory?Math.ceil(e(n[1])-e(n[0]))-12:110),function t(e,n){for(var r,a,o,s=1;s<n.length;s++)if(" "===n.charAt(s)&&(a=s),r=n.substr(0,s+1),o=i*r.length,u<o)return t(e.concat(n.substr(0,a||s)),n.slice(a?a+1:s));return e.concat(n)}(s,o+"")},e.scale=function(t){return arguments.length?(this.helper.scale=t,this):this.helper.scale},e.orient=function(t){return arguments.length?(this.config.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",this):this.config.orient},e.tickFormat=function(t){var e=this.config;return arguments.length?(e.tickFormat=t,this):e.tickFormat},e.tickCentered=function(t){var e=this.config;return arguments.length?(e.tickCentered=t,this):e.tickCentered},e.tickOffset=function(){return this.config.tickOffset},e.tickInterval=function(t){var e,n=this;if(this.params.isCategory)e=2*this.config.tickOffset;else{e=(this.g.select("path.domain").node().getTotalLength()-2*this.config.outerTickSize)/(t||this.g.selectAll("line").size());var r=this.config.tickValues.map((function(t,e,r){var i=e+1;return i<r.length?n.helper.scale(r[i])-n.helper.scale(t):null})).filter(Boolean);e=Math.min.apply(Math,r.concat([e]))}return e===1/0?0:e},e.ticks=function(){for(var t=this.config,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.length?(t.tickArguments=to(n),this):t.tickArguments},e.tickCulling=function(t){var e=this.config;return arguments.length?(e.tickCulling=t,this):e.tickCulling},e.tickValues=function(t){var e=this,n=this.config;if(Ma(t))n.tickValues=function(){return t(e.helper.scale.domain())};else{if(!arguments.length)return n.tickValues;n.tickValues=t}return this},e.setTransition=function(t){return this.config.transition=t,this},t}(),rf={getAxisInstance:function(){return this.axis||new af(this)}},af=function(){function t(t){this.owner=void 0,this.x=void 0,this.subX=void 0,this.y=void 0,this.y2=void 0,this.axesList={},this.tick={x:null,y:null,y2:null},this.xs=[],this.orient={x:"bottom",y:"left",y2:"right",subX:"bottom"},this.owner=t,this.setOrient()}var e=t.prototype;return e.getAxisClassName=function(t){return bn.axis+" "+bn["axis"+Qa(t)]},e.isHorizontal=function(t,e){var n=t.config.axis_rotated;return e?n:!n},e.isCategorized=function(){var t=this.owner,e=t.config,n=t.state;return e.axis_x_type.indexOf("category")>=0||n.hasRadar},e.isCustomX=function(){var t=this.owner.config;return!this.isTimeSeries()&&(t.data_x||Na(t.data_xs))},e.isTimeSeries=function(t){return void 0===t&&(t="x"),"timeseries"===this.owner.config["axis_"+t+"_type"]},e.isLog=function(t){return void 0===t&&(t="x"),"log"===this.owner.config["axis_"+t+"_type"]},e.isTimeSeriesY=function(){return this.isTimeSeries("y")},e.getAxisType=function(t){void 0===t&&(t="x");var e="linear";return this.isTimeSeries(t)?e="time":this.isLog(t)&&(e="log"),e},e.init=function(){var t=this,e=this.owner,n=e.config,r=e.$el,i=r.main,a=r.axis,o=e.state.clip,s=n.axis_rotated,u=["x","y"];n.axis_y2_show&&u.push("y2"),u.forEach((function(r){var u=t.getAxisClassName(r),c=bn["axis"+r.toUpperCase()+"Label"];a[r]=i.append("g").attr("class",u).attr("clip-path",(function(){var t=null;return"x"===r?t=o.pathXAxis:"y"===r&&(t=o.pathYAxis),t})).attr("transform",e.getTranslate(r)).style("visibility",n["axis_"+r+"_show"]?"visible":"hidden"),a[r].append("text").attr("class",c).attr("transform",["rotate(-90)",null]["x"===r?+!s:+s]).style("text-anchor",(function(){return t.textAnchorForAxisLabel(r)})),t.generateAxes(r)}))},e.setOrient=function(){var t=this.owner.config,e=t.axis_rotated,n=t.axis_y_inner,r=t.axis_y2_inner;this.orient={x:e?"left":"bottom",y:e?n?"top":"bottom":n?"right":"left",y2:e?r?"bottom":"top":r?"left":"right",subX:e?"left":"bottom"}},e.generateAxes=function(t){var e,n=this.owner,r=n.config,i=[],a=r["axis_"+t+"_axes"],o=r.axis_rotated;"x"===t?e=o?tf:Ql:"y"===t?e=o?Ql:tf:"y2"===t&&(e=o?Kl:Jl),a.length&&a.forEach((function(r){var a=r.tick||{},o=n.scale[t].copy();r.domain&&o.domain(r.domain),i.push(e(o).ticks(a.count).tickFormat(Ma(a.format)?a.format.bind(n.api):function(t){return t}).tickValues(a.values).tickSizeOuter(!1===a.outer?0:6))})),this.axesList[t]=i},e.updateAxes=function(){var t=this,e=this.owner,n=e.config,r=e.$el.main;Object.keys(this.axesList).forEach((function(i){var a=n["axis_"+i+"_axes"],o=e.scale[i].copy(),s=o.range();t.axesList[i].forEach((function(u,c){var l=u.scale().range();s.every((function(t,e){return t===l[e]}))||u.scale().range(s);var f=t.getAxisClassName(i)+"-"+(c+1),h=r.select("."+f.replace(/\s/,"."));h.empty()?h=r.append("g").attr("class",f).style("visibility",n["axis_"+i+"_show"]?"visible":"hidden").call(u):(a[c].domain&&o.domain(a[c].domain),t.x.helper.transitionise(h).call(u.scale(o))),h.attr("transform",e.getTranslate(i,c+1))}))}))},e.setAxis=function(t,e,n,r){var i=this.owner;"subX"!==t&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,e,n,!("x"!==t||!(i.scale.zoom||i.config.subchart_show||i.state.resizing))||r)},e.getAxis=function(t,e,n,r,i){var a,o=this.owner,s=o.config,u=/^(x|subX)$/.test(t),c=u?"x":t,l=u&&this.isCategorized(),f=this.orient[t],h=i?0:o.getAxisTickRotate(c);if(u)a=o.format.xAxisTick;else{var d=s["axis_"+t+"_tick_format"];Ma(d)&&(a=d.bind(o.api))}var g=this.tick[c],p=io({outerTick:n,noTransition:r,config:s,id:t,tickTextRotate:h},u&&{isCategory:l,tickMultiline:s.axis_x_tick_multiline,tickWidth:s.axis_x_tick_width,tickTitle:l&&s.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});u||(p.tickStepSize=s["axis_"+c+"_tick_stepSize"]);var v=new nf(p).scale(u&&o.scale.zoom||e).orient(f);if(u&&this.isTimeSeries()&&g&&!Ma(g)){var y=lo.bind(o);g=g.map((function(t){return y(t)}))}else!u&&this.isTimeSeriesY()&&(v.ticks(s.axis_y_tick_time_value),g=null);g&&v.tickValues(g),v.tickFormat(a||!u&&o.isStackNormalized()&&function(t){return t+"%"}),l&&(v.tickCentered(s.axis_x_tick_centered),za(s.axis_x_tick_culling)&&(s.axis_x_tick_culling=!1));var x=s["axis_"+c+"_tick_count"];return x&&v.ticks(x),v},e.updateXAxisTickValues=function(t,e){var n,r=this.owner,i=r.config,a=i.axis_x_tick_fit,o=i.axis_x_tick_count;return(a||o&&a)&&(n=r.mapTargetsToUniqueXs(t),this.isCategorized()&&o>n.length&&(o=n.length),n=this.generateTickValues(n,o,this.isTimeSeries())),e?e.tickValues(n):this.x&&(this.x.tickValues(n),this.subX&&this.subX.tickValues(n)),n},e.getId=function(t){var e=this.owner,n=e.config,r=e.scale,i=n.data_axes[t];return i&&r[i]||(i="y"),i},e.getXAxisTickFormat=function(){var t,e=this.owner,n=e.config,r=e.format,i=n.axis_x_tick_format,a=this.isTimeSeries(),o=this.isCategorized();return i?Ma(i)?t=i.bind(e.api):a&&(t=function(t){return t?r.axisTime(i)(t):""}):t=a?r.defaultAxisTime:o?e.categoryName:function(t){return t<0?t.toFixed(0):t},Ma(t)?function(n){return t.apply(e,o?[n,e.categoryName(n)]:[n])}:t},e.getTickValues=function(t){var e=this.owner,n=e.config["axis_"+t+"_tick_values"],r=e[t+"Axis"];return(Ma(n)?n.call(e.api):n)||(r?r.tickValues():void 0)},e.getLabelOptionByAxisId=function(t){return this.owner.config["axis_"+t+"_label"]},e.getLabelText=function(t){var e=this.getLabelOptionByAxisId(t);return ka(e)?e:e?e.text:null},e.setLabelText=function(t,e){var n=this.owner.config,r=this.getLabelOptionByAxisId(t);ka(r)?n["axis_"+t+"_label"]=e:r&&(r.text=e)},e.getLabelPosition=function(t,e){var n=this.owner.config.axis_rotated,r=this.getLabelOptionByAxisId(t),i=Fa(r)&&r.position?r.position:e[+!n],a=function(t){return!!~i.indexOf(t)};return{isInner:a("inner"),isOuter:a("outer"),isLeft:a("left"),isCenter:a("center"),isRight:a("right"),isTop:a("top"),isMiddle:a("middle"),isBottom:a("bottom")}},e.getAxisLabelPosition=function(t){return this.getLabelPosition(t,"x"===t?["inner-top","inner-right"]:["inner-right","inner-top"])},e.getLabelPositionById=function(t){return this.getAxisLabelPosition(t)},e.xForAxisLabel=function(t){var e=this.owner,n=e.state,r=n.width,i=n.height,a=this.getAxisLabelPosition(t),o=a.isMiddle?-i/2:0;return this.isHorizontal(e,"x"!==t)?o=a.isLeft?0:a.isCenter?r/2:r:a.isBottom&&(o=-i),o},e.dxForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isBottom?"0.5em":"0";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"0.5em":n.isRight?"-0.5em":"0":n.isTop&&(r="-0.5em"),r},e.textAnchorForAxisLabel=function(t){var e=this.owner,n=this.getAxisLabelPosition(t),r=n.isMiddle?"middle":"end";return this.isHorizontal(e,"x"!==t)?r=n.isLeft?"start":n.isCenter?"middle":"end":n.isBottom&&(r="start"),r},e.dyForAxisLabel=function(t){var e,n=this.owner,r=n.config,i=r.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=r["axis_"+t+"_tick_rotate"]?n.getHorizontalAxisHeight(t):0,s=this.getMaxTickWidth(t);if("x"===t){var u=r.axis_x_height;e=i?a?"1.2em":-25-s:a?"-0.5em":u?u-10:o?o-10:"3em"}else e={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],e=i?a?e[0]:o?o*("y2"===t?-1:1)-e[1]:e[2]:a?e[3]:(e[4]+(r["axis_"+t+"_inner"]?0:s+e[4]))*("y"===t?-1:1);return e},e.getMaxTickWidth=function(t,e){var n=this.owner,r=n.config,i=n.state.current,a=n.$el,o=a.svg,s=a.chart,u=i.maxTickWidths[t],c=0;if(e||!r["axis_"+t+"_show"]||0===n.filterTargetsToShow().length)return u.size;if(o){var l=/^y2?$/.test(t),f=n.filterTargetsToShow(n.data.targets),h=n.scale[t].copy().domain(n["get"+(l?"Y":"X")+"Domain"](f,t)),d=h.domain(),g=d[0]===d[1]&&d.every((function(t){return t>0})),p=Ba(u.domain)&&u.domain[0]===u.domain[1]&&u.domain.every((function(t){return t>0}));if(g||p)return u.size;u.domain=d,l||u.ticks.splice(0);var v=this.getAxis(t,h,!1,!1,!0),y=r["axis_"+t+"_tick_count"];!r["axis_"+t+"_tick_values"]&&y&&v.tickValues(this.generateTickValues(d,y,l?this.isTimeSeriesY():this.isTimeSeries())),l||this.updateXAxisTickValues(f,v);var x=s.append("svg").style("visibility","hidden").style("position","fixed").style("top","0px").style("left","0px");v.create(x),x.selectAll("text").each((function(t,e){var n=this.getBoundingClientRect().width;c=Math.max(c,n),l||(u.ticks[e]=n)})),x.remove()}return c>0&&(u.size=c),u.size},e.getXAxisTickTextY2Overflow=function(t){var e=this.owner,n=e.axis,r=e.config,i=e.state,a=e.getAxisTickRotate("x");if((n.isCategorized()||n.isTimeSeries())&&r.axis_x_tick_fit&&!r.axis_x_tick_culling&&!r.axis_x_tick_multiline&&a>0&&a<90){var o=i.current.width-e.getCurrentPaddingLeft(),s=this.getXAxisTickMaxOverflow(a,o-t),u=Math.max(0,s)+t;return Math.min(u,o/2)}return 0},e.getXAxisTickMaxOverflow=function(t,e){for(var n=this.owner,r=n.axis,i=n.config,a=n.state,o=r.isTimeSeries(),s=a.current.maxTickWidths.x.ticks,u=s.length,c=a.axis.x.padding,l=c.left,f=c.right,h=0,d=u-(o&&i.axis_x_tick_fit?.5:0),g=0;g<u;g++){var p=g+1,v=Math.cos(Math.PI*t/180)*s[g],y=p-(o?1:.5)+l;if(!(y<=0)){var x=(e-v)/y,_=v-x/2-((d-p)*x+f*x);h=Math.max(h,_)}}var m=n.filterTargetsToShow(n.data.targets),b=0;if(!o&&i.axis_x_tick_count<=m.length&&m[0].values.length){var w=Zu(n.axis.getAxisType("x"),0,e-h).domain([-1*l,n.getXDomainMax(n.data.targets)+1+f]);b=Math.ceil((w(1)-w(0))/2)}return h+b},e.getXAxisPadding=function(t){var e=this.owner,n=e.config.axis_x_padding;if(za(n)?n={left:0,right:0}:(n.left=n.left||0,n.right=n.right||0),e.axis.isTimeSeries()){var r=+e.getXDomainMin(e.data.targets),i=+e.getXDomainMax(e.data.targets)-r,a=i+n.left+n.right,o=0,s=0;if(t&&a){var u=i/t/a;o=n.left/a/u,s=n.right/a/u}n={left:o,right:s}}return n},e.updateLabels=function(t){var e=this,n=this.owner.$el.main,r={x:n.select("."+bn.axisX+" ."+bn.axisXLabel),y:n.select("."+bn.axisY+" ."+bn.axisYLabel),y2:n.select("."+bn.axisY2+" ."+bn.axisY2Label)};Object.keys(r).filter((function(t){return!r[t].empty()})).forEach((function(n){var i=r[n];(t?i.transition():i).attr("x",(function(){return e.xForAxisLabel(n)})).attr("dx",(function(){return e.dxForAxisLabel(n)})).attr("dy",(function(){return e.dyForAxisLabel(n)})).text((function(){return e.getLabelText(n)}))}))},e.getPadding=function(t,e,n,r){var i=Oa(t)?t:t[e];return Ea(i)?this.convertPixelsToAxisPadding(i,r):n},e.convertPixelsToAxisPadding=function(t,e){var n=this.owner,r=n.config,i=n.state,a=i.width,o=i.height;return e*(t/(r.axis_rotated?a:o))},e.generateTickValues=function(t,e,n){var r=t;if(e){var i=Ma(e)?e():e;if(1===i)r=[t[0]];else if(2===i)r=[t[0],t[t.length-1]];else if(i>2){var a,o=this.isCategorized(),s=i-2,u=t[0],c=t[t.length-1];r=[u];for(var l=0;l<s;l++)a=+u+(c-u)/(s+1)*(l+1),r.push(n?new Date(a):o?Math.round(a):a);r.push(c)}}return n||(r=r.sort((function(t,e){return t-e}))),r},e.generateTransitions=function(t){var e=this.owner.$el.axis,n=["x","y","y2","subX"].map((function(n){var r=e[n];return r&&t&&(r=r.transition().duration(t)),r}));return{axisX:n[0],axisY:n[1],axisY2:n[2],axisSubX:n[3]}},e.redraw=function(t,e,n){var r=this,i=this.owner,a=i.config,o=i.$el,s=e?"0":"1";["x","y","y2","subX"].forEach((function(e){var i=r[e],u=o.axis[e];i&&u&&(!n&&!a.transition_duration&&(i.config.withoutTransition=!0),u.style("opacity",s),i.create(t["axis"+Qa(e)]))})),this.updateAxes()},e.redrawAxis=function(t,e,n,r,i){var a,o=this,s=this.owner,u=s.config,c=s.scale,l=s.$el,f=!!c.zoom;!f&&this.isCategorized()&&0===t.length&&c.x.domain([0,l.axis.x.selectAll(".tick").size()]),c.x&&t.length?(!f&&s.updateXDomain(t,e.UpdateXDomain,e.UpdateOrgXDomain,e.TrimXDomain),!u.axis_x_tick_values&&this.updateXAxisTickValues(t)):this.x&&(this.x.tickValues([]),this.subX&&this.subX.tickValues([])),u.zoom_rescale&&!r&&(a=c.x.orgDomain()),["y","y2"].forEach((function(e){var n=c[e];if(n){var r=u["axis_"+e+"_tick_values"],i=u["axis_"+e+"_tick_count"];if(n.domain(s.getYDomain(t,e,a)),!r&&i){var l=s.axis[e],f=n.domain();l.tickValues(o.generateTickValues(f,f.every((function(t){return 0===t}))?1:i,o.isTimeSeriesY()))}}})),this.redraw(n,s.hasArcType(),i),this.updateLabels(e.Transition),(e.UpdateXDomain||e.UpdateXAxis||e.Y)&&t.length&&this.setCulling(),e.Y&&(c.subY&&c.subY.domain(s.getYDomain(t,"y")),c.subY2&&c.subY2.domain(s.getYDomain(t,"y2")))},e.setCulling=function(){var t=this.owner,e=t.config,n=t.state,r=n.clip,i=n.current,a=t.$el;["subX","x","y","y2"].forEach((function(t){var n=a.axis[t],o="subX"===t?"x":t,s=e["axis_"+o+"_tick_culling"];if(n&&s){var u,c=n.selectAll(".tick text"),l=ao(c.data()),f=l.length,h=e["axis_"+o+"_tick_culling_max"];if(f){for(var d=1;d<f;d++)if(f/d<h){u=d;break}c.each((function(t){this.style.display=l.indexOf(t)%u?"none":"block"}))}else c.style("display","block");if("x"===t){var g=i.maxTickWidths.x.clipPath?r.pathXAxisTickTexts:null;a.svg.selectAll("."+bn.axisX+" .tick text").attr("clip-path",g)}}}))},t}(),of={initEventRect:function(){this.$el.main.select("."+bn.chart).append("g").attr("class",bn.eventRects).style("fill-opacity","0")},redrawEventRect:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.isMultipleX();if(r.eventRect)t.updateEventRect(r.eventRect,!0);else{var a=t.$el.main.select("."+bn.eventRects).style("cursor",e.zoom_enabled&&"drag"!==e.zoom_type?e.axis_rotated?"ns-resize":"ew-resize":null).classed(bn.eventRectsMultiple,i).classed(bn.eventRectsSingle,!i).selectAll("."+bn.eventRect).data([0]).enter().append("rect");t.updateEventRect(a),i?t.generateEventRectsForMultipleXs(a):t.generateEventRectsForSingleX(a),a.call(t.getDraggableSelection()),r.eventRect=a,"touch"!==t.state.inputType||r.svg.on("touchstart.eventRect")||t.hasArcType()||t.bindTouchOnEventRect(i)}if(!i){var o=t.getMaxDataCountTarget();t.updateDataIndexByX(o),t.updateXs(o),t.updatePointClass&&t.updatePointClass(!0),n.eventReceiver.data=o}t.updateEventRectData()},bindTouchOnEventRect:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.eventRect,s=a.svg,u=function(){n.unselectRect(),n.callOverOutForTouch()},c=r.interaction_inputType_touch.preventDefault,l=Ia(c)&&c||!1,f=!isNaN(c)&&c||null;o.on("touchstart",(function(){return n.updateEventRect()})).on("touchstart.eventRect touchmove.eventRect",(function(){var a=sn;if(!o.empty()&&o.classed(bn.eventRect)){if(i.dragging||i.flowing||n.hasArcType()||a.touches.length>1)return;(function(t){var n=t.type,i=t.changedTouches[0]["client"+(r.axis_rotated?"Y":"X")];"touchstart"===n?l?t.preventDefault():null!==f&&(e=i):"touchmove"===n&&(l||!0===e||null!==f&&Math.abs(e-i)>=f)&&(e=!0,t.preventDefault())})(a),function(e){if(t)n.selectRectForMultipleXs(e);else{var r=n.getDataIndexFromEvent(sn);n.callOverOutForTouch(r),-1===r?n.unselectRect():n.selectRectForSingle(e,o,r)}}(o.node())}else u()}),!0).on("touchend.eventRect",(function(){!o.empty()&&o.classed(bn.eventRect)&&(n.hasArcType()||!n.toggleShape||i.cancelClick)&&i.cancelClick&&(i.cancelClick=!1)}),!0),s.on("touchstart",(function(){var t=sn.target;t&&t!==o.node()&&u()}))},updateEventRect:function(t,e){void 0===e&&(e=!1);var n=this.state,r=this.$el,i=n,a=i.eventReceiver,o=i.width,s=i.height,u=i.rendered,c=i.resizing,l=t||r.eventRect;(!u||c||e)&&(l.attr("x",0).attr("y",0).attr("width",o).attr("height",s),!u&&l.attr("class",bn.eventRect)),a&&(a.rect=l.node().getBoundingClientRect())},updateEventRectData:function(){var t,e,n,r,i=this,a=i.config,o=i.scale,s=i.state,u=o.zoom||o.x,c=a.axis_rotated;if(i.isMultipleX())t=0,e=0,n=s.width,r=s.height;else{var l,f;if(i.axis.isCategorized())l=i.getEventRectWidth(),f=function(t){return u(t.x)-l/2};else{var h=function(t){var e=t.index;return{prev:i.getPrevX(e),next:i.getNextX(e)}};l=function(t){var e=h(t);return null===e.prev&&null===e.next?c?s.height:s.width:(null===e.prev&&(e.prev=u.domain()[0]),null===e.next&&(e.next=u.domain()[1]),Math.max(0,(u(e.next)-u(e.prev))/2))},f=function(t){var e=h(t),n=t.x;return null===e.prev&&null===e.next?0:(null===e.prev&&(e.prev=u.domain()[0]),(u(n)+u(e.prev))/2)}}t=c?0:f,e=c?f:0,n=c?s.width:l,r=c?l:s.height}var d=s.eventReceiver,g=function(t,e){return Ma(t)?t(e):t};d.coords.splice(d.data.length),d.data.forEach((function(i,a){d.coords[a]={x:g(t,i),y:g(e,i),w:g(n,i),h:g(r,i)}}))},selectRectForMultipleXs:function(t){var e=this,n=e.config,r=e.state,i=e.filterTargetsToShow(e.data.targets);if(!r.dragging&&!e.hasArcType(i)){var a=zr(t),o=e.findClosestFromTargets(i,a);if(r.mouseover&&(!o||o.id!==r.mouseover.id)&&(n.data_onout.call(e.api,r.mouseover),r.mouseover=void 0),!o)return void e.unselectRect();var s=(e.isBubbleType(o)||e.isScatterType(o)||!n.tooltip_grouped?[o]:e.filterByX(i,o.x)).map((function(t){return e.addName(t)}));e.showTooltip(s,t),e.expandCirclesBars(o.index,o.id,!0),e.showGridFocus(s),(e.isBarType(o.id)||e.dist(o,a)<n.point_sensitivity)&&(e.$el.svg.select("."+bn.eventRect).style("cursor","pointer"),!r.mouseover&&(n.data_onover.call(e.api,o),r.mouseover=o))}},unselectRect:function(){var t=this,e=t.config,n=t.$el,r=n.bar,i=n.circle,a=n.tooltip;t.$el.svg.select("."+bn.eventRect).style("cursor",null),t.hideGridFocus(),a&&(t.hideTooltip(),t._handleLinkedCharts(!1)),i&&!e.point_focus_only&&t.unexpandCircles(),r&&t.unexpandBars()},generateEventRectsForSingleX:function(t){var e=this,n=e.config,r=e.state,i=r.eventReceiver,a=t.style("cursor",n.data_selection_enabled&&n.data_selection_grouped?"pointer":null).on("click",(function(){var t=i.currentIdx,n=i.data[-1===t?e.getDataIndexFromEvent(sn):t];e.clickHandlerForSingleX.bind(this)(n,e)}));if("mouse"===r.inputType){a.on("mouseover",(function(){return e.updateEventRect()})).on("mousemove",(function(){var t=function(){var t=sn?e.getDataIndexFromEvent(sn):i.currentIdx;return t>-1?i.data[t]:null}();if(!(r.dragging||r.flowing||e.hasArcType()||!t||n.tooltip_grouped&&t&&t.index===i.currentIdx)){var o=t.index;e.isStepType(t)&&"step-after"===n.line_step_type&&zr(this)[0]<e.scale.x(e.getXValue(t.id,o))&&(o-=1),o!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=o),-1===o?e.unselectRect():e.selectRectForSingle(this,a,o),e.setOverOut(-1!==o,o)}})).on("mouseout",(function(){!n||e.hasArcType()||-1===i.currentIdx||(e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)}))}return a},clickHandlerForSingleX:function(t,e){var n=e,r=n.config,i=n.state,a=n.$el.main;if(!t||n.hasArcType()||i.cancelClick)i.cancelClick&&(i.cancelClick=!1);else{var o=t.index;a.selectAll("."+bn.shape+"-"+o).each((function(t){(r.data_selection_grouped||n.isWithinShape(this,t))&&(n.toggleShape&&n.toggleShape(this,t,o),r.data_onclick.bind(n.api)(t,this))}))}},generateEventRectsForMultipleXs:function(t){var e=this,n=e.state.inputType;t.on("click",(function(){e.clickHandlerForMultipleXS.bind(this)(e)})),"mouse"===n&&t.on("mouseover mousemove",(function(){e.selectRectForMultipleXs(this)})).on("mouseout",(function(){!e.config||e.hasArcType()||e.unselectRect()}))},clickHandlerForMultipleXS:function(t){var e=t,n=e.config,r=e.filterTargetsToShow(e.data.targets);if(!e.hasArcType(r)){var i=zr(this),a=e.findClosestFromTargets(r,i);!a||(e.isBarType(a.id)||e.dist(a,i)<n.point_sensitivity)&&e.$el.main.selectAll("."+bn.shapes+e.getTargetSelectorSuffix(a.id)).selectAll("."+bn.shape+"-"+a.index).each((function(){(n.data_selection_grouped||e.isWithinShape(this,a))&&(e.toggleShape&&e.toggleShape(this,a,a.index),n.data_onclick.bind(e.api)(a,this))}))}}};function sf(t){return+t}var uf={generateFlow:function(t){var e=this,n=e.data,r=e.state,i=e.$el;return function(){var a=t.flow.length;r.flowing=!0,n.targets.forEach((function(t){t.values.splice(0,a)})),e.updateXGrid&&e.updateXGrid(!0);var o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach((function(t){var e=t.split("."),n=i[e[0]];n&&e.length>1&&(n=n[e[1]]),n&&n.size()&&(o[t]=n)})),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList:function(t,e){var n=this,r=e.flow,i=e.targets,a=r,o=a.duration,s=void 0===o?e.duration:o,u=a.index,c=a.length,l=a.orgDataCount,f=n.getFlowTransform(i,l,u,c),h=Oo(),d=Hi().ease(sf).duration(s);h.add(Object.keys(t).map((function(e){var r=t[e];return r="axis.x"===e?r.transition(d).call((function(t){return n.axis.x.setTransition(d).create(t)})):"region.list"===e?r.filter(n.isRegionOnX).transition(d).attr("transform",f):r.transition(d).attr("transform",f)}))),d.call(h,(function(){n.cleanUpFlow(t,e)}))},cleanUpFlow:function(t,e){var n=this,r=n.config,i=n.state,a=n.$el.svg,o=r.axis_rotated,s=e.flow,u=e.shape,c=e.xv,l=u.pos,f=l.cx,h=l.cy,d=l.xForText,g=l.yForText,p=s,v=p.done,y=void 0===v?function(){}:v,x=p.length;x&&(["circle","text","shape","eventRect"].forEach((function(t){for(var e=[],n=0;n<x;n++)e.push("."+bn[t]+"-"+n);a.selectAll("."+bn[t+"s"]).selectAll(e).remove()})),a.select("."+bn.xgrid).remove()),Object.keys(t).forEach((function(e){var a=t[e];if("axis.x"!==e&&a.attr("transform",null),"grid.x"===e)a.attr(i.xgridAttr);else if("gridLines.x"===e)a.attr("x1",o?0:c).attr("x2",o?i.width:c);else if("gridLines.x"===e)a.select("line").attr("x1",o?0:c).attr("x2",o?i.width:c),a.select("text").attr("x",o?i.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(e))a.attr("d",u.type[e]);else if("text"===e)a.attr("x",d).attr("y",g).style("fill-opacity",n.opacityForText.bind(n));else if("circle"!==e)"region.list"===e&&a.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n));else if(n.isCirclePoint())a.attr("cx",f).attr("cy",h);else{a.attr("x",(function(t){return f(t)-r.point_r})).attr("y",(function(t){return h(t)-r.point_r})).attr("cx",f).attr("cy",h)}})),r.interaction_enabled&&n.redrawEventRect(),y.call(n.api),i.flowing=!1},getFlowTransform:function(t,e,n,r){var i,a=this,o=a.data,s=a.scale.x,u=o.targets[0].values,c=a.getValueOnIndex(u,n),l=a.getValueOnIndex(u,n+r),f=s.domain(),h=a.updateXDomain(t,!0,!0);return e?i=1===e||(c&&c.x)===(l&&l.x)||a.axis.isTimeSeries()?s(f[0])-s(h[0]):s(c.x)-s(l.x):1===u.length?a.axis.isTimeSeries()?(c=a.getValueOnIndex(u,0),l=a.getValueOnIndex(u,u.length-1),i=s(c.x)-s(l.x)):i=Pa(h)/2:i=s(f[0])-s(h[0]),"translate("+i+",0) scale("+Pa(f)/Pa(h)+",1)"}},cf={initClip:function(){var t=this,e=t.state.clip;e.id=t.state.datetimeId+"-clip",e.idXAxis=e.id+"-xaxis",e.idYAxis=e.id+"-yaxis",e.idGrid=e.id+"-grid",e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath:function(t){var e=this.config;return!e.clipPath&&/-clip$/.test(t)||!e.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!e.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:"url("+(!!wa.navigator&&wa.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":Ta.URL.split("#")[0])+"#"+t+")"},appendClip:function(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?0:20),u=o?-(1+s):-(s-1),c=-Math.max(15,r.top),l=o?r.left+20:i+10+s,f=(o?r.top+a+10:r.bottom)+20;t.attr("x",u).attr("y",c).attr("width",l).attr("height",f)},setYAxisClipPath:function(t){var e=this.config,n=this.state,r=n.margin,i=n.width,a=n.height,o=e.axis_rotated,s=Math.max(30,r.left)-(o?20:0),u=e.axis_y_inner,c=u?-1:o?-(1+s):-(s-1),l=-(o?20:r.top),f=(o?i+15+s:r.left+20)+(u?20:0),h=(o?r.bottom:r.top+a)+10;t.attr("x",c).attr("y",l).attr("width",f).attr("height",h)},updateXAxisTickClip:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.xAxisHeight,a=t.$el.defs,o=t.getHorizontalAxisHeight("x");if(a&&!r.idXAxisTickTexts){var s=r.id+"-xaxisticktexts";t.appendClip(a,s),r.pathXAxisTickTexts=t.getClipPath(r.idXAxisTickTexts),r.idXAxisTickTexts=s}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&o!==i&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=o},setXAxisTickClipWidth:function(){var t=this,e=t.config,n=t.state.current.maxTickWidths,r=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&r){var i=Math.sin(Math.PI/180*Math.abs(r));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth:function(){var t=this.state,e=t.clip,n=t.current,r=this.$el.svg;r&&r.select("#"+e.idXAxisTickTexts+" rect").attr("width",n.maxTickWidths.x.clipPath).attr("height",30)}},lf=function(t){return Ea(t.position)||"end"},ff=function(t){return"start"===t.position?4:"middle"===t.position?0:-4};function hf(t,e,n){return function(r){var i=t?0:e;return"start"===r.position?i=t?-n:0:"middle"===r.position&&(i=(t?-n:e)/2),i}}function df(t,e){"grid"===e&&t.each((function(){var t=mn(this);["x1","x2","y1","y2"].forEach((function(e){return t.attr(e,Math.ceil(+t.attr(e)))}))}))}var gf={hasGrid:function(){var t=this.config;return["x","y"].some((function(e){return t["grid_"+e+"_show"]||t["grid_"+e+"_lines"].length}))},initGrid:function(){var t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el;(e.grid_x_lines.length||e.grid_y_lines.length)&&(r.gridLines.main=r.main.insert("g","."+bn.chart+(e.grid_lines_front?" + *":"")).attr("clip-path",n.pathGrid).attr("class",bn.grid+" "+bn.gridLines),r.gridLines.main.append("g").attr("class",bn.xgridLines),r.gridLines.main.append("g").attr("class",bn.ygridLines),r.gridLines.x=nl([]))},updateXGrid:function(t){var e=this,n=e.config,r=e.scale,i=e.state,a=e.$el,o=a.main,s=a.grid,u=n.axis_rotated,c=e.generateGridData(n.grid_x_type,r.x),l=e.axis.isCategorized()?e.axis.x.tickOffset():0,f=function(t){return(r.zoom||r.x)(t)+l*(u?-1:1)};i.xgridAttr=u?{x1:0,x2:i.width,y1:f,y2:f}:{x1:f,x2:f,y1:0,y2:i.height},s.x=o.select("."+bn.xgrids).selectAll("."+bn.xgrid).data(c),s.x.exit().remove(),s.x=s.x.enter().append("line").attr("class",bn.xgrid).merge(s.x),t||s.x.each((function(){var t=mn(this);Object.keys(i.xgridAttr).forEach((function(e){t.attr(e,i.xgridAttr[e]).style("opacity",(function(){return t.attr(u?"y1":"x1")===(u?i.height:0)?"0":"1"}))}))}))},updateYGrid:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=r.grid,a=r.main,o=e.axis_rotated,s=t.axis.y.tickValues()||t.scale.y.ticks(e.grid_y_ticks),u=function(e){return Math.ceil(t.scale.y(e))};i.y=a.select("."+bn.ygrids).selectAll("."+bn.ygrid).data(s),i.y.exit().remove(),i.y=i.y.enter().append("line").attr("class",bn.ygrid).merge(i.y),i.y.attr("x1",o?u:0).attr("x2",o?u:n.width).attr("y1",o?0:u).attr("y2",o?n.height:u),df(i.y,"grid")},updateGrid:function(t){var e=this,n=e.$el,r=n.grid;n.gridLines.main||e.initGridLines(),r.main.style("visibility",e.hasArcType()?"hidden":"visible"),e.hideGridFocus(),e.updateXGridLines(t),e.updateYGridLines(t)},updateXGridLines:function(t){var e=this,n=e.config,r=e.$el,i=r.gridLines,a=r.main,o=n.axis_rotated;n.grid_x_show&&e.updateXGrid();var s=a.select("."+bn.xgridLines).selectAll("."+bn.xgridLine).data(n.grid_x_lines);s.exit().transition().duration(t).style("opacity","0").remove();var u=s.enter().append("g");u.append("line").style("opacity","0"),u.append("text").attr("transform",o?"":"rotate(-90)").attr("dy",-5).style("opacity","0"),(s=u.merge(s)).attr("class",(function(t){return(bn.xgridLine+" "+(t.class||"")).trim()})).select("text").attr("text-anchor",lf).attr("dx",ff).transition().duration(t).text((function(t){return t.text})).transition().style("opacity","1"),i.x=s},updateYGridLines:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=e.$el,s=n.axis_rotated;n.grid_y_show&&e.updateYGrid();var u=o.main.select("."+bn.ygridLines).selectAll("."+bn.ygridLine).data(n.grid_y_lines);u.exit().transition().duration(t).style("opacity","0").remove();var c=u.enter().append("g");c.append("line").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),u=c.merge(u);var l=e.yv.bind(e);u.attr("class",(function(t){return(bn.ygridLine+" "+(t.class||"")).trim()})).select("line").transition().duration(t).attr("x1",s?l:0).attr("x2",s?l:i).attr("y1",s?0:l).attr("y2",s?a:l).transition().style("opacity","1"),u.select("text").attr("text-anchor",lf).attr("dx",ff).transition().duration(t).attr("dy",-5).attr("x",hf(s,i,a)).attr("y",l).text((function(t){return t.text})).transition().style("opacity","1"),o.gridLines.y=u},redrawGrid:function(t){var e=this,n=e.config.axis_rotated,r=e.state,i=r.width,a=r.height,o=e.$el.gridLines,s=e.xv.bind(e),u=o.x.select("line"),c=o.x.select("text");return u=(t?u.transition():u).attr("x1",n?0:s).attr("x2",n?i:s).attr("y1",n?s:0).attr("y2",n?s:a),c=(t?c.transition():c).attr("x",hf(!n,i,a)).attr("y",s).text((function(t){return t.text})),[u.style("opacity","1"),c.style("opacity","1")]},initFocusGrid:function(){var t=this,e=t.config,n=t.state.clip,r=t.$el,i=e.grid_front,a="."+bn[i&&r.gridLines.main?"gridLines":"chart"]+(i?" + *":""),o=r.main.insert("g",a).attr("clip-path",n.pathGrid).attr("class",bn.grid);r.grid.main=o,e.grid_x_show&&o.append("g").attr("class",bn.xgrids),e.grid_y_show&&o.append("g").attr("class",bn.ygrids),e.interaction_enabled&&e.grid_focus_show&&(o.append("g").attr("class",bn.xgridFocus).append("line").attr("class",bn.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",bn.ygridFocus).append("line").attr("class",bn.ygridFocus))},showGridFocus:function(t){var e=this,n=e.config,r=e.state,i=r.width,a=r.height,o=n.axis_rotated,s=e.$el.main.selectAll("line."+bn.xgridFocus+", line."+bn.ygridFocus),u=(t||[s.datum()]).filter((function(t){return t&&Ea(e.getBaseValue(t))}));if(n.tooltip_show&&0!==u.length&&!e.hasType("bubble")&&!e.hasArcType()){var c=n.grid_focus_edge&&!n.tooltip_grouped,l=e.xx.bind(e);s.style("visibility","visible").data(u.concat(u)).each((function(t){var n,r=mn(this),s={x:l(t),y:e.getYScaleById(t.id)(t.value)};if(r.classed(bn.xgridFocus))n=o?[null,s.x,c?s.y:i,s.x]:[s.x,c?s.y:null,s.x,a];else{var u="y2"===e.axis.getId(t.id);n=o?[s.y,c&&!u?s.x:null,s.y,c&&u?s.x:a]:[c&&u?s.x:null,s.y,c&&!u?s.x:i,s.y]}["x1","y1","x2","y2"].forEach((function(t,e){return r.attr(t,n[e])}))})),df(s,"grid"),e.showCircleFocus&&e.showCircleFocus(t)}},hideGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.resizing,i=t.$el.main;"mouse"!==n&&r||(i.selectAll("line."+bn.xgridFocus+", line."+bn.ygridFocus).style("visibility","hidden"),t.hideCircleFocus&&t.hideCircleFocus())},updateGridFocus:function(){var t=this,e=t.state,n=e.inputType,r=e.width,i=e.height,a=e.resizing,o=t.$el.grid.main.select("line."+bn.xgridFocus);if("touch"===n)o.empty()?a&&t.showCircleFocus():t.showGridFocus();else{var s=t.config.axis_rotated;o.attr("x1",s?0:-10).attr("x2",s?r:-10).attr("y1",s?-10:0).attr("y2",s?-10:i)}return!0},generateGridData:function(t,e){var n=this.$el.main.select("."+bn.axisX).selectAll(".tick").size(),r=[];if("year"===t)for(var i=this.getXDomain(),a=i[0].getFullYear(),o=i[1].getFullYear(),s=a;s<=o;s++)r.push(new Date(s+"-01-01 00:00:00"));else(r=e.ticks(10)).length>n&&(r=r.filter((function(t){return(t+"").indexOf(".")<0})));return r},getGridFilterToRemove:function(t){return t?function(e){var n=!1;return(Ba(t)?t.concat():[t]).forEach((function(t){("value"in t&&e.value===t.value||"class"in t&&e.class===t.class)&&(n=!0)})),n}:function(){return!0}},removeGridLines:function(t,e){var n=this,r=n.config,i=n.getGridFilterToRemove(t),a=e?bn.xgridLines:bn.ygridLines,o=e?bn.xgridLine:bn.ygridLine;n.$el.main.select("."+a).selectAll("."+o).filter(i).transition().duration(r.transition_duration).style("opacity","0").remove();var s="grid_"+(e?"x":"y")+"_lines";r[s]=r[s].filter((function(t){return!i(t)}))}},pf={initRegion:function(){var t=this.$el;t.region.main=t.main.append("g").attr("clip-path",this.state.clip.path).attr("class",bn.regions)},updateRegion:function(t){var e=this,n=e.config,r=e.$el;r.region.main||e.initRegion(),r.region.main.style("visibility",e.hasArcType()?"hidden":"visible");var i=r.main.select("."+bn.regions).selectAll("."+bn.region).data(n.regions);i.exit().transition().duration(t).style("opacity","0").remove(),(i=i.enter().append("g").merge(i).attr("class",e.classRegion.bind(e))).append("rect").style("fill-opacity","0"),r.region.list=i},redrawRegion:function(t){var e=this,n=e.$el.region.list.select("rect");return n=(t?n.transition():n).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),[(t?n.transition():n).style("fill-opacity",(function(t){return Ea(t.opacity)?t.opacity:"0.1"})).on("end",(function(){mn(this.parentNode).selectAll("rect:not([x])").remove()}))]},getRegionXY:function(t,e){var n=this,r=n.config,i=n.scale,a=r.axis_rotated,o="x"===t,s="start",u=0;return"y"===e.axis||"y2"===e.axis?(!o&&(s="end"),(o?a:!a)&&s in e&&(u=(0,i[e.axis])(e[s]))):(o?!a:a)&&s in e&&(u=(i.zoom||i.x)(n.axis.isTimeSeries()?lo.call(n,e[s]):e[s])),u},regionX:function(t){return this.getRegionXY("x",t)},regionY:function(t){return this.getRegionXY("y",t)},getRegionSize:function(t,e){var n=this,r=n.config,i=n.scale,a=n.state,o=r.axis_rotated,s="width"===t,u=n[s?"regionX":"regionY"](e),c="end",l=a[t];return"y"===e.axis||"y2"===e.axis?(!s&&(c="start"),(s?o:!o)&&c in e&&(l=(0,i[e.axis])(e[c]))):(s?!o:o)&&c in e&&(l=(i.zoom||i.x)(n.axis.isTimeSeries()?lo.call(n,e[c]):e[c])),l<u?0:l-u},regionWidth:function(t){return this.getRegionSize("width",t)},regionHeight:function(t){return this.getRegionSize("height",t)},isRegionOnX:function(t){return!t.axis||"x"===t.axis}},vf={getAxisSize:function(t){var e=this,n=e.config.axis_rotated;return n&&"x"===t||!n&&/y2?/.test(t)?e.getAxisWidthByAxisId(t,!0):e.getHorizontalAxisHeight(t)},getAxisWidthByAxisId:function(t,e){var n=this;if(n.axis){var r=n.axis&&n.axis.getLabelPositionById(t);return n.axis.getMaxTickWidth(t,e)+(r.isInner?20:40)}return 40},getHorizontalAxisHeight:function(t){var e=this,n=e.config,r=e.state,i=r.current,a=r.rotatedPadding,o=r.isLegendRight,s=r.isLegendInset,u=n.axis_rotated,c=30;if("x"===t&&!n.axis_x_show)return 8;if("x"===t&&n.axis_x_height)return n.axis_x_height;if("y"===t&&!n.axis_y_show)return!n.legend_show||o||s?1:10;if("y2"===t&&!n.axis_y2_show)return a.top;var l=e.getAxisTickRotate(t);return("x"===t&&!u||/y2?/.test(t)&&u)&&l&&(c=30+e.axis.getMaxTickWidth(t)*Math.cos(Math.PI*(90-l)/180),!n.axis_x_tick_multiline&&i.height&&c>i.height/2&&(c=i.height/2)),c+(e.axis.getLabelPositionById(t).isInner?0:10)+("y2"!==t||u?0:-10)},getEventRectWidth:function(){return Math.max(0,this.axis.x.tickInterval())},getAxisTickRotate:function(t){var e=this,n=e.axis,r=e.config,i=e.state,a=e.$el,o=r["axis_"+t+"_tick_rotate"];if("x"===t){var s=n.isCategorized()||n.isTimeSeries();if(r.axis_x_tick_fit&&s){var u=r.axis_x_tick_count,c=i.current.maxTickWidths.x.ticks.length,l=0;u?l=u>c?c:u:c&&(l=c),l!==i.axis.x.tickCount&&(i.axis.x.padding=e.axis.getXAxisPadding(l)),i.axis.x.tickCount=l}a.svg&&r.axis_x_tick_fit&&!r.axis_x_tick_multiline&&!r.axis_x_tick_culling&&r.axis_x_tick_autorotate&&s&&(o=e.needToRotateXAxisTickTexts()?r.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts:function(){var t=this,e=t.state,n=e.axis,r=e.current.width-t.getCurrentPaddingLeft(!1)-t.getCurrentPaddingRight(),i=n.x.tickCount+n.x.padding.left+n.x.padding.right;return t.axis.getMaxTickWidth("x")>(i?r/i:0)}},yf={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_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:[]},xf={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_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]};function _f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mf(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?_f(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_f(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var bf=mf(mf(mf({axis_rotated:!1},{axis_x_clipPath:!0,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]}),yf),xf),wf=[kl,{category:function(t,e){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[t]=e,n.redraw()),r.axis_x_categories[t]},categories:function(t){var e=this.internal,n=e.config;return arguments.length?(n.axis_x_categories=t,e.redraw(),n.axis_x_categories):n.axis_x_categories}},Rl,Il,zl,Ll,Pl,Fl],Tf=[rf,cf,of,uf,gf,pf,vf],Af=[{data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1},bf,{grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0}];function Sf(t){return function(){return t}}function Ef(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Mf(t){return t}var kf=Math.PI,Of=2*kf,Rf=1e-6,Cf=Of-Rf;function If(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Lf(){return new If}If.prototype=Lf.prototype={constructor:If,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,a){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-t,u=r-e,c=a-t,l=o-e,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>Rf)if(Math.abs(l*s-u*c)>Rf&&i){var h=n-a,d=r-o,g=s*s+u*u,p=Math.sqrt(g),v=Math.sqrt(f),y=i*Math.tan((kf-Math.acos((g+f-(h*h+d*d))/(2*p*v)))/2),x=y/v,_=y/p;Math.abs(x-1)>Rf&&(this._+="L"+(t+x*c)+","+(e+x*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*d)+","+(this._x1=t+_*s)+","+(this._y1=e+_*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=t+o,c=e+s,l=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>Rf||Math.abs(this._y1-c)>Rf)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%Of+Of),f>Cf?this._+="A"+n+","+n+",0,1,"+l+","+(t-o)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>Rf&&(this._+="A"+n+","+n+",0,"+ +(f>=kf)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Df=Lf;function Pf(t){return t.innerRadius}function Ff(t){return t.outerRadius}function zf(t){return t.startAngle}function Nf(t){return t.endAngle}function Bf(t){return t&&t.padAngle}function Xf(t,e,n,r,i,a,o){var s=t-n,u=e-r,c=(o?a:-a)/bc(s*s+u*u),l=c*u,f=-c*s,h=t+l,d=e+f,g=n+l,p=r+f,v=(h+g)/2,y=(d+p)/2,x=g-h,_=p-d,m=x*x+_*_,b=i-a,w=h*p-g*d,T=(_<0?-1:1)*bc(xc(0,b*b*m-w*w)),A=(w*_-x*T)/m,S=(-w*x-_*T)/m,E=(w*_+x*T)/m,M=(-w*x+_*T)/m,k=A-v,O=S-y,R=E-v,C=M-y;return k*k+O*O>R*R+C*C&&(A=E,S=M),{cx:A,cy:S,x01:-l,y01:-f,x11:A*(i/b-1),y11:S*(i/b-1)}}function jf(){function t(){var t,c,l=+e.apply(this,arguments),f=+n.apply(this,arguments),h=a.apply(this,arguments)-Ac,d=o.apply(this,arguments)-Ac,g=pc(d-h),p=d>h;if(u||(u=t=Df()),f<l&&(c=f,f=l,l=c),f>wc)if(g>Sc-wc)u.moveTo(f*yc(h),f*mc(h)),u.arc(0,0,f,h,d,!p),l>wc&&(u.moveTo(l*yc(d),l*mc(d)),u.arc(0,0,l,d,h,p));else{var v,y,x=h,_=d,m=h,b=d,w=g,T=g,A=s.apply(this,arguments)/2,S=A>wc&&(i?+i.apply(this,arguments):bc(l*l+f*f)),E=_c(pc(f-l)/2,+r.apply(this,arguments)),M=E,k=E;if(S>wc){var O=Ec(S/l*mc(A)),R=Ec(S/f*mc(A));(w-=2*O)>wc?(m+=O*=p?1:-1,b-=O):(w=0,m=b=(h+d)/2),(T-=2*R)>wc?(x+=R*=p?1:-1,_-=R):(T=0,x=_=(h+d)/2)}var C=f*yc(x),I=f*mc(x),L=l*yc(b),D=l*mc(b);if(E>wc){var P,F=f*yc(_),z=f*mc(_),N=l*yc(m),B=l*mc(m);if(g<Tc&&(P=function(t,e,n,r,i,a,o,s){var u=n-t,c=r-e,l=o-i,f=s-a,h=f*u-l*c;if(!(h*h<wc))return[t+(h=(l*(e-a)-f*(t-i))/h)*u,e+h*c]}(C,I,N,B,F,z,L,D))){var X=C-P[0],j=I-P[1],U=F-P[0],$=z-P[1],Y=1/mc(function(t){return t>1?0:t<-1?Tc:Math.acos(t)}((X*U+j*$)/(bc(X*X+j*j)*bc(U*U+$*$)))/2),V=bc(P[0]*P[0]+P[1]*P[1]);M=_c(E,(l-V)/(Y-1)),k=_c(E,(f-V)/(Y+1))}}T>wc?k>wc?(v=Xf(N,B,C,I,f,k,p),y=Xf(F,z,L,D,f,k,p),u.moveTo(v.cx+v.x01,v.cy+v.y01),k<E?u.arc(v.cx,v.cy,k,vc(v.y01,v.x01),vc(y.y01,y.x01),!p):(u.arc(v.cx,v.cy,k,vc(v.y01,v.x01),vc(v.y11,v.x11),!p),u.arc(0,0,f,vc(v.cy+v.y11,v.cx+v.x11),vc(y.cy+y.y11,y.cx+y.x11),!p),u.arc(y.cx,y.cy,k,vc(y.y11,y.x11),vc(y.y01,y.x01),!p))):(u.moveTo(C,I),u.arc(0,0,f,x,_,!p)):u.moveTo(C,I),l>wc&&w>wc?M>wc?(v=Xf(L,D,F,z,l,-M,p),y=Xf(C,I,N,B,l,-M,p),u.lineTo(v.cx+v.x01,v.cy+v.y01),M<E?u.arc(v.cx,v.cy,M,vc(v.y01,v.x01),vc(y.y01,y.x01),!p):(u.arc(v.cx,v.cy,M,vc(v.y01,v.x01),vc(v.y11,v.x11),!p),u.arc(0,0,l,vc(v.cy+v.y11,v.cx+v.x11),vc(y.cy+y.y11,y.cx+y.x11),p),u.arc(y.cx,y.cy,M,vc(y.y11,y.x11),vc(y.y01,y.x01),!p))):u.arc(0,0,l,b,m,p):u.lineTo(L,D)}else u.moveTo(0,0);return u.closePath(),t?(u=null,t+""||null):void 0}var e=Pf,n=Ff,r=Sf(0),i=null,a=zf,o=Nf,s=Bf,u=null;return t.centroid=function(){var t=(+e.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Tc/2;return[yc(r)*t,mc(r)*t]},t.innerRadius=function(n){return arguments.length?(e="function"==typeof n?n:Sf(+n),t):e},t.outerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),t):n},t.cornerRadius=function(e){return arguments.length?(r="function"==typeof e?e:Sf(+e),t):r},t.padRadius=function(e){return arguments.length?(i=null==e?null:"function"==typeof e?e:Sf(+e),t):i},t.startAngle=function(e){return arguments.length?(a="function"==typeof e?e:Sf(+e),t):a},t.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Sf(+e),t):o},t.padAngle=function(e){return arguments.length?(s="function"==typeof e?e:Sf(+e),t):s},t.context=function(e){return arguments.length?(u=null==e?null:e,t):u},t}var Uf={initPie:function(){var t=this,e=t.config,n=e.data_type,r=e.pie_padding,i=e[n+"_startingAngle"]||0,a=(t.hasType("pie")&&r?.01*r:e[n+"_padAngle"])||0;t.pie=function(){function t(t){var s,u,c,l,f,h=t.length,d=0,g=Array(h),p=Array(h),v=+i.apply(this,arguments),y=Math.min(Sc,Math.max(-Sc,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=x*(y<0?-1:1);for(s=0;s<h;++s)(f=p[g[s]=s]=+e(t[s],s,t))>0&&(d+=f);for(null==n?null!=r&&g.sort((function(e,n){return r(t[e],t[n])})):g.sort((function(t,e){return n(p[t],p[e])})),s=0,c=d?(y-h*_)/d:0;s<h;++s,v=l)u=g[s],l=v+((f=p[u])>0?f*c:0)+_,p[u]={data:t[u],index:s,value:f,startAngle:v,endAngle:l,padAngle:x};return p}var e=Mf,n=Ef,r=null,i=Sf(0),a=Sf(Sc),o=Sf(0);return t.value=function(n){return arguments.length?(e="function"==typeof n?n:Sf(+n),t):e},t.sortValues=function(e){return arguments.length?(n=e,r=null,t):n},t.sort=function(e){return arguments.length?(r=e,n=null,t):r},t.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Sf(+e),t):i},t.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:Sf(+e),t):a},t.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Sf(+e),t):o},t}().startAngle(i).endAngle(i+2*Math.PI).padAngle(a).value((function(t){return t.values.reduce((function(t,e){return t+e.value}),0)})).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius:function(){var t=this,e=t.config,n=t.state,r=e.pie_padding,i=e.gauge_width||e.donut_width,a=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()?.85:1),n.radius=.95*n.radiusExpanded,n.innerRadiusRatio=i?(n.radius-i)/n.radius:.6,n.gaugeArcWidth=i||(a<=n.radius-n.innerRadius?n.radius-n.innerRadius:a<=n.radius?a:n.radius);var o=e.pie_innerRadius||(r?r*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:o},getRadius:function(t){var e=t&&t.data,n=this.state,r=n.innerRadius,i=n.outerRadius;return!Oa(r)&&e&&(r=r[e.id]||0),Xa(i)&&e&&e.id in i?i=i[e.id]:!Oa(i)&&(i=this.state.radius),{innerRadius:r,outerRadius:i}},updateArc:function(){var t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength:function(){var t=3.6*this.config.gauge_arcLength,e=t/360*2;return t<-360?e=-2:t>360&&(e=2),e*Math.PI},getStartAngle:function(){var t=this.config,e=t.gauge_fullCircle,n=-1*Math.PI/2,r=Math.PI/2,i=t.gauge_startingAngle;return!e&&i<=n?i=n:!e&&i>=r?i=r:(i>Math.PI||i<-1*Math.PI)&&(i=Math.PI),i},updateAngle:function(t){var e=this,n=e.config,r=e.state,i=e.pie,a=t,o=!1;if(!n)return null;var s=e.getStartAngle(),u=n.gauge_fullCircle?e.getArcLength():-2*s;if(a.data&&e.isGaugeType(a.data)&&!e.hasMultiArcGauge()){var c=u*(e.getTotalDataSum(r.rendered)/(n.gauge_max-n.gauge_min));i=i.startAngle(s).endAngle(c+s)}if(i(e.filterTargetsToShow()).forEach((function(t,e){o||t.data.id!==a.data.id||(o=!0,(a=t).index=e)})),isNaN(a.startAngle)&&(a.startAngle=0),isNaN(a.endAngle)&&(a.endAngle=a.startAngle),a.data&&e.hasMultiArcGauge()){var l=n.gauge_min,f=n.gauge_max,h=a.value<l?0:a.value<f?a.value-l:f-l;a.startAngle=s,a.endAngle=s+u/(f-l)*h}return o?a:null},getSvgArc:function(){var t=this,e=t.state,n=e.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,r=t.hasMultiArcGauge(),i=jf().innerRadius((function(i){var a=t.getRadius(i).innerRadius;return r?e.radius-n*(i.index+1):Oa(a)?a:0})).outerRadius((function(i){var a=t.getRadius(i).outerRadius;return r?e.radius-n*i.index:a})),a=function(e,n){var r="M 0 0";if(e.value||e.data){var a=!n&&t.updateAngle(e);n?r=i(e):a&&(r=i(a))}return r};return a.centroid=i.centroid,a},getSvgArcExpanded:function(t){var e=this,n=e.state,r=t||1,i=n.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,a=e.hasMultiArcGauge(),o=Math.min(n.radiusExpanded*r-n.radius,.8*i-100*(1-r)),s=jf().innerRadius((function(t){return a?n.radius-i*(t.index+1):e.getRadius(t).innerRadius})).outerRadius((function(t){var s;if(a)s=n.radius-i*t.index+o;else{var u=e.getRadius(t).outerRadius,c=n.radiusExpanded;n.radius!==u&&(c-=Math.abs(n.radius-u)),s=c*r}return s}));return function(t){var n=e.updateAngle(t);return n?s(n):"M 0 0"}},getArc:function(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},transformForArcLabel:function(t){var e=this,n=e.config,r=e.state.radiusExpanded,i=e.updateAngle(t),a="";if(i)if(e.hasMultiArcGauge()){var o=Math.sin(i.endAngle-Math.PI/2);a="translate("+(c=Math.cos(i.endAngle-Math.PI/2)*(r+25))+","+(l=o*(r+15-Math.abs(10*o))+3)+")"}else if(!e.hasType("gauge")||e.data.targets.length>1){var s=e.getRadius(t).outerRadius,u=this.svgArc.centroid(i),c=isNaN(u[0])?0:u[0],l=isNaN(u[1])?0:u[1],f=Math.sqrt(c*c+l*l),h=e.hasType("donut")&&n.donut_label_ratio||e.hasType("pie")&&n.pie_label_ratio;a="translate("+c*(h=h?Ma(h)?h.bind(e.api)(t,s,f):h:s&&(f?(36/s>.375?1.175-36/s:.8)*s/f:0))+","+l*h+")"}return a},convertToArcData:function(t){return this.addName({id:t.data?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel:function(t){var e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).each((function(t){var r=mn(this),i=e.updateAngle(t),a=e.getRatio("arc",i);if(e.meetsLabelThreshold(a,(e.hasType("donut")?"donut":e.hasType("gauge")&&"gauge")||e.hasType("pie")&&"pie")){var o=(i||t).value;Va(r,(e.getArcLabelFormat()||e.defaultArcValueFormat)(o,a,t.data.id).toString(),[-1,1],n)}else r.text("")}))},expandArc:function(t){var e=this,n=e.state.transiting,r=e.$el;if(n)var i=setInterval((function(){n||(clearInterval(i),r.legend.selectAll("."+bn.legendItemFocused).size()>0&&e.expandArc(t))}),10);else{var a=e.mapToTargetIds(t);r.svg.selectAll(e.selectorTargets(a,"."+bn.chartArc)).each((function(t){if(e.shouldExpand(t.data.id)){var n=e.getExpandConfig(t.data.id,"duration"),r=e.getSvgArcExpanded(e.getExpandConfig(t.data.id,"rate"));mn(this).selectAll("path").transition().duration(n).attr("d",e.svgArcExpanded).transition().duration(2*n).attr("d",r)}}))}},unexpandArc:function(t){var e=this,n=e.state.transiting,r=e.$el.svg;if(!n){var i=e.mapToTargetIds(t);r.selectAll(e.selectorTargets(i,"."+bn.chartArc)).selectAll("path").transition().duration((function(t){return e.getExpandConfig(t.data.id,"duration")})).attr("d",e.svgArc),r.selectAll(""+bn.arc).style("opacity","1")}},getExpandConfig:function(t,e){var n,r=this,i=r.config;return r.isDonutType(t)?n="donut":r.isGaugeType(t)?n="gauge":r.isPieType(t)&&(n="pie"),n?i[n+"_expand_"+e]:{duration:50,rate:.98}[e]},shouldExpand:function(t){var e=this,n=e.config;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel:function(){var t=this,e=t.config;return["pie","donut","gauge"].some((function(n){return t.hasType(n)&&e[n+"_label_show"]}))},getArcLabelFormat:function(){var t=this,e=t.config,n=e.pie_label_format;return t.hasType("gauge")?n=e.gauge_label_format:t.hasType("donut")&&(n=e.donut_label_format),Ma(n)?n.bind(t.api):n},getArcTitle:function(){var t=this,e=t.hasType("donut")?"donut":t.hasType("gauge")&&"gauge";return e?t.config[e+"_title"]:""},updateTargetsForArc:function(t){var e=this,n=e.$el,r=e.hasType("gauge"),i=e.getChartClass("Arc"),a=e.getClass("arcs",!0),o=e.classFocus.bind(e),s=n.main.select("."+bn.chartArcs),u=s.selectAll("."+bn.chartArc).data(e.pie(t)).attr("class",(function(t){return i(t)+o(t.data)})),c=u.enter().append("g").attr("class",i);c.append("g").attr("class",a).merge(u),c.append("text").attr("dy",r&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor","middle").style("pointer-events","none"),n.text=s.selectAll("."+bn.target+" text")},initArc:function(){var t=this,e=t.$el;e.arcs=e.main.select("."+bn.chart).append("g").attr("class",bn.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle:function(){var t=this,e=t.getArcTitle(),n=t.hasType("gauge");if(e){var r=t.$el.arcs.append("text").attr("class",bn[n?"chartArcsGaugeTitle":"chartArcsTitle"]).style("text-anchor","middle");n&&r.attr("dy","-0.3em").style("font-size","27px"),Va(r,e,n?void 0:[-.6,1.35],!0)}},redrawArc:function(t,e,n){var r=this,i=r.config,a=r.state,o=r.$el.main,s=i.interaction_enabled,u=s&&i.data_selection_isselectable,c=o.selectAll("."+bn.arcs).selectAll("."+bn.arc).data(r.arcData.bind(r));c.exit().transition().duration(e).style("opacity","0").remove(),c=c.enter().append("path").attr("class",r.getClass("arc",!0)).style("fill",(function(t){return r.color(t.data)})).style("cursor",(function(t){return u&&u.bind(r.api)(t)?"pointer":null})).style("opacity","0").each((function(t){r.isGaugeType(t.data)&&(t.startAngle=i.gauge_startingAngle,t.endAngle=i.gauge_startingAngle),this._current=t})).merge(c),r.hasType("gauge")&&(r.updateGaugeMax(),r.hasMultiArcGauge()&&r.redrawMultiArcGauge()),c.attr("transform",(function(t){return!r.isGaugeType(t.data)&&n?"scale(0)":""})).style("opacity",(function(t){return t===this._current?"0":"1"})).each((function(){a.transiting=!0})).transition().duration(t).attrTween("d",(function(t){var e=r.updateAngle(t);if(!e)return function(){return"M 0 0"};isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);var n=Lr(this._current,e);return this._current=n(0),function(e){var i=n(e);return i.data=t.data,r.getArc(i,!0)}})).attr("transform",n?"scale(1)":"").style("fill",(function(t){var e;return r.levelColor?(e=r.levelColor(t.data.values[0].value),i.data_colors[t.data.id]=e):e=r.color(t.data),e})).style("opacity","1").call($a,(function(){if(r.levelColor){var t=mn(this),e=t.datum();r.updateLegendItemColor(e.data.id,t.style("fill"))}a.transiting=!1,Ua(i.onrendered,r.api)})),s&&r.bindArcEvent(c),r.hasType("gauge")&&r.redrawBackgroundArcs(),r.redrawArcText(t)},redrawBackgroundArcs:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge(),i=e.gauge_fullCircle,a=0===t.filterTargetsToShow(t.data.targets).length&&!!e.data_empty_label_text,o=t.getStartAngle(),s=i?o+t.getArcLength():-1*o,u=t.$el.arcs.select((r?"g":"")+"."+bn.chartArcsBackground);if(r){var c=0;(u=u.selectAll("path."+bn.chartArcsBackground).data(t.data.targets)).enter().append("path").attr("class",(function(t,e){return bn.chartArcsBackground+" "+bn.chartArcsBackground+"-"+e})).merge(u).style("fill",e.gauge_background||null).attr("d",(function(r){var i=r.id;if(a||n.hiddenTargetIds.indexOf(i)>=0)return"M 0 0";var u={data:[{value:e.gauge_max}],startAngle:o,endAngle:s,index:c++};return t.getArc(u,!0,!0)})),u.exit().remove()}else u.attr("d",a?"M 0 0":function(){var n={data:[{value:e.gauge_max}],startAngle:o,endAngle:s};return t.getArc(n,!0,!0)})},bindArcEvent:function(t){function e(t,e,n){r.expandArc(n),r.api.focus(n),r.toggleFocusLegend(n,!0),r.showTooltip([e],t)}function n(t){var e=t&&t.id||void 0;r.unexpandArc(e),r.api.revert(),r.revertLegend(),r.hideTooltip()}var r=this,i=r.config,a=r.state,o="touch"===a.inputType,s="mouse"===a.inputType;if(t.on("click",(function(t,e){var n,a=r.updateAngle(t);a&&(n=r.convertToArcData(a),r.toggleShape&&r.toggleShape(this,n,e),i.data_onclick.bind(r.api)(n,this))})),s&&t.on("mouseover",(function(t){if(!a.transiting){var n=r.updateAngle(t),i=n?r.convertToArcData(n):null;e(this,i,i&&i.id||void 0),r.setOverOut(!0,i)}})).on("mouseout",(function(t){if(!a.transiting){var e=r.updateAngle(t),i=e?r.convertToArcData(e):null;n(),r.setOverOut(!1,i)}})).on("mousemove",(function(t){var e=r.updateAngle(t),n=e?r.convertToArcData(e):null;r.showTooltip([n],this)})),o&&r.hasArcType()&&!r.radars){var u=function(){if(!a.transiting){var t=function(){var t=sn.changedTouches[0];return mn(Ta.elementFromPoint(t.clientX,t.clientY))}(),i=t.datum(),o=i&&i.data&&i.data.id?r.updateAngle(i):null,s=o?r.convertToArcData(o):null,u=s&&s.id||void 0;r.callOverOutForTouch(s),Ra(u)?n():e(this,s,u)}};r.$el.svg.on("touchstart",u).on("touchmove",u)}},redrawArcText:function(t){var e,n=this,r=n.config,i=n.state,a=n.$el,o=a.main,s=a.arcs,u=n.hasType("gauge"),c=n.hasMultiArcGauge();if(u&&1===n.data.targets.length&&r.gauge_title||(e=o.selectAll("."+bn.chartArc).select("text").style("opacity","0").attr("class",(function(t){return n.isGaugeType(t.data)?bn.gaugeValue:null})).call(n.textForArcLabel.bind(n)).attr("transform",n.transformForArcLabel.bind(n)).style("font-size",(function(t){return n.isGaugeType(t.data)&&1===n.data.targets.length&&!c?Math.round(i.radius/5)+"px":null})).transition().duration(t).style("opacity",(function(t){return n.isTargetToShow(t.data.id)&&n.isArcType(t.data)?"1":"0"})),c&&e.attr("dy","-.1em")),o.select("."+bn.chartArcsTitle).style("opacity",n.hasType("donut")||u?"1":"0"),u){var l=r.gauge_fullCircle;l&&e&&e.attr("dy",""+(c?0:Math.round(i.radius/14))),r.gauge_label_show&&(s.select("."+bn.chartArcsGaugeUnit).attr("dy",(l?1.5:.75)+"em").text(r.gauge_units),s.select("."+bn.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(l?1:2))+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_min,!1)),!l&&s.select("."+bn.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/2+"px").attr("dy","1.2em").text(n.textForGaugeMinMax(r.gauge_max,!0)))}}};function $f(t){return t[0]}function Yf(t){return t[1]}function Vf(){function t(t){var s,u,c,l=t.length,f=!1;for(null==i&&(o=a(c=Df())),s=0;s<=l;++s)!(s<l&&r(u=t[s],s,t))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,t),+n(u,s,t));if(c)return o=null,c+""||null}var e=$f,n=Yf,r=Sf(!0),i=null,a=qc,o=null;return t.x=function(n){return arguments.length?(e="function"==typeof n?n:Sf(+n),t):e},t.y=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),t):n},t.defined=function(e){return arguments.length?(r="function"==typeof e?e:Sf(!!e),t):r},t.curve=function(e){return arguments.length?(a=e,null!=i&&(o=a(i)),t):a},t.context=function(e){return arguments.length?(null==e?i=o=null:o=a(i=e),t):i},t}var Gf={initArea:function(t){var e=this.config;t.insert("g","."+bn[e.area_front?"circles":"lines"]).attr("class",this.getClass("areas",!0))},updateAreaGradient:function(){var t=this,e=t.config,n=t.state.datetimeId,r=t.$el.defs;t.data.targets.forEach((function(i){var a=n+"-areaGradient"+t.getTargetSelectorSuffix(i.id);if(t.isAreaType(i)&&r.select("#"+a).empty()){var o=t.color(i),s=e.area_linearGradient,u=s.x,c=void 0===u?[0,0]:u,l=s.y,f=void 0===l?[0,1]:l,h=s.stops,d=void 0===h?[[0,o,1],[1,o,0]]:h,g=r.append("linearGradient").attr("id",""+a).attr("x1",c[0]).attr("x2",c[1]).attr("y1",f[0]).attr("y2",f[1]);d.forEach((function(e){var n=Ma(e[1])?e[1].bind(t.api)(i.id):e[1];g.append("stop").attr("offset",e[0]).attr("stop-color",n||o).attr("stop-opacity",e[2])}))}}))},updateAreaColor:function(t){var e=this;return e.config.area_linearGradient?"url(#"+e.state.datetimeId+"-areaGradient"+e.getTargetSelectorSuffix(t.id)+")":e.color(t)},updateArea:function(t){var e=this,n=e.config,r=e.state,i=e.$el;n.area_linearGradient&&e.updateAreaGradient(),i.area=i.main.selectAll("."+bn.areas).selectAll("."+bn.area).data(e.lineData.bind(e)),i.area.exit().transition().duration(t).style("opacity","0").remove(),i.area=i.area.enter().append("path").attr("class",e.getClass("area",!0)).style("fill",e.updateAreaColor.bind(e)).style("opacity",(function(){return r.orgAreaOpacity=mn(this).style("opacity"),"0"})).merge(i.area),i.area.style("opacity",r.orgAreaOpacity)},redrawArea:function(t,e){var n=this,r=n.state.orgAreaOpacity;return[(e?n.$el.area.transition(qa()):n.$el.area).attr("d",t).style("fill",n.updateAreaColor.bind(n)).style("opacity",(function(t){return(n.isAreaRangeType(t)?r/1.75:r)+""}))]},generateDrawArea:function(t,e){var n=this,r=n.config,i=r.line_connectNull,a=r.axis_rotated,o=n.generateGetAreaPoints(t,e),s=n.getYScaleById.bind(n),u=function(t){return(e?n.subxx:n.xx).call(n,t)},c=function(t,r){return n.isGrouped(t.id)?o(t,r)[0][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getAreaRangeData(t,"high"):n.getShapeYMin(t.id))},l=function(t,r){return n.isGrouped(t.id)?o(t,r)[1][1]:s(t.id,e)(n.isAreaRangeType(t)?n.getAreaRangeData(t,"low"):t.value)};return function(t){var e,o=i?n.filterRemoveNull(t.values):t.values,s=0,f=0;if(n.isAreaType(t)){var h=function(){function t(t){var e,l,f,h,d,g=t.length,p=!1,v=Array(g),y=Array(g);for(null==s&&(c=u(d=Df())),e=0;e<=g;++e){if(!(e<g&&o(h=t[e],e,t))===p)if(p=!p)l=e,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),f=e-1;f>=l;--f)c.point(v[f],y[f]);c.lineEnd(),c.areaEnd()}p&&(v[e]=+n(h,e,t),y[e]=+i(h,e,t),c.point(r?+r(h,e,t):v[e],a?+a(h,e,t):y[e]))}if(d)return c=null,d+""||null}function e(){return Vf().defined(o).curve(u).context(s)}var n=$f,r=null,i=Sf(0),a=Yf,o=Sf(!0),s=null,u=qc,c=null;return t.x=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),r=null,t):n},t.x0=function(e){return arguments.length?(n="function"==typeof e?e:Sf(+e),t):n},t.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Sf(+e),t):r},t.y=function(e){return arguments.length?(i="function"==typeof e?e:Sf(+e),a=null,t):i},t.y0=function(e){return arguments.length?(i="function"==typeof e?e:Sf(+e),t):i},t.y1=function(e){return arguments.length?(a=null==e?null:"function"==typeof e?e:Sf(+e),t):a},t.lineX0=t.lineY0=function(){return e().x(n).y(i)},t.lineY1=function(){return e().x(n).y(a)},t.lineX1=function(){return e().x(r).y(i)},t.defined=function(e){return arguments.length?(o="function"==typeof e?e:Sf(!!e),t):o},t.curve=function(e){return arguments.length?(u=e,null!=s&&(c=u(s)),t):u},t.context=function(e){return arguments.length?(null==e?s=c=null:c=u(s=e),t):s},t}();h=a?h.y(u).x0(c).x1(l):h.x(u).y0(r.area_above?0:c).y1(l),i||(h=h.defined((function(t){return null!==n.getBaseValue(t)}))),n.isStepType(t)&&(o=n.convertValuesToStep(o)),e=h.curve(n.getCurve(t))(o)}else o[0]&&(s=n.scale.x(o[0].x),f=n.getYScaleById(t.id)(o[0].value)),e=a?"M "+f+" "+s:"M "+s+" "+f;return e||"M 0 0"}},generateGetAreaPoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);return r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c),[[f,l],[f,h-(c-l)],[f,h-(c-l)],[f,l]]}}},Hf={initBar:function(){var t=this.$el;t.bar=t.main.select("."+bn.chart).insert("g",":first-child").attr("class",bn.chartBars)},updateTargetsForBar:function(t){var e=this,n=e.config,r=e.$el,i=e.getChartClass("Bar"),a=e.getClass("bars",!0),o=e.classFocus.bind(e),s=n.interaction_enabled&&n.data_selection_isselectable;r.bar||e.initBar(),e.$el.main.select("."+bn.chartBars).selectAll("."+bn.chartBar).data(t).attr("class",(function(t){return i(t)+o(t)})).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events","none").append("g").attr("class",a).style("cursor",(function(t){return s&&s.bind(e.api)(t)?"pointer":null}))},updateBar:function(t){var e=this,n=e.$el,r=e.barData.bind(e),i=e.getClass("bar",!0),a=e.initialOpacity.bind(e);n.bar=n.main.selectAll("."+bn.bars).selectAll("."+bn.bar).data(r),n.bar.exit().transition().duration(t).style("opacity","0").remove(),n.bar=n.bar.enter().append("path").attr("class",i).style("fill",e.color).merge(n.bar).style("opacity",a)},redrawBar:function(t,e){var n=this.$el.bar;return[(e?n.transition(qa()):n).attr("d",t).style("fill",this.color).style("opacity","1")]},getBarW:function(t,e){var n=this,r=n.config,i=n.org,a=n.scale,o=n.getMaxDataCount(),s=r.data_groups.length,u=a.zoom&&!n.axis.isCategorized()?i.xDomain.map((function(t){return a.zoom(t)})).reduce((function(t,e){return Math.abs(t)+e}))/o:t.tickInterval(o),c=function(t){var n=t?r.bar_width[t]:r.bar_width,i=t?n.ratio:r.bar_width_ratio,a=t?n.max:r.bar_width_max,o=Oa(n)?n:e?u*i/e:0;return a&&o>a?a:o},l=c();return!s&&Fa(r.bar_width)&&(l={_$width:l,_$total:[]},n.filterTargetsToShow(n.data.targets).forEach((function(t){r.bar_width[t.id]&&(l[t.id]=c(t.id),l._$total.push(l[t.id]||l._$width))}))),l},getBars:function(t,e){var n=this.$el.main,r=Ea(t)?"-"+t:"";return(e?n.selectAll("."+bn.bars+this.getTargetSelectorSuffix(e)):n).selectAll("."+bn.bar+r)},expandBars:function(t,e,n){n&&this.unexpandBars(),this.getBars(t,e).classed(bn.EXPANDED,!0)},unexpandBars:function(t){this.getBars(t).classed(bn.EXPANDED,!1)},generateDrawBar:function(t,e){var n=this.config,r=this.generateGetBarPoints(t,e),i=n.axis_rotated,a=n.data_groups.length,o=n.bar_radius,s=n.bar_radius_ratio,u=Oa(o)&&o>0?function(){return o}:Oa(s)?function(t){return t*s}:null;return function(t,e){var n=r(t,e),o=+i,s=+!o,c=t.value<0,l=["",""],f=0;if(u&&!a){var h=i?s:o,d=n[2][h]-n[0][h],g="a"+(f=u(d))+","+f+" "+(c?"1 0 0":"0 0 1")+" ";l[+!i]=""+g+f+","+f,l[+i]=""+g+[-f,f][i?"sort":"reverse"](),c&&l.reverse()}var p=i?"H"+(n[1][o]-f)+" "+l[0]+"V"+(n[2][s]-f)+" "+l[1]+"H"+n[3][o]:"V"+(n[1][s]+(c?-f:f))+" "+l[0]+"H"+(n[2][o]-f)+" "+l[1]+"V"+n[3][s];return"M"+n[0][o]+","+n[0][s]+p+"z"}},generateGetBarPoints:function(t,e){var n=this,r=n.config,i=e?n.axis.subX:n.axis.x,a=n.getIndicesMax(t)+1,o=n.getBarW(i,a),s=n.getShapeX(o,t,!!e),u=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),l=n.getYScaleById.bind(n);return function(t,i){var a=l.call(n,t.id,e)(n.getShapeYMin(t.id)),f=c(t,i)||a,h=Oa(o)?o:o[t.id]||o._$width,d=s(t),g=u(t);r.axis_rotated&&(t.value>0&&g<a||t.value<0&&a<g)&&(g=a);var p=d+h;return[[d,f],[d,g-=a-f],[p,g],[p,f]]}},isWithinBar:function(t){var e=zr(t),n=Ga(t),r=n[0],i=n[1],a=Math.min(r.x,i.x),o=Math.min(r.y,i.y),s=this.config.bar_sensitivity,u=t.getBBox(),c=u.width,l=u.height;return a-s<e[0]&&e[0]<a+c+s&&o-s<e[1]&&e[1]<o+l+s}},Wf={initGauge:function(){var t=this,e=t.config,n=t.$el.arcs,r=function(t){n.append("text").attr("class",t).style("text-anchor","middle").style("pointer-events","none")};if(t.hasType("gauge")){var i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",bn.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&r(bn.chartArcsGaugeUnit),e.gauge_label_show&&(r(bn.chartArcsGaugeMin),!e.gauge_fullCircle&&r(bn.chartArcsGaugeMax))}},updateGaugeMax:function(){var t=this,e=t.config,n=t.state,r=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);r>e.gauge_max&&(e.gauge_max=r)},redrawMultiArcGauge:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=t.state.hiddenTargetIds,a=r.main.selectAll("."+bn.arcs).selectAll("."+bn.arcLabelLine).data(t.arcData.bind(t));a.enter().append("rect").attr("class",(function(t){return bn.arcLabelLine+" "+bn.target+" "+bn.target+"-"+t.data.id})).merge(a).style("fill",(function(e){return t.levelColor?t.levelColor(e.data.values[0].value):t.color(e.data)})).style("display",e.gauge_label_show?"":"none").each((function(e){var r=0,a=0,o=0,s="";if(i.indexOf(e.data.id)<0){var u=t.updateAngle(e),c=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(u.index+1),l=u.endAngle-Math.PI/2,f=n.radius-c,h=l-(0===f?0:1/f);r=n.radiusExpanded-n.radius+c,a=Math.cos(h)*f,o=Math.sin(h)*f,s="rotate("+180*l/Math.PI+", "+a+", "+o+")"}mn(this).attr("x",a).attr("y",o).attr("width",r).attr("height",2).attr("transform",s).style("stroke-dasharray","0, "+(r+2)+", 0")}))},textForGaugeMinMax:function(t,e){var n=this.config.gauge_label_extents;return Ma(n)?n.bind(this.api)(t,e):t},getGaugeLabelHeight:function(){var t=this.config;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge:function(){return this.getGaugeLabelHeight()*(this.config.gauge_label_show?2:2.5)}},qf={initBubble:function(){var t=this.config;this.hasType("bubble")&&(t.point_show=!0,t.point_type="circle",t.point_sensitivity=25)},getBaseLength:function(){var t=this,e=t.state,n=e.width,r=e.height,i=vo,a=t.cache.get(i);return a||t.cache.add(i,a=oo("min",[n,r])),a},getBubbleR:function(t){var e=this,n=e.config.bubble_maxR;Ma(n)?n=n.bind(e.api)(t):!Oa(n)&&(n=e.getBaseLength()/(2*e.getMaxDataCount())+12);var r=oo("max",e.getMinMaxData().max.map((function(t){return e.isBubbleZType(t)?e.getBubbleZData(t.value,"y"):Xa(t.value)?t.value.mid:t.value}))),i=n*n*Math.PI,a=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/r);return Math.sqrt(a/Math.PI)},getBubbleZData:function(t,e){return Xa(t)?t[e]:t["y"===e?0:1]}},Zf={initLine:function(){var t=this.$el;t.line=t.main.select("."+bn.chart).append("g").attr("class",bn.chartLines)},updateTargetsForLine:function(t){var e=this,n=e.$el,r=n.area,i=n.line,a=n.main,o=e.getChartClass("Line"),s=e.getClass("lines",!0),u=e.classFocus.bind(e);i||e.initLine();var c=t.filter((function(t){return!(e.isScatterType(t)||e.isBubbleType(t))})),l=a.select("."+bn.chartLines).selectAll("."+bn.chartLine).data(c).attr("class",(function(t){return o(t)+u(t)})),f=l.enter().append("g").attr("class",o).style("opacity","0").style("pointer-events","none");f.append("g").attr("class",s),e.hasTypeOf("Area")&&e.initArea(!r&&f.empty()?l:f),e.updateTargetForCircle(c,f)},updateLine:function(t){var e=this,n=e.format.extraLineClasses,r=e.$el;r.line=r.main.selectAll("."+bn.lines).selectAll("."+bn.line).data(e.lineData.bind(e)),r.line.exit().transition().duration(t).style("opacity","0").remove(),r.line=r.line.enter().append("path").attr("class",(function(t){return e.getClass("line",!0)(t)+" "+(n(t)||"")})).style("stroke",e.color).merge(r.line).style("opacity",e.initialOpacity.bind(e)).style("shape-rendering",(function(t){return e.isStepType(t)?"crispEdges":""})).attr("transform",null)},redrawLine:function(t,e){var n=this.$el.line;return[(e?n.transition(qa()):n).attr("d",t).style("stroke",this.color).style("opacity","1")]},getCurve:function(t){var e=this;return e.config.axis_rotated&&e.isStepType(t)?function(n){var r=e.getInterpolate(t)(n);return r.orgPoint=r.point,r.pointRotated=function(t,e){1===this._point&&(this._point=2);var n=this._y*(1-this._t)+e*this._t;this._context.lineTo(this._x,n),this._context.lineTo(t,n),this._x=t,this._y=e},r.point=function(t,e){0===this._point?this.orgPoint(t,e):this.pointRotated(t,e)},r}:e.getInterpolate(t)},generateDrawLine:function(t,e){var n=this,r=n.config,i=n.scale,a=r.line_connectNull,o=r.axis_rotated,s=n.generateGetLinePoints(t,e),u=n.getYScaleById.bind(n),c=function(t){return(e?n.subxx:n.xx).call(n,t)},l=function(t,r){return n.isGrouped(t.id)?s(t,r)[0][1]:u(t.id,e)(n.getBaseValue(t))},f=Vf();f=o?f.x(l).y(c):f.x(c).y(l),a||(f=f.defined((function(t){return null!==n.getBaseValue(t)})));var h=e?i.subX:i.x;return function(t){var i,s=u(t.id,e),c=a?n.filterRemoveNull(t.values):t.values,l=0,d=0;if(n.isLineType(t)){var g=r.data_regions[t.id];g?i=n.lineWithRegions(c,h,s,g):(n.isStepType(t)&&(c=n.convertValuesToStep(c)),i=f.curve(n.getCurve(t))(c))}else c[0]&&(l=h(c[0].x),d=s(c[0].value)),i=o?"M "+d+" "+l:"M "+l+" "+d;return i||"M 0 0"}},lineWithRegions:function(t,e,n,r){var i,a,o,s,u=this,c=u.config.axis_rotated,l=u.axis.isTimeSeries(),f=u.axis.isCategorized()?.5:0,h=[],d=function(t,e){for(var n,r=0;n=e[r];r++)if(n.start<t&&t<=n.end)return n.style;return!1};if(Ca(r))for(var g,p=function(t,e){return Ra(t)?e:l?lo.call(u,t):t},v=0;g=r[v];v++){var y=p(g.start,t[0].x),x=p(g.end,t[t.length-1].x),_=g.style||{dasharray:"2 2"};h[v]={start:y,end:x,style:_}}for(var m,b=c?function(t){return n(t.value)}:function(t){return e(t.x)},w=c?function(t){return e(t.x)}:function(t){return n(t.value)},T=function(t){return"M"+t[0][0]+","+t[0][1]+"L"+t[1][0]+","+t[1][1]},A=l?function(t,r,i,s){var u=t.x.getTime(),l=r.x-t.x,f=new Date(u+l*i),h=new Date(u+l*(i+s)),d=c?[[n(a(i)),e(f)],[n(a(i+o)),e(h)]]:[[e(f),n(a(i))],[e(h),n(a(i+o))]];return T(d)}:function(t,r,o,s){var u=c?[[n(a(o),!0),e(i(o))],[n(a(o+s),!0),e(i(o+s))]]:[[e(i(o),!0),n(a(o))],[e(i(o+s),!0),n(a(o+s))]];return T(u)},S={x:u.axis.getAxisType("x"),y:u.axis.getAxisType("y")},E="",M=0;m=t[M];M++){var k=t[M-1],O=k&&Ea(k.value);_=d(m.x,h);if(Ea(m.value))if(!Ra(h)&&_&&O){if(O){try{_=_.dasharray.split(" ")}catch(t){_=["2","2"]}i=Zu(S.x,k.x+f,m.x+f),a=Zu(S.y,k.value,m.value);var R=e(m.x)-e(k.x),C=n(m.value)-n(k.value),I=Math.sqrt(Math.pow(R,2)+Math.pow(C,2));s=(o=_[0]/I)*_[1];for(var L=o;L<=1;L+=s)E+=A(k,m,L,o),L+s>=1&&(E+=A(k,m,1,0))}}else E+=(M&&O?"L":"M")+b(m)+","+w(m)}return E},isWithinStep:function(t,e){return Math.abs(e-zr(t)[1])<30},shouldDrawPointsForLine:function(t){var e=this.config.line_point;return!0===e||Ba(e)&&-1!==e.indexOf(t.id)}},Kf=function(){return qa()},Jf={hasValidPointType:function(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasValidPointDrawMethods:function(t){var e=t||this.config.point_type;return Fa(e)&&Ma(e.create)&&Ma(e.update)},initialOpacityForCircle:function(t){var e=this.config,n=this.state.withoutFadeIn,r=e.point_opacity;return Ra(r)&&(r=null!==this.getBaseValue(t)&&n[t.id]?this.opacityForCircle(t):"0"),r},opacityForCircle:function(t){var e=this.config,n=e.point_opacity;return Ra(n)&&(n=e.point_show&&!e.point_focus_only?"1":"0",n=Ea(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":n:"0"),n},initCircle:function(){var t=this,e=t.$el.main;t.point=t.generatePoint(),(t.hasType("bubble")||t.hasType("scatter"))&&e.select("."+bn.chartCircles).empty()&&e.select("."+bn.chart).append("g").attr("class",bn.chartCircles)},updateTargetForCircle:function(t,e){var n=this,r=this,i=r.config,a=r.data,o=r.$el,s=i.interaction_enabled&&i.data_selection_enabled,u=s&&i.data_selection_isselectable,c=r.getClass("circles",!0);if(i.point_show){o.circle||r.initCircle();var l=t,f=e;if(!l){l=a.targets.filter((function(t){return n.isScatterType(t)||n.isBubbleType(t)}));var h=o.main.select("."+bn.chartCircles).style("pointer-events","none").selectAll("."+bn.circles).data(l).attr("class",c);h.exit().remove(),f=h.enter()}s&&f.append("g").attr("class",(function(t){return r.generateClass(bn.selectedCircles,t.id)})),f.append("g").attr("class",c).style("cursor",(function(t){return u&&u(t)?"pointer":null})),s&&l.forEach((function(t){o.main.selectAll("."+bn.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll(""+bn.selectedCircle).each((function(e){e.value=t.values[e.index].value}))}))}},updateCircle:function(){var t=this,e=t.config,n=t.state,r=t.$el,i=e.point_focus_only;if(e.point_show&&!n.toggling){var a=r.main.selectAll("."+bn.circles).selectAll("."+bn.circle).data((function(e){return t.isLineType(e)&&t.shouldDrawPointsForLine(e)||t.isBubbleType(e)||t.isRadarType(e)||t.isScatterType(e)?i?[e.values[0]]:e.values:[]}));a.exit().remove(),a.enter().filter(Boolean).append(t.point("create",this,t.pointR.bind(t),t.color)),r.circle=r.main.selectAll("."+bn.circles+" ."+bn.circle).style("stroke",t.color).style("opacity",t.initialOpacityForCircle.bind(t))}},redrawCircle:function(t,e,n,r){var i=this,a=i.state.rendered,o=i.$el,s=o.circle,u=o.main.selectAll("."+bn.selectedCircle);if(!i.config.point_show)return[];var c=i.point("update",i,t,e,i.color,n,r,u),l=i.isCirclePoint()?"c":"",f=qa(),h=i.opacityForCircle.bind(i),d=[];return s.each((function(t){var e=c.bind(this)(t);e=(n||!a?e.transition(f):e).style("opacity",h),d.push(e)})),[d,(n?u.transition():u).attr(l+"x",t).attr(l+"y",e)]},showCircleFocus:function(t){var e=this,n=e.config,r=e.state,i=r.hasRadar,a=r.resizing,o=r.toggling,s=r.transiting,u=e.$el.circle;if(!1===s&&n.point_focus_only&&u){var c=(i?e.radarCircleX:e.circleX).bind(e),l=(i?e.radarCircleY:e.circleY).bind(e),f=o||Ra(t),h=e.point("update",e,c,l,e.color,!a&&f);t&&(u=u.filter((function(e){var n=t.filter((function(t){return t.id===e.id}));return!!n.length&&mn(this).datum(n[0])}))),u.attr("class",this.updatePointClass.bind(this)).style("opacity","1").each((function(t){var n=t.id,r=t.index,i=t.value,a="hidden";Ea(i)&&(h.bind(this)(t),e.expandCircles(r,n),a=""),this.style.visibility=a}))}},hideCircleFocus:function(){var t=this,e=t.config,n=t.$el.circle;e.point_focus_only&&n&&(t.unexpandCircles(),n.style("visibility","hidden"))},circleX:function(t){return this.xx(t)},updateCircleY:function(){var t=this,e=t.generateGetLinePoints(t.getShapeIndices(t.isLineType),!1);t.circleY=function(n,r){var i=n.id;return t.isGrouped(i)?e(n,r)[0][1]:t.getYScaleById(i)(t.getBaseValue(n))}},getCircles:function(t,e){var n=this,r=Ea(t)?"-"+t:"";return(e?n.$el.main.selectAll("."+bn.circles+n.getTargetSelectorSuffix(e)):n.$el.main).selectAll("."+bn.circle+r)},expandCircles:function(t,e,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles();var a=r.getCircles(t,e).classed(bn.EXPANDED,!0),o=i(a)/r.config.point_r,s=1-o;r.isCirclePoint()?a.attr("r",i):a.each((function(){var t=mn(this);if("circle"===this.tagName)t.attr("r",i);else{var e=this.getBBox(),n=e.width,r=e.height,a=s*(+t.attr("x")+n/2),u=s*(+t.attr("y")+r/2);t.attr("transform","translate("+a+" "+u+") scale("+o+")")}}))},unexpandCircles:function(t){var e=this,n=e.pointR.bind(e),r=e.getCircles(t).filter((function(){return mn(this).classed(bn.EXPANDED)})).classed(bn.EXPANDED,!1);r.attr("r",n),e.isCirclePoint()||r.attr("transform","scale("+n(r)/e.config.point_r+")")},pointR:function(t){var e=this,n=e.config.point_r,r=n;return e.isBubbleType(t)?r=e.getBubbleR(t):Ma(n)&&(r=n.bind(e.api)(t)),r},pointExpandedR:function(t){var e=this,n=e.config,r=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*r:e.pointR(t)},pointSelectR:function(t){var e=this.config.point_select_r;return Ma(e)?e(t):e||4*this.pointR(t)},isWithinCircle:function(t,e){var n=zr(t),r=mn(t),i=this.isCirclePoint(t)?"c":"",a=+r.attr(i+"x"),o=+r.attr(i+"y");if(!a&&!o&&1===t.nodeType){var s=Wa(t);a=s.x,o=s.y}return Math.sqrt(Math.pow(a-n[0],2)+Math.pow(o-n[1],2))<(e||this.config.point_sensitivity)},insertPointInfoDefs:function(t,e){var n=function(t,e){for(var n,r=t.attributes,i=0;n=r[i];i++)n=n.name,e.setAttribute(n,t.getAttribute(n))},r=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement,i=Ta.createElementNS(me.svg,r.nodeName.toLowerCase());if(i.id=e,i.style.fill="inherit",i.style.stroke="inherit",n(r,i),r.childNodes&&r.childNodes.length){var a=mn(i);"innerHTML"in i?a.html(r.innerHTML):to(r.childNodes).forEach((function(t){n(t,a.append(t.tagName).node())}))}this.$el.defs.node().appendChild(i)},pointFromDefs:function(t){return this.$el.defs.select("#"+t)},updatePointClass:function(t){var e=this,n=e.$el.circle,r=!1;return(Xa(t)||n)&&(r=!0===t?n.each((function(t){var n=e.getClass("circle",!0)(t);this.getAttribute("class").indexOf(bn.EXPANDED)>-1&&(n+=" "+bn.EXPANDED),this.setAttribute("class",n)})):e.getClass("circle",!0)(t)),r},generateGetLinePoints:function(t,e){var n=this,r=n.config,i=n.getShapeX(0,t,e),a=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),s=n.getYScaleById.bind(n);return function(t,u){var c=s.call(n,t.id,e)(n.getShapeYMin(t.id)),l=o(t,u)||c,f=i(t),h=a(t);r.axis_rotated&&(t.value>0&&h<c||t.value<0&&c<h)&&(h=c);var d=[f,h-(c-l)];return[d,d,d,d]}},generatePoint:function(){var t=this,e=t.config,n=t.state.datetimeId,r=[],i=Na(e.point_pattern)?e.point_pattern:[e.point_type];return function(e,a){for(var o=arguments.length,s=Array(o>2?o-2:0),u=2;u<o;u++)s[u-2]=arguments[u];return function(o){var u=t.getTargetSelectorSuffix(o.id||o.data&&o.data.id||o),c=mn(this);r.indexOf(u)<0&&r.push(u);var l=i[r.indexOf(u)%i.length];if(t.hasValidPointType(l))l=t[l];else if(!t.hasValidPointDrawMethods(l)){var f=n+"-point"+u;if(t.pointFromDefs(f).size()<1&&t.insertPointInfoDefs(l,f),"create"===e)return t.custom.create.bind(a).apply(void 0,[c,f].concat(s));if("update"===e)return t.custom.update.bind(a).apply(void 0,[c].concat(s))}return l[e].bind(a).apply(void 0,[c].concat(s))}}},custom:{create:function(t,e,n,r){return t.append("use").attr("xlink:href","#"+e).attr("class",this.updatePointClass.bind(this)).style("fill",r).node()},update:function(t,e,n,r,i,a,o){var s=t.node().getBBox(),u=s.width,c=s.height,l=function(t){return e(t)-u/2},f=t;if(i){var h=Kf();a&&f.attr("x",l),f=f.transition(h),o&&o.transition(Kf())}return f.attr("x",l).attr("y",(function(t){return n(t)-c/2})).style("fill",r)}},circle:{create:function(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this,u=t;if(s.hasType("bubble")&&u.attr("r",s.pointR.bind(s)),i){var c=Kf();a&&u.attr("cx",e),u.attr("cx")&&(u=u.transition(c)),o&&o.transition(Kf())}return u.attr("cx",e).attr("cy",n).style("fill",r)}},rectangle:{create:function(t,e,n){var r=function(t){return 2*e(t)};return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",r).attr("height",r).style("fill",n).node()},update:function(t,e,n,r,i,a,o){var s=this.config.point_r,u=function(t){return e(t)-s},c=t;if(i){var l=Kf();a&&c.attr("x",u),c=c.transition(l),o&&o.transition(Kf())}return c.attr("x",u).attr("y",(function(t){return n(t)-s})).style("fill",r)}}};var Qf=wo,th={initRadar:function(){var t=this,e=t.config,n=t.state.current,r=t.$el;t.hasType("radar")&&(r.radar=r.main.select("."+bn.chart).append("g").attr("class",bn.chartRadars),r.radar.levels=r.radar.append("g").attr("class",bn.levels),r.radar.axes=r.radar.append("g").attr("class",bn.axis),r.radar.shapes=r.radar.append("g").attr("class",bn.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value)},getRadarSize:function(){var t=this.config,e=this.state,n=e.arcWidth,r=e.arcHeight,i=t.axis_x_categories.length<4?-20:10,a=(Math.min(n,r)-i)/2;return[a,a]},updateTargetsForRadar:function(t){var e=this.config;za(e.axis_x_categories)&&(e.axis_x_categories=so(0,oo("max",t.map((function(t){return t.values.length}))))),this.generateRadarPoints()},getRadarPosition:function(t,e,n,r){var i=this.config,a=this.getRadarSize(),o=a[0],s=a[1],u=i.axis_x_categories.length,c=i.radar_direction_clockwise,l=to(t).map((function(a){return function(t,e,n,r,i,a){var o=t&&r>0?n-r:r,s=2*Math.PI;return i*(1-a*("x"===e?Math.sin:Math.cos)(o*s/n))}(c,a,u,e,Ca(n)?n:"x"===t?o:s,Oa(r)?r:i.radar_size_ratio)}));return 1===l.length?l[0]:l},generateRadarPoints:function(){var t=this,e=t.data.targets,n=t.getRadarSize(),r=n[0],i=n[1],a=t.cache.get(Qf)||{},o=a._size;o&&(o.width===r||o.height===i)||(e.forEach((function(e){a[e.id]=e.values.map((function(e,n){return t.getRadarPosition(["x","y"],n,void 0,t.getRatio("radar",e))}))})),a._size={width:r,height:i},t.cache.add(Qf,a))},redrawRadar:function(t){var e=this,n=e.$el,r=n.radar,i=n.main,a=e.getTranslate("radar");a&&(r.attr("transform",a),i.select("."+bn.chartTexts).attr("transform",a),e.generateRadarPoints(),e.updateRadarLevel(),e.updateRadarAxes(),e.updateRadarShape(t))},generateGetRadarPoints:function(){var t=this.cache.get(Qf);return function(e,n){var r=t[e.id][n];return[r,r,r,r]}},updateRadarLevel:function(){var t=this,e=t.config,n=t.state,r=t.$el.radar,i=t.getRadarSize(),a=i[0],o=i[1],s=e.radar_level_depth,u=e.axis_x_categories.length,c=e.radar_level_text_show,l=r.levels,f=so(0,s),h=e.radar_size_ratio*Math.min(a,o),d=f.map((function(t){return h*((t+1)/s)})),g=(e.radar_level_text_format||function(){}).bind(t.api),p=f.map((function(e){var n=d[e];return so(0,u).map((function(e){return t.getRadarPosition(["x","y"],e,n,1).join(",")})).join(" ")})),v=l.selectAll("."+bn.level).data(f);v.exit().remove();var y=v.enter().append("g").attr("class",(function(t,e){return bn.level+" "+bn.level+"-"+e}));y.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(l.select("text").empty()&&l.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text((function(){return g(0)})),y.append("text").attr("dx","-.5em").style("text-anchor","end").text((function(t){return g(n.current.dataMax/f.length*(t+1))}))),y.merge(v).attr("transform",(function(t){return"translate("+(a-d[t])+", "+(o-d[t])+")"})).selectAll("polygon").attr("points",(function(t){return p[t]})),c&&l.selectAll("text").attr("x",(function(t){return Ra(t)?a:p[t].split(",")[0]})).attr("y",(function(t){return Ra(t)?o:0}))},updateRadarAxes:function(){var t=this,e=t.config,n=t.$el.radar,r=t.getRadarSize(),i=r[0],a=r[1],o=e.axis_x_categories,s=n.axes.selectAll("g").data(o);s.exit().remove();var u=s.enter().append("g").attr("class",(function(t,e){return bn.axis+"-"+e}));if(e.radar_axis_line_show&&u.append("line"),e.radar_axis_text_show&&u.append("text"),s=u.merge(s),e.radar_axis_line_show&&s.select("line").attr("x1",i).attr("y1",a).attr("x2",(function(e,n){return t.getRadarPosition("x",n)})).attr("y2",(function(e,n){return t.getRadarPosition("y",n)})),e.radar_axis_text_show){var c=e.radar_axis_text_position,l=c.x,f=void 0===l?0:l,h=c.y,d=void 0===h?0:h;s.select("text").style("text-anchor","middle").attr("dy",".5em").call((function(t){t.each((function(t){Va(mn(this),t+"",[-.6,1.2])}))})).datum((function(t,e){return{index:e}})).attr("transform",(function(e){Ra(this.width)&&(this.width=this.getBoundingClientRect().width/2);var n=t.getRadarPosition("x",e.index,void 0,1),r=Math.round(t.getRadarPosition("y",e.index,void 0,1));return n>i?n+=this.width+f:Math.round(n)<i&&(n-=this.width+f),r>a?(r/2===a&&"tspan"===this.firstChild.tagName&&this.firstChild.setAttribute("dy","0em"),r+=d):r<a&&(r-=d),"translate("+n+" "+r+")"}))}t.bindEvent()},bindEvent:function(){var t=this,e=t.config,n=t.state,r=n.inputType,i=n.transiting,a=t.$el,o=a.radar,s=a.svg,u=e.point_focus_only;if(e.interaction_enabled){var c="mouse"===r,l=function(){var t=sn.target;/tspan/i.test(t.tagName)&&(t=t.parentNode);var e=mn(t).datum();return e&&1===Object.keys(e).length?e.index:void 0},f=function(){var e=l(),n=Ra(e);(c||n)&&(t.hideTooltip(),u?t.hideCircleFocus():t.unexpandCircles(),c?t.setOverOut(!1,e):n&&t.callOverOutForTouch())};o.axes.selectAll("text").on(c?"mouseover ":"touchstart",(function(){if(!i){var e=l();t.selectRectForSingle(s.node(),null,e),c?t.setOverOut(!0,e):t.callOverOutForTouch(e)}})).on("mouseout",c?f:null),c||s.on("touchstart",f)}},updateRadarShape:function(t){var e=this,n=e.data.targets.filter((function(t){return e.isRadarType(t)})),r=e.cache.get(Qf),i=e.$el.radar.shapes.selectAll("polygon").data(n),a=i.enter().append("g").attr("class",e.getChartClass("Radar"));i.exit().transition().duration(t).remove(),a.append("polygon").merge(i).style("fill",e.color).style("stroke",e.color).attr("points",(function(t){return r[t.id].join(" ")})),e.updateTargetForCircle(n,a)},radarCircleX:function(t){return this.cache.get(Qf)[t.id][t.index][0]},radarCircleY:function(t){return this.cache.get(Qf)[t.id][t.index][1]}},eh={point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},nh={area_above:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},rh={bar_label_threshold:0,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},ih={bubble_maxR:35,bubble_zerobased:!1},ah={line_connectNull:!1,line_step_type:"step",line_zerobased:!1,line_classes:void 0,line_point:!0},oh={scatter_zerobased:!1},sh={spline_interpolation_type:"cardinal"},uh={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},ch={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_label_extents:void 0,gauge_label_threshold:0,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},lh={pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},fh={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:function(t){return t%1==0?t:t.toFixed(2)},radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1};function hh(t,e){Ja(cl.prototype,Tf.concat(t)),Ja(Al.prototype,wf),po.setOptions(Af.concat(e||[]))}function dh(t,e){hh([Jf,Zf].concat(t||[])),po.setOptions([eh,ah].concat(e||[]))}function gh(t,e){Ja(cl.prototype,[Uf].concat(t||[])),po.setOptions(e)}var ph=function(){return dh(Gf,[nh]),(ph=function(){return $u.AREA})()},vh=function(){return dh(Gf,[nh]),(vh=function(){return $u.AREA_LINE_RANGE})()},yh=function(){return dh(Gf,[nh,sh]),(yh=function(){return $u.AREA_SPLINE})()},xh=function(){return dh(Gf,[nh,sh]),(xh=function(){return $u.AREA_SPLINE_RANGE})()},_h=function(){return dh(Gf,[nh]),(_h=function(){return $u.AREA_STEP})()},mh=function(){return dh(),(mh=function(){return $u.LINE})()},bh=function(){return dh(void 0,[sh]),(bh=function(){return $u.SPLINE})()},wh=function(){return dh(),(wh=function(){return $u.STEP})()},Th=function(){return gh(void 0,[uh]),(Th=function(){return $u.DONUT})()},Ah=function(){return gh([Wf],[ch]),(Ah=function(){return $u.GAUGE})()},Sh=function(){return gh(void 0,[lh]),(Sh=function(){return $u.PIE})()},Eh=function(){return gh([Jf,th],[eh,fh]),(Eh=function(){return $u.RADAR})()},Mh=function(){return hh([Hf],rh),(Mh=function(){return $u.BAR})()},kh=function(){return hh([Jf,qf],[ih,eh]),(kh=function(){return $u.BUBBLE})()},Oh=function(){return hh([Jf],[eh,oh]),(Oh=function(){return $u.SCATTER})()},Rh={selected:function(t){var e=this.internal,n=[];return e.$el.main.selectAll("."+(bn.shapes+e.getTargetSelectorSuffix(t))).selectAll("."+bn.shape).filter((function(){return mn(this).classed(bn.SELECTED)})).each((function(t){return n.push(t)})),n},select:function(t,e,n){var r=this.internal,i=r.config,a=r.$el;i.data_selection_enabled&&a.main.selectAll("."+bn.shapes).selectAll("."+bn.shape).each((function(a,o){var s=mn(this),u=a.data?a.data.id:a.id,c=r.getToggle(this,a).bind(r),l=i.data_selection_grouped||!t||t.indexOf(u)>=0,f=!e||e.indexOf(o)>=0,h=s.classed(bn.SELECTED);s.classed(bn.line)||s.classed(bn.area)||(l&&f?i.data_selection_isselectable.bind(r.api)(a)&&!h&&c(!0,s.classed(bn.SELECTED,!0),a,o):Ca(n)&&n&&h&&c(!1,s.classed(bn.SELECTED,!1),a,o))}))},unselect:function(t,e){var n=this.internal,r=n.config,i=n.$el;r.data_selection_enabled&&i.main.selectAll("."+bn.shapes).selectAll("."+bn.shape).each((function(i,a){var o=mn(this),s=i.data?i.data.id:i.id,u=n.getToggle(this,i).bind(n),c=r.data_selection_grouped||!t||t.indexOf(s)>=0,l=!e||e.indexOf(a)>=0,f=o.classed(bn.SELECTED);o.classed(bn.line)||o.classed(bn.area)||c&&l&&r.data_selection_isselectable.bind(n.api)(i)&&f&&u(!1,o.classed(bn.SELECTED,!1),i,a)}))}},Ch=Math.SQRT2,Ih=2,Lh=4,Dh=1e-12;function Ph(t){return((t=Math.exp(t))+1/t)/2}function Fh(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],u=e[1],c=e[2],l=s-i,f=u-a,h=l*l+f*f;if(h<Dh)r=Math.log(c/o)/Ch,n=function(t){return[i+t*l,a+t*f,o*Math.exp(Ch*t*r)]};else{var d=Math.sqrt(h),g=(c*c-o*o+Lh*h)/(2*o*Ih*d),p=(c*c-o*o-Lh*h)/(2*c*Ih*d),v=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(p*p+1)-p);r=(y-v)/Ch,n=function(t){var e=t*r,n=Ph(v),s=o/(Ih*d)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(Ch*e+v)-function(t){return((t=Math.exp(t))-1/t)/2}(v));return[i+s*l,a+s*f,o*n/Ph(Ch*e+v)]}}return n.duration=1e3*r,n}function zh(t){return function(){return t}}function Nh(t,e,n){this.target=t,this.type=e,this.transform=n}function Bh(t,e,n){this.k=t,this.x=e,this.y=n}Bh.prototype={constructor:Bh,scale:function(t){return 1===t?this:new Bh(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new Bh(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 Xh=new Bh(1,0,0);function jh(t){for(;!t.__zoom;)if(!(t=t.parentNode))return Xh;return t.__zoom}function Uh(){sn.stopImmediatePropagation()}function $h(){sn.preventDefault(),sn.stopImmediatePropagation()}function Yh(){return!sn.ctrlKey&&!sn.button}function Vh(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function Gh(){return this.__zoom||Xh}function Hh(){return-sn.deltaY*(1===sn.deltaMode?.05:sn.deltaMode?1:.002)}function Wh(){return navigator.maxTouchPoints||"ontouchstart"in this}function qh(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}jh.prototype=Bh.prototype;var Zh=function(t){var e,n=this.internal,r=n.config,i=n.scale,a=t;if(r.zoom_enabled&&a){if(n.axis.isTimeSeries()&&(a=a.map((function(t){return lo.bind(n)(t)}))),function(t,e){var n=e[0],r=e[1];return t.every((function(t,e){return 0===e?t>=n:t<=r}))}(a,n.getZoomDomain())){if(n.api.tooltip.hide(),r.subchart_show){var o=i.zoom||i.x;n.brush.getSelection().call(n.brush.move,[o(a[0]),o(a[1])]),e=a}else i.x.domain(a),i.zoom=i.x,n.axis.x.scale(i.zoom),e=i.zoom.orgDomain();n.redraw({withTransition:!0,withY:r.zoom_rescale,withDimension:!1}),n.setZoomResetButton(),Ua(r.zoom_onzoom,n.api,e)}}else e=i.zoom?i.zoom.domain():i.x.orgDomain();return e};Ja(Zh,{enable:function(t){var e=this.internal,n=e.config;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?!1===t&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_max=oo("max",[r[1],t])),n.zoom_x_max},min:function(t){var e=this.internal,n=e.config,r=e.org.xDomain;return(0===t||t)&&(n.zoom_x_min=oo("min",[r[0],t])),n.zoom_x_min},range:function(t){var e=this.zoom;if(Xa(t)){var n=t.min,r=t.max;Ca(n)&&e.min(n),Ca(r)&&e.max(r)}return{min:e.min(),max:e.max()}}});var Kh={zoom:Zh,unzoom:function(){var t=this.internal,e=t.config;if(t.scale.zoom){e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(Xh),t.updateZoom(!0),t.zoom.resetBtn&&t.zoom.resetBtn.style("display","none");var n=t.$el.main.select("."+bn.eventRects);jh(n.node())!==Xh&&t.zoom.transform(n,Xh),t.redraw({withTransition:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withY:e.zoom_rescale})}}},Jh={drag:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main,a=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(!e.hasArcType()&&n.data_selection_enabled&&(!n.zoom_enabled||e.zoom.altDomain)&&n.data_selection_multiple){var s=r.dragStart||[0,0],u=s[0],c=s[1],l=t[0],f=t[1],h=Math.min(u,l),d=Math.max(u,l),g=a?r.margin.top:Math.min(c,f),p=a?r.height:Math.max(c,f);i.select("."+bn.dragarea).attr("x",h).attr("y",g).attr("width",d-h).attr("height",p-g),i.selectAll("."+bn.shapes).selectAll("."+bn.shape).filter((function(t){return o&&o.bind(e.api)(t)})).each((function(t,n){var r,i=mn(this),a=i.classed(bn.SELECTED),o=i.classed(bn.INCLUDED),s=!1;if(i.classed(bn.circle)){var u=1*+i.attr("cx"),c=1*+i.attr("cy");r=e.togglePoint,s=h<u&&u<d&&g<c&&c<p}else{if(!i.classed(bn.bar))return;var l=function(t){var e=t.getBoundingClientRect(),n=e.width,r=e.height,i=Ga(t);return{x:i[0].x,y:Math.min(i[0].y,i[1].y),width:n,height:r}}(this),f=l.x,v=(c=l.y,l.width),y=l.height;r=e.togglePath,s=!(d<f||f+v<h||p<c||c+y<g)}s^o&&(i.classed(bn.INCLUDED,!o),i.classed(bn.SELECTED,!a),r.call(e,!a,i,t,n))}))}},dragstart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.main;e.hasArcType()||!n.data_selection_enabled||(r.dragStart=t,i.select("."+bn.chart).append("rect").attr("class",bn.dragarea).style("opacity","0.1"),e.setDragStatus(!0))},dragend:function(){var t=this,e=t.config,n=t.$el.main;t.hasArcType()||!e.data_selection_enabled||(n.select("."+bn.dragarea).transition().duration(100).style("opacity","0").remove(),n.selectAll("."+bn.shape).classed(bn.INCLUDED,!1),t.setDragStatus(!1))}};function Qh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function td(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?Qh(Object(e),!0).forEach((function(n){En(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Qh(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}var ed=td(td({},Jh),{},{selectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el.main,o=i.axis_rotated,s=(o?r.circleY:r.circleX).bind(r),u=(o?r.circleX:r.circleY).bind(r),c=r.pointSelectR.bind(r);Ua(i.data_onselected,r.api,e,t.node()),a.select("."+bn.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+bn.selectedCircle+"-"+n).data([e]).enter().append("circle").attr("class",(function(){return r.generateClass(bn.selectedCircle,n)})).attr("cx",s).attr("cy",u).attr("stroke",r.color).attr("r",(function(t){return 1.4*r.pointSelectR(t)})).transition().duration(100).attr("r",c)},unselectPoint:function(t,e,n){var r=this,i=r.config,a=r.$el;Ua(i.data_onunselected,r.api,e,t.node()),a.main.select("."+bn.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+bn.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},togglePoint:function(t,e,n,r){this[(t?"":"un")+"selectPoint"](e,n,r)},selectPath:function(t,e){var n=this,r=n.config;Ua(r.data_onselected,n.api,e,t.node()),r.interaction_brighten&&t.transition().duration(100).style("fill",(function(){return ur(n.color(e)).brighter(.75)}))},unselectPath:function(t,e){var n=this,r=n.config;Ua(r.data_onunselected,n.api,e,t.node()),r.interaction_brighten&&t.transition().duration(100).style("fill",(function(){return n.color(e)}))},togglePath:function(t,e,n,r){this[(t?"":"un")+"selectPath"](e,n,r)},getToggle:function(t,e){var n=this;return"path"===t.nodeName?n.togglePath:n.isStepType(e)?function(){}:n.togglePoint},toggleShape:function(t,e,n){var r,i=this,a=i.config,o=i.$el.main,s=mn(t),u=s.classed(bn.SELECTED),c=i.getToggle(t,e).bind(i);if(a.data_selection_enabled&&a.data_selection_isselectable.bind(i.api)(e)){if(!a.data_selection_multiple){var l="."+bn.shapes;a.data_selection_grouped&&(l+=i.getTargetSelectorSuffix(e.id)),o.selectAll(l).selectAll("."+bn.shape).each((function(t,e){var n=mn(this);n.classed(bn.SELECTED)&&(r=n,c(!1,n.classed(bn.SELECTED,!1),t,e))}))}r&&r.node()===s.node()||(s.classed(bn.SELECTED,!u),c(!u,s,e,n))}}}),nd={initBrush:function(){var t=this,e=t.config,n=t.scale,r=t.$el.subchart,i=e.axis_rotated;t.brush=ba(i?ca:ua);var a,o,s=function(){t.redrawForBrush()};t.brush.on("start",(function(){"touch"===t.state.inputType&&t.hideTooltip(),s()})).on("brush",s).on("end",(function(){a=n.x.orgDomain()})),t.brush.updateResize=function(){var t=this;o&&clearTimeout(o),o=setTimeout((function(){var e=t.getSelection();a&&ma(e.node())&&t.move(e,a.map(n.subX.orgScale()))}),0)},t.brush.update=function(){return 0===this.extent()()[1].filter((function(t){return isNaN(t)})).length&&r.main&&r.main.select("."+bn.brush).call(this),this},t.brush.scale=function(n){var r=e.subchart_size_height||function(){var e=t.$el.svg.select("."+bn.brush+" .overlay"),n={width:0,height:0};return e.size()&&(n.width=+e.attr("width"),n.height=+e.attr("height")),n[i?"width":"height"]}(),a=t.getExtent();!a&&n.range?a=[[0,0],[n.range()[1],r]]:Ba(a)&&(a=a.map((function(t,e){return[t,e>0?r:e]}))),i&&a[1].reverse(),this.extent(a),this.update()},t.brush.getSelection=function(){return r.main?r.main.select("."+bn.brush):mn([])}},initSubchart:function(){var t=this,e=t.config,n=t.state,r=n.clip,i=n.hasAxis,a=t.$el,o=a.defs,s=a.svg,u=a.subchart,c=a.axis;if(i){var l=e.subchart_show?"visible":"hidden",f=r.id+"-subchart",h=t.getClipPath(f);r.idSubchart=f,t.appendClip(o,f),t.initBrush(),u.main=s.append("g").classed(bn.subchart,!0).attr("transform",t.getTranslate("context"));var d=u.main;d.style("visibility",l),d.append("g").attr("clip-path",h).attr("class",bn.chart),t.hasType("bar")&&d.select("."+bn.chart).append("g").attr("class",bn.chartBars),d.select("."+bn.chart).append("g").attr("class",bn.chartLines),d.append("g").attr("clip-path",h).attr("class",bn.brush).call(t.brush),c.subX=d.append("g").attr("class",bn.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":r.pathXAxis).style("visibility",e.subchart_axis_x_show?l:"hidden")}},updateTargetsForSubchart:function(t){var e=this,n=e.config,r=e.state,i=e.$el.subchart.main,a=e.getChartClass("Bar"),o=e.getClass("bars",!0),s=e.getChartClass("Line"),u=e.getClass("lines",!0),c=e.getClass("areas",!0);if(n.subchart_show){var l=i.select("."+bn.chartBars).selectAll("."+bn.chartBar).data(t).attr("class",a);l.enter().append("g").style("opacity","0").attr("class",a).merge(l).append("g").attr("class",o);var f=i.select("."+bn.chartLines).selectAll("."+bn.chartLine).data(t).attr("class",s),h=f.enter().append("g").style("opacity","0").attr("class",s).merge(f);h.append("g").attr("class",u),e.hasTypeOf("Area")&&h.append("g").attr("class",c),i.selectAll("."+bn.brush+" rect").attr(n.axis_rotated?"width":"height",n.axis_rotated?r.width2:r.height2)}},updateBarForSubchart:function(t){var e=this,n=e.$el.subchart;n.bar=n.main.selectAll("."+bn.bars).selectAll("."+bn.bar).data(e.barData.bind(e)),n.bar.exit().transition().duration(t).style("opacity","0").remove(),n.bar=n.bar.enter().append("path").attr("class",e.getClass("bar",!0)).style("stroke","none").style("fill",e.color).merge(n.bar).style("opacity",e.initialOpacity.bind(e))},redrawBarForSubchart:function(t,e,n){var r=this.$el.subchart.bar;(e?r.transition(qa()).duration(n):r).attr("d",t).style("opacity","1")},updateLineForSubchart:function(t){var e=this,n=e.$el.subchart;n.line=n.main.selectAll("."+bn.lines).selectAll("."+bn.line).data(e.lineData.bind(e)),n.line.exit().transition().duration(t).style("opacity","0").remove(),n.line=n.line.enter().append("path").attr("class",e.getClass("line",!0)).style("stroke",e.color).merge(n.line).style("opacity",e.initialOpacity.bind(e))},redrawLineForSubchart:function(t,e,n){var r=this.$el.subchart.line;(e?r.transition(qa()).duration(n):r).attr("d",t).style("opacity","1")},updateAreaForSubchart:function(t){var e=this,n=e.$el.subchart;n.area=n.main.selectAll("."+bn.areas).selectAll("."+bn.area).data(e.lineData.bind(e)),n.area.exit().transition().duration(t).style("opacity","0").remove(),n.area=n.area.enter().append("path").attr("class",e.getClass("area",!0)).style("fill",e.color).style("opacity",(function(){return e.state.orgAreaOpacity=mn(this).style("opacity"),"0"})).merge(n.area).style("opacity","0")},redrawAreaForSubchart:function(t,e,n){var r=this.$el.subchart.area;(e?r.transition(qa()).duration(n):r).attr("d",t).style("fill",this.color).style("opacity",this.state.orgAreaOpacity)},redrawSubchart:function(t,e,n){var r=this,i=r.config;r.$el.subchart.main.style("visibility",i.subchart_show?"visible":"hidden"),i.subchart_show&&(sn&&"zoom"===sn.type&&r.brush.update(),t&&(!Ka(r)&&r.brush.update(),Object.keys(n.type).forEach((function(t){var i=Qa(t),a=r["generateDraw"+i](n.indices[t],!0);r["update"+i+"ForSubchart"](e),r["redraw"+i+"ForSubchart"](a,e,e)}))))},redrawForBrush:function(){var t=this,e=t.config,n=e.subchart_onbrush,r=e.zoom_rescale,i=t.scale;t.redraw({withTransition:!1,withY:r,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),n.bind(t.api)(i.x.orgDomain())},transformContext:function(t,e){var n,r=this,i=r.$el.subchart.main;e&&e.axisSubX?n=e.axisSubX:(n=i.select("."+bn.axisX),t&&(n=n.transition())),i.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subX"))},getExtent:function(){var t=this,e=t.config,n=t.scale,r=e.axis_x_extent;if(r)if(Ma(r))r=r.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&r.every(isNaN)){var i=lo.bind(t);r=r.map((function(t){return n.subX(i(t))}))}return r}},rd={initZoom:function(){var t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent:function(t){void 0===t&&(t=!0);var e=this,n=e.config,r=e.$el.main,i=n.zoom_enabled,a=r.select("."+bn.eventRects);i&&t?!n.subchart_show&&e.bindZoomOnEventRect(a,n.zoom_type):!1===t&&(e.api.unzoom(),a.on(".zoom",null).on(".drag",null))},generateZoom:function(){var t=this,e=t.config,n=t.org,r=t.scale,i=function(){function t(t){t.property("__zoom",Gh).on("wheel.zoom",s).on("mousedown.zoom",u).on("dblclick.zoom",c).filter(_).on("touchstart.zoom",l).on("touchmove.zoom",f).on("touchend.zoom touchcancel.zoom",h).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function e(t,e){return(e=Math.max(m[0],Math.min(m[1],e)))===t.k?t:new Bh(e,t.x,t.y)}function n(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new Bh(t.k,r,i)}function r(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function i(t,e,n){t.on("start.zoom",(function(){a(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){a(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=a(t,i),s=v.apply(t,i),u=null==n?r(s):"function"==typeof n?n.apply(t,i):n,c=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=T(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new Bh(n,u[0]-e[0]*n,u[1]-e[1]*n)}o.zoom(null,t)}}))}function a(t,e,n){return!n&&t.__zooming||new o(t,e)}function o(t,e){this.that=t,this.args=e,this.active=0,this.extent=v.apply(t,e),this.taps=0}function s(){if(p.apply(this,arguments)){var t=a(this,arguments),r=this.__zoom,i=Math.max(m[0],Math.min(m[1],r.k*Math.pow(2,x.apply(this,arguments)))),o=zr(this);if(t.wheel)(t.mouse[0][0]!==o[0]||t.mouse[0][1]!==o[1])&&(t.mouse[1]=r.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(r.k===i)return;t.mouse=[o,r.invert(o)],vi(this),t.start()}$h(),t.wheel=setTimeout((function(){t.wheel=null,t.end()}),150),t.zoom("mouse",y(n(e(r,i),t.mouse[0],t.mouse[1]),t.extent,b))}}function u(){if(!g&&p.apply(this,arguments)){var t=a(this,arguments,!0),e=mn(sn.view).on("mousemove.zoom",(function(){if($h(),!t.moved){var e=sn.clientX-i,r=sn.clientY-o;t.moved=e*e+r*r>S}t.zoom("mouse",y(n(t.that.__zoom,t.mouse[0]=zr(t.that),t.mouse[1]),t.extent,b))}),!0).on("mouseup.zoom",(function(){e.on("mousemove.zoom mouseup.zoom",null),$n(sn.view,t.moved),$h(),t.end()}),!0),r=zr(this),i=sn.clientX,o=sn.clientY;Un(sn.view),Uh(),t.mouse=[r,this.__zoom.invert(r)],vi(this),t.start()}}function c(){if(p.apply(this,arguments)){var r=this.__zoom,a=zr(this),o=r.invert(a),s=r.k*(sn.shiftKey?.5:2),u=y(n(e(r,s),a,o),v.apply(this,arguments),b);$h(),w>0?mn(this).transition().duration(w).call(i,u,a):mn(this).call(t.transform,u)}}function l(){if(p.apply(this,arguments)){var t,e,n,r,i=sn.touches,o=i.length,s=a(this,arguments,sn.changedTouches.length===o);for(Uh(),e=0;e<o;++e)r=[r=Fr(this,i,(n=i[e]).identifier),this.__zoom.invert(r),n.identifier],s.touch0?!s.touch1&&s.touch0[2]!==r[2]&&(s.touch1=r,s.taps=0):(s.touch0=r,t=!0,s.taps=1+!!d);d&&(d=clearTimeout(d)),t&&(s.taps<2&&(d=setTimeout((function(){d=null}),500)),vi(this),s.start())}}function f(){if(this.__zooming){var t,r,i,o,s=a(this,arguments),u=sn.changedTouches,c=u.length;for($h(),d&&(d=clearTimeout(d)),s.taps=0,t=0;t<c;++t)i=Fr(this,u,(r=u[t]).identifier),s.touch0&&s.touch0[2]===r.identifier?s.touch0[0]=i:s.touch1&&s.touch1[2]===r.identifier&&(s.touch1[0]=i);if(r=s.that.__zoom,s.touch1){var l=s.touch0[0],f=s.touch0[1],h=s.touch1[0],g=s.touch1[1],p=(p=h[0]-l[0])*p+(p=h[1]-l[1])*p,v=(v=g[0]-f[0])*v+(v=g[1]-f[1])*v;r=e(r,Math.sqrt(p/v)),i=[(l[0]+h[0])/2,(l[1]+h[1])/2],o=[(f[0]+g[0])/2,(f[1]+g[1])/2]}else{if(!s.touch0)return;i=s.touch0[0],o=s.touch0[1]}s.zoom("touch",y(n(r,i,o),s.extent,b))}}function h(){if(this.__zooming){var t,e,n=a(this,arguments),r=sn.changedTouches,i=r.length;for(Uh(),g&&clearTimeout(g),g=setTimeout((function(){g=null}),500),t=0;t<i;++t)e=r[t],n.touch0&&n.touch0[2]===e.identifier?delete n.touch0:n.touch1&&n.touch1[2]===e.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),2===n.taps){var o=mn(this).on("dblclick.zoom");o&&o.apply(this,arguments)}}}var d,g,p=Yh,v=Vh,y=qh,x=Hh,_=Wh,m=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],w=250,T=Fh,A=Bn("start","zoom","end"),S=0;return t.transform=function(t,e,n){var r=t.selection?t.selection():t;r.property("__zoom",Gh),t===r?r.interrupt().each((function(){a(this,arguments).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()})):i(t,e,n)},t.scaleBy=function(e,n,r){t.scaleTo(e,(function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)}),r)},t.scaleTo=function(i,a,o){t.transform(i,(function(){var t=v.apply(this,arguments),i=this.__zoom,s=null==o?r(t):"function"==typeof o?o.apply(this,arguments):o,u=i.invert(s),c="function"==typeof a?a.apply(this,arguments):a;return y(n(e(i,c),s,u),t,b)}),o)},t.translateBy=function(e,n,r){t.transform(e,(function(){return y(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof r?r.apply(this,arguments):r),v.apply(this,arguments),b)}))},t.translateTo=function(e,n,i,a){t.transform(e,(function(){var t=v.apply(this,arguments),e=this.__zoom,o=null==a?r(t):"function"==typeof a?a.apply(this,arguments):a;return y(Xh.translate(o[0],o[1]).scale(e.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof i?-i.apply(this,arguments):-i),t,b)}),a)},o.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(e){hn(new Nh(t,e,this.that.__zoom),A.apply,A,[e,this.that,this.args])}},t.wheelDelta=function(e){return arguments.length?(x="function"==typeof e?e:zh(+e),t):x},t.filter=function(e){return arguments.length?(p="function"==typeof e?e:zh(!!e),t):p},t.touchable=function(e){return arguments.length?(_="function"==typeof e?e:zh(!!e),t):_},t.extent=function(e){return arguments.length?(v="function"==typeof e?e:zh([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),t):v},t.scaleExtent=function(e){return arguments.length?(m[0]=+e[0],m[1]=+e[1],t):[m[0],m[1]]},t.translateExtent=function(e){return arguments.length?(b[0][0]=+e[0][0],b[1][0]=+e[1][0],b[0][1]=+e[0][1],b[1][1]=+e[1][1],t):[[b[0][0],b[0][1]],[b[1][0],b[1][1]]]},t.constrain=function(e){return arguments.length?(y=e,t):y},t.duration=function(e){return arguments.length?(w=+e,t):w},t.interpolate=function(e){return arguments.length?(T=e,t):T},t.on=function(){var e=A.on.apply(A,arguments);return e===A?t:e},t.clickDistance=function(e){return arguments.length?(S=(e=+e)*e,t):Math.sqrt(S)},t}().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=function(){var n=e.zoom_extent||[1,10];return[n[0],Math.max(t.getMaxDataCount()/n[1],n[1])]},i.updateScaleExtent=function(){var e=Pa(t.scale.x.orgDomain())/Pa(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this},i.updateTransformScale=function(i){n.xScale&&n.xScale.range(r.x.range());var a=i[e.axis_rotated?"rescaleY":"rescaleX"](n.xScale||r.x),o=t.trimXDomain(a.domain()),s=e.zoom_rescale;a.domain(o,n.xDomain),r.zoom=t.getCustomizedScale(a),t.axis.x.scale(r.zoom),s&&(!n.xScale&&(n.xScale=r.x.copy()),r.x.domain(o))},t.zoom=i},onZoomStart:function(){var t=this,e=sn.sourceEvent;e&&(t.zoom.startEvent=e,t.state.zooming=!0,Ua(t.config.zoom_onzoomstart,t.api,e))},onZoom:function(){var t=this,e=t.config,n=t.scale,r=t.org,i=sn,a=i.sourceEvent;if(e.zoom_enabled&&i.sourceEvent&&0!==t.filterTargetsToShow(t.data.targets).length&&(n.zoom||!(a.type.indexOf("touch")>-1)||1!==a.touches.length)){var o="mousemove"===a.type,s=a.wheelDelta<0,u=i.transform;!o&&s&&n.x.domain().every((function(t,e){return t!==r.xDomain[e]}))&&n.x.domain(r.xDomain),t.zoom.updateTransformScale(u),t.axis.isCategorized()&&n.x.orgDomain()[0]===r.xDomain[0]&&n.x.domain([r.xDomain[0]-1e-10,n.x.orgDomain()[1]]),t.redraw({withTransition:!1,withY:e.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),t.state.cancelClick=o,Ua(e.zoom_onzoom,t.api,n.zoom.domain())}},onZoomEnd:function(){var t=this,e=t.config,n=t.scale,r=t.zoom.startEvent,i=sn&&sn.sourceEvent;r&&r.type.indexOf("touch")>-1&&(r=r.changedTouches[0],i=i.changedTouches[0]),!r||i&&r.clientX===i.clientX&&r.clientY===i.clientY||(t.redrawEventRect(),t.updateZoom(),t.state.zooming=!1,Ua(e.zoom_onzoomend,t.api,n[n.zoom?"zoom":"subX"].domain()))},getZoomDomain:function(){var t=this.config,e=this.org.xDomain,n=e[0],r=e[1];return Ca(t.zoom_x_min)&&(n=oo("min",[n,t.zoom_x_min])),Ca(t.zoom_x_max)&&(r=oo("max",[r,t.zoom_x_max])),[n,r]},updateZoom:function(t){var e=this,n=e.scale,r=n.subX,i=n.x,a=n.zoom;if(a){var o=a.domain(),s=r.domain(),u=(o[0]<=s[0]||o[0]-.015<=s[0])&&(s[1]<=o[1]||s[1]<=o[1]-.015);(t||u)&&(e.axis.x.scale(r),i.domain(r.orgDomain()),e.scale.zoom=null)}},bindZoomOnEventRect:function(t,e){var n="drag"===e?this.zoomBehaviour:this.zoom;t.call(n).on("dblclick.zoom",null)},initZoomBehaviour:function(){var t,e=this,n=e.config,r=e.state,i=n.axis_rotated,a=0,o=0,s={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=es().clickDistance(4).on("start",(function(){e.setDragStatus(!0),e.unselectRect(),t||(t=e.$el.main.append("rect").attr("clip-path",r.clip.path).attr("class",bn.zoomBrush).attr("width",i?r.width:0).attr("height",i?0:r.height)),a=zr(this)[s.index],o=a,t.attr(s.axis,a).attr(s.attr,0),e.onZoomStart()})).on("drag",(function(){o=zr(this)[s.index],t.attr(s.axis,Math.min(a,o)).attr(s.attr,Math.abs(o-a))})).on("end",(function(){var n,r=e.scale.zoom||e.scale.x;if(e.setDragStatus(!1),t.attr(s.axis,0).attr(s.attr,0),a>o&&(a=(n=[o,a])[0],o=n[1]),a<0&&(o+=Math.abs(a),a=0),a!==o)e.api.zoom([a,o].map((function(t){return r.invert(t)}))),e.onZoomEnd();else if(e.isMultipleX())e.clickHandlerForMultipleXS.bind(this)(e);else{var i=sn.sourceEvent||sn,u="clientX"in i?[i.clientX,i.clientY]:[i.x,i.y],c=u[0],l=u[1],f=Ta.elementFromPoint(c,l);e.clickHandlerForSingleX.bind(f)(mn(f).datum(),e)}}))},setZoomResetButton:function(){var t=this,e=t.config,n=e.zoom_resetButton;n&&"drag"===e.zoom_type&&(t.zoom.resetBtn?t.zoom.resetBtn.style("display",null):t.zoom.resetBtn=t.$el.chart.append("div").classed(bn.button,!0).append("span").on("click",(function(){Ma(n.onclick)&&n.onclick.bind(t.api)(this),t.api.unzoom()})).classed(bn.buttonZoomReset,!0).text(n.text||"Reset Zoom"))}},id={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:function(){},data_onunselected:function(){}},ad={subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_text_show:!0,subchart_onbrush:function(){}},od={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},sd=function(){return Ja(cl.prototype,ed),Ja(Al.prototype,Rh),po.setOptions([id]),(sd=function(){return!0})()},ud=function(){return Ja(cl.prototype,nd),po.setOptions([ad]),(ud=function(){return!0})()},cd=function(){return Ja(cl.prototype,rd),Ja(Al.prototype,Kh),po.setOptions([od]),(cd=function(){return!0})()},ld={},fd={version:"2.2.8a",generate:function(t){var e=io({},ld,t),n=new Al(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults:function(t){return Xa(t)&&(ld=t),ld},instance:[],plugin:{}};Object.keys(r).forEach((function(t){return r[t]()})),Object.keys(i).forEach((function(t){return i[t]()}))}],e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}return n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(0),n(521)}()}));
|