northdata-viz 1.489.11 → 1.490.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/viz.esm.js +307 -323
  3. package/viz.min.js +2 -2
package/viz.esm.js CHANGED
@@ -6,10 +6,10 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
6
6
  enumerable: !(s = n(i, d)) || s.enumerable
7
7
  });
8
8
  return e;
9
- }, c = (n, r, a) => (a = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule ? t(a, "default", {
9
+ }, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
10
10
  value: n,
11
11
  enumerable: !0
12
- }) : a, n)), l = "0.0.0-SNAPSHOT";
12
+ }) : o, n)), l = "0.0.0-SNAPSHOT";
13
13
  //#endregion
14
14
  //#region src/ts/util/params.ts
15
15
  function u(e, t) {
@@ -1052,7 +1052,7 @@ function On() {
1052
1052
  //#region node_modules/.pnpm/d3-fetch@3.0.1/node_modules/d3-fetch/src/json.js
1053
1053
  function kn(e) {
1054
1054
  if (!e.ok) throw Error(e.status + " " + e.statusText);
1055
- if (!(e.status === 204 || e.status === 205)) return e.json();
1055
+ if (e.status !== 204 && e.status !== 205) return e.json();
1056
1056
  }
1057
1057
  function An(e, t) {
1058
1058
  return fetch(e, t).then(kn);
@@ -1137,8 +1137,10 @@ function R(e, t, n, r) {
1137
1137
  }, i.filter = (n) => R((t) => {
1138
1138
  if (t >= t) for (; e(t), !n(t);) t.setTime(t - 1);
1139
1139
  }, (e, r) => {
1140
- if (e >= e) if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
1141
- else for (; --r >= 0;) for (; t(e, 1), !n(e););
1140
+ if (e >= e) {
1141
+ if (r < 0) for (; ++r <= 0;) for (; t(e, -1), !n(e););
1142
+ else for (; --r >= 0;) for (; t(e, 1), !n(e););
1143
+ }
1142
1144
  }), n && (i.count = (t, r) => (Mn.setTime(+t), Nn.setTime(+r), e(Mn), e(Nn), Math.floor(n(Mn, Nn))), i.every = (e) => (e = Math.floor(e), !isFinite(e) || !(e > 0) ? null : e > 1 ? i.filter(r ? (t) => r(t) % e === 0 : (t) => i.count(0, t) % e === 0) : i)), i;
1143
1145
  }
1144
1146
  //#endregion
@@ -1381,9 +1383,10 @@ function Dr(e, t, n) {
1381
1383
  let r = t < e, [i, a, o] = r ? Er(t, e, n) : Er(e, t, n);
1382
1384
  if (!(a >= i)) return [];
1383
1385
  let s = a - i + 1, c = Array(s);
1384
- if (r) if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
1385
- else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
1386
- else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
1386
+ if (r) {
1387
+ if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
1388
+ else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
1389
+ } else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
1387
1390
  else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
1388
1391
  return c;
1389
1392
  }
@@ -2148,7 +2151,6 @@ function ma(e) {
2148
2151
  default:
2149
2152
  if (!+e[n]) break out;
2150
2153
  r > 0 && (r = 0);
2151
- break;
2152
2154
  }
2153
2155
  return r > 0 ? e.slice(0, r) + e.slice(i + 1) : e;
2154
2156
  }
@@ -2245,9 +2247,7 @@ function Sa(e) {
2245
2247
  case "^":
2246
2248
  e = E.slice(0, T = E.length >> 1) + n + e + r + E.slice(T);
2247
2249
  break;
2248
- default:
2249
- e = E + n + e + r;
2250
- break;
2250
+ default: e = E + n + e + r;
2251
2251
  }
2252
2252
  return a(e);
2253
2253
  }
@@ -2658,9 +2658,7 @@ function Ja(e, t) {
2658
2658
  case 1:
2659
2659
  this.range(e);
2660
2660
  break;
2661
- default:
2662
- this.range(t).domain(e);
2663
- break;
2661
+ default: this.range(t).domain(e);
2664
2662
  }
2665
2663
  return this;
2666
2664
  }
