@carbon/charts 1.22.0 → 1.22.4

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +3 -2
  3. package/dist/{angle-utils-CGNI01fr.mjs → angle-utils-Cxvps4Hd.mjs} +2 -2
  4. package/dist/{angle-utils-CGNI01fr.mjs.map → angle-utils-Cxvps4Hd.mjs.map} +1 -1
  5. package/dist/{array-D7iT_STy.mjs → array-DjPCniaL.mjs} +2 -2
  6. package/dist/{array-D7iT_STy.mjs.map → array-DjPCniaL.mjs.map} +1 -1
  7. package/dist/{choropleth-0DsmaWsP.mjs → choropleth-CtLw9e8_.mjs} +815 -821
  8. package/dist/choropleth-CtLw9e8_.mjs.map +1 -0
  9. package/dist/{color-scale-utils-f3PWy_Op.mjs → color-scale-utils-Bxw257YA.mjs} +1377 -1370
  10. package/dist/color-scale-utils-Bxw257YA.mjs.map +1 -0
  11. package/dist/components/index.mjs +1 -1
  12. package/dist/{index-DFubnvsv.mjs → index-Kltqng9e.mjs} +559 -535
  13. package/dist/index-Kltqng9e.mjs.map +1 -0
  14. package/dist/index.mjs +7 -7
  15. package/dist/index.mjs.map +1 -1
  16. package/dist/model/index.mjs +2 -2
  17. package/dist/model/index.mjs.map +1 -1
  18. package/dist/services/index.mjs +3 -3
  19. package/dist/styles.css +294 -288
  20. package/dist/styles.css.map +1 -1
  21. package/dist/styles.min.css +1 -1
  22. package/dist/styles.min.css.map +1 -1
  23. package/dist/umd/bundle.umd.cjs +17 -17
  24. package/dist/umd/bundle.umd.cjs.map +1 -1
  25. package/dist/umd/bundle.umd.js +17 -17
  26. package/package.json +24 -24
  27. package/scss/components/_axis.scss +8 -0
  28. package/styles.css +294 -288
  29. package/styles.min.css +1 -1
  30. package/telemetry.yml +1 -1
  31. package/dist/choropleth-0DsmaWsP.mjs.map +0 -1
  32. package/dist/color-scale-utils-f3PWy_Op.mjs.map +0 -1
  33. package/dist/index-DFubnvsv.mjs.map +0 -1
@@ -1,8 +1,8 @@
1
- import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as vo, a2 as Hl, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as yo, a8 as zr, a9 as en, g as T, p as qt, a as tn, C as Fr, aa as yt, w as wt, ab as Cn, H as Yt, E as Wr, ac as Eo, ad as ks, c as Xl, ae as ye, I as yi, K as Ei, e as ee, af as mn, ag as fe, f as me, x as ge, ah as jl, h as qe, O as Yl, ai as ke, z as vt, l as jt, aj as $t, ak as ql, M as Zl, al as So, y as _t, q as un, n as Gn, am as Us, an as Kl, ao as Jl, ap as Si, aq as Xr, A as Te, ar as jr, as as xo, at as Ql } from "./color-scale-utils-f3PWy_Op.mjs";
2
- import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as zs, d as ec, F as Hn, n as Fs, H as Ws, C as Xs, p as Un, b as qr, D as js, U as nc, x as we, a0 as zn, O as Ys } from "./axis-scales-CPuwbFQf.mjs";
1
+ import { t as go, $ as Bl, i as Gl, a0 as mo, a1 as vo, a2 as Hl, a3 as Ul, a4 as zl, a5 as Fl, a6 as Wl, a7 as yo, a8 as zr, a9 as en, g as T, p as qt, a as tn, C as Fr, aa as vt, w as wt, ab as kn, H as Yt, E as Wr, ac as Eo, ad as Is, c as Xl, ae as ye, I as Si, K as xi, e as ee, af as mn, ag as fe, f as me, x as ge, ah as jl, h as qe, O as Yl, ai as Ce, z as mt, l as jt, aj as $t, ak as ql, M as Zl, al as So, y as _t, q as un, n as Un, am as Fs, an as Kl, ao as Jl, ap as bi, aq as Xr, A as Te, ar as jr, as as xo, at as Ql } from "./color-scale-utils-Bxw257YA.mjs";
2
+ import { y as st, $ as x, N as xt, r as Se, q as Be, L as tc, A as Jt, m as tt, s as Oe, W as Ze, S as Mt, e as Y, Z as Ge, i as Ft, f as Yr, J as Ws, d as ec, F as zn, n as Xs, H as js, C as Ys, p as Fn, b as qr, D as qs, U as nc, x as we, a0 as Wn, O as Zs } from "./axis-scales-CPuwbFQf.mjs";
3
3
  import { R as it } from "./a11y-ePqvrObQ.mjs";
