@carbon/charts-react 1.26.1 → 1.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3516,40 +3516,40 @@ function xT(e) {
3516
3516
  d = ns(d);
3517
3517
  var h = d.fill, p = d.align, f = d.sign, g = d.symbol, m = d.zero, v = d.width, b = d.comma, _ = d.precision, E = d.trim, x = d.type;
3518
3518
  x === "n" ? (b = !0, x = "g") : wh[x] || (_ === void 0 && (_ = 12), E = !0, x = "g"), (m || h === "0" && p === "=") && (m = !0, h = "0", p = "=");
3519
- var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", M = g === "$" ? r : /[%p]/.test(x) ? a : "", k = wh[x], C = /[defgprs%]/.test(x);
3519
+ var S = g === "$" ? n : g === "#" && /[boxX]/.test(x) ? "0" + x.toLowerCase() : "", $ = g === "$" ? r : /[%p]/.test(x) ? a : "", D = wh[x], C = /[defgprs%]/.test(x);
3520
3520
  _ = _ === void 0 ? 6 : /[gprs]/.test(x) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
3521
- function R($) {
3522
- var H = S, P = M, B, O, w;
3521
+ function R(M) {
3522
+ var H = S, P = $, B, O, w;
3523
3523
  if (x === "c")
3524
- P = k($) + P, $ = "";
3524
+ P = D(M) + P, M = "";
3525
3525
  else {
3526
- $ = +$;
3527
- var L = $ < 0 || 1 / $ < 0;
3528
- if ($ = isNaN($) ? l : k(Math.abs($), _), E && ($ = vT($)), L && +$ == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 3] : "") + P + (L && f === "(" ? ")" : ""), C) {
3529
- for (B = -1, O = $.length; ++B < O; )
3530
- if (w = $.charCodeAt(B), 48 > w || w > 57) {
3531
- P = (w === 46 ? i + $.slice(B + 1) : $.slice(B)) + P, $ = $.slice(0, B);
3526
+ M = +M;
3527
+ var L = M < 0 || 1 / M < 0;
3528
+ if (M = isNaN(M) ? l : D(Math.abs(M), _), E && (M = vT(M)), L && +M == 0 && f !== "+" && (L = !1), H = (L ? f === "(" ? f : o : f === "-" || f === "(" ? "" : f) + H, P = (x === "s" ? Ch[8 + Em / 3] : "") + P + (L && f === "(" ? ")" : ""), C) {
3529
+ for (B = -1, O = M.length; ++B < O; )
3530
+ if (w = M.charCodeAt(B), 48 > w || w > 57) {
3531
+ P = (w === 46 ? i + M.slice(B + 1) : M.slice(B)) + P, M = M.slice(0, B);
3532
3532
  break;
3533
3533
  }
3534
3534
  }
3535
3535
  }
3536
- b && !m && ($ = t($, 1 / 0));
3537
- var D = H.length + $.length + P.length, U = D < v ? new Array(v - D + 1).join(h) : "";
3538
- switch (b && m && ($ = t(U + $, U.length ? v - P.length : 1 / 0), U = ""), p) {
3536
+ b && !m && (M = t(M, 1 / 0));
3537
+ var k = H.length + M.length + P.length, U = k < v ? new Array(v - k + 1).join(h) : "";
3538
+ switch (b && m && (M = t(U + M, U.length ? v - P.length : 1 / 0), U = ""), p) {
3539
3539
  case "<":
3540
- $ = H + $ + P + U;
3540
+ M = H + M + P + U;
3541
3541
  break;
3542
3542
  case "=":
3543
- $ = H + U + $ + P;
3543
+ M = H + U + M + P;
3544
3544
  break;
3545
3545
  case "^":
3546
- $ = U.slice(0, D = U.length >> 1) + H + $ + P + U.slice(D);
3546
+ M = U.slice(0, k = U.length >> 1) + H + M + P + U.slice(k);
3547
3547
  break;
3548
3548
  default:
3549
- $ = U + H + $ + P;
3549
+ M = U + H + M + P;
3550
3550
  break;
3551
3551
  }
3552
- return s($);
3552
+ return s(M);
3553
3553
  }
3554
3554
  return R.toString = function() {
3555
3555
  return d + "";
@@ -7017,19 +7017,19 @@ function ba(e, t, n) {
7017
7017
  throw new TypeError(x$);
7018
7018
  t = Fr(t) || 0, ke(n) && (u = !!n.leading, d = "maxWait" in n, s = d ? b$(Fr(n.maxWait) || 0, t) : s, h = "trailing" in n ? !!n.trailing : h);
7019
7019
  function p(S) {
7020
- var M = r, k = i;
7021
- return r = i = void 0, c = S, a = e.apply(k, M), a;
7020
+ var $ = r, D = i;
7021
+ return r = i = void 0, c = S, a = e.apply(D, $), a;
7022
7022
  }
7023
7023
  function f(S) {
7024
7024
  return c = S, o = setTimeout(v, t), u ? p(S) : a;
7025
7025
  }
7026
7026
  function g(S) {
7027
- var M = S - l, k = S - c, C = t - M;
7028
- return d ? _$(C, s - k) : C;
7027
+ var $ = S - l, D = S - c, C = t - $;
7028
+ return d ? _$(C, s - D) : C;
7029
7029
  }
7030
7030
  function m(S) {
7031
- var M = S - l, k = S - c;
7032
- return l === void 0 || M >= t || M < 0 || d && k >= s;
7031
+ var $ = S - l, D = S - c;
7032
+ return l === void 0 || $ >= t || $ < 0 || d && D >= s;
7033
7033
  }
7034
7034
  function v() {
7035
7035
  var S = Io();
@@ -7047,8 +7047,8 @@ function ba(e, t, n) {
7047
7047
  return o === void 0 ? a : b(Io());
7048
7048
  }
7049
7049
  function x() {
7050
- var S = Io(), M = m(S);
7051
- if (r = arguments, i = this, l = S, M) {
7050
+ var S = Io(), $ = m(S);
7051
+ if (r = arguments, i = this, l = S, $) {
7052
7052
  if (o === void 0)
7053
7053
  return f(l);
7054
7054
  if (d)
@@ -7315,7 +7315,7 @@ function yi(e, t, n) {
7315
7315
  function U$(e) {
7316
7316
  var t = e.dateTime, n = e.date, r = e.time, i = e.periods, s = e.days, a = e.shortDays, o = e.months, l = e.shortMonths, c = xi(i), u = bi(i), d = xi(s), h = bi(s), p = xi(a), f = bi(a), g = xi(o), m = bi(o), v = xi(l), b = bi(l), _ = {
7317
7317
  a: L,
7318
- A: D,
7318
+ A: k,
7319
7319
  b: U,
7320
7320
  B: Z,
7321
7321
  c: null,
@@ -7381,7 +7381,7 @@ function U$(e) {
7381
7381
  "%": td
7382
7382
  }, x = {
7383
7383
  a: R,
7384
- A: $,
7384
+ A: M,
7385
7385
  b: H,
7386
7386
  B: P,
7387
7387
  c: B,
@@ -7422,9 +7422,9 @@ function U$(e) {
7422
7422
  return V.push(z.slice(st, ut)), V.join("");
7423
7423
  };
7424
7424
  }
7425
- function M(z, W) {
7425
+ function $(z, W) {
7426
7426
  return function(X) {
7427
- var V = yi(1900, void 0, 1), ut = k(V, z, X += "", 0), st, kt;
7427
+ var V = yi(1900, void 0, 1), ut = D(V, z, X += "", 0), st, kt;
7428
7428
  if (ut != X.length) return null;
7429
7429
  if ("Q" in V) return new Date(V.Q);
7430
7430
  if ("s" in V) return new Date(V.s * 1e3 + ("L" in V ? V.L : 0));
@@ -7435,7 +7435,7 @@ function U$(e) {
7435
7435
  return "Z" in V ? (V.H += V.Z / 100 | 0, V.M += V.Z % 100, Ho(V)) : Bo(V);
7436
7436
  };
7437
7437
  }
7438
- function k(z, W, X, V) {
7438
+ function D(z, W, X, V) {
7439
7439
  for (var ut = 0, st = W.length, kt = X.length, Nt, nt; ut < st; ) {
7440
7440
  if (V >= kt) return -1;
7441
7441
  if (Nt = W.charCodeAt(ut++), Nt === 37) {
@@ -7453,7 +7453,7 @@ function U$(e) {
7453
7453
  var V = p.exec(W.slice(X));
7454
7454
  return V ? (z.w = f.get(V[0].toLowerCase()), X + V[0].length) : -1;
7455
7455
  }
7456
- function $(z, W, X) {
7456
+ function M(z, W, X) {
7457
7457
  var V = d.exec(W.slice(X));
7458
7458
  return V ? (z.w = h.get(V[0].toLowerCase()), X + V[0].length) : -1;
7459
7459
  }
@@ -7466,18 +7466,18 @@ function U$(e) {
7466
7466
  return V ? (z.m = m.get(V[0].toLowerCase()), X + V[0].length) : -1;
7467
7467
  }
7468
7468
  function B(z, W, X) {
7469
- return k(z, t, W, X);
7469
+ return D(z, t, W, X);
7470
7470
  }
7471
7471
  function O(z, W, X) {
7472
- return k(z, n, W, X);
7472
+ return D(z, n, W, X);
7473
7473
  }
7474
7474
  function w(z, W, X) {
7475
- return k(z, r, W, X);
7475
+ return D(z, r, W, X);
7476
7476
  }
7477
7477
  function L(z) {
7478
7478
  return a[z.getDay()];
7479
7479
  }
7480
- function D(z) {
7480
+ function k(z) {
7481
7481
  return s[z.getDay()];
7482
7482
  }
7483
7483
  function U(z) {
@@ -7518,7 +7518,7 @@ function U$(e) {
7518
7518
  }, W;
7519
7519
  },
7520
7520
  parse: function(z) {
7521
- var W = M(z += "", !1);
7521
+ var W = $(z += "", !1);
7522
7522
  return W.toString = function() {
7523
7523
  return z;
7524
7524
  }, W;
@@ -7530,7 +7530,7 @@ function U$(e) {
7530
7530
  }, W;
7531
7531
  },
7532
7532
  utcParse: function(z) {
7533
- var W = M(z += "", !0);
7533
+ var W = $(z += "", !0);
7534
7534
  return W.toString = function() {
7535
7535
  return z;
7536
7536
  }, W;
@@ -7797,13 +7797,13 @@ function tg(e, t, n, r, i, s, a, o, l, c) {
7797
7797
  }, u.domain = function(S) {
7798
7798
  return arguments.length ? h(Array.from(S, HM)) : h().map(BM);
7799
7799
  }, u.ticks = function(S) {
7800
- var M = h();
7801
- return e(M[0], M[M.length - 1], S ?? 10);
7802
- }, u.tickFormat = function(S, M) {
7803
- return M == null ? x : c(M);
7800
+ var $ = h();
7801
+ return e($[0], $[$.length - 1], S ?? 10);
7802
+ }, u.tickFormat = function(S, $) {
7803
+ return $ == null ? x : c($);
7804
7804
  }, u.nice = function(S) {
7805
- var M = h();
7806
- return (!S || typeof S.range != "function") && (S = t(M[0], M[M.length - 1], S ?? 10)), S ? h(qm(M, S)) : u;
7805
+ var $ = h();
7806
+ return (!S || typeof S.range != "function") && (S = t($[0], $[$.length - 1], S ?? 10)), S ? h(qm($, S)) : u;
7807
7807
  }, u.copy = function() {
7808
7808
  return Hc(u, tg(e, t, n, r, i, s, a, o, l, c));
7809
7809
  }, u;
@@ -8957,15 +8957,15 @@ function GC() {
8957
8957
  function co(e, t) {
8958
8958
  var n = [], r = null, i = null, s = 6, a = 6, o = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === Qs || e === Ai ? -1 : 1, u = e === Ai || e === Js ? "x" : "y", d = e === Qs || e === Nl ? UC : BC;
8959
8959
  function h(p) {
8960
- var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : PC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? VC : HC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), M = x.selectAll(".tick").data(f, t).order(), k = M.exit(), C = M.enter().append("g").attr("class", "tick"), R = M.select("line"), $ = M.select("text");
8961
- S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), M = M.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), $ = $.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Qs ? "0em" : e === Nl ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), M = M.transition(p), R = R.transition(p), $ = $.transition(p), k = k.transition(p).attr("opacity", vd).attr("transform", function(H) {
8960
+ var f = r ?? (t.ticks ? t.ticks.apply(t, n) : t.domain()), g = i ?? (t.tickFormat ? t.tickFormat.apply(t, n) : PC), m = Math.max(s, 0) + o, v = t.range(), b = +v[0] + l, _ = +v[v.length - 1] + l, E = (t.bandwidth ? VC : HC)(t.copy(), l), x = p.selection ? p.selection() : p, S = x.selectAll(".domain").data([null]), $ = x.selectAll(".tick").data(f, t).order(), D = $.exit(), C = $.enter().append("g").attr("class", "tick"), R = $.select("line"), M = $.select("text");
8961
+ S = S.merge(S.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), $ = $.merge(C), R = R.merge(C.append("line").attr("stroke", "currentColor").attr(u + "2", c * s)), M = M.merge(C.append("text").attr("fill", "currentColor").attr(u, c * m).attr("dy", e === Qs ? "0em" : e === Nl ? "0.71em" : "0.32em")), p !== x && (S = S.transition(p), $ = $.transition(p), R = R.transition(p), M = M.transition(p), D = D.transition(p).attr("opacity", vd).attr("transform", function(H) {
8962
8962
  return isFinite(H = E(H)) ? d(H + l) : this.getAttribute("transform");
8963
8963
  }), C.attr("opacity", vd).attr("transform", function(H) {
8964
8964
  var P = this.parentNode.__axis;
8965
8965
  return d((P && isFinite(P = P(H)) ? P : E(H)) + l);
8966
- })), k.remove(), S.attr("d", e === Ai || e === Js ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), M.attr("opacity", 1).attr("transform", function(H) {
8966
+ })), D.remove(), S.attr("d", e === Ai || e === Js ? a ? "M" + c * a + "," + b + "H" + l + "V" + _ + "H" + c * a : "M" + l + "," + b + "V" + _ : a ? "M" + b + "," + c * a + "V" + l + "H" + _ + "V" + c * a : "M" + b + "," + l + "H" + _), $.attr("opacity", 1).attr("transform", function(H) {
8967
8967
  return d(E(H) + l);
8968
- }), R.attr(u + "2", c * s), $.attr(u, c * m).text(g), x.filter(GC).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === Js ? "start" : e === Ai ? "end" : "middle"), x.each(function() {
8968
+ }), R.attr(u + "2", c * s), M.attr(u, c * m).text(g), x.filter(GC).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === Js ? "start" : e === Ai ? "end" : "middle"), x.each(function() {
8969
8969
  this.__axis = E;
8970
8970
  });
8971
8971
  }
@@ -9155,14 +9155,14 @@ function rA(e) {
9155
9155
  }).on("interrupt.brush end.brush", function(_) {
9156
9156
  u(this, arguments).end(_);
9157
9157
  }).tween("brush", function() {
9158
- var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, M = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), k = gs(S, M);
9158
+ var _ = this, E = _.__brush, x = u(_, arguments), S = E.selection, $ = e.input(typeof v == "function" ? v.apply(this, arguments) : v, E.extent), D = gs(S, $);
9159
9159
  function C(R) {
9160
- E.selection = R === 1 && M === null ? null : k(R), c.call(_), x.brush();
9160
+ E.selection = R === 1 && $ === null ? null : D(R), c.call(_), x.brush();
9161
9161
  }
9162
- return S !== null && M !== null ? C : C(1);
9162
+ return S !== null && $ !== null ? C : C(1);
9163
9163
  }) : m.each(function() {
9164
- var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), M = u(_, E).beforestart();
9165
- Ml(_), x.selection = S === null ? null : S, c.call(_), M.start(b).brush(b).end(b);
9164
+ var _ = this, E = arguments, x = _.__brush, S = e.input(typeof v == "function" ? v.apply(_, E) : v, x.extent), $ = u(_, E).beforestart();
9165
+ Ml(_), x.selection = S === null ? null : S, c.call(_), $.start(b).brush(b).end(b);
9166
9166
  });
9167
9167
  }, l.clear = function(m, v) {
9168
9168
  l.move(m, null, v);
@@ -9217,25 +9217,25 @@ function rA(e) {
9217
9217
  };
9218
9218
  function h(m) {
9219
9219
  if (o && !m.touches || !n.apply(this, arguments)) return;
9220
- var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : KC[b], x = e === ta ? null : QC[b], S = qo(v), M = S.extent, k = S.selection, C = M[0][0], R, $, H = M[0][1], P, B, O = M[1][0], w, L, D = M[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
9220
+ var v = this, b = m.target.__data__.type, _ = (i && m.metaKey ? b = "overlay" : b) === "selection" ? yd : i && m.altKey ? $r : wr, E = e === Wo ? null : KC[b], x = e === ta ? null : QC[b], S = qo(v), $ = S.extent, D = S.selection, C = $[0][0], R, M, H = $[0][1], P, B, O = $[1][0], w, L, k = $[1][1], U, Z, j = 0, F = 0, Y, ot = E && x && i && m.shiftKey, Q, q, tt = Array.from(m.touches || [m], (nt) => {
9221
9221
  const yt = nt.identifier;
9222
9222
  return nt = rr(nt, v), nt.point0 = nt.slice(), nt.identifier = yt, nt;
9223
9223
  });
9224
9224
  Ml(v);
9225
9225
  var lt = u(v, arguments, !0).beforestart();
9226
9226
  if (b === "overlay") {
9227
- k && (Y = !0);
9227
+ D && (Y = !0);
9228
9228
  const nt = [tt[0], tt[1] || tt[0]];
9229
- S.selection = k = [[
9229
+ S.selection = D = [[
9230
9230
  R = e === Wo ? C : ee(nt[0][0], nt[1][0]),
9231
9231
  P = e === ta ? H : ee(nt[0][1], nt[1][1])
9232
9232
  ], [
9233
9233
  w = e === Wo ? O : te(nt[0][0], nt[1][0]),
9234
- U = e === ta ? D : te(nt[0][1], nt[1][1])
9234
+ U = e === ta ? k : te(nt[0][1], nt[1][1])
9235
9235
  ]], tt.length > 1 && ut(m);
9236
9236
  } else
9237
- R = k[0][0], P = k[0][1], w = k[1][0], U = k[1][1];
9238
- $ = R, B = P, L = w, Z = U;
9237
+ R = D[0][0], P = D[0][1], w = D[1][0], U = D[1][1];
9238
+ M = R, B = P, L = w, Z = U;
9239
9239
  var z = I(v).attr("pointer-events", "none"), W = z.selectAll(".overlay").attr("cursor", hn[b]);
9240
9240
  if (m.touches)
9241
9241
  lt.moved = V, lt.ended = st;
@@ -9262,19 +9262,19 @@ function rA(e) {
9262
9262
  switch (j = yt[0] - Se[0], F = yt[1] - Se[1], _) {
9263
9263
  case jo:
9264
9264
  case yd: {
9265
- E && (j = te(C - R, ee(O - w, j)), $ = R + j, L = w + j), x && (F = te(H - P, ee(D - U, F)), B = P + F, Z = U + F);
9265
+ E && (j = te(C - R, ee(O - w, j)), M = R + j, L = w + j), x && (F = te(H - P, ee(k - U, F)), B = P + F, Z = U + F);
9266
9266
  break;
9267
9267
  }
9268
9268
  case wr: {
9269
- tt[1] ? (E && ($ = te(C, ee(O, tt[0][0])), L = te(C, ee(O, tt[1][0])), E = 1), x && (B = te(H, ee(D, tt[0][1])), Z = te(H, ee(D, tt[1][1])), x = 1)) : (E < 0 ? (j = te(C - R, ee(O - R, j)), $ = R + j, L = w) : E > 0 && (j = te(C - w, ee(O - w, j)), $ = R, L = w + j), x < 0 ? (F = te(H - P, ee(D - P, F)), B = P + F, Z = U) : x > 0 && (F = te(H - U, ee(D - U, F)), B = P, Z = U + F));
9269
+ tt[1] ? (E && (M = te(C, ee(O, tt[0][0])), L = te(C, ee(O, tt[1][0])), E = 1), x && (B = te(H, ee(k, tt[0][1])), Z = te(H, ee(k, tt[1][1])), x = 1)) : (E < 0 ? (j = te(C - R, ee(O - R, j)), M = R + j, L = w) : E > 0 && (j = te(C - w, ee(O - w, j)), M = R, L = w + j), x < 0 ? (F = te(H - P, ee(k - P, F)), B = P + F, Z = U) : x > 0 && (F = te(H - U, ee(k - U, F)), B = P, Z = U + F));
9270
9270
  break;
9271
9271
  }
9272
9272
  case $r: {
9273
- E && ($ = te(C, ee(O, R - j * E)), L = te(C, ee(O, w + j * E))), x && (B = te(H, ee(D, P - F * x)), Z = te(H, ee(D, U + F * x)));
9273
+ E && (M = te(C, ee(O, R - j * E)), L = te(C, ee(O, w + j * E))), x && (B = te(H, ee(k, P - F * x)), Z = te(H, ee(k, U + F * x)));
9274
9274
  break;
9275
9275
  }
9276
9276
  }
9277
- L < $ && (E *= -1, ge = R, R = w, w = ge, ge = $, $ = L, L = ge, b in Ed && W.attr("cursor", hn[b = Ed[b]])), Z < B && (x *= -1, ge = P, P = U, U = ge, ge = B, B = Z, Z = ge, b in Od && W.attr("cursor", hn[b = Od[b]])), S.selection && (k = S.selection), Q && ($ = k[0][0], L = k[1][0]), q && (B = k[0][1], Z = k[1][1]), (k[0][0] !== $ || k[0][1] !== B || k[1][0] !== L || k[1][1] !== Z) && (S.selection = [[$, B], [L, Z]], c.call(v), lt.brush(nt, _.name));
9277
+ L < M && (E *= -1, ge = R, R = w, w = ge, ge = M, M = L, L = ge, b in Ed && W.attr("cursor", hn[b = Ed[b]])), Z < B && (x *= -1, ge = P, P = U, U = ge, ge = B, B = Z, Z = ge, b in Od && W.attr("cursor", hn[b = Od[b]])), S.selection && (D = S.selection), Q && (M = D[0][0], L = D[1][0]), q && (B = D[0][1], Z = D[1][1]), (D[0][0] !== M || D[0][1] !== B || D[1][0] !== L || D[1][1] !== Z) && (S.selection = [[M, B], [L, Z]], c.call(v), lt.brush(nt, _.name));
9278
9278
  }
9279
9279
  function st(nt) {
9280
9280
  if (ZC(nt), nt.touches) {
@@ -9284,7 +9284,7 @@ function rA(e) {
9284
9284
  }, 500);
9285
9285
  } else
9286
9286
  WC(nt.view, Y), X.on("keydown.brush keyup.brush mousemove.brush mouseup.brush", null);
9287
- z.attr("pointer-events", "all"), W.attr("cursor", hn.overlay), S.selection && (k = S.selection), nA(k) && (S.selection = null, c.call(v)), lt.end(nt, _.name);
9287
+ z.attr("pointer-events", "all"), W.attr("cursor", hn.overlay), S.selection && (D = S.selection), nA(D) && (S.selection = null, c.call(v)), lt.end(nt, _.name);
9288
9288
  }
9289
9289
  function kt(nt) {
9290
9290
  switch (nt.keyCode) {
@@ -9293,11 +9293,11 @@ function rA(e) {
9293
9293
  break;
9294
9294
  }
9295
9295
  case 18: {
9296
- _ === wr && (E && (w = L - j * E, R = $ + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r, ut(nt));
9296
+ _ === wr && (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r, ut(nt));
9297
9297
  break;
9298
9298
  }
9299
9299
  case 32: {
9300
- (_ === wr || _ === $r) && (E < 0 ? w = L - j : E > 0 && (R = $ - j), x < 0 ? U = Z - F : x > 0 && (P = B - F), _ = jo, W.attr("cursor", hn.selection), ut(nt));
9300
+ (_ === wr || _ === $r) && (E < 0 ? w = L - j : E > 0 && (R = M - j), x < 0 ? U = Z - F : x > 0 && (P = B - F), _ = jo, W.attr("cursor", hn.selection), ut(nt));
9301
9301
  break;
9302
9302
  }
9303
9303
  default:
@@ -9312,11 +9312,11 @@ function rA(e) {
9312
9312
  break;
9313
9313
  }
9314
9314
  case 18: {
9315
- _ === $r && (E < 0 ? w = L : E > 0 && (R = $), x < 0 ? U = Z : x > 0 && (P = B), _ = wr, ut(nt));
9315
+ _ === $r && (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = wr, ut(nt));
9316
9316
  break;
9317
9317
  }
9318
9318
  case 32: {
9319
- _ === jo && (nt.altKey ? (E && (w = L - j * E, R = $ + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r) : (E < 0 ? w = L : E > 0 && (R = $), x < 0 ? U = Z : x > 0 && (P = B), _ = wr), W.attr("cursor", hn[b]), ut(nt));
9319
+ _ === jo && (nt.altKey ? (E && (w = L - j * E, R = M + j * E), x && (U = Z - F * x, P = B + F * x), _ = $r) : (E < 0 ? w = L : E > 0 && (R = M), x < 0 ? U = Z : x > 0 && (P = B), _ = wr), W.attr("cursor", hn[b]), ut(nt));
9320
9320
  break;
9321
9321
  }
9322
9322
  default:
@@ -9642,15 +9642,15 @@ function dA(e, t) {
9642
9642
  i === 1 ? r = de + Ot : i === -1 && (r = -de - Ot);
9643
9643
  for (var c = 0, u = e.length; c < u; ++c)
9644
9644
  if (h = (d = e[c]).length)
9645
- for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = M, p = _) {
9646
- var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), M = Tt(x), k = E - f, C = k >= 0 ? 1 : -1, R = C * k, $ = R > ft, H = m * S;
9647
- if (l.add(lr(H * C * xt(R), v * M + H * Tt(R))), a += $ ? k + C * Ee : k, $ ^ f >= n ^ E >= n) {
9645
+ for (var d, h, p = d[h - 1], f = Xo(p), g = p[1] / 2 + Sd, m = xt(g), v = Tt(g), b = 0; b < h; ++b, f = E, m = S, v = $, p = _) {
9646
+ var _ = d[b], E = Xo(_), x = _[1] / 2 + Sd, S = xt(x), $ = Tt(x), D = E - f, C = D >= 0 ? 1 : -1, R = C * D, M = R > ft, H = m * S;
9647
+ if (l.add(lr(H * C * xt(R), v * $ + H * Tt(R))), a += M ? D + C * Ee : D, M ^ f >= n ^ E >= n) {
9648
9648
  var P = Ma(ni(p), ni(_));
9649
9649
  Fl(P);
9650
9650
  var B = Ma(s, P);
9651
9651
  Fl(B);
9652
- var O = ($ ^ k >= 0 ? -1 : 1) * Cn(B[2]);
9653
- (r > O || r === O && (P[0] || P[1])) && (o += $ ^ k >= 0 ? 1 : -1);
9652
+ var O = (M ^ D >= 0 ? -1 : 1) * Cn(B[2]);
9653
+ (r > O || r === O && (P[0] || P[1])) && (o += M ^ D >= 0 ? 1 : -1);
9654
9654
  }
9655
9655
  }
9656
9656
  return (a < -Ot || a < Ot && l < -Ig) ^ o & 1;
@@ -9693,16 +9693,16 @@ function Hg(e, t, n, r) {
9693
9693
  }
9694
9694
  function _() {
9695
9695
  v(d[0][0], d[0][1]), o.lineEnd();
9696
- var E = o.clean(), x = a.result(), S, M = x.length, k, C, R;
9697
- if (d.pop(), c.push(d), d = null, !!M) {
9696
+ var E = o.clean(), x = a.result(), S, $ = x.length, D, C, R;
9697
+ if (d.pop(), c.push(d), d = null, !!$) {
9698
9698
  if (E & 1) {
9699
- if (C = x[0], (k = C.length - 1) > 0) {
9700
- for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < k; ++S) i.point((R = C[S])[0], R[1]);
9699
+ if (C = x[0], (D = C.length - 1) > 0) {
9700
+ for (l || (i.polygonStart(), l = !0), i.lineStart(), S = 0; S < D; ++S) i.point((R = C[S])[0], R[1]);
9701
9701
  i.lineEnd();
9702
9702
  }
9703
9703
  return;
9704
9704
  }
9705
- M > 1 && E & 2 && x.push(x.pop().concat(x.shift())), u.push(x.filter(pA));
9705
+ $ > 1 && E & 2 && x.push(x.pop().concat(x.shift())), u.push(x.filter(pA));
9706
9706
  }
9707
9707
  }
9708
9708
  return h;
@@ -9791,18 +9791,18 @@ function yA(e) {
9791
9791
  function l(u, d, h) {
9792
9792
  var p = ni(u), f = ni(d), g = [1, 0, 0], m = Ma(p, f), v = ks(m, m), b = m[0], _ = v - b * b;
9793
9793
  if (!_) return !h && u;
9794
- var E = t * v / _, x = -t * b / _, S = Ma(g, m), M = Rs(g, E), k = Rs(m, x);
9795
- Yo(M, k);
9796
- var C = S, R = ks(M, C), $ = ks(C, C), H = R * R - $ * (ks(M, M) - 1);
9794
+ var E = t * v / _, x = -t * b / _, S = Ma(g, m), $ = Rs(g, E), D = Rs(m, x);
9795
+ Yo($, D);
9796
+ var C = S, R = ks($, C), M = ks(C, C), H = R * R - M * (ks($, $) - 1);
9797
9797
  if (!(H < 0)) {
9798
- var P = je(H), B = Rs(C, (-R - P) / $);
9799
- if (Yo(B, M), B = zl(B), !h) return B;
9800
- var O = u[0], w = d[0], L = u[1], D = d[1], U;
9798
+ var P = je(H), B = Rs(C, (-R - P) / M);
9799
+ if (Yo(B, $), B = zl(B), !h) return B;
9800
+ var O = u[0], w = d[0], L = u[1], k = d[1], U;
9801
9801
  w < O && (U = O, O = w, w = U);
9802
9802
  var Z = w - O, j = St(Z - ft) < Ot, F = j || Z < Ot;
9803
- if (!j && D < L && (U = L, L = D, D = U), F ? j ? L + D > 0 ^ B[1] < (St(B[0] - O) < Ot ? L : D) : L <= B[1] && B[1] <= D : Z > ft ^ (O <= B[0] && B[0] <= w)) {
9804
- var Y = Rs(C, (-R + P) / $);
9805
- return Yo(Y, M), [B, zl(Y)];
9803
+ if (!j && k < L && (U = L, L = k, k = U), F ? j ? L + k > 0 ^ B[1] < (St(B[0] - O) < Ot ? L : k) : L <= B[1] && B[1] <= k : Z > ft ^ (O <= B[0] && B[0] <= w)) {
9804
+ var Y = Rs(C, (-R + P) / M);
9805
+ return Yo(Y, $), [B, zl(Y)];
9806
9806
  }
9807
9807
  }
9808
9808
  }
@@ -9877,34 +9877,34 @@ function bA(e, t, n, r) {
9877
9877
  return d !== h ? d - h : d === 0 ? u[1] - c[1] : d === 1 ? c[0] - u[0] : d === 2 ? c[1] - u[1] : u[0] - c[0];
9878
9878
  }
9879
9879
  return function(c) {
9880
- var u = c, d = Ug(), h, p, f, g, m, v, b, _, E, x, S, M = {
9881
- point: k,
9880
+ var u = c, d = Ug(), h, p, f, g, m, v, b, _, E, x, S, $ = {
9881
+ point: D,
9882
9882
  lineStart: H,
9883
9883
  lineEnd: P,
9884
9884
  polygonStart: R,
9885
- polygonEnd: $
9885
+ polygonEnd: M
9886
9886
  };
9887
- function k(O, w) {
9887
+ function D(O, w) {
9888
9888
  i(O, w) && u.point(O, w);
9889
9889
  }
9890
9890
  function C() {
9891
9891
  for (var O = 0, w = 0, L = p.length; w < L; ++w)
9892
- for (var D = p[w], U = 1, Z = D.length, j = D[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
9893
- F = ot, Y = Q, j = D[U], ot = j[0], Q = j[1], Y <= r ? Q > r && (ot - F) * (r - Y) > (Q - Y) * (e - F) && ++O : Q <= r && (ot - F) * (r - Y) < (Q - Y) * (e - F) && --O;
9892
+ for (var k = p[w], U = 1, Z = k.length, j = k[0], F, Y, ot = j[0], Q = j[1]; U < Z; ++U)
9893
+ F = ot, Y = Q, j = k[U], ot = j[0], Q = j[1], Y <= r ? Q > r && (ot - F) * (r - Y) > (Q - Y) * (e - F) && ++O : Q <= r && (ot - F) * (r - Y) < (Q - Y) * (e - F) && --O;
9894
9894
  return O;
9895
9895
  }
9896
9896
  function R() {
9897
9897
  u = d, h = [], p = [], S = !0;
9898
9898
  }
9899
- function $() {
9899
+ function M() {
9900
9900
  var O = C(), w = S && O, L = (h = Ag(h)).length;
9901
9901
  (w || L) && (c.polygonStart(), w && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), L && Bg(h, o, O, s, c), c.polygonEnd()), u = c, h = p = f = null;
9902
9902
  }
9903
9903
  function H() {
9904
- M.point = B, p && p.push(f = []), x = !0, E = !1, b = _ = NaN;
9904
+ $.point = B, p && p.push(f = []), x = !0, E = !1, b = _ = NaN;
9905
9905
  }
9906
9906
  function P() {
9907
- h && (B(g, m), v && E && d.rejoin(), h.push(d.result())), M.point = k, E && u.lineEnd();
9907
+ h && (B(g, m), v && E && d.rejoin(), h.push(d.result())), $.point = D, E && u.lineEnd();
9908
9908
  }
9909
9909
  function B(O, w) {
9910
9910
  var L = i(O, w);
@@ -9912,12 +9912,12 @@ function bA(e, t, n, r) {
9912
9912
  g = O, m = w, v = L, x = !1, L && (u.lineStart(), u.point(O, w));
9913
9913
  else if (L && E) u.point(O, w);
9914
9914
  else {
9915
- var D = [b = Math.max(Ns, Math.min(Li, b)), _ = Math.max(Ns, Math.min(Li, _))], U = [O = Math.max(Ns, Math.min(Li, O)), w = Math.max(Ns, Math.min(Li, w))];
9916
- xA(D, U, e, t, n, r) ? (E || (u.lineStart(), u.point(D[0], D[1])), u.point(U[0], U[1]), L || u.lineEnd(), S = !1) : L && (u.lineStart(), u.point(O, w), S = !1);
9915
+ var k = [b = Math.max(Ns, Math.min(Li, b)), _ = Math.max(Ns, Math.min(Li, _))], U = [O = Math.max(Ns, Math.min(Li, O)), w = Math.max(Ns, Math.min(Li, w))];
9916
+ xA(k, U, e, t, n, r) ? (E || (u.lineStart(), u.point(k[0], k[1])), u.point(U[0], U[1]), L || u.lineEnd(), S = !1) : L && (u.lineStart(), u.point(O, w), S = !1);
9917
9917
  }
9918
9918
  b = O, _ = w, E = L;
9919
9919
  }
9920
- return M;
9920
+ return $;
9921
9921
  };
9922
9922
  }
9923
9923
  const ql = (e) => e;
@@ -10235,8 +10235,8 @@ function UA(e, t) {
10235
10235
  function n(r, i, s, a, o, l, c, u, d, h, p, f, g, m) {
10236
10236
  var v = c - r, b = u - i, _ = v * v + b * b;
10237
10237
  if (_ > 4 * t && g--) {
10238
- var E = a + h, x = o + p, S = l + f, M = je(E * E + x * x + S * S), k = Cn(S /= M), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : lr(x, E), R = e(C, k), $ = R[0], H = R[1], P = $ - r, B = H - i, O = b * P - v * B;
10239
- (O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < NA) && (n(r, i, s, a, o, l, $, H, C, E /= M, x /= M, S, g, m), m.point($, H), n($, H, C, E, x, S, c, u, d, h, p, f, g, m));
10238
+ var E = a + h, x = o + p, S = l + f, $ = je(E * E + x * x + S * S), D = Cn(S /= $), C = St(St(S) - 1) < Ot || St(s - d) < Ot ? (s + d) / 2 : lr(x, E), R = e(C, D), M = R[0], H = R[1], P = M - r, B = H - i, O = b * P - v * B;
10239
+ (O * O / _ > t || St((v * P + b * B) / _ - 0.5) > 0.3 || a * h + o * p + l * f < NA) && (n(r, i, s, a, o, l, M, H, C, E /= $, x /= $, S, g, m), m.point(M, H), n(M, H, C, E, x, S, c, u, d, h, p, f, g, m));
10240
10240
  }
10241
10241
  }
10242
10242
  return function(r) {
@@ -10251,26 +10251,26 @@ function UA(e, t) {
10251
10251
  r.polygonEnd(), m.lineStart = b;
10252
10252
  }
10253
10253
  };
10254
- function v(k, C) {
10255
- k = e(k, C), r.point(k[0], k[1]);
10254
+ function v(D, C) {
10255
+ D = e(D, C), r.point(D[0], D[1]);
10256
10256
  }
10257
10257
  function b() {
10258
10258
  d = NaN, m.point = _, r.lineStart();
10259
10259
  }
10260
- function _(k, C) {
10261
- var R = ni([k, C]), $ = e(k, C);
10262
- n(d, h, u, p, f, g, d = $[0], h = $[1], u = k, p = R[0], f = R[1], g = R[2], Hd, r), r.point(d, h);
10260
+ function _(D, C) {
10261
+ var R = ni([D, C]), M = e(D, C);
10262
+ n(d, h, u, p, f, g, d = M[0], h = M[1], u = D, p = R[0], f = R[1], g = R[2], Hd, r), r.point(d, h);
10263
10263
  }
10264
10264
  function E() {
10265
10265
  m.point = v, r.lineEnd();
10266
10266
  }
10267
10267
  function x() {
10268
- b(), m.point = S, m.lineEnd = M;
10268
+ b(), m.point = S, m.lineEnd = $;
10269
10269
  }
10270
- function S(k, C) {
10271
- _(i = k, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
10270
+ function S(D, C) {
10271
+ _(i = D, C), s = d, a = h, o = p, l = f, c = g, m.point = _;
10272
10272
  }
10273
- function M() {
10273
+ function $() {
10274
10274
  n(d, h, u, p, f, g, s, a, i, o, l, c, Hd, r), m.lineEnd = E, E();
10275
10275
  }
10276
10276
  return m;
@@ -10313,57 +10313,57 @@ function uo(e) {
10313
10313
  })();
10314
10314
  }
10315
10315
  function Jg(e) {
10316
- var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, g = kd, m = null, v, b, _, E = ql, x = 0.5, S, M, k, C, R;
10317
- function $(O) {
10318
- return k(O[0] * Bt, O[1] * Bt);
10316
+ var t, n = 150, r = 480, i = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, d = 0, h = 1, p = 1, f = null, g = kd, m = null, v, b, _, E = ql, x = 0.5, S, $, D, C, R;
10317
+ function M(O) {
10318
+ return D(O[0] * Bt, O[1] * Bt);
10319
10319
  }
10320
10320
  function H(O) {
10321
- return O = k.invert(O[0], O[1]), O && [O[0] * se, O[1] * se];
10321
+ return O = D.invert(O[0], O[1]), O && [O[0] * se, O[1] * se];
10322
10322
  }
10323
- $.stream = function(O) {
10323
+ M.stream = function(O) {
10324
10324
  return C && R === O ? C : C = BA(HA(u)(g(S(E(R = O)))));
10325
- }, $.preclip = function(O) {
10325
+ }, M.preclip = function(O) {
10326
10326
  return arguments.length ? (g = O, f = void 0, B()) : g;
10327
- }, $.postclip = function(O) {
10327
+ }, M.postclip = function(O) {
10328
10328
  return arguments.length ? (E = O, m = v = b = _ = null, B()) : E;
10329
- }, $.clipAngle = function(O) {
10329
+ }, M.clipAngle = function(O) {
10330
10330
  return arguments.length ? (g = +O ? yA(f = O * Bt) : (f = null, kd), B()) : f * se;
10331
- }, $.clipExtent = function(O) {
10331
+ }, M.clipExtent = function(O) {
10332
10332
  return arguments.length ? (E = O == null ? (m = v = b = _ = null, ql) : bA(m = +O[0][0], v = +O[0][1], b = +O[1][0], _ = +O[1][1]), B()) : m == null ? null : [[m, v], [b, _]];
10333
- }, $.scale = function(O) {
10333
+ }, M.scale = function(O) {
10334
10334
  return arguments.length ? (n = +O, P()) : n;
10335
- }, $.translate = function(O) {
10335
+ }, M.translate = function(O) {
10336
10336
  return arguments.length ? (r = +O[0], i = +O[1], P()) : [r, i];
10337
- }, $.center = function(O) {
10337
+ }, M.center = function(O) {
10338
10338
  return arguments.length ? (s = O[0] % 360 * Bt, a = O[1] % 360 * Bt, P()) : [s * se, a * se];
10339
- }, $.rotate = function(O) {
10339
+ }, M.rotate = function(O) {
10340
10340
  return arguments.length ? (o = O[0] % 360 * Bt, l = O[1] % 360 * Bt, c = O.length > 2 ? O[2] % 360 * Bt : 0, P()) : [o * se, l * se, c * se];
10341
- }, $.angle = function(O) {
10341
+ }, M.angle = function(O) {
10342
10342
  return arguments.length ? (d = O % 360 * Bt, P()) : d * se;
10343
- }, $.reflectX = function(O) {
10343
+ }, M.reflectX = function(O) {
10344
10344
  return arguments.length ? (h = O ? -1 : 1, P()) : h < 0;
10345
- }, $.reflectY = function(O) {
10345
+ }, M.reflectY = function(O) {
10346
10346
  return arguments.length ? (p = O ? -1 : 1, P()) : p < 0;
10347
- }, $.precision = function(O) {
10348
- return arguments.length ? (S = Vd(M, x = O * O), B()) : je(x);
10349
- }, $.fitExtent = function(O, w) {
10350
- return Qg($, O, w);
10351
- }, $.fitSize = function(O, w) {
10352
- return kA($, O, w);
10353
- }, $.fitWidth = function(O, w) {
10354
- return RA($, O, w);
10355
- }, $.fitHeight = function(O, w) {
10356
- return IA($, O, w);
10347
+ }, M.precision = function(O) {
10348
+ return arguments.length ? (S = Vd($, x = O * O), B()) : je(x);
10349
+ }, M.fitExtent = function(O, w) {
10350
+ return Qg(M, O, w);
10351
+ }, M.fitSize = function(O, w) {
10352
+ return kA(M, O, w);
10353
+ }, M.fitWidth = function(O, w) {
10354
+ return RA(M, O, w);
10355
+ }, M.fitHeight = function(O, w) {
10356
+ return IA(M, O, w);
10357
10357
  };
10358
10358
  function P() {
10359
10359
  var O = Gd(n, 0, 0, h, p, d).apply(null, t(s, a)), w = Gd(n, r - O[0], i - O[1], h, p, d);
10360
- return u = Pg(o, l, c), M = jl(t, w), k = jl(u, M), S = Vd(M, x), B();
10360
+ return u = Pg(o, l, c), $ = jl(t, w), D = jl(u, $), S = Vd($, x), B();
10361
10361
  }
10362
10362
  function B() {
10363
- return C = R = null, $;
10363
+ return C = R = null, M;
10364
10364
  }
10365
10365
  return function() {
10366
- return t = e.apply(this, arguments), $.invert = t.invert && H, P();
10366
+ return t = e.apply(this, arguments), M.invert = t.invert && H, P();
10367
10367
  };
10368
10368
  }
10369
10369
  function tv(e) {
@@ -10757,10 +10757,10 @@ function Ni(e, t) {
10757
10757
  };
10758
10758
  }
10759
10759
  function av(e, t, n) {
10760
- var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, g = i - u, m = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * g, S = (f * E - g * _) / (x * 2) - r, M = (g * m - f * v) / x, k = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * m) / x, R = M * M + C * C - 1, $ = 2 * (s + S * M + k * C), H = S * S + k * k - s * s, P = -(Math.abs(R) > 1e-6 ? ($ + Math.sqrt($ * $ - 4 * R * H)) / (2 * R) : H / $);
10760
+ var r = e.x, i = e.y, s = e.r, a = t.x, o = t.y, l = t.r, c = n.x, u = n.y, d = n.r, h = r - a, p = r - c, f = i - o, g = i - u, m = l - s, v = d - s, b = r * r + i * i - s * s, _ = b - a * a - o * o + l * l, E = b - c * c - u * u + d * d, x = p * f - h * g, S = (f * E - g * _) / (x * 2) - r, $ = (g * m - f * v) / x, D = (p * _ - h * E) / (x * 2) - i, C = (h * v - p * m) / x, R = $ * $ + C * C - 1, M = 2 * (s + S * $ + D * C), H = S * S + D * D - s * s, P = -(Math.abs(R) > 1e-6 ? (M + Math.sqrt(M * M - 4 * R * H)) / (2 * R) : H / M);
10761
10761
  return {
10762
- x: r + S + M * P,
10763
- y: i + k + C * P,
10762
+ x: r + S + $ * P,
10763
+ y: i + D + C * P,
10764
10764
  r: P
10765
10765
  };
10766
10766
  }
@@ -11032,13 +11032,13 @@ function iD(e, t, n, r, i, s, a, o) {
11032
11032
  return h = (u * (t - s) - d * (e - i)) / h, [e + h * l, t + h * c];
11033
11033
  }
11034
11034
  function Bs(e, t, n, r, i, s, a) {
11035
- var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, M = (_ < 0 ? -1 : 1) * Hr(VM(0, x * x * E - S * S)), k = (S * _ - b * M) / E, C = (-S * b - _ * M) / E, R = (S * _ + b * M) / E, $ = (-S * b + _ * M) / E, H = k - m, P = C - v, B = R - m, O = $ - v;
11036
- return H * H + P * P > B * B + O * O && (k = R, C = $), {
11037
- cx: k,
11035
+ var o = e - n, l = t - r, c = (a ? s : -s) / Hr(o * o + l * l), u = c * l, d = -c * o, h = e + u, p = t + d, f = n + u, g = r + d, m = (h + f) / 2, v = (p + g) / 2, b = f - h, _ = g - p, E = b * b + _ * _, x = i - s, S = h * g - f * p, $ = (_ < 0 ? -1 : 1) * Hr(VM(0, x * x * E - S * S)), D = (S * _ - b * $) / E, C = (-S * b - _ * $) / E, R = (S * _ + b * $) / E, M = (-S * b + _ * $) / E, H = D - m, P = C - v, B = R - m, O = M - v;
11036
+ return H * H + P * P > B * B + O * O && (D = R, C = M), {
11037
+ cx: D,
11038
11038
  cy: C,
11039
11039
  x01: -u,
11040
11040
  y01: -d,
11041
- x11: k * (i / x - 1),
11041
+ x11: D * (i / x - 1),
11042
11042
  y11: C * (i / x - 1)
11043
11043
  };
11044
11044
  }
@@ -11050,22 +11050,22 @@ function ls() {
11050
11050
  else if (m > Ks - ne)
11051
11051
  o.moveTo(p * qn(f), p * Ze(f)), o.arc(0, 0, p, f, g, !v), h > ne && (o.moveTo(h * qn(g), h * Ze(g)), o.arc(0, 0, h, g, f, v));
11052
11052
  else {
11053
- var b = f, _ = g, E = f, x = g, S = m, M = m, k = a.apply(this, arguments) / 2, C = k > ne && (r ? +r.apply(this, arguments) : Hr(h * h + p * p)), R = Vo(rd(p - h) / 2, +n.apply(this, arguments)), $ = R, H = R, P, B;
11053
+ var b = f, _ = g, E = f, x = g, S = m, $ = m, D = a.apply(this, arguments) / 2, C = D > ne && (r ? +r.apply(this, arguments) : Hr(h * h + p * p)), R = Vo(rd(p - h) / 2, +n.apply(this, arguments)), M = R, H = R, P, B;
11054
11054
  if (C > ne) {
11055
- var O = id(C / h * Ze(k)), w = id(C / p * Ze(k));
11056
- (S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), (M -= w * 2) > ne ? (w *= v ? 1 : -1, b += w, _ -= w) : (M = 0, b = _ = (f + g) / 2);
11055
+ var O = id(C / h * Ze(D)), w = id(C / p * Ze(D));
11056
+ (S -= O * 2) > ne ? (O *= v ? 1 : -1, E += O, x -= O) : (S = 0, E = x = (f + g) / 2), ($ -= w * 2) > ne ? (w *= v ? 1 : -1, b += w, _ -= w) : ($ = 0, b = _ = (f + g) / 2);
11057
11057
  }
11058
- var L = p * qn(b), D = p * Ze(b), U = h * qn(x), Z = h * Ze(x);
11058
+ var L = p * qn(b), k = p * Ze(b), U = h * qn(x), Z = h * Ze(x);
11059
11059
  if (R > ne) {
11060
11060
  var j = p * qn(_), F = p * Ze(_), Y = h * qn(E), ot = h * Ze(E), Q;
11061
11061
  if (m < is)
11062
- if (Q = iD(L, D, Y, ot, j, F, U, Z)) {
11063
- var q = L - Q[0], tt = D - Q[1], lt = j - Q[0], z = F - Q[1], W = 1 / Ze(GM((q * lt + tt * z) / (Hr(q * q + tt * tt) * Hr(lt * lt + z * z))) / 2), X = Hr(Q[0] * Q[0] + Q[1] * Q[1]);
11064
- $ = Vo(R, (h - X) / (W - 1)), H = Vo(R, (p - X) / (W + 1));
11062
+ if (Q = iD(L, k, Y, ot, j, F, U, Z)) {
11063
+ var q = L - Q[0], tt = k - Q[1], lt = j - Q[0], z = F - Q[1], W = 1 / Ze(GM((q * lt + tt * z) / (Hr(q * q + tt * tt) * Hr(lt * lt + z * z))) / 2), X = Hr(Q[0] * Q[0] + Q[1] * Q[1]);
11064
+ M = Vo(R, (h - X) / (W - 1)), H = Vo(R, (p - X) / (W + 1));
11065
11065
  } else
11066
- $ = H = 0;
11066
+ M = H = 0;
11067
11067
  }
11068
- M > ne ? H > ne ? (P = Bs(Y, ot, L, D, p, H, v), B = Bs(j, F, U, Z, p, H, v), o.moveTo(P.cx + P.x01, P.cy + P.y01), H < R ? o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, p, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), !v), o.arc(B.cx, B.cy, H, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : (o.moveTo(L, D), o.arc(0, 0, p, b, _, !v)) : o.moveTo(L, D), !(h > ne) || !(S > ne) ? o.lineTo(U, Z) : $ > ne ? (P = Bs(U, Z, j, F, h, -$, v), B = Bs(L, D, Y, ot, h, -$, v), o.lineTo(P.cx + P.x01, P.cy + P.y01), $ < R ? o.arc(P.cx, P.cy, $, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, $, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, h, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), v), o.arc(B.cx, B.cy, $, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : o.arc(0, 0, h, x, E, v);
11068
+ $ > ne ? H > ne ? (P = Bs(Y, ot, L, k, p, H, v), B = Bs(j, F, U, Z, p, H, v), o.moveTo(P.cx + P.x01, P.cy + P.y01), H < R ? o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, H, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, p, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), !v), o.arc(B.cx, B.cy, H, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : (o.moveTo(L, k), o.arc(0, 0, p, b, _, !v)) : o.moveTo(L, k), !(h > ne) || !(S > ne) ? o.lineTo(U, Z) : M > ne ? (P = Bs(U, Z, j, F, h, -M, v), B = Bs(L, k, Y, ot, h, -M, v), o.lineTo(P.cx + P.x01, P.cy + P.y01), M < R ? o.arc(P.cx, P.cy, M, Jt(P.y01, P.x01), Jt(B.y01, B.x01), !v) : (o.arc(P.cx, P.cy, M, Jt(P.y01, P.x01), Jt(P.y11, P.x11), !v), o.arc(0, 0, h, Jt(P.cy + P.y11, P.cx + P.x11), Jt(B.cy + B.y11, B.cx + B.x11), v), o.arc(B.cx, B.cy, M, Jt(B.y11, B.x11), Jt(B.y01, B.x01), !v))) : o.arc(0, 0, h, x, E, v);
11069
11069
  }
11070
11070
  if (o.closePath(), u) return o = null, u + "" || null;
11071
11071
  }
@@ -11546,13 +11546,13 @@ function pv() {
11546
11546
  let E, x = "";
11547
11547
  const {
11548
11548
  implementation: S,
11549
- createNodeIterator: M,
11550
- createDocumentFragment: k,
11549
+ createNodeIterator: $,
11550
+ createDocumentFragment: D,
11551
11551
  getElementsByTagName: C
11552
11552
  } = n, {
11553
11553
  importNode: R
11554
11554
  } = r;
11555
- let $ = rp();
11555
+ let M = rp();
11556
11556
  t.isSupported = typeof cv == "function" && typeof _ == "function" && S && S.createHTMLDocument !== void 0;
11557
11557
  const {
11558
11558
  MUSTACHE_EXPR: H,
@@ -11561,7 +11561,7 @@ function pv() {
11561
11561
  DATA_ATTR: O,
11562
11562
  ARIA_ATTR: w,
11563
11563
  IS_SCRIPT_OR_DATA: L,
11564
- ATTR_WHITESPACE: D,
11564
+ ATTR_WHITESPACE: k,
11565
11565
  CUSTOM_ELEMENT: U
11566
11566
  } = np;
11567
11567
  let {
@@ -11685,7 +11685,7 @@ function pv() {
11685
11685
  const Xt = J.body || J.documentElement;
11686
11686
  return A && K && Xt.insertBefore(n.createTextNode(K), Xt.childNodes[0] || null), br === on ? C.call(J, st ? "html" : "body")[0] : st ? J.documentElement : Xt;
11687
11687
  }, wu = function(A) {
11688
- return M.call(
11688
+ return $.call(
11689
11689
  A.ownerDocument || A,
11690
11690
  A,
11691
11691
  // eslint-disable-next-line no-bitwise
@@ -11704,10 +11704,10 @@ function pv() {
11704
11704
  }
11705
11705
  const Mu = function(A) {
11706
11706
  let J = null;
11707
- if (ln($.beforeSanitizeElements, A, null), Eo(A))
11707
+ if (ln(M.beforeSanitizeElements, A, null), Eo(A))
11708
11708
  return jn(A), !0;
11709
11709
  const K = qt(A.nodeName);
11710
- if (ln($.uponSanitizeElement, A, {
11710
+ if (ln(M.uponSanitizeElement, A, {
11711
11711
  tagName: K,
11712
11712
  allowedTags: j
11713
11713
  }), ut && A.hasChildNodes() && !$u(A.firstElementChild) && ie(/<[/\w!]/g, A.innerHTML) && ie(/<[/\w!]/g, A.textContent) || A.nodeType === Ti.progressingInstruction || ut && A.nodeType === Ti.comment && ie(/<[/\w]/g, A.data))
@@ -11731,7 +11731,7 @@ function pv() {
11731
11731
  J = Ei(J, bt, " ");
11732
11732
  }), A.textContent !== J && (_i(t.removed, {
11733
11733
  element: A.cloneNode()
11734
- }), A.textContent = J)), ln($.afterSanitizeElements, A, null), !1);
11734
+ }), A.textContent = J)), ln(M.afterSanitizeElements, A, null), !1);
11735
11735
  }, Cu = function(A, J, K) {
11736
11736
  if (ge && (J === "id" || J === "name") && (K in n || K in o1))
11737
11737
  return !1;
@@ -11745,14 +11745,14 @@ function pv() {
11745
11745
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
11746
11746
  J === "is" && Q.allowCustomizedBuiltInElements && (Q.tagNameCheck instanceof RegExp && ie(Q.tagNameCheck, K) || Q.tagNameCheck instanceof Function && Q.tagNameCheck(K)))
11747
11747
  ) return !1;
11748
- } else if (!yo[J] && !ie(Z, Ei(K, D, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && ED(K, "data:") === 0 && xu[A]) && !(W && !ie(L, Ei(K, D, ""))) && K)
11748
+ } else if (!yo[J] && !ie(Z, Ei(K, k, "")) && !((J === "src" || J === "xlink:href" || J === "href") && A !== "script" && ED(K, "data:") === 0 && xu[A]) && !(W && !ie(L, Ei(K, k, ""))) && K)
11749
11749
  return !1;
11750
11750
  }
11751
11751
  return !0;
11752
11752
  }, Au = function(A) {
11753
11753
  return A !== "annotation-xml" && Kd(A, U);
11754
11754
  }, Lu = function(A) {
11755
- ln($.beforeSanitizeAttributes, A, null);
11755
+ ln(M.beforeSanitizeAttributes, A, null);
11756
11756
  const {
11757
11757
  attributes: J
11758
11758
  } = A;
@@ -11773,7 +11773,7 @@ function pv() {
11773
11773
  value: Ne
11774
11774
  } = Xt, Xe = qt(Pt), Oo = Ne;
11775
11775
  let Qt = Pt === "value" ? Oo : OD(Oo);
11776
- if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln($.uponSanitizeAttribute, A, K), Qt = K.attrValue, ci && (Xe === "id" || Xe === "name") && (Er(Pt, A), Qt = ui + Qt), ut && ie(/((--!?|])>)|<\/(style|title)/i, Qt)) {
11776
+ if (K.attrName = Xe, K.attrValue = Qt, K.keepAttr = !0, K.forceKeepAttr = void 0, ln(M.uponSanitizeAttribute, A, K), Qt = K.attrValue, ci && (Xe === "id" || Xe === "name") && (Er(Pt, A), Qt = ui + Qt), ut && ie(/((--!?|])>)|<\/(style|title)/i, Qt)) {
11777
11777
  Er(Pt, A);
11778
11778
  continue;
11779
11779
  }
@@ -11813,13 +11813,13 @@ function pv() {
11813
11813
  Er(Pt, A);
11814
11814
  }
11815
11815
  }
11816
- ln($.afterSanitizeAttributes, A, null);
11816
+ ln(M.afterSanitizeAttributes, A, null);
11817
11817
  }, c1 = function A(J) {
11818
11818
  let K = null;
11819
11819
  const bt = wu(J);
11820
- for (ln($.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
11821
- ln($.uponSanitizeShadowNode, K, null), Mu(K), Lu(K), K.content instanceof s && A(K.content);
11822
- ln($.afterSanitizeShadowDOM, J, null);
11820
+ for (ln(M.beforeSanitizeShadowDOM, J, null); K = bt.nextNode(); )
11821
+ ln(M.uponSanitizeShadowNode, K, null), Mu(K), Lu(K), K.content instanceof s && A(K.content);
11822
+ ln(M.afterSanitizeShadowDOM, J, null);
11823
11823
  };
11824
11824
  return t.sanitize = function(A) {
11825
11825
  let J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, K = null, bt = null, Xt = null, Pt = null;
@@ -11854,7 +11854,7 @@ function pv() {
11854
11854
  return A;
11855
11855
  if (nt) {
11856
11856
  if (yt)
11857
- for (Pt = k.call(K.ownerDocument); K.firstChild; )
11857
+ for (Pt = D.call(K.ownerDocument); K.firstChild; )
11858
11858
  Pt.appendChild(K.firstChild);
11859
11859
  else
11860
11860
  Pt = K;
@@ -11875,17 +11875,17 @@ function pv() {
11875
11875
  const bt = qt(A), Xt = qt(J);
11876
11876
  return Cu(bt, Xt, K);
11877
11877
  }, t.addHook = function(A, J) {
11878
- typeof J == "function" && _i($[A], J);
11878
+ typeof J == "function" && _i(M[A], J);
11879
11879
  }, t.removeHook = function(A, J) {
11880
11880
  if (J !== void 0) {
11881
- const K = bD($[A], J);
11882
- return K === -1 ? void 0 : _D($[A], K, 1)[0];
11881
+ const K = bD(M[A], J);
11882
+ return K === -1 ? void 0 : _D(M[A], K, 1)[0];
11883
11883
  }
11884
- return Zd($[A]);
11884
+ return Zd(M[A]);
11885
11885
  }, t.removeHooks = function(A) {
11886
- $[A] = [];
11886
+ M[A] = [];
11887
11887
  }, t.removeAllHooks = function() {
11888
- $ = rp();
11888
+ M = rp();
11889
11889
  }, t;
11890
11890
  }
11891
11891
  var au = pv();
@@ -12579,15 +12579,15 @@ class ou extends mt {
12579
12579
  _.exit().remove();
12580
12580
  const E = _.enter().append("div").merge(_).classed("legend-item", !0).classed("additional", !0).attr("role", "img").attr(
12581
12581
  "aria-labelledby",
12582
- (M, k) => this.services.domUtils.generateElementIDString(
12583
- `legend-datagroup-${m.size() + k}-title`
12582
+ ($, D) => this.services.domUtils.generateElementIDString(
12583
+ `legend-datagroup-${m.size() + D}-title`
12584
12584
  )
12585
12585
  );
12586
12586
  E.selectAll("*").remove();
12587
12587
  let x, S = 1;
12588
- E.append("svg").classed("icon", !0).each(function(M) {
12589
- const k = I(this);
12590
- !x || x != M.type ? (x = M.type, S = 1) : S++, b.addAdditionalItem(k, M, S);
12588
+ E.append("svg").classed("icon", !0).each(function($) {
12589
+ const D = I(this);
12590
+ !x || x != $.type ? (x = $.type, S = 1) : S++, b.addAdditionalItem(D, $, S);
12591
12591
  }), E.append("p").merge(E.select("p")), this.truncateLegendText();
12592
12592
  }
12593
12593
  d.exit().on("mouseover", null).on("click", null).on("mouseout", null).remove(), p && h.size() > 1 && this.addEventListeners();
@@ -13034,18 +13034,18 @@ const xv = class ia extends mt {
13034
13034
  f === void 0 && (f = this.services.zoom.getDefaultZoomBarDomain(), f && this.model.set({ zoomDomain: f }, { animate: !1 }));
13035
13035
  const g = (x) => {
13036
13036
  const S = x[1] - x[0];
13037
- let M = "0," + S.toString();
13038
- const k = Math.floor(l / ia.DASH_LENGTH), C = k * ia.DASH_LENGTH;
13039
- for (let R = 0; R < k; R++)
13040
- M += "," + ia.DASH_LENGTH;
13041
- M += "," + (l - C), k % 2 === 1 && (M += ",0"), M += "," + S.toString(), M += "," + l.toString(), p.attr("stroke-dasharray", M);
13037
+ let $ = "0," + S.toString();
13038
+ const D = Math.floor(l / ia.DASH_LENGTH), C = D * ia.DASH_LENGTH;
13039
+ for (let R = 0; R < D; R++)
13040
+ $ += "," + ia.DASH_LENGTH;
13041
+ $ += "," + (l - C), D % 2 === 1 && ($ += ",0"), $ += "," + S.toString(), $ += "," + l.toString(), p.attr("stroke-dasharray", $);
13042
13042
  }, m = (x) => {
13043
13043
  const S = x.selection;
13044
13044
  S === null || S[0] === S[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(S));
13045
13045
  }, v = (x, S) => {
13046
- const M = eg().range([0, o]).domain(f);
13047
- let k = [M.invert(x), M.invert(S)], C = "manual";
13048
- k[0].valueOf() === k[1].valueOf() ? (k = this.services.zoom.getDefaultZoomBarDomain(), C = "reset") : C = "manual", (f[0].valueOf() !== k[0].valueOf() || f[1].valueOf() !== k[1].valueOf()) && this.services.zoom.handleDomainChange(k, { dispatchEvent: !0, type: C });
13046
+ const $ = eg().range([0, o]).domain(f);
13047
+ let D = [$.invert(x), $.invert(S)], C = "manual";
13048
+ D[0].valueOf() === D[1].valueOf() ? (D = this.services.zoom.getDefaultZoomBarDomain(), C = "reset") : C = "manual", (f[0].valueOf() !== D[0].valueOf() || f[1].valueOf() !== D[1].valueOf()) && this.services.zoom.handleDomainChange(D, { dispatchEvent: !0, type: C });
13049
13049
  };
13050
13050
  let b;
13051
13051
  const _ = (x) => {
@@ -13059,11 +13059,11 @@ const xv = class ia extends mt {
13059
13059
  const E = this.services.zoom.getZoomRatio();
13060
13060
  i.on("click", function(x) {
13061
13061
  if (x.shiftKey) {
13062
- const S = this.services.domUtils.getHolder(), M = rr(s.node(), S)[0];
13063
- let k = M - o * E / 2;
13064
- k < 0 && (k = 0);
13065
- let C = M + o * E / 2;
13066
- C > o && (C = o), v(k, C);
13062
+ const S = this.services.domUtils.getHolder(), $ = rr(s.node(), S)[0];
13063
+ let D = $ - o * E / 2;
13064
+ D < 0 && (D = 0);
13065
+ let C = $ + o * E / 2;
13066
+ C > o && (C = o), v(D, C);
13067
13067
  }
13068
13068
  });
13069
13069
  }
@@ -13135,17 +13135,17 @@ class VD extends mt {
13135
13135
  ), this.xScale.range([c, l]).domain(v), this.maxSelectionRange = this.xScale.range(), this.yScale.range([0, o - 6]).domain(ze(m, (S) => S.value));
13136
13136
  const E = this.model.get("zoomDomain");
13137
13137
  if (s === Ke.GRAPH_VIEW && (this.renderZoomBarArea(d, "path.zoom-graph-area-unselected", m, null), this.updateClipPath(n, this.clipId, 0, 0, 0, 0), this.renderZoomBarArea(d, "path.zoom-graph-area", m, this.clipId), this.renderZoomBarBaseline(d, c, l), a)) {
13138
- const S = a.highlightStartMapsTo, M = a.highlightEndMapsTo, k = a.color, C = a.labelMapsTo;
13139
- a.data.forEach((R, $) => {
13140
- N.appendOrSelect(d, `rect.highlight-${$}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
13138
+ const S = a.highlightStartMapsTo, $ = a.highlightEndMapsTo, D = a.color, C = a.labelMapsTo;
13139
+ a.data.forEach((R, M) => {
13140
+ N.appendOrSelect(d, `rect.highlight-${M}`).attr("height", o - 2 * this.highlightStrokeWidth).attr("y", this.highlightStrokeWidth).attr("x", this.xScale(R[S])).attr(
13141
13141
  "width",
13142
- this.xScale(R[M]) - this.xScale(R[S])
13142
+ this.xScale(R[$]) - this.xScale(R[S])
13143
13143
  ).style(
13144
13144
  "fill",
13145
- k && k.scale[R[C]] ? k.scale[R[C]] : null
13145
+ D && D.scale[R[C]] ? D.scale[R[C]] : null
13146
13146
  ).style("fill-opacity", 0.1).style(
13147
13147
  "stroke",
13148
- k && k.scale[R[C]] ? k.scale[R[C]] : null
13148
+ D && D.scale[R[C]] ? D.scale[R[C]] : null
13149
13149
  ).style("stroke-dasharray", "2, 2").attr("stroke-width", "1px");
13150
13150
  });
13151
13151
  }
@@ -13154,7 +13154,7 @@ class VD extends mt {
13154
13154
  if (E !== void 0) if (E[0].valueOf() === E[1].valueOf())
13155
13155
  x.call(this.brush.move, this.xScale.range()), this.updateBrushHandle(this.getComponentContainer(), this.xScale.range());
13156
13156
  else {
13157
- const S = E.map((M) => this.xScale(M));
13157
+ const S = E.map(($) => this.xScale($));
13158
13158
  S[1] - S[0] < this.MIN_SELECTION_DIFF || (x.call(this.brush.move, S), this.updateBrushHandle(this.getComponentContainer(), S));
13159
13159
  }
13160
13160
  i && (this.brush.filter(() => !1), x.selectAll("rect").attr("cursor", "auto"));
@@ -13310,7 +13310,7 @@ class GD extends mt {
13310
13310
  ), d = l.services.cartesianScales.getScaleTypeByPosition(c);
13311
13311
  let h = null, p = null;
13312
13312
  c === G.LEFT || c === G.RIGHT ? (p = u, h = l.services.cartesianScales.getMainXScale()) : (h = u, p = l.services.cartesianScales.getMainYScale());
13313
- const f = d === et.LABELS, [g, m] = h.range(), [v, b] = p.range(), { cartesianScales: _ } = l.services, E = _.getOrientation(), x = (R) => _.getDomainValue(R), S = (R) => _.getRangeValue(R), [M, k] = En(
13313
+ const f = d === et.LABELS, [g, m] = h.range(), [v, b] = p.range(), { cartesianScales: _ } = l.services, E = _.getOrientation(), x = (R) => _.getDomainValue(R), S = (R) => _.getRangeValue(R), [$, D] = En(
13314
13314
  x,
13315
13315
  S,
13316
13316
  E
@@ -13323,11 +13323,11 @@ class GD extends mt {
13323
13323
  })
13324
13324
  ).attr("y1", b).attr("y2", v).attr(
13325
13325
  "x1",
13326
- ({ datum: R }) => M(R) + (f ? u.step() / 2 : 0)
13326
+ ({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
13327
13327
  ).attr(
13328
13328
  "x2",
13329
- ({ datum: R }) => M(R) + (f ? u.step() / 2 : 0)
13330
- ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -M(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
13329
+ ({ datum: R }) => $(R) + (f ? u.step() / 2 : 0)
13330
+ ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", 0).attr("y", ({ datum: R }) => -$(R)).attr("width", Math.abs(v - b)).classed("rotate", !0)) : (C.selectAll("line.threshold-line").transition().call(
13331
13331
  (R) => l.services.transitions.setupTransition({
13332
13332
  transition: R,
13333
13333
  name: "threshold-line-update",
@@ -13335,11 +13335,11 @@ class GD extends mt {
13335
13335
  })
13336
13336
  ).attr("x1", g).attr("x2", m).attr(
13337
13337
  "y1",
13338
- ({ datum: R }) => k(R) + (f ? u.step() / 2 : 0)
13338
+ ({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
13339
13339
  ).attr(
13340
13340
  "y2",
13341
- ({ datum: R }) => k(R) + (f ? u.step() / 2 : 0)
13342
- ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) => k(R)).attr("width", Math.abs(m - g)).classed("rotate", !1));
13341
+ ({ datum: R }) => D(R) + (f ? u.step() / 2 : 0)
13342
+ ).style("stroke", ({ fillColor: R }) => R), C.selectAll("rect.threshold-hoverable-area").attr("x", g).attr("y", ({ datum: R }) => D(R)).attr("width", Math.abs(m - g)).classed("rotate", !1));
13343
13343
  }), this.services.events.addEventListener(T.Threshold.SHOW, (c) => {
13344
13344
  this.setThresholdLabelPosition(c.detail), this.label.classed("hidden", !1);
13345
13345
  }), this.services.events.addEventListener(T.Threshold.HIDE, () => {
@@ -13448,30 +13448,30 @@ class zD extends mt {
13448
13448
  o.append("rect").attr("class", "highlight-bar"), o.append("line").attr("class", "highlight-line"), o.merge(a).attr("class", "highlight-group");
13449
13449
  const l = this;
13450
13450
  s.each(function({ axisPosition: c }) {
13451
- const u = l.services.cartesianScales.getMainXScale(), d = l.services.cartesianScales.getMainYScale(), [h, p] = u.range(), [f, g] = d.range(), { cartesianScales: m } = l.services, v = m.getOrientation(), b = (M) => m.getDomainValue(M), _ = (M) => m.getRangeValue(M), [E, x] = En(
13451
+ const u = l.services.cartesianScales.getMainXScale(), d = l.services.cartesianScales.getMainYScale(), [h, p] = u.range(), [f, g] = d.range(), { cartesianScales: m } = l.services, v = m.getOrientation(), b = ($) => m.getDomainValue($), _ = ($) => m.getRangeValue($), [E, x] = En(
13452
13452
  b,
13453
13453
  _,
13454
13454
  v
13455
13455
  ), S = I(this);
13456
13456
  c === G.TOP || c === G.BOTTOM ? S.selectAll("rect.highlight-bar").transition().call(
13457
- (M) => l.services.transitions.setupTransition({
13458
- transition: M,
13457
+ ($) => l.services.transitions.setupTransition({
13458
+ transition: $,
13459
13459
  name: "highlight-bar-update",
13460
13460
  animate: t
13461
13461
  })
13462
- ).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: M, ...k }) => E(k[M])).attr(
13462
+ ).attr("y", Math.max(g + l.highlightStrokeWidth, 0)).attr("height", Math.max(f - 2 * l.highlightStrokeWidth, 0)).attr("x", ({ highlightStartMapsTo: $, ...D }) => E(D[$])).attr(
13463
13463
  "width",
13464
- ({ highlightStartMapsTo: M, highlightEndMapsTo: k, ...C }) => Math.max(E(C[k]) - E(C[M]), 0)
13465
- ).style("stroke", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null) : S.selectAll("rect.highlight-bar").transition().call(
13466
- (M) => l.services.transitions.setupTransition({
13467
- transition: M,
13464
+ ({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(E(C[D]) - E(C[$]), 0)
13465
+ ).style("stroke", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null) : S.selectAll("rect.highlight-bar").transition().call(
13466
+ ($) => l.services.transitions.setupTransition({
13467
+ transition: $,
13468
13468
  name: "highlight-bar-update",
13469
13469
  animate: t
13470
13470
  })
13471
- ).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: M, ...k }) => x(k[M])).attr(
13471
+ ).attr("x", h).attr("width", Math.max(p - h, 0)).attr("y", ({ highlightEndMapsTo: $, ...D }) => x(D[$])).attr(
13472
13472
  "height",
13473
- ({ highlightStartMapsTo: M, highlightEndMapsTo: k, ...C }) => Math.max(x(C[M]) - x(C[k]), 0)
13474
- ).style("stroke", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: M, labelMapsTo: k, ...C }) => M && M.scale[C[k]] ? M.scale[C[k]] : null);
13473
+ ({ highlightStartMapsTo: $, highlightEndMapsTo: D, ...C }) => Math.max(x(C[$]) - x(C[D]), 0)
13474
+ ).style("stroke", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null).style("stroke-dasharray", "2, 2").attr("stroke-width", l.highlightStrokeWidth + "px").style("fill-opacity", 0.1).style("fill", ({ color: $, labelMapsTo: D, ...C }) => $ && $.scale[C[D]] ? $.scale[C[D]] : null);
13475
13475
  });
13476
13476
  }
13477
13477
  }
@@ -13549,13 +13549,14 @@ class bv extends lu {
13549
13549
  };
13550
13550
  }).sort((h, p) => p.value - h.value)
13551
13551
  ), !a && y(r, "tooltip", "showTotal") === !0)) {
13552
- const h = i.getRangeIdentifier();
13553
- d.push({
13554
- label: gt(r, "locale.translations.total") || gt(r, "tooltip.totalLabel") || "Total",
13555
- value: n.reduce(
13556
- (p, f) => p + f[h],
13557
- 0
13558
- ),
13552
+ const h = i.getRangeIdentifier(), p = y(r, "tooltip", "customTotalCalculation");
13553
+ let f;
13554
+ p ? f = p(n) : f = n.reduce(
13555
+ (g, m) => g + m[h],
13556
+ 0
13557
+ ), d.push({
13558
+ label: gt(r, "tooltip.totalLabel") || gt(r, "locale.translations.total") || "Total",
13559
+ value: f,
13559
13560
  bold: !0
13560
13561
  });
13561
13562
  }
@@ -13679,17 +13680,17 @@ function ZD() {
13679
13680
  return arguments.length ? (p = +O, f) : p;
13680
13681
  };
13681
13682
  function g({ nodes: O, links: w }) {
13682
- for (const [D, U] of O.entries())
13683
- U.index = D, U.sourceLinks = [], U.targetLinks = [];
13684
- const L = new Map(O.map((D, U) => [o(D, U, O), D]));
13685
- for (const [D, U] of w.entries()) {
13686
- U.index = D;
13683
+ for (const [k, U] of O.entries())
13684
+ U.index = k, U.sourceLinks = [], U.targetLinks = [];
13685
+ const L = new Map(O.map((k, U) => [o(k, U, O), k]));
13686
+ for (const [k, U] of w.entries()) {
13687
+ U.index = k;
13687
13688
  let { source: Z, target: j } = U;
13688
13689
  typeof Z != "object" && (Z = U.source = cp(L, Z)), typeof j != "object" && (j = U.target = cp(L, j)), Z.sourceLinks.push(U), j.targetLinks.push(U);
13689
13690
  }
13690
13691
  if (u != null)
13691
- for (const { sourceLinks: D, targetLinks: U } of O)
13692
- D.sort(u), U.sort(u);
13692
+ for (const { sourceLinks: k, targetLinks: U } of O)
13693
+ k.sort(u), U.sort(u);
13693
13694
  }
13694
13695
  function m({ nodes: O }) {
13695
13696
  for (const w of O)
@@ -13697,53 +13698,53 @@ function ZD() {
13697
13698
  }
13698
13699
  function v({ nodes: O }) {
13699
13700
  const w = O.length;
13700
- let L = new Set(O), D = /* @__PURE__ */ new Set(), U = 0;
13701
+ let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
13701
13702
  for (; L.size; ) {
13702
13703
  for (const Z of L) {
13703
13704
  Z.depth = U;
13704
13705
  for (const { target: j } of Z.sourceLinks)
13705
- D.add(j);
13706
+ k.add(j);
13706
13707
  }
13707
13708
  if (++U > w) throw new Error("circular link");
13708
- L = D, D = /* @__PURE__ */ new Set();
13709
+ L = k, k = /* @__PURE__ */ new Set();
13709
13710
  }
13710
13711
  }
13711
13712
  function b({ nodes: O }) {
13712
13713
  const w = O.length;
13713
- let L = new Set(O), D = /* @__PURE__ */ new Set(), U = 0;
13714
+ let L = new Set(O), k = /* @__PURE__ */ new Set(), U = 0;
13714
13715
  for (; L.size; ) {
13715
13716
  for (const Z of L) {
13716
13717
  Z.height = U;
13717
13718
  for (const { source: j } of Z.targetLinks)
13718
- D.add(j);
13719
+ k.add(j);
13719
13720
  }
13720
13721
  if (++U > w) throw new Error("circular link");
13721
- L = D, D = /* @__PURE__ */ new Set();
13722
+ L = k, k = /* @__PURE__ */ new Set();
13722
13723
  }
13723
13724
  }
13724
13725
  function _({ nodes: O }) {
13725
- const w = ap(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1), D = new Array(w);
13726
+ const w = ap(O, (U) => U.depth) + 1, L = (n - e - i) / (w - 1), k = new Array(w);
13726
13727
  for (const U of O) {
13727
13728
  const Z = Math.max(0, Math.min(w - 1, Math.floor(l.call(null, U, w))));
13728
- U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i, D[Z] ? D[Z].push(U) : D[Z] = [U];
13729
+ U.layer = Z, U.x0 = e + Z * L, U.x1 = U.x0 + i, k[Z] ? k[Z].push(U) : k[Z] = [U];
13729
13730
  }
13730
- if (c) for (const U of D)
13731
+ if (c) for (const U of k)
13731
13732
  U.sort(c);
13732
- return D;
13733
+ return k;
13733
13734
  }
13734
13735
  function E(O) {
13735
13736
  const w = FD(O, (L) => (r - t - (L.length - 1) * a) / ol(L, ll));
13736
13737
  for (const L of O) {
13737
- let D = t;
13738
+ let k = t;
13738
13739
  for (const U of L) {
13739
- U.y0 = D, U.y1 = D + U.value * w, D = U.y1 + a;
13740
+ U.y0 = k, U.y1 = k + U.value * w, k = U.y1 + a;
13740
13741
  for (const Z of U.sourceLinks)
13741
13742
  Z.width = Z.value * w;
13742
13743
  }
13743
- D = (r - D + a) / (L.length + 1);
13744
+ k = (r - k + a) / (L.length + 1);
13744
13745
  for (let U = 0; U < L.length; ++U) {
13745
13746
  const Z = L[U];
13746
- Z.y0 += D * (U + 1), Z.y1 += D * (U + 1);
13747
+ Z.y0 += k * (U + 1), Z.y1 += k * (U + 1);
13747
13748
  }
13748
13749
  H(L);
13749
13750
  }
@@ -13752,13 +13753,13 @@ function ZD() {
13752
13753
  const w = _(O);
13753
13754
  a = Math.min(s, (r - t) / (ap(w, (L) => L.length) - 1)), E(w);
13754
13755
  for (let L = 0; L < p; ++L) {
13755
- const D = Math.pow(0.99, L), U = Math.max(1 - D, (L + 1) / p);
13756
- M(w, D, U), S(w, D, U);
13756
+ const k = Math.pow(0.99, L), U = Math.max(1 - k, (L + 1) / p);
13757
+ $(w, k, U), S(w, k, U);
13757
13758
  }
13758
13759
  }
13759
13760
  function S(O, w, L) {
13760
- for (let D = 1, U = O.length; D < U; ++D) {
13761
- const Z = O[D];
13761
+ for (let k = 1, U = O.length; k < U; ++k) {
13762
+ const Z = O[k];
13762
13763
  for (const j of Z) {
13763
13764
  let F = 0, Y = 0;
13764
13765
  for (const { source: Q, value: q } of j.targetLinks) {
@@ -13767,13 +13768,13 @@ function ZD() {
13767
13768
  }
13768
13769
  if (!(Y > 0)) continue;
13769
13770
  let ot = (F / Y - j.y0) * w;
13770
- j.y0 += ot, j.y1 += ot, $(j);
13771
+ j.y0 += ot, j.y1 += ot, M(j);
13771
13772
  }
13772
- c === void 0 && Z.sort(Pa), k(Z, L);
13773
+ c === void 0 && Z.sort(Pa), D(Z, L);
13773
13774
  }
13774
13775
  }
13775
- function M(O, w, L) {
13776
- for (let D = O.length, U = D - 2; U >= 0; --U) {
13776
+ function $(O, w, L) {
13777
+ for (let k = O.length, U = k - 2; U >= 0; --U) {
13777
13778
  const Z = O[U];
13778
13779
  for (const j of Z) {
13779
13780
  let F = 0, Y = 0;
@@ -13783,28 +13784,28 @@ function ZD() {
13783
13784
  }
13784
13785
  if (!(Y > 0)) continue;
13785
13786
  let ot = (F / Y - j.y0) * w;
13786
- j.y0 += ot, j.y1 += ot, $(j);
13787
+ j.y0 += ot, j.y1 += ot, M(j);
13787
13788
  }
13788
- c === void 0 && Z.sort(Pa), k(Z, L);
13789
+ c === void 0 && Z.sort(Pa), D(Z, L);
13789
13790
  }
13790
13791
  }
13791
- function k(O, w) {
13792
- const L = O.length >> 1, D = O[L];
13793
- R(O, D.y0 - a, L - 1, w), C(O, D.y1 + a, L + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
13792
+ function D(O, w) {
13793
+ const L = O.length >> 1, k = O[L];
13794
+ R(O, k.y0 - a, L - 1, w), C(O, k.y1 + a, L + 1, w), R(O, r, O.length - 1, w), C(O, t, 0, w);
13794
13795
  }
13795
- function C(O, w, L, D) {
13796
+ function C(O, w, L, k) {
13796
13797
  for (; L < O.length; ++L) {
13797
- const U = O[L], Z = (w - U.y0) * D;
13798
+ const U = O[L], Z = (w - U.y0) * k;
13798
13799
  Z > 1e-6 && (U.y0 += Z, U.y1 += Z), w = U.y1 + a;
13799
13800
  }
13800
13801
  }
13801
- function R(O, w, L, D) {
13802
+ function R(O, w, L, k) {
13802
13803
  for (; L >= 0; --L) {
13803
- const U = O[L], Z = (U.y1 - w) * D;
13804
+ const U = O[L], Z = (U.y1 - w) * k;
13804
13805
  Z > 1e-6 && (U.y0 -= Z, U.y1 -= Z), w = U.y0 - a;
13805
13806
  }
13806
13807
  }
13807
- function $({ sourceLinks: O, targetLinks: w }) {
13808
+ function M({ sourceLinks: O, targetLinks: w }) {
13808
13809
  if (u === void 0) {
13809
13810
  for (const { source: { sourceLinks: L } } of w)
13810
13811
  L.sort(lp);
@@ -13819,24 +13820,24 @@ function ZD() {
13819
13820
  }
13820
13821
  function P(O, w) {
13821
13822
  let L = O.y0 - (O.sourceLinks.length - 1) * a / 2;
13822
- for (const { target: D, width: U } of O.sourceLinks) {
13823
- if (D === w) break;
13823
+ for (const { target: k, width: U } of O.sourceLinks) {
13824
+ if (k === w) break;
13824
13825
  L += U + a;
13825
13826
  }
13826
- for (const { source: D, width: U } of w.targetLinks) {
13827
- if (D === O) break;
13827
+ for (const { source: k, width: U } of w.targetLinks) {
13828
+ if (k === O) break;
13828
13829
  L -= U;
13829
13830
  }
13830
13831
  return L;
13831
13832
  }
13832
13833
  function B(O, w) {
13833
13834
  let L = w.y0 - (w.targetLinks.length - 1) * a / 2;
13834
- for (const { source: D, width: U } of w.targetLinks) {
13835
- if (D === O) break;
13835
+ for (const { source: k, width: U } of w.targetLinks) {
13836
+ if (k === O) break;
13836
13837
  L += U + a;
13837
13838
  }
13838
- for (const { target: D, width: U } of O.sourceLinks) {
13839
- if (D === w) break;
13839
+ for (const { target: k, width: U } of O.sourceLinks) {
13840
+ if (k === w) break;
13840
13841
  L -= U;
13841
13842
  }
13842
13843
  return L;
@@ -14048,8 +14049,8 @@ class ck extends mt {
14048
14049
  ), { width: x } = N.getSVGElementSize(I(`text#${E}`), {
14049
14050
  useBBox: !0
14050
14051
  }), S = (b.y1 - b.y0) / 2 - 9;
14051
- let M = b.x1 - b.x0;
14052
- return b.x1 >= x ? M = M - (x + 16) : M += 4, `translate(${M}, ${S})`;
14052
+ let $ = b.x1 - b.x0;
14053
+ return b.x1 >= x ? $ = $ - (x + 16) : $ += 4, `translate(${$}, ${S})`;
14053
14054
  }), this.addLineEventListener(), this.addNodeEventListener();
14054
14055
  }
14055
14056
  addLineEventListener() {
@@ -14349,10 +14350,10 @@ class Ov extends mt {
14349
14350
  "stroke"
14350
14351
  );
14351
14352
  else {
14352
- const M = y(this.model.getOptions(), "color", "scale");
14353
- if (M !== null) {
14354
- const k = Object.keys(M);
14355
- S = M[k[0]];
14353
+ const $ = y(this.model.getOptions(), "color", "scale");
14354
+ if ($ !== null) {
14355
+ const D = Object.keys($);
14356
+ S = $[D[0]];
14356
14357
  }
14357
14358
  }
14358
14359
  Il.appendOrUpdateLinearGradient({
@@ -14862,14 +14863,14 @@ class Sv extends mt {
14862
14863
  f.attr("aria-hidden", !0);
14863
14864
  return;
14864
14865
  }
14865
- const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), M = y(m, "ticks", "values"), k = y(m, "truncation", "type"), C = y(m, "truncation", "threshold"), R = y(m, "truncation", "numCharacter"), $ = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(g, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
14866
+ const E = y(m, "scaleType"), x = y(r, "data", "loading"), S = y(m, "ticks", "number"), $ = y(m, "ticks", "values"), D = y(m, "truncation", "type"), C = y(m, "truncation", "threshold"), R = y(m, "truncation", "numCharacter"), M = S !== null, H = y(r, "timeScale"), P = N.appendOrSelect(g, "g.tick"), B = N.appendOrSelect(P, "text").text("0"), O = N.getSVGElementSize(B.node(), {
14866
14867
  useBBox: !0
14867
14868
  }).height;
14868
14869
  P.remove();
14869
14870
  const w = this.scaleType || m.scaleType || et.LINEAR, L = h(d).tickSizeOuter(0);
14870
14871
  if (d.ticks) {
14871
14872
  let q;
14872
- if ($ ? q = S : (q = Pn.ticks.number, b && (q = this.getNumberOfFittingTicks(
14873
+ if (M ? q = S : (q = Pn.ticks.number, b && (q = this.getNumberOfFittingTicks(
14873
14874
  o,
14874
14875
  O,
14875
14876
  Pn.ticks.verticalSpaceRatio
@@ -14883,14 +14884,14 @@ class Sv extends mt {
14883
14884
  tt && W.length > 2 && !lt && (W.splice(W.length - 1, 1), W.splice(0, 1)), L.tickValues(W);
14884
14885
  }
14885
14886
  }
14886
- let D;
14887
+ let k;
14887
14888
  const U = y(m, "ticks", "formatter"), { code: Z, number: j } = y(r, "locale");
14888
14889
  if (v) {
14889
14890
  const q = Dl(
14890
14891
  L.tickValues(),
14891
14892
  y(r, "timeScale", "timeInterval")
14892
14893
  );
14893
- U === null ? D = (tt, lt) => Ll(tt, lt, L.tickValues(), q, H, r.locale) : D = (tt, lt) => {
14894
+ U === null ? k = (tt, lt) => Ll(tt, lt, L.tickValues(), q, H, r.locale) : k = (tt, lt) => {
14894
14895
  const z = Ll(
14895
14896
  tt,
14896
14897
  lt,
@@ -14902,23 +14903,23 @@ class Sv extends mt {
14902
14903
  return U(tt, lt, z);
14903
14904
  };
14904
14905
  } else
14905
- U === null ? w === et.LINEAR && (D = (q) => j(q, Z)) : D = U;
14906
- L.tickFormat(D);
14906
+ U === null ? w === et.LINEAR && (k = (q) => j(q, Z)) : k = U;
14907
+ L.tickFormat(k);
14907
14908
  const [F, Y] = this.services.cartesianScales.getScaleByPosition(n).domain();
14908
14909
  let ot;
14909
- if (M) {
14910
+ if ($) {
14910
14911
  if (v)
14911
- M.forEach((q, tt) => {
14912
- q.getTime === void 0 && (M[tt] = new Date(q));
14913
- }), ot = M.filter((q) => {
14912
+ $.forEach((q, tt) => {
14913
+ q.getTime === void 0 && ($[tt] = new Date(q));
14914
+ }), ot = $.filter((q) => {
14914
14915
  const tt = q.getTime();
14915
14916
  return tt >= new Date(F).getTime() && tt <= new Date(Y).getTime();
14916
14917
  });
14917
14918
  else if (E === et.LABELS) {
14918
14919
  const q = this.services.cartesianScales.getScaleByPosition(n).domain();
14919
- ot = M.filter((tt) => q.includes(tt));
14920
+ ot = $.filter((tt) => q.includes(tt));
14920
14921
  } else
14921
- ot = M.filter(
14922
+ ot = $.filter(
14922
14923
  (q) => q >= F && q <= Y
14923
14924
  );
14924
14925
  L.tickValues(ot);
@@ -15015,20 +15016,20 @@ class Sv extends mt {
15015
15016
  V !== null && W + X.text().length * z * 0.8 >= V && (q = !0), W = V;
15016
15017
  }), lt.remove();
15017
15018
  }
15018
- q ? ($ || (L.ticks(
15019
+ q ? (M || (L.ticks(
15019
15020
  this.getNumberOfFittingTicks(a, O, Pn.ticks.horizontalSpaceRatio)
15020
15021
  ), g.call(L), f.call(L)), l.selectAll("g.ticks g.tick text").attr("transform", "rotate(-45)").attr("text-anchor", n === G.TOP ? "start" : "end")) : l.selectAll("g.ticks g.tick text").attr("transform", null).attr("text-anchor", null);
15021
15022
  }
15022
- if (x ? l.attr("opacity", 0) : l.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (q) => q), g.selectAll("g.tick").attr("aria-label", (q) => q), k !== Ve.NONE && E === et.LABELS && !M) {
15023
+ if (x ? l.attr("opacity", 0) : l.attr("opacity", 1), f.selectAll("g.tick").attr("aria-label", (q) => q), g.selectAll("g.tick").attr("aria-label", (q) => q), D !== Ve.NONE && E === et.LABELS && !$) {
15023
15024
  const q = this.services.cartesianScales.getScaleDomain(n);
15024
15025
  if (q.length > 0) {
15025
15026
  const tt = s.select(`g.axis.${n} g.ticks g.tick`).html();
15026
15027
  l.selectAll("g.ticks g.tick").html(tt);
15027
15028
  const lt = this;
15028
15029
  l.selectAll("g.tick text").data(q).text(function(z) {
15029
- return z.length > C ? (lt.truncation[n] = !0, rs(z, k, R)) : z;
15030
+ return z.length > C ? (lt.truncation[n] = !0, rs(z, D, R)) : z;
15030
15031
  }), this.getInvisibleAxisRef().selectAll("g.tick text").data(q).text(function(z) {
15031
- return z.length > C ? rs(z, k, R) : z;
15032
+ return z.length > C ? rs(z, D, R) : z;
15032
15033
  }), l.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()), l.selectAll("g.tick text").data(q);
15033
15034
  }
15034
15035
  }
@@ -15373,115 +15374,115 @@ class dk extends mt {
15373
15374
  if (h === 0)
15374
15375
  return;
15375
15376
  const { cartesianScales: f } = this.services, g = f.getOrientation(), m = g === Ft.VERTICAL, [v, b] = En(
15376
- ($) => this.services.cartesianScales.getDomainValue($),
15377
- ($) => this.services.cartesianScales.getRangeValue($),
15377
+ (M) => this.services.cartesianScales.getDomainValue(M),
15378
+ (M) => this.services.cartesianScales.getRangeValue(M),
15378
15379
  g
15379
15380
  ), _ = Math.floor((m ? h : p) / s.length), E = Math.min(_ / 2, 16), x = this.model.getBoxplotData(), S = n.selectAll(".box-group").data(x);
15380
15381
  S.exit().remove();
15381
- const M = S.enter().append("g").attr("class", "box-group"), k = S.merge(M);
15382
- M.append("path").merge(S.select("path.vertical-line.start")).attr(
15382
+ const $ = S.enter().append("g").attr("class", "box-group"), D = S.merge($);
15383
+ $.append("path").merge(S.select("path.vertical-line.start")).attr(
15383
15384
  "class",
15384
15385
  () => this.model.getColorClassName({
15385
15386
  classNameTypes: [it.STROKE],
15386
15387
  originalClassName: "vertical-line start"
15387
15388
  })
15388
15389
  ).attr("stroke-width", Te.strokeWidth.default).attr("fill", "none").transition().call(
15389
- ($) => this.services.transitions.setupTransition({
15390
- transition: $,
15390
+ (M) => this.services.transitions.setupTransition({
15391
+ transition: M,
15391
15392
  name: "boxplot-update-verticalstartline",
15392
15393
  animate: t
15393
15394
  })
15394
- ).attr("d", ($) => {
15395
- const H = f.getDomainValue($[i]), P = H, B = f.getRangeValue($.whiskers.min), O = f.getRangeValue($.quartiles.q_25);
15395
+ ).attr("d", (M) => {
15396
+ const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.quartiles.q_25);
15396
15397
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15397
- }), M.append("path").merge(S.select("path.vertical-line.end")).attr(
15398
+ }), $.append("path").merge(S.select("path.vertical-line.end")).attr(
15398
15399
  "class",
15399
15400
  () => this.model.getColorClassName({
15400
15401
  classNameTypes: [it.STROKE],
15401
15402
  originalClassName: "vertical-line end"
15402
15403
  })
15403
15404
  ).attr("stroke-width", Te.strokeWidth.default).attr("fill", "none").transition().call(
15404
- ($) => this.services.transitions.setupTransition({
15405
- transition: $,
15405
+ (M) => this.services.transitions.setupTransition({
15406
+ transition: M,
15406
15407
  name: "boxplot-update-verticalendline",
15407
15408
  animate: t
15408
15409
  })
15409
- ).attr("d", ($) => {
15410
- const H = f.getDomainValue($[i]), P = H, B = f.getRangeValue($.whiskers.max), O = f.getRangeValue($.quartiles.q_75);
15410
+ ).attr("d", (M) => {
15411
+ const H = f.getDomainValue(M[i]), P = H, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.quartiles.q_75);
15411
15412
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15412
- }), M.append("path").merge(S.select("path.box")).attr(
15413
+ }), $.append("path").merge(S.select("path.box")).attr(
15413
15414
  "class",
15414
15415
  () => this.model.getColorClassName({
15415
15416
  classNameTypes: [it.FILL, it.STROKE],
15416
15417
  originalClassName: "box"
15417
15418
  })
15418
- ).attr("fill-opacity", Te.box.opacity.default).attr("stroke-width", Te.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", ($) => $[i]).transition().call(
15419
- ($) => this.services.transitions.setupTransition({
15420
- transition: $,
15419
+ ).attr("fill-opacity", Te.box.opacity.default).attr("stroke-width", Te.strokeWidth.default).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-roledescription", "box").attr("aria-label", (M) => M[i]).transition().call(
15420
+ (M) => this.services.transitions.setupTransition({
15421
+ transition: M,
15421
15422
  name: "boxplot-update-quartiles",
15422
15423
  animate: t
15423
15424
  })
15424
- ).attr("d", ($) => {
15425
- const H = f.getDomainValue($[i]) - E / 2, P = H + E, B = f.getRangeValue(
15426
- Math[m ? "max" : "min"]($.quartiles.q_75, $.quartiles.q_25)
15425
+ ).attr("d", (M) => {
15426
+ const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(
15427
+ Math[m ? "max" : "min"](M.quartiles.q_75, M.quartiles.q_25)
15427
15428
  ), O = B + Math.abs(
15428
- f.getRangeValue($.quartiles.q_75) - f.getRangeValue($.quartiles.q_25)
15429
+ f.getRangeValue(M.quartiles.q_75) - f.getRangeValue(M.quartiles.q_25)
15429
15430
  );
15430
15431
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15431
- }), M.append("path").merge(S.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", ($) => {
15432
- const H = f.getDomainValue($[i]) - E / 2, P = H + E, B = f.getRangeValue($.whiskers.min), O = f.getRangeValue($.whiskers.max);
15432
+ }), $.append("path").merge(S.select("path.highlight-area")).attr("class", "highlight-area").attr("opacity", 0).attr("d", (M) => {
15433
+ const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.max);
15433
15434
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15434
- }), M.append("path").merge(S.select("path.whisker.start")).attr(
15435
+ }), $.append("path").merge(S.select("path.whisker.start")).attr(
15435
15436
  "class",
15436
15437
  () => this.model.getColorClassName({
15437
15438
  classNameTypes: [it.STROKE],
15438
15439
  originalClassName: "whisker start"
15439
15440
  })
15440
15441
  ).attr("stroke-width", Te.strokeWidth.thicker).attr("fill", "none").transition().call(
15441
- ($) => this.services.transitions.setupTransition({
15442
- transition: $,
15442
+ (M) => this.services.transitions.setupTransition({
15443
+ transition: M,
15443
15444
  name: "boxplot-update-startingwhisker",
15444
15445
  animate: t
15445
15446
  })
15446
- ).attr("d", ($) => {
15447
- const H = f.getDomainValue($[i]) - E / 4, P = H + E / 2, B = f.getRangeValue($.whiskers.min), O = f.getRangeValue($.whiskers.min);
15447
+ ).attr("d", (M) => {
15448
+ const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.min), O = f.getRangeValue(M.whiskers.min);
15448
15449
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15449
- }), M.append("path").merge(S.select("path.median")).attr("fill", "none").attr(
15450
+ }), $.append("path").merge(S.select("path.median")).attr("fill", "none").attr(
15450
15451
  "class",
15451
15452
  () => this.model.getColorClassName({
15452
15453
  classNameTypes: [it.STROKE],
15453
15454
  originalClassName: "median"
15454
15455
  })
15455
15456
  ).attr("stroke-width", 2).transition().call(
15456
- ($) => this.services.transitions.setupTransition({
15457
- transition: $,
15457
+ (M) => this.services.transitions.setupTransition({
15458
+ transition: M,
15458
15459
  name: "boxplot-update-median",
15459
15460
  animate: t
15460
15461
  })
15461
- ).attr("d", ($) => {
15462
- const H = f.getDomainValue($[i]) - E / 2, P = H + E, B = f.getRangeValue($.quartiles.q_50);
15462
+ ).attr("d", (M) => {
15463
+ const H = f.getDomainValue(M[i]) - E / 2, P = H + E, B = f.getRangeValue(M.quartiles.q_50);
15463
15464
  return ae({ x0: H, x1: P, y0: B, y1: B }, g);
15464
- }), M.append("path").merge(S.select("path.whisker.end")).attr(
15465
+ }), $.append("path").merge(S.select("path.whisker.end")).attr(
15465
15466
  "class",
15466
15467
  () => this.model.getColorClassName({
15467
15468
  classNameTypes: [it.STROKE],
15468
15469
  originalClassName: "whisker end"
15469
15470
  })
15470
15471
  ).attr("stroke-width", Te.strokeWidth.thicker).attr("fill", "none").transition().call(
15471
- ($) => this.services.transitions.setupTransition({
15472
- transition: $,
15472
+ (M) => this.services.transitions.setupTransition({
15473
+ transition: M,
15473
15474
  name: "boxplot-update-endingwhisker",
15474
15475
  animate: t
15475
15476
  })
15476
- ).attr("d", ($) => {
15477
- const H = f.getDomainValue($[i]) - E / 4, P = H + E / 2, B = f.getRangeValue($.whiskers.max), O = f.getRangeValue($.whiskers.max);
15477
+ ).attr("d", (M) => {
15478
+ const H = f.getDomainValue(M[i]) - E / 4, P = H + E / 2, B = f.getRangeValue(M.whiskers.max), O = f.getRangeValue(M.whiskers.max);
15478
15479
  return ae({ x0: H, x1: P, y0: B, y1: O }, g);
15479
15480
  });
15480
- const C = k.selectAll("circle.outlier").data(
15481
- ($) => $.outliers.map((H) => ({
15482
- min: $.whiskers.min,
15483
- max: $.whiskers.max,
15484
- [i]: $[i],
15481
+ const C = D.selectAll("circle.outlier").data(
15482
+ (M) => M.outliers.map((H) => ({
15483
+ min: M.whiskers.min,
15484
+ max: M.whiskers.max,
15485
+ [i]: M[i],
15485
15486
  value: H
15486
15487
  }))
15487
15488
  );
@@ -15494,8 +15495,8 @@ class dk extends mt {
15494
15495
  originalClassName: "outlier"
15495
15496
  })
15496
15497
  ).attr("fill-opacity", Te.circle.opacity.default).attr("cx", v).transition().call(
15497
- ($) => this.services.transitions.setupTransition({
15498
- transition: $,
15498
+ (M) => this.services.transitions.setupTransition({
15499
+ transition: M,
15499
15500
  name: "boxplot-update-circles",
15500
15501
  animate: t
15501
15502
  })
@@ -16121,11 +16122,26 @@ class Ok extends Vn {
16121
16122
  ...E,
16122
16123
  ...y(s, "tooltip", "showTotal") === !0 ? [
16123
16124
  {
16124
- label: gt(s, "locale.translations.total") || gt(s, "tooltip.totalLabel") || "Total",
16125
- value: _.reduce(
16126
- (S, M) => S + parseFloat(gt(m, `data.${M}`)),
16127
- 0
16128
- )
16125
+ label: gt(s, "tooltip.totalLabel") || gt(s, "locale.translations.total") || "Total",
16126
+ value: (() => {
16127
+ const S = y(
16128
+ s,
16129
+ "tooltip",
16130
+ "customTotalCalculation"
16131
+ );
16132
+ if (S) {
16133
+ const $ = _.map(
16134
+ (D) => ({
16135
+ [D]: parseFloat(gt(m, `data.${D}`))
16136
+ })
16137
+ );
16138
+ return S($);
16139
+ } else
16140
+ return _.reduce(
16141
+ ($, D) => $ + parseFloat(gt(m, `data.${D}`)),
16142
+ 0
16143
+ );
16144
+ })()
16129
16145
  }
16130
16146
  ] : []
16131
16147
  ]
@@ -16212,21 +16228,21 @@ class Tv extends ou {
16212
16228
  m.push(
16213
16229
  a === qs.LINEAR ? `stop-color-${g}-${o}-${C}` : `fill-${g}-${o}-${C}`
16214
16230
  );
16215
- const b = xe(u[0], u[1]), _ = qC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number: M } = y(n, "locale");
16216
- x.tickFormat((C) => M(C, S));
16217
- let k;
16231
+ const b = xe(u[0], u[1]), _ = qC(b, 3), E = Fe().domain(u).range([0, h]), x = Qc(E).tickSize(0).tickValues(_), { code: S, number: $ } = y(n, "locale");
16232
+ x.tickFormat((C) => $(C, S));
16233
+ let D;
16218
16234
  switch (a) {
16219
16235
  case qs.LINEAR:
16220
16236
  this.drawLinear(m, p, h);
16221
16237
  break;
16222
16238
  case qs.QUANTIZE:
16223
- k = this.drawQuantize(
16239
+ D = this.drawQuantize(
16224
16240
  m,
16225
16241
  g,
16226
16242
  c,
16227
16243
  p,
16228
16244
  h
16229
- ), E.range([k, h]);
16245
+ ), E.range([D, h]);
16230
16246
  break;
16231
16247
  default:
16232
16248
  throw Error("Entered color legend type is not supported.");
@@ -16641,23 +16657,23 @@ class wv extends mt {
16641
16657
  Ao(C.data[a], o, a),
16642
16658
  d
16643
16659
  ) + "%").datum(function(C) {
16644
- const R = l + 7, $ = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = $ / Math.PI * 180, P = this.getComputedTextLength();
16645
- return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin($), C.yPosition = (C.textOffsetY + R) * -Math.cos($), C;
16660
+ const R = l + 7, M = (C.endAngle - C.startAngle) / 2 + C.startAngle, H = M / Math.PI * 180, P = this.getComputedTextLength();
16661
+ return C.textOffsetX = P / 2, C.textOffsetY = H > 90 && H < 270 ? 10 : 0, C.xPosition = (C.textOffsetX + R) * Math.sin(M), C.yPosition = (C.textOffsetY + R) * -Math.cos(M), C;
16646
16662
  }).attr("transform", function(C, R) {
16647
- const $ = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
16648
- if (R >= $ - 2 && H < Mt.callout.minSliceDegree) {
16663
+ const M = f.length, H = (C.endAngle - C.startAngle) * (180 / Math.PI);
16664
+ if (R >= M - 2 && H < Mt.callout.minSliceDegree) {
16649
16665
  let P, B;
16650
- return C.index === $ - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.LEFT, v.push(C)), `translate(${P}, ${B})`;
16666
+ return C.index === M - 1 ? (P = C.xPosition + Mt.callout.offsetX + Mt.callout.textMargin + C.textOffsetX, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.RIGHT, v.push(C)) : (P = C.xPosition - Mt.callout.offsetX - C.textOffsetX - Mt.callout.textMargin, B = C.yPosition - Mt.callout.offsetY, C.direction = Fs.LEFT, v.push(C)), `translate(${P}, ${B})`;
16651
16667
  }
16652
16668
  return `translate(${C.xPosition}, ${C.yPosition})`;
16653
16669
  }), this.renderCallouts(v);
16654
16670
  const b = y(i, "donut") ? "donut" : "pie", _ = y(i, b, "alignment"), { width: E } = N.getSVGElementSize(this.getParent(), {
16655
16671
  useAttrs: !0
16656
16672
  }), x = p ? Mt.xOffset : 0, S = p ? Mt.yOffset : 0;
16657
- let M = l + x;
16658
- _ === jt.CENTER ? M = E / 2 : _ === jt.RIGHT && (M = E - l - Mt.xOffset);
16659
- let k = l + S;
16660
- v.length > 0 && (k += Mt.yOffsetCallout), r.attr("x", M + 7).attr("y", k), this.addEventListeners();
16673
+ let $ = l + x;
16674
+ _ === jt.CENTER ? $ = E / 2 : _ === jt.RIGHT && ($ = E - l - Mt.xOffset);
16675
+ let D = l + S;
16676
+ v.length > 0 && (D += Mt.yOffsetCallout), r.attr("x", $ + 7).attr("y", D), this.addEventListeners();
16661
16677
  }
16662
16678
  renderCallouts(t) {
16663
16679
  const n = N.appendOrSelect(this.getComponentContainer(), "g.callouts").attr("role", ht.GROUP).attr("data-name", "callouts"), r = n.selectAll("g.callout").data(t);
@@ -16879,10 +16895,10 @@ class Ik extends mt {
16879
16895
  const { width: _ } = N.getSVGElementSize(
16880
16896
  N.appendOrSelect(t, "text.gauge-value-number"),
16881
16897
  { useBBox: !0 }
16882
- ), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width: M, height: k } = N.getSVGElementSize(S, {
16898
+ ), E = p / 2, x = u ? "%" : "", S = N.appendOrSelect(f, "text.gauge-value-symbol").style("font-size", `${E}px`).attr("x", _ / 2).text(x), { width: $, height: D } = N.getSVGElementSize(S, {
16883
16899
  useBBox: !0
16884
16900
  });
16885
- S.attr("y", `-${k / 2}px`), f.attr("transform", `translate(-${M / 2}, 0)`);
16901
+ S.attr("y", `-${D / 2}px`), f.attr("transform", `translate(-${$ / 2}, 0)`);
16886
16902
  }
16887
16903
  /**
16888
16904
  * adds the delta number for the gauge
@@ -17642,7 +17658,7 @@ class Hk extends mt {
17642
17658
  const _ = Jr().domain(this.fullDataNormalized.map((O) => O[u])).range([0, 2 * Math.PI].map((O) => O - Math.PI / 2)), E = Bn(this.fullDataNormalized.map((O) => O[d])), x = Fe().domain([
17643
17659
  E >= 0 ? 0 : E,
17644
17660
  nr(this.fullDataNormalized.map((O) => O[d]))
17645
- ]).range([g, b]).nice(f), S = x.ticks(f), M = (O, w, L) => this.model.getFillColor(O, w, L), k = uD().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(ig), C = this.uniqueKeys.map((O) => {
17661
+ ]).range([g, b]).nice(f), S = x.ticks(f), $ = (O, w, L) => this.model.getFillColor(O, w, L), D = uD().angle((O) => _(O[u]) + Math.PI / 2).radius((O) => x(O[d])).curve(ig), C = this.uniqueKeys.map((O) => {
17646
17662
  const w = this.getLabelDimensions(O).width, L = P2(
17647
17663
  _(O),
17648
17664
  b
@@ -17651,8 +17667,8 @@ class Hk extends mt {
17651
17667
  }), R = {
17652
17668
  x: nr(C) + h,
17653
17669
  y: i / 2
17654
- }, $ = N.appendOrSelect(n, "g.y-axes").attr("role", ht.GROUP).selectAll("path").data(S, (O) => O), H = (O) => this.uniqueKeys.map((w) => ({ [u]: w, [d]: O }));
17655
- $.join(
17670
+ }, M = N.appendOrSelect(n, "g.y-axes").attr("role", ht.GROUP).selectAll("path").data(S, (O) => O), H = (O) => this.uniqueKeys.map((w) => ({ [u]: w, [d]: O }));
17671
+ M.join(
17656
17672
  (O) => O.append("path").attr("opacity", 0).attr("transform", `translate(${R.x}, ${R.y})`).attr("fill", "none").call(
17657
17673
  (w) => w.transition().call(
17658
17674
  (L) => this.services.transitions.setupTransition({
@@ -17660,7 +17676,7 @@ class Hk extends mt {
17660
17676
  name: "radar_y_axes_enter",
17661
17677
  animate: t
17662
17678
  })
17663
- ).attr("opacity", 1).attr("d", (L) => k(H(L)))
17679
+ ).attr("opacity", 1).attr("d", (L) => D(H(L)))
17664
17680
  ),
17665
17681
  (O) => O.call(
17666
17682
  (w) => w.transition().call(
@@ -17669,7 +17685,7 @@ class Hk extends mt {
17669
17685
  name: "radar_y_axes_update",
17670
17686
  animate: t
17671
17687
  })
17672
- ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => k(H(L)))
17688
+ ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(H(L)))
17673
17689
  ),
17674
17690
  (O) => O.call(
17675
17691
  (w) => w.transition().call(
@@ -17678,7 +17694,7 @@ class Hk extends mt {
17678
17694
  name: "radar_y_axes_exit",
17679
17695
  animate: t
17680
17696
  })
17681
- ).attr("d", (L) => k(H(L))).attr("opacity", 0).remove()
17697
+ ).attr("d", (L) => D(H(L))).attr("opacity", 0).remove()
17682
17698
  )
17683
17699
  ), N.appendOrSelect(n, "g.x-axes").attr("role", ht.GROUP).selectAll("line").data(this.uniqueKeys, (O) => O).join(
17684
17700
  (O) => O.append("line").attr("opacity", 0).attr("class", (w) => `x-axis-${Tr(w)}`).attr("stroke-dasharray", "0").attr("x1", (w) => Ut(_(w), 0, R).x).attr("y1", (w) => Ut(_(w), 0, R).y).attr("x2", (w) => Ut(_(w), 0, R).x).attr("y2", (w) => Ut(_(w), 0, R).y).call(
@@ -17741,8 +17757,8 @@ class Hk extends mt {
17741
17757
  "y",
17742
17758
  (L) => Ut(_(L), x.range()[1] + h, R).y
17743
17759
  ).end().finally(() => {
17744
- const L = y(o, "radar", "alignment"), D = this.getAlignmentXOffset(L, n, this.getParent());
17745
- n.attr("x", D);
17760
+ const L = y(o, "radar", "alignment"), k = this.getAlignmentXOffset(L, n, this.getParent());
17761
+ n.attr("x", k);
17746
17762
  })
17747
17763
  ),
17748
17764
  (O) => O.call(
@@ -17765,15 +17781,15 @@ class Hk extends mt {
17765
17781
  ).attr("role", ht.GRAPHICS_SYMBOL).attr("aria-label", (w) => w.name).attr("opacity", 0).attr(
17766
17782
  "transform",
17767
17783
  t ? () => `translate(${R.x}, ${R.y}) scale(${1 + Math.random() * 0.35})` : `translate(${R.x}, ${R.y})`
17768
- ).style("fill", (w) => M(w.name, null, w.data)).style("fill-opacity", Wn.opacity.selected).style("stroke", (w) => M(w.name, null, w.data)).call((w) => {
17784
+ ).style("fill", (w) => $(w.name, null, w.data)).style("fill-opacity", Wn.opacity.selected).style("stroke", (w) => $(w.name, null, w.data)).call((w) => {
17769
17785
  const L = w.transition().call(
17770
- (D) => this.services.transitions.setupTransition({
17771
- transition: D,
17786
+ (k) => this.services.transitions.setupTransition({
17787
+ transition: k,
17772
17788
  name: "radar_blobs_enter",
17773
17789
  animate: t
17774
17790
  })
17775
17791
  );
17776
- t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (D) => k(D.data));
17792
+ t && L.delay(() => Math.random() * 30).attr("transform", `translate(${R.x}, ${R.y})`), L.attr("opacity", 1).attr("d", (k) => D(k.data));
17777
17793
  }),
17778
17794
  (O) => (O.attr(
17779
17795
  "class",
@@ -17782,19 +17798,19 @@ class Hk extends mt {
17782
17798
  dataGroupName: w.name,
17783
17799
  originalClassName: "blob"
17784
17800
  })
17785
- ).style("fill", (w) => M(w.name, null, w.data)).style("stroke", (w) => M(w.name, null, w.data)), O.call(
17801
+ ).style("fill", (w) => $(w.name, null, w.data)).style("stroke", (w) => $(w.name, null, w.data)), O.call(
17786
17802
  (w) => w.transition().call(
17787
17803
  (L) => this.services.transitions.setupTransition({
17788
17804
  transition: L,
17789
17805
  name: "radar_blobs_update",
17790
17806
  animate: t
17791
17807
  })
17792
- ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => k(L.data))
17808
+ ).attr("opacity", 1).attr("transform", `translate(${R.x}, ${R.y})`).attr("d", (L) => D(L.data))
17793
17809
  ), O),
17794
17810
  (O) => O.call((w) => {
17795
17811
  const L = w.transition().call(
17796
- (D) => this.services.transitions.setupTransition({
17797
- transition: D,
17812
+ (k) => this.services.transitions.setupTransition({
17813
+ transition: k,
17798
17814
  name: "radar_blobs_exit",
17799
17815
  animate: t
17800
17816
  })
@@ -17815,7 +17831,7 @@ class Hk extends mt {
17815
17831
  dataGroupName: O[l],
17816
17832
  originalClassName: Tr(O[u])
17817
17833
  })
17818
- ).attr("cx", (O) => Ut(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Ut(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) => M(O[l])), N.appendOrSelect(n, "g.x-axes-rect").attr("role", ht.GROUP).selectAll("rect").data(this.uniqueKeys).join(
17834
+ ).attr("cx", (O) => Ut(_(O[u]), x(O[d]), R).x).attr("cy", (O) => Ut(_(O[u]), x(O[d]), R).y).attr("r", 0).attr("opacity", 0).style("fill", (O) => $(O[l])), N.appendOrSelect(n, "g.x-axes-rect").attr("role", ht.GROUP).selectAll("rect").data(this.uniqueKeys).join(
17819
17835
  (O) => O.append("rect"),
17820
17836
  (O) => O,
17821
17837
  (O) => O.remove()
@@ -18329,49 +18345,49 @@ class Gk extends mt {
18329
18345
  name: o,
18330
18346
  children: a
18331
18347
  }), p = 10, f = r / 6, g = (S) => {
18332
- const M = h.descendants().reverse(), k = h.links();
18348
+ const $ = h.descendants().reverse(), D = h.links();
18333
18349
  let C = h, R = h;
18334
- h.eachBefore((D) => {
18335
- D.x < C.x && (C = D), D.x > R.x && (R = D);
18350
+ h.eachBefore((k) => {
18351
+ k.x < C.x && (C = k), k.x > R.x && (R = k);
18336
18352
  });
18337
- const $ = R.x - C.x, H = n.transition().call(
18338
- (D) => this.services.transitions.setupTransition({
18339
- transition: D,
18353
+ const M = R.x - C.x, H = n.transition().call(
18354
+ (k) => this.services.transitions.setupTransition({
18355
+ transition: k,
18340
18356
  name: "tree-update-viewbox",
18341
18357
  animate: !0
18342
18358
  })
18343
- ).attr("viewBox", [-d.left, C.x, r, $].join(" ")), P = x.selectAll("g").data(M, (D) => D.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
18359
+ ).attr("viewBox", [-d.left, C.x, r, M].join(" ")), P = x.selectAll("g").data($, (k) => k.id), B = this, O = P.enter().append("g").attr("transform", () => `translate(${S.y0},${S.x0})`).attr(
18344
18360
  "class",
18345
- (D) => D.depth !== 0 && D.children && D.children.length > 0 ? "clickable" : null
18346
- ).on("mouseover", function(D, U) {
18361
+ (k) => k.depth !== 0 && k.children && k.children.length > 0 ? "clickable" : null
18362
+ ).on("mouseover", function(k, U) {
18347
18363
  B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOVER, {
18348
- event: D,
18364
+ event: k,
18349
18365
  element: I(this),
18350
18366
  datum: U
18351
18367
  });
18352
- }).on("click", function(D, U) {
18368
+ }).on("click", function(k, U) {
18353
18369
  U.depth !== 0 && (U.children = U.children ? null : U._children, g(U)), B.services.events.dispatchEvent(T.Tree.NODE_CLICK, {
18354
- event: D,
18370
+ event: k,
18355
18371
  element: I(this),
18356
18372
  datum: U
18357
18373
  });
18358
- }).on("mouseout", function(D, U) {
18374
+ }).on("mouseout", function(k, U) {
18359
18375
  B.services.events.dispatchEvent(T.Tree.NODE_MOUSEOUT, {
18360
- event: D,
18376
+ event: k,
18361
18377
  element: I(this),
18362
18378
  datum: U
18363
18379
  });
18364
18380
  });
18365
- O.append("circle").attr("r", 2.5).attr("class", (D) => D._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (D) => D._children ? -Cr : Cr).attr("text-anchor", (D) => D._children ? "end" : "start").text((D) => D.data.name).clone(!0).attr("class", "text-stroke").lower(), P.merge(O).transition(H).attr("transform", (D) => `translate(${D.y},${D.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), P.exit().transition(H).remove().attr("transform", () => `translate(${S.y},${S.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
18366
- const w = E.selectAll("path").data(k, (D) => D.target.id), L = w.enter().append("path").attr("d", () => {
18367
- const D = { x: S.x0, y: S.y0 };
18368
- return _({ source: D, target: D });
18381
+ O.append("circle").attr("r", 2.5).attr("class", (k) => k._children ? "parent" : "child").attr("stroke-width", 10), O.append("text").attr("dy", "0.31em").attr("x", (k) => k._children ? -Cr : Cr).attr("text-anchor", (k) => k._children ? "end" : "start").text((k) => k.data.name).clone(!0).attr("class", "text-stroke").lower(), P.merge(O).transition(H).attr("transform", (k) => `translate(${k.y},${k.x})`).attr("fill-opacity", 1).attr("stroke-opacity", 1), P.exit().transition(H).remove().attr("transform", () => `translate(${S.y},${S.x})`).attr("fill-opacity", 0).attr("stroke-opacity", 0);
18382
+ const w = E.selectAll("path").data(D, (k) => k.target.id), L = w.enter().append("path").attr("d", () => {
18383
+ const k = { x: S.x0, y: S.y0 };
18384
+ return _({ source: k, target: k });
18369
18385
  });
18370
18386
  w.merge(L).transition(H).attr("d", _), w.exit().transition(H).remove().attr("d", () => {
18371
- const D = { x: S.x, y: S.y };
18372
- return _({ source: D, target: D });
18373
- }), h.eachBefore((D) => {
18374
- D.x0 = D.x, D.y0 = D.y;
18387
+ const k = { x: S.x, y: S.y };
18388
+ return _({ source: k, target: k });
18389
+ }), h.eachBefore((k) => {
18390
+ k.x0 = k.x, k.y0 = k.y;
18375
18391
  });
18376
18392
  }, m = h.descendants(), v = m[m.length - 1].depth, b = y(s, "tree", "type") === dc.DENDROGRAM ? aL().size([
18377
18393
  i,
@@ -18380,8 +18396,8 @@ class Gk extends mt {
18380
18396
  i,
18381
18397
  r - u - v * Cr - l
18382
18398
  ]), _ = gD().x((S) => S.y).y((S) => S.x);
18383
- h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S, M) => {
18384
- S.id = M, S._children = S.children;
18399
+ h.x0 = f / 2, h.y0 = 0, h.descendants().forEach((S, $) => {
18400
+ S.id = $, S._children = S.children;
18385
18401
  }), b(h), n.attr("viewBox", [-d.left, -0, r, p]).style("user-select", "none");
18386
18402
  const E = n.append("g").attr("class", "links"), x = n.append("g").attr("class", "nodes");
18387
18403
  g(h);
@@ -18838,28 +18854,28 @@ function TN() {
18838
18854
  rectangular: m
18839
18855
  }, r = 64, i = 2048;
18840
18856
  cl = function() {
18841
- var E = [256, 256], x = s, S = a, M = l, k = o, C = o, R = c, $ = u, H = g, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, D = {}, U = b;
18842
- D.canvas = function(F) {
18843
- return arguments.length ? (U = _(F), D) : U;
18844
- }, D.start = function() {
18857
+ var E = [256, 256], x = s, S = a, $ = l, D = o, C = o, R = c, M = u, H = g, P = [], B = 1 / 0, O = e("word", "end"), w = null, L = Math.random, k = {}, U = b;
18858
+ k.canvas = function(F) {
18859
+ return arguments.length ? (U = _(F), k) : U;
18860
+ }, k.start = function() {
18845
18861
  var F = Z(U()), Y = v((E[0] >> 5) * E[1]), ot = null, Q = P.length, q = -1, tt = [], lt = P.map(function(W, X) {
18846
- return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = k.call(this, W, X), W.weight = C.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~M.call(this, W, X), W.padding = $.call(this, W, X), W;
18862
+ return W.text = x.call(this, W, X), W.font = S.call(this, W, X), W.style = D.call(this, W, X), W.weight = C.call(this, W, X), W.rotate = R.call(this, W, X), W.size = ~~$.call(this, W, X), W.padding = M.call(this, W, X), W;
18847
18863
  }).sort(function(W, X) {
18848
18864
  return X.size - W.size;
18849
18865
  });
18850
- return w && clearInterval(w), w = setInterval(z, 0), z(), D;
18866
+ return w && clearInterval(w), w = setInterval(z, 0), z(), k;
18851
18867
  function z() {
18852
18868
  for (var W = Date.now(); Date.now() - W < B && ++q < Q && w; ) {
18853
18869
  var X = lt[q];
18854
- X.x = E[0] * (L() + 0.5) >> 1, X.y = E[1] * (L() + 0.5) >> 1, d(F, X, lt, q), X.hasText && j(Y, X, ot) && (tt.push(X), O.call("word", D, X), ot ? p(ot, X) : ot = [{ x: X.x + X.x0, y: X.y + X.y0 }, { x: X.x + X.x1, y: X.y + X.y1 }], X.x -= E[0] >> 1, X.y -= E[1] >> 1);
18870
+ X.x = E[0] * (L() + 0.5) >> 1, X.y = E[1] * (L() + 0.5) >> 1, d(F, X, lt, q), X.hasText && j(Y, X, ot) && (tt.push(X), O.call("word", k, X), ot ? p(ot, X) : ot = [{ x: X.x + X.x0, y: X.y + X.y0 }, { x: X.x + X.x1, y: X.y + X.y1 }], X.x -= E[0] >> 1, X.y -= E[1] >> 1);
18855
18871
  }
18856
- q >= Q && (D.stop(), O.call("end", D, tt, ot));
18872
+ q >= Q && (k.stop(), O.call("end", k, tt, ot));
18857
18873
  }
18858
- }, D.stop = function() {
18874
+ }, k.stop = function() {
18859
18875
  w && (clearInterval(w), w = null);
18860
18876
  for (const F of P)
18861
18877
  delete F.sprite;
18862
- return D;
18878
+ return k;
18863
18879
  };
18864
18880
  function Z(F) {
18865
18881
  const Y = F.getContext("2d", { willReadFrequently: !0 });
@@ -18881,34 +18897,34 @@ function TN() {
18881
18897
  }
18882
18898
  return !1;
18883
18899
  }
18884
- return D.timeInterval = function(F) {
18885
- return arguments.length ? (B = F ?? 1 / 0, D) : B;
18886
- }, D.words = function(F) {
18887
- return arguments.length ? (P = F, D) : P;
18888
- }, D.size = function(F) {
18889
- return arguments.length ? (E = [+F[0], +F[1]], D) : E;
18890
- }, D.font = function(F) {
18891
- return arguments.length ? (S = _(F), D) : S;
18892
- }, D.fontStyle = function(F) {
18893
- return arguments.length ? (k = _(F), D) : k;
18894
- }, D.fontWeight = function(F) {
18895
- return arguments.length ? (C = _(F), D) : C;
18896
- }, D.rotate = function(F) {
18897
- return arguments.length ? (R = _(F), D) : R;
18898
- }, D.text = function(F) {
18899
- return arguments.length ? (x = _(F), D) : x;
18900
- }, D.spiral = function(F) {
18901
- return arguments.length ? (H = n[F] || F, D) : H;
18902
- }, D.fontSize = function(F) {
18903
- return arguments.length ? (M = _(F), D) : M;
18904
- }, D.padding = function(F) {
18905
- return arguments.length ? ($ = _(F), D) : $;
18906
- }, D.random = function(F) {
18907
- return arguments.length ? (L = F, D) : L;
18908
- }, D.on = function() {
18900
+ return k.timeInterval = function(F) {
18901
+ return arguments.length ? (B = F ?? 1 / 0, k) : B;
18902
+ }, k.words = function(F) {
18903
+ return arguments.length ? (P = F, k) : P;
18904
+ }, k.size = function(F) {
18905
+ return arguments.length ? (E = [+F[0], +F[1]], k) : E;
18906
+ }, k.font = function(F) {
18907
+ return arguments.length ? (S = _(F), k) : S;
18908
+ }, k.fontStyle = function(F) {
18909
+ return arguments.length ? (D = _(F), k) : D;
18910
+ }, k.fontWeight = function(F) {
18911
+ return arguments.length ? (C = _(F), k) : C;
18912
+ }, k.rotate = function(F) {
18913
+ return arguments.length ? (R = _(F), k) : R;
18914
+ }, k.text = function(F) {
18915
+ return arguments.length ? (x = _(F), k) : x;
18916
+ }, k.spiral = function(F) {
18917
+ return arguments.length ? (H = n[F] || F, k) : H;
18918
+ }, k.fontSize = function(F) {
18919
+ return arguments.length ? ($ = _(F), k) : $;
18920
+ }, k.padding = function(F) {
18921
+ return arguments.length ? (M = _(F), k) : M;
18922
+ }, k.random = function(F) {
18923
+ return arguments.length ? (L = F, k) : L;
18924
+ }, k.on = function() {
18909
18925
  var F = O.on.apply(O, arguments);
18910
- return F === O ? D : F;
18911
- }, D;
18926
+ return F === O ? k : F;
18927
+ }, k;
18912
18928
  };
18913
18929
  function s(E) {
18914
18930
  return E.text;
@@ -18928,34 +18944,34 @@ function TN() {
18928
18944
  function u() {
18929
18945
  return 1;
18930
18946
  }
18931
- function d(E, x, S, M) {
18947
+ function d(E, x, S, $) {
18932
18948
  if (!x.sprite) {
18933
- var k = E.context, C = E.ratio;
18934
- k.clearRect(0, 0, (r << 5) / C, i / C);
18935
- var R = 0, $ = 0, H = 0, P = S.length;
18936
- for (--M; ++M < P; ) {
18937
- x = S[M], k.save(), k.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
18938
- const X = k.measureText(x.text), V = -Math.floor(X.width / 2);
18949
+ var D = E.context, C = E.ratio;
18950
+ D.clearRect(0, 0, (r << 5) / C, i / C);
18951
+ var R = 0, M = 0, H = 0, P = S.length;
18952
+ for (--$; ++$ < P; ) {
18953
+ x = S[$], D.save(), D.font = x.style + " " + x.weight + " " + ~~((x.size + 1) / C) + "px " + x.font;
18954
+ const X = D.measureText(x.text), V = -Math.floor(X.width / 2);
18939
18955
  let ut = (X.width + 1) * C, st = x.size << 1;
18940
18956
  if (x.rotate) {
18941
- var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B, D = st * O, U = st * B;
18942
- ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L + D), Math.abs(L - D));
18957
+ var B = Math.sin(x.rotate * t), O = Math.cos(x.rotate * t), w = ut * O, L = ut * B, k = st * O, U = st * B;
18958
+ ut = Math.max(Math.abs(w + U), Math.abs(w - U)) + 31 >> 5 << 5, st = ~~Math.max(Math.abs(L + k), Math.abs(L - k));
18943
18959
  } else
18944
18960
  ut = ut + 31 >> 5 << 5;
18945
- if (st > H && (H = st), R + ut >= r << 5 && (R = 0, $ += H, H = 0), $ + st >= i) break;
18946
- k.translate((R + (ut >> 1)) / C, ($ + (st >> 1)) / C), x.rotate && k.rotate(x.rotate * t), k.fillText(x.text, V, 0), x.padding && (k.lineWidth = 2 * x.padding, k.strokeText(x.text, V, 0)), k.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = $, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
18961
+ if (st > H && (H = st), R + ut >= r << 5 && (R = 0, M += H, H = 0), M + st >= i) break;
18962
+ D.translate((R + (ut >> 1)) / C, (M + (st >> 1)) / C), x.rotate && D.rotate(x.rotate * t), D.fillText(x.text, V, 0), x.padding && (D.lineWidth = 2 * x.padding, D.strokeText(x.text, V, 0)), D.restore(), x.width = ut, x.height = st, x.xoff = R, x.yoff = M, x.x1 = ut >> 1, x.y1 = st >> 1, x.x0 = -x.x1, x.y0 = -x.y1, x.hasText = !0, R += ut;
18947
18963
  }
18948
- for (var Z = k.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --M >= 0; )
18949
- if (x = S[M], !!x.hasText) {
18964
+ for (var Z = D.getImageData(0, 0, (r << 5) / C, i / C).data, j = []; --$ >= 0; )
18965
+ if (x = S[$], !!x.hasText) {
18950
18966
  for (var F = x.width, Y = F >> 5, ot = x.y1 - x.y0, Q = 0; Q < ot * Y; Q++) j[Q] = 0;
18951
18967
  if (R = x.xoff, R == null) return;
18952
- $ = x.yoff;
18968
+ M = x.yoff;
18953
18969
  for (var q = 0, tt = -1, lt = 0; lt < ot; lt++) {
18954
18970
  for (var Q = 0; Q < F; Q++) {
18955
- var z = Y * lt + (Q >> 5), W = Z[($ + lt) * (r << 5) + (R + Q) << 2] ? 1 << 31 - Q % 32 : 0;
18971
+ var z = Y * lt + (Q >> 5), W = Z[(M + lt) * (r << 5) + (R + Q) << 2] ? 1 << 31 - Q % 32 : 0;
18956
18972
  j[z] |= W, q |= W;
18957
18973
  }
18958
- q ? tt = lt : (x.y0++, ot--, lt--, $++);
18974
+ q ? tt = lt : (x.y0++, ot--, lt--, M++);
18959
18975
  }
18960
18976
  x.y1 = x.y0 + tt, x.sprite = j.slice(0, (x.y1 - x.y0) * Y);
18961
18977
  }
@@ -18963,17 +18979,17 @@ function TN() {
18963
18979
  }
18964
18980
  function h(E, x, S) {
18965
18981
  S >>= 5;
18966
- for (var M = E.sprite, k = E.width >> 5, C = E.x - (k << 4), R = C & 127, $ = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
18982
+ for (var $ = E.sprite, D = E.width >> 5, C = E.x - (D << 4), R = C & 127, M = 32 - R, H = E.y1 - E.y0, P = (E.y + E.y0) * S + (C >> 5), B, O = 0; O < H; O++) {
18967
18983
  B = 0;
18968
- for (var w = 0; w <= k; w++)
18969
- if ((B << $ | (w < k ? (B = M[O * k + w]) >>> R : 0)) & x[P + w]) return !0;
18984
+ for (var w = 0; w <= D; w++)
18985
+ if ((B << M | (w < D ? (B = $[O * D + w]) >>> R : 0)) & x[P + w]) return !0;
18970
18986
  P += S;
18971
18987
  }
18972
18988
  return !1;
18973
18989
  }
18974
18990
  function p(E, x) {
18975
- var S = E[0], M = E[1];
18976
- x.x + x.x0 < S.x && (S.x = x.x + x.x0), x.y + x.y0 < S.y && (S.y = x.y + x.y0), x.x + x.x1 > M.x && (M.x = x.x + x.x1), x.y + x.y1 > M.y && (M.y = x.y + x.y1);
18991
+ var S = E[0], $ = E[1];
18992
+ x.x + x.x0 < S.x && (S.x = x.x + x.x0), x.y + x.y0 < S.y && (S.y = x.y + x.y0), x.x + x.x1 > $.x && ($.x = x.x + x.x1), x.y + x.y1 > $.y && ($.y = x.y + x.y1);
18977
18993
  }
18978
18994
  function f(E, x) {
18979
18995
  return E.x + E.x1 > x[0].x && E.x + E.x0 < x[1].x && E.y + E.y1 > x[0].y && E.y + E.y0 < x[1].y;
@@ -18985,24 +19001,24 @@ function TN() {
18985
19001
  };
18986
19002
  }
18987
19003
  function m(E) {
18988
- var x = 4, S = x * E[0] / E[1], M = 0, k = 0;
19004
+ var x = 4, S = x * E[0] / E[1], $ = 0, D = 0;
18989
19005
  return function(C) {
18990
19006
  var R = C < 0 ? -1 : 1;
18991
19007
  switch (Math.sqrt(1 + 4 * R * C) - R & 3) {
18992
19008
  case 0:
18993
- M += S;
19009
+ $ += S;
18994
19010
  break;
18995
19011
  case 1:
18996
- k += x;
19012
+ D += x;
18997
19013
  break;
18998
19014
  case 2:
18999
- M -= S;
19015
+ $ -= S;
19000
19016
  break;
19001
19017
  default:
19002
- k -= x;
19018
+ D -= x;
19003
19019
  break;
19004
19020
  }
19005
- return [M, k];
19021
+ return [$, D];
19006
19022
  };
19007
19023
  }
19008
19024
  function v(E) {
@@ -20572,10 +20588,10 @@ class SP extends kn {
20572
20588
  ), E = [];
20573
20589
  b.forEach((x) => {
20574
20590
  const { ...S } = x;
20575
- let M = 0, k = 0;
20591
+ let $ = 0, D = 0;
20576
20592
  Object.values(UN(S, "sharedStackKey")).forEach((C) => {
20577
- isNaN(C) || (C < 0 ? k += C : M += C);
20578
- }), E.push([k, M]);
20593
+ isNaN(C) || (C < 0 ? D += C : $ += C);
20594
+ }), E.push([D, $]);
20579
20595
  }), g = [
20580
20596
  ...hu(E),
20581
20597
  ..._.map((x) => x[c])