@@ -3023,9 +3021,7 @@ function Lo(e, t, n, r) {
3023
3021
  r.precision == null && !isNaN(a = ka(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
3024
3022
  break;
3025
3023
  case "f":
3026
- case "%":
3027
- r.precision == null && !isNaN(a = Da(i)) && (r.precision = a - (r.type === "%") * 2);
3028
- break;
3024
+ case "%": r.precision == null && !isNaN(a = Da(i)) && (r.precision = a - (r.type === "%") * 2);
3029
3025
  }
3030
3026
  return wa(r);
3031
3027
  }
@@ -3589,10 +3585,12 @@ var ec = class {
3589
3585
  if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
3590
3586
  let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
3591
3587
  if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
3592
- else if (d > Xs) if (!(Math.abs(u * s - c * l) > Xs) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
3593
- else {
3594
- let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((Js - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
3595
- Math.abs(y - 1) > Xs && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
3588
+ else if (d > Xs) {
3589
+ if (!(Math.abs(u * s - c * l) > Xs) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
3590
+ else {
3591
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((Js - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
3592
+ Math.abs(y - 1) > Xs && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
3593
+ }
3596
3594
  }
3597
3595
  }
3598
3596
  arc(e, t, n, r, i, a) {
@@ -3607,13 +3605,10 @@ var ec = class {
3607
3605
  return this._;
3608
3606
  }
3609
3607
  };
3610
- function tc() {
3611
- return new ec();
3612
- }
3613
- tc.prototype = ec.prototype;
3608
+ ec.prototype;
3614
3609
  //#endregion
3615
3610
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.js
3616
- function nc(e) {
3611
+ function tc(e) {
3617
3612
  let t = 3;
3618
3613
  return e.digits = function(n) {
3619
3614
  if (!arguments.length) return t;
@@ -3628,16 +3623,16 @@ function nc(e) {
3628
3623
  }
3629
3624
  //#endregion
3630
3625
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.js
3631
- var rc = Array.prototype.slice;
3632
- function ic(e) {
3626
+ var nc = Array.prototype.slice;
3627
+ function rc(e) {
3633
3628
  return typeof e == "object" && "length" in e ? e : Array.from(e);
3634
3629
  }
3635
3630
  //#endregion
3636
3631
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.js
3637
- function ac(e) {
3632
+ function ic(e) {
3638
3633
  this._context = e;
3639
3634
  }
3640
- ac.prototype = {
3635
+ ic.prototype = {
3641
3636
  areaStart: function() {
3642
3637
  this._line = 0;
3643
3638
  },
@@ -3656,30 +3651,28 @@ ac.prototype = {
3656
3651
  this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
3657
3652
  break;
3658
3653
  case 1: this._point = 2;
3659
- default:
3660
- this._context.lineTo(e, t);
3661
- break;
3654
+ default: this._context.lineTo(e, t);
3662
3655
  }
3663
3656
  }
3664
3657
  };
3665
- function oc(e) {
3666
- return new ac(e);
3658
+ function ac(e) {
3659
+ return new ic(e);
3667
3660
  }
3668
3661
  //#endregion
3669
3662
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
3670
- function sc(e) {
3663
+ function oc(e) {
3671
3664
  return e[0];
3672
3665
  }
3673
- function cc(e) {
3666
+ function sc(e) {
3674
3667
  return e[1];
3675
3668
  }
3676
3669
  //#endregion
3677
3670
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.js
3678
- function lc(e, t) {
3679
- var n = J(!0), r = null, i = oc, a = null, o = nc(s);
3680
- e = typeof e == "function" ? e : e === void 0 ? sc : J(e), t = typeof t == "function" ? t : t === void 0 ? cc : J(t);
3671
+ function cc(e, t) {
3672
+ var n = J(!0), r = null, i = ac, a = null, o = tc(s);
3673
+ e = typeof e == "function" ? e : e === void 0 ? oc : J(e), t = typeof t == "function" ? t : t === void 0 ? sc : J(t);
3681
3674
  function s(s) {
3682
- var c, l = (s = ic(s)).length, u, d = !1, f;
3675
+ var c, l = (s = rc(s)).length, u, d = !1, f;
3683
3676
  for (r ?? (a = i(f = o())), c = 0; c <= l; ++c) !(c < l && n(u = s[c], c, s)) === d && ((d = !d) ? a.lineStart() : a.lineEnd()), d && a.point(+e(u, c, s), +t(u, c, s));
3684
3677
  if (f) return a = null, f + "" || null;
3685
3678
  }
@@ -3697,7 +3690,7 @@ function lc(e, t) {
3697
3690
  }
3698
3691
  //#endregion
3699
3692
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.js
3700
- var uc = class {
3693
+ var lc = class {
3701
3694
  constructor(e, t) {
3702
3695
  this._context = e, this._x = t;
3703
3696
  }
@@ -3719,28 +3712,26 @@ var uc = class {
3719
3712
  this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
3720
3713
  break;
3721
3714
  case 1: this._point = 2;
3722
- default:
3723
- this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
3724
- break;
3715
+ default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
3725
3716
  }
3726
3717
  this._x0 = e, this._y0 = t;
3727
3718
  }
3728
3719
  };
3729
- function dc(e) {
3730
- return new uc(e, !0);
3720
+ function uc(e) {
3721
+ return new lc(e, !0);
3731
3722
  }
3732
3723
  //#endregion
3733
3724
  //#region node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/link.js
3734
- function fc(e) {
3725
+ function dc(e) {
3735
3726
  return e.source;
3736
3727
  }
3737
- function pc(e) {
3728
+ function fc(e) {
3738
3729
  return e.target;
3739
3730
  }
3740
- function mc(e) {
3741
- let t = fc, n = pc, r = sc, i = cc, a = null, o = null, s = nc(c);
3731
+ function pc(e) {
3732
+ let t = dc, n = fc, r = oc, i = sc, a = null, o = null, s = tc(c);
3742
3733
  function c() {
3743
- let c, l = rc.call(arguments), u = t.apply(this, l), d = n.apply(this, l);
3734
+ let c, l = nc.call(arguments), u = t.apply(this, l), d = n.apply(this, l);
3744
3735
  if (a ?? (o = e(c = s())), o.lineStart(), l[0] = u, o.point(+r.apply(this, l), +i.apply(this, l)), l[0] = d, o.point(+r.apply(this, l), +i.apply(this, l)), o.lineEnd(), c) return o = null, c + "" || null;
3745
3736
  }
3746
3737
  return c.source = function(e) {
@@ -3755,15 +3746,15 @@ function mc(e) {
3755
3746
  return arguments.length ? (t == null ? a = o = null : o = e(a = t), c) : a;
3756
3747
  }, c;
3757
3748
  }
3758
- function hc() {
3759
- return mc(dc);
3749
+ function mc() {
3750
+ return pc(uc);
3760
3751
  }
3761
- function gc(e) {
3762
- return lc().x(function(t) {
3752
+ function hc(e) {
3753
+ return cc().x(function(t) {
3763
3754
  return e * t.x;
3764
3755
  }).y(function(t) {
3765
3756
  return e * t.y;
3766
- }).curve(oc)([
3757
+ }).curve(ac)([
3767
3758
  {
3768
3759
  x: 0,
3769
3760
  y: 0
@@ -3782,7 +3773,7 @@ function gc(e) {
3782
3773
  }
3783
3774
  ]);
3784
3775
  }
3785
- function _c(e, t, n, r, i, a, o = 0) {
3776
+ function gc(e, t, n, r, i, a, o = 0) {
3786
3777
  e.each(function() {
3787
3778
  let e = L(this), s = e.select(t).node(), c = e.select(n).node();
3788
3779
  if (s && c && s.textContent) {
@@ -3795,7 +3786,7 @@ function _c(e, t, n, r, i, a, o = 0) {
3795
3786
  }
3796
3787
  });
3797
3788
  }
3798
- function vc(e, t = !1) {
3789
+ function _c(e, t = !1) {
3799
3790
  if (Cn()) return;
3800
3791
  e.reverse();
3801
3792
  let n = [], r = [];
@@ -3803,17 +3794,17 @@ function vc(e, t = !1) {
3803
3794
  let e = t && i.classList.contains("link") ? r : n;
3804
3795
  e.includes(i) || e.push(i);
3805
3796
  }
3806
- if (r.reverse(), n.reverse(), yc(r)) for (let e of r) e.parentNode?.appendChild(e);
3807
- if (yc(n)) for (let e of n) e.parentNode?.appendChild(e);
3797
+ if (r.reverse(), n.reverse(), vc(r)) for (let e of r) e.parentNode?.appendChild(e);
3798
+ if (vc(n)) for (let e of n) e.parentNode?.appendChild(e);
3808
3799
  }
3809
- function yc(e) {
3800
+ function vc(e) {
3810
3801
  let t = e[0];
3811
3802
  if (!t) return !1;
3812
3803
  let n = e.length, r = t.parentNode?.childNodes ?? [];
3813
3804
  for (let t = 0; t < n; ++t) if (r[r.length - n + t] != e[t]) return !0;
3814
3805
  return !1;
3815
3806
  }
3816
- function bc(e, t, n, r, i = {}) {
3807
+ function yc(e, t, n, r, i = {}) {
3817
3808
  let a = e.container.getBoundingClientRect().width;
3818
3809
  function o(e) {
3819
3810
  return t.select(".node[data-id='" + e + "']");
@@ -3824,9 +3815,9 @@ function bc(e, t, n, r, i = {}) {
3824
3815
  let c;
3825
3816
  function l(e) {
3826
3817
  let n = e.id, s = n == r ? "root" : "node", l = o(n).attr("data-highlight", s).classed("hovered", !0);
3827
- l.select(".text").text(e.desc), _c(l, ".text", ".text-bg", i.denseLeaves ? 2 : 5, 2, a);
3818
+ l.select(".text").text(e.desc), gc(l, ".text", ".text-bg", i.denseLeaves ? 2 : 5, 2, a);
3828
3819
  let u = t.selectAll("[data-source-id='" + n + "'],[data-target-id='" + n + "']").attr("data-highlight", s);
3829
- _c(u, ".desc", ".desc-bg", 3, 2, a), window.clearTimeout(c);
3820
+ gc(u, ".desc", ".desc-bg", 3, 2, a), window.clearTimeout(c);
3830
3821
  let d = [];
3831
3822
  u.each(function(e) {
3832
3823
  d.push(this);
@@ -3834,13 +3825,13 @@ function bc(e, t, n, r, i = {}) {
3834
3825
  e != n && d.push(o(e).node());
3835
3826
  }
3836
3827
  t(e.source.id), t(e.target.id);
3837
- }), d.push(l.node()), vc(d, i.separateLinksContainer);
3828
+ }), d.push(l.node()), _c(d, i.separateLinksContainer);
3838
3829
  }
3839
3830
  function u() {
3840
3831
  let e = [];
3841
3832
  t.select(".node").each(function() {
3842
3833
  e.push(this);
3843
- }), e.push(s().node()), vc(e);
3834
+ }), e.push(s().node()), _c(e);
3844
3835
  }
3845
3836
  function d(e) {
3846
3837
  t.selectAll("[data-highlight]").attr("data-highlight", "false").classed("hovered", !1), t.select(".node[data-id='" + e.id + "']").select(".text").text(e.text).attr("x", 0), c = window.setTimeout(u, 1e3);
@@ -3854,7 +3845,7 @@ function bc(e, t, n, r, i = {}) {
3854
3845
  });
3855
3846
  return Sn("mouseover", f.node(), h, l), Sn("mouseout", f.node(), h, d), h.append("circle").attr("r", 20), h.append("text").attr("class", "icon").text((e) => e.icon), h.append("rect").attr("class", "text-bg"), h.append("text").attr("class", "text").text((e) => e.text), h.filter("[data-warning]").append("circle").attr("r", 7).attr("data-warn", !0).attr("transform", "translate(20, -20)"), h.filter("[data-warning]").append("text").attr("r", 8).attr("class", "icon").text("").attr("data-warn", !0).append("title").text((e) => e.warning ?? ""), u(), h;
3856
3847
  }
3857
- function xc(e, t, n) {
3848
+ function bc(e, t, n) {
3858
3849
  let r = e.container.getBoundingClientRect().width, i = t.select("g.nodes"), a = t.append("g").attr("class", "highlight-container").attr("style", "pointer-events: none;");
3859
3850
  function o(e) {
3860
3851
  return t.select(".node[data-id='" + e + "']");
@@ -3867,9 +3858,9 @@ function xc(e, t, n) {
3867
3858
  let t = e.getAttribute("data-id"), a = e.getAttribute("data-root") == "true" ? "root" : "node";
3868
3859
  L(e).attr("data-highlight", a).classed("hovered", !0);
3869
3860
  var s = e.querySelector(".text");
3870
- s && (s.textContent = e.getAttribute("data-description")), _c(L(e), ".text", ".text-bg", n ? 2 : 5, 2, r);
3861
+ s && (s.textContent = e.getAttribute("data-description")), gc(L(e), ".text", ".text-bg", n ? 2 : 5, 2, r);
3871
3862
  let l = i.selectAll(".link[data-source-id='" + t + "'],.link[data-target-id='" + t + "']").attr("data-highlight", a);
3872
- _c(l, ".desc", ".desc-bg", 3, 2, r), window.clearTimeout(c);
3863
+ gc(l, ".desc", ".desc-bg", 3, 2, r), window.clearTimeout(c);
3873
3864
  let u = [];
3874
3865
  l.each(function() {
3875
3866
  var e = this;
@@ -3878,7 +3869,7 @@ function xc(e, t, n) {
3878
3869
  e != t && u.push(o(e).node());
3879
3870
  }
3880
3871
  n(e.getAttribute("data-source-id") || ""), n(e.getAttribute("data-target-id") || "");
3881
- }), u.push(e), vc(u);
3872
+ }), u.push(e), _c(u);
3882
3873
  }
3883
3874
  function u(e) {
3884
3875
  let t = L(e).clone(!0);
@@ -3893,7 +3884,7 @@ function xc(e, t, n) {
3893
3884
  let e = [];
3894
3885
  t.select(".node").each(function() {
3895
3886
  e.push(this);
3896
- }), e.push(s().node()), vc(e);
3887
+ }), e.push(s().node()), _c(e);
3897
3888
  }
3898
3889
  function p(e) {
3899
3890
  d();
@@ -3920,7 +3911,7 @@ function xc(e, t, n) {
3920
3911
  }
3921
3912
  //#endregion
3922
3913
  //#region src/ts/viz/widgets/dendrogram.ts
3923
- var Sc = function(e, t) {
3914
+ var xc = function(e, t) {
3924
3915
  let n = e.container;
3925
3916
  L(n).selectAll(".shake").style("display", "none");
3926
3917
  let r = t.size >= 10, i = t.scope, a = L(n).append("svg").attr("class", t.svgClass).attr("data-dense", r).attr("aria-label", t.desc);
@@ -3943,7 +3934,8 @@ var Sc = function(e, t) {
3943
3934
  let n = (e.parent.children.length + t.parent.children.length) * 1 / 2 + h, r = 5 - n;
3944
3935
  return n < 5 ? h + r : h;
3945
3936
  }
3946
- } else return n ? 1 : 1.4;
3937
+ }
3938
+ return n ? 1 : 1.4;
3947
3939
  })(js(t)), _ = (e) => ({
3948
3940
  ...e.data,
3949
3941
  x: e.x,
@@ -3956,12 +3948,12 @@ var Sc = function(e, t) {
3956
3948
  for (let e of v) e.root && (b = e, i === "publication" && (e.clickable = !0)), x = Math.max(x, e.depth);
3957
3949
  a.select("g").remove();
3958
3950
  let S = a.append("g"), C = S.append("g").selectAll(".link").data(y), w = (e) => e.target.edge, T = C.enter().append("g").attr("class", "link").attr("data-source-id", (e) => e.source.id).attr("data-target-id", (e) => e.target.id).attr("data-old", (e) => w(e)?.old ?? null).attr("data-warn", (e) => w(e)?.warn ?? null).attr("data-color", (e) => w(e)?.color ?? null).attr("data-head", (e) => w(e)?.head ?? null).attr("data-tail", (e) => w(e)?.tail ?? null);
3959
- T.append("path").attr("class", "line"), T.append("path").attr("class", "head").attr("d", gc(m)), T.append("path").attr("class", "tail").attr("d", gc(m));
3960
- let E = bc(e, S, v, b ? b.id : void 0, {
3951
+ T.append("path").attr("class", "line"), T.append("path").attr("class", "head").attr("d", hc(m)), T.append("path").attr("class", "tail").attr("d", hc(m));
3952
+ let E = yc(e, S, v, b ? b.id : void 0, {
3961
3953
  denseLeaves: r,
3962
3954
  separateLinksContainer: !0
3963
3955
  }), D = (e, t) => "translate(" + e + "," + t + ")", O = function(e) {
3964
- let t = (e) => !e.children || e.children.length === 0, n = (e) => t(e) ? l : u, i = (e) => e.y + n(e).left, a = (e) => e.y + n(e).right, o = (e) => e.x + n(e).top, s = (e) => e.x + n(e).bottom, c = [jr(v, i), Ar(v, a)], d = jr(v, o), f = Ar(v, s), p = _r(v, (e) => e.x), m = p[1] - p[0], h = zo().domain(c).range([0, e]), g = zo().domain(p).range([0, m]), _ = (e) => h(r && t(e) ? i(e) : e.y), y = (e) => g(e.x), b = (e) => D(_(e), y(e)), x = hc().x((e) => _(e)).y((e) => y(e)), S = Math.max(10, (150 - (f - d)) / 2), C = f - p[1] + S, w = p[0] - d + S;
3956
+ let t = (e) => !e.children || e.children.length === 0, n = (e) => t(e) ? l : u, i = (e) => e.y + n(e).left, a = (e) => e.y + n(e).right, o = (e) => e.x + n(e).top, s = (e) => e.x + n(e).bottom, c = [jr(v, i), Ar(v, a)], d = jr(v, o), f = Ar(v, s), p = _r(v, (e) => e.x), m = p[1] - p[0], h = zo().domain(c).range([0, e]), g = zo().domain(p).range([0, m]), _ = (e) => h(r && t(e) ? i(e) : e.y), y = (e) => g(e.x), b = (e) => D(_(e), y(e)), x = mc().x((e) => _(e)).y((e) => y(e)), S = Math.max(10, (150 - (f - d)) / 2), C = f - p[1] + S, w = p[0] - d + S;
3965
3957
  return {
3966
3958
  height: m + C + w,
3967
3959
  diagonal: x,
@@ -3974,7 +3966,7 @@ var Sc = function(e, t) {
3974
3966
  yn(n, O.height), a.attr("width", "100%").attr("height", "100%").attr("viewBox", `0 0 ${o} ${O.height}`), S.attr("transform", O.canvasTransform), E.attr("transform", O.nodeTransform), T.select(".line").attr("d", O.diagonal), T.select(".head").attr("transform", O.headTransform), T.select(".tail").attr("transform", O.tailTransform);
3975
3967
  }
3976
3968
  return { draw: o };
3977
- }, Cc = function(e, t) {
3969
+ }, Sc = function(e, t) {
3978
3970
  if (!t.item || t.item.length == 0) throw Error("no data");
3979
3971
  let n = [];
3980
3972
  for (let r of t.item) {
@@ -4029,7 +4021,7 @@ var Sc = function(e, t) {
4029
4021
  return { draw: function() {
4030
4022
  for (let e of n) e();
4031
4023
  } };
4032
- }, wc = function(e, t) {
4024
+ }, Cc = function(e, t) {
4033
4025
  let n = t && t.financials && t.financials.filter((e) => e.items.length > 0), r = e.isReverseChronology();
4034
4026
  if (n && n.length > 0 && n[0].items.length > 0) {
4035
4027
  let a = document.createElement("table"), o = L(a).attr("class", "ui bizq very compact celled small unstackable striped selectable first stuck table"), s = o.append("thead").append("tr"), c = o.append("tbody"), l = o.append("tfoot").append("tr");
@@ -4083,14 +4075,14 @@ var Sc = function(e, t) {
4083
4075
  e.showItem(d, a);
4084
4076
  } else throw Error("no data available");
4085
4077
  return d;
4086
- }, Tc = function(e, t) {
4087
- if (t.children) return Sc(e, t);
4078
+ }, wc = function(e, t) {
4079
+ if (t.children) return xc(e, t);
4088
4080
  if (!t.nodes || t.nodes.length < 2 || !t.links || t.links.length === 0) return {
4089
4081
  empty: !0,
4090
4082
  draw() {}
4091
4083
  };
4092
4084
  let n = t.type == "orgchart", r = e.container;
4093
- if (t.html) return r.innerHTML = t.html, t.legendHtml || L(r).selectAll("foreignObject:has(> .extended-legend-button)").remove(), _c(L(r).selectAll(".link"), ".desc", ".desc-bg", 3, 3, 1e3), xc(e, L(r).select("svg"), !1), { draw: function() {} };
4085
+ if (t.html) return r.innerHTML = t.html, t.legendHtml || L(r).selectAll("foreignObject:has(> .extended-legend-button)").remove(), gc(L(r).selectAll(".link"), ".desc", ".desc-bg", 3, 3, 1e3), bc(e, L(r).select("svg"), !1), { draw: function() {} };
4094
4086
  let i, a = {}, o = t.nodes.length, s = !1;
4095
4087
  for (let e of t.nodes) e.root && (i = e), e.warning && (s = !0), a[e.id] = e;
4096
4088
  for (let e of t.links) e.source = a[e.source], e.target = a[e.target], (!e.source || !e.target) && $.log("error", "broken link: ", e);
@@ -4103,8 +4095,8 @@ var Sc = function(e, t) {
4103
4095
  let f = l.enter().append("g").attr("class", "link").attr("data-source-id", (e) => e.source.id).attr("data-target-id", (e) => e.target.id).attr("data-head", (e) => e.head).attr("data-tail", (e) => e.tail).attr("data-old", (e) => e.old).attr("data-warn", (e) => e.warn).attr("data-length", (e) => e.length).attr("data-helper", (e) => e.helper);
4104
4096
  if (n) for (var p = 0; p < 3; ++p) f.append("line").attr("class", "line").attr("class", "segment" + p).attr("stroke-width", 1).attr("stroke", "#000000");
4105
4097
  else f.append("line").attr("class", "line").attr("stroke-width", 1).attr("stroke", "#000000").attr("stroke-dasharray", (e) => d(e));
4106
- f.append("rect").attr("class", "desc-bg"), f.append("text").attr("class", "desc").attr("text-anchor", "middle").text((e) => e.text), f.append("path").attr("class", "head").attr("d", gc(12)), f.append("path").attr("class", "tail").attr("d", gc(12));
4107
- let m = bc(e, c, t.nodes, i.id), h = 0, g = !0, _ = function() {
4098
+ f.append("rect").attr("class", "desc-bg"), f.append("text").attr("class", "desc").attr("text-anchor", "middle").text((e) => e.text), f.append("path").attr("class", "head").attr("d", hc(12)), f.append("path").attr("class", "tail").attr("d", hc(12));
4099
+ let m = yc(e, c, t.nodes, i.id), h = 0, g = !0, _ = function() {
4108
4100
  if (g || h++ % 3 != 0) return;
4109
4101
  function e(e, t) {
4110
4102
  return (t[1] - t[0]) / (e[1] - e[0]);
@@ -4112,7 +4104,7 @@ var Sc = function(e, t) {
4112
4104
  function i(e) {
4113
4105
  return (e[1] + e[0]) / 2;
4114
4106
  }
4115
- let a = r.getBoundingClientRect(), s = a.width, l = a.height, u = _r(t.nodes, (e) => e.x), d = _r(t.nodes, (e) => e.y), p = [100, s - 100], _ = n ? d : [40, (o == 2 ? 120 : l) - 1.5 * 40], v = i(u), y = i(p), b = i(d), x = i(_), S = e(u, p), C = e(d, _), w = o == 2 ? 2 : t.diameter * 1.1;
4107
+ let a = r.getBoundingClientRect(), s = a.width, l = a.height, u = _r(t.nodes, (e) => e.x), d = _r(t.nodes, (e) => e.y), p = [100, s - 100], _ = n ? d : [40, (o == 2 ? 120 : l) - 60], v = i(u), y = i(p), b = i(d), x = i(_), S = e(u, p), C = e(d, _), w = o == 2 ? 2 : t.diameter * 1.1;
4116
4108
  S = Math.min(S, C * w), o == 2 && (C = 0, S *= 2, yn(r, 120));
4117
4109
  let T = (e) => (e - v) * S + y, E = (e) => (e - b) * C + x, D = (e) => T(e.source.x), O = (e) => T(e.target.x), ee = (e) => E(e.source.y), te = (e) => E(e.target.y), k = (e) => O(e) - D(e), A = (e) => te(e) - ee(e), ne = (e) => (O(e) - D(e)) / 2, j = (e) => (te(e) - ee(e)) / 2, M = (e) => 180 / Math.PI * Math.atan2(A(e), k(e)), re = (e) => {
4118
4110
  let t = 180 / Math.PI * Math.atan2(A(e), k(e));
@@ -4124,26 +4116,26 @@ var Sc = function(e, t) {
4124
4116
  let e = (e) => k(e) + 0, t = (e) => A(e) + 0;
4125
4117
  f.select(".tail").attr("transform", (e) => "rotate(" + M(e) + ") translate(20 0)"), f.select(".head").attr("transform", (n) => "translate(" + e(n) + " " + t(n) + ") rotate(" + (180 + M(n)) + ") translate(20 0)");
4126
4118
  }
4127
- let ae = _[1] + 40 / 2, N = ae - 18, P = ae + 18;
4128
- c.selectAll(".legend line").attr("x1", 50).attr("x2", 90), c.selectAll(".legend line[data-old='false'").attr("y1", N).attr("y2", N), c.selectAll(".legend line[data-old='true'").attr("y1", ae).attr("y2", ae), c.selectAll(".legend line[data-warn='true'").attr("y1", P).attr("y2", P), c.selectAll(".legend text").attr("x", 95), c.selectAll(".legend text[data-old='false'").attr("y", N + 3), c.selectAll(".legend text[data-old='true'").attr("y", ae + 3), c.selectAll(".legend text[data-warn='true'").attr("y", P + 3), _c(f, ".desc", ".desc-bg", 3, 3, 1e3), m.attr("data-dx", (e) => T(e.x)).attr("transform", (e) => "translate(" + T(e.x) + "," + E(e.y) + ")");
4119
+ let ae = _[1] + 20, N = ae - 18, P = ae + 18;
4120
+ c.selectAll(".legend line").attr("x1", 50).attr("x2", 90), c.selectAll(".legend line[data-old='false'").attr("y1", N).attr("y2", N), c.selectAll(".legend line[data-old='true'").attr("y1", ae).attr("y2", ae), c.selectAll(".legend line[data-warn='true'").attr("y1", P).attr("y2", P), c.selectAll(".legend text").attr("x", 95), c.selectAll(".legend text[data-old='false'").attr("y", N + 3), c.selectAll(".legend text[data-old='true'").attr("y", ae + 3), c.selectAll(".legend text[data-warn='true'").attr("y", P + 3), gc(f, ".desc", ".desc-bg", 3, 3, 1e3), m.attr("data-dx", (e) => T(e.x)).attr("transform", (e) => "translate(" + T(e.x) + "," + E(e.y) + ")");
4129
4121
  };
4130
4122
  function v() {
4131
4123
  let [e, t] = vn(r.getBoundingClientRect());
4132
4124
  c.attr("viewBox", "0 0 " + e + " " + t), g = !1, _();
4133
4125
  }
4134
4126
  return { draw: v };
4135
- }, Ec = { value: () => {} };
4136
- function Dc() {
4127
+ }, Tc = { value: () => {} };
4128
+ function Ec() {
4137
4129
  for (var e = 0, t = arguments.length, n = {}, r; e < t; ++e) {
4138
4130
  if (!(r = arguments[e] + "") || r in n || /[\s.]/.test(r)) throw Error("illegal type: " + r);
4139
4131
  n[r] = [];
4140
4132
  }
4141
- return new Oc(n);
4133
+ return new Dc(n);
4142
4134
  }
4143
- function Oc(e) {
4135
+ function Dc(e) {
4144
4136
  this._ = e;
4145
4137
  }
4146
- function kc(e, t) {
4138
+ function Oc(e, t) {
4147
4139
  return e.trim().split(/^|\s+/).map(function(e) {
4148
4140
  var n = "", r = e.indexOf(".");
4149
4141
  if (r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), e && !t.hasOwnProperty(e)) throw Error("unknown type: " + e);
@@ -4153,23 +4145,23 @@ function kc(e, t) {
4153
4145
  };
4154
4146
  });
4155
4147
  }
4156
- Oc.prototype = Dc.prototype = {
4157
- constructor: Oc,
4148
+ Dc.prototype = Ec.prototype = {
4149
+ constructor: Dc,
4158
4150
  on: function(e, t) {
4159
- var n = this._, r = kc(e + "", n), i, a = -1, o = r.length;
4151
+ var n = this._, r = Oc(e + "", n), i, a = -1, o = r.length;
4160
4152
  if (arguments.length < 2) {
4161
- for (; ++a < o;) if ((i = (e = r[a]).type) && (i = Ac(n[i], e.name))) return i;
4153
+ for (; ++a < o;) if ((i = (e = r[a]).type) && (i = kc(n[i], e.name))) return i;
4162
4154
  return;
4163
4155
  }
4164
4156
  if (t != null && typeof t != "function") throw Error("invalid callback: " + t);
4165
- for (; ++a < o;) if (i = (e = r[a]).type) n[i] = jc(n[i], e.name, t);
4166
- else if (t == null) for (i in n) n[i] = jc(n[i], e.name, null);
4157
+ for (; ++a < o;) if (i = (e = r[a]).type) n[i] = Ac(n[i], e.name, t);
4158
+ else if (t == null) for (i in n) n[i] = Ac(n[i], e.name, null);
4167
4159
  return this;
4168
4160
  },
4169
4161
  copy: function() {
4170
4162
  var e = {}, t = this._;
4171
4163
  for (var n in t) e[n] = t[n].slice();
4172
- return new Oc(e);
4164
+ return new Dc(e);
4173
4165
  },
4174
4166
  call: function(e, t) {
4175
4167
  if ((i = arguments.length - 2) > 0) for (var n = Array(i), r = 0, i, a; r < i; ++r) n[r] = arguments[r + 2];
@@ -4181,12 +4173,12 @@ Oc.prototype = Dc.prototype = {
4181
4173
  for (var r = this._[e], i = 0, a = r.length; i < a; ++i) r[i].value.apply(t, n);
4182
4174
  }
4183
4175
  };
4184
- function Ac(e, t) {
4176
+ function kc(e, t) {
4185
4177
  for (var n = 0, r = e.length, i; n < r; ++n) if ((i = e[n]).name === t) return i.value;
4186
4178
  }
4187
- function jc(e, t, n) {
4179
+ function Ac(e, t, n) {
4188
4180
  for (var r = 0, i = e.length; r < i; ++r) if (e[r].name === t) {
4189
- e[r] = Ec, e = e.slice(0, r).concat(e.slice(r + 1));
4181
+ e[r] = Tc, e = e.slice(0, r).concat(e.slice(r + 1));
4190
4182
  break;
4191
4183
  }
4192
4184
  return n != null && e.push({
@@ -4196,77 +4188,77 @@ function jc(e, t, n) {
4196
4188
  }
4197
4189
  //#endregion
4198
4190
  //#region node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js
4199
- var Mc = 0, Nc = 0, Pc = 0, Fc = 1e3, Ic, Lc, Rc = 0, zc = 0, Bc = 0, Vc = typeof performance == "object" && performance.now ? performance : Date, Hc = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
4191
+ var jc = 0, Mc = 0, Nc = 0, Pc = 1e3, Fc, Ic, Lc = 0, Rc = 0, zc = 0, Bc = typeof performance == "object" && performance.now ? performance : Date, Vc = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
4200
4192
  setTimeout(e, 17);
4201
4193
  };
4194
+ function Hc() {
4195
+ return Rc ||= (Vc(Uc), Bc.now() + zc);
4196
+ }
4202
4197
  function Uc() {
4203
- return zc ||= (Hc(Wc), Vc.now() + Bc);
4198
+ Rc = 0;
4204
4199
  }
4205
4200
  function Wc() {
4206
- zc = 0;
4207
- }
4208
- function Gc() {
4209
4201
  this._call = this._time = this._next = null;
4210
4202
  }
4211
- Gc.prototype = Kc.prototype = {
4212
- constructor: Gc,
4203
+ Wc.prototype = Gc.prototype = {
4204
+ constructor: Wc,
4213
4205
  restart: function(e, t, n) {
4214
4206
  if (typeof e != "function") throw TypeError("callback is not a function");
4215
- n = (n == null ? Uc() : +n) + (t == null ? 0 : +t), !this._next && Lc !== this && (Lc ? Lc._next = this : Ic = this, Lc = this), this._call = e, this._time = n, Zc();
4207
+ n = (n == null ? Hc() : +n) + (t == null ? 0 : +t), !this._next && Ic !== this && (Ic ? Ic._next = this : Fc = this, Ic = this), this._call = e, this._time = n, Xc();
4216
4208
  },
4217
4209
  stop: function() {
4218
- this._call && (this._call = null, this._time = Infinity, Zc());
4210
+ this._call && (this._call = null, this._time = Infinity, Xc());
4219
4211
  }
4220
4212
  };
4221
- function Kc(e, t, n) {
4222
- var r = new Gc();
4213
+ function Gc(e, t, n) {
4214
+ var r = new Wc();
4223
4215
  return r.restart(e, t, n), r;
4224
4216
  }
4225
- function qc() {
4226
- Uc(), ++Mc;
4227
- for (var e = Ic, t; e;) (t = zc - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
4228
- --Mc;
4217
+ function Kc() {
4218
+ Hc(), ++jc;
4219
+ for (var e = Fc, t; e;) (t = Rc - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
4220
+ --jc;
4229
4221
  }
4230
- function Jc() {
4231
- zc = (Rc = Vc.now()) + Bc, Mc = Nc = 0;
4222
+ function qc() {
4223
+ Rc = (Lc = Bc.now()) + zc, jc = Mc = 0;
4232
4224
  try {
4233
- qc();
4225
+ Kc();
4234
4226
  } finally {
4235
- Mc = 0, Xc(), zc = 0;
4227
+ jc = 0, Yc(), Rc = 0;
4236
4228
  }
4237
4229
  }
4238
- function Yc() {
4239
- var e = Vc.now(), t = e - Rc;
4240
- t > Fc && (Bc -= t, Rc = e);
4230
+ function Jc() {
4231
+ var e = Bc.now(), t = e - Lc;
4232
+ t > Pc && (zc -= t, Lc = e);
4241
4233
  }
4242
- function Xc() {
4243
- for (var e, t = Ic, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Ic = n);
4244
- Lc = e, Zc(r);
4234
+ function Yc() {
4235
+ for (var e, t = Fc, n, r = Infinity; t;) t._call ? (r > t._time && (r = t._time), e = t, t = t._next) : (n = t._next, t._next = null, t = e ? e._next = n : Fc = n);
4236
+ Ic = e, Xc(r);
4245
4237
  }
4246
- function Zc(e) {
4247
- Mc || (Nc &&= clearTimeout(Nc), e - zc > 24 ? (e < Infinity && (Nc = setTimeout(Jc, e - Vc.now() - Bc)), Pc &&= clearInterval(Pc)) : (Pc ||= (Rc = Vc.now(), setInterval(Yc, Fc)), Mc = 1, Hc(Jc)));
4238
+ function Xc(e) {
4239
+ jc || (Mc &&= clearTimeout(Mc), e - Rc > 24 ? (e < Infinity && (Mc = setTimeout(qc, e - Bc.now() - zc)), Nc &&= clearInterval(Nc)) : (Nc ||= (Lc = Bc.now(), setInterval(Jc, Pc)), jc = 1, Vc(qc)));
4248
4240
  }
4249
4241
  //#endregion
4250
4242
  //#region node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js
4251
- function Qc(e, t, n) {
4252
- var r = new Gc();
4243
+ function Zc(e, t, n) {
4244
+ var r = new Wc();
4253
4245
  return t = t == null ? 0 : +t, r.restart((n) => {
4254
4246
  r.stop(), e(n + t);
4255
4247
  }, t, n), r;
4256
4248
  }
4257
4249
  //#endregion
4258
4250
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js
4259
- var $c = Dc("start", "end", "cancel", "interrupt"), el = [];
4260
- function tl(e, t, n, r, i, a) {
4251
+ var Qc = Ec("start", "end", "cancel", "interrupt"), $c = [];
4252
+ function el(e, t, n, r, i, a) {
4261
4253
  var o = e.__transition;
4262
4254
  if (!o) e.__transition = {};
4263
4255
  else if (n in o) return;
4264
- rl(e, n, {
4256
+ nl(e, n, {
4265
4257
  name: t,
4266
4258
  index: r,
4267
4259
  group: i,
4268
- on: $c,
4269
- tween: el,
4260
+ on: Qc,
4261
+ tween: $c,
4270
4262
  time: a.time,
4271
4263
  delay: a.delay,
4272
4264
  duration: a.duration,
@@ -4275,7 +4267,7 @@ function tl(e, t, n, r, i, a) {
4275
4267
  state: 0
4276
4268
  });
4277
4269
  }
4278
- function nl(e, t) {
4270
+ function tl(e, t) {
4279
4271
  var n = X(e, t);
4280
4272
  if (n.state > 0) throw Error("too late; already scheduled");
4281
4273
  return n;
@@ -4290,9 +4282,9 @@ function X(e, t) {
4290
4282
  if (!n || !(n = n[t])) throw Error("transition not found");
4291
4283
  return n;
4292
4284
  }
4293
- function rl(e, t, n) {
4285
+ function nl(e, t, n) {
4294
4286
  var r = e.__transition, i;
4295
- r[t] = n, n.timer = Kc(a, 0, n.time);
4287
+ r[t] = n, n.timer = Gc(a, 0, n.time);
4296
4288
  function a(e) {
4297
4289
  n.state = 1, n.timer.restart(o, n.delay, n.time), n.delay <= e && o(e - n.delay);
4298
4290
  }
@@ -4300,10 +4292,10 @@ function rl(e, t, n) {
4300
4292
  var l, u, d, f;
4301
4293
  if (n.state !== 1) return c();
4302
4294
  for (l in r) if (f = r[l], f.name === n.name) {
4303
- if (f.state === 3) return Qc(o);
4295
+ if (f.state === 3) return Zc(o);
4304
4296
  f.state === 4 ? (f.state = 6, f.timer.stop(), f.on.call("interrupt", e, e.__data__, f.index, f.group), delete r[l]) : +l < t && (f.state = 6, f.timer.stop(), f.on.call("cancel", e, e.__data__, f.index, f.group), delete r[l]);
4305
4297
  }
4306
- if (Qc(function() {
4298
+ if (Zc(function() {
4307
4299
  n.state === 3 && (n.state = 4, n.timer.restart(s, n.delay, n.time), s(a));
4308
4300
  }), n.state = 2, n.on.call("start", e, e.__data__, n.index, n.group), n.state === 2) {
4309
4301
  for (n.state = 3, i = Array(d = n.tween.length), l = 0, u = -1; l < d; ++l) (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (i[++u] = f);
@@ -4321,7 +4313,7 @@ function rl(e, t, n) {
4321
4313
  }
4322
4314
  //#endregion
4323
4315
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js
4324
- function il(e, t) {
4316
+ function rl(e, t) {
4325
4317
  var n = e.__transition, r, i, a = !0, o;
4326
4318
  if (n) {
4327
4319
  for (o in t = t == null ? null : t + "", n) {
@@ -4336,14 +4328,14 @@ function il(e, t) {
4336
4328
  }
4337
4329
  //#endregion
4338
4330
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js
4339
- function al(e) {
4331
+ function il(e) {
4340
4332
  return this.each(function() {
4341
- il(this, e);
4333
+ rl(this, e);
4342
4334
  });
4343
4335
  }
4344
4336
  //#endregion
4345
4337
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js
4346
- function ol(e, t) {
4338
+ function al(e, t) {
4347
4339
  var n, r;
4348
4340
  return function() {
4349
4341
  var i = Y(this, e), a = i.tween;
@@ -4357,7 +4349,7 @@ function ol(e, t) {
4357
4349
  i.tween = r;
4358
4350
  };
4359
4351
  }
4360
- function sl(e, t, n) {
4352
+ function ol(e, t, n) {
4361
4353
  var r, i;
4362
4354
  if (typeof n != "function") throw Error();
4363
4355
  return function() {
@@ -4376,15 +4368,15 @@ function sl(e, t, n) {
4376
4368
  a.tween = i;
4377
4369
  };
4378
4370
  }
4379
- function cl(e, t) {
4371
+ function sl(e, t) {
4380
4372
  var n = this._id;
4381
4373
  if (e += "", arguments.length < 2) {
4382
4374
  for (var r = X(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i) if ((o = r[i]).name === e) return o.value;
4383
4375
  return null;
4384
4376
  }
4385
- return this.each((t == null ? ol : sl)(n, e, t));
4377
+ return this.each((t == null ? al : ol)(n, e, t));
4386
4378
  }
4387
- function ll(e, t, n) {
4379
+ function cl(e, t, n) {
4388
4380
  var r = e._id;
4389
4381
  return e.each(function() {
4390
4382
  var e = Y(this, r);
@@ -4395,157 +4387,157 @@ function ll(e, t, n) {
4395
4387
  }
4396
4388
  //#endregion
4397
4389
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js
4398
- function ul(e, t) {
4390
+ function ll(e, t) {
4399
4391
  var n;
4400
4392
  return (typeof t == "number" ? q : t instanceof M ? ro : (n = M(t)) ? (t = n, ro) : mo)(e, t);
4401
4393
  }
4402
4394
  //#endregion
4403
4395
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js
4404
- function dl(e) {
4396
+ function ul(e) {
4405
4397
  return function() {
4406
4398
  this.removeAttribute(e);
4407
4399
  };
4408
4400
  }
4409
- function fl(e) {
4401
+ function dl(e) {
4410
4402
  return function() {
4411
4403
  this.removeAttributeNS(e.space, e.local);
4412
4404
  };
4413
4405
  }
4414
- function pl(e, t, n) {
4406
+ function fl(e, t, n) {
4415
4407
  var r, i = n + "", a;
4416
4408
  return function() {
4417
4409
  var o = this.getAttribute(e);
4418
4410
  return o === i ? null : o === r ? a : a = t(r = o, n);
4419
4411
  };
4420
4412
  }
4421
- function ml(e, t, n) {
4413
+ function pl(e, t, n) {
4422
4414
  var r, i = n + "", a;
4423
4415
  return function() {
4424
4416
  var o = this.getAttributeNS(e.space, e.local);
4425
4417
  return o === i ? null : o === r ? a : a = t(r = o, n);
4426
4418
  };
4427
4419
  }
4428
- function hl(e, t, n) {
4420
+ function ml(e, t, n) {
4429
4421
  var r, i, a;
4430
4422
  return function() {
4431
4423
  var o, s = n(this), c;
4432
4424
  return s == null ? void this.removeAttribute(e) : (o = this.getAttribute(e), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
4433
4425
  };
4434
4426
  }
4435
- function gl(e, t, n) {
4427
+ function hl(e, t, n) {
4436
4428
  var r, i, a;
4437
4429
  return function() {
4438
4430
  var o, s = n(this), c;
4439
4431
  return s == null ? void this.removeAttributeNS(e.space, e.local) : (o = this.getAttributeNS(e.space, e.local), c = s + "", o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s)));
4440
4432
  };
4441
4433
  }
4442
- function _l(e, t) {
4443
- var n = ye(e), r = n === "transform" ? To : ul;
4444
- return this.attrTween(e, typeof t == "function" ? (n.local ? gl : hl)(n, r, ll(this, "attr." + e, t)) : t == null ? (n.local ? fl : dl)(n) : (n.local ? ml : pl)(n, r, t));
4434
+ function gl(e, t) {
4435
+ var n = ye(e), r = n === "transform" ? To : ll;
4436
+ return this.attrTween(e, typeof t == "function" ? (n.local ? hl : ml)(n, r, cl(this, "attr." + e, t)) : t == null ? (n.local ? dl : ul)(n) : (n.local ? pl : fl)(n, r, t));
4445
4437
  }
4446
4438
  //#endregion
4447
4439
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js
4448
- function vl(e, t) {
4440
+ function _l(e, t) {
4449
4441
  return function(n) {
4450
4442
  this.setAttribute(e, t.call(this, n));
4451
4443
  };
4452
4444
  }
4453
- function yl(e, t) {
4445
+ function vl(e, t) {
4454
4446
  return function(n) {
4455
4447
  this.setAttributeNS(e.space, e.local, t.call(this, n));
4456
4448
  };
4457
4449
  }
4458
- function bl(e, t) {
4450
+ function yl(e, t) {
4459
4451
  var n, r;
4460
4452
  function i() {
4461
4453
  var i = t.apply(this, arguments);
4462
- return i !== r && (n = (r = i) && yl(e, i)), n;
4454
+ return i !== r && (n = (r = i) && vl(e, i)), n;
4463
4455
  }
4464
4456
  return i._value = t, i;
4465
4457
  }
4466
- function xl(e, t) {
4458
+ function bl(e, t) {
4467
4459
  var n, r;
4468
4460
  function i() {
4469
4461
  var i = t.apply(this, arguments);
4470
- return i !== r && (n = (r = i) && vl(e, i)), n;
4462
+ return i !== r && (n = (r = i) && _l(e, i)), n;
4471
4463
  }
4472
4464
  return i._value = t, i;
4473
4465
  }
4474
- function Sl(e, t) {
4466
+ function xl(e, t) {
4475
4467
  var n = "attr." + e;
4476
4468
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
4477
4469
  if (t == null) return this.tween(n, null);
4478
4470
  if (typeof t != "function") throw Error();
4479
4471
  var r = ye(e);
4480
- return this.tween(n, (r.local ? bl : xl)(r, t));
4472
+ return this.tween(n, (r.local ? yl : bl)(r, t));
4481
4473
  }
4482
4474
  //#endregion
4483
4475
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js
4484
- function Cl(e, t) {
4476
+ function Sl(e, t) {
4485
4477
  return function() {
4486
- nl(this, e).delay = +t.apply(this, arguments);
4478
+ tl(this, e).delay = +t.apply(this, arguments);
4487
4479
  };
4488
4480
  }
4489
- function wl(e, t) {
4481
+ function Cl(e, t) {
4490
4482
  return t = +t, function() {
4491
- nl(this, e).delay = t;
4483
+ tl(this, e).delay = t;
4492
4484
  };
4493
4485
  }
4494
- function Tl(e) {
4486
+ function wl(e) {
4495
4487
  var t = this._id;
4496
- return arguments.length ? this.each((typeof e == "function" ? Cl : wl)(t, e)) : X(this.node(), t).delay;
4488
+ return arguments.length ? this.each((typeof e == "function" ? Sl : Cl)(t, e)) : X(this.node(), t).delay;
4497
4489
  }
4498
4490
  //#endregion
4499
4491
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js
4500
- function El(e, t) {
4492
+ function Tl(e, t) {
4501
4493
  return function() {
4502
4494
  Y(this, e).duration = +t.apply(this, arguments);
4503
4495
  };
4504
4496
  }
4505
- function Dl(e, t) {
4497
+ function El(e, t) {
4506
4498
  return t = +t, function() {
4507
4499
  Y(this, e).duration = t;
4508
4500
  };
4509
4501
  }
4510
- function Ol(e) {
4502
+ function Dl(e) {
4511
4503
  var t = this._id;
4512
- return arguments.length ? this.each((typeof e == "function" ? El : Dl)(t, e)) : X(this.node(), t).duration;
4504
+ return arguments.length ? this.each((typeof e == "function" ? Tl : El)(t, e)) : X(this.node(), t).duration;
4513
4505
  }
4514
4506
  //#endregion
4515
4507
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js
4516
- function kl(e, t) {
4508
+ function Ol(e, t) {
4517
4509
  if (typeof t != "function") throw Error();
4518
4510
  return function() {
4519
4511
  Y(this, e).ease = t;
4520
4512
  };
4521
4513
  }
4522
- function Al(e) {
4514
+ function kl(e) {
4523
4515
  var t = this._id;
4524
- return arguments.length ? this.each(kl(t, e)) : X(this.node(), t).ease;
4516
+ return arguments.length ? this.each(Ol(t, e)) : X(this.node(), t).ease;
4525
4517
  }
4526
4518
  //#endregion
4527
4519
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js
4528
- function jl(e, t) {
4520
+ function Al(e, t) {
4529
4521
  return function() {
4530
4522
  var n = t.apply(this, arguments);
4531
4523
  if (typeof n != "function") throw Error();
4532
4524
  Y(this, e).ease = n;
4533
4525
  };
4534
4526
  }
4535
- function Ml(e) {
4527
+ function jl(e) {
4536
4528
  if (typeof e != "function") throw Error();
4537
- return this.each(jl(this._id, e));
4529
+ return this.each(Al(this._id, e));
4538
4530
  }
4539
4531
  //#endregion
4540
4532
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js
4541
- function Nl(e) {
4533
+ function Ml(e) {
4542
4534
  typeof e != "function" && (e = je(e));
4543
4535
  for (var t = this._groups, n = t.length, r = Array(n), i = 0; i < n; ++i) for (var a = t[i], o = a.length, s = r[i] = [], c, l = 0; l < o; ++l) (c = a[l]) && e.call(c, c.__data__, l, a) && s.push(c);
4544
4536
  return new Z(r, this._parents, this._name, this._id);
4545
4537
  }
4546
4538
  //#endregion
4547
4539
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js
4548
- function Pl(e) {
4540
+ function Nl(e) {
4549
4541
  if (e._id !== this._id) throw Error();
4550
4542
  for (var t = this._groups, n = e._groups, r = t.length, i = n.length, a = Math.min(r, i), o = Array(r), s = 0; s < a; ++s) for (var c = t[s], l = n[s], u = c.length, d = o[s] = Array(u), f, p = 0; p < u; ++p) (f = c[p] || l[p]) && (d[p] = f);
4551
4543
  for (; s < r; ++s) o[s] = t[s];
@@ -4553,165 +4545,165 @@ function Pl(e) {
4553
4545
  }
4554
4546
  //#endregion
4555
4547
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js
4556
- function Fl(e) {
4548
+ function Pl(e) {
4557
4549
  return (e + "").trim().split(/^|\s+/).every(function(e) {
4558
4550
  var t = e.indexOf(".");
4559
4551
  return t >= 0 && (e = e.slice(0, t)), !e || e === "start";
4560
4552
  });
4561
4553
  }
4562
- function Il(e, t, n) {
4563
- var r, i, a = Fl(t) ? nl : Y;
4554
+ function Fl(e, t, n) {
4555
+ var r, i, a = Pl(t) ? tl : Y;
4564
4556
  return function() {
4565
4557
  var o = a(this, e), s = o.on;
4566
4558
  s !== r && (i = (r = s).copy()).on(t, n), o.on = i;
4567
4559
  };
4568
4560
  }
4569
- function Ll(e, t) {
4561
+ function Il(e, t) {
4570
4562
  var n = this._id;
4571
- return arguments.length < 2 ? X(this.node(), n).on.on(e) : this.each(Il(n, e, t));
4563
+ return arguments.length < 2 ? X(this.node(), n).on.on(e) : this.each(Fl(n, e, t));
4572
4564
  }
4573
4565
  //#endregion
4574
4566
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js
4575
- function Rl(e) {
4567
+ function Ll(e) {
4576
4568
  return function() {
4577
4569
  var t = this.parentNode;
4578
4570
  for (var n in this.__transition) if (+n !== e) return;
4579
4571
  t && t.removeChild(this);
4580
4572
  };
4581
4573
  }
4582
- function zl() {
4583
- return this.on("end.remove", Rl(this._id));
4574
+ function Rl() {
4575
+ return this.on("end.remove", Ll(this._id));
4584
4576
  }
4585
4577
  //#endregion
4586
4578
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js
4587
- function Bl(e) {
4579
+ function zl(e) {
4588
4580
  var t = this._name, n = this._id;
4589
4581
  typeof e != "function" && (e = we(e));
4590
- for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, tl(l[f], t, n, f, l, X(u, n)));
4582
+ for (var r = this._groups, i = r.length, a = Array(i), o = 0; o < i; ++o) for (var s = r[o], c = s.length, l = a[o] = Array(c), u, d, f = 0; f < c; ++f) (u = s[f]) && (d = e.call(u, u.__data__, f, s)) && ("__data__" in u && (d.__data__ = u.__data__), l[f] = d, el(l[f], t, n, f, l, X(u, n)));
4591
4583
  return new Z(a, this._parents, t, n);
4592
4584
  }
4593
4585
  //#endregion
4594
4586
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js
4595
- function Vl(e) {
4587
+ function Bl(e) {
4596
4588
  var t = this._name, n = this._id;
4597
4589
  typeof e != "function" && (e = Oe(e));
4598
4590
  for (var r = this._groups, i = r.length, a = [], o = [], s = 0; s < i; ++s) for (var c = r[s], l = c.length, u, d = 0; d < l; ++d) if (u = c[d]) {
4599
- for (var f = e.call(u, u.__data__, d, c), p, m = X(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && tl(p, t, n, h, f, m);
4591
+ for (var f = e.call(u, u.__data__, d, c), p, m = X(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && el(p, t, n, h, f, m);
4600
4592
  a.push(f), o.push(u);
4601
4593
  }
4602
4594
  return new Z(a, o, t, n);
4603
4595
  }
4604
4596
  //#endregion
4605
4597
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js
4606
- var Hl = mn.prototype.constructor;
4607
- function Ul() {
4608
- return new Hl(this._groups, this._parents);
4598
+ var Vl = mn.prototype.constructor;
4599
+ function Hl() {
4600
+ return new Vl(this._groups, this._parents);
4609
4601
  }
4610
4602
  //#endregion
4611
4603
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js
4612
- function Wl(e, t) {
4604
+ function Ul(e, t) {
4613
4605
  var n, r, i;
4614
4606
  return function() {
4615
4607
  var a = xt(this, e), o = (this.style.removeProperty(e), xt(this, e));
4616
4608
  return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
4617
4609
  };
4618
4610
  }
4619
- function Gl(e) {
4611
+ function Wl(e) {
4620
4612
  return function() {
4621
4613
  this.style.removeProperty(e);
4622
4614
  };
4623
4615
  }
4624
- function Kl(e, t, n) {
4616
+ function Gl(e, t, n) {
4625
4617
  var r, i = n + "", a;
4626
4618
  return function() {
4627
4619
  var o = xt(this, e);
4628
4620
  return o === i ? null : o === r ? a : a = t(r = o, n);
4629
4621
  };
4630
4622
  }
4631
- function ql(e, t, n) {
4623
+ function Kl(e, t, n) {
4632
4624
  var r, i, a;
4633
4625
  return function() {
4634
4626
  var o = xt(this, e), s = n(this), c = s + "";
4635
4627
  return s ?? (c = s = (this.style.removeProperty(e), xt(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
4636
4628
  };
4637
4629
  }
4638
- function Jl(e, t) {
4630
+ function ql(e, t) {
4639
4631
  var n, r, i, a = "style." + t, o = "end." + a, s;
4640
4632
  return function() {
4641
- var c = Y(this, e), l = c.on, u = c.value[a] == null ? s ||= Gl(t) : void 0;
4633
+ var c = Y(this, e), l = c.on, u = c.value[a] == null ? s ||= Wl(t) : void 0;
4642
4634
  (l !== n || i !== u) && (r = (n = l).copy()).on(o, i = u), c.on = r;
4643
4635
  };
4644
4636
  }
4645
- function Yl(e, t, n) {
4646
- var r = (e += "") == "transform" ? wo : ul;
4647
- return t == null ? this.styleTween(e, Wl(e, r)).on("end.style." + e, Gl(e)) : typeof t == "function" ? this.styleTween(e, ql(e, r, ll(this, "style." + e, t))).each(Jl(this._id, e)) : this.styleTween(e, Kl(e, r, t), n).on("end.style." + e, null);
4637
+ function Jl(e, t, n) {
4638
+ var r = (e += "") == "transform" ? wo : ll;
4639
+ return t == null ? this.styleTween(e, Ul(e, r)).on("end.style." + e, Wl(e)) : typeof t == "function" ? this.styleTween(e, Kl(e, r, cl(this, "style." + e, t))).each(ql(this._id, e)) : this.styleTween(e, Gl(e, r, t), n).on("end.style." + e, null);
4648
4640
  }
4649
4641
  //#endregion
4650
4642
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js
4651
- function Xl(e, t, n) {
4643
+ function Yl(e, t, n) {
4652
4644
  return function(r) {
4653
4645
  this.style.setProperty(e, t.call(this, r), n);
4654
4646
  };
4655
4647
  }
4656
- function Zl(e, t, n) {
4648
+ function Xl(e, t, n) {
4657
4649
  var r, i;
4658
4650
  function a() {
4659
4651
  var a = t.apply(this, arguments);
4660
- return a !== i && (r = (i = a) && Xl(e, a, n)), r;
4652
+ return a !== i && (r = (i = a) && Yl(e, a, n)), r;
4661
4653
  }
4662
4654
  return a._value = t, a;
4663
4655
  }
4664
- function Ql(e, t, n) {
4656
+ function Zl(e, t, n) {
4665
4657
  var r = "style." + (e += "");
4666
4658
  if (arguments.length < 2) return (r = this.tween(r)) && r._value;
4667
4659
  if (t == null) return this.tween(r, null);
4668
4660
  if (typeof t != "function") throw Error();
4669
- return this.tween(r, Zl(e, t, n ?? ""));
4661
+ return this.tween(r, Xl(e, t, n ?? ""));
4670
4662
  }
4671
4663
  //#endregion
4672
4664
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js
4673
- function $l(e) {
4665
+ function Ql(e) {
4674
4666
  return function() {
4675
4667
  this.textContent = e;
4676
4668
  };
4677
4669
  }
4678
- function eu(e) {
4670
+ function $l(e) {
4679
4671
  return function() {
4680
4672
  var t = e(this);
4681
4673
  this.textContent = t ?? "";
4682
4674
  };
4683
4675
  }
4684
- function tu(e) {
4685
- return this.tween("text", typeof e == "function" ? eu(ll(this, "text", e)) : $l(e == null ? "" : e + ""));
4676
+ function eu(e) {
4677
+ return this.tween("text", typeof e == "function" ? $l(cl(this, "text", e)) : Ql(e == null ? "" : e + ""));
4686
4678
  }
4687
4679
  //#endregion
4688
4680
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js
4689
- function nu(e) {
4681
+ function tu(e) {
4690
4682
  return function(t) {
4691
4683
  this.textContent = e.call(this, t);
4692
4684
  };
4693
4685
  }
4694
- function ru(e) {
4686
+ function nu(e) {
4695
4687
  var t, n;
4696
4688
  function r() {
4697
4689
  var r = e.apply(this, arguments);
4698
- return r !== n && (t = (n = r) && nu(r)), t;
4690
+ return r !== n && (t = (n = r) && tu(r)), t;
4699
4691
  }
4700
4692
  return r._value = e, r;
4701
4693
  }
4702
- function iu(e) {
4694
+ function ru(e) {
4703
4695
  var t = "text";
4704
4696
  if (arguments.length < 1) return (t = this.tween(t)) && t._value;
4705
4697
  if (e == null) return this.tween(t, null);
4706
4698
  if (typeof e != "function") throw Error();
4707
- return this.tween(t, ru(e));
4699
+ return this.tween(t, nu(e));
4708
4700
  }
4709
4701
  //#endregion
4710
4702
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js
4711
- function au() {
4712
- for (var e = this._name, t = this._id, n = lu(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
4703
+ function iu() {
4704
+ for (var e = this._name, t = this._id, n = su(), r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) if (c = o[l]) {
4713
4705
  var u = X(c, t);
4714
- tl(c, e, n, l, o, {
4706
+ el(c, e, n, l, o, {
4715
4707
  time: u.time + u.delay + u.duration,
4716
4708
  delay: 0,
4717
4709
  duration: u.duration,
@@ -4722,7 +4714,7 @@ function au() {
4722
4714
  }
4723
4715
  //#endregion
4724
4716
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js
4725
- function ou() {
4717
+ function au() {
4726
4718
  var e, t, n = this, r = n._id, i = n.size();
4727
4719
  return new Promise(function(a, o) {
4728
4720
  var s = { value: o }, c = { value: function() {
@@ -4736,76 +4728,73 @@ function ou() {
4736
4728
  }
4737
4729
  //#endregion
4738
4730
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js
4739
- var su = 0;
4731
+ var ou = 0;
4740
4732
  function Z(e, t, n, r) {
4741
4733
  this._groups = e, this._parents = t, this._name = n, this._id = r;
4742
4734
  }
4743
- function cu(e) {
4744
- return mn().transition(e);
4745
- }
4746
- function lu() {
4747
- return ++su;
4735
+ function su() {
4736
+ return ++ou;
4748
4737
  }
4749
4738
  var Q = mn.prototype;
4750
- Z.prototype = cu.prototype = {
4739
+ Z.prototype = {
4751
4740
  constructor: Z,
4752
- select: Bl,
4753
- selectAll: Vl,
4741
+ select: zl,
4742
+ selectAll: Bl,
4754
4743
  selectChild: Q.selectChild,
4755
4744
  selectChildren: Q.selectChildren,
4756
- filter: Nl,
4757
- merge: Pl,
4758
- selection: Ul,
4759
- transition: au,
4745
+ filter: Ml,
4746
+ merge: Nl,
4747
+ selection: Hl,
4748
+ transition: iu,
4760
4749
  call: Q.call,
4761
4750
  nodes: Q.nodes,
4762
4751
  node: Q.node,
4763
4752
  size: Q.size,
4764
4753
  empty: Q.empty,
4765
4754
  each: Q.each,
4766
- on: Ll,
4767
- attr: _l,
4768
- attrTween: Sl,
4769
- style: Yl,
4770
- styleTween: Ql,
4771
- text: tu,
4772
- textTween: iu,
4773
- remove: zl,
4774
- tween: cl,
4775
- delay: Tl,
4776
- duration: Ol,
4777
- ease: Al,
4778
- easeVarying: Ml,
4779
- end: ou,
4755
+ on: Il,
4756
+ attr: gl,
4757
+ attrTween: xl,
4758
+ style: Jl,
4759
+ styleTween: Zl,
4760
+ text: eu,
4761
+ textTween: ru,
4762
+ remove: Rl,
4763
+ tween: sl,
4764
+ delay: wl,
4765
+ duration: Dl,
4766
+ ease: kl,
4767
+ easeVarying: jl,
4768
+ end: au,
4780
4769
  [Symbol.iterator]: Q[Symbol.iterator]
4781
4770
  };
4782
4771
  //#endregion
4783
4772
  //#region node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js
4784
- function uu(e) {
4773
+ function cu(e) {
4785
4774
  return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2;
4786
4775
  }
4787
4776
  //#endregion
4788
4777
  //#region node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js
4789
- var du = {
4778
+ var lu = {
4790
4779
  time: null,
4791
4780
  delay: 0,
4792
4781
  duration: 250,
4793
- ease: uu
4782
+ ease: cu
4794
4783
  };
4795
- function fu(e, t) {
4784
+ function uu(e, t) {
4796
4785
  for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
4797
4786
  return n;
4798
4787
  }
4799
- function pu(e) {
4788
+ function du(e) {
4800
4789
  var t, n;
4801
- e instanceof Z ? (t = e._id, e = e._name) : (t = lu(), (n = du).time = Uc(), e = e == null ? null : e + "");
4802
- for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && tl(c, e, t, l, o, n || fu(c, t));
4790
+ e instanceof Z ? (t = e._id, e = e._name) : (t = su(), (n = lu).time = Hc(), e = e == null ? null : e + "");
4791
+ for (var r = this._groups, i = r.length, a = 0; a < i; ++a) for (var o = r[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && el(c, e, t, l, o, n || uu(c, t));
4803
4792
  return new Z(r, this._parents, e, t);
4804
4793
  }
4805
- mn.prototype.interrupt = al, mn.prototype.transition = pu;
4794
+ mn.prototype.interrupt = il, mn.prototype.transition = du;
4806
4795
  //#endregion
4807
4796
  //#region node_modules/.pnpm/labella@1.1.4/node_modules/labella/dist/labella.min.js
4808
- var mu = /* @__PURE__ */ o(((e, t) => {
4797
+ var fu = /* @__PURE__ */ o(((e, t) => {
4809
4798
  (function(n, r) {
4810
4799
  typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.labella = r() : n.labella = r();
4811
4800
  })(e, function() {
@@ -5005,7 +4994,7 @@ var mu = /* @__PURE__ */ o(((e, t) => {
5005
4994
  if (!arguments.length) return n;
5006
4995
  n = i.extend(n, e);
5007
4996
  var a = i.pick(n, Object.keys(r.DEFAULT_OPTIONS));
5008
- return i.isDefined(n.minPos) && i.isDefined(n.maxPos) ? a.layerWidth = n.maxPos - n.minPos : a.layerWidth = null, s.options(a), t;
4997
+ return a.layerWidth = i.isDefined(n.minPos) && i.isDefined(n.maxPos) ? n.maxPos - n.minPos : null, s.options(a), t;
5009
4998
  }, t.options(e), t.compute = function() {
5010
4999
  var e = i.pick(n, Object.keys(a.DEFAULT_OPTIONS));
5011
5000
  return c.forEach(function(e) {
@@ -5643,7 +5632,7 @@ var mu = /* @__PURE__ */ o(((e, t) => {
5643
5632
  }
5644
5633
  ]);
5645
5634
  });
5646
- })), hu = /* @__PURE__ */ o(((e, t) => {
5635
+ })), pu = /* @__PURE__ */ o(((e, t) => {
5647
5636
  var n = NaN, r = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, o = /^0o[0-7]+$/i, s = parseInt, c = typeof global == "object" && global && global.Object === Object && global, l = typeof self == "object" && self && self.Object === Object && self, u = c || l || Function("return this")(), d = Object.prototype.toString, f = Math.max, p = Math.min, m = function() {
5648
5637
  return u.Date.now();
5649
5638
  };
@@ -5713,31 +5702,31 @@ var mu = /* @__PURE__ */ o(((e, t) => {
5713
5702
  return c || o.test(e) ? s(e.slice(2), c ? 2 : 8) : i.test(e) ? n : +e;
5714
5703
  }
5715
5704
  t.exports = h;
5716
- })), gu = /* @__PURE__ */ c(mu()), _u = /* @__PURE__ */ c(hu());
5717
- function vu(e) {
5705
+ })), mu = /* @__PURE__ */ c(fu()), hu = /* @__PURE__ */ c(pu());
5706
+ function gu(e) {
5718
5707
  return {
5719
5708
  standard: e.toString(),
5720
5709
  light: e.brighter(1.15).toString(),
5721
5710
  bright: me(e.h, e.s * 1.3, e.l * .9).toString()
5722
5711
  };
5723
5712
  }
5724
- function yu(e, t) {
5713
+ function _u(e, t) {
5725
5714
  let n = [], r = 360 / t + 1, i = e.h;
5726
- for (let a = 0; a < t; ++a) e.h = (i + a * r) % 360, n.push(vu(e));
5715
+ for (let a = 0; a < t; ++a) e.h = (i + a * r) % 360, n.push(gu(e));
5727
5716
  return n;
5728
5717
  }
5729
5718
  //#endregion
5730
5719
  //#region src/ts/viz/widgets/history.ts
5731
- function bu(e, t) {
5732
- let n = yu(e, t), r = vu(me("#888888"));
5720
+ function vu(e, t) {
5721
+ let n = _u(e, t), r = gu(me("#888888"));
5733
5722
  return function(e) {
5734
5723
  return e.old ? r : n[e.cat % t];
5735
5724
  };
5736
5725
  }
5737
- var xu = function(e, t) {
5726
+ var yu = function(e, t) {
5738
5727
  let n = t.event, r = 1;
5739
5728
  n.forEach((e) => e.id = r++), e.container.innerHTML = "";
5740
- let i = new Date(t.minDate), a = new Date(t.maxDate), o = bu(e.getRootColor(), 12), s = (e) => o(e).standard, c = {
5729
+ let i = new Date(t.minDate), a = new Date(t.maxDate), o = vu(e.getRootColor(), 12), s = (e) => o(e).standard, c = {
5741
5730
  alternatingTickLength: 10,
5742
5731
  initialHeight: 50,
5743
5732
  initialWidth: 400,
@@ -5773,7 +5762,7 @@ var xu = function(e, t) {
5773
5762
  innerHeight: 0,
5774
5763
  width: c.initialWidth,
5775
5764
  height: c.initialHeight
5776
- }, u = new gu.default.Force(), d = Wo(), f = L(e.container);
5765
+ }, u = new mu.default.Force(), d = Wo(), f = L(e.container);
5777
5766
  f.style("line-height", 0);
5778
5767
  let p = f.append("div").style("display", "inline-block").style("position", "relative").style("line-height", 0), m = p.append("svg").style("position", "absolute").style("top", 0).style("left", 0), h = m.append("g");
5779
5768
  function g(e, t) {
@@ -5791,12 +5780,10 @@ var xu = function(e, t) {
5791
5780
  case "horizontal":
5792
5781
  t = Ar(e, (e) => Math.abs(e.y)) ?? 0, l.height = t + c.margin.top + c.margin.bottom;
5793
5782
  break;
5794
- case "vertical":
5795
- t = Ar(e, (e) => Math.abs(e.x + e.dx)) ?? 0, l.width = t + c.margin.left + c.margin.right;
5796
- break;
5783
+ case "vertical": t = Ar(e, (e) => Math.abs(e.x + e.dx)) ?? 0, l.width = t + c.margin.left + c.margin.right;
5797
5784
  }
5798
5785
  }
5799
- let T = (0, _u.default)(function() {
5786
+ let T = (0, hu.default)(function() {
5800
5787
  let { width: e, height: t } = l, { margin: n } = c, { top: r, right: i, bottom: a, left: o } = n;
5801
5788
  l.innerWidth = e - o - i, l.innerHeight = t - r - a, p.style("width", `${e}px`).style("height", `${t}px`), m.attr("width", e).attr("height", t), h.attr("transform", `translate(${o}, ${r})`), k();
5802
5789
  }, 1);
@@ -5810,9 +5797,7 @@ var xu = function(e, t) {
5810
5797
  case "vertical":
5811
5798
  e = is(d), v.attr("transform", "translate(0,0)");
5812
5799
  break;
5813
- case "horizontal":
5814
- e = rs(d), v.attr("transform", "translate(0," + l.innerHeight + ")");
5815
- break;
5800
+ case "horizontal": e = rs(d), v.attr("transform", "translate(0," + l.innerHeight + ")");
5816
5801
  }
5817
5802
  c.formatAxis?.(e), y.call(e).attr("font-family", null).attr("font-size", null);
5818
5803
  }
@@ -5823,7 +5808,7 @@ var xu = function(e, t) {
5823
5808
  function ee(e) {
5824
5809
  let t;
5825
5810
  t = c.direction === "vertical" ? Ar(e, (e) => e.w) : Ar(e, (e) => e.h);
5826
- let n = new gu.default.Renderer({
5811
+ let n = new mu.default.Renderer({
5827
5812
  nodeHeight: t ?? 0,
5828
5813
  layerGap: c.layerGap,
5829
5814
  direction: c.direction === "horizontal" ? "up" : "right"
@@ -5847,9 +5832,9 @@ var xu = function(e, t) {
5847
5832
  function k() {
5848
5833
  if (!n || l.innerWidth <= 0 && l.innerHeight <= 0) return;
5849
5834
  let e = n || [];
5850
- u = new gu.default.Force(), d.domain(c.domain), d.range([0, c.direction === "vertical" ? l.innerHeight : l.innerWidth]);
5835
+ u = new mu.default.Force(), d.domain(c.domain), d.range([0, c.direction === "vertical" ? l.innerHeight : l.innerWidth]);
5851
5836
  let t = _.append("text").classed("label-text", !0), r = e.map((e) => {
5852
- let n = t.call(E, e).node().getBBox(), r = n.width + c.labelPadding.left + c.labelPadding.right, i = n.height + c.labelPadding.top + c.labelPadding.bottom, a = new gu.default.Node(d(c.timeFn(e)), c.direction === "vertical" ? i : r, e);
5837
+ let n = t.call(E, e).node().getBBox(), r = n.width + c.labelPadding.left + c.labelPadding.right, i = n.height + c.labelPadding.top + c.labelPadding.bottom, a = new mu.default.Node(d(c.timeFn(e)), c.direction === "vertical" ? i : r, e);
5853
5838
  return a.w = r, a.h = i, a;
5854
5839
  });
5855
5840
  t.remove();
@@ -5893,13 +5878,13 @@ var xu = function(e, t) {
5893
5878
  return { draw: function() {
5894
5879
  C(), w(), T(), T.flush();
5895
5880
  } };
5896
- }, Su = function(e, t) {
5881
+ }, bu = function(e, t) {
5897
5882
  if (t) {
5898
5883
  let n = e.handlerValue("load");
5899
5884
  n && n(t);
5900
5885
  }
5901
5886
  return d;
5902
- }, Cu = function(e, t) {
5887
+ }, xu = function(e, t) {
5903
5888
  let n = (e) => e ? new Date(e) : null, r = (e) => n(e)?.toLocaleDateString(), i = L(e.container).append("table").attr("class", "ui bizq very compact celled small unstackable striped table"), a = i.append("tbody");
5904
5889
  $.debug("data", t);
5905
5890
  for (let e of ["current", "former"]) {
@@ -5922,38 +5907,38 @@ var xu = function(e, t) {
5922
5907
  }
5923
5908
  }
5924
5909
  return e.markup(i), d;
5925
- }, wu;
5926
- function Tu(e) {
5910
+ }, Su;
5911
+ function Cu(e) {
5927
5912
  if (e) {
5928
- wu = document.querySelectorAll("button:not([disabled])");
5929
- for (let e = 0; e < wu.length; ++e) wu[e].disabled = !0;
5930
- } else if (wu) for (let e = 0; e < wu.length; ++e) wu[e].disabled = !1;
5913
+ Su = document.querySelectorAll("button:not([disabled])");
5914
+ for (let e = 0; e < Su.length; ++e) Su[e].disabled = !0;
5915
+ } else if (Su) for (let e = 0; e < Su.length; ++e) Su[e].disabled = !1;
5931
5916
  document.body.classList.toggle("waiting", e);
5932
5917
  }
5933
5918
  //#endregion
5934
5919
  //#region src/ts/viz/widgets/pubshop.ts
5935
- var Eu = function(e, t) {
5920
+ var wu = function(e, t) {
5936
5921
  return Sn("click", e.container, "*", function() {
5937
- Tu(!0);
5922
+ Cu(!0);
5938
5923
  let t = new XMLHttpRequest();
5939
5924
  t.open("POST", "/_api/shop/v1/products"), t.setRequestHeader("Content-Type", "application/json");
5940
5925
  function n(e) {
5941
5926
  $.log("error", "cannot list pubs", e);
5942
5927
  }
5943
5928
  return t.onerror = function(e) {
5944
- Tu(!1), n(e);
5929
+ Cu(!1), n(e);
5945
5930
  }, t.onload = function() {
5946
- Tu(!1), $.debug(t.status), t.status >= 400 && n(t.responseText || t.statusText), $.debug("ok", t.responseText);
5931
+ Cu(!1), $.debug(t.status), t.status >= 400 && n(t.responseText || t.statusText), $.debug("ok", t.responseText);
5947
5932
  let e = JSON.parse(t.responseText);
5948
5933
  $.debug("data", e);
5949
5934
  }, t.send(JSON.stringify(e.options)), !1;
5950
5935
  }), d;
5951
- }, Du = function(e, t) {
5936
+ }, Tu = function(e, t) {
5952
5937
  let n = L(e.container).selectAll(".publication").data(t.publications).enter().append("div").attr("class", "pub").attr("data-publication-id", (e) => e.id), r = n.append("h2");
5953
5938
  return r.append("span").attr("class", "icon").text((e) => e.internal.icon), r.append("span").attr("class", "date").text((e) => e.internal.formattedDate), r.append("a").attr("href", "#").html((e) => e.internal.htmlTitle).on("click", function(e) {
5954
5939
  e.target?.parentElement?.parentElement?.classList?.toggle("expanded"), e.preventDefault();
5955
5940
  }), n.append("div").attr("class", "text").html((e) => e.html), e.markup(n), d;
5956
- }, Ou = function(e, t) {
5941
+ }, Eu = function(e, t) {
5957
5942
  let n = L(e.container), r = n.append("ul").attr("class", "search-results"), i = t.cursor;
5958
5943
  function a(e) {
5959
5944
  let t = {}, n = e.subject, r = n.name[0].name, i = n.address && n.address[0], a = i && i.city, o = {
@@ -5972,7 +5957,6 @@ var Eu = function(e, t) {
5972
5957
  o.type = "p";
5973
5958
  let s = r.split(",");
5974
5959
  t.lastName = s[0], t.firstName = wn(s[1]), t.birthDate = n.birthDate, t.address = a, (!t.address || !t.birthDate) && (t.id = e.targetId);
5975
- break;
5976
5960
  }
5977
5961
  return o;
5978
5962
  }
@@ -6007,10 +5991,10 @@ var Eu = function(e, t) {
6007
5991
  };
6008
5992
  //#endregion
6009
5993
  //#region src/ts/viz/widgets/sheet.ts
6010
- function ku(e) {
5994
+ function Du(e) {
6011
5995
  return !isNaN(parseFloat(e)) && isFinite(e);
6012
5996
  }
6013
- var Au = function(e, t) {
5997
+ var Ou = function(e, t) {
6014
5998
  if (!t.sheet) throw Error("no data");
6015
5999
  for (let n of t.sheet) {
6016
6000
  if (!n) {
@@ -6026,7 +6010,7 @@ var Au = function(e, t) {
6026
6010
  let s = t[0].currency, l = 1, u = s.unit, d = e.i18n().numberFormatter;
6027
6011
  if (s) {
6028
6012
  let t = 0, n = 0, i = 0;
6029
- for (let e of r) for (let r of e.cell) if (ku(r.value)) {
6013
+ for (let e of r) for (let r of e.cell) if (Du(r.value)) {
6030
6014
  let e = Math.abs(r.value);
6031
6015
  e > 1e5 && (++i, e > 1e7 && (++n, e > 1e10 && ++t));
6032
6016
  }
@@ -6101,13 +6085,13 @@ var Au = function(e, t) {
6101
6085
  i(e).classed(n) ? s(e) : o(e);
6102
6086
  }
6103
6087
  return d;
6104
- }, ju = function(e, t) {
6088
+ }, ku = function(e, t) {
6105
6089
  let n = e.container, r = e.i18n().timeScaleFormatter, i = {
6106
6090
  chartLeft: 12,
6107
6091
  right: 15,
6108
6092
  top: 0,
6109
6093
  bottom: 0
6110
- }, a = .5, o = 18 * .71, s = t.lines;
6094
+ }, a = .5, o = 12.78, s = t.lines;
6111
6095
  if (!s || !s.length) throw Error("vita empty");
6112
6096
  let c = s.length, l = i.top + 23 * c + 5, u = new Date(t.startDate).getTime(), d = new Date(t.endDate).getTime(), f = (e) => e ? new Date(e) : null, p = L(e.container).append("svg");
6113
6097
  p.append("title").text(Ra("History", "Historie", "Historique"));
@@ -6144,7 +6128,7 @@ var Au = function(e, t) {
6144
6128
  };
6145
6129
  }, _ = function() {
6146
6130
  if (c >= 600) return !0;
6147
- let e = 30 * 86400 * 1e3;
6131
+ let e = 2592e6;
6148
6132
  for (let t of s) for (let n of t.bars) {
6149
6133
  let t = f(n.assumedStart), r = f(n.end) || /* @__PURE__ */ new Date();
6150
6134
  if (!t || Math.abs(t.getTime() - u) < e || Math.abs(d - r.getTime()) < e) return !0;
@@ -6156,12 +6140,12 @@ var Au = function(e, t) {
6156
6140
  t.append("g").attr("class", "axis").attr("transform", "translate(0," + l + ")").call(y).attr("font-size", null).attr("font-family", null), t.append("g").attr("class", "axis grid").attr("transform", "translate(0," + l + ")").call(y.tickSizeInner(-l).tickSizeOuter(0)).call((e) => e.selectAll(".tick text").remove());
6157
6141
  let b = i.chartLeft, x = c - i.right, S = 0;
6158
6142
  for (let n of s) {
6159
- let r = i.top + 23 * S + 5, s = r + 18, c = r + 18 * .75 - 1, l = (r + s) / 2;
6143
+ let r = i.top + 23 * S + 5, s = r + 18, c = r + 13.5 - 1, l = (r + s) / 2;
6160
6144
  t.append("line").attr("x1", b).attr("x2", x).attr("y1", l).attr("y2", l).attr("class", "grid");
6161
6145
  let u = n.bars.length, d = 0, p = !1, m = 0, h = 0;
6162
6146
  for (let s of n.bars) {
6163
6147
  let l = f(s.assumedStart), _ = f(s.end) || /* @__PURE__ */ new Date(), y = l ? v(l) : i.chartLeft + o, S = !s.start;
6164
- S ? y += o : y += a;
6148
+ y += S ? o : a;
6165
6149
  let C = v(_);
6166
6150
  s.openEnded && s.end ? C -= o : C -= a, C = Math.max(y, C);
6167
6151
  let w = C - y, T = y + w / 2;
@@ -6201,7 +6185,7 @@ var Au = function(e, t) {
6201
6185
  let C = /* @__PURE__ */ new Date(), w = "Heute, " + m(C), T = v(C), E = t.append("svg:a").attr("xlink:title", w);
6202
6186
  E.append("title").text(w), E.append("line").attr("class", "today").attr("x1", T).attr("y1", 0).attr("x2", T).attr("y2", l + 15), p.attr("height", l + 30);
6203
6187
  } };
6204
- }, Mu;
6188
+ }, Au;
6205
6189
  (function(e) {
6206
6190
  e.Widget = Wa, e.version = l;
6207
6191
  let t = e.options = {
@@ -6222,21 +6206,21 @@ var Au = function(e, t) {
6222
6206
  }
6223
6207
  e.log = i, p({
6224
6208
  barChart: os,
6225
- drillDown: Cc,
6226
- graph: Tc,
6227
- dendrogram: Sc,
6228
- history: xu,
6229
- vita: ju,
6230
- pubTable: Du,
6231
- pubShop: Eu,
6232
- personTable: Cu,
6233
- sheet: Au,
6234
- financials: wc,
6209
+ drillDown: Sc,
6210
+ graph: wc,
6211
+ dendrogram: xc,
6212
+ history: yu,
6213
+ vita: ku,
6214
+ pubTable: Tu,
6215
+ pubShop: wu,
6216
+ personTable: xu,
6217
+ sheet: Ou,
6218
+ financials: Cc,
6235
6219
  contact: ss,
6236
- overview: Su,
6237
- searchResults: Ou
6220
+ overview: bu,
6221
+ searchResults: Eu
6238
6222
  });
6239
- })(Mu ||= {});
6240
- var $ = Mu, Nu = Mu.Widget, Pu = Mu.initialize, Fu = Mu.version;
6223
+ })(Au ||= {});
6224
+ var $ = Au, ju = Au.Widget, Mu = Au.initialize, Nu = Au.version;
6241
6225
  //#endregion
6242
- export { Nu as Widget, Pu as initialize, Fu as version };
6226
+ export { ju as Widget, Mu as initialize, Nu as version };