4
- import { t as es, s as R, c as Zr, e as Le, f as oe, h as Kr, g as Gt, i as ns, j as Ke, m as qs, k as Jr, l as kt, n as Qr, o as sc, q as ic, u as lr, D as _, v as rc, w as xi, G as ta, x as cr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-CGNI01fr.mjs";
5
- import { b as bo, c as lt, a as ur, s as cc } from "./array-D7iT_STy.mjs";
4
+ import { t as ss, s as R, c as Zr, e as Le, f as oe, h as Kr, g as Gt, i as is, j as Ke, m as Ks, k as Jr, l as Ct, n as Qr, o as sc, q as ic, u as ur, D as _, v as rc, w as Ti, G as ta, x as hr, y as ac, a as oc, p as bt, r as ea, b as lc } from "./angle-utils-Cxvps4Hd.mjs";
5
+ import { b as bo, c as lt, a as dr, s as cc } from "./array-DjPCniaL.mjs";
6
6
  function uc(s, t, e, n) {
7
7
  for (var i = -1, r = s == null ? 0 : s.length; ++i < r; )
8
8
  e = t(e, s[i], i, s);
@@ -218,8 +218,8 @@ var Oc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
218
218
  function wc(s) {
219
219
  return Oc.test(s);
220
220
  }
221
- var To = "\\ud800-\\udfff", Lc = "\\u0300-\\u036f", Ac = "\\ufe20-\\ufe2f", Mc = "\\u20d0-\\u20ff", _c = Lc + Ac + Mc, Oo = "\\u2700-\\u27bf", wo = "a-z\\xdf-\\xf6\\xf8-\\xff", Cc = "\\xac\\xb1\\xd7\\xf7", kc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rc = "\\u2000-\\u206f", Ic = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Lo = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dc = "\\ufe0e\\ufe0f", Ao = Cc + kc + Rc + Ic, Mo = "['’]", na = "[" + Ao + "]", Pc = "[" + _c + "]", _o = "\\d+", Nc = "[" + Oo + "]", Co = "[" + wo + "]", ko = "[^" + To + Ao + _o + Oo + wo + Lo + "]", $c = "\\ud83c[\\udffb-\\udfff]", Vc = "(?:" + Pc + "|" + $c + ")", Bc = "[^" + To + "]", Ro = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xe = "[" + Lo + "]", Gc = "\\u200d", sa = "(?:" + Co + "|" + ko + ")", Hc = "(?:" + Xe + "|" + ko + ")", ia = "(?:" + Mo + "(?:d|ll|m|re|s|t|ve))?", ra = "(?:" + Mo + "(?:D|LL|M|RE|S|T|VE))?", Do = Vc + "?", Po = "[" + Dc + "]?", Uc = "(?:" + Gc + "(?:" + [Bc, Ro, Io].join("|") + ")" + Po + Do + ")*", zc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Fc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Wc = Po + Do + Uc, Xc = "(?:" + [Nc, Ro, Io].join("|") + ")" + Wc, jc = RegExp([
222
- Xe + "?" + Co + "+" + ia + "(?=" + [na, Xe, "$"].join("|") + ")",
221
+ var To = "\\ud800-\\udfff", Lc = "\\u0300-\\u036f", Ac = "\\ufe20-\\ufe2f", Mc = "\\u20d0-\\u20ff", _c = Lc + Ac + Mc, Oo = "\\u2700-\\u27bf", wo = "a-z\\xdf-\\xf6\\xf8-\\xff", kc = "\\xac\\xb1\\xd7\\xf7", Cc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Rc = "\\u2000-\\u206f", Ic = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Lo = "A-Z\\xc0-\\xd6\\xd8-\\xde", Dc = "\\ufe0e\\ufe0f", Ao = kc + Cc + Rc + Ic, Mo = "['’]", na = "[" + Ao + "]", Pc = "[" + _c + "]", _o = "\\d+", Nc = "[" + Oo + "]", ko = "[" + wo + "]", Co = "[^" + To + Ao + _o + Oo + wo + Lo + "]", $c = "\\ud83c[\\udffb-\\udfff]", Vc = "(?:" + Pc + "|" + $c + ")", Bc = "[^" + To + "]", Ro = "(?:\\ud83c[\\udde6-\\uddff]){2}", Io = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xe = "[" + Lo + "]", Gc = "\\u200d", sa = "(?:" + ko + "|" + Co + ")", Hc = "(?:" + Xe + "|" + Co + ")", ia = "(?:" + Mo + "(?:d|ll|m|re|s|t|ve))?", ra = "(?:" + Mo + "(?:D|LL|M|RE|S|T|VE))?", Do = Vc + "?", Po = "[" + Dc + "]?", Uc = "(?:" + Gc + "(?:" + [Bc, Ro, Io].join("|") + ")" + Po + Do + ")*", zc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Fc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Wc = Po + Do + Uc, Xc = "(?:" + [Nc, Ro, Io].join("|") + ")" + Wc, jc = RegExp([
222
+ Xe + "?" + ko + "+" + ia + "(?=" + [na, Xe, "$"].join("|") + ")",
223
223
  Hc + "+" + ra + "(?=" + [na, Xe + sa, "$"].join("|") + ")",
224
224
  Xe + "?" + sa + "+" + ia,
225
225
  Xe + "+" + ra,
@@ -244,7 +244,7 @@ function Qc(s, t, e) {
244
244
  return s === s && (e !== void 0 && (s = s <= e ? s : e), t !== void 0 && (s = s >= t ? s : t)), s;
245
245
  }
246
246
  function No(s, t, e) {
247
- return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = es(e), e = e === e ? e : 0), t !== void 0 && (t = es(t), t = t === t ? t : 0), Qc(es(s), t, e);
247
+ return e === void 0 && (e = t, t = void 0), e !== void 0 && (e = ss(e), e = e === e ? e : 0), t !== void 0 && (t = ss(t), t = t === t ? t : 0), Qc(ss(s), t, e);
248
248
  }
249
249
  var tu = "Expected a function";
250
250
  function eu(s, t, e) {
@@ -255,7 +255,7 @@ function eu(s, t, e) {
255
255
  }, t);
256
256
  }
257
257
  var nu = Bl(function(s, t, e) {
258
- return eu(s, es(t) || 0, e);
258
+ return eu(s, ss(t) || 0, e);
259
259
  });
260
260
  function su(s, t) {
261
261
  var e = -1, n = Gl(s) ? Array(s.length) : [];
@@ -321,7 +321,7 @@ function Vo(s) {
321
321
  function uu(s) {
322
322
  return s;
323
323
  }
324
- var ss = 1, is = 2, bi = 3, vn = 4, aa = 1e-6;
324
+ var rs = 1, as = 2, Oi = 3, vn = 4, aa = 1e-6;
325
325
  function hu(s) {
326
326
  return "translate(" + s + ",0)";
327
327
  }
@@ -337,18 +337,18 @@ function fu(s, t) {
337
337
  function gu() {
338
338
  return !this.__axis;
339
339
  }
340
- function Rs(s, t) {
341
- var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s === ss || s === vn ? -1 : 1, h = s === vn || s === is ? "x" : "y", d = s === ss || s === bi ? hu : du;
340
+ function Ds(s, t) {
341
+ var e = [], n = null, i = null, r = 6, a = 6, o = 3, c = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, l = s === rs || s === vn ? -1 : 1, h = s === vn || s === as ? "x" : "y", d = s === rs || s === Oi ? hu : du;
342
342
  function u(p) {
343
- var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(), k = I.exit(), G = I.enter().append("g").attr("class", "tick"), C = I.select("line"), L = I.select("text");
344
- O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G), C = C.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === ss ? "0em" : s === bi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), I = I.transition(p), C = C.transition(p), L = L.transition(p), k = k.transition(p).attr("opacity", aa).attr("transform", function(B) {
343
+ var f = n ?? (t.ticks ? t.ticks.apply(t, e) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, e) : uu), m = Math.max(r, 0) + o, E = t.range(), y = +E[0] + c, v = +E[E.length - 1] + c, S = (t.bandwidth ? fu : pu)(t.copy(), c), b = p.selection ? p.selection() : p, O = b.selectAll(".domain").data([null]), I = b.selectAll(".tick").data(f, t).order(), C = I.exit(), G = I.enter().append("g").attr("class", "tick"), k = I.select("line"), L = I.select("text");
344
+ O = O.merge(O.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), I = I.merge(G), k = k.merge(G.append("line").attr("stroke", "currentColor").attr(h + "2", l * r)), L = L.merge(G.append("text").attr("fill", "currentColor").attr(h, l * m).attr("dy", s === rs ? "0em" : s === Oi ? "0.71em" : "0.32em")), p !== b && (O = O.transition(p), I = I.transition(p), k = k.transition(p), L = L.transition(p), C = C.transition(p).attr("opacity", aa).attr("transform", function(B) {
345
345
  return isFinite(B = S(B)) ? d(B + c) : this.getAttribute("transform");
346
346
  }), G.attr("opacity", aa).attr("transform", function(B) {
347
347
  var D = this.parentNode.__axis;
348
348
  return d((D && isFinite(D = D(B)) ? D : S(B)) + c);
349
- })), k.remove(), O.attr("d", s === vn || s === is ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), I.attr("opacity", 1).attr("transform", function(B) {
349
+ })), C.remove(), O.attr("d", s === vn || s === as ? a ? "M" + l * a + "," + y + "H" + c + "V" + v + "H" + l * a : "M" + c + "," + y + "V" + v : a ? "M" + y + "," + l * a + "V" + c + "H" + v + "V" + l * a : "M" + y + "," + c + "H" + v), I.attr("opacity", 1).attr("transform", function(B) {
350
350
  return d(S(B) + c);
351
- }), C.attr(h + "2", l * r), L.attr(h, l * m).text(g), b.filter(gu).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", s === is ? "start" : s === vn ? "end" : "middle"), b.each(function() {
351
+ }), k.attr(h + "2", l * r), L.attr(h, l * m).text(g), b.filter(gu).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", s === as ? "start" : s === vn ? "end" : "middle"), b.each(function() {
352
352
  this.__axis = S;
353
353
  });
354
354
  }
@@ -375,28 +375,28 @@ function Rs(s, t) {
375
375
  }, u;
376
376
  }
377
377
  function mu(s) {
378
- return Rs(ss, s);
378
+ return Ds(rs, s);
379
379
  }
380
380
  function vu(s) {
381
- return Rs(is, s);
381
+ return Ds(as, s);
382
382
  }
383
- function hr(s) {
384
- return Rs(bi, s);
383
+ function pr(s) {
384
+ return Ds(Oi, s);
385
385
  }
386
386
  function Bo(s) {
387
- return Rs(vn, s);
387
+ return Ds(vn, s);
388
388
  }
389
- const Ti = { capture: !0, passive: !1 };
390
- function Oi(s) {
389
+ const wi = { capture: !0, passive: !1 };
390
+ function Li(s) {
391
391
  s.preventDefault(), s.stopImmediatePropagation();
392
392
  }
393
393
  function yu(s) {
394
- var t = s.document.documentElement, e = R(s).on("dragstart.drag", Oi, Ti);
395
- "onselectstart" in t ? e.on("selectstart.drag", Oi, Ti) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
394
+ var t = s.document.documentElement, e = R(s).on("dragstart.drag", Li, wi);
395
+ "onselectstart" in t ? e.on("selectstart.drag", Li, wi) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
396
396
  }
397
397
  function Eu(s, t) {
398
398
  var e = s.document.documentElement, n = R(s).on("dragstart.drag", null);
399
- t && (n.on("click.drag", Oi, Ti), setTimeout(function() {
399
+ t && (n.on("click.drag", Li, wi), setTimeout(function() {
400
400
  n.on("click.drag", null);
401
401
  }, 0)), "onselectstart" in e ? n.on("selectstart.drag", null) : (e.style.MozUserSelect = e.__noselect, delete e.__noselect);
402
402
  }
@@ -404,7 +404,7 @@ function Su(s, t) {
404
404
  for (var e = new Array(t), n = 0; n < t; ++n) e[n] = s(n / (t - 1));
405
405
  return e;
406
406
  }
407
- const xu = (s) => +s, Zs = (s) => () => s;
407
+ const xu = (s) => +s, Js = (s) => () => s;
408
408
  function bu(s, {
409
409
  sourceEvent: t,
410
410
  target: e,
@@ -424,10 +424,10 @@ function bu(s, {
424
424
  function Tu(s) {
425
425
  s.stopImmediatePropagation();
426
426
  }
427
- function Ks(s) {
427
+ function Qs(s) {
428
428
  s.preventDefault(), s.stopImmediatePropagation();
429
429
  }
430
- var oa = { name: "drag" }, Js = { name: "space" }, Ue = { name: "handle" }, ze = { name: "center" };
430
+ var oa = { name: "drag" }, ti = { name: "space" }, Ue = { name: "handle" }, ze = { name: "center" };
431
431
  const { abs: la, max: Rt, min: It } = Math;
432
432
  function ca(s) {
433
433
  return [+s[0], +s[1]];
@@ -435,18 +435,18 @@ function ca(s) {
435
435
  function ua(s) {
436
436
  return [ca(s[0]), ca(s[1])];
437
437
  }
438
- var rs = {
438
+ var os = {
439
439
  name: "x",
440
- handles: ["w", "e"].map(ds),
440
+ handles: ["w", "e"].map(fs),
441
441
  input: function(s, t) {
442
442
  return s == null ? null : [[+s[0], t[0][1]], [+s[1], t[1][1]]];
443
443
  },
444
444
  output: function(s) {
445
445
  return s && [s[0][0], s[1][0]];
446
446
  }
447
- }, Qs = {
447
+ }, ei = {
448
448
  name: "y",
449
- handles: ["n", "s"].map(ds),
449
+ handles: ["n", "s"].map(fs),
450
450
  input: function(s, t) {
451
451
  return s == null ? null : [[t[0][0], +s[0]], [t[1][0], +s[1]]];
452
452
  },
@@ -501,7 +501,7 @@ var rs = {
501
501
  se: 1,
502
502
  sw: 1
503
503
  };
504
- function ds(s) {
504
+ function fs(s) {
505
505
  return { type: s };
506
506
  }
507
507
  function Lu(s) {
@@ -514,7 +514,7 @@ function Au() {
514
514
  function Mu() {
515
515
  return navigator.maxTouchPoints || "ontouchstart" in this;
516
516
  }
517
- function ti(s) {
517
+ function ni(s) {
518
518
  for (; !s.__brush; ) if (!(s = s.parentNode)) return;
519
519
  return s.__brush;
520
520
  }
@@ -522,16 +522,16 @@ function _u(s) {
522
522
  return s[0][0] === s[1][0] || s[0][1] === s[1][1];
523
523
  }
524
524
  function Go() {
525
- return Cu(rs);
525
+ return ku(os);
526
526
  }
527
- function Cu(s) {
527
+ function ku(s) {
528
528
  var t = Au, e = Lu, n = Mu, i = !0, r = Wl("start", "brush", "end"), a = 6, o;
529
529
  function c(m) {
530
- var E = m.property("__brush", g).selectAll(".overlay").data([ds("overlay")]);
530
+ var E = m.property("__brush", g).selectAll(".overlay").data([fs("overlay")]);
531
531
  E.enter().append("rect").attr("class", "overlay").attr("pointer-events", "all").attr("cursor", pe.overlay).merge(E).each(function() {
532
- var v = ti(this).extent;
532
+ var v = ni(this).extent;
533
533
  R(this).attr("x", v[0][0]).attr("y", v[0][1]).attr("width", v[1][0] - v[0][0]).attr("height", v[1][1] - v[0][1]);
534
- }), m.selectAll(".selection").data([ds("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", pe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
534
+ }), m.selectAll(".selection").data([fs("selection")]).enter().append("rect").attr("class", "selection").attr("cursor", pe.selection).attr("fill", "#777").attr("fill-opacity", 0.3).attr("stroke", "#fff").attr("shape-rendering", "crispEdges");
535
535
  var y = m.selectAll(".handle").data(s.handles, function(v) {
536
536
  return v.type;
537
537
  });
@@ -547,9 +547,9 @@ function Cu(s) {
547
547
  }).on("interrupt.brush end.brush", function(v) {
548
548
  h(this, arguments).end(v);
549
549
  }).tween("brush", function() {
550
- var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), k = yo(O, I);
551
- function G(C) {
552
- S.selection = C === 1 && I === null ? null : k(C), l.call(v), b.brush();
550
+ var v = this, S = v.__brush, b = h(v, arguments), O = S.selection, I = s.input(typeof E == "function" ? E.apply(this, arguments) : E, S.extent), C = yo(O, I);
551
+ function G(k) {
552
+ S.selection = k === 1 && I === null ? null : C(k), l.call(v), b.brush();
553
553
  }
554
554
  return O !== null && I !== null ? G : G(1);
555
555
  }) : m.each(function() {
@@ -560,7 +560,7 @@ function Cu(s) {
560
560
  c.move(m, null, E);
561
561
  };
562
562
  function l() {
563
- var m = R(this), E = ti(this).selection;
563
+ var m = R(this), E = ni(this).selection;
564
564
  E ? (m.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]), m.selectAll(".handle").style("display", null).attr("x", function(y) {
565
565
  return y.type[y.type.length - 1] === "e" ? E[1][0] - a / 2 : E[0][0] - a / 2;
566
566
  }).attr("y", function(y) {
@@ -609,26 +609,26 @@ function Cu(s) {
609
609
  };
610
610
  function u(m) {
611
611
  if (o && !m.touches || !e.apply(this, arguments)) return;
612
- var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === Qs ? null : Ou[y], b = s === rs ? null : wu[y], O = ti(E), I = O.extent, k = O.selection, G = I[0][0], C, L, B = I[0][1], D, A, w = I[1][0], V, N, P = I[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, Z = Array.from(m.touches || [m], (nt) => {
613
- const St = nt.identifier;
614
- return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier = St, nt;
612
+ var E = this, y = m.target.__data__.type, v = (i && m.metaKey ? y = "overlay" : y) === "selection" ? oa : i && m.altKey ? ze : Ue, S = s === ei ? null : Ou[y], b = s === os ? null : wu[y], O = ni(E), I = O.extent, C = O.selection, G = I[0][0], k, L, B = I[0][1], D, A, w = I[1][0], V, N, P = I[1][1], $, X, F = 0, et = 0, J, ct = S && b && i && m.shiftKey, Q, j, K = Array.from(m.touches || [m], (nt) => {
613
+ const Et = nt.identifier;
614
+ return nt = en(nt, E), nt.point0 = nt.slice(), nt.identifier = Et, nt;
615
615
  });
616
616
  zr(E);
617
617
  var ut = h(E, arguments, !0).beforestart();
618
618
  if (y === "overlay") {
619
- k && (J = !0);
620
- const nt = [Z[0], Z[1] || Z[0]];
621
- O.selection = k = [[
622
- C = s === Qs ? G : It(nt[0][0], nt[1][0]),
623
- D = s === rs ? B : It(nt[0][1], nt[1][1])
619
+ C && (J = !0);
620
+ const nt = [K[0], K[1] || K[0]];
621
+ O.selection = C = [[
622
+ k = s === ei ? G : It(nt[0][0], nt[1][0]),
623
+ D = s === os ? B : It(nt[0][1], nt[1][1])
624
624
  ], [
625
- V = s === Qs ? w : Rt(nt[0][0], nt[1][0]),
626
- $ = s === rs ? P : Rt(nt[0][1], nt[1][1])
627
- ]], Z.length > 1 && U(m);
625
+ V = s === ei ? w : Rt(nt[0][0], nt[1][0]),
626
+ $ = s === os ? P : Rt(nt[0][1], nt[1][1])
627
+ ]], K.length > 1 && U(m);
628
628
  } else
629
- C = k[0][0], D = k[0][1], V = k[1][0], $ = k[1][1];
630
- L = C, A = D, N = V, X = $;
631
- var ht = R(E).attr("pointer-events", "none"), Et = ht.selectAll(".overlay").attr("cursor", pe[y]);
629
+ k = C[0][0], D = C[0][1], V = C[1][0], $ = C[1][1];
630
+ L = k, A = D, N = V, X = $;
631
+ var ht = R(E).attr("pointer-events", "none"), yt = ht.selectAll(".overlay").attr("cursor", pe[y]);
632
632
  if (m.touches)
633
633
  ut.moved = H, ut.ended = W;
634
634
  else {
@@ -637,36 +637,36 @@ function Cu(s) {
637
637
  }
638
638
  l.call(E), ut.start(m, v.name);
639
639
  function H(nt) {
640
- for (const St of nt.changedTouches || [nt])
641
- for (const ie of Z)
642
- ie.identifier === St.identifier && (ie.cur = en(St, E));
643
- if (ct && !Q && !j && Z.length === 1) {
644
- const St = Z[0];
645
- la(St.cur[0] - St[0]) > la(St.cur[1] - St[1]) ? j = !0 : Q = !0;
640
+ for (const Et of nt.changedTouches || [nt])
641
+ for (const ie of K)
642
+ ie.identifier === Et.identifier && (ie.cur = en(Et, E));
643
+ if (ct && !Q && !j && K.length === 1) {
644
+ const Et = K[0];
645
+ la(Et.cur[0] - Et[0]) > la(Et.cur[1] - Et[1]) ? j = !0 : Q = !0;
646
646
  }
647
- for (const St of Z)
648
- St.cur && (St[0] = St.cur[0], St[1] = St.cur[1]);
649
- J = !0, Ks(nt), U(nt);
647
+ for (const Et of K)
648
+ Et.cur && (Et[0] = Et.cur[0], Et[1] = Et.cur[1]);
649
+ J = !0, Qs(nt), U(nt);
650
650
  }
651
651
  function U(nt) {
652
- const St = Z[0], ie = St.point0;
652
+ const Et = K[0], ie = Et.point0;
653
653
  var te;
654
- switch (F = St[0] - ie[0], et = St[1] - ie[1], v) {
655
- case Js:
654
+ switch (F = Et[0] - ie[0], et = Et[1] - ie[1], v) {
655
+ case ti:
656
656
  case oa: {
657
- S && (F = Rt(G - C, It(w - V, F)), L = C + F, N = V + F), b && (et = Rt(B - D, It(P - $, et)), A = D + et, X = $ + et);
657
+ S && (F = Rt(G - k, It(w - V, F)), L = k + F, N = V + F), b && (et = Rt(B - D, It(P - $, et)), A = D + et, X = $ + et);
658
658
  break;
659
659
  }
660
660
  case Ue: {
661
- Z[1] ? (S && (L = Rt(G, It(w, Z[0][0])), N = Rt(G, It(w, Z[1][0])), S = 1), b && (A = Rt(B, It(P, Z[0][1])), X = Rt(B, It(P, Z[1][1])), b = 1)) : (S < 0 ? (F = Rt(G - C, It(w - C, F)), L = C + F, N = V) : S > 0 && (F = Rt(G - V, It(w - V, F)), L = C, N = V + F), b < 0 ? (et = Rt(B - D, It(P - D, et)), A = D + et, X = $) : b > 0 && (et = Rt(B - $, It(P - $, et)), A = D, X = $ + et));
661
+ K[1] ? (S && (L = Rt(G, It(w, K[0][0])), N = Rt(G, It(w, K[1][0])), S = 1), b && (A = Rt(B, It(P, K[0][1])), X = Rt(B, It(P, K[1][1])), b = 1)) : (S < 0 ? (F = Rt(G - k, It(w - k, F)), L = k + F, N = V) : S > 0 && (F = Rt(G - V, It(w - V, F)), L = k, N = V + F), b < 0 ? (et = Rt(B - D, It(P - D, et)), A = D + et, X = $) : b > 0 && (et = Rt(B - $, It(P - $, et)), A = D, X = $ + et));
662
662
  break;
663
663
  }
664
664
  case ze: {
665
- S && (L = Rt(G, It(w, C - F * S)), N = Rt(G, It(w, V + F * S))), b && (A = Rt(B, It(P, D - et * b)), X = Rt(B, It(P, $ + et * b)));
665
+ S && (L = Rt(G, It(w, k - F * S)), N = Rt(G, It(w, V + F * S))), b && (A = Rt(B, It(P, D - et * b)), X = Rt(B, It(P, $ + et * b)));
666
666
  break;
667
667
  }
668
668
  }
669
- N < L && (S *= -1, te = C, C = V, V = te, te = L, L = N, N = te, y in ha && Et.attr("cursor", pe[y = ha[y]])), X < A && (b *= -1, te = D, D = $, $ = te, te = A, A = X, X = te, y in da && Et.attr("cursor", pe[y = da[y]])), O.selection && (k = O.selection), Q && (L = k[0][0], N = k[1][0]), j && (A = k[0][1], X = k[1][1]), (k[0][0] !== L || k[0][1] !== A || k[1][0] !== N || k[1][1] !== X) && (O.selection = [[L, A], [N, X]], l.call(E), ut.brush(nt, v.name));
669
+ N < L && (S *= -1, te = k, k = V, V = te, te = L, L = N, N = te, y in ha && yt.attr("cursor", pe[y = ha[y]])), X < A && (b *= -1, te = D, D = $, $ = te, te = A, A = X, X = te, y in da && yt.attr("cursor", pe[y = da[y]])), O.selection && (C = O.selection), Q && (L = C[0][0], N = C[1][0]), j && (A = C[0][1], X = C[1][1]), (C[0][0] !== L || C[0][1] !== A || C[1][0] !== N || C[1][1] !== X) && (O.selection = [[L, A], [N, X]], l.call(E), ut.brush(nt, v.name));
670
670
  }
671
671
  function W(nt) {
672
672
  if (Tu(nt), nt.touches) {
@@ -676,7 +676,7 @@ function Cu(s) {
676
676
  }, 500);
677
677
  } else
678
678
  Eu(nt.view, J), Ut.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
679
- ht.attr("pointer-events", "all"), Et.attr("cursor", pe.overlay), O.selection && (k = O.selection), _u(k) && (O.selection = null, l.call(E)), ut.end(nt, v.name);
679
+ ht.attr("pointer-events", "all"), yt.attr("cursor", pe.overlay), O.selection && (C = O.selection), _u(C) && (O.selection = null, l.call(E)), ut.end(nt, v.name);
680
680
  }
681
681
  function zt(nt) {
682
682
  switch (nt.keyCode) {
@@ -685,17 +685,17 @@ function Cu(s) {
685
685
  break;
686
686
  }
687
687
  case 18: {
688
- v === Ue && (S && (V = N - F * S, C = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze, U(nt));
688
+ v === Ue && (S && (V = N - F * S, k = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze, U(nt));
689
689
  break;
690
690
  }
691
691
  case 32: {
692
- (v === Ue || v === ze) && (S < 0 ? V = N - F : S > 0 && (C = L - F), b < 0 ? $ = X - et : b > 0 && (D = A - et), v = Js, Et.attr("cursor", pe.selection), U(nt));
692
+ (v === Ue || v === ze) && (S < 0 ? V = N - F : S > 0 && (k = L - F), b < 0 ? $ = X - et : b > 0 && (D = A - et), v = ti, yt.attr("cursor", pe.selection), U(nt));
693
693
  break;
694
694
  }
695
695
  default:
696
696
  return;
697
697
  }
698
- Ks(nt);
698
+ Qs(nt);
699
699
  }
700
700
  function an(nt) {
701
701
  switch (nt.keyCode) {
@@ -704,17 +704,17 @@ function Cu(s) {
704
704
  break;
705
705
  }
706
706
  case 18: {
707
- v === ze && (S < 0 ? V = N : S > 0 && (C = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue, U(nt));
707
+ v === ze && (S < 0 ? V = N : S > 0 && (k = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue, U(nt));
708
708
  break;
709
709
  }
710
710
  case 32: {
711
- v === Js && (nt.altKey ? (S && (V = N - F * S, C = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze) : (S < 0 ? V = N : S > 0 && (C = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue), Et.attr("cursor", pe[y]), U(nt));
711
+ v === ti && (nt.altKey ? (S && (V = N - F * S, k = L + F * S), b && ($ = X - et * b, D = A + et * b), v = ze) : (S < 0 ? V = N : S > 0 && (k = L), b < 0 ? $ = X : b > 0 && (D = A), v = Ue), yt.attr("cursor", pe[y]), U(nt));
712
712
  break;
713
713
  }
714
714
  default:
715
715
  return;
716
716
  }
717
- Ks(nt);
717
+ Qs(nt);
718
718
  }
719
719
  }
720
720
  function p(m) {
@@ -728,11 +728,11 @@ function Cu(s) {
728
728
  return m.extent = ua(t.apply(this, arguments)), m.dim = s, m;
729
729
  }
730
730
  return c.extent = function(m) {
731
- return arguments.length ? (t = typeof m == "function" ? m : Zs(ua(m)), c) : t;
731
+ return arguments.length ? (t = typeof m == "function" ? m : Js(ua(m)), c) : t;
732
732
  }, c.filter = function(m) {
733
- return arguments.length ? (e = typeof m == "function" ? m : Zs(!!m), c) : e;
733
+ return arguments.length ? (e = typeof m == "function" ? m : Js(!!m), c) : e;
734
734
  }, c.touchable = function(m) {
735
- return arguments.length ? (n = typeof m == "function" ? m : Zs(!!m), c) : n;
735
+ return arguments.length ? (n = typeof m == "function" ? m : Js(!!m), c) : n;
736
736
  }, c.handleSize = function(m) {
737
737
  return arguments.length ? (a = +m, c) : a;
738
738
  }, c.keyModifiers = function(m) {
@@ -742,7 +742,7 @@ function Cu(s) {
742
742
  return m === r ? c : m;
743
743
  }, c;
744
744
  }
745
- const wi = Math.PI, Li = 2 * wi, Ae = 1e-6, ku = Li - Ae;
745
+ const Ai = Math.PI, Mi = 2 * Ai, Ae = 1e-6, Cu = Mi - Ae;
746
746
  function Ho(s) {
747
747
  this._ += s[0];
748
748
  for (let t = 1, e = s.length; t < e; ++t)
@@ -759,7 +759,7 @@ function Ru(s) {
759
759
  this._ += Math.round(arguments[i] * e) / e + n[i];
760
760
  };
761
761
  }
762
- let dr = class {
762
+ let fr = class {
763
763
  constructor(t) {
764
764
  this._x0 = this._y0 = // start of current subpath
765
765
  this._x1 = this._y1 = null, this._ = "", this._append = t == null ? Ho : Ru(t);
@@ -787,14 +787,14 @@ let dr = class {
787
787
  else if (u > Ae) if (!(Math.abs(d * c - l * h) > Ae) || !r)
788
788
  this._append`L${this._x1 = t},${this._y1 = e}`;
789
789
  else {
790
- let p = n - a, f = i - o, g = c * c + l * l, m = p * p + f * f, E = Math.sqrt(g), y = Math.sqrt(u), v = r * Math.tan((wi - Math.acos((g + u - m) / (2 * E * y))) / 2), S = v / y, b = v / E;
790
+ let p = n - a, f = i - o, g = c * c + l * l, m = p * p + f * f, E = Math.sqrt(g), y = Math.sqrt(u), v = r * Math.tan((Ai - Math.acos((g + u - m) / (2 * E * y))) / 2), S = v / y, b = v / E;
791
791
  Math.abs(S - 1) > Ae && this._append`L${t + S * h},${e + S * d}`, this._append`A${r},${r},0,0,${+(d * p > h * f)},${this._x1 = t + b * c},${this._y1 = e + b * l}`;
792
792
  }
793
793
  }
794
794
  arc(t, e, n, i, r, a) {
795
795
  if (t = +t, e = +e, n = +n, a = !!a, n < 0) throw new Error(`negative radius: ${n}`);
796
796
  let o = n * Math.cos(i), c = n * Math.sin(i), l = t + o, h = e + c, d = 1 ^ a, u = a ? i - r : r - i;
797
- this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > Ae || Math.abs(this._y1 - h) > Ae) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Li + Li), u > ku ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > Ae && this._append`A${n},${n},0,${+(u >= wi)},${d},${this._x1 = t + n * Math.cos(r)},${this._y1 = e + n * Math.sin(r)}`);
797
+ this._x1 === null ? this._append`M${l},${h}` : (Math.abs(this._x1 - l) > Ae || Math.abs(this._y1 - h) > Ae) && this._append`L${l},${h}`, n && (u < 0 && (u = u % Mi + Mi), u > Cu ? this._append`A${n},${n},0,1,${d},${t - o},${e - c}A${n},${n},0,1,${d},${this._x1 = l},${this._y1 = h}` : u > Ae && this._append`A${n},${n},0,${+(u >= Ai)},${d},${this._x1 = t + n * Math.cos(r)},${this._y1 = e + n * Math.sin(r)}`);
798
798
  }
799
799
  rect(t, e, n, i) {
800
800
  this._append`M${this._x0 = this._x1 = +t},${this._y0 = this._y1 = +e}h${n = +n}v${+i}h${-n}Z`;
@@ -803,10 +803,10 @@ let dr = class {
803
803
  return this._;
804
804
  }
805
805
  };
806
- function Is() {
807
- return new dr();
806
+ function Ps() {
807
+ return new fr();
808
808
  }
809
- Is.prototype = dr.prototype;
809
+ Ps.prototype = fr.prototype;
810
810
  var pt = 1e-6, Uo = 1e-12, at = Math.PI, Ht = at / 2, pa = at / 4, Wt = at * 2, Nt = 180 / at, Tt = at / 180, ft = Math.abs, zo = Math.atan, Ie = Math.atan2, gt = Math.cos, Iu = Math.exp, Du = Math.log, dt = Math.sin, be = Math.sign || function(s) {
811
811
  return s > 0 ? 1 : s < 0 ? -1 : 0;
812
812
  }, se = Math.sqrt, Pu = Math.tan;
@@ -818,15 +818,15 @@ function Ee(s) {
818
818
  }
819
819
  function Kt() {
820
820
  }
821
- function ps(s, t) {
821
+ function gs(s, t) {
822
822
  s && ga.hasOwnProperty(s.type) && ga[s.type](s, t);
823
823
  }
824
824
  var fa = {
825
825
  Feature: function(s, t) {
826
- ps(s.geometry, t);
826
+ gs(s.geometry, t);
827
827
  },
828
828
  FeatureCollection: function(s, t) {
829
- for (var e = s.features, n = -1, i = e.length; ++n < i; ) ps(e[n].geometry, t);
829
+ for (var e = s.features, n = -1, i = e.length; ++n < i; ) gs(e[n].geometry, t);
830
830
  }
831
831
  }, ga = {
832
832
  Sphere: function(s, t) {
@@ -839,10 +839,10 @@ var fa = {
839
839
  for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) s = e[n], t.point(s[0], s[1], s[2]);
840
840
  },
841
841
  LineString: function(s, t) {
842
- Ai(s.coordinates, t, 0);
842
+ _i(s.coordinates, t, 0);
843
843
  },
844
844
  MultiLineString: function(s, t) {
845
- for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) Ai(e[n], t, 0);
845
+ for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) _i(e[n], t, 0);
846
846
  },
847
847
  Polygon: function(s, t) {
848
848
  ma(s.coordinates, t);
@@ -851,46 +851,46 @@ var fa = {
851
851
  for (var e = s.coordinates, n = -1, i = e.length; ++n < i; ) ma(e[n], t);
852
852
  },
853
853
  GeometryCollection: function(s, t) {
854
- for (var e = s.geometries, n = -1, i = e.length; ++n < i; ) ps(e[n], t);
854
+ for (var e = s.geometries, n = -1, i = e.length; ++n < i; ) gs(e[n], t);
855
855
  }
856
856
  };
857
- function Ai(s, t, e) {
857
+ function _i(s, t, e) {
858
858
  var n = -1, i = s.length - e, r;
859
859
  for (t.lineStart(); ++n < i; ) r = s[n], t.point(r[0], r[1], r[2]);
860
860
  t.lineEnd();
861
861
  }
862
862
  function ma(s, t) {
863
863
  var e = -1, n = s.length;
864
- for (t.polygonStart(); ++e < n; ) Ai(s[e], t, 1);
864
+ for (t.polygonStart(); ++e < n; ) _i(s[e], t, 1);
865
865
  t.polygonEnd();
866
866
  }
867
867
  function je(s, t) {
868
- s && fa.hasOwnProperty(s.type) ? fa[s.type](s, t) : ps(s, t);
868
+ s && fa.hasOwnProperty(s.type) ? fa[s.type](s, t) : gs(s, t);
869
869
  }
870
- function Mi(s) {
870
+ function ki(s) {
871
871
  return [Ie(s[1], s[0]), Ee(s[2])];
872
872
  }
873
873
  function nn(s) {
874
874
  var t = s[0], e = s[1], n = gt(e);
875
875
  return [n * gt(t), n * dt(t), dt(e)];
876
876
  }
877
- function Fn(s, t) {
877
+ function Xn(s, t) {
878
878
  return s[0] * t[0] + s[1] * t[1] + s[2] * t[2];
879
879
  }
880
- function fs(s, t) {
880
+ function ms(s, t) {
881
881
  return [s[1] * t[2] - s[2] * t[1], s[2] * t[0] - s[0] * t[2], s[0] * t[1] - s[1] * t[0]];
882
882
  }
883
- function ei(s, t) {
883
+ function si(s, t) {
884
884
  s[0] += t[0], s[1] += t[1], s[2] += t[2];
885
885
  }
886
- function Wn(s, t) {
886
+ function jn(s, t) {
887
887
  return [s[0] * t, s[1] * t, s[2] * t];
888
888
  }
889
- function _i(s) {
889
+ function Ci(s) {
890
890
  var t = se(s[0] * s[0] + s[1] * s[1] + s[2] * s[2]);
891
891
  s[0] /= t, s[1] /= t, s[2] /= t;
892
892
  }
893
- function Ci(s, t) {
893
+ function Ri(s, t) {
894
894
  function e(n, i) {
895
895
  return n = s(n, i), t(n[0], n[1]);
896
896
  }
@@ -898,12 +898,12 @@ function Ci(s, t) {
898
898
  return n = t.invert(n, i), n && s.invert(n[0], n[1]);
899
899
  }), e;
900
900
  }
901
- function ki(s, t) {
901
+ function Ii(s, t) {
902
902
  return ft(s) > at && (s -= Math.round(s / Wt) * Wt), [s, t];
903
903
  }
904
- ki.invert = ki;
904
+ Ii.invert = Ii;
905
905
  function Fo(s, t, e) {
906
- return (s %= Wt) ? t || e ? Ci(ya(s), Ea(t, e)) : ya(s) : t || e ? Ea(t, e) : ki;
906
+ return (s %= Wt) ? t || e ? Ri(ya(s), Ea(t, e)) : ya(s) : t || e ? Ea(t, e) : Ii;
907
907
  }
908
908
  function va(s) {
909
909
  return function(t, e) {
@@ -945,11 +945,11 @@ function Vu(s, t, e, n, i, r) {
945
945
  var a = gt(t), o = dt(t), c = n * e;
946
946
  i == null ? (i = t + n * Wt, r = t - c / 2) : (i = Sa(a, i), r = Sa(a, r), (n > 0 ? i < r : i > r) && (i += n * Wt));
947
947
  for (var l, h = i; n > 0 ? h > r : h < r; h -= c)
948
- l = Mi([a, -o * gt(h), -o * dt(h)]), s.point(l[0], l[1]);
948
+ l = ki([a, -o * gt(h), -o * dt(h)]), s.point(l[0], l[1]);
949
949
  }
950
950
  }
951
951
  function Sa(s, t) {
952
- t = nn(t), t[0] -= s, _i(t);
952
+ t = nn(t), t[0] -= s, Ci(t);
953
953
  var e = Nu(-t[1]);
954
954
  return ((-t[2] < 0 ? -e : e) + Wt - pt) % Wt;
955
955
  }
@@ -972,10 +972,10 @@ function Wo() {
972
972
  }
973
973
  };
974
974
  }
975
- function as(s, t) {
975
+ function ls(s, t) {
976
976
  return ft(s[0] - t[0]) < pt && ft(s[1] - t[1]) < pt;
977
977
  }
978
- function Xn(s, t, e, n) {
978
+ function Yn(s, t, e, n) {
979
979
  this.x = s, this.z = t, this.o = e, this.e = n, this.v = !1, this.n = this.p = null;
980
980
  }
981
981
  function Xo(s, t, e, n, i) {
@@ -983,7 +983,7 @@ function Xo(s, t, e, n, i) {
983
983
  if (s.forEach(function(f) {
984
984
  if (!((g = f.length - 1) <= 0)) {
985
985
  var g, m = f[0], E = f[g], y;
986
- if (as(m, E)) {
986
+ if (ls(m, E)) {
987
987
  if (!m[2] && !E[2]) {
988
988
  for (i.lineStart(), o = 0; o < g; ++o) i.point((m = f[o])[0], m[1]);
989
989
  i.lineEnd();
@@ -991,7 +991,7 @@ function Xo(s, t, e, n, i) {
991
991
  }
992
992
  E[0] += 2 * pt;
993
993
  }
994
- r.push(y = new Xn(m, f, null, !0)), a.push(y.o = new Xn(m, null, y, !1)), r.push(y = new Xn(E, f, null, !1)), a.push(y.o = new Xn(E, null, y, !0));
994
+ r.push(y = new Yn(m, f, null, !0)), a.push(y.o = new Yn(m, null, y, !1)), r.push(y = new Yn(E, f, null, !1)), a.push(y.o = new Yn(E, null, y, !0));
995
995
  }
996
996
  }), !!r.length) {
997
997
  for (a.sort(t), xa(r), xa(a), o = 0, c = a.length; o < c; ++o)
@@ -1026,23 +1026,23 @@ function xa(s) {
1026
1026
  n.n = i = s[0], i.p = n;
1027
1027
  }
1028
1028
  }
1029
- function ni(s) {
1029
+ function ii(s) {
1030
1030
  return ft(s[0]) <= at ? s[0] : be(s[0]) * ((ft(s[0]) + at) % Wt - at);
1031
1031
  }
1032
1032
  function Bu(s, t) {
1033
- var e = ni(t), n = t[1], i = dt(n), r = [dt(e), -gt(e), 0], a = 0, o = 0, c = new Re();
1033
+ var e = ii(t), n = t[1], i = dt(n), r = [dt(e), -gt(e), 0], a = 0, o = 0, c = new Re();
1034
1034
  i === 1 ? n = Ht + pt : i === -1 && (n = -Ht - pt);
1035
1035
  for (var l = 0, h = s.length; l < h; ++l)
1036
1036
  if (u = (d = s[l]).length)
1037
- for (var d, u, p = d[u - 1], f = ni(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = I, p = v) {
1038
- var v = d[y], S = ni(v), b = v[1] / 2 + pa, O = dt(b), I = gt(b), k = S - f, G = k >= 0 ? 1 : -1, C = G * k, L = C > at, B = m * O;
1039
- if (c.add(Ie(B * G * dt(C), E * I + B * gt(C))), a += L ? k + G * Wt : k, L ^ f >= e ^ S >= e) {
1040
- var D = fs(nn(p), nn(v));
1041
- _i(D);
1042
- var A = fs(r, D);
1043
- _i(A);
1044
- var w = (L ^ k >= 0 ? -1 : 1) * Ee(A[2]);
1045
- (n > w || n === w && (D[0] || D[1])) && (o += L ^ k >= 0 ? 1 : -1);
1037
+ for (var d, u, p = d[u - 1], f = ii(p), g = p[1] / 2 + pa, m = dt(g), E = gt(g), y = 0; y < u; ++y, f = S, m = O, E = I, p = v) {
1038
+ var v = d[y], S = ii(v), b = v[1] / 2 + pa, O = dt(b), I = gt(b), C = S - f, G = C >= 0 ? 1 : -1, k = G * C, L = k > at, B = m * O;
1039
+ if (c.add(Ie(B * G * dt(k), E * I + B * gt(k))), a += L ? C + G * Wt : C, L ^ f >= e ^ S >= e) {
1040
+ var D = ms(nn(p), nn(v));
1041
+ Ci(D);
1042
+ var A = ms(r, D);
1043
+ Ci(A);
1044
+ var w = (L ^ C >= 0 ? -1 : 1) * Ee(A[2]);
1045
+ (n > w || n === w && (D[0] || D[1])) && (o += L ^ C >= 0 ? 1 : -1);
1046
1046
  }
1047
1047
  }
1048
1048
  return (a < -pt || a < pt && c < -Uo) ^ o & 1;
@@ -1085,11 +1085,11 @@ function jo(s, t, e, n) {
1085
1085
  }
1086
1086
  function v() {
1087
1087
  E(d[0][0], d[0][1]), o.lineEnd();
1088
- var S = o.clean(), b = a.result(), O, I = b.length, k, G, C;
1088
+ var S = o.clean(), b = a.result(), O, I = b.length, C, G, k;
1089
1089
  if (d.pop(), l.push(d), d = null, !!I) {
1090
1090
  if (S & 1) {
1091
- if (G = b[0], (k = G.length - 1) > 0) {
1092
- for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O < k; ++O) i.point((C = G[O])[0], C[1]);
1091
+ if (G = b[0], (C = G.length - 1) > 0) {
1092
+ for (c || (i.polygonStart(), c = !0), i.lineStart(), O = 0; O < C; ++O) i.point((k = G[O])[0], k[1]);
1093
1093
  i.lineEnd();
1094
1094
  }
1095
1095
  return;
@@ -1162,13 +1162,13 @@ function Wu(s) {
1162
1162
  },
1163
1163
  point: function(m, E) {
1164
1164
  var y = [m, E], v, S = a(m, E), b = n ? S ? 0 : l(m, E) : S ? l(m + (m < 0 ? at : -at), E) : 0;
1165
- if (!d && (f = p = S) && h.lineStart(), S !== p && (v = c(d, y), (!v || as(d, v) || as(y, v)) && (y[2] = 1)), S !== p)
1165
+ if (!d && (f = p = S) && h.lineStart(), S !== p && (v = c(d, y), (!v || ls(d, v) || ls(y, v)) && (y[2] = 1)), S !== p)
1166
1166
  g = 0, S ? (h.lineStart(), v = c(y, d), h.point(v[0], v[1])) : (v = c(d, y), h.point(v[0], v[1], 2), h.lineEnd()), d = v;
1167
1167
  else if (i && d && n ^ S) {
1168
1168
  var O;
1169
1169
  !(b & u) && (O = c(y, d, !0)) && (g = 0, n ? (h.lineStart(), h.point(O[0][0], O[0][1]), h.point(O[1][0], O[1][1]), h.lineEnd()) : (h.point(O[1][0], O[1][1]), h.lineEnd(), h.lineStart(), h.point(O[0][0], O[0][1], 3)));
1170
1170
  }
1171
- S && (!d || !as(d, y)) && h.point(y[0], y[1]), d = y, p = S, u = b;
1171
+ S && (!d || !ls(d, y)) && h.point(y[0], y[1]), d = y, p = S, u = b;
1172
1172
  },
1173
1173
  lineEnd: function() {
1174
1174
  p && h.lineEnd(), d = null;
@@ -1181,20 +1181,20 @@ function Wu(s) {
1181
1181
  };
1182
1182
  }
1183
1183
  function c(h, d, u) {
1184
- var p = nn(h), f = nn(d), g = [1, 0, 0], m = fs(p, f), E = Fn(m, m), y = m[0], v = E - y * y;
1184
+ var p = nn(h), f = nn(d), g = [1, 0, 0], m = ms(p, f), E = Xn(m, m), y = m[0], v = E - y * y;
1185
1185
  if (!v) return !u && h;
1186
- var S = t * E / v, b = -t * y / v, O = fs(g, m), I = Wn(g, S), k = Wn(m, b);
1187
- ei(I, k);
1188
- var G = O, C = Fn(I, G), L = Fn(G, G), B = C * C - L * (Fn(I, I) - 1);
1186
+ var S = t * E / v, b = -t * y / v, O = ms(g, m), I = jn(g, S), C = jn(m, b);
1187
+ si(I, C);
1188
+ var G = O, k = Xn(I, G), L = Xn(G, G), B = k * k - L * (Xn(I, I) - 1);
1189
1189
  if (!(B < 0)) {
1190
- var D = se(B), A = Wn(G, (-C - D) / L);
1191
- if (ei(A, I), A = Mi(A), !u) return A;
1190
+ var D = se(B), A = jn(G, (-k - D) / L);
1191
+ if (si(A, I), A = ki(A), !u) return A;
1192
1192
  var w = h[0], V = d[0], N = h[1], P = d[1], $;
1193
1193
  V < w && ($ = w, w = V, V = $);
1194
1194
  var X = V - w, F = ft(X - at) < pt, et = F || X < pt;
1195
1195
  if (!F && P < N && ($ = N, N = P, P = $), et ? F ? N + P > 0 ^ A[1] < (ft(A[0] - w) < pt ? N : P) : N <= A[1] && A[1] <= P : X > at ^ (w <= A[0] && A[0] <= V)) {
1196
- var J = Wn(G, (-C + D) / L);
1197
- return ei(J, I), [A, Mi(J)];
1196
+ var J = jn(G, (-k + D) / L);
1197
+ return si(J, I), [A, ki(J)];
1198
1198
  }
1199
1199
  }
1200
1200
  }
@@ -1244,7 +1244,7 @@ function Xu(s, t, e, n, i, r) {
1244
1244
  }
1245
1245
  }
1246
1246
  }
1247
- var yn = 1e9, jn = -yn;
1247
+ var yn = 1e9, qn = -yn;
1248
1248
  function ju(s, t, e, n) {
1249
1249
  function i(l, h) {
1250
1250
  return s <= l && l <= e && t <= h && h <= n;
@@ -1270,13 +1270,13 @@ function ju(s, t, e, n) {
1270
1270
  }
1271
1271
  return function(l) {
1272
1272
  var h = l, d = Wo(), u, p, f, g, m, E, y, v, S, b, O, I = {
1273
- point: k,
1273
+ point: C,
1274
1274
  lineStart: B,
1275
1275
  lineEnd: D,
1276
- polygonStart: C,
1276
+ polygonStart: k,
1277
1277
  polygonEnd: L
1278
1278
  };
1279
- function k(w, V) {
1279
+ function C(w, V) {
1280
1280
  i(w, V) && h.point(w, V);
1281
1281
  }
1282
1282
  function G() {
@@ -1285,7 +1285,7 @@ function ju(s, t, e, n) {
1285
1285
  et = ct, J = Q, F = P[$], ct = F[0], Q = F[1], J <= n ? Q > n && (ct - et) * (n - J) > (Q - J) * (s - et) && ++w : Q <= n && (ct - et) * (n - J) < (Q - J) * (s - et) && --w;
1286
1286
  return w;
1287
1287
  }
1288
- function C() {
1288
+ function k() {
1289
1289
  h = d, u = [], p = [], O = !0;
1290
1290
  }
1291
1291
  function L() {
@@ -1296,7 +1296,7 @@ function ju(s, t, e, n) {
1296
1296
  I.point = A, p && p.push(f = []), b = !0, S = !1, y = v = NaN;
1297
1297
  }
1298
1298
  function D() {
1299
- u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point = k, S && h.lineEnd();
1299
+ u && (A(g, m), E && S && d.rejoin(), u.push(d.result())), I.point = C, S && h.lineEnd();
1300
1300
  }
1301
1301
  function A(w, V) {
1302
1302
  var N = i(w, V);
@@ -1304,7 +1304,7 @@ function ju(s, t, e, n) {
1304
1304
  g = w, m = V, E = N, b = !1, N && (h.lineStart(), h.point(w, V));
1305
1305
  else if (N && S) h.point(w, V);
1306
1306
  else {
1307
- var P = [y = Math.max(jn, Math.min(yn, y)), v = Math.max(jn, Math.min(yn, v))], $ = [w = Math.max(jn, Math.min(yn, w)), V = Math.max(jn, Math.min(yn, V))];
1307
+ var P = [y = Math.max(qn, Math.min(yn, y)), v = Math.max(qn, Math.min(yn, v))], $ = [w = Math.max(qn, Math.min(yn, w)), V = Math.max(qn, Math.min(yn, V))];
1308
1308
  Xu(P, $, s, t, e, n) ? (S || (h.lineStart(), h.point(P[0], P[1])), h.point($[0], $[1]), N || h.lineEnd(), O = !1) : N && (h.lineStart(), h.point(w, V), O = !1);
1309
1309
  }
1310
1310
  y = w, v = V, S = N;
@@ -1312,8 +1312,8 @@ function ju(s, t, e, n) {
1312
1312
  return I;
1313
1313
  };
1314
1314
  }
1315
- const Ri = (s) => s;
1316
- var si = new Re(), Ii = new Re(), Yo, qo, Di, Pi, ve = {
1315
+ const Di = (s) => s;
1316
+ var ri = new Re(), Pi = new Re(), Yo, qo, Ni, $i, ve = {
1317
1317
  point: Kt,
1318
1318
  lineStart: Kt,
1319
1319
  lineEnd: Kt,
@@ -1321,40 +1321,40 @@ var si = new Re(), Ii = new Re(), Yo, qo, Di, Pi, ve = {
1321
1321
  ve.lineStart = Yu, ve.lineEnd = Zu;
1322
1322
  },
1323
1323
  polygonEnd: function() {
1324
- ve.lineStart = ve.lineEnd = ve.point = Kt, si.add(ft(Ii)), Ii = new Re();
1324
+ ve.lineStart = ve.lineEnd = ve.point = Kt, ri.add(ft(Pi)), Pi = new Re();
1325
1325
  },
1326
1326
  result: function() {
1327
- var s = si / 2;
1328
- return si = new Re(), s;
1327
+ var s = ri / 2;
1328
+ return ri = new Re(), s;
1329
1329
  }
1330
1330
  };
1331
1331
  function Yu() {
1332
1332
  ve.point = qu;
1333
1333
  }
1334
1334
  function qu(s, t) {
1335
- ve.point = Zo, Yo = Di = s, qo = Pi = t;
1335
+ ve.point = Zo, Yo = Ni = s, qo = $i = t;
1336
1336
  }
1337
1337
  function Zo(s, t) {
1338
- Ii.add(Pi * s - Di * t), Di = s, Pi = t;
1338
+ Pi.add($i * s - Ni * t), Ni = s, $i = t;
1339
1339
  }
1340
1340
  function Zu() {
1341
1341
  Zo(Yo, qo);
1342
1342
  }
1343
- var sn = 1 / 0, gs = sn, kn = -sn, ms = kn, vs = {
1343
+ var sn = 1 / 0, vs = sn, Cn = -sn, ys = Cn, Es = {
1344
1344
  point: Ku,
1345
1345
  lineStart: Kt,
1346
1346
  lineEnd: Kt,
1347
1347
  polygonStart: Kt,
1348
1348
  polygonEnd: Kt,
1349
1349
  result: function() {
1350
- var s = [[sn, gs], [kn, ms]];
1351
- return kn = ms = -(gs = sn = 1 / 0), s;
1350
+ var s = [[sn, vs], [Cn, ys]];
1351
+ return Cn = ys = -(vs = sn = 1 / 0), s;
1352
1352
  }
1353
1353
  };
1354
1354
  function Ku(s, t) {
1355
- s < sn && (sn = s), s > kn && (kn = s), t < gs && (gs = t), t > ms && (ms = t);
1355
+ s < sn && (sn = s), s > Cn && (Cn = s), t < vs && (vs = t), t > ys && (ys = t);
1356
1356
  }
1357
- var Ni = 0, $i = 0, En = 0, ys = 0, Es = 0, Je = 0, Vi = 0, Bi = 0, Sn = 0, Ko, Jo, le, ce, Zt = {
1357
+ var Vi = 0, Bi = 0, En = 0, Ss = 0, xs = 0, Je = 0, Gi = 0, Hi = 0, Sn = 0, Ko, Jo, le, ce, Zt = {
1358
1358
  point: De,
1359
1359
  lineStart: Ta,
1360
1360
  lineEnd: Oa,
@@ -1365,12 +1365,12 @@ var Ni = 0, $i = 0, En = 0, ys = 0, Es = 0, Je = 0, Vi = 0, Bi = 0, Sn = 0, Ko,
1365
1365
  Zt.point = De, Zt.lineStart = Ta, Zt.lineEnd = Oa;
1366
1366
  },
1367
1367
  result: function() {
1368
- var s = Sn ? [Vi / Sn, Bi / Sn] : Je ? [ys / Je, Es / Je] : En ? [Ni / En, $i / En] : [NaN, NaN];
1369
- return Ni = $i = En = ys = Es = Je = Vi = Bi = Sn = 0, s;
1368
+ var s = Sn ? [Gi / Sn, Hi / Sn] : Je ? [Ss / Je, xs / Je] : En ? [Vi / En, Bi / En] : [NaN, NaN];
1369
+ return Vi = Bi = En = Ss = xs = Je = Gi = Hi = Sn = 0, s;
1370
1370
  }
1371
1371
  };
1372
1372
  function De(s, t) {
1373
- Ni += s, $i += t, ++En;
1373
+ Vi += s, Bi += t, ++En;
1374
1374
  }
1375
1375
  function Ta() {
1376
1376
  Zt.point = Ju;
@@ -1380,7 +1380,7 @@ function Ju(s, t) {
1380
1380
  }
1381
1381
  function Qu(s, t) {
1382
1382
  var e = s - le, n = t - ce, i = se(e * e + n * n);
1383
- ys += i * (le + s) / 2, Es += i * (ce + t) / 2, Je += i, De(le = s, ce = t);
1383
+ Ss += i * (le + s) / 2, xs += i * (ce + t) / 2, Je += i, De(le = s, ce = t);
1384
1384
  }
1385
1385
  function Oa() {
1386
1386
  Zt.point = De;
@@ -1396,7 +1396,7 @@ function nh(s, t) {
1396
1396
  }
1397
1397
  function Qo(s, t) {
1398
1398
  var e = s - le, n = t - ce, i = se(e * e + n * n);
1399
- ys += i * (le + s) / 2, Es += i * (ce + t) / 2, Je += i, i = ce * s - le * t, Vi += i * (le + s), Bi += i * (ce + t), Sn += i * 3, De(le = s, ce = t);
1399
+ Ss += i * (le + s) / 2, xs += i * (ce + t) / 2, Je += i, i = ce * s - le * t, Gi += i * (le + s), Hi += i * (ce + t), Sn += i * 3, De(le = s, ce = t);
1400
1400
  }
1401
1401
  function tl(s) {
1402
1402
  this._context = s;
@@ -1436,32 +1436,32 @@ tl.prototype = {
1436
1436
  },
1437
1437
  result: Kt
1438
1438
  };
1439
- var Gi = new Re(), ii, el, nl, xn, bn, Rn = {
1439
+ var Ui = new Re(), ai, el, nl, xn, bn, Rn = {
1440
1440
  point: Kt,
1441
1441
  lineStart: function() {
1442
1442
  Rn.point = sh;
1443
1443
  },
1444
1444
  lineEnd: function() {
1445
- ii && sl(el, nl), Rn.point = Kt;
1445
+ ai && sl(el, nl), Rn.point = Kt;
1446
1446
  },
1447
1447
  polygonStart: function() {
1448
- ii = !0;
1448
+ ai = !0;
1449
1449
  },
1450
1450
  polygonEnd: function() {
1451
- ii = null;
1451
+ ai = null;
1452
1452
  },
1453
1453
  result: function() {
1454
- var s = +Gi;
1455
- return Gi = new Re(), s;
1454
+ var s = +Ui;
1455
+ return Ui = new Re(), s;
1456
1456
  }
1457
1457
  };
1458
1458
  function sh(s, t) {
1459
1459
  Rn.point = sl, el = xn = s, nl = bn = t;
1460
1460
  }
1461
1461
  function sl(s, t) {
1462
- xn -= s, bn -= t, Gi.add(se(xn * xn + bn * bn)), xn = s, bn = t;
1462
+ xn -= s, bn -= t, Ui.add(se(xn * xn + bn * bn)), xn = s, bn = t;
1463
1463
  }
1464
- let wa, Ss, La, Aa;
1464
+ let wa, bs, La, Aa;
1465
1465
  class Ma {
1466
1466
  constructor(t) {
1467
1467
  this._append = t == null ? il : ih(t), this._radius = 4.5, this._ = "";
@@ -1492,9 +1492,9 @@ class Ma {
1492
1492
  break;
1493
1493
  }
1494
1494
  default: {
1495
- if (this._append`M${t},${e}`, this._radius !== La || this._append !== Ss) {
1495
+ if (this._append`M${t},${e}`, this._radius !== La || this._append !== bs) {
1496
1496
  const n = this._radius, i = this._;
1497
- this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, La = n, Ss = this._append, Aa = this._, this._ = i;
1497
+ this._ = "", this._append`m0,${n}a${n},${n} 0 1,1 0,${-2 * n}a${n},${n} 0 1,1 0,${2 * n}z`, La = n, bs = this._append, Aa = this._, this._ = i;
1498
1498
  }
1499
1499
  this._ += Aa;
1500
1500
  break;
@@ -1518,14 +1518,14 @@ function ih(s) {
1518
1518
  if (t > 15) return il;
1519
1519
  if (t !== wa) {
1520
1520
  const e = 10 ** t;
1521
- wa = t, Ss = function(i) {
1521
+ wa = t, bs = function(i) {
1522
1522
  let r = 1;
1523
1523
  this._ += i[0];
1524
1524
  for (const a = i.length; r < a; ++r)
1525
1525
  this._ += Math.round(arguments[r] * e) / e + i[r];
1526
1526
  };
1527
1527
  }
1528
- return Ss;
1528
+ return bs;
1529
1529
  }
1530
1530
  function rh(s, t) {
1531
1531
  let e = 3, n = 4.5, i, r;
@@ -1537,11 +1537,11 @@ function rh(s, t) {
1537
1537
  }, a.measure = function(o) {
1538
1538
  return je(o, i(Rn)), Rn.result();
1539
1539
  }, a.bounds = function(o) {
1540
- return je(o, i(vs)), vs.result();
1540
+ return je(o, i(Es)), Es.result();
1541
1541
  }, a.centroid = function(o) {
1542
1542
  return je(o, i(Zt)), Zt.result();
1543
1543
  }, a.projection = function(o) {
1544
- return arguments.length ? (i = o == null ? (s = null, Ri) : (s = o).stream, a) : s;
1544
+ return arguments.length ? (i = o == null ? (s = null, Di) : (s = o).stream, a) : s;
1545
1545
  }, a.context = function(o) {
1546
1546
  return arguments.length ? (r = o == null ? (t = null, new Ma(e)) : new tl(t = o), typeof n != "function" && r.pointRadius(n), a) : t;
1547
1547
  }, a.pointRadius = function(o) {
@@ -1557,17 +1557,17 @@ function rh(s, t) {
1557
1557
  return t === null && (r = new Ma(e)), a;
1558
1558
  }, a.projection(s).digits(e).context(t);
1559
1559
  }
1560
- function pr(s) {
1560
+ function gr(s) {
1561
1561
  return function(t) {
1562
- var e = new Hi();
1562
+ var e = new zi();
1563
1563
  for (var n in s) e[n] = s[n];
1564
1564
  return e.stream = t, e;
1565
1565
  };
1566
1566
  }
1567
- function Hi() {
1567
+ function zi() {
1568
1568
  }
1569
- Hi.prototype = {
1570
- constructor: Hi,
1569
+ zi.prototype = {
1570
+ constructor: zi,
1571
1571
  point: function(s, t) {
1572
1572
  this.stream.point(s, t);
1573
1573
  },
@@ -1587,12 +1587,12 @@ Hi.prototype = {
1587
1587
  this.stream.polygonEnd();
1588
1588
  }
1589
1589
  };
1590
- function fr(s, t, e) {
1590
+ function mr(s, t, e) {
1591
1591
  var n = s.clipExtent && s.clipExtent();
1592
- return s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), je(e, s.stream(vs)), t(vs.result()), n != null && s.clipExtent(n), s;
1592
+ return s.scale(150).translate([0, 0]), n != null && s.clipExtent(null), je(e, s.stream(Es)), t(Es.result()), n != null && s.clipExtent(n), s;
1593
1593
  }
1594
1594
  function rl(s, t, e) {
1595
- return fr(s, function(n) {
1595
+ return mr(s, function(n) {
1596
1596
  var i = t[1][0] - t[0][0], r = t[1][1] - t[0][1], a = Math.min(i / (n[1][0] - n[0][0]), r / (n[1][1] - n[0][1])), o = +t[0][0] + (i - a * (n[1][0] + n[0][0])) / 2, c = +t[0][1] + (r - a * (n[1][1] + n[0][1])) / 2;
1597
1597
  s.scale(150 * a).translate([o, c]);
1598
1598
  }, e);
@@ -1601,23 +1601,23 @@ function ah(s, t, e) {
1601
1601
  return rl(s, [[0, 0], t], e);
1602
1602
  }
1603
1603
  function oh(s, t, e) {
1604
- return fr(s, function(n) {
1604
+ return mr(s, function(n) {
1605
1605
  var i = +t, r = i / (n[1][0] - n[0][0]), a = (i - r * (n[1][0] + n[0][0])) / 2, o = -r * n[0][1];
1606
1606
  s.scale(150 * r).translate([a, o]);
1607
1607
  }, e);
1608
1608
  }
1609
1609
  function lh(s, t, e) {
1610
- return fr(s, function(n) {
1610
+ return mr(s, function(n) {
1611
1611
  var i = +t, r = i / (n[1][1] - n[0][1]), a = -r * n[0][0], o = (i - r * (n[1][1] + n[0][1])) / 2;
1612
1612
  s.scale(150 * r).translate([a, o]);
1613
1613
  }, e);
1614
1614
  }
1615
1615
  var _a = 16, ch = gt(30 * Tt);
1616
- function Ca(s, t) {
1616
+ function ka(s, t) {
1617
1617
  return +t ? hh(s, t) : uh(s);
1618
1618
  }
1619
1619
  function uh(s) {
1620
- return pr({
1620
+ return gr({
1621
1621
  point: function(t, e) {
1622
1622
  t = s(t, e), this.stream.point(t[0], t[1]);
1623
1623
  }
@@ -1627,7 +1627,7 @@ function hh(s, t) {
1627
1627
  function e(n, i, r, a, o, c, l, h, d, u, p, f, g, m) {
1628
1628
  var E = l - n, y = h - i, v = E * E + y * y;
1629
1629
  if (v > 4 * t && g--) {
1630
- var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O), k = Ee(O /= I), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), C = s(G, k), L = C[0], B = C[1], D = L - n, A = B - i, w = y * D - E * A;
1630
+ var S = a + u, b = o + p, O = c + f, I = se(S * S + b * b + O * O), C = Ee(O /= I), G = ft(ft(O) - 1) < pt || ft(r - d) < pt ? (r + d) / 2 : Ie(b, S), k = s(G, C), L = k[0], B = k[1], D = L - n, A = B - i, w = y * D - E * A;
1631
1631
  (w * w / v > t || ft((E * D + y * A) / v - 0.5) > 0.3 || a * u + o * p + c * f < ch) && (e(n, i, r, a, o, c, L, B, G, S /= I, b /= I, O, g, m), m.point(L, B), e(L, B, G, S, b, O, l, h, d, u, p, f, g, m));
1632
1632
  }
1633
1633
  }
@@ -1643,15 +1643,15 @@ function hh(s, t) {
1643
1643
  n.polygonEnd(), m.lineStart = y;
1644
1644
  }
1645
1645
  };
1646
- function E(k, G) {
1647
- k = s(k, G), n.point(k[0], k[1]);
1646
+ function E(C, G) {
1647
+ C = s(C, G), n.point(C[0], C[1]);
1648
1648
  }
1649
1649
  function y() {
1650
1650
  d = NaN, m.point = v, n.lineStart();
1651
1651
  }
1652
- function v(k, G) {
1653
- var C = nn([k, G]), L = s(k, G);
1654
- e(d, u, h, p, f, g, d = L[0], u = L[1], h = k, p = C[0], f = C[1], g = C[2], _a, n), n.point(d, u);
1652
+ function v(C, G) {
1653
+ var k = nn([C, G]), L = s(C, G);
1654
+ e(d, u, h, p, f, g, d = L[0], u = L[1], h = C, p = k[0], f = k[1], g = k[2], _a, n), n.point(d, u);
1655
1655
  }
1656
1656
  function S() {
1657
1657
  m.point = E, n.lineEnd();
@@ -1659,8 +1659,8 @@ function hh(s, t) {
1659
1659
  function b() {
1660
1660
  y(), m.point = O, m.lineEnd = I;
1661
1661
  }
1662
- function O(k, G) {
1663
- v(i = k, G), r = d, a = u, o = p, c = f, l = g, m.point = v;
1662
+ function O(C, G) {
1663
+ v(i = C, G), r = d, a = u, o = p, c = f, l = g, m.point = v;
1664
1664
  }
1665
1665
  function I() {
1666
1666
  e(d, u, h, p, f, g, r, a, i, o, c, l, _a, n), m.lineEnd = S, S();
@@ -1668,13 +1668,13 @@ function hh(s, t) {
1668
1668
  return m;
1669
1669
  };
1670
1670
  }
1671
- var dh = pr({
1671
+ var dh = gr({
1672
1672
  point: function(s, t) {
1673
1673
  this.stream.point(s * Tt, t * Tt);
1674
1674
  }
1675
1675
  });
1676
1676
  function ph(s) {
1677
- return pr({
1677
+ return gr({
1678
1678
  point: function(t, e) {
1679
1679
  var n = s(t, e);
1680
1680
  return this.stream.point(n[0], n[1]);
@@ -1689,7 +1689,7 @@ function fh(s, t, e, n, i) {
1689
1689
  return [(a - t) / s * n, (e - o) / s * i];
1690
1690
  }, r;
1691
1691
  }
1692
- function ka(s, t, e, n, i, r) {
1692
+ function Ca(s, t, e, n, i, r) {
1693
1693
  if (!r) return fh(s, t, e, n, i);
1694
1694
  var a = gt(r), o = dt(r), c = a * s, l = o * s, h = a / s, d = o / s, u = (o * e - a * t) / s, p = (o * t + a * e) / s;
1695
1695
  function f(g, m) {
@@ -1699,21 +1699,21 @@ function ka(s, t, e, n, i, r) {
1699
1699
  return [n * (h * g - d * m + u), i * (p - d * g - h * m)];
1700
1700
  }, f;
1701
1701
  }
1702
- function Ds(s) {
1702
+ function Ns(s) {
1703
1703
  return al(function() {
1704
1704
  return s;
1705
1705
  })();
1706
1706
  }
1707
1707
  function al(s) {
1708
- var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Ri, b = 0.5, O, I, k, G, C;
1708
+ var t, e = 150, n = 480, i = 250, r = 0, a = 0, o = 0, c = 0, l = 0, h, d = 0, u = 1, p = 1, f = null, g = ba, m = null, E, y, v, S = Di, b = 0.5, O, I, C, G, k;
1709
1709
  function L(w) {
1710
- return k(w[0] * Tt, w[1] * Tt);
1710
+ return C(w[0] * Tt, w[1] * Tt);
1711
1711
  }
1712
1712
  function B(w) {
1713
- return w = k.invert(w[0], w[1]), w && [w[0] * Nt, w[1] * Nt];
1713
+ return w = C.invert(w[0], w[1]), w && [w[0] * Nt, w[1] * Nt];
1714
1714
  }
1715
1715
  L.stream = function(w) {
1716
- return G && C === w ? G : G = dh(ph(h)(g(O(S(C = w)))));
1716
+ return G && k === w ? G : G = dh(ph(h)(g(O(S(k = w)))));
1717
1717
  }, L.preclip = function(w) {
1718
1718
  return arguments.length ? (g = w, f = void 0, A()) : g;
1719
1719
  }, L.postclip = function(w) {
@@ -1721,7 +1721,7 @@ function al(s) {
1721
1721
  }, L.clipAngle = function(w) {
1722
1722
  return arguments.length ? (g = +w ? Wu(f = w * Tt) : (f = null, ba), A()) : f * Nt;
1723
1723
  }, L.clipExtent = function(w) {
1724
- return arguments.length ? (S = w == null ? (m = E = y = v = null, Ri) : ju(m = +w[0][0], E = +w[0][1], y = +w[1][0], v = +w[1][1]), A()) : m == null ? null : [[m, E], [y, v]];
1724
+ return arguments.length ? (S = w == null ? (m = E = y = v = null, Di) : ju(m = +w[0][0], E = +w[0][1], y = +w[1][0], v = +w[1][1]), A()) : m == null ? null : [[m, E], [y, v]];
1725
1725
  }, L.scale = function(w) {
1726
1726
  return arguments.length ? (e = +w, D()) : e;
1727
1727
  }, L.translate = function(w) {
@@ -1737,7 +1737,7 @@ function al(s) {
1737
1737
  }, L.reflectY = function(w) {
1738
1738
  return arguments.length ? (p = w ? -1 : 1, D()) : p < 0;
1739
1739
  }, L.precision = function(w) {
1740
- return arguments.length ? (O = Ca(I, b = w * w), A()) : se(b);
1740
+ return arguments.length ? (O = ka(I, b = w * w), A()) : se(b);
1741
1741
  }, L.fitExtent = function(w, V) {
1742
1742
  return rl(L, w, V);
1743
1743
  }, L.fitSize = function(w, V) {
@@ -1748,11 +1748,11 @@ function al(s) {
1748
1748
  return lh(L, w, V);
1749
1749
  };
1750
1750
  function D() {
1751
- var w = ka(e, 0, 0, u, p, d).apply(null, t(r, a)), V = ka(e, n - w[0], i - w[1], u, p, d);
1752
- return h = Fo(o, c, l), I = Ci(t, V), k = Ci(h, I), O = Ca(I, b), A();
1751
+ var w = Ca(e, 0, 0, u, p, d).apply(null, t(r, a)), V = Ca(e, n - w[0], i - w[1], u, p, d);
1752
+ return h = Fo(o, c, l), I = Ri(t, V), C = Ri(h, I), O = ka(I, b), A();
1753
1753
  }
1754
1754
  function A() {
1755
- return G = C = null, L;
1755
+ return G = k = null, L;
1756
1756
  }
1757
1757
  return function() {
1758
1758
  return t = s.apply(this, arguments), L.invert = t.invert && B, D();
@@ -1792,17 +1792,17 @@ function ll() {
1792
1792
  function vh() {
1793
1793
  return ll().parallels([29.5, 45.5]).scale(1070).translate([480, 250]).rotate([96, 0]).center([-0.6, 38.7]);
1794
1794
  }
1795
- function gr(s, t) {
1795
+ function vr(s, t) {
1796
1796
  return [s, Du(Pu((Ht + t) / 2))];
1797
1797
  }
1798
- gr.invert = function(s, t) {
1798
+ vr.invert = function(s, t) {
1799
1799
  return [s, 2 * zo(Iu(t)) - Ht];
1800
1800
  };
1801
1801
  function yh() {
1802
- return Eh(gr).scale(961 / Wt);
1802
+ return Eh(vr).scale(961 / Wt);
1803
1803
  }
1804
1804
  function Eh(s) {
1805
- var t = Ds(s), e = t.center, n = t.scale, i = t.translate, r = t.clipExtent, a = null, o, c, l;
1805
+ var t = Ns(s), e = t.center, n = t.scale, i = t.translate, r = t.clipExtent, a = null, o, c, l;
1806
1806
  t.scale = function(d) {
1807
1807
  return arguments.length ? (n(d), h()) : n();
1808
1808
  }, t.translate = function(d) {
@@ -1814,20 +1814,20 @@ function Eh(s) {
1814
1814
  };
1815
1815
  function h() {
1816
1816
  var d = at * n(), u = t($u(t.rotate()).invert([0, 0]));
1817
- return r(a == null ? [[u[0] - d, u[1] - d], [u[0] + d, u[1] + d]] : s === gr ? [[Math.max(u[0] - d, a), o], [Math.min(u[0] + d, c), l]] : [[a, Math.max(u[1] - d, o)], [c, Math.min(u[1] + d, l)]]);
1817
+ return r(a == null ? [[u[0] - d, u[1] - d], [u[0] + d, u[1] + d]] : s === vr ? [[Math.max(u[0] - d, a), o], [Math.min(u[0] + d, c), l]] : [[a, Math.max(u[1] - d, o)], [c, Math.min(u[1] + d, l)]]);
1818
1818
  }
1819
1819
  return h();
1820
1820
  }
1821
- function xs(s, t) {
1821
+ function Ts(s, t) {
1822
1822
  return [s, t];
1823
1823
  }
1824
- xs.invert = xs;
1824
+ Ts.invert = Ts;
1825
1825
  function Sh() {
1826
- return Ds(xs).scale(152.63);
1826
+ return Ns(Ts).scale(152.63);
1827
1827
  }
1828
1828
  function xh(s, t) {
1829
1829
  var e = gt(s), n = s === t ? dt(s) : (e - gt(t)) / (t - s), i = e / n + s;
1830
- if (ft(n) < pt) return xs;
1830
+ if (ft(n) < pt) return Ts;
1831
1831
  function r(a, o) {
1832
1832
  var c = i - o, l = n * a;
1833
1833
  return [c * dt(l), i - c * gt(l)];
@@ -1840,11 +1840,11 @@ function xh(s, t) {
1840
1840
  function bh() {
1841
1841
  return ol(xh).scale(131.154).center([0, 13.9389]);
1842
1842
  }
1843
- var Ln = 1.340264, An = -0.081106, Mn = 893e-6, _n = 3796e-6, bs = se(3) / 2, Th = 12;
1843
+ var Ln = 1.340264, An = -0.081106, Mn = 893e-6, _n = 3796e-6, Os = se(3) / 2, Th = 12;
1844
1844
  function cl(s, t) {
1845
- var e = Ee(bs * dt(t)), n = e * e, i = n * n * n;
1845
+ var e = Ee(Os * dt(t)), n = e * e, i = n * n * n;
1846
1846
  return [
1847
- s * gt(e) / (bs * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n))),
1847
+ s * gt(e) / (Os * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n))),
1848
1848
  e * (Ln + An * n + i * (Mn + _n * n))
1849
1849
  ];
1850
1850
  }
@@ -1852,12 +1852,12 @@ cl.invert = function(s, t) {
1852
1852
  for (var e = t, n = e * e, i = n * n * n, r = 0, a, o, c; r < Th && (o = e * (Ln + An * n + i * (Mn + _n * n)) - t, c = Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n), e -= a = o / c, n = e * e, i = n * n * n, !(ft(a) < Uo)); ++r)
1853
1853
  ;
1854
1854
  return [
1855
- bs * s * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n)) / gt(e),
1856
- Ee(dt(e) / bs)
1855
+ Os * s * (Ln + 3 * An * n + i * (7 * Mn + 9 * _n * n)) / gt(e),
1856
+ Ee(dt(e) / Os)
1857
1857
  ];
1858
1858
  };
1859
1859
  function Oh() {
1860
- return Ds(cl).scale(177.158);
1860
+ return Ns(cl).scale(177.158);
1861
1861
  }
1862
1862
  function ul(s, t) {
1863
1863
  var e = t * t, n = e * e;
@@ -1878,7 +1878,7 @@ ul.invert = function(s, t) {
1878
1878
  ];
1879
1879
  };
1880
1880
  function wh() {
1881
- return Ds(ul).scale(175.295);
1881
+ return Ns(ul).scale(175.295);
1882
1882
  }
1883
1883
  function Lh(s, t) {
1884
1884
  return s.parent === t.parent ? 1 : 2;
@@ -1890,12 +1890,12 @@ function Mh(s, t) {
1890
1890
  return s + t.x;
1891
1891
  }
1892
1892
  function _h(s) {
1893
- return 1 + s.reduce(Ch, 0);
1893
+ return 1 + s.reduce(kh, 0);
1894
1894
  }
1895
- function Ch(s, t) {
1895
+ function kh(s, t) {
1896
1896
  return Math.max(s, t.y);
1897
1897
  }
1898
- function kh(s) {
1898
+ function Ch(s) {
1899
1899
  for (var t; t = s.children; ) s = t[0];
1900
1900
  return s;
1901
1901
  }
@@ -1911,7 +1911,7 @@ function Ih() {
1911
1911
  var p = u.children;
1912
1912
  p ? (u.x = Ah(p), u.y = _h(p)) : (u.x = a ? o += s(u, a) : 0, u.y = 0, a = u);
1913
1913
  });
1914
- var c = kh(r), l = Rh(r), h = c.x - s(c, l) / 2, d = l.x + s(l, c) / 2;
1914
+ var c = Ch(r), l = Rh(r), h = c.x - s(c, l) / 2, d = l.x + s(l, c) / 2;
1915
1915
  return r.eachAfter(n ? function(u) {
1916
1916
  u.x = (u.x - r.x) * t, u.y = (r.y - u.y) * e;
1917
1917
  } : function(u) {
@@ -2070,7 +2070,7 @@ function hl(s) {
2070
2070
  if (typeof s != "function") throw new Error();
2071
2071
  return s;
2072
2072
  }
2073
- function Ce() {
2073
+ function ke() {
2074
2074
  return 0;
2075
2075
  }
2076
2076
  function Ye(s) {
@@ -2099,17 +2099,17 @@ function ad(s, t) {
2099
2099
  }
2100
2100
  function od(s, t) {
2101
2101
  var e, n;
2102
- if (ri(t, s)) return [t];
2102
+ if (oi(t, s)) return [t];
2103
2103
  for (e = 0; e < s.length; ++e)
2104
- if (Yn(t, s[e]) && ri(Tn(s[e], t), s))
2104
+ if (Zn(t, s[e]) && oi(Tn(s[e], t), s))
2105
2105
  return [s[e], t];
2106
2106
  for (e = 0; e < s.length - 1; ++e)
2107
2107
  for (n = e + 1; n < s.length; ++n)
2108
- if (Yn(Tn(s[e], s[n]), t) && Yn(Tn(s[e], t), s[n]) && Yn(Tn(s[n], t), s[e]) && ri(pl(s[e], s[n], t), s))
2108
+ if (Zn(Tn(s[e], s[n]), t) && Zn(Tn(s[e], t), s[n]) && Zn(Tn(s[n], t), s[e]) && oi(pl(s[e], s[n], t), s))
2109
2109
  return [s[e], s[n], t];
2110
2110
  throw new Error();
2111
2111
  }
2112
- function Yn(s, t) {
2112
+ function Zn(s, t) {
2113
2113
  var e = s.r - t.r, n = t.x - s.x, i = t.y - s.y;
2114
2114
  return e < 0 || e * e < n * n + i * i;
2115
2115
  }
@@ -2117,7 +2117,7 @@ function dl(s, t) {
2117
2117
  var e = s.r - t.r + Math.max(s.r, t.r, 1) * 1e-9, n = t.x - s.x, i = t.y - s.y;
2118
2118
  return e > 0 && e * e > n * n + i * i;
2119
2119
  }
2120
- function ri(s, t) {
2120
+ function oi(s, t) {
2121
2121
  for (var e = 0; e < t.length; ++e)
2122
2122
  if (!dl(s, t[e]))
2123
2123
  return !1;
@@ -2149,10 +2149,10 @@ function Tn(s, t) {
2149
2149
  };
2150
2150
  }
2151
2151
  function pl(s, t, e) {
2152
- var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b, k = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, C = I * I + G * G - 1, L = 2 * (r + O * I + k * G), B = O * O + k * k - r * r, D = -(Math.abs(C) > 1e-6 ? (L + Math.sqrt(L * L - 4 * C * B)) / (2 * C) : B / L);
2152
+ var n = s.x, i = s.y, r = s.r, a = t.x, o = t.y, c = t.r, l = e.x, h = e.y, d = e.r, u = n - a, p = n - l, f = i - o, g = i - h, m = c - r, E = d - r, y = n * n + i * i - r * r, v = y - a * a - o * o + c * c, S = y - l * l - h * h + d * d, b = p * f - u * g, O = (f * S - g * v) / (b * 2) - n, I = (g * m - f * E) / b, C = (p * v - u * S) / (b * 2) - i, G = (u * E - p * m) / b, k = I * I + G * G - 1, L = 2 * (r + O * I + C * G), B = O * O + C * C - r * r, D = -(Math.abs(k) > 1e-6 ? (L + Math.sqrt(L * L - 4 * k * B)) / (2 * k) : B / L);
2153
2153
  return {
2154
2154
  x: n + O + I * D,
2155
- y: i + k + G * D,
2155
+ y: i + C + G * D,
2156
2156
  r: D
2157
2157
  };
2158
2158
  }
@@ -2168,7 +2168,7 @@ function Pa(s) {
2168
2168
  var t = s._, e = s.next._, n = t.r + e.r, i = (t.x * e.r + e.x * t.r) / n, r = (t.y * e.r + e.y * t.r) / n;
2169
2169
  return i * i + r * r;
2170
2170
  }
2171
- function qn(s) {
2171
+ function Kn(s) {
2172
2172
  this._ = s, this.next = null, this.previous = null;
2173
2173
  }
2174
2174
  function ud(s, t) {
@@ -2176,9 +2176,9 @@ function ud(s, t) {
2176
2176
  var e, n, i, r, a, o, c, l, h, d, u;
2177
2177
  if (e = s[0], e.x = 0, e.y = 0, !(r > 1)) return e.r;
2178
2178
  if (n = s[1], e.x = -n.r, n.x = e.r, n.y = 0, !(r > 2)) return e.r + n.r;
2179
- Ia(n, e, i = s[2]), e = new qn(e), n = new qn(n), i = new qn(i), e.next = i.previous = n, n.next = e.previous = i, i.next = n.previous = e;
2179
+ Ia(n, e, i = s[2]), e = new Kn(e), n = new Kn(n), i = new Kn(i), e.next = i.previous = n, n.next = e.previous = i, i.next = n.previous = e;
2180
2180
  t: for (c = 3; c < r; ++c) {
2181
- Ia(e._, n._, i = s[c]), i = new qn(i), l = n.next, h = e.previous, d = n._.r, u = e._.r;
2181
+ Ia(e._, n._, i = s[c]), i = new Kn(i), l = n.next, h = e.previous, d = n._.r, u = e._.r;
2182
2182
  do
2183
2183
  if (d <= u) {
2184
2184
  if (Da(l._, i._)) {
@@ -2206,10 +2206,10 @@ function hd(s) {
2206
2206
  return Math.sqrt(s.value);
2207
2207
  }
2208
2208
  function dd() {
2209
- var s = null, t = 1, e = 1, n = Ce;
2209
+ var s = null, t = 1, e = 1, n = ke;
2210
2210
  function i(r) {
2211
2211
  const a = sd();
2212
- return r.x = t / 2, r.y = e / 2, s ? r.eachBefore(Na(s)).eachAfter(ai(n, 0.5, a)).eachBefore($a(1)) : r.eachBefore(Na(hd)).eachAfter(ai(Ce, 1, a)).eachAfter(ai(n, r.r / Math.min(t, e), a)).eachBefore($a(Math.min(t, e) / (2 * r.r))), r;
2212
+ return r.x = t / 2, r.y = e / 2, s ? r.eachBefore(Na(s)).eachAfter(li(n, 0.5, a)).eachBefore($a(1)) : r.eachBefore(Na(hd)).eachAfter(li(ke, 1, a)).eachAfter(li(n, r.r / Math.min(t, e), a)).eachBefore($a(Math.min(t, e) / (2 * r.r))), r;
2213
2213
  }
2214
2214
  return i.radius = function(r) {
2215
2215
  return arguments.length ? (s = td(r), i) : s;
@@ -2224,7 +2224,7 @@ function Na(s) {
2224
2224
  t.children || (t.r = Math.max(0, +s(t) || 0));
2225
2225
  };
2226
2226
  }
2227
- function ai(s, t, e) {
2227
+ function li(s, t, e) {
2228
2228
  return function(n) {
2229
2229
  if (i = n.children) {
2230
2230
  var i, r, a = i.length, o = s(n) * t || 0, c;
@@ -2250,11 +2250,11 @@ function fd(s, t, e, n, i) {
2250
2250
  function gd(s, t) {
2251
2251
  return s.parent === t.parent ? 1 : 2;
2252
2252
  }
2253
- function oi(s) {
2253
+ function ci(s) {
2254
2254
  var t = s.children;
2255
2255
  return t ? t[0] : s.t;
2256
2256
  }
2257
- function li(s) {
2257
+ function ui(s) {
2258
2258
  var t = s.children;
2259
2259
  return t ? t[t.length - 1] : s.t;
2260
2260
  }
@@ -2269,16 +2269,16 @@ function vd(s) {
2269
2269
  function yd(s, t, e) {
2270
2270
  return s.a.parent === t.parent ? s.a : e;
2271
2271
  }
2272
- function os(s, t) {
2272
+ function cs(s, t) {
2273
2273
  this._ = s, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
2274
2274
  }
2275
- os.prototype = Object.create(In.prototype);
2275
+ cs.prototype = Object.create(In.prototype);
2276
2276
  function Ed(s) {
2277
- for (var t = new os(s, 0), e, n = [t], i, r, a, o; e = n.pop(); )
2277
+ for (var t = new cs(s, 0), e, n = [t], i, r, a, o; e = n.pop(); )
2278
2278
  if (r = e._.children)
2279
2279
  for (e.children = new Array(o = r.length), a = o - 1; a >= 0; --a)
2280
- n.push(i = e.children[a] = new os(r[a], a)), i.parent = e;
2281
- return (t.parent = new os(null, 0)).children = [t], t;
2280
+ n.push(i = e.children[a] = new cs(r[a], a)), i.parent = e;
2281
+ return (t.parent = new cs(null, 0)).children = [t], t;
2282
2282
  }
2283
2283
  function Sd() {
2284
2284
  var s = gd, t = 1, e = 1, n = null;
@@ -2311,9 +2311,9 @@ function Sd() {
2311
2311
  }
2312
2312
  function o(l, h, d) {
2313
2313
  if (h) {
2314
- for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, E = p.m, y = f.m, v = g.m, S; f = li(f), u = oi(u), f && u; )
2315
- g = oi(g), p = li(p), p.a = l, S = f.z + y - u.z - m + s(f._, u._), S > 0 && (md(yd(f, l, d), l, S), m += S, E += S), y += f.m, m += u.m, v += g.m, E += p.m;
2316
- f && !li(p) && (p.t = f, p.m += y - E), u && !oi(g) && (g.t = u, g.m += m - v, d = l);
2314
+ for (var u = l, p = l, f = h, g = u.parent.children[0], m = u.m, E = p.m, y = f.m, v = g.m, S; f = ui(f), u = ci(u), f && u; )
2315
+ g = ci(g), p = ui(p), p.a = l, S = f.z + y - u.z - m + s(f._, u._), S > 0 && (md(yd(f, l, d), l, S), m += S, E += S), y += f.m, m += u.m, v += g.m, E += p.m;
2316
+ f && !ui(p) && (p.t = f, p.m += y - E), u && !ci(g) && (g.t = u, g.m += m - v, d = l);
2317
2317
  }
2318
2318
  return d;
2319
2319
  }
@@ -2359,7 +2359,7 @@ const Od = function s(t) {
2359
2359
  }, e;
2360
2360
  }(bd);
2361
2361
  function wd() {
2362
- var s = Od, t = !1, e = 1, n = 1, i = [0], r = Ce, a = Ce, o = Ce, c = Ce, l = Ce;
2362
+ var s = Od, t = !1, e = 1, n = 1, i = [0], r = ke, a = ke, o = ke, c = ke, l = ke;
2363
2363
  function h(u) {
2364
2364
  return u.x0 = u.y0 = 0, u.x1 = e, u.y1 = n, u.eachBefore(d), i = [0], t && u.eachBefore(pd), u;
2365
2365
  }
@@ -2389,7 +2389,7 @@ function wd() {
2389
2389
  return arguments.length ? (l = typeof u == "function" ? u : Ye(+u), h) : l;
2390
2390
  }, h;
2391
2391
  }
2392
- function Ps(s) {
2392
+ function $s(s) {
2393
2393
  let t = 3;
2394
2394
  return s.digits = function(e) {
2395
2395
  if (!arguments.length) return t;
@@ -2401,7 +2401,7 @@ function Ps(s) {
2401
2401
  t = n;
2402
2402
  }
2403
2403
  return s;
2404
- }, () => new dr(t);
2404
+ }, () => new fr(t);
2405
2405
  }
2406
2406
  function Ld(s) {
2407
2407
  return s.innerRadius;
@@ -2415,49 +2415,49 @@ function Md(s) {
2415
2415
  function _d(s) {
2416
2416
  return s.endAngle;
2417
2417
  }
2418
- function Cd(s) {
2418
+ function kd(s) {
2419
2419
  return s && s.padAngle;
2420
2420
  }
2421
- function kd(s, t, e, n, i, r, a, o) {
2421
+ function Cd(s, t, e, n, i, r, a, o) {
2422
2422
  var c = e - s, l = n - t, h = a - i, d = o - r, u = d * c - h * l;
2423
2423
  if (!(u * u < Gt))
2424
2424
  return u = (h * (t - r) - d * (s - i)) / u, [s + u * c, t + u * l];
2425
2425
  }
2426
- function Zn(s, t, e, n, i, r, a) {
2427
- var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(ic(0, b * b * S - O * O)), k = (O * v - y * I) / S, G = (-O * y - v * I) / S, C = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = k - m, D = G - E, A = C - m, w = L - E;
2428
- return B * B + D * D > A * A + w * w && (k = C, G = L), {
2429
- cx: k,
2426
+ function Jn(s, t, e, n, i, r, a) {
2427
+ var o = s - e, c = t - n, l = (a ? r : -r) / Ke(o * o + c * c), h = l * c, d = -l * o, u = s + h, p = t + d, f = e + h, g = n + d, m = (u + f) / 2, E = (p + g) / 2, y = f - u, v = g - p, S = y * y + v * v, b = i - r, O = u * g - f * p, I = (v < 0 ? -1 : 1) * Ke(ic(0, b * b * S - O * O)), C = (O * v - y * I) / S, G = (-O * y - v * I) / S, k = (O * v + y * I) / S, L = (-O * y + v * I) / S, B = C - m, D = G - E, A = k - m, w = L - E;
2428
+ return B * B + D * D > A * A + w * w && (C = k, G = L), {
2429
+ cx: C,
2430
2430
  cy: G,
2431
2431
  x01: -h,
2432
2432
  y01: -d,
2433
- x11: k * (i / b - 1),
2433
+ x11: C * (i / b - 1),
2434
2434
  y11: G * (i / b - 1)
2435
2435
  };
2436
2436
  }
2437
2437
  function Dn() {
2438
- var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a = Cd, o = null, c = Ps(l);
2438
+ var s = Ld, t = Ad, e = lt(0), n = null, i = Md, r = _d, a = kd, o = null, c = $s(l);
2439
2439
  function l() {
2440
2440
  var h, d, u = +s.apply(this, arguments), p = +t.apply(this, arguments), f = i.apply(this, arguments) - Kr, g = r.apply(this, arguments) - Kr, m = Jr(g - f), E = g > f;
2441
2441
  if (o || (o = h = c()), p < u && (d = p, p = u, u = d), !(p > Gt)) o.moveTo(0, 0);
2442
- else if (m > ns - Gt)
2442
+ else if (m > is - Gt)
2443
2443
  o.moveTo(p * Le(f), p * oe(f)), o.arc(0, 0, p, f, g, !E), u > Gt && (o.moveTo(u * Le(g), u * oe(g)), o.arc(0, 0, u, g, f, E));
2444
2444
  else {
2445
- var y = f, v = g, S = f, b = g, O = m, I = m, k = a.apply(this, arguments) / 2, G = k > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), C = qs(Jr(p - u) / 2, +e.apply(this, arguments)), L = C, B = C, D, A;
2445
+ var y = f, v = g, S = f, b = g, O = m, I = m, C = a.apply(this, arguments) / 2, G = C > Gt && (n ? +n.apply(this, arguments) : Ke(u * u + p * p)), k = Ks(Jr(p - u) / 2, +e.apply(this, arguments)), L = k, B = k, D, A;
2446
2446
  if (G > Gt) {
2447
- var w = Qr(G / u * oe(k)), V = Qr(G / p * oe(k));
2447
+ var w = Qr(G / u * oe(C)), V = Qr(G / p * oe(C));
2448
2448
  (O -= w * 2) > Gt ? (w *= E ? 1 : -1, S += w, b -= w) : (O = 0, S = b = (f + g) / 2), (I -= V * 2) > Gt ? (V *= E ? 1 : -1, y += V, v -= V) : (I = 0, y = v = (f + g) / 2);
2449
2449
  }
2450
2450
  var N = p * Le(y), P = p * oe(y), $ = u * Le(b), X = u * oe(b);
2451
- if (C > Gt) {
2451
+ if (k > Gt) {
2452
2452
  var F = p * Le(v), et = p * oe(v), J = u * Le(S), ct = u * oe(S), Q;
2453
2453
  if (m < Zr)
2454
- if (Q = kd(N, P, J, ct, F, et, $, X)) {
2455
- var j = N - Q[0], Z = P - Q[1], ut = F - Q[0], ht = et - Q[1], Et = 1 / oe(sc((j * ut + Z * ht) / (Ke(j * j + Z * Z) * Ke(ut * ut + ht * ht))) / 2), Ut = Ke(Q[0] * Q[0] + Q[1] * Q[1]);
2456
- L = qs(C, (u - Ut) / (Et - 1)), B = qs(C, (p - Ut) / (Et + 1));
2454
+ if (Q = Cd(N, P, J, ct, F, et, $, X)) {
2455
+ var j = N - Q[0], K = P - Q[1], ut = F - Q[0], ht = et - Q[1], yt = 1 / oe(sc((j * ut + K * ht) / (Ke(j * j + K * K) * Ke(ut * ut + ht * ht))) / 2), Ut = Ke(Q[0] * Q[0] + Q[1] * Q[1]);
2456
+ L = Ks(k, (u - Ut) / (yt - 1)), B = Ks(k, (p - Ut) / (yt + 1));
2457
2457
  } else
2458
2458
  L = B = 0;
2459
2459
  }
2460
- I > Gt ? B > Gt ? (D = Zn(J, ct, N, P, p, B, E), A = Zn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < C ? o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, p, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Zn($, X, F, et, u, -L, E), A = Zn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < C ? o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, kt(D.y01, D.x01), kt(D.y11, D.x11), !E), o.arc(0, 0, u, kt(D.cy + D.y11, D.cx + D.x11), kt(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, kt(A.y11, A.x11), kt(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
2460
+ I > Gt ? B > Gt ? (D = Jn(J, ct, N, P, p, B, E), A = Jn(F, et, $, X, p, B, E), o.moveTo(D.cx + D.x01, D.cy + D.y01), B < k ? o.arc(D.cx, D.cy, B, Ct(D.y01, D.x01), Ct(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, B, Ct(D.y01, D.x01), Ct(D.y11, D.x11), !E), o.arc(0, 0, p, Ct(D.cy + D.y11, D.cx + D.x11), Ct(A.cy + A.y11, A.cx + A.x11), !E), o.arc(A.cx, A.cy, B, Ct(A.y11, A.x11), Ct(A.y01, A.x01), !E))) : (o.moveTo(N, P), o.arc(0, 0, p, y, v, !E)) : o.moveTo(N, P), !(u > Gt) || !(O > Gt) ? o.lineTo($, X) : L > Gt ? (D = Jn($, X, F, et, u, -L, E), A = Jn(N, P, J, ct, u, -L, E), o.lineTo(D.cx + D.x01, D.cy + D.y01), L < k ? o.arc(D.cx, D.cy, L, Ct(D.y01, D.x01), Ct(A.y01, A.x01), !E) : (o.arc(D.cx, D.cy, L, Ct(D.y01, D.x01), Ct(D.y11, D.x11), !E), o.arc(0, 0, u, Ct(D.cy + D.y11, D.cx + D.x11), Ct(A.cy + A.y11, A.cx + A.x11), E), o.arc(A.cx, A.cy, L, Ct(A.y11, A.x11), Ct(A.y01, A.x01), !E))) : o.arc(0, 0, u, b, S, E);
2461
2461
  }
2462
2462
  if (o.closePath(), h) return o = null, h + "" || null;
2463
2463
  }
@@ -2482,17 +2482,17 @@ function Dn() {
2482
2482
  return arguments.length ? (o = h ?? null, l) : o;
2483
2483
  }, l;
2484
2484
  }
2485
- function mr(s) {
2485
+ function yr(s) {
2486
2486
  return s[0];
2487
2487
  }
2488
- function vr(s) {
2488
+ function Er(s) {
2489
2489
  return s[1];
2490
2490
  }
2491
2491
  function Nn(s, t) {
2492
- var e = lt(!0), n = null, i = lr, r = null, a = Ps(o);
2493
- s = typeof s == "function" ? s : s === void 0 ? mr : lt(s), t = typeof t == "function" ? t : t === void 0 ? vr : lt(t);
2492
+ var e = lt(!0), n = null, i = ur, r = null, a = $s(o);
2493
+ s = typeof s == "function" ? s : s === void 0 ? yr : lt(s), t = typeof t == "function" ? t : t === void 0 ? Er : lt(t);
2494
2494
  function o(c) {
2495
- var l, h = (c = ur(c)).length, d, u = !1, p;
2495
+ var l, h = (c = dr(c)).length, d, u = !1, p;
2496
2496
  for (n == null && (r = i(p = a())), l = 0; l <= h; ++l)
2497
2497
  !(l < h && e(d = c[l], l, c)) === u && ((u = !u) ? r.lineStart() : r.lineEnd()), u && r.point(+s(d, l, c), +t(d, l, c));
2498
2498
  if (p) return r = null, p + "" || null;
@@ -2509,11 +2509,11 @@ function Nn(s, t) {
2509
2509
  return arguments.length ? (c == null ? n = r = null : r = i(n = c), o) : n;
2510
2510
  }, o;
2511
2511
  }
2512
- function yr(s, t, e) {
2513
- var n = null, i = lt(!0), r = null, a = lr, o = null, c = Ps(l);
2514
- s = typeof s == "function" ? s : s === void 0 ? mr : lt(+s), t = typeof t == "function" ? t : t === void 0 ? lt(0) : lt(+t), e = typeof e == "function" ? e : e === void 0 ? vr : lt(+e);
2512
+ function Sr(s, t, e) {
2513
+ var n = null, i = lt(!0), r = null, a = ur, o = null, c = $s(l);
2514
+ s = typeof s == "function" ? s : s === void 0 ? yr : lt(+s), t = typeof t == "function" ? t : t === void 0 ? lt(0) : lt(+t), e = typeof e == "function" ? e : e === void 0 ? Er : lt(+e);
2515
2515
  function l(d) {
2516
- var u, p, f, g = (d = ur(d)).length, m, E = !1, y, v = new Array(g), S = new Array(g);
2516
+ var u, p, f, g = (d = dr(d)).length, m, E = !1, y, v = new Array(g), S = new Array(g);
2517
2517
  for (r == null && (o = a(y = c())), u = 0; u <= g; ++u) {
2518
2518
  if (!(u < g && i(m = d[u], u, d)) === E)
2519
2519
  if (E = !E)
@@ -2563,9 +2563,9 @@ function Id(s) {
2563
2563
  return s;
2564
2564
  }
2565
2565
  function Dd() {
2566
- var s = Id, t = Rd, e = null, n = lt(0), i = lt(ns), r = lt(0);
2566
+ var s = Id, t = Rd, e = null, n = lt(0), i = lt(is), r = lt(0);
2567
2567
  function a(o) {
2568
- var c, l = (o = ur(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(ns, Math.max(-ns, i.apply(this, arguments) - g)), E, y = Math.min(Math.abs(m) / l, r.apply(this, arguments)), v = y * (m < 0 ? -1 : 1), S;
2568
+ var c, l = (o = dr(o)).length, h, d, u = 0, p = new Array(l), f = new Array(l), g = +n.apply(this, arguments), m = Math.min(is, Math.max(-is, i.apply(this, arguments) - g)), E, y = Math.min(Math.abs(m) / l, r.apply(this, arguments)), v = y * (m < 0 ? -1 : 1), S;
2569
2569
  for (c = 0; c < l; ++c)
2570
2570
  (S = f[p[c] = c] = +s(o[c], c, o)) > 0 && (u += S);
2571
2571
  for (t != null ? p.sort(function(b, O) {
@@ -2597,7 +2597,7 @@ function Dd() {
2597
2597
  return arguments.length ? (r = typeof o == "function" ? o : lt(+o), a) : r;
2598
2598
  }, a;
2599
2599
  }
2600
- var Pd = gl(lr);
2600
+ var Pd = gl(ur);
2601
2601
  function fl(s) {
2602
2602
  this._curve = s;
2603
2603
  }
@@ -2675,7 +2675,7 @@ function Hd(s) {
2675
2675
  return s.target;
2676
2676
  }
2677
2677
  function Ud(s) {
2678
- let t = Gd, e = Hd, n = mr, i = vr, r = null, a = null, o = Ps(c);
2678
+ let t = Gd, e = Hd, n = yr, i = Er, r = null, a = null, o = $s(c);
2679
2679
  function c() {
2680
2680
  let l;
2681
2681
  const h = cc.call(arguments), d = t.apply(this, h), u = e.apply(this, h);
@@ -2763,7 +2763,7 @@ class ot {
2763
2763
  return this.configs.options ? tn({}, this.model.getOptions(), this.configs.options) : this.model.getOptions();
2764
2764
  }
2765
2765
  }
2766
- /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
2766
+ /*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */
2767
2767
  const {
2768
2768
  entries: ml,
2769
2769
  setPrototypeOf: Va,
@@ -2776,8 +2776,8 @@ let {
2776
2776
  seal: Qt,
2777
2777
  create: vl
2778
2778
  } = Object, {
2779
- apply: Ui,
2780
- construct: zi
2779
+ apply: Fi,
2780
+ construct: Wi
2781
2781
  } = typeof Reflect < "u" && Reflect;
2782
2782
  Vt || (Vt = function(t) {
2783
2783
  return t;
@@ -2785,29 +2785,29 @@ Vt || (Vt = function(t) {
2785
2785
  Qt || (Qt = function(t) {
2786
2786
  return t;
2787
2787
  });
2788
- Ui || (Ui = function(t, e, n) {
2788
+ Fi || (Fi = function(t, e, n) {
2789
2789
  return t.apply(e, n);
2790
2790
  });
2791
- zi || (zi = function(t, e) {
2791
+ Wi || (Wi = function(t, e) {
2792
2792
  return new t(...e);
2793
2793
  });
2794
- const Kn = Xt(Array.prototype.forEach), Ba = Xt(Array.prototype.pop), hn = Xt(Array.prototype.push), ls = Xt(String.prototype.toLowerCase), ci = Xt(String.prototype.toString), Ga = Xt(String.prototype.match), dn = Xt(String.prototype.replace), jd = Xt(String.prototype.indexOf), Yd = Xt(String.prototype.trim), ne = Xt(Object.prototype.hasOwnProperty), Pt = Xt(RegExp.prototype.test), pn = qd(TypeError);
2794
+ const Qn = Xt(Array.prototype.forEach), Ba = Xt(Array.prototype.pop), hn = Xt(Array.prototype.push), us = Xt(String.prototype.toLowerCase), hi = Xt(String.prototype.toString), Ga = Xt(String.prototype.match), dn = Xt(String.prototype.replace), jd = Xt(String.prototype.indexOf), Yd = Xt(String.prototype.trim), ne = Xt(Object.prototype.hasOwnProperty), Pt = Xt(RegExp.prototype.test), pn = qd(TypeError);
2795
2795
  function Xt(s) {
2796
2796
  return function(t) {
2797
2797
  for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
2798
2798
  n[i - 1] = arguments[i];
2799
- return Ui(s, t, n);
2799
+ return Fi(s, t, n);
2800
2800
  };
2801
2801
  }
2802
2802
  function qd(s) {
2803
2803
  return function() {
2804
2804
  for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
2805
2805
  e[n] = arguments[n];
2806
- return zi(s, e);
2806
+ return Wi(s, e);
2807
2807
  };
2808
2808
  }
2809
2809
  function rt(s, t) {
2810
- let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ls;
2810
+ let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : us;
2811
2811
  Va && Va(s, null);
2812
2812
  let n = t.length;
2813
2813
  for (; n--; ) {
@@ -2847,7 +2847,7 @@ function fn(s, t) {
2847
2847
  }
2848
2848
  return e;
2849
2849
  }
2850
- const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), ui = Vt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), hi = Vt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Kd = Vt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), di = Vt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jd = Vt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ua = Vt(["#text"]), za = Vt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), pi = Vt(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Vt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Jn = Vt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qd = Qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tp = Qt(/<%[\w\W]*|[\w\W]*%>/gm), ep = Qt(/\${[\w\W]*}/gm), np = Qt(/^data-[\-\w.\u00B7-\uFFFF]/), sp = Qt(/^aria-[\-\w]+$/), yl = Qt(
2850
+ const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), di = Vt(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pi = Vt(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Kd = Vt(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), fi = Vt(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jd = Vt(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Ua = Vt(["#text"]), za = Vt(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), gi = Vt(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Fa = Vt(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ts = Vt(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qd = Qt(/\{\{[\w\W]*|[\w\W]*\}\}/gm), tp = Qt(/<%[\w\W]*|[\w\W]*%>/gm), ep = Qt(/\${[\w\W]*}/gm), np = Qt(/^data-[\-\w.\u00B7-\uFFFF]/), sp = Qt(/^aria-[\-\w]+$/), yl = Qt(
2851
2851
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2852
2852
  // eslint-disable-line no-useless-escape
2853
2853
  ), ip = Qt(/^(?:\w+script|data):/i), rp = Qt(
@@ -2856,16 +2856,16 @@ const Ha = Vt(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
2856
2856
  ), El = Qt(/^html$/i), ap = Qt(/^[a-z][.\w]*(-[.\w]+)+$/i);
2857
2857
  var Wa = /* @__PURE__ */ Object.freeze({
2858
2858
  __proto__: null,
2859
- MUSTACHE_EXPR: Qd,
2860
- ERB_EXPR: tp,
2861
- TMPLIT_EXPR: ep,
2862
- DATA_ATTR: np,
2863
2859
  ARIA_ATTR: sp,
2864
- IS_ALLOWED_URI: yl,
2865
- IS_SCRIPT_OR_DATA: ip,
2866
2860
  ATTR_WHITESPACE: rp,
2861
+ CUSTOM_ELEMENT: ap,
2862
+ DATA_ATTR: np,
2867
2863
  DOCTYPE_NAME: El,
2868
- CUSTOM_ELEMENT: ap
2864
+ ERB_EXPR: tp,
2865
+ IS_ALLOWED_URI: yl,
2866
+ IS_SCRIPT_OR_DATA: ip,
2867
+ MUSTACHE_EXPR: Qd,
2868
+ TMPLIT_EXPR: ep
2869
2869
  });
2870
2870
  const gn = {
2871
2871
  element: 1,
@@ -2907,8 +2907,8 @@ const gn = {
2907
2907
  };
2908
2908
  function Sl() {
2909
2909
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : op();
2910
- const t = (K) => Sl(K);
2911
- if (t.version = "3.1.6", t.removed = [], !s || !s.document || s.document.nodeType !== gn.document)
2910
+ const t = (Z) => Sl(Z);
2911
+ if (t.version = "3.2.1", t.removed = [], !s || !s.document || s.document.nodeType !== gn.document)
2912
2912
  return t.isSupported = !1, t;
2913
2913
  let {
2914
2914
  document: e
@@ -2925,17 +2925,17 @@ function Sl() {
2925
2925
  trustedTypes: p
2926
2926
  } = s, f = c.prototype, g = fn(f, "cloneNode"), m = fn(f, "remove"), E = fn(f, "nextSibling"), y = fn(f, "childNodes"), v = fn(f, "parentNode");
2927
2927
  if (typeof a == "function") {
2928
- const K = e.createElement("template");
2929
- K.content && K.content.ownerDocument && (e = K.content.ownerDocument);
2928
+ const Z = e.createElement("template");
2929
+ Z.content && Z.content.ownerDocument && (e = Z.content.ownerDocument);
2930
2930
  }
2931
2931
  let S, b = "";
2932
2932
  const {
2933
2933
  implementation: O,
2934
2934
  createNodeIterator: I,
2935
- createDocumentFragment: k,
2935
+ createDocumentFragment: C,
2936
2936
  getElementsByTagName: G
2937
2937
  } = e, {
2938
- importNode: C
2938
+ importNode: k
2939
2939
  } = n;
2940
2940
  let L = {};
2941
2941
  t.isSupported = typeof ml == "function" && typeof v == "function" && O && O.createHTMLDocument !== void 0;
@@ -2952,9 +2952,9 @@ function Sl() {
2952
2952
  let {
2953
2953
  IS_ALLOWED_URI: X
2954
2954
  } = Wa, F = null;
2955
- const et = rt({}, [...Ha, ...ui, ...hi, ...di, ...Ua]);
2955
+ const et = rt({}, [...Ha, ...di, ...pi, ...fi, ...Ua]);
2956
2956
  let J = null;
2957
- const ct = rt({}, [...za, ...pi, ...Fa, ...Jn]);
2957
+ const ct = rt({}, [...za, ...gi, ...Fa, ...ts]);
2958
2958
  let Q = Object.seal(vl(null, {
2959
2959
  tagNameCheck: {
2960
2960
  writable: !0,
@@ -2974,40 +2974,28 @@ function Sl() {
2974
2974
  enumerable: !0,
2975
2975
  value: !1
2976
2976
  }
2977
- })), j = null, Z = null, ut = !0, ht = !0, Et = !1, Ut = !0, H = !1, U = !0, W = !1, zt = !1, an = !1, nt = !1, St = !1, ie = !1, te = !0, Tr = !1;
2978
- const kl = "user-content-";
2979
- let $s = !0, on = !1, Pe = {}, Ne = null;
2980
- const Or = rt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2981
- let wr = null;
2982
- const Lr = rt({}, ["audio", "video", "img", "source", "image", "track"]);
2983
- let Vs = null;
2984
- const Ar = rt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
2985
- let $e = he, Bs = !1, Gs = null;
2986
- const Rl = rt({}, [$n, Vn, he], ci);
2977
+ })), j = null, K = null, ut = !0, ht = !0, yt = !1, Ut = !0, H = !1, U = !0, W = !1, zt = !1, an = !1, nt = !1, Et = !1, ie = !1, te = !0, wr = !1;
2978
+ const Cl = "user-content-";
2979
+ let Bs = !0, on = !1, Pe = {}, Ne = null;
2980
+ const Lr = rt({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2981
+ let Ar = null;
2982
+ const Mr = rt({}, ["audio", "video", "img", "source", "image", "track"]);
2983
+ let Gs = null;
2984
+ const _r = rt({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $n = "http://www.w3.org/1998/Math/MathML", Vn = "http://www.w3.org/2000/svg", he = "http://www.w3.org/1999/xhtml";
2985
+ let $e = he, Hs = !1, Us = null;
2986
+ const Rl = rt({}, [$n, Vn, he], hi);
2987
+ let Bn = rt({}, ["mi", "mo", "mn", "ms", "mtext"]), Gn = rt({}, ["annotation-xml"]);
2988
+ const Il = rt({}, ["title", "style", "font", "a", "script"]);
2987
2989
  let ln = null;
2988
- const Il = ["application/xhtml+xml", "text/html"], Dl = "text/html";
2990
+ const Dl = ["application/xhtml+xml", "text/html"], Pl = "text/html";
2989
2991
  let Lt = null, Ve = null;
2990
- const Pl = e.createElement("form"), Mr = function(M) {
2992
+ const Nl = e.createElement("form"), kr = function(M) {
2991
2993
  return M instanceof RegExp || M instanceof Function;
2992
- }, Hs = function() {
2994
+ }, zs = function() {
2993
2995
  let M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2994
2996
  if (!(Ve && Ve === M)) {
2995
2997
  if ((!M || typeof M != "object") && (M = {}), M = Me(M), ln = // eslint-disable-next-line unicorn/prefer-includes
2996
- Il.indexOf(M.PARSER_MEDIA_TYPE) === -1 ? Dl : M.PARSER_MEDIA_TYPE, Lt = ln === "application/xhtml+xml" ? ci : ls, F = ne(M, "ALLOWED_TAGS") ? rt({}, M.ALLOWED_TAGS, Lt) : et, J = ne(M, "ALLOWED_ATTR") ? rt({}, M.ALLOWED_ATTR, Lt) : ct, Gs = ne(M, "ALLOWED_NAMESPACES") ? rt({}, M.ALLOWED_NAMESPACES, ci) : Rl, Vs = ne(M, "ADD_URI_SAFE_ATTR") ? rt(
2997
- Me(Ar),
2998
- // eslint-disable-line indent
2999
- M.ADD_URI_SAFE_ATTR,
3000
- // eslint-disable-line indent
3001
- Lt
3002
- // eslint-disable-line indent
3003
- ) : Ar, wr = ne(M, "ADD_DATA_URI_TAGS") ? rt(
3004
- Me(Lr),
3005
- // eslint-disable-line indent
3006
- M.ADD_DATA_URI_TAGS,
3007
- // eslint-disable-line indent
3008
- Lt
3009
- // eslint-disable-line indent
3010
- ) : Lr, Ne = ne(M, "FORBID_CONTENTS") ? rt({}, M.FORBID_CONTENTS, Lt) : Or, j = ne(M, "FORBID_TAGS") ? rt({}, M.FORBID_TAGS, Lt) : {}, Z = ne(M, "FORBID_ATTR") ? rt({}, M.FORBID_ATTR, Lt) : {}, Pe = ne(M, "USE_PROFILES") ? M.USE_PROFILES : !1, ut = M.ALLOW_ARIA_ATTR !== !1, ht = M.ALLOW_DATA_ATTR !== !1, Et = M.ALLOW_UNKNOWN_PROTOCOLS || !1, Ut = M.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = M.SAFE_FOR_TEMPLATES || !1, U = M.SAFE_FOR_XML !== !1, W = M.WHOLE_DOCUMENT || !1, nt = M.RETURN_DOM || !1, St = M.RETURN_DOM_FRAGMENT || !1, ie = M.RETURN_TRUSTED_TYPE || !1, an = M.FORCE_BODY || !1, te = M.SANITIZE_DOM !== !1, Tr = M.SANITIZE_NAMED_PROPS || !1, $s = M.KEEP_CONTENT !== !1, on = M.IN_PLACE || !1, X = M.ALLOWED_URI_REGEXP || yl, $e = M.NAMESPACE || he, Q = M.CUSTOM_ELEMENT_HANDLING || {}, M.CUSTOM_ELEMENT_HANDLING && Mr(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = M.CUSTOM_ELEMENT_HANDLING.tagNameCheck), M.CUSTOM_ELEMENT_HANDLING && Mr(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), M.CUSTOM_ELEMENT_HANDLING && typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (ht = !1), St && (nt = !0), Pe && (F = rt({}, Ua), J = [], Pe.html === !0 && (rt(F, Ha), rt(J, za)), Pe.svg === !0 && (rt(F, ui), rt(J, pi), rt(J, Jn)), Pe.svgFilters === !0 && (rt(F, hi), rt(J, pi), rt(J, Jn)), Pe.mathMl === !0 && (rt(F, di), rt(J, Fa), rt(J, Jn))), M.ADD_TAGS && (F === et && (F = Me(F)), rt(F, M.ADD_TAGS, Lt)), M.ADD_ATTR && (J === ct && (J = Me(J)), rt(J, M.ADD_ATTR, Lt)), M.ADD_URI_SAFE_ATTR && rt(Vs, M.ADD_URI_SAFE_ATTR, Lt), M.FORBID_CONTENTS && (Ne === Or && (Ne = Me(Ne)), rt(Ne, M.FORBID_CONTENTS, Lt)), $s && (F["#text"] = !0), W && rt(F, ["html", "head", "body"]), F.table && (rt(F, ["tbody"]), delete j.tbody), M.TRUSTED_TYPES_POLICY) {
2998
+ Dl.indexOf(M.PARSER_MEDIA_TYPE) === -1 ? Pl : M.PARSER_MEDIA_TYPE, Lt = ln === "application/xhtml+xml" ? hi : us, F = ne(M, "ALLOWED_TAGS") ? rt({}, M.ALLOWED_TAGS, Lt) : et, J = ne(M, "ALLOWED_ATTR") ? rt({}, M.ALLOWED_ATTR, Lt) : ct, Us = ne(M, "ALLOWED_NAMESPACES") ? rt({}, M.ALLOWED_NAMESPACES, hi) : Rl, Gs = ne(M, "ADD_URI_SAFE_ATTR") ? rt(Me(_r), M.ADD_URI_SAFE_ATTR, Lt) : _r, Ar = ne(M, "ADD_DATA_URI_TAGS") ? rt(Me(Mr), M.ADD_DATA_URI_TAGS, Lt) : Mr, Ne = ne(M, "FORBID_CONTENTS") ? rt({}, M.FORBID_CONTENTS, Lt) : Lr, j = ne(M, "FORBID_TAGS") ? rt({}, M.FORBID_TAGS, Lt) : {}, K = ne(M, "FORBID_ATTR") ? rt({}, M.FORBID_ATTR, Lt) : {}, Pe = ne(M, "USE_PROFILES") ? M.USE_PROFILES : !1, ut = M.ALLOW_ARIA_ATTR !== !1, ht = M.ALLOW_DATA_ATTR !== !1, yt = M.ALLOW_UNKNOWN_PROTOCOLS || !1, Ut = M.ALLOW_SELF_CLOSE_IN_ATTR !== !1, H = M.SAFE_FOR_TEMPLATES || !1, U = M.SAFE_FOR_XML !== !1, W = M.WHOLE_DOCUMENT || !1, nt = M.RETURN_DOM || !1, Et = M.RETURN_DOM_FRAGMENT || !1, ie = M.RETURN_TRUSTED_TYPE || !1, an = M.FORCE_BODY || !1, te = M.SANITIZE_DOM !== !1, wr = M.SANITIZE_NAMED_PROPS || !1, Bs = M.KEEP_CONTENT !== !1, on = M.IN_PLACE || !1, X = M.ALLOWED_URI_REGEXP || yl, $e = M.NAMESPACE || he, Bn = M.MATHML_TEXT_INTEGRATION_POINTS || Bn, Gn = M.HTML_INTEGRATION_POINTS || Gn, Q = M.CUSTOM_ELEMENT_HANDLING || {}, M.CUSTOM_ELEMENT_HANDLING && kr(M.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Q.tagNameCheck = M.CUSTOM_ELEMENT_HANDLING.tagNameCheck), M.CUSTOM_ELEMENT_HANDLING && kr(M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Q.attributeNameCheck = M.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), M.CUSTOM_ELEMENT_HANDLING && typeof M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Q.allowCustomizedBuiltInElements = M.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), H && (ht = !1), Et && (nt = !0), Pe && (F = rt({}, Ua), J = [], Pe.html === !0 && (rt(F, Ha), rt(J, za)), Pe.svg === !0 && (rt(F, di), rt(J, gi), rt(J, ts)), Pe.svgFilters === !0 && (rt(F, pi), rt(J, gi), rt(J, ts)), Pe.mathMl === !0 && (rt(F, fi), rt(J, Fa), rt(J, ts))), M.ADD_TAGS && (F === et && (F = Me(F)), rt(F, M.ADD_TAGS, Lt)), M.ADD_ATTR && (J === ct && (J = Me(J)), rt(J, M.ADD_ATTR, Lt)), M.ADD_URI_SAFE_ATTR && rt(Gs, M.ADD_URI_SAFE_ATTR, Lt), M.FORBID_CONTENTS && (Ne === Lr && (Ne = Me(Ne)), rt(Ne, M.FORBID_CONTENTS, Lt)), Bs && (F["#text"] = !0), W && rt(F, ["html", "head", "body"]), F.table && (rt(F, ["tbody"]), delete j.tbody), M.TRUSTED_TYPES_POLICY) {
3011
2999
  if (typeof M.TRUSTED_TYPES_POLICY.createHTML != "function")
3012
3000
  throw pn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3013
3001
  if (typeof M.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -3017,14 +3005,14 @@ function Sl() {
3017
3005
  S === void 0 && (S = lp(p, i)), S !== null && typeof b == "string" && (b = S.createHTML(""));
3018
3006
  Vt && Vt(M), Ve = M;
3019
3007
  }
3020
- }, _r = rt({}, ["mi", "mo", "mn", "ms", "mtext"]), Cr = rt({}, ["foreignobject", "annotation-xml"]), Nl = rt({}, ["title", "style", "font", "a", "script"]), kr = rt({}, [...ui, ...hi, ...Kd]), Rr = rt({}, [...di, ...Jd]), $l = function(M) {
3008
+ }, Cr = rt({}, [...di, ...pi, ...Kd]), Rr = rt({}, [...fi, ...Jd]), $l = function(M) {
3021
3009
  let z = v(M);
3022
3010
  (!z || !z.tagName) && (z = {
3023
3011
  namespaceURI: $e,
3024
3012
  tagName: "template"
3025
3013
  });
3026
- const q = ls(M.tagName), mt = ls(z.tagName);
3027
- return Gs[M.namespaceURI] ? M.namespaceURI === Vn ? z.namespaceURI === he ? q === "svg" : z.namespaceURI === $n ? q === "svg" && (mt === "annotation-xml" || _r[mt]) : !!kr[q] : M.namespaceURI === $n ? z.namespaceURI === he ? q === "math" : z.namespaceURI === Vn ? q === "math" && Cr[mt] : !!Rr[q] : M.namespaceURI === he ? z.namespaceURI === Vn && !Cr[mt] || z.namespaceURI === $n && !_r[mt] ? !1 : !Rr[q] && (Nl[q] || !kr[q]) : !!(ln === "application/xhtml+xml" && Gs[M.namespaceURI]) : !1;
3014
+ const q = us(M.tagName), St = us(z.tagName);
3015
+ return Us[M.namespaceURI] ? M.namespaceURI === Vn ? z.namespaceURI === he ? q === "svg" : z.namespaceURI === $n ? q === "svg" && (St === "annotation-xml" || Bn[St]) : !!Cr[q] : M.namespaceURI === $n ? z.namespaceURI === he ? q === "math" : z.namespaceURI === Vn ? q === "math" && Gn[St] : !!Rr[q] : M.namespaceURI === he ? z.namespaceURI === Vn && !Gn[St] || z.namespaceURI === $n && !Bn[St] ? !1 : !Rr[q] && (Il[q] || !Cr[q]) : !!(ln === "application/xhtml+xml" && Us[M.namespaceURI]) : !1;
3028
3016
  }, re = function(M) {
3029
3017
  hn(t.removed, {
3030
3018
  element: M
@@ -3034,7 +3022,7 @@ function Sl() {
3034
3022
  } catch {
3035
3023
  m(M);
3036
3024
  }
3037
- }, Bn = function(M, z) {
3025
+ }, Hn = function(M, z) {
3038
3026
  try {
3039
3027
  hn(t.removed, {
3040
3028
  attribute: z.getAttributeNode(M),
@@ -3047,7 +3035,7 @@ function Sl() {
3047
3035
  });
3048
3036
  }
3049
3037
  if (z.removeAttribute(M), M === "is" && !J[M])
3050
- if (nt || St)
3038
+ if (nt || Et)
3051
3039
  try {
3052
3040
  re(z);
3053
3041
  } catch {
@@ -3066,21 +3054,21 @@ function Sl() {
3066
3054
  q = At && At[0];
3067
3055
  }
3068
3056
  ln === "application/xhtml+xml" && $e === he && (M = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + M + "</body></html>");
3069
- const mt = S ? S.createHTML(M) : M;
3057
+ const St = S ? S.createHTML(M) : M;
3070
3058
  if ($e === he)
3071
3059
  try {
3072
- z = new u().parseFromString(mt, ln);
3060
+ z = new u().parseFromString(St, ln);
3073
3061
  } catch {
3074
3062
  }
3075
3063
  if (!z || !z.documentElement) {
3076
3064
  z = O.createDocument($e, "template", null);
3077
3065
  try {
3078
- z.documentElement.innerHTML = Bs ? b : mt;
3066
+ z.documentElement.innerHTML = Hs ? b : St;
3079
3067
  } catch {
3080
3068
  }
3081
3069
  }
3082
- const Ct = z.body || z.documentElement;
3083
- return M && q && Ct.insertBefore(e.createTextNode(q), Ct.childNodes[0] || null), $e === he ? G.call(z, W ? "html" : "body")[0] : W ? z.documentElement : Ct;
3070
+ const kt = z.body || z.documentElement;
3071
+ return M && q && kt.insertBefore(e.createTextNode(q), kt.childNodes[0] || null), $e === he ? G.call(z, W ? "html" : "body")[0] : W ? z.documentElement : kt;
3084
3072
  }, Dr = function(M) {
3085
3073
  return I.call(
3086
3074
  M.ownerDocument || M,
@@ -3093,11 +3081,13 @@ function Sl() {
3093
3081
  return M instanceof d && (typeof M.nodeName != "string" || typeof M.textContent != "string" || typeof M.removeChild != "function" || !(M.attributes instanceof h) || typeof M.removeAttribute != "function" || typeof M.setAttribute != "function" || typeof M.namespaceURI != "string" || typeof M.insertBefore != "function" || typeof M.hasChildNodes != "function");
3094
3082
  }, Nr = function(M) {
3095
3083
  return typeof o == "function" && M instanceof o;
3096
- }, de = function(M, z, q) {
3097
- L[M] && Kn(L[M], (mt) => {
3098
- mt.call(t, z, q, Ve);
3084
+ };
3085
+ function de(Z, M, z) {
3086
+ L[Z] && Qn(L[Z], (q) => {
3087
+ q.call(t, M, z, Ve);
3099
3088
  });
3100
- }, $r = function(M) {
3089
+ }
3090
+ const $r = function(M) {
3101
3091
  let z = null;
3102
3092
  if (de("beforeSanitizeElements", M, null), Pr(M))
3103
3093
  return re(M), !0;
@@ -3110,29 +3100,29 @@ function Sl() {
3110
3100
  if (!F[q] || j[q]) {
3111
3101
  if (!j[q] && Br(q) && (Q.tagNameCheck instanceof RegExp && Pt(Q.tagNameCheck, q) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(q)))
3112
3102
  return !1;
3113
- if ($s && !Ne[q]) {
3114
- const mt = v(M) || M.parentNode, Ct = y(M) || M.childNodes;
3115
- if (Ct && mt) {
3116
- const At = Ct.length;
3103
+ if (Bs && !Ne[q]) {
3104
+ const St = v(M) || M.parentNode, kt = y(M) || M.childNodes;
3105
+ if (kt && St) {
3106
+ const At = kt.length;
3117
3107
  for (let Bt = At - 1; Bt >= 0; --Bt) {
3118
- const ae = g(Ct[Bt], !0);
3119
- ae.__removalCount = (M.__removalCount || 0) + 1, mt.insertBefore(ae, E(M));
3108
+ const ae = g(kt[Bt], !0);
3109
+ ae.__removalCount = (M.__removalCount || 0) + 1, St.insertBefore(ae, E(M));
3120
3110
  }
3121
3111
  }
3122
3112
  }
3123
3113
  return re(M), !0;
3124
3114
  }
3125
- return M instanceof c && !$l(M) || (q === "noscript" || q === "noembed" || q === "noframes") && Pt(/<\/no(script|embed|frames)/i, M.innerHTML) ? (re(M), !0) : (H && M.nodeType === gn.text && (z = M.textContent, Kn([B, D, A], (mt) => {
3126
- z = dn(z, mt, " ");
3115
+ return M instanceof c && !$l(M) || (q === "noscript" || q === "noembed" || q === "noframes") && Pt(/<\/no(script|embed|frames)/i, M.innerHTML) ? (re(M), !0) : (H && M.nodeType === gn.text && (z = M.textContent, Qn([B, D, A], (St) => {
3116
+ z = dn(z, St, " ");
3127
3117
  }), M.textContent !== z && (hn(t.removed, {
3128
3118
  element: M.cloneNode()
3129
3119
  }), M.textContent = z)), de("afterSanitizeElements", M, null), !1);
3130
3120
  }, Vr = function(M, z, q) {
3131
- if (te && (z === "id" || z === "name") && (q in e || q in Pl))
3121
+ if (te && (z === "id" || z === "name") && (q in e || q in Nl))
3132
3122
  return !1;
3133
- if (!(ht && !Z[z] && Pt(w, z))) {
3123
+ if (!(ht && !K[z] && Pt(w, z))) {
3134
3124
  if (!(ut && Pt(V, z))) {
3135
- if (!J[z] || Z[z]) {
3125
+ if (!J[z] || K[z]) {
3136
3126
  if (
3137
3127
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
3138
3128
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -3141,10 +3131,10 @@ function Sl() {
3141
3131
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3142
3132
  z === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && Pt(Q.tagNameCheck, q) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(q)))
3143
3133
  ) return !1;
3144
- } else if (!Vs[z]) {
3134
+ } else if (!Gs[z]) {
3145
3135
  if (!Pt(X, dn(q, P, ""))) {
3146
- if (!((z === "src" || z === "xlink:href" || z === "href") && M !== "script" && jd(q, "data:") === 0 && wr[M])) {
3147
- if (!(Et && !Pt(N, dn(q, P, "")))) {
3136
+ if (!((z === "src" || z === "xlink:href" || z === "href") && M !== "script" && jd(q, "data:") === 0 && Ar[M])) {
3137
+ if (!(yt && !Pt(N, dn(q, P, "")))) {
3148
3138
  if (q)
3149
3139
  return !1;
3150
3140
  }
@@ -3167,32 +3157,33 @@ function Sl() {
3167
3157
  attrName: "",
3168
3158
  attrValue: "",
3169
3159
  keepAttr: !0,
3170
- allowedAttributes: J
3160
+ allowedAttributes: J,
3161
+ forceKeepAttr: void 0
3171
3162
  };
3172
- let mt = z.length;
3173
- for (; mt--; ) {
3174
- const Ct = z[mt], {
3163
+ let St = z.length;
3164
+ for (; St--; ) {
3165
+ const kt = z[St], {
3175
3166
  name: At,
3176
3167
  namespaceURI: Bt,
3177
3168
  value: ae
3178
- } = Ct, cn = Lt(At);
3169
+ } = kt, cn = Lt(At);
3179
3170
  let Dt = At === "value" ? ae : Yd(ae);
3180
- if (q.attrName = cn, q.attrValue = Dt, q.keepAttr = !0, q.forceKeepAttr = void 0, de("uponSanitizeAttribute", M, q), Dt = q.attrValue, U && Pt(/((--!?|])>)|<\/(style|title)/i, Dt)) {
3181
- Bn(At, M);
3171
+ if (q.attrName = cn, q.attrValue = Dt, q.keepAttr = !0, q.forceKeepAttr = void 0, de("uponSanitizeAttribute", M, q), Dt = q.attrValue, wr && (cn === "id" || cn === "name") && (Hn(At, M), Dt = Cl + Dt), U && Pt(/((--!?|])>)|<\/(style|title)/i, Dt)) {
3172
+ Hn(At, M);
3182
3173
  continue;
3183
3174
  }
3184
- if (q.forceKeepAttr || (Bn(At, M), !q.keepAttr))
3175
+ if (q.forceKeepAttr || (Hn(At, M), !q.keepAttr))
3185
3176
  continue;
3186
3177
  if (!Ut && Pt(/\/>/i, Dt)) {
3187
- Bn(At, M);
3178
+ Hn(At, M);
3188
3179
  continue;
3189
3180
  }
3190
- H && Kn([B, D, A], (Ur) => {
3181
+ H && Qn([B, D, A], (Ur) => {
3191
3182
  Dt = dn(Dt, Ur, " ");
3192
3183
  });
3193
3184
  const Hr = Lt(M.nodeName);
3194
3185
  if (Vr(Hr, cn, Dt)) {
3195
- if (Tr && (cn === "id" || cn === "name") && (Bn(At, M), Dt = kl + Dt), S && typeof p == "object" && typeof p.getAttributeType == "function" && !Bt)
3186
+ if (S && typeof p == "object" && typeof p.getAttributeType == "function" && !Bt)
3196
3187
  switch (p.getAttributeType(Hr, cn)) {
3197
3188
  case "TrustedHTML": {
3198
3189
  Dt = S.createHTML(Dt);
@@ -3210,92 +3201,92 @@ function Sl() {
3210
3201
  }
3211
3202
  }
3212
3203
  de("afterSanitizeAttributes", M, null);
3213
- }, Vl = function K(M) {
3204
+ }, Vl = function Z(M) {
3214
3205
  let z = null;
3215
3206
  const q = Dr(M);
3216
3207
  for (de("beforeSanitizeShadowDOM", M, null); z = q.nextNode(); )
3217
- de("uponSanitizeShadowNode", z, null), !$r(z) && (z.content instanceof r && K(z.content), Gr(z));
3208
+ de("uponSanitizeShadowNode", z, null), !$r(z) && (z.content instanceof r && Z(z.content), Gr(z));
3218
3209
  de("afterSanitizeShadowDOM", M, null);
3219
3210
  };
3220
- return t.sanitize = function(K) {
3221
- let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, q = null, mt = null, Ct = null;
3222
- if (Bs = !K, Bs && (K = "<!-->"), typeof K != "string" && !Nr(K))
3223
- if (typeof K.toString == "function") {
3224
- if (K = K.toString(), typeof K != "string")
3211
+ return t.sanitize = function(Z) {
3212
+ let M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, q = null, St = null, kt = null;
3213
+ if (Hs = !Z, Hs && (Z = "<!-->"), typeof Z != "string" && !Nr(Z))
3214
+ if (typeof Z.toString == "function") {
3215
+ if (Z = Z.toString(), typeof Z != "string")
3225
3216
  throw pn("dirty is not a string, aborting");
3226
3217
  } else
3227
3218
  throw pn("toString is not a function");
3228
3219
  if (!t.isSupported)
3229
- return K;
3230
- if (zt || Hs(M), t.removed = [], typeof K == "string" && (on = !1), on) {
3231
- if (K.nodeName) {
3232
- const ae = Lt(K.nodeName);
3220
+ return Z;
3221
+ if (zt || zs(M), t.removed = [], typeof Z == "string" && (on = !1), on) {
3222
+ if (Z.nodeName) {
3223
+ const ae = Lt(Z.nodeName);
3233
3224
  if (!F[ae] || j[ae])
3234
3225
  throw pn("root node is forbidden and cannot be sanitized in-place");
3235
3226
  }
3236
- } else if (K instanceof o)
3237
- z = Ir("<!---->"), q = z.ownerDocument.importNode(K, !0), q.nodeType === gn.element && q.nodeName === "BODY" || q.nodeName === "HTML" ? z = q : z.appendChild(q);
3227
+ } else if (Z instanceof o)
3228
+ z = Ir("<!---->"), q = z.ownerDocument.importNode(Z, !0), q.nodeType === gn.element && q.nodeName === "BODY" || q.nodeName === "HTML" ? z = q : z.appendChild(q);
3238
3229
  else {
3239
3230
  if (!nt && !H && !W && // eslint-disable-next-line unicorn/prefer-includes
3240
- K.indexOf("<") === -1)
3241
- return S && ie ? S.createHTML(K) : K;
3242
- if (z = Ir(K), !z)
3231
+ Z.indexOf("<") === -1)
3232
+ return S && ie ? S.createHTML(Z) : Z;
3233
+ if (z = Ir(Z), !z)
3243
3234
  return nt ? null : ie ? b : "";
3244
3235
  }
3245
3236
  z && an && re(z.firstChild);
3246
- const At = Dr(on ? K : z);
3247
- for (; mt = At.nextNode(); )
3248
- $r(mt) || (mt.content instanceof r && Vl(mt.content), Gr(mt));
3237
+ const At = Dr(on ? Z : z);
3238
+ for (; St = At.nextNode(); )
3239
+ $r(St) || (St.content instanceof r && Vl(St.content), Gr(St));
3249
3240
  if (on)
3250
- return K;
3241
+ return Z;
3251
3242
  if (nt) {
3252
- if (St)
3253
- for (Ct = k.call(z.ownerDocument); z.firstChild; )
3254
- Ct.appendChild(z.firstChild);
3243
+ if (Et)
3244
+ for (kt = C.call(z.ownerDocument); z.firstChild; )
3245
+ kt.appendChild(z.firstChild);
3255
3246
  else
3256
- Ct = z;
3257
- return (J.shadowroot || J.shadowrootmode) && (Ct = C.call(n, Ct, !0)), Ct;
3247
+ kt = z;
3248
+ return (J.shadowroot || J.shadowrootmode) && (kt = k.call(n, kt, !0)), kt;
3258
3249
  }
3259
3250
  let Bt = W ? z.outerHTML : z.innerHTML;
3260
3251
  return W && F["!doctype"] && z.ownerDocument && z.ownerDocument.doctype && z.ownerDocument.doctype.name && Pt(El, z.ownerDocument.doctype.name) && (Bt = "<!DOCTYPE " + z.ownerDocument.doctype.name + `>
3261
- ` + Bt), H && Kn([B, D, A], (ae) => {
3252
+ ` + Bt), H && Qn([B, D, A], (ae) => {
3262
3253
  Bt = dn(Bt, ae, " ");
3263
3254
  }), S && ie ? S.createHTML(Bt) : Bt;
3264
3255
  }, t.setConfig = function() {
3265
- let K = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3266
- Hs(K), zt = !0;
3256
+ let Z = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3257
+ zs(Z), zt = !0;
3267
3258
  }, t.clearConfig = function() {
3268
3259
  Ve = null, zt = !1;
3269
- }, t.isValidAttribute = function(K, M, z) {
3270
- Ve || Hs({});
3271
- const q = Lt(K), mt = Lt(M);
3272
- return Vr(q, mt, z);
3273
- }, t.addHook = function(K, M) {
3274
- typeof M == "function" && (L[K] = L[K] || [], hn(L[K], M));
3275
- }, t.removeHook = function(K) {
3276
- if (L[K])
3277
- return Ba(L[K]);
3278
- }, t.removeHooks = function(K) {
3279
- L[K] && (L[K] = []);
3260
+ }, t.isValidAttribute = function(Z, M, z) {
3261
+ Ve || zs({});
3262
+ const q = Lt(Z), St = Lt(M);
3263
+ return Vr(q, St, z);
3264
+ }, t.addHook = function(Z, M) {
3265
+ typeof M == "function" && (L[Z] = L[Z] || [], hn(L[Z], M));
3266
+ }, t.removeHook = function(Z) {
3267
+ if (L[Z])
3268
+ return Ba(L[Z]);
3269
+ }, t.removeHooks = function(Z) {
3270
+ L[Z] && (L[Z] = []);
3280
3271
  }, t.removeAllHooks = function() {
3281
3272
  L = {};
3282
3273
  }, t;
3283
3274
  }
3284
- var Er = Sl();
3285
- const Qn = (s) => Er.sanitize(s, {
3275
+ var xr = Sl();
3276
+ const es = (s) => xr.sanitize(s, {
3286
3277
  USE_PROFILES: {
3287
3278
  html: !0,
3288
3279
  svg: !0,
3289
3280
  svgFilters: !0
3290
3281
  }
3291
- }), cp = (s) => Er.sanitize(s, {
3282
+ }), cp = (s) => xr.sanitize(s, {
3292
3283
  NAMESPACE: "http://www.w3.org/2000/svg",
3293
3284
  USE_PROFILES: {
3294
3285
  html: !0,
3295
3286
  svg: !0,
3296
3287
  svgFilters: !0
3297
3288
  }
3298
- }), ue = (s) => Er.sanitize(s, { ALLOWED_TAGS: [] }), _s = class _s extends ot {
3289
+ }), ue = (s) => xr.sanitize(s, { ALLOWED_TAGS: [] }), Cs = class Cs extends ot {
3299
3290
  constructor() {
3300
3291
  super(...arguments), this.type = "toolbar", this.renderType = st.HTML;
3301
3292
  }
@@ -3473,7 +3464,7 @@ const Qn = (s) => Er.sanitize(s, {
3473
3464
  return e.forEach((a) => {
3474
3465
  let o = null;
3475
3466
  if (a.type === xt.CUSTOM)
3476
- T(a, "id") === null && (a.id = `toolbar-button-${_s.buttonID++}`), T(a, "shouldBeDisabled") === null && (a.shouldBeDisabled = () => !1), o = a;
3467
+ T(a, "id") === null && (a.id = `toolbar-button-${Cs.buttonID++}`), T(a, "shouldBeDisabled") === null && (a.shouldBeDisabled = () => !1), o = a;
3477
3468
  else {
3478
3469
  const c = this.services.domUtils.isFullScreenMode();
3479
3470
  a.type === xt.MAKE_FULLSCREEN && c ? a.type = xt.EXIT_FULLSCREEN : a.type === xt.EXIT_FULLSCREEN && !c && (a.type = xt.MAKE_FULLSCREEN), o = this.getControlConfigByType(a.type);
@@ -3667,11 +3658,11 @@ const Qn = (s) => Er.sanitize(s, {
3667
3658
  }
3668
3659
  }
3669
3660
  };
3670
- _s.buttonID = 0;
3671
- let Xa = _s;
3672
- const Cs = class Cs extends ot {
3661
+ Cs.buttonID = 0;
3662
+ let Xa = Cs;
3663
+ const Rs = class Rs extends ot {
3673
3664
  constructor(t, e, n, i) {
3674
- super(t, e, i), this.type = "layout", this.configs = i, this.children = n, this._instanceID = Cs.instanceID++, this.init();
3665
+ super(t, e, i), this.type = "layout", this.configs = i, this.children = n, this._instanceID = Rs.instanceID++, this.init();
3675
3666
  }
3676
3667
  init() {
3677
3668
  this.children.forEach((t) => {
@@ -3756,8 +3747,8 @@ const Cs = class Cs extends ot {
3756
3747
  });
3757
3748
  }
3758
3749
  };
3759
- Cs.instanceID = Math.floor(Math.random() * 99999999999);
3760
- let ja = Cs;
3750
+ Rs.instanceID = Math.floor(Math.random() * 99999999999);
3751
+ let ja = Rs;
3761
3752
  class h0 extends ot {
3762
3753
  constructor() {
3763
3754
  super(...arguments), this.type = "spacer";
@@ -3785,7 +3776,7 @@ var up = {
3785
3776
  textarea:not([disabled]),
3786
3777
  iframe, object, embed, *[tabindex], *[contenteditable=true]
3787
3778
  `
3788
- }, fi = up;
3779
+ }, mi = up;
3789
3780
  function hp(s, t, e) {
3790
3781
  return Object.defineProperty(s, "prototype", {
3791
3782
  writable: !1
@@ -3804,19 +3795,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3804
3795
  }
3805
3796
  function gp(s, t) {
3806
3797
  if (s) {
3807
- if (typeof s == "string") return Fi(s, t);
3798
+ if (typeof s == "string") return Xi(s, t);
3808
3799
  var e = Object.prototype.toString.call(s).slice(8, -1);
3809
3800
  if (e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set") return Array.from(s);
3810
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Fi(s, t);
3801
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Xi(s, t);
3811
3802
  }
3812
3803
  }
3813
3804
  function mp(s) {
3814
3805
  if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null) return Array.from(s);
3815
3806
  }
3816
3807
  function vp(s) {
3817
- if (Array.isArray(s)) return Fi(s);
3808
+ if (Array.isArray(s)) return Xi(s);
3818
3809
  }
3819
- function Fi(s, t) {
3810
+ function Xi(s, t) {
3820
3811
  (t == null || t > s.length) && (t = s.length);
3821
3812
  for (var e = 0, n = new Array(t); e < t; e++)
3822
3813
  n[e] = s[e];
@@ -3839,13 +3830,13 @@ function yp() {
3839
3830
  return hp(n);
3840
3831
  }());
3841
3832
  }
3842
- function Wi(s) {
3833
+ function ji(s) {
3843
3834
  "@babel/helpers - typeof";
3844
- return Wi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3835
+ return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3845
3836
  return typeof t;
3846
3837
  } : function(t) {
3847
3838
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
3848
- }, Wi(s);
3839
+ }, ji(s);
3849
3840
  }
3850
3841
  function Ep(s, t) {
3851
3842
  if (!(s instanceof t))
@@ -3873,19 +3864,19 @@ function xp(s, t) {
3873
3864
  }
3874
3865
  }), Object.defineProperty(s, "prototype", {
3875
3866
  writable: !1
3876
- }), t && Xi(s, t);
3867
+ }), t && Yi(s, t);
3877
3868
  }
3878
- function Xi(s, t) {
3879
- return Xi = Object.setPrototypeOf || function(n, i) {
3869
+ function Yi(s, t) {
3870
+ return Yi = Object.setPrototypeOf || function(n, i) {
3880
3871
  return n.__proto__ = i, n;
3881
- }, Xi(s, t);
3872
+ }, Yi(s, t);
3882
3873
  }
3883
3874
  function bp(s) {
3884
3875
  var t = Op();
3885
3876
  return function() {
3886
- var n = Ts(s), i;
3877
+ var n = ws(s), i;
3887
3878
  if (t) {
3888
- var r = Ts(this).constructor;
3879
+ var r = ws(this).constructor;
3889
3880
  i = Reflect.construct(n, arguments, r);
3890
3881
  } else
3891
3882
  i = n.apply(this, arguments);
@@ -3893,7 +3884,7 @@ function bp(s) {
3893
3884
  };
3894
3885
  }
3895
3886
  function Tp(s, t) {
3896
- if (t && (Wi(t) === "object" || typeof t == "function"))
3887
+ if (t && (ji(t) === "object" || typeof t == "function"))
3897
3888
  return t;
3898
3889
  if (t !== void 0)
3899
3890
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -3914,10 +3905,10 @@ function Op() {
3914
3905
  return !1;
3915
3906
  }
3916
3907
  }
3917
- function Ts(s) {
3918
- return Ts = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
3908
+ function ws(s) {
3909
+ return ws = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
3919
3910
  return e.__proto__ || Object.getPrototypeOf(e);
3920
- }, Ts(s);
3911
+ }, ws(s);
3921
3912
  }
3922
3913
  function wp(s) {
3923
3914
  var t = /* @__PURE__ */ function(e) {
@@ -3950,13 +3941,13 @@ function wp(s) {
3950
3941
  }(s);
3951
3942
  return t;
3952
3943
  }
3953
- function ji(s) {
3944
+ function qi(s) {
3954
3945
  "@babel/helpers - typeof";
3955
- return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3946
+ return qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
3956
3947
  return typeof t;
3957
3948
  } : function(t) {
3958
3949
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
3959
- }, ji(s);
3950
+ }, qi(s);
3960
3951
  }
3961
3952
  function Lp(s, t) {
3962
3953
  if (!(s instanceof t))
@@ -3973,21 +3964,21 @@ function Mp(s, t, e) {
3973
3964
  writable: !1
3974
3965
  }), s;
3975
3966
  }
3976
- function cs() {
3977
- return typeof Reflect < "u" && Reflect.get ? cs = Reflect.get : cs = function(t, e, n) {
3967
+ function hs() {
3968
+ return typeof Reflect < "u" && Reflect.get ? hs = Reflect.get : hs = function(t, e, n) {
3978
3969
  var i = _p(t, e);
3979
3970
  if (i) {
3980
3971
  var r = Object.getOwnPropertyDescriptor(i, e);
3981
3972
  return r.get ? r.get.call(arguments.length < 3 ? t : n) : r.value;
3982
3973
  }
3983
- }, cs.apply(this, arguments);
3974
+ }, hs.apply(this, arguments);
3984
3975
  }
3985
3976
  function _p(s, t) {
3986
3977
  for (; !Object.prototype.hasOwnProperty.call(s, t) && (s = rn(s), s !== null); )
3987
3978
  ;
3988
3979
  return s;
3989
3980
  }
3990
- function Cp(s, t) {
3981
+ function kp(s, t) {
3991
3982
  if (typeof t != "function" && t !== null)
3992
3983
  throw new TypeError("Super expression must either be null or a function");
3993
3984
  s.prototype = Object.create(t && t.prototype, {
@@ -3998,14 +3989,14 @@ function Cp(s, t) {
3998
3989
  }
3999
3990
  }), Object.defineProperty(s, "prototype", {
4000
3991
  writable: !1
4001
- }), t && Yi(s, t);
3992
+ }), t && Zi(s, t);
4002
3993
  }
4003
- function Yi(s, t) {
4004
- return Yi = Object.setPrototypeOf || function(n, i) {
3994
+ function Zi(s, t) {
3995
+ return Zi = Object.setPrototypeOf || function(n, i) {
4005
3996
  return n.__proto__ = i, n;
4006
- }, Yi(s, t);
3997
+ }, Zi(s, t);
4007
3998
  }
4008
- function kp(s) {
3999
+ function Cp(s) {
4009
4000
  var t = Dp();
4010
4001
  return function() {
4011
4002
  var n = rn(s), i;
@@ -4018,7 +4009,7 @@ function kp(s) {
4018
4009
  };
4019
4010
  }
4020
4011
  function Rp(s, t) {
4021
- if (t && (ji(t) === "object" || typeof t == "function"))
4012
+ if (t && (qi(t) === "object" || typeof t == "function"))
4022
4013
  return t;
4023
4014
  if (t !== void 0)
4024
4015
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4046,8 +4037,8 @@ function rn(s) {
4046
4037
  }
4047
4038
  function Pp(s) {
4048
4039
  var t = /* @__PURE__ */ function(e) {
4049
- Cp(i, e);
4050
- var n = kp(i);
4040
+ kp(i, e);
4041
+ var n = Cp(i);
4051
4042
  function i() {
4052
4043
  var r;
4053
4044
  Lp(this, i);
@@ -4083,7 +4074,7 @@ function Pp(s) {
4083
4074
  var a = this;
4084
4075
  return this.handles.forEach(function(o) {
4085
4076
  o.release(), a.handles.delete(o);
4086
- }), cs(rn(i.prototype), "release", this).call(this);
4077
+ }), hs(rn(i.prototype), "release", this).call(this);
4087
4078
  }
4088
4079
  }]), i;
4089
4080
  }(s);
@@ -4098,13 +4089,13 @@ function On(s) {
4098
4089
  }
4099
4090
  };
4100
4091
  }
4101
- function qi(s) {
4092
+ function Ki(s) {
4102
4093
  "@babel/helpers - typeof";
4103
- return qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4094
+ return Ki = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4104
4095
  return typeof t;
4105
4096
  } : function(t) {
4106
4097
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4107
- }, qi(s);
4098
+ }, Ki(s);
4108
4099
  }
4109
4100
  function Np(s) {
4110
4101
  return Gp(s) || Bp(s) || Vp(s) || $p();
@@ -4115,19 +4106,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
4115
4106
  }
4116
4107
  function Vp(s, t) {
4117
4108
  if (s) {
4118
- if (typeof s == "string") return Zi(s, t);
4109
+ if (typeof s == "string") return Ji(s, t);
4119
4110
  var e = Object.prototype.toString.call(s).slice(8, -1);
4120
4111
  if (e === "Object" && s.constructor && (e = s.constructor.name), e === "Map" || e === "Set") return Array.from(s);
4121
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Zi(s, t);
4112
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return Ji(s, t);
4122
4113
  }
4123
4114
  }
4124
4115
  function Bp(s) {
4125
4116
  if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null) return Array.from(s);
4126
4117
  }
4127
4118
  function Gp(s) {
4128
- if (Array.isArray(s)) return Zi(s);
4119
+ if (Array.isArray(s)) return Ji(s);
4129
4120
  }
4130
- function Zi(s, t) {
4121
+ function Ji(s, t) {
4131
4122
  (t == null || t > s.length) && (t = s.length);
4132
4123
  for (var e = 0, n = new Array(t); e < t; e++)
4133
4124
  n[e] = s[e];
@@ -4159,19 +4150,19 @@ function Fp(s, t) {
4159
4150
  }
4160
4151
  }), Object.defineProperty(s, "prototype", {
4161
4152
  writable: !1
4162
- }), t && Ki(s, t);
4153
+ }), t && Qi(s, t);
4163
4154
  }
4164
- function Ki(s, t) {
4165
- return Ki = Object.setPrototypeOf || function(n, i) {
4155
+ function Qi(s, t) {
4156
+ return Qi = Object.setPrototypeOf || function(n, i) {
4166
4157
  return n.__proto__ = i, n;
4167
- }, Ki(s, t);
4158
+ }, Qi(s, t);
4168
4159
  }
4169
4160
  function Wp(s) {
4170
4161
  var t = Yp();
4171
4162
  return function() {
4172
- var n = Os(s), i;
4163
+ var n = Ls(s), i;
4173
4164
  if (t) {
4174
- var r = Os(this).constructor;
4165
+ var r = Ls(this).constructor;
4175
4166
  i = Reflect.construct(n, arguments, r);
4176
4167
  } else
4177
4168
  i = n.apply(this, arguments);
@@ -4179,7 +4170,7 @@ function Wp(s) {
4179
4170
  };
4180
4171
  }
4181
4172
  function Xp(s, t) {
4182
- if (t && (qi(t) === "object" || typeof t == "function"))
4173
+ if (t && (Ki(t) === "object" || typeof t == "function"))
4183
4174
  return t;
4184
4175
  if (t !== void 0)
4185
4176
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4200,10 +4191,10 @@ function Yp() {
4200
4191
  return !1;
4201
4192
  }
4202
4193
  }
4203
- function Os(s) {
4204
- return Os = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4194
+ function Ls(s) {
4195
+ return Ls = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4205
4196
  return e.__proto__ || Object.getPrototypeOf(e);
4206
- }, Os(s);
4197
+ }, Ls(s);
4207
4198
  }
4208
4199
  function qp(s) {
4209
4200
  var t = /* @__PURE__ */ function(e) {
@@ -4289,7 +4280,7 @@ function qp(s) {
4289
4280
  }(s);
4290
4281
  return t;
4291
4282
  }
4292
- function Ji(s, t) {
4283
+ function tr(s, t) {
4293
4284
  var e = s.target, n = s.currentTarget;
4294
4285
  if (typeof e.matches == "function") {
4295
4286
  if (e.matches(t))
@@ -4317,13 +4308,13 @@ function qa(s) {
4317
4308
  launchingEvent: e
4318
4309
  };
4319
4310
  }
4320
- function Qi(s) {
4311
+ function er(s) {
4321
4312
  "@babel/helpers - typeof";
4322
- return Qi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4313
+ return er = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4323
4314
  return typeof t;
4324
4315
  } : function(t) {
4325
4316
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4326
- }, Qi(s);
4317
+ }, er(s);
4327
4318
  }
4328
4319
  function Zp(s, t) {
4329
4320
  if (!(s instanceof t))
@@ -4351,19 +4342,19 @@ function Qp(s, t) {
4351
4342
  }
4352
4343
  }), Object.defineProperty(s, "prototype", {
4353
4344
  writable: !1
4354
- }), t && tr(s, t);
4345
+ }), t && nr(s, t);
4355
4346
  }
4356
- function tr(s, t) {
4357
- return tr = Object.setPrototypeOf || function(n, i) {
4347
+ function nr(s, t) {
4348
+ return nr = Object.setPrototypeOf || function(n, i) {
4358
4349
  return n.__proto__ = i, n;
4359
- }, tr(s, t);
4350
+ }, nr(s, t);
4360
4351
  }
4361
4352
  function tf(s) {
4362
4353
  var t = sf();
4363
4354
  return function() {
4364
- var n = ws(s), i;
4355
+ var n = As(s), i;
4365
4356
  if (t) {
4366
- var r = ws(this).constructor;
4357
+ var r = As(this).constructor;
4367
4358
  i = Reflect.construct(n, arguments, r);
4368
4359
  } else
4369
4360
  i = n.apply(this, arguments);
@@ -4371,7 +4362,7 @@ function tf(s) {
4371
4362
  };
4372
4363
  }
4373
4364
  function ef(s, t) {
4374
- if (t && (Qi(t) === "object" || typeof t == "function"))
4365
+ if (t && (er(t) === "object" || typeof t == "function"))
4375
4366
  return t;
4376
4367
  if (t !== void 0)
4377
4368
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4392,10 +4383,10 @@ function sf() {
4392
4383
  return !1;
4393
4384
  }
4394
4385
  }
4395
- function ws(s) {
4396
- return ws = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4386
+ function As(s) {
4387
+ return As = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4397
4388
  return e.__proto__ || Object.getPrototypeOf(e);
4398
- }, ws(s);
4389
+ }, As(s);
4399
4390
  }
4400
4391
  function rf(s) {
4401
4392
  var t = /* @__PURE__ */ function(e) {
@@ -4483,13 +4474,13 @@ process.env.NODE_ENV !== "production" && (Ol = function(s, t, e) {
4483
4474
  });
4484
4475
  var lf = Ol;
4485
4476
  const cf = /* @__PURE__ */ Tl(lf);
4486
- function er(s) {
4477
+ function sr(s) {
4487
4478
  "@babel/helpers - typeof";
4488
- return er = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4479
+ return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4489
4480
  return typeof t;
4490
4481
  } : function(t) {
4491
4482
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4492
- }, er(s);
4483
+ }, sr(s);
4493
4484
  }
4494
4485
  function uf(s, t) {
4495
4486
  if (!(s instanceof t))
@@ -4517,19 +4508,19 @@ function pf(s, t) {
4517
4508
  }
4518
4509
  }), Object.defineProperty(s, "prototype", {
4519
4510
  writable: !1
4520
- }), t && nr(s, t);
4511
+ }), t && ir(s, t);
4521
4512
  }
4522
- function nr(s, t) {
4523
- return nr = Object.setPrototypeOf || function(n, i) {
4513
+ function ir(s, t) {
4514
+ return ir = Object.setPrototypeOf || function(n, i) {
4524
4515
  return n.__proto__ = i, n;
4525
- }, nr(s, t);
4516
+ }, ir(s, t);
4526
4517
  }
4527
4518
  function ff(s) {
4528
4519
  var t = vf();
4529
4520
  return function() {
4530
- var n = Ls(s), i;
4521
+ var n = Ms(s), i;
4531
4522
  if (t) {
4532
- var r = Ls(this).constructor;
4523
+ var r = Ms(this).constructor;
4533
4524
  i = Reflect.construct(n, arguments, r);
4534
4525
  } else
4535
4526
  i = n.apply(this, arguments);
@@ -4537,7 +4528,7 @@ function ff(s) {
4537
4528
  };
4538
4529
  }
4539
4530
  function gf(s, t) {
4540
- if (t && (er(t) === "object" || typeof t == "function"))
4531
+ if (t && (sr(t) === "object" || typeof t == "function"))
4541
4532
  return t;
4542
4533
  if (t !== void 0)
4543
4534
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4558,10 +4549,10 @@ function vf() {
4558
4549
  return !1;
4559
4550
  }
4560
4551
  }
4561
- function Ls(s) {
4562
- return Ls = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4552
+ function Ms(s) {
4553
+ return Ms = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4563
4554
  return e.__proto__ || Object.getPrototypeOf(e);
4564
- }, Ls(s);
4555
+ }, Ms(s);
4565
4556
  }
4566
4557
  function yf(s) {
4567
4558
  var t = /* @__PURE__ */ function(e) {
@@ -4597,7 +4588,7 @@ function yf(s) {
4597
4588
  else {
4598
4589
  var h = l.initEventNames.map(function(d) {
4599
4590
  return On(o, d, function(u) {
4600
- var p = Ji(u, "[".concat(l.attribInitTarget, "]"));
4591
+ var p = tr(u, "[".concat(l.attribInitTarget, "]"));
4601
4592
  if (p) {
4602
4593
  u.delegateTarget = p;
4603
4594
  var f = p.ownerDocument.querySelectorAll(p.getAttribute(l.attribInitTarget));
@@ -4625,13 +4616,13 @@ function yf(s) {
4625
4616
  }(s);
4626
4617
  return t;
4627
4618
  }
4628
- function sr(s) {
4619
+ function rr(s) {
4629
4620
  "@babel/helpers - typeof";
4630
- return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4621
+ return rr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
4631
4622
  return typeof t;
4632
4623
  } : function(t) {
4633
4624
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
4634
- }, sr(s);
4625
+ }, rr(s);
4635
4626
  }
4636
4627
  function Ef(s, t) {
4637
4628
  if (!(s instanceof t))
@@ -4659,19 +4650,19 @@ function xf(s, t) {
4659
4650
  }
4660
4651
  }), Object.defineProperty(s, "prototype", {
4661
4652
  writable: !1
4662
- }), t && ir(s, t);
4653
+ }), t && ar(s, t);
4663
4654
  }
4664
- function ir(s, t) {
4665
- return ir = Object.setPrototypeOf || function(n, i) {
4655
+ function ar(s, t) {
4656
+ return ar = Object.setPrototypeOf || function(n, i) {
4666
4657
  return n.__proto__ = i, n;
4667
- }, ir(s, t);
4658
+ }, ar(s, t);
4668
4659
  }
4669
4660
  function bf(s) {
4670
4661
  var t = wf();
4671
4662
  return function() {
4672
- var n = As(s), i;
4663
+ var n = _s(s), i;
4673
4664
  if (t) {
4674
- var r = As(this).constructor;
4665
+ var r = _s(this).constructor;
4675
4666
  i = Reflect.construct(n, arguments, r);
4676
4667
  } else
4677
4668
  i = n.apply(this, arguments);
@@ -4679,7 +4670,7 @@ function bf(s) {
4679
4670
  };
4680
4671
  }
4681
4672
  function Tf(s, t) {
4682
- if (t && (sr(t) === "object" || typeof t == "function"))
4673
+ if (t && (rr(t) === "object" || typeof t == "function"))
4683
4674
  return t;
4684
4675
  if (t !== void 0)
4685
4676
  throw new TypeError("Derived constructors may only return object or undefined");
@@ -4700,10 +4691,10 @@ function wf() {
4700
4691
  return !1;
4701
4692
  }
4702
4693
  }
4703
- function As(s) {
4704
- return As = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4694
+ function _s(s) {
4695
+ return _s = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
4705
4696
  return e.__proto__ || Object.getPrototypeOf(e);
4706
- }, As(s);
4697
+ }, _s(s);
4707
4698
  }
4708
4699
  var Lf = /* @__PURE__ */ function(s) {
4709
4700
  xf(e, s);
@@ -4713,8 +4704,8 @@ var Lf = /* @__PURE__ */ function(s) {
4713
4704
  return Ef(this, e), r = t.call(this, n, i), r._handleFocusinListener = void 0, r._handleKeydownListener = void 0, r._handleFocusin = function(a) {
4714
4705
  var o = r.element.querySelector(r.options.selectorModalContainer) || r.element;
4715
4706
  r.element.classList.contains(r.options.classVisible) && !o.contains(a.target) && r.options.selectorsFloatingMenus.every(function(c) {
4716
- return !Ji(a, c);
4717
- }) && r.element.querySelector(fi.selectorTabbable).focus();
4707
+ return !tr(a, c);
4708
+ }) && r.element.querySelector(mi.selectorTabbable).focus();
4718
4709
  }, r._hookCloseActions(), r;
4719
4710
  }
4720
4711
  return Sf(e, [{
@@ -4751,7 +4742,7 @@ var Lf = /* @__PURE__ */ function(s) {
4751
4742
  var o = this, c, l = function() {
4752
4743
  if (c && (c = o.unmanage(c).release()), i === "shown" && o.element.offsetWidth > 0 && o.element.offsetHeight > 0) {
4753
4744
  o.previouslyFocusedNode = o.element.ownerDocument.activeElement;
4754
- var p = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(fi.selectorTabbable);
4745
+ var p = o.element.querySelector(o.options.selectorPrimaryFocus) || o.element.querySelector(mi.selectorTabbable);
4755
4746
  p.focus(), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && cf(p, "Modals need to contain a focusable element by either using " + "`".concat(o.options.selectorPrimaryFocus, "` or settings.selectorTabbable."));
4756
4747
  }
4757
4748
  a();
@@ -4767,7 +4758,7 @@ var Lf = /* @__PURE__ */ function(s) {
4767
4758
  value: function() {
4768
4759
  var i = this;
4769
4760
  this.manage(On(this.element, "click", function(r) {
4770
- var a = Ji(r, i.options.selectorModalClose);
4761
+ var a = tr(r, i.options.selectorModalClose);
4771
4762
  a && (r.delegateTarget = a), (a || r.target === i.element) && i.hide(r);
4772
4763
  })), this._handleKeydownListener && (this._handleKeydownListener = this.unmanage(this._handleKeydownListener).release()), this._handleKeydownListener = this.manage(On(this.element.ownerDocument.body, "keydown", function(r) {
4773
4764
  r.which === 27 && i.shouldStateBeChanged("hidden") && (r.stopPropagation(), i.hide(r));
@@ -4814,7 +4805,7 @@ var Lf = /* @__PURE__ */ function(s) {
4814
4805
  * without being canceled by the event handler named by `eventBeforeHidden` option (`modal-beinghidden`).
4815
4806
  */
4816
4807
  function() {
4817
- var i = fi.prefix;
4808
+ var i = mi.prefix;
4818
4809
  return {
4819
4810
  selectorInit: "[data-modal]",
4820
4811
  selectorModalClose: "[data-modal-close]",
@@ -4872,7 +4863,7 @@ class d0 extends ot {
4872
4863
  <table class="cds--data-table cds--data-table--no-border">
4873
4864
  <thead>
4874
4865
  <tr>
4875
- ${yt(a, 0).map(
4866
+ ${vt(a, 0).map(
4876
4867
  (o) => `<th scope="col">
4877
4868
  <div class="cds--table-header-label">${ue(o)}</div>
4878
4869
  </th>`
@@ -5028,15 +5019,15 @@ class Mf extends ot {
5028
5019
  v.exit().remove();
5029
5020
  const S = v.enter().append("div").merge(v).classed("legend-item", !0).classed("additional", !0).attr(
5030
5021
  "aria-labelledby",
5031
- (I, k) => this.services.domUtils.generateElementIDString(
5032
- `legend-datagroup-${m.size() + k}-title`
5022
+ (I, C) => this.services.domUtils.generateElementIDString(
5023
+ `legend-datagroup-${m.size() + C}-title`
5033
5024
  )
5034
5025
  );
5035
5026
  S.selectAll("*").remove();
5036
5027
  let b, O = 1;
5037
5028
  S.append("svg").classed("icon", !0).each(function(I) {
5038
- const k = R(this);
5039
- !b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(k, I, O);
5029
+ const C = R(this);
5030
+ !b || b != I.type ? (b = I.type, O = 1) : O++, y.addAdditionalItem(C, I, O);
5040
5031
  }), S.append("p").merge(S.select("p")), this.truncateLegendText();
5041
5032
  }
5042
5033
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && u.size() > 1 && this.addEventListeners();
@@ -5086,7 +5077,7 @@ class Mf extends ot {
5086
5077
  return (this.parentNode.querySelector("div.checkbox") || this.parentNode).getAttribute("aria-labelledby");
5087
5078
  }), n !== Ze.NONE ? a.html(function(o) {
5088
5079
  const c = ue(o.name);
5089
- return c.length > i && c.length !== r ? Cn(c, n, r) : c;
5080
+ return c.length > i && c.length !== r ? kn(c, n, r) : c;
5090
5081
  }) : a.html((o) => ue(o.name));
5091
5082
  }
5092
5083
  addEventListeners() {
@@ -5208,7 +5199,7 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
5208
5199
  scrollY: 0,
5209
5200
  innerWidth: 0,
5210
5201
  scrollX: 0
5211
- }, Ns = (
5202
+ }, Vs = (
5212
5203
  /** @class */
5213
5204
  function() {
5214
5205
  function s(t) {
@@ -5296,24 +5287,24 @@ var Ka = (Fe = {}, Fe[Ot.LEFT] = function(s, t, e) {
5296
5287
  }, s;
5297
5288
  }()
5298
5289
  );
5299
- new Ns();
5300
- class Cf extends ot {
5290
+ new Vs();
5291
+ class kf extends ot {
5301
5292
  constructor(t, e, n) {
5302
- super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Ns(), this.handleShowTooltip = (i) => {
5293
+ super(t, e, n), this.type = "tooltip", this.renderType = st.HTML, this.isEventListenerAdded = !1, this.lastTriggeredEventType = "", this.positionService = new Vs(), this.handleShowTooltip = (i) => {
5303
5294
  const r = i.detail.data || i.detail.items, a = R(i.detail.event.target).datum();
5304
5295
  let o;
5305
5296
  const c = this.formatItems(this.getItems(i));
5306
- i.detail.content ? o = `<div class="title-tooltip"><p>${Qn(i.detail.content)}</p></div>` : o = Qn(this.getTooltipHTML(c));
5297
+ i.detail.content ? o = `<div class="title-tooltip"><p>${es(i.detail.content)}</p></div>` : o = es(this.getTooltipHTML(c));
5307
5298
  const l = _.appendOrSelect(this.tooltip, "div.content-box");
5308
5299
  if (T(this.getOptions(), "tooltip", "customHTML"))
5309
5300
  if (i.detail.content) {
5310
- const h = `<div class="title-tooltip"><p>${Qn(
5301
+ const h = `<div class="title-tooltip"><p>${es(
5311
5302
  i.detail.content
5312
5303
  )}</p></div>`;
5313
5304
  l.html(h);
5314
5305
  } else
5315
5306
  l.html(
5316
- `<div class="title-tooltip"><p>${Qn(
5307
+ `<div class="title-tooltip"><p>${es(
5317
5308
  this.model.getOptions().tooltip.customHTML(r, o, a)
5318
5309
  )}</p></div>`
5319
5310
  );
@@ -5342,7 +5333,7 @@ class Cf extends ot {
5342
5333
  const e = this.getOptions(), n = T(e, "tooltip", "truncation", "type"), i = T(e, "tooltip", "truncation", "threshold"), r = T(e, "tooltip", "truncation", "numCharacter");
5343
5334
  return n !== Ze.NONE ? t.map((a) => {
5344
5335
  const o = a.labelIcon ? 12 : 0;
5345
- return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = Cn(a.label, n, r)), a.value && a.value.length > i && (a.value = Cn(a.value, n, r)), a;
5336
+ return a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a.label && a.label.length + o > i && (a.label = kn(a.label, n, r)), a.value && a.value.length > i && (a.value = kn(a.value, n, r)), a;
5346
5337
  }) : t.map((a) => (a.value = a.value ? this.valueFormatter(a.value, a.label) : a.value, a));
5347
5338
  }
5348
5339
  getTooltipHTML(t) {
@@ -5486,17 +5477,17 @@ const Qe = class Qe extends ot {
5486
5477
  const g = (b) => {
5487
5478
  const O = b[1] - b[0];
5488
5479
  let I = "0," + O.toString();
5489
- const k = Math.floor(c / Qe.DASH_LENGTH), G = k * Qe.DASH_LENGTH;
5490
- for (let C = 0; C < k; C++)
5480
+ const C = Math.floor(c / Qe.DASH_LENGTH), G = C * Qe.DASH_LENGTH;
5481
+ for (let k = 0; k < C; k++)
5491
5482
  I += "," + Qe.DASH_LENGTH;
5492
- I += "," + (c - G), k % 2 === 1 && (I += ",0"), I += "," + O.toString(), I += "," + c.toString(), p.attr("stroke-dasharray", I);
5483
+ I += "," + (c - G), C % 2 === 1 && (I += ",0"), I += "," + O.toString(), I += "," + c.toString(), p.attr("stroke-dasharray", I);
5493
5484
  }, m = (b) => {
5494
5485
  const O = b.selection;
5495
5486
  O === null || O[0] === O[1] || (p.attr("x", parseFloat(a.attr("x")) + parseFloat(i.attr("x"))).attr("y", a.attr("y")).attr("width", a.attr("width")).attr("height", a.attr("height")).style("cursor", "pointer").style("display", null), g(O));
5496
5487
  }, E = (b, O) => {
5497
5488
  const I = rc().range([0, o]).domain(f);
5498
- let k = [I.invert(b), I.invert(O)];
5499
- k[0].valueOf() === k[1].valueOf() && (k = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== k[0].valueOf() || f[1].valueOf() !== k[1].valueOf()) && this.services.zoom.handleDomainChange(k);
5489
+ let C = [I.invert(b), I.invert(O)];
5490
+ C[0].valueOf() === C[1].valueOf() && (C = this.services.zoom.getDefaultZoomBarDomain()), (f[0].valueOf() !== C[0].valueOf() || f[1].valueOf() !== C[1].valueOf()) && this.services.zoom.handleDomainChange(C);
5500
5491
  };
5501
5492
  let y;
5502
5493
  const v = (b) => {
@@ -5511,10 +5502,10 @@ const Qe = class Qe extends ot {
5511
5502
  i.on("click", function(b) {
5512
5503
  if (b.shiftKey) {
5513
5504
  const O = this.services.domUtils.getHolder(), I = en(r.node(), O)[0];
5514
- let k = I - o * S / 2;
5515
- k < 0 && (k = 0);
5505
+ let C = I - o * S / 2;
5506
+ C < 0 && (C = 0);
5516
5507
  let G = I + o * S / 2;
5517
- G > o && (G = o), E(k, G);
5508
+ G > o && (G = o), E(C, G);
5518
5509
  }
5519
5510
  });
5520
5511
  }
@@ -5583,20 +5574,20 @@ class f0 extends ot {
5583
5574
  zoomDomain: tn([], E)
5584
5575
  },
5585
5576
  { skipUpdate: !0 }
5586
- ), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ks(m, (O) => O.value));
5577
+ ), this.xScale.range([l, c]).domain(E), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(Is(m, (O) => O.value));
5587
5578
  const S = this.model.get("zoomDomain");
5588
5579
  if (r === Ge.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(e, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, l, c), a)) {
5589
- const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo, k = a.color, G = a.labelMapsTo;
5590
- a.data.forEach((C, L) => {
5591
- _.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(C[O])).attr(
5580
+ const O = a.highlightStartMapsTo, I = a.highlightEndMapsTo, C = a.color, G = a.labelMapsTo;
5581
+ a.data.forEach((k, L) => {
5582
+ _.appendOrSelect(d, `rect.highlight-${L}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(k[O])).attr(
5592
5583
  "width",
5593
- this.xScale(C[I]) - this.xScale(C[O])
5584
+ this.xScale(k[I]) - this.xScale(k[O])
5594
5585
  ).style(
5595
5586
  "fill",
5596
- k && k.scale[C[G]] ? k.scale[C[G]] : null
5587
+ C && C.scale[k[G]] ? C.scale[k[G]] : null
5597
5588
  ).style("fill-opacity", 0.1).style(
5598
5589
  "stroke",
5599
- k && k.scale[C[G]] ? k.scale[C[G]] : null
5590
+ C && C.scale[k[G]] ? C.scale[k[G]] : null
5600
5591
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
5601
5592
  });
5602
5593
  }
@@ -5673,7 +5664,7 @@ class f0 extends ot {
5673
5664
  _.appendOrSelect(r, "rect.zoom-slider-selected-area").attr("x", t[0]).attr("y", n / 2 - 1).attr("width", t[1] - t[0]).attr("height", 2);
5674
5665
  }
5675
5666
  renderZoomBarArea(t, e, n, i) {
5676
- const { cartesianScales: r } = this.services, a = r.getMainXAxisPosition(), o = r.getMainYAxisPosition(), c = r.getMainXScaleType(), l = r.getMainYScaleType(), h = (E, y, v) => (S) => r.getValueFromScale(E, y, v, S), d = h(this.xScale, c, a), u = h(this.yScale, l, o), p = T(this.getOptions(), "zoomBar", Y.TOP, "type"), f = Yt.height[p], g = yr().x((E) => d(E)).y0(f).y1((E) => f - u(E)), m = _.appendOrSelect(t, e).datum(n).attr("d", g);
5667
+ const { cartesianScales: r } = this.services, a = r.getMainXAxisPosition(), o = r.getMainYAxisPosition(), c = r.getMainXScaleType(), l = r.getMainYScaleType(), h = (E, y, v) => (S) => r.getValueFromScale(E, y, v, S), d = h(this.xScale, c, a), u = h(this.yScale, l, o), p = T(this.getOptions(), "zoomBar", Y.TOP, "type"), f = Yt.height[p], g = Sr().x((E) => d(E)).y0(f).y1((E) => f - u(E)), m = _.appendOrSelect(t, e).datum(n).attr("d", g);
5677
5668
  i && m.attr("clip-path", `url(#${i})`);
5678
5669
  }
5679
5670
  updateClipPath(t, e, n, i, r, a) {
@@ -5719,7 +5710,7 @@ class f0 extends ot {
5719
5710
  }
5720
5711
  class g0 extends ot {
5721
5712
  constructor(t, e) {
5722
- super(t, e), this.type = "threshold", this.renderType = st.SVG, this.positionService = new Ns();
5713
+ super(t, e), this.type = "threshold", this.renderType = st.SVG, this.positionService = new Vs();
5723
5714
  }
5724
5715
  render(t = !1) {
5725
5716
  const e = T(this.getOptions(), "axes"), n = [];
@@ -5754,8 +5745,8 @@ class g0 extends ot {
5754
5745
  ), f = d.services.cartesianScales.getScaleTypeByPosition(u);
5755
5746
  let g = null, m = null;
5756
5747
  u === Y.LEFT || u === Y.RIGHT ? (m = p, g = d.services.cartesianScales.getMainXScale()) : (g = p, m = d.services.cartesianScales.getMainYScale());
5757
- const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(), k = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [C, L] = ye(
5758
- k,
5748
+ const E = f === Mt.LABELS, [y, v] = g.range(), [S, b] = m.range(), { cartesianScales: O } = d.services, I = O.getOrientation(), C = (D) => O.getDomainValue(D), G = (D) => O.getRangeValue(D), [k, L] = ye(
5749
+ C,
5759
5750
  G,
5760
5751
  I
5761
5752
  ), B = R(this);
@@ -5767,11 +5758,11 @@ class g0 extends ot {
5767
5758
  })
5768
5759
  ).attr("y1", b).attr("y2", S).attr(
5769
5760
  "x1",
5770
- ({ datum: D }) => C(D) + (E ? p.step() / 2 : 0)
5761
+ ({ datum: D }) => k(D) + (E ? p.step() / 2 : 0)
5771
5762
  ).attr(
5772
5763
  "x2",
5773
- ({ datum: D }) => C(D) + (E ? p.step() / 2 : 0)
5774
- ).style("stroke", ({ fillColor: D }) => D), B.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: D }) => -C(D)).attr("width", Math.abs(S - b)).classed("rotate", !0)) : (B.selectAll("line.threshold-line").transition().call(
5764
+ ({ datum: D }) => k(D) + (E ? p.step() / 2 : 0)
5765
+ ).style("stroke", ({ fillColor: D }) => D), B.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: D }) => -k(D)).attr("width", Math.abs(S - b)).classed("rotate", !0)) : (B.selectAll("line.threshold-line").transition().call(
5775
5766
  (D) => d.services.transitions.setupTransition({
5776
5767
  transition: D,
5777
5768
  name: "threshold-line-update",
@@ -5793,11 +5784,11 @@ class g0 extends ot {
5793
5784
  getFormattedValue(t) {
5794
5785
  const { value: e, axisPosition: n } = t, i = this.getOptions(), r = this.services.cartesianScales.getScaleTypeByPosition(n), { code: a, number: o } = T(i, "locale");
5795
5786
  if (r === Mt.TIME) {
5796
- const c = [Y.LEFT, Y.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = T(i, "timeScale"), p = yi(
5787
+ const c = [Y.LEFT, Y.RIGHT].includes(n), l = this.services.cartesianScales.getMainXScale(), h = this.services.cartesianScales.getMainYScale(), d = c ? h : l, u = T(i, "timeScale"), p = Si(
5797
5788
  d.ticks(),
5798
5789
  T(u, "timeInterval")
5799
5790
  );
5800
- return Ei(e, 0, d.ticks(), p, u, i.locale);
5791
+ return xi(e, 0, d.ticks(), p, u, i.locale);
5801
5792
  }
5802
5793
  return o(e, a);
5803
5794
  }
@@ -5860,7 +5851,7 @@ class g0 extends ot {
5860
5851
  }
5861
5852
  class m0 extends ot {
5862
5853
  constructor(t, e) {
5863
- super(t, e), this.type = "highlight", this.renderType = st.SVG, this.positionService = new Ns(), this.highlightStrokeWidth = 1;
5854
+ super(t, e), this.type = "highlight", this.renderType = st.SVG, this.positionService = new Vs(), this.highlightStrokeWidth = 1;
5864
5855
  }
5865
5856
  render(t = !1) {
5866
5857
  const e = T(this.getOptions(), "axes"), n = [];
@@ -5892,34 +5883,34 @@ class m0 extends ot {
5892
5883
  l.append("rect").attr("class", "highlight-bar"), l.append("line").attr("class", "highlight-line"), l.merge(c).attr("class", "highlight-group");
5893
5884
  const d = this;
5894
5885
  o.each(function({ axisPosition: u }) {
5895
- const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (C) => v.getDomainValue(C), O = (C) => v.getRangeValue(C), [I, k] = ye(
5886
+ const p = d.services.cartesianScales.getMainXScale(), f = d.services.cartesianScales.getMainYScale(), [g, m] = p.range(), [E, y] = f.range(), { cartesianScales: v } = d.services, S = v.getOrientation(), b = (k) => v.getDomainValue(k), O = (k) => v.getRangeValue(k), [I, C] = ye(
5896
5887
  b,
5897
5888
  O,
5898
5889
  S
5899
5890
  ), G = R(this);
5900
5891
  u === Y.TOP || u === Y.BOTTOM ? G.selectAll("rect.highlight-bar").transition().call(
5901
- (C) => d.services.transitions.setupTransition({
5902
- transition: C,
5892
+ (k) => d.services.transitions.setupTransition({
5893
+ transition: k,
5903
5894
  name: "highlight-bar-update",
5904
5895
  animate: t
5905
5896
  })
5906
- ).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: C, ...L }) => I(L[C])).attr(
5897
+ ).attr("y", Math.max(y + d.highlightStrokeWidth, 0)).attr("height", Math.max(E - 2 * d.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: k, ...L }) => I(L[k])).attr(
5907
5898
  "width",
5908
- ({ highlightStartMapsTo: C, highlightEndMapsTo: L, ...B }) => Math.max(I(B[L]) - I(B[C]), 0)
5909
- ).style("stroke", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null) : G.selectAll("rect.highlight-bar").transition().call(
5910
- (C) => d.services.transitions.setupTransition({
5911
- transition: C,
5899
+ ({ highlightStartMapsTo: k, highlightEndMapsTo: L, ...B }) => Math.max(I(B[L]) - I(B[k]), 0)
5900
+ ).style("stroke", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null) : G.selectAll("rect.highlight-bar").transition().call(
5901
+ (k) => d.services.transitions.setupTransition({
5902
+ transition: k,
5912
5903
  name: "highlight-bar-update",
5913
5904
  animate: t
5914
5905
  })
5915
- ).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: C, ...L }) => k(L[C])).attr(
5906
+ ).attr("x", g).attr("width", Math.max(m - g, 0)).attr("y", ({ highlightEndMapsTo: k, ...L }) => C(L[k])).attr(
5916
5907
  "height",
5917
- ({ highlightStartMapsTo: C, highlightEndMapsTo: L, ...B }) => Math.max(k(B[C]) - k(B[L]), 0)
5918
- ).style("stroke", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: C, labelMapsTo: L, ...B }) => C && C.scale[B[L]] ? C.scale[B[L]] : null);
5908
+ ({ highlightStartMapsTo: k, highlightEndMapsTo: L, ...B }) => Math.max(C(B[k]) - C(B[L]), 0)
5909
+ ).style("stroke", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", d.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: k, labelMapsTo: L, ...B }) => k && k.scale[B[L]] ? k.scale[B[L]] : null);
5919
5910
  });
5920
5911
  }
5921
5912
  }
5922
- class v0 extends Cf {
5913
+ class v0 extends kf {
5923
5914
  getItems(t) {
5924
5915
  if (t.detail.items)
5925
5916
  return t.detail.items;
@@ -5966,7 +5957,7 @@ class v0 extends Cf {
5966
5957
  value: g.value
5967
5958
  })
5968
5959
  ), d.push({
5969
- label: yt(n, "locale.translations.group") || yt(n, "tooltip.groupLabel"),
5960
+ label: vt(n, "locale.translations.group") || vt(n, "tooltip.groupLabel"),
5970
5961
  value: u[o],
5971
5962
  color: this.model.getFillColor(u[o]),
5972
5963
  class: this.model.getColorClassName({
@@ -5995,7 +5986,7 @@ class v0 extends Cf {
5995
5986
  ), !a && T(n, "tooltip", "showTotal") === !0)) {
5996
5987
  const u = i.getRangeIdentifier();
5997
5988
  d.push({
5998
- label: yt(n, "locale.translations.total") || yt(n, "tooltip.totalLabel") || "Total",
5989
+ label: vt(n, "locale.translations.total") || vt(n, "tooltip.totalLabel") || "Total",
5999
5990
  value: e.reduce(
6000
5991
  (p, f) => p + f[u],
6001
5992
  0
@@ -6018,7 +6009,7 @@ function to(s, t) {
6018
6009
  }
6019
6010
  return e;
6020
6011
  }
6021
- function kf(s, t) {
6012
+ function Cf(s, t) {
6022
6013
  let e;
6023
6014
  if (t === void 0)
6024
6015
  for (const n of s)
@@ -6030,7 +6021,7 @@ function kf(s, t) {
6030
6021
  }
6031
6022
  return e;
6032
6023
  }
6033
- function gi(s, t) {
6024
+ function vi(s, t) {
6034
6025
  let e = 0;
6035
6026
  if (t === void 0)
6036
6027
  for (let n of s)
@@ -6051,21 +6042,21 @@ function If(s, t) {
6051
6042
  function wl(s, t) {
6052
6043
  return s.sourceLinks.length ? s.depth : t - 1;
6053
6044
  }
6054
- function ts(s) {
6045
+ function ns(s) {
6055
6046
  return function() {
6056
6047
  return s;
6057
6048
  };
6058
6049
  }
6059
6050
  function eo(s, t) {
6060
- return Ms(s.source, t.source) || s.index - t.index;
6051
+ return ks(s.source, t.source) || s.index - t.index;
6061
6052
  }
6062
6053
  function no(s, t) {
6063
- return Ms(s.target, t.target) || s.index - t.index;
6054
+ return ks(s.target, t.target) || s.index - t.index;
6064
6055
  }
6065
- function Ms(s, t) {
6056
+ function ks(s, t) {
6066
6057
  return s.y0 - t.y0;
6067
6058
  }
6068
- function mi(s) {
6059
+ function yi(s) {
6069
6060
  return s.value;
6070
6061
  }
6071
6062
  function Df(s) {
@@ -6100,9 +6091,9 @@ function $f() {
6100
6091
  f.update = function(w) {
6101
6092
  return io(w), w;
6102
6093
  }, f.nodeId = function(w) {
6103
- return arguments.length ? (o = typeof w == "function" ? w : ts(w), f) : o;
6094
+ return arguments.length ? (o = typeof w == "function" ? w : ns(w), f) : o;
6104
6095
  }, f.nodeAlign = function(w) {
6105
- return arguments.length ? (c = typeof w == "function" ? w : ts(w), f) : c;
6096
+ return arguments.length ? (c = typeof w == "function" ? w : ns(w), f) : c;
6106
6097
  }, f.nodeSort = function(w) {
6107
6098
  return arguments.length ? (l = w, f) : l;
6108
6099
  }, f.nodeWidth = function(w) {
@@ -6110,9 +6101,9 @@ function $f() {
6110
6101
  }, f.nodePadding = function(w) {
6111
6102
  return arguments.length ? (r = a = +w, f) : r;
6112
6103
  }, f.nodes = function(w) {
6113
- return arguments.length ? (d = typeof w == "function" ? w : ts(w), f) : d;
6104
+ return arguments.length ? (d = typeof w == "function" ? w : ns(w), f) : d;
6114
6105
  }, f.links = function(w) {
6115
- return arguments.length ? (u = typeof w == "function" ? w : ts(w), f) : u;
6106
+ return arguments.length ? (u = typeof w == "function" ? w : ns(w), f) : u;
6116
6107
  }, f.linkSort = function(w) {
6117
6108
  return arguments.length ? (h = w, f) : h;
6118
6109
  }, f.size = function(w) {
@@ -6137,7 +6128,7 @@ function $f() {
6137
6128
  }
6138
6129
  function m({ nodes: w }) {
6139
6130
  for (const V of w)
6140
- V.value = V.fixedValue === void 0 ? Math.max(gi(V.sourceLinks, mi), gi(V.targetLinks, mi)) : V.fixedValue;
6131
+ V.value = V.fixedValue === void 0 ? Math.max(vi(V.sourceLinks, yi), vi(V.targetLinks, yi)) : V.fixedValue;
6141
6132
  }
6142
6133
  function E({ nodes: w }) {
6143
6134
  const V = w.length;
@@ -6176,7 +6167,7 @@ function $f() {
6176
6167
  return P;
6177
6168
  }
6178
6169
  function S(w) {
6179
- const V = kf(w, (N) => (n - t - (N.length - 1) * a) / gi(N, mi));
6170
+ const V = Cf(w, (N) => (n - t - (N.length - 1) * a) / vi(N, yi));
6180
6171
  for (const N of w) {
6181
6172
  let P = t;
6182
6173
  for (const $ of N) {
@@ -6206,14 +6197,14 @@ function $f() {
6206
6197
  for (const F of X) {
6207
6198
  let et = 0, J = 0;
6208
6199
  for (const { source: Q, value: j } of F.targetLinks) {
6209
- let Z = j * (F.layer - Q.layer);
6210
- et += D(Q, F) * Z, J += Z;
6200
+ let K = j * (F.layer - Q.layer);
6201
+ et += D(Q, F) * K, J += K;
6211
6202
  }
6212
6203
  if (!(J > 0)) continue;
6213
6204
  let ct = (et / J - F.y0) * V;
6214
6205
  F.y0 += ct, F.y1 += ct, L(F);
6215
6206
  }
6216
- l === void 0 && X.sort(Ms), k(X, N);
6207
+ l === void 0 && X.sort(ks), C(X, N);
6217
6208
  }
6218
6209
  }
6219
6210
  function I(w, V, N) {
@@ -6222,19 +6213,19 @@ function $f() {
6222
6213
  for (const F of X) {
6223
6214
  let et = 0, J = 0;
6224
6215
  for (const { target: Q, value: j } of F.sourceLinks) {
6225
- let Z = j * (Q.layer - F.layer);
6226
- et += A(F, Q) * Z, J += Z;
6216
+ let K = j * (Q.layer - F.layer);
6217
+ et += A(F, Q) * K, J += K;
6227
6218
  }
6228
6219
  if (!(J > 0)) continue;
6229
6220
  let ct = (et / J - F.y0) * V;
6230
6221
  F.y0 += ct, F.y1 += ct, L(F);
6231
6222
  }
6232
- l === void 0 && X.sort(Ms), k(X, N);
6223
+ l === void 0 && X.sort(ks), C(X, N);
6233
6224
  }
6234
6225
  }
6235
- function k(w, V) {
6226
+ function C(w, V) {
6236
6227
  const N = w.length >> 1, P = w[N];
6237
- C(w, P.y0 - a, N - 1, V), G(w, P.y1 + a, N + 1, V), C(w, n, w.length - 1, V), G(w, t, 0, V);
6228
+ k(w, P.y0 - a, N - 1, V), G(w, P.y1 + a, N + 1, V), k(w, n, w.length - 1, V), G(w, t, 0, V);
6238
6229
  }
6239
6230
  function G(w, V, N, P) {
6240
6231
  for (; N < w.length; ++N) {
@@ -6242,7 +6233,7 @@ function $f() {
6242
6233
  X > 1e-6 && ($.y0 += X, $.y1 += X), V = $.y1 + a;
6243
6234
  }
6244
6235
  }
6245
- function C(w, V, N, P) {
6236
+ function k(w, V, N, P) {
6246
6237
  for (; N >= 0; --N) {
6247
6238
  const $ = w[N], X = ($.y1 - V) * P;
6248
6239
  X > 1e-6 && ($.y0 -= X, $.y1 -= X), V = $.y0 - a;
@@ -6287,16 +6278,16 @@ function $f() {
6287
6278
  }
6288
6279
  return f;
6289
6280
  }
6290
- var rr = Math.PI, ar = 2 * rr, _e = 1e-6, Vf = ar - _e;
6291
- function or() {
6281
+ var or = Math.PI, lr = 2 * or, _e = 1e-6, Vf = lr - _e;
6282
+ function cr() {
6292
6283
  this._x0 = this._y0 = // start of current subpath
6293
6284
  this._x1 = this._y1 = null, this._ = "";
6294
6285
  }
6295
6286
  function Ll() {
6296
- return new or();
6287
+ return new cr();
6297
6288
  }
6298
- or.prototype = Ll.prototype = {
6299
- constructor: or,
6289
+ cr.prototype = Ll.prototype = {
6290
+ constructor: cr,
6300
6291
  moveTo: function(s, t) {
6301
6292
  this._ += "M" + (this._x0 = this._x1 = +s) + "," + (this._y0 = this._y1 = +t);
6302
6293
  },
@@ -6321,7 +6312,7 @@ or.prototype = Ll.prototype = {
6321
6312
  else if (d > _e) if (!(Math.abs(h * o - c * l) > _e) || !i)
6322
6313
  this._ += "L" + (this._x1 = s) + "," + (this._y1 = t);
6323
6314
  else {
6324
- var u = e - r, p = n - a, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), E = Math.sqrt(d), y = i * Math.tan((rr - Math.acos((f + d - g) / (2 * m * E))) / 2), v = y / E, S = y / m;
6315
+ var u = e - r, p = n - a, f = o * o + c * c, g = u * u + p * p, m = Math.sqrt(f), E = Math.sqrt(d), y = i * Math.tan((or - Math.acos((f + d - g) / (2 * m * E))) / 2), v = y / E, S = y / m;
6325
6316
  Math.abs(v - 1) > _e && (this._ += "L" + (s + v * l) + "," + (t + v * h)), this._ += "A" + i + "," + i + ",0,0," + +(h * u > l * p) + "," + (this._x1 = s + S * o) + "," + (this._y1 = t + S * c);
6326
6317
  }
6327
6318
  },
@@ -6329,7 +6320,7 @@ or.prototype = Ll.prototype = {
6329
6320
  s = +s, t = +t, e = +e, r = !!r;
6330
6321
  var a = e * Math.cos(n), o = e * Math.sin(n), c = s + a, l = t + o, h = 1 ^ r, d = r ? n - i : i - n;
6331
6322
  if (e < 0) throw new Error("negative radius: " + e);
6332
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % ar + ar), d > Vf ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (s - a) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= rr) + "," + h + "," + (this._x1 = s + e * Math.cos(i)) + "," + (this._y1 = t + e * Math.sin(i))));
6323
+ this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > _e || Math.abs(this._y1 - l) > _e) && (this._ += "L" + c + "," + l), e && (d < 0 && (d = d % lr + lr), d > Vf ? this._ += "A" + e + "," + e + ",0,1," + h + "," + (s - a) + "," + (t - o) + "A" + e + "," + e + ",0,1," + h + "," + (this._x1 = c) + "," + (this._y1 = l) : d > _e && (this._ += "A" + e + "," + e + ",0," + +(d >= or) + "," + h + "," + (this._x1 = s + e * Math.cos(i)) + "," + (this._y1 = t + e * Math.sin(i))));
6333
6324
  },
6334
6325
  rect: function(s, t, e, n) {
6335
6326
  this._ += "M" + (this._x0 = this._x1 = +s) + "," + (this._y0 = this._y1 = +t) + "h" + +e + "v" + +n + "h" + -e + "Z";
@@ -6492,12 +6483,12 @@ class y0 extends ot {
6492
6483
  ), { width: O } = _.getSVGElementSize(R(`text#${b}`), {
6493
6484
  useBBox: !0
6494
6485
  }), I = (v.y1 - v.y0) / 2 - 9;
6495
- let k = v.x1 - v.x0;
6496
- return v.x1 >= O ? k = k - (O + 16) : k += 4, `translate(${k}, ${I})`;
6486
+ let C = v.x1 - v.x0;
6487
+ return v.x1 >= O ? C = C - (O + 16) : C += 4, `translate(${C}, ${I})`;
6497
6488
  }), this.addLineEventListener(), this.addNodeEventListener();
6498
6489
  }
6499
6490
  addLineEventListener() {
6500
- const t = this.getOptions(), e = this, { number: n, code: i } = T(this.getOptions(), "locale"), r = xi((a, o = "mouseover") => {
6491
+ const t = this.getOptions(), e = this, { number: n, code: i } = T(this.getOptions(), "locale"), r = Ti((a, o = "mouseover") => {
6501
6492
  const c = e.parent.selectAll("path.link").transition().call(
6502
6493
  (l) => e.services.transitions.setupTransition({
6503
6494
  transition: l,
@@ -6555,7 +6546,7 @@ class y0 extends ot {
6555
6546
  });
6556
6547
  }
6557
6548
  addNodeEventListener() {
6558
- const t = this, e = xi((n = [], i = "mouseover") => {
6549
+ const t = this, e = Ti((n = [], i = "mouseover") => {
6559
6550
  if (i === "mouseout" || n.length === 0) {
6560
6551
  t.parent.selectAll("path.link").classed("link-hovered", !1).data(this.graph.links, (a) => a.index).order().style("stroke-opacity", ee.opacity.default);
6561
6552
  return;
@@ -6647,7 +6638,7 @@ class E0 extends ot {
6647
6638
  this.drawBackdrop(e, n), !(!e && !n) && (e && (_.appendOrSelect(this.backdrop, "g.x.grid"), this.drawXGrid(t)), n && (_.appendOrSelect(this.backdrop, "g.y.grid"), this.drawYGrid(t)));
6648
6639
  }
6649
6640
  drawXGrid(t) {
6650
- const e = this.parent, n = this.backdrop.attr("height"), i = this.services.cartesianScales.getMainXScale(), r = hr(i).tickSizeInner(-n).tickSizeOuter(0);
6641
+ const e = this.parent, n = this.backdrop.attr("height"), i = this.services.cartesianScales.getMainXScale(), r = pr(i).tickSizeInner(-n).tickSizeOuter(0);
6651
6642
  if (T(this.getOptions(), "grid", "x", "alignWithAxisTicks")) {
6652
6643
  const c = this.services.cartesianScales.getDomainAxisPosition(), l = T(this.getOptions(), "axes", c, "ticks", "values");
6653
6644
  l && r.tickValues(l);
@@ -6763,7 +6754,7 @@ class S0 extends ot {
6763
6754
  render(t = !0) {
6764
6755
  const e = this.getComponentContainer({ ariaLabel: "area graphs", withinChartClip: !0 }), n = this.getOptions();
6765
6756
  let i = [0, 0];
6766
- const { cartesianScales: r } = this.services, a = r.getOrientation(), o = yr().curve(this.services.curves.getD3Curve()).defined((b) => {
6757
+ const { cartesianScales: r } = this.services, a = r.getOrientation(), o = Sr().curve(this.services.curves.getD3Curve()).defined((b) => {
6767
6758
  const O = r.getRangeIdentifier(), I = b[O];
6768
6759
  return I != null;
6769
6760
  }), c = this.model.getGroupedData(this.configs.groups), l = T(n, "bounds"), h = l && c && c.length === 1;
@@ -6795,8 +6786,8 @@ class S0 extends ot {
6795
6786
  else {
6796
6787
  const I = T(this.model.getOptions(), "color", "scale");
6797
6788
  if (I !== null) {
6798
- const k = Object.keys(I);
6799
- O = I[k[0]];
6789
+ const C = Object.keys(I);
6790
+ O = I[C[0]];
6800
6791
  }
6801
6792
  }
6802
6793
  ta.appendOrUpdateLinearGradient({
@@ -7025,7 +7016,7 @@ class Al extends ot {
7025
7016
  this.backdrop = _.appendOrSelect(t, "svg.chart-grid-backdrop");
7026
7017
  }
7027
7018
  }
7028
- class Sr extends ot {
7019
+ class br extends ot {
7029
7020
  constructor() {
7030
7021
  super(...arguments), this.type = "scatter", this.renderType = st.SVG, this.handleChartHolderOnHover = () => {
7031
7022
  if (!this.parent) throw new Error("Parent not defined");
@@ -7292,7 +7283,7 @@ class Ml extends ot {
7292
7283
  u = Bo;
7293
7284
  break;
7294
7285
  case Y.BOTTOM:
7295
- u = hr;
7286
+ u = pr;
7296
7287
  break;
7297
7288
  case Y.RIGHT:
7298
7289
  u = vu;
@@ -7310,7 +7301,7 @@ class Ml extends ot {
7310
7301
  f.attr("aria-hidden", !0);
7311
7302
  return;
7312
7303
  }
7313
- const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"), k = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), C = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
7304
+ const S = T(m, "scaleType"), b = T(n, "data", "loading"), O = T(m, "ticks", "number"), I = T(m, "ticks", "values"), C = T(m, "truncation", "type"), G = T(m, "truncation", "threshold"), k = T(m, "truncation", "numCharacter"), L = O !== null, B = T(n, "timeScale"), D = _.appendOrSelect(g, "g.tick"), A = _.appendOrSelect(D, "text").text("0"), w = _.getSVGElementSize(A.node(), {
7314
7305
  useBBox: !0
7315
7306
  }).height;
7316
7307
  D.remove();
@@ -7325,29 +7316,29 @@ class Ml extends ot {
7325
7316
  if (!d.ticks(j).length)
7326
7317
  N.tickValues([]);
7327
7318
  else {
7328
- const Z = T(n, "timeScale", "addSpaceOnEdges"), ut = T(n, "axes", e, "domain"), ht = d.copy();
7329
- Z && !ut && ht.nice(j);
7330
- const Et = ht.ticks(j);
7331
- Z && Et.length > 2 && !ut && (Et.splice(Et.length - 1, 1), Et.splice(0, 1)), N.tickValues(Et);
7319
+ const K = T(n, "timeScale", "addSpaceOnEdges"), ut = T(n, "axes", e, "domain"), ht = d.copy();
7320
+ K && !ut && ht.nice(j);
7321
+ const yt = ht.ticks(j);
7322
+ K && yt.length > 2 && !ut && (yt.splice(yt.length - 1, 1), yt.splice(0, 1)), N.tickValues(yt);
7332
7323
  }
7333
7324
  }
7334
7325
  let P;
7335
7326
  const $ = T(m, "ticks", "formatter"), { code: X, number: F } = T(n, "locale");
7336
7327
  if (E) {
7337
- const j = yi(
7328
+ const j = Si(
7338
7329
  N.tickValues(),
7339
7330
  T(n, "timeScale", "timeInterval")
7340
7331
  );
7341
- $ === null ? P = (Z, ut) => Ei(Z, ut, N.tickValues(), j, B, n.locale) : P = (Z, ut) => {
7342
- const ht = Ei(
7343
- Z,
7332
+ $ === null ? P = (K, ut) => xi(K, ut, N.tickValues(), j, B, n.locale) : P = (K, ut) => {
7333
+ const ht = xi(
7334
+ K,
7344
7335
  ut,
7345
7336
  N.tickValues(),
7346
7337
  j,
7347
7338
  B,
7348
7339
  n.locale
7349
7340
  );
7350
- return $(Z, ut, ht);
7341
+ return $(K, ut, ht);
7351
7342
  };
7352
7343
  } else
7353
7344
  $ === null ? V === Mt.LINEAR && (P = (j) => F(j, X)) : P = $;
@@ -7356,15 +7347,15 @@ class Ml extends ot {
7356
7347
  let ct;
7357
7348
  if (I) {
7358
7349
  if (E)
7359
- I.forEach((j, Z) => {
7360
- j.getTime === void 0 && (I[Z] = new Date(j));
7350
+ I.forEach((j, K) => {
7351
+ j.getTime === void 0 && (I[K] = new Date(j));
7361
7352
  }), ct = I.filter((j) => {
7362
- const Z = j.getTime();
7363
- return Z >= new Date(et).getTime() && Z <= new Date(J).getTime();
7353
+ const K = j.getTime();
7354
+ return K >= new Date(et).getTime() && K <= new Date(J).getTime();
7364
7355
  });
7365
7356
  else if (S === Mt.LABELS) {
7366
7357
  const j = this.services.cartesianScales.getScaleByPosition(e).domain();
7367
- ct = I.filter((Z) => j.includes(Z));
7358
+ ct = I.filter((K) => j.includes(K));
7368
7359
  } else
7369
7360
  ct = I.filter(
7370
7361
  (j) => j >= et && j <= J
@@ -7389,11 +7380,11 @@ class Ml extends ot {
7389
7380
  if (m.title) {
7390
7381
  const j = _.appendOrSelect(c, "text.axis-title").html(
7391
7382
  Q || b ? "" : ue(m.title)
7392
- ), Z = T(m, "titleOrientation");
7383
+ ), K = T(m, "titleOrientation");
7393
7384
  let ut;
7394
7385
  switch (e) {
7395
7386
  case Y.LEFT:
7396
- Z === Yr.RIGHT ? j.attr("transform", "rotate(90)").attr("y", 0).attr("x", d.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : j.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(d.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
7387
+ K === Yr.RIGHT ? j.attr("transform", "rotate(90)").attr("y", 0).attr("x", d.range()[0] / 2).attr("dy", "-0.5em").style("text-anchor", "middle") : j.attr("transform", "rotate(-90)").attr("y", 0).attr("x", -(d.range()[0] / 2)).attr("dy", "0.75em").style("text-anchor", "middle");
7397
7388
  break;
7398
7389
  case Y.BOTTOM:
7399
7390
  j.attr(
@@ -7402,7 +7393,7 @@ class Ml extends ot {
7402
7393
  ).style("text-anchor", "middle");
7403
7394
  break;
7404
7395
  case Y.RIGHT:
7405
- Z === Yr.LEFT ? j.attr("transform", "rotate(-90)").attr("y", a).attr("x", -(d.range()[0] / 2)).style("text-anchor", "middle") : j.attr("transform", "rotate(90)").attr("y", -a).attr("x", d.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
7396
+ K === Yr.LEFT ? j.attr("transform", "rotate(-90)").attr("y", a).attr("x", -(d.range()[0] / 2)).style("text-anchor", "middle") : j.attr("transform", "rotate(90)").attr("y", -a).attr("x", d.range()[0] / 2).attr("dy", "0.75em").style("text-anchor", "middle");
7406
7397
  break;
7407
7398
  case Y.TOP:
7408
7399
  ut = _.getSVGElementSize(j, {
@@ -7415,17 +7406,20 @@ class Ml extends ot {
7415
7406
  }
7416
7407
  }
7417
7408
  if (E) {
7418
- const j = yi(
7409
+ const j = Si(
7419
7410
  N.tickValues(),
7420
7411
  T(n, "timeScale", "timeInterval")
7421
- ), Z = B.showDayName, ut = f;
7412
+ ), K = B.showDayName, ut = f;
7422
7413
  t && (f = f.transition().call(
7423
- (Et) => this.services.transitions.setupTransition({
7424
- transition: Et,
7414
+ (yt) => this.services.transitions.setupTransition({
7415
+ transition: yt,
7425
7416
  name: "axis-update",
7426
7417
  animate: t
7427
7418
  })
7428
- )), f = f.call(N), ut.selectAll(".tick").data(N.tickValues(), d).order().select("text").style("font-weight", (Et, Ut) => Yl(Et, Ut, N.tickValues(), j, Z) ? "bold" : "normal");
7419
+ )), f = f.call(N), ut.selectAll(".tick").data(N.tickValues(), d).order().select("text").attr(
7420
+ "class",
7421
+ (yt, Ut) => Yl(yt, Ut, N.tickValues(), j, K) ? "tick-label--primary" : "tick-label"
7422
+ );
7429
7423
  } else
7430
7424
  !t || !p ? f = f.call(N) : f = f.transition().call(
7431
7425
  (j) => this.services.transitions.setupTransition({
@@ -7436,12 +7430,12 @@ class Ml extends ot {
7436
7430
  ).call(N);
7437
7431
  if (g.call(N), e === Y.BOTTOM || e === Y.TOP) {
7438
7432
  let j = !1;
7439
- const Z = T(m, "ticks", "rotation");
7440
- if (Z === zs.ALWAYS)
7433
+ const K = T(m, "ticks", "rotation");
7434
+ if (K === Ws.ALWAYS)
7441
7435
  j = !0;
7442
- else if (Z === zs.NEVER)
7436
+ else if (K === Ws.NEVER)
7443
7437
  j = !1;
7444
- else if (!Z || Z === zs.AUTO)
7438
+ else if (!K || K === Ws.AUTO)
7445
7439
  if (d.step)
7446
7440
  j = g.selectAll("g.tick text").nodes().some(
7447
7441
  (ht) => _.getSVGElementSize(ht, {
@@ -7453,26 +7447,26 @@ class Ml extends ot {
7453
7447
  const ut = g.append("text").text("A"), ht = _.getSVGElementSize(ut.node(), {
7454
7448
  useBBox: !0
7455
7449
  }).width;
7456
- let Et;
7450
+ let yt;
7457
7451
  g.selectAll("g.tick").each(function() {
7458
7452
  const Ut = R(this), H = parseFloat(T(fe(this), "tx"));
7459
- H !== null && Et + Ut.text().length * ht * 0.8 >= H && (j = !0), Et = H;
7453
+ H !== null && yt + Ut.text().length * ht * 0.8 >= H && (j = !0), yt = H;
7460
7454
  }), ut.remove();
7461
7455
  }
7462
7456
  j ? (L || (N.ticks(
7463
7457
  this.getNumberOfFittingTicks(a, w, qe.ticks.horizontalSpaceRatio)
7464
7458
  ), g.call(N), f.call(N)), c.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", e === Y.TOP ? "start" : "end")) : c.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
7465
7459
  }
7466
- if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), k !== Ze.NONE && S === Mt.LABELS && !I) {
7460
+ if (b ? c.attr("opacity", 0) : c.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (j) => j), g.selectAll("g.tick").attr("aria-label", (j) => j), C !== Ze.NONE && S === Mt.LABELS && !I) {
7467
7461
  const j = this.services.cartesianScales.getScaleDomain(e);
7468
7462
  if (j.length > 0) {
7469
- const Z = r.select(`g.axis.${e} g.ticks g.tick`).html();
7470
- c.selectAll("g.ticks g.tick").html(Z);
7463
+ const K = r.select(`g.axis.${e} g.ticks g.tick`).html();
7464
+ c.selectAll("g.ticks g.tick").html(K);
7471
7465
  const ut = this;
7472
7466
  c.selectAll("g.tick text").data(j).text(function(ht) {
7473
- return ht.length > G ? (ut.truncation[e] = !0, Cn(ht, k, C)) : ht;
7467
+ return ht.length > G ? (ut.truncation[e] = !0, kn(ht, C, k)) : ht;
7474
7468
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(j).text(function(ht) {
7475
- return ht.length > G ? Cn(ht, k, C) : ht;
7469
+ return ht.length > G ? kn(ht, C, k) : ht;
7476
7470
  }), c.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), c.selectAll("g.tick text").data(j);
7477
7471
  }
7478
7472
  }
@@ -7701,13 +7695,13 @@ class Jf extends ot {
7701
7695
  e ? this.renderSkeleton(e) : this.removeSkeleton();
7702
7696
  }
7703
7697
  renderSkeleton(t) {
7704
- if (this.configs.skeleton === Hn.GRID)
7698
+ if (this.configs.skeleton === zn.GRID)
7705
7699
  this.renderGridSkeleton(t);
7706
- else if (this.configs.skeleton === Hn.VERT_OR_HORIZ)
7700
+ else if (this.configs.skeleton === zn.VERT_OR_HORIZ)
7707
7701
  this.renderVertOrHorizSkeleton(t);
7708
- else if (this.configs.skeleton === Hn.PIE)
7702
+ else if (this.configs.skeleton === zn.PIE)
7709
7703
  this.renderPieSkeleton(t);
7710
- else if (this.configs.skeleton === Hn.DONUT)
7704
+ else if (this.configs.skeleton === zn.DONUT)
7711
7705
  this.renderDonutSkeleton(t);
7712
7706
  else
7713
7707
  throw new Error(`"${this.configs.skeleton}" is not a valid Skeleton type.`);
@@ -7729,7 +7723,7 @@ class Jf extends ot {
7729
7723
  }
7730
7724
  setScales() {
7731
7725
  const t = this.services.cartesianScales.getMainXScale().range(), e = this.services.cartesianScales.getMainYScale().range();
7732
- this.xScale = ke().domain([0, 1]).range(t), this.yScale = ke().domain([0, 1]).range(e);
7726
+ this.xScale = Ce().domain([0, 1]).range(t), this.yScale = Ce().domain([0, 1]).range(e);
7733
7727
  }
7734
7728
  drawBackdrop(t) {
7735
7729
  const e = this.parent, { width: n, height: i } = _.getSVGElementSize(e, {
@@ -7763,13 +7757,13 @@ class Jf extends ot {
7763
7757
  useAttrs: !0
7764
7758
  }), o = _.appendOrSelect(i, "svg.chart-skeleton").attr("width", r).attr("height", a), c = e === 0 ? "pie" : "donut", l = T(this.getOptions(), c, "alignment");
7765
7759
  _.appendOrSelect(o, "rect.chart-skeleton-area-container").attr("width", r).attr("height", a).attr("fill", "none");
7766
- const h = Dn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(vt.radiusOffset), u = t + (Math.min(r, a) - t * 2) / 2, p = _.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
7760
+ const h = Dn().innerRadius(e).outerRadius(t).startAngle(0).endAngle(Math.PI * 2), d = t + Math.abs(mt.radiusOffset), u = t + (Math.min(r, a) - t * 2) / 2, p = _.appendOrSelect(o, "path").attr("class", "skeleton-area-shape").attr("transform", `translate(${d}, ${u})`).attr("d", h).classed("shimmer-effect-areas", n).classed("empty-state-areas", !n).style(
7767
7761
  "fill",
7768
7762
  n ? `url(#${this.services.domUtils.generateElementIDString("shimmer-areas")})` : null
7769
7763
  );
7770
- let f = t + vt.xOffset;
7771
- l === Jt.CENTER ? f = r / 2 : l === Jt.RIGHT && (f = r - t - vt.xOffset);
7772
- const g = t + vt.yOffset;
7764
+ let f = t + mt.xOffset;
7765
+ l === Jt.CENTER ? f = r / 2 : l === Jt.RIGHT && (f = r - t - mt.xOffset);
7766
+ const g = t + mt.yOffset;
7773
7767
  p.attr("transform", `translate(${f}, ${g})`);
7774
7768
  }
7775
7769
  // same logic in pie
@@ -7777,7 +7771,7 @@ class Jf extends ot {
7777
7771
  const { width: t, height: e } = _.getSVGElementSize(this.parent, {
7778
7772
  useAttrs: !0
7779
7773
  });
7780
- return Math.min(t, e) / 2 + vt.radiusOffset;
7774
+ return Math.min(t, e) / 2 + mt.radiusOffset;
7781
7775
  }
7782
7776
  // same logic in donut
7783
7777
  computeInnerRadius() {
@@ -7814,7 +7808,7 @@ class T0 extends ot {
7814
7808
  g
7815
7809
  ), v = Math.floor((m ? u : p) / r.length), S = Math.min(v / 2, 16), b = this.model.getBoxplotData(), O = e.selectAll(".box-group").data(b);
7816
7810
  O.exit().remove();
7817
- const I = O.enter().append("g").attr("class", "box-group"), k = O.merge(I);
7811
+ const I = O.enter().append("g").attr("class", "box-group"), C = O.merge(I);
7818
7812
  I.append("path").merge(O.select("path.vertical-line.start")).attr(
7819
7813
  "class",
7820
7814
  () => this.model.getColorClassName({
@@ -7913,7 +7907,7 @@ class T0 extends ot {
7913
7907
  const B = f.getDomainValue(L[i]) - S / 4, D = B + S / 2, A = f.getRangeValue(L.whiskers.max), w = f.getRangeValue(L.whiskers.max);
7914
7908
  return $t({ x0: B, x1: D, y0: A, y1: w }, g);
7915
7909
  });
7916
- const G = k.selectAll("circle.outlier").data(
7910
+ const G = C.selectAll("circle.outlier").data(
7917
7911
  (L) => L.outliers.map((B) => ({
7918
7912
  min: L.whiskers.min,
7919
7913
  max: L.whiskers.max,
@@ -7922,8 +7916,8 @@ class T0 extends ot {
7922
7916
  }))
7923
7917
  );
7924
7918
  G.exit().remove();
7925
- const C = G.enter().append("circle");
7926
- G.merge(C).attr("r", jt.circle.radius).attr(
7919
+ const k = G.enter().append("circle");
7920
+ G.merge(k).attr("r", jt.circle.radius).attr(
7927
7921
  "class",
7928
7922
  () => this.model.getColorClassName({
7929
7923
  classNameTypes: [tt.FILL, tt.STROKE],
@@ -8095,13 +8089,13 @@ class O0 extends ot {
8095
8089
  ).attr("y1", d.y0).attr("y2", d.y1).attr("x1", d.x0).attr("x2", d.x1);
8096
8090
  }
8097
8091
  }
8098
- class w0 extends Sr {
8092
+ class w0 extends br {
8099
8093
  constructor() {
8100
8094
  super(...arguments), this.type = "bubble", this.renderType = st.SVG;
8101
8095
  }
8102
8096
  getRadiusScale(t) {
8103
- const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, i = t.data(), r = i.map((l) => l[n]).filter((l) => l), a = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = r.length > 0, c = o ? ks(r) : [1, 1];
8104
- return ke().domain(c).range(o ? e.bubble.radiusRange(a, i) : [4, 4]);
8097
+ const e = this.getOptions(), { radiusMapsTo: n } = e.bubble, i = t.data(), r = i.map((l) => l[n]).filter((l) => l), a = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), o = r.length > 0, c = o ? Is(r) : [1, 1];
8098
+ return Ce().domain(c).range(o ? e.bubble.radiusRange(a, i) : [4, 4]);
8105
8099
  }
8106
8100
  styleCircles(t, e) {
8107
8101
  const n = this.getOptions(), { radiusMapsTo: i } = n.bubble, r = this.getRadiusScale(t), { groupMapsTo: a } = n.data, { cartesianScales: o } = this.services, c = (u) => o.getDomainValue(u), l = (u) => o.getRangeValue(u), [h, d] = ye(
@@ -8360,10 +8354,10 @@ function ng(s, t) {
8360
8354
  }) } : oo(s, t);
8361
8355
  }
8362
8356
  function oo(s, t) {
8363
- var e = t.id, n = t.bbox, i = t.properties == null ? {} : t.properties, r = xr(s, t);
8357
+ var e = t.id, n = t.bbox, i = t.properties == null ? {} : t.properties, r = Tr(s, t);
8364
8358
  return e == null && n == null ? { type: "Feature", properties: i, geometry: r } : n == null ? { type: "Feature", id: e, properties: i, geometry: r } : { type: "Feature", id: e, bbox: n, properties: i, geometry: r };
8365
8359
  }
8366
- function xr(s, t) {
8360
+ function Tr(s, t) {
8367
8361
  var e = tg(s.transform), n = s.arcs;
8368
8362
  function i(h, d) {
8369
8363
  d.length && d.pop();
@@ -8462,7 +8456,7 @@ function ig(s) {
8462
8456
  return Math.abs(r);
8463
8457
  }
8464
8458
  function rg(s) {
8465
- return xr(s, ag.apply(this, arguments));
8459
+ return Tr(s, ag.apply(this, arguments));
8466
8460
  }
8467
8461
  function ag(s, t) {
8468
8462
  var e = {}, n = [], i = [];
@@ -8488,7 +8482,7 @@ function ag(s, t) {
8488
8482
  }), n.push(c);
8489
8483
  }
8490
8484
  function o(c) {
8491
- return ig(xr(s, { type: "Polygon", arcs: [c] }).coordinates[0]);
8485
+ return ig(Tr(s, { type: "Polygon", arcs: [c] }).coordinates[0]);
8492
8486
  }
8493
8487
  return n.forEach(function(c) {
8494
8488
  if (!c._) {
@@ -8531,14 +8525,14 @@ class A0 extends Al {
8531
8525
  const i = this.parent, r = this.model.getOptions(), { cartesianScales: a } = this.services, o = a.getOrientation(), c = a.getRangeScale(), [l, h] = c.range(), d = a.getDomainScale(), u = d.invert(
8532
8526
  o === Ft.VERTICAL ? e : n
8533
8527
  ), p = _.appendOrSelect(i, "g.ruler").attr("aria-label", "ruler"), f = _.appendOrSelect(p, "line.ruler-line"), m = i.selectAll("[role=graphics-symbol]").filter((E) => {
8534
- if (parseFloat(yt(E, "data.x0")) <= u && parseFloat(yt(E, "data.x1")) >= u)
8528
+ if (parseFloat(vt(E, "data.x0")) <= u && parseFloat(vt(E, "data.x1")) >= u)
8535
8529
  return !0;
8536
8530
  });
8537
8531
  if (m.size() > 0) {
8538
8532
  this.elementsToHighlight && this.elementsToHighlight.size() > 0 && !$o(this.elementsToHighlight, m) && this.hideRuler(), m.dispatch("mouseover"), this.elementsToHighlight = m;
8539
- const E = R(m.nodes()[0]).datum(), y = parseFloat(yt(E, "data.x0")), v = parseFloat(yt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((I) => ({
8533
+ const E = R(m.nodes()[0]).datum(), y = parseFloat(vt(E, "data.x0")), v = parseFloat(vt(E, "data.x1")), S = this.model.getActiveDataGroupNames(), b = S.reverse().map((I) => ({
8540
8534
  label: I,
8541
- value: yt(E, `data.${I}`),
8535
+ value: vt(E, `data.${I}`),
8542
8536
  class: this.model.getColorClassName({
8543
8537
  classNameTypes: [tt.TOOLTIP],
8544
8538
  dataGroupName: I
@@ -8551,15 +8545,15 @@ class A0 extends Al {
8551
8545
  hoveredElement: f,
8552
8546
  items: [
8553
8547
  {
8554
- label: yt(r, "bins.rangeLabel") || "Range",
8548
+ label: vt(r, "bins.rangeLabel") || "Range",
8555
8549
  value: `${y} – ${v}`
8556
8550
  },
8557
8551
  ...b,
8558
8552
  ...T(r, "tooltip", "showTotal") === !0 ? [
8559
8553
  {
8560
- label: yt(r, "locale.translations.total") || yt(r, "tooltip.totalLabel") || "Total",
8554
+ label: vt(r, "locale.translations.total") || vt(r, "tooltip.totalLabel") || "Total",
8561
8555
  value: S.reduce(
8562
- (k, G) => k + parseFloat(yt(E, `data.${G}`)),
8556
+ (C, G) => C + parseFloat(vt(E, `data.${G}`)),
8563
8557
  0
8564
8558
  )
8565
8559
  }
@@ -8580,13 +8574,13 @@ class M0 extends Al {
8580
8574
  }
8581
8575
  }
8582
8576
  const _0 = (s, t) => {
8583
- const e = s.x, n = s.y, i = t.x, r = t.y, a = Is();
8577
+ const e = s.x, n = s.y, i = t.x, r = t.y, a = Ps();
8584
8578
  return a.moveTo(e, n), a.lineTo(i, r), a.toString();
8585
- }, C0 = (s, t, e = 0.5) => {
8586
- const n = s.x, i = s.y, r = t.x, a = t.y, o = Is();
8579
+ }, k0 = (s, t, e = 0.5) => {
8580
+ const n = s.x, i = s.y, r = t.x, a = t.y, o = Ps();
8587
8581
  return o.moveTo(n, i), o.lineTo(n + (r - n) * e, i), o.lineTo(n + (r - n) * e, a), o.lineTo(r, a), o.toString();
8588
- }, k0 = (s, t, e, n, i, r) => {
8589
- const a = s.x, o = s.y, c = t.x, l = t.y, h = Is();
8582
+ }, C0 = (s, t, e, n, i, r) => {
8583
+ const a = s.x, o = s.y, c = t.x, l = t.y, h = Ps();
8590
8584
  return h.moveTo(a, o), h.bezierCurveTo(e, n, i, r, c, l), h.toString();
8591
8585
  }, R0 = {
8592
8586
  d: "M7 0v8L0 4z",
@@ -8658,8 +8652,8 @@ class V0 extends Mf {
8658
8652
  }
8659
8653
  const h = !Eo(r), d = Zl(this.model.getDisplayData()), u = !(i <= wt.color.barWidth), p = u ? wt.color.barWidth : i, f = _.appendOrSelect(n, "g.legend"), g = _.appendOrSelect(f, "g.legend-axis");
8660
8654
  if (c) {
8661
- const C = _.appendOrSelect(n, "g.legend-title");
8662
- _.appendOrSelect(C, "text").text(c).attr("dy", "0.7em"), f.attr("transform", "translate(0, 16)");
8655
+ const k = _.appendOrSelect(n, "g.legend-title");
8656
+ _.appendOrSelect(k, "text").text(c).attr("dy", "0.7em"), f.attr("transform", "translate(0, 16)");
8663
8657
  }
8664
8658
  const m = d[0] < 0 && d[1] > 0 ? "diverge" : "mono";
8665
8659
  (o < 1 && o > 4 && m === "mono" || o < 1 && o > 2 && m === "diverge") && (o = 1);
@@ -8668,18 +8662,18 @@ class V0 extends Mf {
8668
8662
  if (h)
8669
8663
  E = r;
8670
8664
  else
8671
- for (let C = 1; C < y + 1; C++)
8665
+ for (let k = 1; k < y + 1; k++)
8672
8666
  E.push(
8673
- a === Fs.LINEAR ? `stop-color-${m}-${o}-${C}` : `fill-${m}-${o}-${C}`
8667
+ a === Xs.LINEAR ? `stop-color-${m}-${o}-${k}` : `fill-${m}-${o}-${k}`
8674
8668
  );
8675
- const v = So(d[0], d[1]), S = Su(v, 3), b = ke().domain(d).range([0, p]), O = hr(b).tickSize(0).tickValues(S), { code: I, number: k } = T(e, "locale");
8676
- O.tickFormat((C) => k(C, I));
8669
+ const v = So(d[0], d[1]), S = Su(v, 3), b = Ce().domain(d).range([0, p]), O = pr(b).tickSize(0).tickValues(S), { code: I, number: C } = T(e, "locale");
8670
+ O.tickFormat((k) => C(k, I));
8677
8671
  let G;
8678
8672
  switch (a) {
8679
- case Fs.LINEAR:
8673
+ case Xs.LINEAR:
8680
8674
  this.drawLinear(E, f, p);
8681
8675
  break;
8682
- case Fs.QUANTIZE:
8676
+ case Xs.QUANTIZE:
8683
8677
  G = this.drawQuantize(
8684
8678
  E,
8685
8679
  m,
@@ -8707,7 +8701,7 @@ class V0 extends Mf {
8707
8701
  */
8708
8702
  drawQuantize(t, e, n, i, r) {
8709
8703
  !n && e === "diverge" && t.splice(t.length / 2, 1);
8710
- const a = cr().domain(t).range([0, r]);
8704
+ const a = hr().domain(t).range([0, r]);
8711
8705
  return _.appendOrSelect(i, "g.quantized-rect").selectAll("rect").data(a.domain()).join("rect").attr("x", (c) => a(c)).attr("y", 0).attr("width", Math.max(0, a.bandwidth() - 1)).attr("height", wt.color.barHeight).attr("class", (c) => c).attr("fill", (c) => c), (!n && e) === "mono" ? a.bandwidth() - 1 : 0;
8712
8706
  }
8713
8707
  destroy() {
@@ -8810,16 +8804,16 @@ class B0 extends Af {
8810
8804
  */
8811
8805
  getStatusIconPathString(t) {
8812
8806
  switch (t) {
8813
- case Ws.SUCCESS:
8807
+ case js.SUCCESS:
8814
8808
  return "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";
8815
- case Ws.DANGER:
8809
+ case js.DANGER:
8816
8810
  return "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";
8817
- case Ws.WARNING:
8811
+ case js.WARNING:
8818
8812
  return "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z";
8819
8813
  }
8820
8814
  }
8821
8815
  }
8822
- class br extends ot {
8816
+ class Or extends ot {
8823
8817
  // Gets the correct width for bars based on options & configurations
8824
8818
  getBarWidth() {
8825
8819
  const t = this.getOptions();
@@ -8894,7 +8888,7 @@ class G0 extends ot {
8894
8888
  transition: g,
8895
8889
  name: "circlepack-leaf-update-enter"
8896
8890
  })
8897
- ).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", un.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f, Gn), this.setBackgroundListeners()), a || this.addLegendListeners(), this.addEventListeners();
8891
+ ).attr("r", (g) => g.r).attr("opacity", 1).attr("fill-opacity", un.circles.fillOpacity), l === !0 && this.focal && (this.services.canvasZoom.zoomIn(this.focal, f, Un), this.setBackgroundListeners()), a || this.addLegendListeners(), this.addEventListeners();
8898
8892
  }
8899
8893
  // turn off the highlight class on children circles
8900
8894
  unhighlightChildren(t) {
@@ -8919,7 +8913,7 @@ class G0 extends ot {
8919
8913
  setBackgroundListeners() {
8920
8914
  const t = R(this.services.domUtils.getMainContainer()), e = this, n = this.parent.selectAll("circle.node");
8921
8915
  t.on("click", () => {
8922
- e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Gn);
8916
+ e.focal = null, e.model.updateHierarchyLevel(2), t.classed("zoomed-in", !1), e.services.canvasZoom.zoomOut(n, Un);
8923
8917
  });
8924
8918
  }
8925
8919
  // Zoom icon to be appended to the label in the tooltip
@@ -8955,7 +8949,7 @@ class G0 extends ot {
8955
8949
  const p = t.model.getOptions();
8956
8950
  h = [
8957
8951
  {
8958
- label: yt(p, "locale.translations.total") || yt(p, "tooltip.totalLabel") || "Total",
8952
+ label: vt(p, "locale.translations.total") || vt(p, "tooltip.totalLabel") || "Total",
8959
8953
  value: n.value,
8960
8954
  bold: !0
8961
8955
  }
@@ -9005,10 +8999,10 @@ class G0 extends ot {
9005
8999
  const i = R(this), r = i.classed("non-focal"), a = T(t.model.getOptions(), "canvasZoom", "enabled");
9006
9000
  if (a && t.model.getHierarchyLevel() > 2) {
9007
9001
  const o = t.parent.selectAll("circle.node");
9008
- R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Gn);
9002
+ R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !1), t.focal = null, t.model.updateHierarchyLevel(2), t.services.canvasZoom.zoomOut(o, Un);
9009
9003
  } else if (n.depth === 2 && n.children && !r && a) {
9010
9004
  const o = t.parent.selectAll("circle.node");
9011
- R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Gn), e.stopPropagation();
9005
+ R(t.services.domUtils.getMainContainer()).classed("zoomed-in", !0), t.focal = n, t.model.updateHierarchyLevel(3), t.services.canvasZoom.zoomIn(n, o, Un), e.stopPropagation();
9012
9006
  }
9013
9007
  t.services.events.dispatchEvent(x.CirclePack.CIRCLE_CLICK, {
9014
9008
  event: e,
@@ -9054,7 +9048,7 @@ class lg extends ot {
9054
9048
  t.addEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.addEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9055
9049
  }
9056
9050
  getInnerRadius() {
9057
- return vt.innerRadius;
9051
+ return mt.innerRadius;
9058
9052
  }
9059
9053
  render(t = !0) {
9060
9054
  const e = this, n = this.getComponentContainer({
@@ -9062,8 +9056,8 @@ class lg extends ot {
9062
9056
  }), i = this.getOptions(), { groupMapsTo: r } = i.data, { valueMapsTo: a } = i.pie;
9063
9057
  this.isRendering = !0;
9064
9058
  const o = this.model.getDisplayData().filter((A) => A[a] > 0), c = this.computeRadius();
9065
- this.arc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c + vt.hoverArc.outerRadiusOffset);
9066
- const h = Dd().value((A) => A[a]).sort(T(i, "pie", "sortFunction")).padAngle(vt.padAngle)(o), u = _.appendOrSelect(n, "g.slices").attr("role", it.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (A) => A.data[r]);
9059
+ this.arc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c), this.hoverArc = Dn().innerRadius(this.getInnerRadius()).outerRadius(c + mt.hoverArc.outerRadiusOffset);
9060
+ const h = Dd().value((A) => A[a]).sort(T(i, "pie", "sortFunction")).padAngle(mt.padAngle)(o), u = _.appendOrSelect(n, "g.slices").attr("role", it.GROUP).attr("data-name", "slices").selectAll("path.slice").data(h, (A) => A.data[r]);
9067
9061
  u.exit().attr("opacity", 0).remove(), u.enter().append("path").classed("slice", !0).attr("opacity", 0).merge(u).attr(
9068
9062
  "class",
9069
9063
  (A) => this.model.getColorClassName({
@@ -9079,7 +9073,7 @@ class lg extends ot {
9079
9073
  })
9080
9074
  ).attr("opacity", 1).attr("role", it.GRAPHICS_SYMBOL).attr("aria-roledescription", "slice").attr(
9081
9075
  "aria-label",
9082
- (A) => `${A[a]}, ${Us(A.data[a], o, a) + "%"}`
9076
+ (A) => `${A[a]}, ${Fs(A.data[a], o, a) + "%"}`
9083
9077
  ).attrTween("d", function(A) {
9084
9078
  return og.bind(this)(A, e.arc);
9085
9079
  }).on("end", () => {
@@ -9090,33 +9084,33 @@ class lg extends ot {
9090
9084
  const b = S.enter().append("text").classed("pie-label", !0), O = [];
9091
9085
  b.merge(S).style("text-anchor", "middle").text((A) => i.pie.labels.formatter ? i.pie.labels.formatter({
9092
9086
  ...A,
9093
- percentageValue: Us(
9087
+ percentageValue: Fs(
9094
9088
  A.data[a],
9095
9089
  o,
9096
9090
  a,
9097
9091
  !0
9098
9092
  )
9099
9093
  }) : m(
9100
- Us(A.data[a], o, a),
9094
+ Fs(A.data[a], o, a),
9101
9095
  g
9102
9096
  ) + "%").datum(function(A) {
9103
9097
  const w = c + 7, V = (A.endAngle - A.startAngle) / 2 + A.startAngle, N = V / Math.PI * 180, P = this.getComputedTextLength();
9104
9098
  return A.textOffsetX = P / 2, A.textOffsetY = N > 90 && N < 270 ? 10 : 0, A.xPosition = (A.textOffsetX + w) * Math.sin(V), A.yPosition = (A.textOffsetY + w) * -Math.cos(V), A;
9105
9099
  }).attr("transform", function(A, w) {
9106
9100
  const V = y.length, N = (A.endAngle - A.startAngle) * (180 / Math.PI);
9107
- if (w >= V - 2 && N < vt.callout.minSliceDegree) {
9101
+ if (w >= V - 2 && N < mt.callout.minSliceDegree) {
9108
9102
  let P, $;
9109
- return A.index === V - 1 ? (P = A.xPosition + vt.callout.offsetX + vt.callout.textMargin + A.textOffsetX, $ = A.yPosition - vt.callout.offsetY, A.direction = Xs.RIGHT, O.push(A)) : (P = A.xPosition - vt.callout.offsetX - A.textOffsetX - vt.callout.textMargin, $ = A.yPosition - vt.callout.offsetY, A.direction = Xs.LEFT, O.push(A)), `translate(${P}, ${$})`;
9103
+ return A.index === V - 1 ? (P = A.xPosition + mt.callout.offsetX + mt.callout.textMargin + A.textOffsetX, $ = A.yPosition - mt.callout.offsetY, A.direction = Ys.RIGHT, O.push(A)) : (P = A.xPosition - mt.callout.offsetX - A.textOffsetX - mt.callout.textMargin, $ = A.yPosition - mt.callout.offsetY, A.direction = Ys.LEFT, O.push(A)), `translate(${P}, ${$})`;
9110
9104
  }
9111
9105
  return `translate(${A.xPosition}, ${A.yPosition})`;
9112
9106
  }), this.renderCallouts(O);
9113
- const I = T(i, "donut") ? "donut" : "pie", k = T(i, I, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
9107
+ const I = T(i, "donut") ? "donut" : "pie", C = T(i, I, "alignment"), { width: G } = _.getSVGElementSize(this.getParent(), {
9114
9108
  useAttrs: !0
9115
- }), C = E ? vt.xOffset : 0, L = E ? vt.yOffset : 0;
9116
- let B = c + C;
9117
- k === Jt.CENTER ? B = G / 2 : k === Jt.RIGHT && (B = G - c - vt.xOffset);
9109
+ }), k = E ? mt.xOffset : 0, L = E ? mt.yOffset : 0;
9110
+ let B = c + k;
9111
+ C === Jt.CENTER ? B = G / 2 : C === Jt.RIGHT && (B = G - c - mt.xOffset);
9118
9112
  let D = c + L;
9119
- O.length > 0 && (D += vt.yOffsetCallout), n.attr("x", B + 7).attr("y", D), this.addEventListeners();
9113
+ O.length > 0 && (D += mt.yOffsetCallout), n.attr("x", B + 7).attr("y", D), this.addEventListeners();
9120
9114
  }
9121
9115
  renderCallouts(t) {
9122
9116
  const e = _.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", it.GROUP).attr("data-name", "callouts"), n = e.selectAll("g.callout").data(t);
@@ -9124,19 +9118,19 @@ class lg extends ot {
9124
9118
  const i = n.enter().append("g").classed("callout", !0).attr("role", it.GROUP).attr("aria-roledescription", "label callout");
9125
9119
  i.merge(n).datum(function(o) {
9126
9120
  const { xPosition: c, yPosition: l, direction: h } = o;
9127
- return h === Xs.RIGHT ? (o.startPos = {
9121
+ return h === Ys.RIGHT ? (o.startPos = {
9128
9122
  x: c,
9129
9123
  y: l + o.textOffsetY
9130
9124
  }, o.endPos = {
9131
- x: c + vt.callout.offsetX,
9132
- y: l - vt.callout.offsetY + o.textOffsetY
9133
- }, o.intersectPointX = o.endPos.x - vt.callout.horizontalLineLength) : (o.startPos = {
9125
+ x: c + mt.callout.offsetX,
9126
+ y: l - mt.callout.offsetY + o.textOffsetY
9127
+ }, o.intersectPointX = o.endPos.x - mt.callout.horizontalLineLength) : (o.startPos = {
9134
9128
  x: c,
9135
9129
  y: l + o.textOffsetY
9136
9130
  }, o.endPos = {
9137
- x: c - vt.callout.offsetX,
9138
- y: l - vt.callout.offsetY + o.textOffsetY
9139
- }, o.intersectPointX = o.endPos.x + vt.callout.horizontalLineLength), o;
9131
+ x: c - mt.callout.offsetX,
9132
+ y: l - mt.callout.offsetY + o.textOffsetY
9133
+ }, o.intersectPointX = o.endPos.x + mt.callout.horizontalLineLength), o;
9140
9134
  }), i.append("line").classed("vertical-line", !0).merge(e.selectAll("line.vertical-line")).datum(function() {
9141
9135
  return R(this.parentNode).datum();
9142
9136
  }).style("stroke-width", "1px").attr("x1", (o) => o.startPos.x).attr("y1", (o) => o.startPos.y).attr("x2", (o) => o.intersectPointX).attr("y2", (o) => o.endPos.y), i.append("line").classed("horizontal-line", !0).merge(e.selectAll("line.horizontal-line")).datum(function() {
@@ -9206,7 +9200,7 @@ class lg extends ot {
9206
9200
  const { width: t, height: e } = _.getSVGElementSize(this.parent, {
9207
9201
  useAttrs: !0
9208
9202
  }), n = this.getOptions(), i = Math.min(t, e) / 2;
9209
- return n.pie.labels.enabled ? i + vt.radiusOffset : i;
9203
+ return n.pie.labels.enabled ? i + mt.radiusOffset : i;
9210
9204
  }
9211
9205
  }
9212
9206
  class H0 extends lg {
@@ -9278,7 +9272,7 @@ class U0 extends ot {
9278
9272
  }
9279
9273
  getArcRatio() {
9280
9274
  const t = this.getOptions();
9281
- return T(t, "gauge", "type") === Un.FULL ? 1 : 0.5;
9275
+ return T(t, "gauge", "type") === Fn.FULL ? 1 : 0.5;
9282
9276
  }
9283
9277
  getArcSize() {
9284
9278
  return this.getArcRatio() * Math.PI * 2;
@@ -9328,22 +9322,22 @@ class U0 extends ot {
9328
9322
  drawValueNumber() {
9329
9323
  const t = this.getComponentContainer(), e = this.getOptions(), n = T(e, "gauge", "type"), i = this.getValue(), r = this.getDelta(), a = this.computeRadius(), o = T(e, "gauge", "valueFontSize"), c = T(e, "gauge", "deltaFontSize"), l = T(e, "gauge", "numberSpacing"), h = T(e, "gauge", "showPercentageSymbol");
9330
9324
  let d = 0;
9331
- n === Un.FULL && !r ? d = c(a) : n === Un.SEMI && r && (d = -(c(a) + l));
9325
+ n === Fn.FULL && !r ? d = c(a) : n === Fn.SEMI && r && (d = -(c(a) + l));
9332
9326
  const u = _.appendOrSelect(t, "g.gauge-numbers").attr(
9333
9327
  "transform",
9334
9328
  `translate(0, ${d})`
9335
9329
  ), p = o(a), f = _.appendOrSelect(u, "g.gauge-value-number"), { code: g, number: m } = T(e, "locale"), E = T(e, "gauge", "numberFormatter"), y = f.selectAll("text.gauge-value-number").data([i]);
9336
9330
  y.enter().append("text").attr("class", "gauge-value-number").merge(y).style("font-size", `${p}px`).attr("text-anchor", "middle").text((G) => {
9337
- let C;
9338
- return G != null ? C = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : C = 0, E ? E(C) : m(Number(C), g);
9331
+ let k;
9332
+ return G != null ? k = Number(G.toFixed(2)) % 1 !== 0 ? G.toFixed(2) : G.toFixed() : k = 0, E ? E(k) : m(Number(k), g);
9339
9333
  });
9340
9334
  const { width: v } = _.getSVGElementSize(
9341
9335
  _.appendOrSelect(t, "text.gauge-value-number"),
9342
9336
  { useBBox: !0 }
9343
- ), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height: k } = _.getSVGElementSize(O, {
9337
+ ), S = p / 2, b = h ? "%" : "", O = _.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${S}px`).attr("x", v / 2).text(b), { width: I, height: C } = _.getSVGElementSize(O, {
9344
9338
  useBBox: !0
9345
9339
  });
9346
- O.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${I / 2}, 0)`);
9340
+ O.attr("y", `-${C / 2}px`), f.attr("transform", `translate(-${I / 2}, 0)`);
9347
9341
  }
9348
9342
  /**
9349
9343
  * adds the delta number for the gauge
@@ -9413,10 +9407,10 @@ class U0 extends ot {
9413
9407
  const t = this.getOptions(), e = T(t, "gauge", "type"), { width: n, height: i } = _.getSVGElementSize(this.parent, {
9414
9408
  useAttrs: !0
9415
9409
  });
9416
- return e === Un.SEMI ? Math.min(n / 2, i) : Math.min(n / 2, i / 2);
9410
+ return e === Fn.SEMI ? Math.min(n / 2, i) : Math.min(n / 2, i / 2);
9417
9411
  }
9418
9412
  }
9419
- class z0 extends br {
9413
+ class z0 extends Or {
9420
9414
  constructor() {
9421
9415
  super(...arguments), this.type = "grouped-bar", this.renderType = st.SVG, this.padding = 5, this.defaultStepFactor = 70, this.handleLegendOnHover = (t) => {
9422
9416
  const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -9579,7 +9573,7 @@ class z0 extends br {
9579
9573
  }
9580
9574
  setGroupScale() {
9581
9575
  const t = this.model.getActiveDataGroupNames(this.configs.groups);
9582
- this.groupScale = cr().domain(t).rangeRound([0, this.getGroupWidth()]);
9576
+ this.groupScale = hr().domain(t).rangeRound([0, this.getGroupWidth()]);
9583
9577
  }
9584
9578
  }
9585
9579
  class F0 extends ot {
@@ -9608,7 +9602,7 @@ class F0 extends ot {
9608
9602
  }
9609
9603
  d += g, u = g < u ? g : u, p = g > p ? g : p;
9610
9604
  }
9611
- })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${Si(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${Si(c.range())},${l(n)})`), this.services.events.dispatchEvent(x.Tooltip.SHOW, {
9605
+ })), c(n) !== void 0 ? this.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${c(n)}, ${bi(l.range())})`) : l(n) !== void 0 && this.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden", !1).attr("transform", `translate(${bi(c.range())},${l(n)})`), this.services.events.dispatchEvent(x.Tooltip.SHOW, {
9612
9606
  event: e.event,
9613
9607
  hoveredElement: R(t.detail.element),
9614
9608
  items: [
@@ -9690,10 +9684,10 @@ class F0 extends ot {
9690
9684
  }
9691
9685
  determineDividerStatus() {
9692
9686
  const t = T(this.getOptions(), "heatmap", "divider", "state");
9693
- return t !== js.OFF && (t === js.AUTO && Xr.minCellDividerDimension <= this.xBandwidth && Xr.minCellDividerDimension <= this.yBandwidth || t === js.ON);
9687
+ return t !== qs.OFF && (t === qs.AUTO && Xr.minCellDividerDimension <= this.xBandwidth && Xr.minCellDividerDimension <= this.yBandwidth || t === qs.ON);
9694
9688
  }
9695
9689
  addEventListener() {
9696
- const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i = yt(n, "locale.translations.total") || yt(n, "tooltip.totalLabel") || "Total", r = e.getDomainIdentifier(), a = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
9690
+ const t = this, { cartesianScales: e } = this.services, n = this.getOptions(), i = vt(n, "locale.translations.total") || vt(n, "tooltip.totalLabel") || "Total", r = e.getDomainIdentifier(), a = e.getRangeIdentifier(), o = e.getDomainLabel(), c = e.getRangeLabel();
9697
9691
  this.parent.selectAll("g.cell").on("mouseover", function(l, h) {
9698
9692
  const d = R(this), u = d.select("rect.heat");
9699
9693
  if (!u.classed("null-state")) {
@@ -9783,7 +9777,7 @@ class W0 extends ot {
9783
9777
  render(t) {
9784
9778
  const e = this.getComponentContainer({
9785
9779
  ariaLabel: "histogram bars"
9786
- }), n = this.model.getOptions(), { groupIdentifier: i } = n, { groupMapsTo: r } = n.data, a = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), c = e.selectAll("g.bars").data(a, (h) => yt(h, `0.${r}`));
9780
+ }), n = this.model.getOptions(), { groupIdentifier: i } = n, { groupMapsTo: r } = n.data, a = this.model.getBinnedStackedData(), o = this.services.cartesianScales.getMainXScale(), c = e.selectAll("g.bars").data(a, (h) => vt(h, `0.${r}`));
9787
9781
  c.exit().attr("opacity", 0).remove(), c.enter().append("g").classed("bars", !0).attr("role", it.GROUP);
9788
9782
  const l = e.selectAll("g.bars").selectAll("path.bar").data((h) => h);
9789
9783
  l.exit().remove(), l.enter().append("path").merge(l).classed("bar", !0).attr(i, (h, d) => d).transition().call(
@@ -9800,7 +9794,7 @@ class W0 extends ot {
9800
9794
  originalClassName: "bar"
9801
9795
  })
9802
9796
  ).style("fill", (h) => this.model.getFillColor(h[r], null, h)).attr("d", (h) => {
9803
- const d = yt(h, "data");
9797
+ const d = vt(h, "data");
9804
9798
  if (!d)
9805
9799
  return;
9806
9800
  const u = o(d.x1) - o(d.x0) - 1, p = this.services.cartesianScales.getDomainValue(d.x0), f = p + u, g = this.services.cartesianScales.getRangeValue(h[0]);
@@ -9816,13 +9810,13 @@ class W0 extends ot {
9816
9810
  this.parent.selectAll("path.bar").on("mouseover", function(a, o) {
9817
9811
  const c = R(this);
9818
9812
  c.classed("hovered", !0);
9819
- const l = i(parseFloat(yt(o, "data.x0")), n), h = i(parseFloat(yt(o, "data.x1")), n), d = r.services.cartesianScales.getRangeAxisPosition(), u = r.services.cartesianScales.getScaleLabel(d);
9813
+ const l = i(parseFloat(vt(o, "data.x0")), n), h = i(parseFloat(vt(o, "data.x1")), n), d = r.services.cartesianScales.getRangeAxisPosition(), u = r.services.cartesianScales.getScaleLabel(d);
9820
9814
  r.services.events.dispatchEvent(x.Tooltip.SHOW, {
9821
9815
  event: a,
9822
9816
  hoveredElement: c,
9823
9817
  items: [
9824
9818
  {
9825
- label: yt(t, "bins.rangeLabel") || "Range",
9819
+ label: vt(t, "bins.rangeLabel") || "Range",
9826
9820
  value: `${l} – ${h}`
9827
9821
  },
9828
9822
  {
@@ -9835,7 +9829,7 @@ class W0 extends ot {
9835
9829
  },
9836
9830
  {
9837
9831
  label: u,
9838
- value: yt(o, `data.${o[e]}`)
9832
+ value: vt(o, `data.${o[e]}`)
9839
9833
  }
9840
9834
  ]
9841
9835
  });
@@ -9853,7 +9847,7 @@ class W0 extends ot {
9853
9847
  t.removeEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
9854
9848
  }
9855
9849
  }
9856
- class X0 extends Sr {
9850
+ class X0 extends br {
9857
9851
  constructor() {
9858
9852
  super(...arguments), this.type = "lollipop", this.renderType = st.SVG, this.handleScatterOnHover = (t) => {
9859
9853
  const e = t.detail, n = this.getOptions(), { groupMapsTo: i } = n.data;
@@ -9954,7 +9948,7 @@ class j0 extends ot {
9954
9948
  const v = T(i, "meter", "proportional", "total");
9955
9949
  h = v || this.model.getMaximumDomain(this.model.getDisplayData());
9956
9950
  }
9957
- const d = ke().domain([0, h]).range([0, c]), u = this.getStackedBounds(a, d), p = T(i, "meter", "height");
9951
+ const d = Ce().domain([0, h]).range([0, c]), u = this.getStackedBounds(a, d), p = T(i, "meter", "height");
9958
9952
  _.appendOrSelect(n, "rect.container").attr("x", 0).attr("y", 0).attr("width", c).attr(
9959
9953
  "height",
9960
9954
  p || (r ? _t.height.proportional : _t.height.default)
@@ -10093,10 +10087,10 @@ class Y0 extends ot {
10093
10087
  const y = 2 * (this.getLabelDimensions(this.uniqueKeys[0]).height + p), b = (Math.min(n, i) - y) / 2;
10094
10088
  if (b <= 0)
10095
10089
  return;
10096
- const O = cr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), I = Si(this.fullDataNormalized.map((H) => H[d])), k = ke().domain([
10090
+ const O = hr().domain(this.fullDataNormalized.map((H) => H[h])).range([0, 2 * Math.PI].map((H) => H - Math.PI / 2)), I = bi(this.fullDataNormalized.map((H) => H[d])), C = Ce().domain([
10097
10091
  I >= 0 ? 0 : I,
10098
10092
  jr(this.fullDataNormalized.map((H) => H[d]))
10099
- ]).range([g, b]).nice(f), G = k.ticks(f), C = (H, U, W) => this.model.getFillColor(H, U, W), L = $d().angle((H) => O(H[h]) + Math.PI / 2).radius((H) => k(H[d])).curve(ac), B = this.uniqueKeys.map((H) => {
10093
+ ]).range([g, b]).nice(f), G = C.ticks(f), k = (H, U, W) => this.model.getFillColor(H, U, W), L = $d().angle((H) => O(H[h]) + Math.PI / 2).radius((H) => C(H[d])).curve(ac), B = this.uniqueKeys.map((H) => {
10100
10094
  const U = this.getLabelDimensions(H).width, W = oc(
10101
10095
  O(H),
10102
10096
  b
@@ -10142,7 +10136,7 @@ class Y0 extends ot {
10142
10136
  name: "radar_x_axes_enter",
10143
10137
  animate: t
10144
10138
  })
10145
- ).attr("opacity", 1).attr("x1", (W) => bt(O(W), k.range()[0], A).x).attr("y1", (W) => bt(O(W), k.range()[0], A).y).attr("x2", (W) => bt(O(W), k.range()[1], A).x).attr("y2", (W) => bt(O(W), k.range()[1], A).y)
10139
+ ).attr("opacity", 1).attr("x1", (W) => bt(O(W), C.range()[0], A).x).attr("y1", (W) => bt(O(W), C.range()[0], A).y).attr("x2", (W) => bt(O(W), C.range()[1], A).x).attr("y2", (W) => bt(O(W), C.range()[1], A).y)
10146
10140
  ),
10147
10141
  (H) => H.call(
10148
10142
  (U) => U.transition().call(
@@ -10151,7 +10145,7 @@ class Y0 extends ot {
10151
10145
  name: "radar_x_axes_update",
10152
10146
  animate: t
10153
10147
  })
10154
- ).attr("opacity", 1).attr("x1", (W) => bt(O(W), k.range()[0], A).x).attr("y1", (W) => bt(O(W), k.range()[0], A).y).attr("x2", (W) => bt(O(W), k.range()[1], A).x).attr("y2", (W) => bt(O(W), k.range()[1], A).y)
10148
+ ).attr("opacity", 1).attr("x1", (W) => bt(O(W), C.range()[0], A).x).attr("y1", (W) => bt(O(W), C.range()[0], A).y).attr("x2", (W) => bt(O(W), C.range()[1], A).x).attr("y2", (W) => bt(O(W), C.range()[1], A).y)
10155
10149
  ),
10156
10150
  (H) => H.call(
10157
10151
  (U) => U.transition().call(
@@ -10165,10 +10159,10 @@ class Y0 extends ot {
10165
10159
  ), _.appendOrSelect(e, "g.x-labels").attr("role", it.GROUP).selectAll("text").data(this.uniqueKeys).join(
10166
10160
  (H) => H.append("text").text((U) => U).attr("opacity", 0).attr(
10167
10161
  "x",
10168
- (U) => bt(O(U), k.range()[1] + u, A).x
10162
+ (U) => bt(O(U), C.range()[1] + u, A).x
10169
10163
  ).attr(
10170
10164
  "y",
10171
- (U) => bt(O(U), k.range()[1] + u, A).y
10165
+ (U) => bt(O(U), C.range()[1] + u, A).y
10172
10166
  ).style("text-anchor", (U) => ea(O(U)).textAnchor).style(
10173
10167
  "dominant-baseline",
10174
10168
  (U) => ea(O(U)).dominantBaseline
@@ -10190,10 +10184,10 @@ class Y0 extends ot {
10190
10184
  })
10191
10185
  ).attr("opacity", 1).attr(
10192
10186
  "x",
10193
- (W) => bt(O(W), k.range()[1] + u, A).x
10187
+ (W) => bt(O(W), C.range()[1] + u, A).x
10194
10188
  ).attr(
10195
10189
  "y",
10196
- (W) => bt(O(W), k.range()[1] + u, A).y
10190
+ (W) => bt(O(W), C.range()[1] + u, A).y
10197
10191
  ).end().finally(() => {
10198
10192
  const W = T(o, "radar", "alignment"), zt = this.getAlignmentXOffset(W, e, this.getParent());
10199
10193
  e.attr("x", zt);
@@ -10219,7 +10213,7 @@ class Y0 extends ot {
10219
10213
  ).attr("role", it.GRAPHICS_SYMBOL).attr("aria-label", (U) => U.name).attr("opacity", 0).attr(
10220
10214
  "transform",
10221
10215
  t ? () => `translate(${A.x}, ${A.y}) scale(${1 + Math.random() * 0.35})` : `translate(${A.x}, ${A.y})`
10222
- ).style("fill", (U) => C(U.name, null, U.data)).style("fill-opacity", Te.opacity.selected).style("stroke", (U) => C(U.name, null, U.data)).call((U) => {
10216
+ ).style("fill", (U) => k(U.name, null, U.data)).style("fill-opacity", Te.opacity.selected).style("stroke", (U) => k(U.name, null, U.data)).call((U) => {
10223
10217
  const W = U.transition().call(
10224
10218
  (zt) => this.services.transitions.setupTransition({
10225
10219
  transition: zt,
@@ -10236,7 +10230,7 @@ class Y0 extends ot {
10236
10230
  dataGroupName: U.name,
10237
10231
  originalClassName: "blob"
10238
10232
  })
10239
- ).style("fill", (U) => C(U.name, null, U.data)).style("stroke", (U) => C(U.name, null, U.data)), H.call(
10233
+ ).style("fill", (U) => k(U.name, null, U.data)).style("stroke", (U) => k(U.name, null, U.data)), H.call(
10240
10234
  (U) => U.transition().call(
10241
10235
  (W) => this.services.transitions.setupTransition({
10242
10236
  transition: W,
@@ -10269,17 +10263,17 @@ class Y0 extends ot {
10269
10263
  dataGroupName: H[c],
10270
10264
  originalClassName: He(H[h])
10271
10265
  })
10272
- ).attr("cx", (H) => bt(O(H[h]), k(H[d]), A).x).attr("cy", (H) => bt(O(H[h]), k(H[d]), A).y).attr("r", 0).attr("opacity", 0).style("fill", (H) => C(H[c])), _.appendOrSelect(e, "g.x-axes-rect").attr("role", it.GROUP).selectAll("rect").data(this.uniqueKeys).join(
10266
+ ).attr("cx", (H) => bt(O(H[h]), C(H[d]), A).x).attr("cy", (H) => bt(O(H[h]), C(H[d]), A).y).attr("r", 0).attr("opacity", 0).style("fill", (H) => k(H[c])), _.appendOrSelect(e, "g.x-axes-rect").attr("role", it.GROUP).selectAll("rect").data(this.uniqueKeys).join(
10273
10267
  (H) => H.append("rect"),
10274
10268
  (H) => H,
10275
10269
  (H) => H.remove()
10276
- ).attr("x", A.x).attr("y", A.y - m / 2).attr("width", k.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (H) => `rotate(${lc(O(H))}, ${A.x}, ${A.y})`);
10270
+ ).attr("x", A.x).attr("y", A.y - m / 2).attr("width", C.range()[1]).attr("height", m).style("fill", "red").style("fill-opacity", 0).attr("transform", (H) => `rotate(${lc(O(H))}, ${A.x}, ${A.y})`);
10277
10271
  const { code: ut, number: ht } = T(o, "locale");
10278
- _.appendOrSelect(e, "g.y-labels").attr("role", it.GROUP).selectAll("text").data(ks(G)).join(
10272
+ _.appendOrSelect(e, "g.y-labels").attr("role", it.GROUP).selectAll("text").data(Is(G)).join(
10279
10273
  (H) => H.append("text").attr("opacity", 0).text((U) => ht(U, ut)).attr(
10280
10274
  "x",
10281
- (U) => bt(-Math.PI / 2, k(U), A).x + p
10282
- ).attr("y", (U) => bt(-Math.PI / 2, k(U), A).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
10275
+ (U) => bt(-Math.PI / 2, C(U), A).x + p
10276
+ ).attr("y", (U) => bt(-Math.PI / 2, C(U), A).y).style("text-anchor", "start").style("dominant-baseline", "middle").call(
10283
10277
  (U) => U.transition().call(
10284
10278
  (W) => this.services.transitions.setupTransition({
10285
10279
  transition: W,
@@ -10297,8 +10291,8 @@ class Y0 extends ot {
10297
10291
  })
10298
10292
  ).text((W) => W).attr("opacity", 1).attr(
10299
10293
  "x",
10300
- (W) => bt(-Math.PI / 2, k(W), A).x + p
10301
- ).attr("y", (W) => bt(-Math.PI / 2, k(W), A).y)
10294
+ (W) => bt(-Math.PI / 2, C(W), A).x + p
10295
+ ).attr("y", (W) => bt(-Math.PI / 2, C(W), A).y)
10302
10296
  ),
10303
10297
  (H) => H.call(
10304
10298
  (U) => U.transition().call(
@@ -10382,7 +10376,7 @@ class Y0 extends ot {
10382
10376
  });
10383
10377
  }
10384
10378
  }
10385
- class q0 extends br {
10379
+ class q0 extends Or {
10386
10380
  constructor() {
10387
10381
  super(...arguments), this.type = "simple-bar", this.renderType = st.SVG, this.handleLegendOnHover = (t) => {
10388
10382
  const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.getOptions().data;
@@ -10541,7 +10535,7 @@ class K0 extends ot {
10541
10535
  percentage: a,
10542
10536
  groups: this.configs.groups
10543
10537
  }), c = T(o, 0, 0), l = this.services.cartesianScales.getDomainAxisPosition({ datum: c }), h = this.services.cartesianScales.getRangeAxisPosition({ datum: c }), d = this.services.cartesianScales.getScaleByPosition(h), u = e.selectAll("path.area").data(o, (f) => T(f, 0, r));
10544
- this.areaGenerator = yr().x(
10538
+ this.areaGenerator = Sr().x(
10545
10539
  (f) => this.services.cartesianScales.getValueThroughAxisPosition(
10546
10540
  l,
10547
10541
  f.data.sharedStackKey
@@ -10562,7 +10556,7 @@ class K0 extends ot {
10562
10556
  ).attr("opacity", me.opacity.selected).attr("d", this.areaGenerator);
10563
10557
  }
10564
10558
  }
10565
- class J0 extends br {
10559
+ class J0 extends Or {
10566
10560
  constructor() {
10567
10561
  super(...arguments), this.type = "stacked-bar", this.renderType = st.SVG, this.handleLegendOnHover = (t) => {
10568
10562
  const { hoveredElement: e } = t.detail, { groupMapsTo: n } = this.model.getOptions().data;
@@ -10693,7 +10687,7 @@ class J0 extends br {
10693
10687
  t.removeEventListener(x.Legend.ITEM_HOVER, this.handleLegendOnHover), t.removeEventListener(x.Legend.ITEM_MOUSEOUT, this.handleLegendMouseOut);
10694
10688
  }
10695
10689
  }
10696
- class Q0 extends Sr {
10690
+ class Q0 extends br {
10697
10691
  constructor() {
10698
10692
  super(...arguments), this.type = "scatter-stacked", this.renderType = st.SVG;
10699
10693
  }
@@ -10781,12 +10775,12 @@ class ty extends ot {
10781
10775
  name: o,
10782
10776
  children: a
10783
10777
  }), p = 10, f = n / 6, g = (O) => {
10784
- const I = u.descendants().reverse(), k = u.links();
10785
- let G = u, C = u;
10778
+ const I = u.descendants().reverse(), C = u.links();
10779
+ let G = u, k = u;
10786
10780
  u.eachBefore((P) => {
10787
- P.x < G.x && (G = P), P.x > C.x && (C = P);
10781
+ P.x < G.x && (G = P), P.x > k.x && (k = P);
10788
10782
  });
10789
- const L = C.x - G.x, B = e.transition().call(
10783
+ const L = k.x - G.x, B = e.transition().call(
10790
10784
  (P) => this.services.transitions.setupTransition({
10791
10785
  transition: P,
10792
10786
  name: "tree-update-viewbox",
@@ -10815,7 +10809,7 @@ class ty extends ot {
10815
10809
  });
10816
10810
  });
10817
10811
  w.append("circle").attr("r", 2.5).attr("class", (P) => P._children ? "parent" : "child").attr("stroke-width", 10), w.append("text").attr("dy", "0.31em").attr("x", (P) => P._children ? -We : We).attr("text-anchor", (P) => P._children ? "end" : "start").text((P) => P.data.name).clone(!0).attr("class", "text-stroke").lower(), D.merge(w).transition(B).attr("transform", (P) => `translate(${P.y},${P.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), D.exit().transition(B).remove().attr("transform", () => `translate(${O.y},${O.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
10818
- const V = S.selectAll("path").data(k, (P) => P.target.id), N = V.enter().append("path").attr("d", () => {
10812
+ const V = S.selectAll("path").data(C, (P) => P.target.id), N = V.enter().append("path").attr("d", () => {
10819
10813
  const P = { x: O.x0, y: O.y0 };
10820
10814
  return v({ source: P, target: P });
10821
10815
  });
@@ -10850,7 +10844,7 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10850
10844
  80: yg,
10851
10845
  90: Eg,
10852
10846
  100: Sg
10853
- }, bg = "#fff2e8", Tg = "#ffd9be", Og = "#ffb784", wg = "#ff832b", Lg = "#eb6200", Ag = "#ba4e00", Mg = "#8a3800", _g = "#5e2900", Cg = "#3e1a00", kg = "#231000", Rg = {
10847
+ }, bg = "#fff2e8", Tg = "#ffd9be", Og = "#ffb784", wg = "#ff832b", Lg = "#eb6200", Ag = "#ba4e00", Mg = "#8a3800", _g = "#5e2900", kg = "#3e1a00", Cg = "#231000", Rg = {
10854
10848
  10: bg,
10855
10849
  20: Tg,
10856
10850
  30: Og,
@@ -10859,8 +10853,8 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10859
10853
  60: Ag,
10860
10854
  70: Mg,
10861
10855
  80: _g,
10862
- 90: Cg,
10863
- 100: kg
10856
+ 90: kg,
10857
+ 100: Cg
10864
10858
  }, Ig = "#fff1f1", Dg = "#ffd7d9", Pg = "#ffb3b8", Ng = "#ff8389", $g = "#fa4d56", Vg = "#da1e28", Bg = "#a2191f", Gg = "#750e13", Hg = "#520408", Ug = "#2d0709", zg = {
10865
10859
  10: Ig,
10866
10860
  20: Dg,
@@ -10905,7 +10899,7 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10905
10899
  80: Em,
10906
10900
  90: Sm,
10907
10901
  100: xm
10908
- }, Tm = "#e5f6ff", Om = "#bae6ff", wm = "#82cfff", Lm = "#33b1ff", Am = "#1192e8", Mm = "#0072c3", _m = "#00539a", Cm = "#003a6d", km = "#012749", Rm = "#061727", Im = {
10902
+ }, Tm = "#e5f6ff", Om = "#bae6ff", wm = "#82cfff", Lm = "#33b1ff", Am = "#1192e8", Mm = "#0072c3", _m = "#00539a", km = "#003a6d", Cm = "#012749", Rm = "#061727", Im = {
10909
10903
  10: Tm,
10910
10904
  20: Om,
10911
10905
  30: wm,
@@ -10913,8 +10907,8 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10913
10907
  50: Am,
10914
10908
  60: Mm,
10915
10909
  70: _m,
10916
- 80: Cm,
10917
- 90: km,
10910
+ 80: km,
10911
+ 90: Cm,
10918
10912
  100: Rm
10919
10913
  }, Dm = "#d9fbfb", Pm = "#9ef0f0", Nm = "#3ddbd9", $m = "#08bdba", Vm = "#009d9a", Bm = "#007d79", Gm = "#005d5d", Hm = "#004144", Um = "#022b30", zm = "#081a1c", Fm = {
10920
10914
  10: Dm,
@@ -10960,15 +10954,15 @@ var cg = "#000000", ug = "#ffffff", hg = "#fcf4d6", dg = "#fddc69", pg = "#f1c21
10960
10954
  80: Sv,
10961
10955
  90: xv,
10962
10956
  100: bv
10963
- }, Ov = "#f7f3f2", wv = "#e5e0df", Lv = "#cac5c4", Av = "#ada8a8", Mv = "#8f8b8b", _v = "#726e6e", Cv = "#565151", kv = "#3c3838", Rv = "#272525", Iv = "#171414", Dv = {
10957
+ }, Ov = "#f7f3f2", wv = "#e5e0df", Lv = "#cac5c4", Av = "#ada8a8", Mv = "#8f8b8b", _v = "#726e6e", kv = "#565151", Cv = "#3c3838", Rv = "#272525", Iv = "#171414", Dv = {
10964
10958
  10: Ov,
10965
10959
  20: wv,
10966
10960
  30: Lv,
10967
10961
  40: Av,
10968
10962
  50: Mv,
10969
10963
  60: _v,
10970
- 70: Cv,
10971
- 80: kv,
10964
+ 70: kv,
10965
+ 80: Cv,
10972
10966
  90: Rv,
10973
10967
  100: Iv
10974
10968
  }, uo = {
@@ -11196,9 +11190,9 @@ function _l() {
11196
11190
  if (!(n = arguments[s] + "") || n in e || /[\s.]/.test(n)) throw new Error("illegal type: " + n);
11197
11191
  e[n] = [];
11198
11192
  }
11199
- return new us(e);
11193
+ return new ds(e);
11200
11194
  }
11201
- function us(s) {
11195
+ function ds(s) {
11202
11196
  this._ = s;
11203
11197
  }
11204
11198
  function Vv(s, t) {
@@ -11208,8 +11202,8 @@ function Vv(s, t) {
11208
11202
  return { type: e, name: n };
11209
11203
  });
11210
11204
  }
11211
- us.prototype = _l.prototype = {
11212
- constructor: us,
11205
+ ds.prototype = _l.prototype = {
11206
+ constructor: ds,
11213
11207
  on: function(s, t) {
11214
11208
  var e = this._, n = Vv(s + "", e), i, r = -1, a = n.length;
11215
11209
  if (arguments.length < 2) {
@@ -11225,7 +11219,7 @@ us.prototype = _l.prototype = {
11225
11219
  copy: function() {
11226
11220
  var s = {}, t = this._;
11227
11221
  for (var e in t) s[e] = t[e].slice();
11228
- return new us(s);
11222
+ return new ds(s);
11229
11223
  },
11230
11224
  call: function(s, t) {
11231
11225
  if ((i = arguments.length - 2) > 0) for (var e = new Array(i), n = 0, i, r; n < i; ++n) e[n] = arguments[n + 2];
@@ -11253,25 +11247,25 @@ function po(s, t, e) {
11253
11247
  const Gv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11254
11248
  __proto__: null,
11255
11249
  dispatch: _l
11256
- }, Symbol.toStringTag, { value: "Module" })), Hv = /* @__PURE__ */ of(Gv), Uv = Hv.dispatch, vi = Math.PI / 180, zv = {
11257
- archimedean: Cl,
11250
+ }, Symbol.toStringTag, { value: "Module" })), Hv = /* @__PURE__ */ of(Gv), Uv = Hv.dispatch, Ei = Math.PI / 180, zv = {
11251
+ archimedean: kl,
11258
11252
  rectangular: t0
11259
- }, wn = 64, hs = 2048;
11253
+ }, wn = 64, ps = 2048;
11260
11254
  var Fv = function() {
11261
- var s = [256, 256], t = Wv, e = Xv, n = jv, i = fo, r = fo, a = Yv, o = qv, c = Cl, l = [], h = 1 / 0, d = Uv("word", "end"), u = null, p = Math.random, f = {}, g = n0;
11255
+ var s = [256, 256], t = Wv, e = Xv, n = jv, i = fo, r = fo, a = Yv, o = qv, c = kl, l = [], h = 1 / 0, d = Uv("word", "end"), u = null, p = Math.random, f = {}, g = n0;
11262
11256
  f.canvas = function(y) {
11263
11257
  return arguments.length ? (g = xe(y), f) : g;
11264
11258
  }, f.start = function() {
11265
- var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [], k = l.map(function(C, L) {
11266
- return C.text = t.call(this, C, L), C.font = e.call(this, C, L), C.style = i.call(this, C, L), C.weight = r.call(this, C, L), C.rotate = a.call(this, C, L), C.size = ~~n.call(this, C, L), C.padding = o.call(this, C, L), C;
11267
- }).sort(function(C, L) {
11268
- return L.size - C.size;
11259
+ var y = m(g()), v = e0((s[0] >> 5) * s[1]), S = null, b = l.length, O = -1, I = [], C = l.map(function(k, L) {
11260
+ return k.text = t.call(this, k, L), k.font = e.call(this, k, L), k.style = i.call(this, k, L), k.weight = r.call(this, k, L), k.rotate = a.call(this, k, L), k.size = ~~n.call(this, k, L), k.padding = o.call(this, k, L), k;
11261
+ }).sort(function(k, L) {
11262
+ return L.size - k.size;
11269
11263
  });
11270
11264
  return u && clearInterval(u), u = setInterval(G, 0), G(), f;
11271
11265
  function G() {
11272
- for (var C = Date.now(); Date.now() - C < h && ++O < b && u; ) {
11273
- var L = k[O];
11274
- L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, k, O), L.hasText && E(v, L, S) && (I.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
11266
+ for (var k = Date.now(); Date.now() - k < h && ++O < b && u; ) {
11267
+ var L = C[O];
11268
+ L.x = s[0] * (p() + 0.5) >> 1, L.y = s[1] * (p() + 0.5) >> 1, Zv(y, L, C, O), L.hasText && E(v, L, S) && (I.push(L), d.call("word", f, L), S ? Jv(S, L) : S = [{ x: L.x + L.x0, y: L.y + L.y0 }, { x: L.x + L.x1, y: L.y + L.y1 }], L.x -= s[0] >> 1, L.y -= s[1] >> 1);
11275
11269
  }
11276
11270
  O >= b && (f.stop(), d.call("end", f, I, S));
11277
11271
  }
@@ -11285,11 +11279,11 @@ var Fv = function() {
11285
11279
  const v = y.getContext("2d", { willReadFrequently: !0 });
11286
11280
  y.width = y.height = 1;
11287
11281
  const S = Math.sqrt(v.getImageData(0, 0, 1, 1).data.length >> 2);
11288
- return y.width = (wn << 5) / S, y.height = hs / S, v.fillStyle = v.strokeStyle = "red", { context: v, ratio: S };
11282
+ return y.width = (wn << 5) / S, y.height = ps / S, v.fillStyle = v.strokeStyle = "red", { context: v, ratio: S };
11289
11283
  }
11290
11284
  function E(y, v, S) {
11291
11285
  s[0], s[1];
11292
- for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]), k = c(s), G = p() < 0.5 ? 1 : -1, C = -G, L, B, D; (L = k(C += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= I)); )
11286
+ for (var b = v.x, O = v.y, I = Math.sqrt(s[0] * s[0] + s[1] * s[1]), C = c(s), G = p() < 0.5 ? 1 : -1, k = -G, L, B, D; (L = C(k += G)) && (B = ~~L[0], D = ~~L[1], !(Math.min(Math.abs(B), Math.abs(D)) >= I)); )
11293
11287
  if (v.x = b + B, v.y = O + D, !(v.x + v.x0 < 0 || v.y + v.y0 < 0 || v.x + v.x1 > s[0] || v.y + v.y1 > s[1]) && (!S || Qv(v, S)) && !Kv(v, y, s[0])) {
11294
11288
  for (var A = v.sprite, w = v.width >> 5, V = s[0] >> 5, N = v.x - (w << 4), P = N & 127, $ = 32 - P, X = v.y1 - v.y0, F = (v.y + v.y0) * V + (N >> 5), et, J = 0; J < X; J++) {
11295
11289
  et = 0;
@@ -11351,31 +11345,31 @@ function qv() {
11351
11345
  function Zv(s, t, e, n) {
11352
11346
  if (!t.sprite) {
11353
11347
  var i = s.context, r = s.ratio;
11354
- i.clearRect(0, 0, (wn << 5) / r, hs / r);
11348
+ i.clearRect(0, 0, (wn << 5) / r, ps / r);
11355
11349
  var a = 0, o = 0, c = 0, l = e.length;
11356
11350
  for (--n; ++n < l; ) {
11357
11351
  t = e[n], i.save(), i.font = t.style + " " + t.weight + " " + ~~((t.size + 1) / r) + "px " + t.font;
11358
11352
  const L = i.measureText(t.text), B = -Math.floor(L.width / 2);
11359
11353
  let D = (L.width + 1) * r, A = t.size << 1;
11360
11354
  if (t.rotate) {
11361
- var h = Math.sin(t.rotate * vi), d = Math.cos(t.rotate * vi), u = D * d, p = D * h, f = A * d, g = A * h;
11355
+ var h = Math.sin(t.rotate * Ei), d = Math.cos(t.rotate * Ei), u = D * d, p = D * h, f = A * d, g = A * h;
11362
11356
  D = Math.max(Math.abs(u + g), Math.abs(u - g)) + 31 >> 5 << 5, A = ~~Math.max(Math.abs(p + f), Math.abs(p - f));
11363
11357
  } else
11364
11358
  D = D + 31 >> 5 << 5;
11365
- if (A > c && (c = A), a + D >= wn << 5 && (a = 0, o += c, c = 0), o + A >= hs) break;
11366
- i.translate((a + (D >> 1)) / r, (o + (A >> 1)) / r), t.rotate && i.rotate(t.rotate * vi), i.fillText(t.text, B, 0), t.padding && (i.lineWidth = 2 * t.padding, i.strokeText(t.text, B, 0)), i.restore(), t.width = D, t.height = A, t.xoff = a, t.yoff = o, t.x1 = D >> 1, t.y1 = A >> 1, t.x0 = -t.x1, t.y0 = -t.y1, t.hasText = !0, a += D;
11359
+ if (A > c && (c = A), a + D >= wn << 5 && (a = 0, o += c, c = 0), o + A >= ps) break;
11360
+ i.translate((a + (D >> 1)) / r, (o + (A >> 1)) / r), t.rotate && i.rotate(t.rotate * Ei), i.fillText(t.text, B, 0), t.padding && (i.lineWidth = 2 * t.padding, i.strokeText(t.text, B, 0)), i.restore(), t.width = D, t.height = A, t.xoff = a, t.yoff = o, t.x1 = D >> 1, t.y1 = A >> 1, t.x0 = -t.x1, t.y0 = -t.y1, t.hasText = !0, a += D;
11367
11361
  }
11368
- for (var m = i.getImageData(0, 0, (wn << 5) / r, hs / r).data, E = []; --n >= 0; )
11362
+ for (var m = i.getImageData(0, 0, (wn << 5) / r, ps / r).data, E = []; --n >= 0; )
11369
11363
  if (t = e[n], !!t.hasText) {
11370
11364
  for (var y = t.width, v = y >> 5, S = t.y1 - t.y0, b = 0; b < S * v; b++) E[b] = 0;
11371
11365
  if (a = t.xoff, a == null) return;
11372
11366
  o = t.yoff;
11373
- for (var O = 0, I = -1, k = 0; k < S; k++) {
11367
+ for (var O = 0, I = -1, C = 0; C < S; C++) {
11374
11368
  for (var b = 0; b < y; b++) {
11375
- var G = v * k + (b >> 5), C = m[(o + k) * (wn << 5) + (a + b) << 2] ? 1 << 31 - b % 32 : 0;
11376
- E[G] |= C, O |= C;
11369
+ var G = v * C + (b >> 5), k = m[(o + C) * (wn << 5) + (a + b) << 2] ? 1 << 31 - b % 32 : 0;
11370
+ E[G] |= k, O |= k;
11377
11371
  }
11378
- O ? I = k : (t.y0++, S--, k--, o++);
11372
+ O ? I = C : (t.y0++, S--, C--, o++);
11379
11373
  }
11380
11374
  t.y1 = t.y0 + I, t.sprite = E.slice(0, (t.y1 - t.y0) * v);
11381
11375
  }
@@ -11398,7 +11392,7 @@ function Jv(s, t) {
11398
11392
  function Qv(s, t) {
11399
11393
  return s.x + s.x1 > t[0].x && s.x + s.x0 < t[1].x && s.y + s.y1 > t[0].y && s.y + s.y0 < t[1].y;
11400
11394
  }
11401
- function Cl(s) {
11395
+ function kl(s) {
11402
11396
  var t = s[0] / s[1];
11403
11397
  return function(e) {
11404
11398
  return [t * (e *= 0.1) * Math.cos(e), e * Math.sin(e)];
@@ -11509,11 +11503,11 @@ class ny extends ot {
11509
11503
  this.addEventListeners();
11510
11504
  }
11511
11505
  getFontSizeScale(t) {
11512
- const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, i = t.map((c) => c[n]).filter((c) => c), r = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), a = i.length > 0, o = a ? ks(i) : [1, 1];
11513
- return ke().domain(o).range(a ? e.wordCloud.fontSizeRange(r, t) : [4, 4]);
11506
+ const e = this.getOptions(), { fontSizeMapsTo: n } = e.wordCloud, i = t.map((c) => c[n]).filter((c) => c), r = _.getHTMLElementSize(this.services.domUtils.getMainContainer()), a = i.length > 0, o = a ? Is(i) : [1, 1];
11507
+ return Ce().domain(o).range(a ? e.wordCloud.fontSizeRange(r, t) : [4, 4]);
11514
11508
  }
11515
11509
  addEventListeners() {
11516
- const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i = xi((r) => {
11510
+ const t = this.getOptions(), { groupMapsTo: e } = t.data, n = this, i = Ti((r) => {
11517
11511
  const a = n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call(
11518
11512
  (o) => n.services.transitions.setupTransition({
11519
11513
  transition: o,
@@ -11543,7 +11537,7 @@ class ny extends ot {
11543
11537
  value: a.value
11544
11538
  },
11545
11539
  {
11546
- label: yt(t, "locale.translations.group") || yt(t, "tooltip.groupLabel") || "Group",
11540
+ label: vt(t, "locale.translations.group") || vt(t, "tooltip.groupLabel") || "Group",
11547
11541
  value: a[e],
11548
11542
  class: n.model.getColorClassName({
11549
11543
  classNameTypes: [tt.TOOLTIP],
@@ -11668,11 +11662,11 @@ class sy extends i0 {
11668
11662
  const t = this, e = this.model.getCombinedData();
11669
11663
  this.parent.selectAll("path.border").on("mouseover", function(n, i) {
11670
11664
  const r = R(this);
11671
- t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEOVER, {
11665
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEOVER, {
11672
11666
  event: n,
11673
11667
  element: r,
11674
11668
  datum: e[i.properties.NAME]
11675
- }), t.services.events.dispatchEvent(Ys.SHOW, {
11669
+ }), t.services.events.dispatchEvent(Zs.SHOW, {
11676
11670
  event: n,
11677
11671
  hoveredElement: r,
11678
11672
  items: [
@@ -11683,26 +11677,26 @@ class sy extends i0 {
11683
11677
  ]
11684
11678
  });
11685
11679
  }).on("mousemove", function(n, i) {
11686
- t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEMOVE, {
11680
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEMOVE, {
11687
11681
  event: n,
11688
11682
  element: R(this),
11689
11683
  datum: e[i.properties.NAME]
11690
- }), t.services.events.dispatchEvent(Ys.MOVE, {
11684
+ }), t.services.events.dispatchEvent(Zs.MOVE, {
11691
11685
  event: n
11692
11686
  });
11693
11687
  }).on("click", function(n, i) {
11694
- t.services.events.dispatchEvent(zn.CHOROPLETH_CLICK, {
11688
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_CLICK, {
11695
11689
  event: n,
11696
11690
  element: R(this),
11697
11691
  datum: e[i.properties.NAME]
11698
11692
  });
11699
11693
  }).on("mouseout", function(n, i) {
11700
11694
  const r = R(this);
11701
- t.services.events.dispatchEvent(zn.CHOROPLETH_MOUSEOUT, {
11695
+ t.services.events.dispatchEvent(Wn.CHOROPLETH_MOUSEOUT, {
11702
11696
  event: n,
11703
11697
  element: r,
11704
11698
  datum: e[i.properties.NAME]
11705
- }), t.services.events.dispatchEvent(Ys.HIDE, {
11699
+ }), t.services.events.dispatchEvent(Zs.HIDE, {
11706
11700
  event: n,
11707
11701
  hoveredElement: r
11708
11702
  });
@@ -11739,19 +11733,19 @@ export {
11739
11733
  f0 as Z,
11740
11734
  R0 as _,
11741
11735
  Xa as a,
11742
- k0 as a0,
11743
- C0 as a1,
11736
+ C0 as a0,
11737
+ k0 as a1,
11744
11738
  _0 as a2,
11745
11739
  D0 as a3,
11746
11740
  P0 as a4,
11747
11741
  N0 as a5,
11748
11742
  $0 as a6,
11749
11743
  i0 as a7,
11750
- br as a8,
11744
+ Or as a8,
11751
11745
  ot as a9,
11752
11746
  ja as b,
11753
11747
  Jc as c,
11754
- Cf as d,
11748
+ kf as d,
11755
11749
  _f as e,
11756
11750
  Qa as f,
11757
11751
  g0 as g,
@@ -11759,7 +11753,7 @@ export {
11759
11753
  b0 as i,
11760
11754
  x0 as j,
11761
11755
  S0 as k,
11762
- Sr as l,
11756
+ br as l,
11763
11757
  Jf as m,
11764
11758
  O0 as n,
11765
11759
  w0 as o,
@@ -11775,4 +11769,4 @@ export {
11775
11769
  J0 as y,
11776
11770
  U0 as z
11777
11771
  };
11778
- //# sourceMappingURL=choropleth-0DsmaWsP.mjs.map
11772
+ //# sourceMappingURL=choropleth-CtLw9e8_.mjs.map