@astrato-io/visualizations 0.10.1 → 0.11.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +19 -1
  3. package/THIRD_PARTY_NOTICES.md +494 -0
  4. package/VISUALIZATION_DEFINITIONS.md +6 -145
  5. package/chunks/{Button-Dn3rJrYf.js → Button-CPG4WX8X.js} +3 -3
  6. package/chunks/{CircularProgress-BFeu06Yb.js → CircularProgress-PSLW8HmD.js} +12 -12
  7. package/chunks/FieldTypeIcon-5k2bkqd0.js +22 -0
  8. package/chunks/{LinearProgress-ClO6GUjN.js → LinearProgress-KQ2EQlGL.js} +16 -16
  9. package/chunks/{MenuOption-Czc34u4q.js → MenuOption-B-6K7kks.js} +151 -151
  10. package/chunks/{Title-BgYnaVTR.js → Title-BmvwZYkh.js} +32 -32
  11. package/chunks/{_createAggregator-BMu9uRax.js → _createAggregator-CFmH6gUN.js} +16 -16
  12. package/chunks/{app-filter-bar.compiler-CVir0wkl.js → app-filter-bar.compiler-BY5-T16I.js} +8 -8
  13. package/chunks/{bar-layout-C_UgRlVl.js → bar-layout-BNou0dZF.js} +2 -2
  14. package/chunks/{bar.compiler-DYuFdi9J.js → bar.compiler-BkhO7sDd.js} +58 -56
  15. package/chunks/{builder-C-TKA-My.js → builder-CNjuqD2z.js} +107 -56
  16. package/chunks/category-axis-D1OVyMrr.js +20 -0
  17. package/chunks/{coloring-BtnPiQ_o.js → coloring-BOiP0rmn.js} +51 -51
  18. package/chunks/{createSimplePaletteValueFilter--zrZxRV9.js → createSimplePaletteValueFilter-BkgQ7MFE.js} +166 -166
  19. package/chunks/defaults-B5_8S-J-.js +3 -0
  20. package/chunks/{definitions-CT304NDn.js → definitions-AS9GcavE.js} +228 -233
  21. package/chunks/{escobar-CvEV2ES1.js → escobar-cQ1eQ64G.js} +4183 -4183
  22. package/chunks/{extend-preset-D9-JP92b.js → extend-preset-BlCbcXKR.js} +427 -427
  23. package/chunks/{filter.compiler-CXeZznks.js → filter.compiler-CI7dDNM1.js} +10 -10
  24. package/chunks/{filtering-8_bFv-jb.js → filtering-Dwi7hDPZ.js} +308 -308
  25. package/chunks/{handlers-C6CZ0XJA.js → handlers-C63NVo7i.js} +4593 -4559
  26. package/chunks/{icon-picker-styles-BXiJ1SZS.js → icon-picker-styles-CBlxEu3s.js} +8 -8
  27. package/chunks/{isEqual-D8Ay63xR.js → isEqual-BdHo6wqq.js} +1 -1
  28. package/chunks/{isFocusVisible-Bu8gGZu5.js → isFocusVisible-C1nlVUwL.js} +9 -9
  29. package/chunks/line.compiler-DCv3h42f.js +198 -0
  30. package/chunks/linear-Bq_r9l5S.js +264 -0
  31. package/chunks/{logger-DdZpR7xZ.js → logger-Bc-DqDM_.js} +64 -64
  32. package/chunks/{lookup-BWllin0q.js → lookup-B3tWH2hX.js} +1 -0
  33. package/chunks/{map.compiler-Q_Y1Pvat.js → map.compiler-CRO6XpdI.js} +43 -43
  34. package/chunks/measure-format-default-B6ghxih7.js +22 -0
  35. package/chunks/{metadata-BQm_TXI1.js → metadata-CtkvZEhS.js} +1 -1
  36. package/chunks/number.compiler-kV4lobCZ.js +57 -0
  37. package/chunks/{operations-DKQWuLL7.js → operations-COl9wgqi.js} +8524 -8480
  38. package/chunks/{range-BdhzvYQ_.js → range-CMJ5yc5Z.js} +2 -2
  39. package/chunks/{react-dom-BGP4tbXV.js → react-dom-BjsCbYHq.js} +76 -76
  40. package/chunks/{render-wrappers-BZpyDnJy.js → render-wrappers-DFHi3Wkr.js} +1 -1
  41. package/chunks/{requirements-e8Fe96ag.js → requirements-C5YLmHKe.js} +250 -226
  42. package/chunks/{shared-C_2F90xq.js → shared-DyqxOie0.js} +504 -498
  43. package/chunks/standalone-06i1wmIX.js +6 -0
  44. package/chunks/{standalone-BDrXVxlP.js → standalone-9jrQ3zJT.js} +10 -10
  45. package/chunks/standalone-B6zUvxNQ.js +357 -0
  46. package/chunks/{standalone-BkbiH-o8.js → standalone-BYK2U0Vd.js} +418 -679
  47. package/chunks/standalone-Be5APcVv.js +762 -0
  48. package/chunks/{standalone-Cl0TSfqC.js → standalone-Bp4G3MDx.js} +123 -123
  49. package/chunks/{standalone-DNh9NcMa.js → standalone-BrjtMIdd.js} +145 -145
  50. package/chunks/{standalone-BTY3w_JA.js → standalone-Bsfz5vnJ.js} +53 -53
  51. package/chunks/standalone-BuXpKMnc.js +2 -0
  52. package/chunks/standalone-CIjNYyya.js +8378 -0
  53. package/chunks/{standalone-CsoMmE9T.js → standalone-CS5VGoja.js} +347 -347
  54. package/chunks/standalone-CUGt2FUF.js +2 -0
  55. package/chunks/{standalone-CaTxAydz.js → standalone-ChfEHb28.js} +2296 -1069
  56. package/chunks/standalone-CnF2OYLQ.js +355 -0
  57. package/chunks/standalone-CznEEiq3.js +422 -0
  58. package/chunks/{standalone-DflyWtuR.js → standalone-D9k5SCd8.js} +169 -169
  59. package/chunks/{standalone-Cc98Pdr6.js → standalone-DYVYccmY.js} +829 -829
  60. package/chunks/{standalone-CY_kjarf.js → standalone-DaNxWIKn.js} +22 -22
  61. package/chunks/{standalone-wOWRCpdn.js → standalone-Db_HNuWx.js} +48 -48
  62. package/chunks/standalone-DcuE8KBa.js +287 -0
  63. package/chunks/{standalone-BE_ONgiG.js → standalone-I5kRIsp8.js} +76 -76
  64. package/chunks/{standalone-B8ZSqauS.js → standalone-K2OvRAQM.js} +113 -113
  65. package/chunks/{standalone-z0o52o5t.js → standalone-c4CPN6ug.js} +1719 -1718
  66. package/chunks/{standalone-DHRalbVO.js → standalone-iOnJhCvA.js} +312 -312
  67. package/chunks/{standalone-CXY4FpF7.js → standalone-pCrzBiTy.js} +222 -222
  68. package/chunks/standalone-qrZaimgC.js +689 -0
  69. package/chunks/standalone-yqDJ8h3K.js +1012 -0
  70. package/chunks/{table.compiler-COaHE9VD.js → table.compiler-CMH_dtYs.js} +35 -35
  71. package/chunks/{useFieldName-CdnCWzhd.js → useFieldName-BfxBzhhH.js} +1 -1
  72. package/chunks/{utils-DganVptf.js → utils-BdJrEeIQ.js} +3924 -3910
  73. package/chunks/{view-Bzlros43.js → view-Q-_XIrWE.js} +1680 -1680
  74. package/chunks/{visualization-filters-D7i6oh1Z.js → visualization-filters-BwS0xUqs.js} +1705 -1686
  75. package/chunks/{with-html-element-CiIhFEa5.js → with-html-element-D_ooGNWI.js} +3962 -3950
  76. package/definitions.js +2 -2
  77. package/docs/operations/astrato-app-filter-bar.md +1 -1
  78. package/docs/operations/bar.md +30 -1
  79. package/docs/operations/combo.md +30 -1
  80. package/docs/operations/date-picker.md +1 -1
  81. package/docs/operations/distribution-gauge.md +1 -1
  82. package/docs/operations/dot.md +1 -1
  83. package/docs/operations/filter.md +1 -1
  84. package/docs/operations/gauge.md +1 -1
  85. package/docs/operations/heatMap.md +1 -1
  86. package/docs/operations/histogram.md +1 -1
  87. package/docs/operations/iframe.md +1 -1
  88. package/docs/operations/image.md +1 -1
  89. package/docs/operations/index.md +5 -4
  90. package/docs/operations/line.md +30 -1
  91. package/docs/operations/map.md +5274 -0
  92. package/docs/operations/number.md +1 -1
  93. package/docs/operations/pie.md +1 -1
  94. package/docs/operations/radar.md +1 -1
  95. package/docs/operations/sankey.md +1 -1
  96. package/docs/operations/scatter.md +1 -1
  97. package/docs/operations/shape.md +1 -1
  98. package/docs/operations/simpleTextObject.md +1 -1
  99. package/docs/operations/slider.md +1 -1
  100. package/docs/operations/table.md +1 -1
  101. package/docs/operations/tree.md +1 -1
  102. package/docs/operations/treemap.md +1 -1
  103. package/docs/operations/waterfall.md +1 -1
  104. package/docs/operations/word-cloud.md +1 -1
  105. package/getters.js +3 -3
  106. package/index.js +524 -500
  107. package/metadata.js +2 -2
  108. package/operations.js +6 -6
  109. package/package.json +73 -68
  110. package/src/definitions/index.d.ts +1 -7
  111. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +3 -48
  112. package/src/definitions/model/definitions/schema-registry.d.ts +2 -2
  113. package/src/definitions/model/definitions/schemas/bar.schema.d.ts +1 -1
  114. package/src/definitions/model/definitions/schemas/broad-chart.schema.d.ts +2 -2
  115. package/src/definitions/model/definitions/schemas/common.schema.d.ts +14 -2
  116. package/src/definitions/model/definitions/schemas/index.d.ts +1 -1
  117. package/src/definitions/model/definitions/schemas/line.schema.d.ts +1 -1
  118. package/src/visualization-catalog.d.ts +3 -0
  119. package/styles.css +1 -1
  120. package/chunks/FieldTypeIcon-DrMoGpHJ.js +0 -22
  121. package/chunks/defaults-Dtk7fg3C.js +0 -3
  122. package/chunks/line.compiler-DmHpmQCC.js +0 -198
  123. package/chunks/number.compiler-DQdg6zTy.js +0 -53
  124. package/chunks/standalone-4MsKiqs0.js +0 -355
  125. package/chunks/standalone-B794g9pE.js +0 -1012
  126. package/chunks/standalone-BA2YXyJS.js +0 -422
  127. package/chunks/standalone-BgumbdaJ2.js +0 -357
  128. package/chunks/standalone-Blh4qejk.js +0 -689
  129. package/chunks/standalone-DH0xTEes.js +0 -2
  130. package/chunks/standalone-DcnHjNnC.js +0 -2
  131. package/chunks/standalone-DrHdGkY7.js +0 -762
  132. package/chunks/standalone-c_rROMtx.js +0 -287
  133. package/chunks/standalone-drcFLeN6.js +0 -6
@@ -1,52 +1,52 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { Aa as t, Fc as n, Is as r, Oa as i, Qr as a, Va as o, Vs as s, ka as c, li as l, oi as u, pc as d, si as f, tn as p } from "./visualization-filters-D7i6oh1Z.js";
3
- import { Gt as m, M as h, Zt as g, bn as _, c as v, ci as y, d as b, it as x, j as S, jt as C, nt as w, o as T, rr as E, rt as ee, z as te, zr as D } from "./utils-DganVptf.js";
4
- import { Pi as ne } from "./handlers-C6CZ0XJA.js";
5
- import { n as re } from "./isEqual-D8Ay63xR.js";
6
- import { s as ie } from "./logger-DdZpR7xZ.js";
7
- import { $ as ae, $t as oe, G as se, J as ce, K as le, Q as ue, W as de, X as fe, Xt as O, a as pe, at as me, ct as k, h as he, on as A, ot as j, rt as ge, tt as _e } from "./escobar-CvEV2ES1.js";
8
- import { S as ve, T as ye, _ as be, z as xe } from "./MenuOption-Czc34u4q.js";
9
- import { _ as Se, m as Ce, v as we } from "./react-dom-BGP4tbXV.js";
10
- import { d as Te, t as Ee, u as De } from "./isFocusVisible-Bu8gGZu5.js";
11
- import { d as Oe, m as ke, u as Ae } from "./Title-BgYnaVTR.js";
12
- import "./coloring-BtnPiQ_o.js";
13
- import { s as je, t as Me } from "./src-77e3mC7i.js";
14
- import { f as Ne, r as Pe, t as Fe, u as Ie, y as Le } from "./src-D9XogOrc.js";
15
- import { t as Re } from "./builder-C-TKA-My.js";
16
- import { a as ze, c as Be, d as Ve, i as He, l as Ue, n as We, o as Ge, r as Ke, s as qe, t as Je, u as Ye } from "./createSimplePaletteValueFilter--zrZxRV9.js";
17
- import { a as Xe, i as Ze, r as Qe, t as $e } from "./accessors-DemrDevR.js";
18
- import { r as et, t as tt } from "./src-BOS6SqkZ.js";
19
- var M = D(), nt = ({ fillColor: e = i.grey2 }) => /* @__PURE__ */ (0, M.jsx)("svg", {
2
+ import { Fa as t, Hc as n, Js as r, Ka as i, Na as a, Pa as o, Us as s, bc as c, di as l, fi as u, mi as d, on as f, ri as p } from "./visualization-filters-BwS0xUqs.js";
3
+ import { B as m, Br as h, Kt as g, M as _, Mt as v, N as y, Qt as b, at as x, c as S, d as C, ir as w, it as T, li as E, o as D, rt as ee, xn as O } from "./utils-BdJrEeIQ.js";
4
+ import { Ii as te } from "./handlers-C63NVo7i.js";
5
+ import { n as ne } from "./isEqual-BdHo6wqq.js";
6
+ import { s as re } from "./logger-Bc-DqDM_.js";
7
+ import { W as ie, _n as k, a as ae, ct as oe, dt as se, gt as ce, h as A, ht as le, it as j, lt as ue, nt as de, ot as M, pt as fe, sn as N, tt as pe, un as me, vt as he } from "./escobar-cQ1eQ64G.js";
8
+ import { S as ge, T as _e, _ as ve, z as ye } from "./MenuOption-B-6K7kks.js";
9
+ import { _ as be, m as xe, v as Se } from "./react-dom-BjsCbYHq.js";
10
+ import { d as Ce, t as we, u as Te } from "./isFocusVisible-C1nlVUwL.js";
11
+ import { d as Ee, m as De, u as Oe } from "./Title-BmvwZYkh.js";
12
+ import "./coloring-BOiP0rmn.js";
13
+ import { s as ke, t as Ae } from "./src-77e3mC7i.js";
14
+ import { f as je, r as Me, t as Ne, u as Pe, y as Fe } from "./src-D9XogOrc.js";
15
+ import { r as Ie } from "./builder-CNjuqD2z.js";
16
+ import { a as Le, c as Re, d as ze, i as Be, l as Ve, n as He, o as Ue, r as We, s as Ge, t as Ke, u as qe } from "./createSimplePaletteValueFilter-BkgQ7MFE.js";
17
+ import { a as Je, i as Ye, r as Xe, t as Ze } from "./accessors-DemrDevR.js";
18
+ import { r as Qe, t as $e } from "./src-BOS6SqkZ.js";
19
+ var P = h(), et = ({ fillColor: e = a.grey2 }) => /* @__PURE__ */ (0, P.jsx)("svg", {
20
20
  width: "16",
21
21
  height: "16",
22
22
  viewBox: "0 0 24 24",
23
23
  fill: "none",
24
24
  xmlns: "http://www.w3.org/2000/svg",
25
- children: /* @__PURE__ */ (0, M.jsx)("path", {
25
+ children: /* @__PURE__ */ (0, P.jsx)("path", {
26
26
  d: "M3 17.46V20.5C3 20.78 3.22 21 3.5 21H6.54C6.67 21 6.8 20.95 6.89 20.85L17.81 9.94L14.06 6.19L3.15 17.1C3.05 17.2 3 17.32 3 17.46ZM20.71 7.04C21.1 6.65 21.1 6.02 20.71 5.63L18.37 3.29C17.98 2.9 17.35 2.9 16.96 3.29L15.13 5.12L18.88 8.87L20.71 7.04Z",
27
27
  fill: e
28
28
  })
29
- }), N = /* @__PURE__ */ e(y(), 1);
30
- function rt(e) {
29
+ }), F = /* @__PURE__ */ e(E(), 1);
30
+ function tt(e) {
31
31
  return Object.keys(e).length === 0;
32
32
  }
33
- function it(e = null) {
34
- let t = N.useContext(Ve);
35
- return !t || rt(t) ? e : t;
33
+ function nt(e = null) {
34
+ let t = F.useContext(ze);
35
+ return !t || tt(t) ? e : t;
36
36
  }
37
- var at = Be();
38
- function ot(e = at) {
39
- return it(e);
37
+ var rt = Re();
38
+ function it(e = rt) {
39
+ return nt(e);
40
40
  }
41
- function st() {
42
- let e = ot(Ge);
41
+ function at() {
42
+ let e = it(Ue);
43
43
  return e.$$material || e;
44
44
  }
45
- var ct = Te;
46
- function lt(e) {
47
- return we("MuiToggleButton", e);
45
+ var ot = Ce;
46
+ function st(e) {
47
+ return Se("MuiToggleButton", e);
48
48
  }
49
- var ut = Se("MuiToggleButton", [
49
+ var ct = be("MuiToggleButton", [
50
50
  "root",
51
51
  "disabled",
52
52
  "selected",
@@ -57,13 +57,13 @@ var ut = Se("MuiToggleButton", [
57
57
  "sizeMedium",
58
58
  "sizeLarge",
59
59
  "fullWidth"
60
- ]), P = De, dt = "(prefers-reduced-motion: reduce)", ft = 0, pt = "0ms", mt = () => {}, ht = () => !1, gt = () => !0, _t = () => mt;
61
- function vt(e) {
62
- let [t, n] = N.useState(() => ({
60
+ ]), I = Te, lt = "(prefers-reduced-motion: reduce)", ut = 0, dt = "0ms", ft = () => {}, pt = () => !1, mt = () => !0, ht = () => ft;
61
+ function gt(e) {
62
+ let [t, n] = F.useState(() => ({
63
63
  enabled: e,
64
64
  matches: e ? null : !1
65
65
  })), r = t.matches;
66
- return t.enabled !== e && (r = null, e || (r = !1)), w(() => {
66
+ return t.enabled !== e && (r = null, e || (r = !1)), ee(() => {
67
67
  let r = (t) => {
68
68
  n((n) => n.enabled === e && n.matches === t ? n : {
69
69
  enabled: e,
@@ -78,7 +78,7 @@ function vt(e) {
78
78
  r(!1);
79
79
  return;
80
80
  }
81
- let i = window.matchMedia(dt), a = () => {
81
+ let i = window.matchMedia(lt), a = () => {
82
82
  r(i.matches);
83
83
  };
84
84
  return a(), i.addEventListener("change", a), () => {
@@ -86,33 +86,33 @@ function vt(e) {
86
86
  };
87
87
  }, [e, t.enabled]), r;
88
88
  }
89
- var yt = { ...N }.useSyncExternalStore;
90
- function bt(e) {
91
- let t = e ? gt : ht, [n, r] = N.useMemo(() => {
92
- if (!e || typeof window > "u" || typeof window.matchMedia != "function") return [ht, _t];
93
- let t = window.matchMedia(dt);
89
+ var _t = { ...F }.useSyncExternalStore;
90
+ function vt(e) {
91
+ let t = e ? mt : pt, [n, r] = F.useMemo(() => {
92
+ if (!e || typeof window > "u" || typeof window.matchMedia != "function") return [pt, ht];
93
+ let t = window.matchMedia(lt);
94
94
  return [() => t.matches, (e) => (t.addEventListener("change", e), () => {
95
95
  t.removeEventListener("change", e);
96
96
  })];
97
97
  }, [e]);
98
- return yt(r, n, t);
98
+ return _t(r, n, t);
99
99
  }
100
- var xt = yt === void 0 ? vt : bt;
101
- function St(e, t) {
102
- let n = xt(!t && e === "system"), r = !t && (e === "always" || e === "system" && n !== !1);
103
- return N.useMemo(() => ({
100
+ var yt = _t === void 0 ? gt : vt;
101
+ function bt(e, t) {
102
+ let n = yt(!t && e === "system"), r = !t && (e === "always" || e === "system" && n !== !1);
103
+ return F.useMemo(() => ({
104
104
  shouldReduceMotion: r,
105
105
  getTransitionTiming(e) {
106
106
  return r ? {
107
- duration: ft,
108
- delay: pt
107
+ duration: ut,
108
+ delay: dt
109
109
  } : e;
110
110
  }
111
111
  }), [r]);
112
112
  }
113
- function Ct(e) {
113
+ function xt(e) {
114
114
  let { focusableWhenDisabled: t, disabled: n, composite: r = !1, tabIndex: i = 0, isNativeButton: a } = e, o = r && t !== !1, s = r && t === !1;
115
- return N.useMemo(() => {
115
+ return F.useMemo(() => {
116
116
  let e = { onKeyDown(e) {
117
117
  n && t && e.key !== "Tab" && e.preventDefault();
118
118
  } };
@@ -127,17 +127,17 @@ function Ct(e) {
127
127
  i
128
128
  ]);
129
129
  }
130
- var wt = {};
131
- function Tt(e) {
132
- let { nativeButton: t, nativeButtonProp: n, internalNativeButton: r = t, allowInferredHostMismatch: i = !1, disabled: a, type: o, hasFormAction: s = !1, tabIndex: c = 0, focusableWhenDisabled: l, stopEventPropagation: u = !1, onBeforeKeyDown: d, onBeforeKeyUp: f } = e, p = N.useRef(null), m = l === !0, h = Ct({
130
+ var St = {};
131
+ function Ct(e) {
132
+ let { nativeButton: t, nativeButtonProp: n, internalNativeButton: r = t, allowInferredHostMismatch: i = !1, disabled: a, type: o, hasFormAction: s = !1, tabIndex: c = 0, focusableWhenDisabled: l, stopEventPropagation: u = !1, onBeforeKeyDown: d, onBeforeKeyUp: f } = e, p = F.useRef(null), m = l === !0, h = xt({
133
133
  focusableWhenDisabled: m,
134
134
  disabled: a,
135
135
  isNativeButton: t,
136
136
  tabIndex: c
137
- }), g = N.useCallback(() => {
137
+ }), g = F.useCallback(() => {
138
138
  let e = p.current;
139
139
  return e == null ? t : e.tagName === "BUTTON" || !!(e.tagName === "A" && e.href);
140
- }, [t]), _ = N.useMemo(() => {
140
+ }, [t]), _ = F.useMemo(() => {
141
141
  let e = m ? {} : { tabIndex: a ? -1 : c };
142
142
  return t ? (e.type = o === void 0 && !s ? "button" : o, m || (e.disabled = a)) : (e.role = "button", !m && a && (e["aria-disabled"] = a)), m ? {
143
143
  ...e,
@@ -153,7 +153,7 @@ function Tt(e) {
153
153
  o
154
154
  ]);
155
155
  return {
156
- getButtonProps: N.useCallback((e = wt) => {
156
+ getButtonProps: F.useCallback((e = St) => {
157
157
  let { onClick: t, onKeyDown: n, onKeyUp: r, ...i } = e, o = (e) => {
158
158
  if (u && e.stopPropagation(), a) {
159
159
  e.preventDefault();
@@ -191,7 +191,7 @@ function Tt(e) {
191
191
  rootRef: p
192
192
  };
193
193
  }
194
- var Et = class e {
194
+ var wt = class e {
195
195
  ref = { current: null };
196
196
  shouldMount = !1;
197
197
  mounted = null;
@@ -201,11 +201,11 @@ var Et = class e {
201
201
  return new e();
202
202
  }
203
203
  static use() {
204
- let t = ke(e.create).current, [n, r] = N.useState(!1);
205
- return t.shouldMount = n, t.setShouldMount = r, N.useEffect(t.mountEffect, [n]), t;
204
+ let t = De(e.create).current, [n, r] = F.useState(!1);
205
+ return t.shouldMount = n, t.setShouldMount = r, F.useEffect(t.mountEffect, [n]), t;
206
206
  }
207
207
  mount() {
208
- return this.mounted || (this.mounted = Ot(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
208
+ return this.mounted || (this.mounted = Et(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
209
209
  }
210
210
  mountEffect = () => {
211
211
  this.shouldMount && !this.didMount && (this.ref.current !== null && (this.didMount = !0), this.mounted.resolve());
@@ -220,17 +220,17 @@ var Et = class e {
220
220
  this.mount().then(() => this.ref.current?.pulsate(...e));
221
221
  }
222
222
  };
223
- function Dt() {
224
- return Et.use();
223
+ function Tt() {
224
+ return wt.use();
225
225
  }
226
- function Ot() {
226
+ function Et() {
227
227
  let e, t, n = new Promise((n, r) => {
228
228
  e = n, t = r;
229
229
  });
230
230
  return n.resolve = e, n.reject = t, n;
231
231
  }
232
- function kt(e) {
233
- let { className: t, classes: n, pulsate: r = !1, rippleX: i, rippleY: a, rippleSize: o, in: s, onExited: c, timeout: l } = e, [u, d] = N.useState(!1), f = Ae(), p = N.useRef(!1), m = N.useRef(c);
232
+ function Dt(e) {
233
+ let { className: t, classes: n, pulsate: r = !1, rippleX: i, rippleY: a, rippleSize: o, in: s, onExited: c, timeout: l } = e, [u, d] = F.useState(!1), f = Oe(), p = F.useRef(!1), m = F.useRef(c);
234
234
  m.current = c;
235
235
  let h = c != null, g = x(t, n.ripple, n.rippleVisible, r && n.ripplePulsate), _ = {
236
236
  width: o,
@@ -238,7 +238,7 @@ function kt(e) {
238
238
  top: -(o / 2) + a,
239
239
  left: -(o / 2) + i
240
240
  }, v = x(n.child, u && n.childLeaving, r && n.childPulsate);
241
- return !s && !u && d(!0), N.useEffect(() => {
241
+ return !s && !u && d(!0), F.useEffect(() => {
242
242
  !s && h ? p.current || (p.current = !0, f.start(l, () => {
243
243
  p.current = !1, m.current?.();
244
244
  })) : (p.current = !1, f.clear());
@@ -247,13 +247,13 @@ function kt(e) {
247
247
  h,
248
248
  s,
249
249
  l
250
- ]), /*#__PURE__*/ (0, M.jsx)("span", {
250
+ ]), /*#__PURE__*/ (0, P.jsx)("span", {
251
251
  className: g,
252
252
  style: _,
253
- children: /*#__PURE__*/ (0, M.jsx)("span", { className: v })
253
+ children: /*#__PURE__*/ (0, P.jsx)("span", { className: v })
254
254
  });
255
255
  }
256
- var F = Se("MuiTouchRipple", [
256
+ var L = be("MuiTouchRipple", [
257
257
  "root",
258
258
  "ripple",
259
259
  "rippleVisible",
@@ -261,8 +261,8 @@ var F = Se("MuiTouchRipple", [
261
261
  "child",
262
262
  "childLeaving",
263
263
  "childPulsate"
264
- ]), At = 550, jt = {}, Mt = [], Nt = () => {};
265
- function Pt(e, t) {
264
+ ]), Ot = 550, kt = {}, At = [], jt = () => {};
265
+ function Mt(e, t) {
266
266
  let n = new Set(t), r = /* @__PURE__ */ new Map(), i = [];
267
267
  for (let t of e) n.has(t) ? i.length > 0 && (r.set(t, i), i = []) : i.push(t);
268
268
  let a = [];
@@ -272,7 +272,7 @@ function Pt(e, t) {
272
272
  }
273
273
  return a.push(...i), a;
274
274
  }
275
- function Ft({ event: e, element: t, center: n }) {
275
+ function Nt({ event: e, element: t, center: n }) {
276
276
  let r = t ? t.getBoundingClientRect() : {
277
277
  width: 0,
278
278
  height: 0,
@@ -296,7 +296,7 @@ function Ft({ event: e, element: t, center: n }) {
296
296
  rippleSize: o
297
297
  };
298
298
  }
299
- var It = Ye`
299
+ var Pt = qe`
300
300
  0% {
301
301
  transform: scale(0);
302
302
  opacity: 0.1;
@@ -306,7 +306,7 @@ var It = Ye`
306
306
  transform: scale(1);
307
307
  opacity: 0.3;
308
308
  }
309
- `, Lt = Ye`
309
+ `, Ft = qe`
310
310
  0% {
311
311
  opacity: 1;
312
312
  }
@@ -314,7 +314,7 @@ var It = Ye`
314
314
  100% {
315
315
  opacity: 0;
316
316
  }
317
- `, Rt = Ye`
317
+ `, It = qe`
318
318
  0% {
319
319
  transform: scale(1);
320
320
  }
@@ -327,40 +327,40 @@ var It = Ye`
327
327
  transform: scale(1);
328
328
  }
329
329
  `;
330
- function zt(e) {
330
+ function Lt(e) {
331
331
  if (e.motion.reducedMotion === "always") return null;
332
- let t = Ue`
333
- &.${F.rippleVisible} {
334
- animation-name: ${It};
335
- animation-duration: ${At}ms;
332
+ let t = Ve`
333
+ &.${L.rippleVisible} {
334
+ animation-name: ${Pt};
335
+ animation-duration: ${Ot}ms;
336
336
  animation-timing-function: ${e.transitions.easing.easeInOut};
337
337
  }
338
338
 
339
- &.${F.ripplePulsate} {
339
+ &.${L.ripplePulsate} {
340
340
  animation-duration: ${e.transitions.duration.shorter}ms;
341
341
  }
342
342
 
343
- & .${F.childLeaving} {
344
- animation-name: ${Lt};
345
- animation-duration: ${At}ms;
343
+ & .${L.childLeaving} {
344
+ animation-name: ${Ft};
345
+ animation-duration: ${Ot}ms;
346
346
  animation-timing-function: ${e.transitions.easing.easeInOut};
347
347
  }
348
348
 
349
- & .${F.childPulsate} {
350
- animation-name: ${Rt};
349
+ & .${L.childPulsate} {
350
+ animation-name: ${It};
351
351
  animation-duration: 2500ms;
352
352
  animation-timing-function: ${e.transitions.easing.easeInOut};
353
353
  animation-iteration-count: infinite;
354
354
  animation-delay: 200ms;
355
355
  }
356
356
  `;
357
- return e.motion.reducedMotion === "system" ? Ue`
357
+ return e.motion.reducedMotion === "system" ? Ve`
358
358
  @media (prefers-reduced-motion: no-preference) {
359
359
  ${t}
360
360
  }
361
361
  ` : t;
362
362
  }
363
- var Bt = ze("span", {
363
+ var Rt = Le("span", {
364
364
  name: "MuiTouchRipple",
365
365
  slot: "Root"
366
366
  })({
@@ -373,14 +373,14 @@ var Bt = ze("span", {
373
373
  bottom: 0,
374
374
  left: 0,
375
375
  borderRadius: "inherit"
376
- }), Vt = ze(kt, {
376
+ }), zt = Le(Dt, {
377
377
  name: "MuiTouchRipple",
378
378
  slot: "Ripple"
379
379
  })`
380
380
  opacity: 0;
381
381
  position: absolute;
382
382
 
383
- &.${F.rippleVisible} {
383
+ &.${L.rippleVisible} {
384
384
  opacity: 0.3;
385
385
  transform: scale(1);
386
386
  }
@@ -393,7 +393,7 @@ var Bt = ze("span", {
393
393
  * it relies on this static 'opacity: 0' to disappear on blur instead of
394
394
  * lingering until removal.
395
395
  */
396
- & .${F.child} {
396
+ & .${L.child} {
397
397
  opacity: 1;
398
398
  display: block;
399
399
  width: 100%;
@@ -402,40 +402,40 @@ var Bt = ze("span", {
402
402
  background-color: currentColor;
403
403
  }
404
404
 
405
- & .${F.childLeaving} {
405
+ & .${L.childLeaving} {
406
406
  opacity: 0;
407
407
  }
408
408
 
409
- & .${F.childPulsate} {
409
+ & .${L.childPulsate} {
410
410
  position: absolute;
411
411
  /* @noflip */
412
412
  left: 0px;
413
413
  top: 0;
414
414
  }
415
415
 
416
- ${({ theme: e }) => zt(e)}
417
- `, Ht = /*#__PURE__*/ N.forwardRef(function(e, t) {
418
- let n = Ke({
416
+ ${({ theme: e }) => Lt(e)}
417
+ `, Bt = /*#__PURE__*/ F.forwardRef(function(e, t) {
418
+ let n = We({
419
419
  props: e,
420
420
  name: "MuiTouchRipple"
421
- }), r = St(st().motion.reducedMotion, !1), { center: i = !1, classes: a = jt, className: o, ...s } = n, [c, l] = N.useState({
422
- items: Mt,
423
- order: Mt
424
- }), u = c.items, d = N.useRef(0), f = N.useRef(null), p = N.useRef(!1);
425
- Oe(() => (p.current = !0, () => {
421
+ }), r = bt(at().motion.reducedMotion, !1), { center: i = !1, classes: a = kt, className: o, ...s } = n, [c, l] = F.useState({
422
+ items: At,
423
+ order: At
424
+ }), u = c.items, d = F.useRef(0), f = F.useRef(null), p = F.useRef(!1);
425
+ Ee(() => (p.current = !0, () => {
426
426
  p.current = !1;
427
- })), N.useEffect(() => {
427
+ })), F.useEffect(() => {
428
428
  f.current &&= (f.current(), null);
429
429
  }, [u]);
430
- let m = N.useRef(!1), h = Ae(), g = N.useRef(null), _ = N.useRef(null), v = P((e) => {
430
+ let m = F.useRef(!1), h = Oe(), g = F.useRef(null), _ = F.useRef(null), v = I((e) => {
431
431
  p.current && l((t) => {
432
432
  let n = t.items.filter((t) => t.key !== e);
433
433
  return {
434
434
  items: n,
435
- order: Pt(t.order.filter((t) => t !== e), n.filter((e) => !e.exiting).map((e) => e.key))
435
+ order: Mt(t.order.filter((t) => t !== e), n.filter((e) => !e.exiting).map((e) => e.key))
436
436
  };
437
437
  });
438
- }), y = P((e) => {
438
+ }), y = I((e) => {
439
439
  let { pulsate: t, rippleX: n, rippleY: r, rippleSize: i, cb: a } = e, o = d.current;
440
440
  d.current += 1, l((e) => {
441
441
  let a = [...e.items, {
@@ -448,17 +448,17 @@ var Bt = ze("span", {
448
448
  }];
449
449
  return {
450
450
  items: a,
451
- order: Pt(e.order, a.filter((e) => !e.exiting).map((e) => e.key))
451
+ order: Mt(e.order, a.filter((e) => !e.exiting).map((e) => e.key))
452
452
  };
453
453
  }), f.current = a;
454
- }), b = P((e = jt, t = jt, n = Nt) => {
454
+ }), b = I((e = kt, t = kt, n = jt) => {
455
455
  let { pulsate: r = !1, center: a = i || t.pulsate, fakeElement: o = !1 } = t;
456
456
  if (e?.type === "mousedown" && m.current) {
457
457
  m.current = !1;
458
458
  return;
459
459
  }
460
460
  e?.type === "touchstart" && (m.current = !0);
461
- let { rippleX: s, rippleY: c, rippleSize: l } = Ft({
461
+ let { rippleX: s, rippleY: c, rippleSize: l } = Nt({
462
462
  event: e,
463
463
  element: o ? null : _.current,
464
464
  center: a
@@ -480,9 +480,9 @@ var Bt = ze("span", {
480
480
  rippleSize: l,
481
481
  cb: n
482
482
  });
483
- }), S = P(() => {
484
- b(jt, { pulsate: !0 });
485
- }), C = P((e, t) => {
483
+ }), S = I(() => {
484
+ b(kt, { pulsate: !0 });
485
+ }), C = I((e, t) => {
486
486
  if (h.clear(), e?.type === "touchend" && g.current) {
487
487
  g.current(), g.current = null, h.start(0, () => {
488
488
  C(e, t);
@@ -498,11 +498,11 @@ var Bt = ze("span", {
498
498
  exiting: !0
499
499
  }, {
500
500
  items: n,
501
- order: Pt(e.order, n.filter((e) => !e.exiting).map((e) => e.key))
501
+ order: Mt(e.order, n.filter((e) => !e.exiting).map((e) => e.key))
502
502
  };
503
503
  }), f.current = t;
504
504
  });
505
- N.useImperativeHandle(t, () => ({
505
+ F.useImperativeHandle(t, () => ({
506
506
  pulsate: S,
507
507
  start: b,
508
508
  stop: C
@@ -512,20 +512,20 @@ var Bt = ze("span", {
512
512
  C
513
513
  ]);
514
514
  let w = new Map(u.map((e) => [e.key, e])), T = c.order.map((e) => w.get(e)).filter(Boolean);
515
- return /*#__PURE__*/ (0, M.jsx)(Bt, {
516
- className: x(F.root, a.root, o),
515
+ return /*#__PURE__*/ (0, P.jsx)(Rt, {
516
+ className: x(L.root, a.root, o),
517
517
  ref: _,
518
518
  ...s,
519
- children: T.map((e) => /*#__PURE__*/ (0, M.jsx)(Vt, {
519
+ children: T.map((e) => /*#__PURE__*/ (0, P.jsx)(zt, {
520
520
  classes: {
521
- ripple: x(a.ripple, F.ripple),
522
- rippleVisible: x(a.rippleVisible, F.rippleVisible),
523
- ripplePulsate: x(a.ripplePulsate, F.ripplePulsate),
524
- child: x(a.child, F.child),
525
- childLeaving: x(a.childLeaving, F.childLeaving),
526
- childPulsate: x(a.childPulsate, F.childPulsate)
521
+ ripple: x(a.ripple, L.ripple),
522
+ rippleVisible: x(a.rippleVisible, L.rippleVisible),
523
+ ripplePulsate: x(a.ripplePulsate, L.ripplePulsate),
524
+ child: x(a.child, L.child),
525
+ childLeaving: x(a.childLeaving, L.childLeaving),
526
+ childPulsate: x(a.childPulsate, L.childPulsate)
527
527
  },
528
- timeout: r.shouldReduceMotion ? 0 : At,
528
+ timeout: r.shouldReduceMotion ? 0 : Ot,
529
529
  pulsate: e.pulsate,
530
530
  rippleX: e.rippleX,
531
531
  rippleY: e.rippleY,
@@ -535,24 +535,24 @@ var Bt = ze("span", {
535
535
  }, e.key))
536
536
  });
537
537
  });
538
- function Ut(e) {
539
- return we("MuiButtonBase", e);
538
+ function Vt(e) {
539
+ return Se("MuiButtonBase", e);
540
540
  }
541
- var Wt = Se("MuiButtonBase", [
541
+ var Ht = be("MuiButtonBase", [
542
542
  "root",
543
543
  "disabled",
544
544
  "focusVisible"
545
- ]), Gt = (e) => {
546
- let { disabled: t, focusVisible: n, focusVisibleClassName: r, suppressFocusVisible: i, classes: a } = e, o = Ce({ root: [
545
+ ]), Ut = (e) => {
546
+ let { disabled: t, focusVisible: n, focusVisibleClassName: r, suppressFocusVisible: i, classes: a } = e, o = xe({ root: [
547
547
  "root",
548
548
  t && "disabled",
549
549
  n && !i && "focusVisible"
550
- ] }, Ut, a);
550
+ ] }, Vt, a);
551
551
  return n && !i && r && (o.root += ` ${r}`), o;
552
- }, Kt = ze("button", {
552
+ }, Wt = Le("button", {
553
553
  name: "MuiButtonBase",
554
554
  slot: "Root"
555
- })(He(({ theme: e }) => ({
555
+ })(Be(({ theme: e }) => ({
556
556
  display: "inline-flex",
557
557
  alignItems: "center",
558
558
  justifyContent: "center",
@@ -573,7 +573,7 @@ var Wt = Se("MuiButtonBase", [
573
573
  textDecoration: "none",
574
574
  color: "inherit",
575
575
  "&::-moz-focus-inner": { borderStyle: "none" },
576
- [`&.${Wt.disabled}`]: {
576
+ [`&.${Ht.disabled}`]: {
577
577
  pointerEvents: "none",
578
578
  cursor: "default"
579
579
  },
@@ -581,63 +581,63 @@ var Wt = Se("MuiButtonBase", [
581
581
  variants: [{
582
582
  props: { internalDisabledThemeFocusVisible: !1 },
583
583
  style: e.focusVisible && {
584
- ...qe,
585
- [`&.${Wt.focusVisible}`]: e.focusVisible
584
+ ...Ge,
585
+ [`&.${Ht.focusVisible}`]: e.focusVisible
586
586
  }
587
587
  }]
588
- }))), qt = /*#__PURE__*/ N.forwardRef(function(e, t) {
589
- let n = Ke({
588
+ }))), Gt = /*#__PURE__*/ F.forwardRef(function(e, t) {
589
+ let n = We({
590
590
  props: e,
591
591
  name: "MuiButtonBase"
592
- }), { action: r, centerRipple: i = !1, children: a, className: o, component: s = "button", disabled: c = !1, disableRipple: l = !1, disableTouchRipple: u = !1, focusRipple: d = !1, focusVisibleClassName: f, focusableWhenDisabled: p, suppressFocusVisible: m = !1, internalNativeButton: h, internalDisabledThemeFocusVisible: g = !1, LinkComponent: _ = "a", nativeButton: v, onBlur: y, onClick: b, onContextMenu: S, onDragLeave: C, onFocus: w, onFocusVisible: T, onKeyDown: E, onKeyUp: ee, onMouseDown: te, onMouseLeave: D, onMouseUp: ne, onTouchEnd: re, onTouchMove: ie, onTouchStart: ae, tabIndex: oe = 0, TouchRippleProps: se, touchRippleRef: ce, type: le, ...ue } = n, de = !!(ue.href || ue.to), fe = !!ue.formAction, O = s;
593
- O === "button" && de && (O = _);
594
- let pe = typeof O == "string" ? O === "button" : h ?? !1, me = v ?? pe, k = Dt(), he = ct(k.ref, ce), [A, j] = N.useState(!1);
595
- (c || m) && A && j(!1);
596
- let ge = P((e) => {
597
- d && !e.repeat && A && e.key === " " && k.stop(e, () => {
598
- k.start(e);
592
+ }), { action: r, centerRipple: i = !1, children: a, className: o, component: s = "button", disabled: c = !1, disableRipple: l = !1, disableTouchRipple: u = !1, focusRipple: d = !1, focusVisibleClassName: f, focusableWhenDisabled: p, suppressFocusVisible: m = !1, internalNativeButton: h, internalDisabledThemeFocusVisible: g = !1, LinkComponent: _ = "a", nativeButton: v, onBlur: y, onClick: b, onContextMenu: S, onDragLeave: C, onFocus: w, onFocusVisible: T, onKeyDown: E, onKeyUp: D, onMouseDown: ee, onMouseLeave: O, onMouseUp: te, onTouchEnd: ne, onTouchMove: re, onTouchStart: ie, tabIndex: k = 0, TouchRippleProps: ae, touchRippleRef: oe, type: se, ...ce } = n, A = !!(ce.href || ce.to), le = !!ce.formAction, j = s;
593
+ j === "button" && A && (j = _);
594
+ let ue = typeof j == "string" ? j === "button" : h ?? !1, de = v ?? ue, M = Tt(), fe = ot(M.ref, oe), [N, pe] = F.useState(!1);
595
+ (c || m) && N && pe(!1);
596
+ let me = I((e) => {
597
+ d && !e.repeat && N && e.key === " " && M.stop(e, () => {
598
+ M.start(e);
599
599
  });
600
- }), _e = P((e) => {
601
- d && e.key === " " && A && !e.defaultPrevented && k.stop(e, () => {
602
- k.pulsate(e);
600
+ }), he = I((e) => {
601
+ d && e.key === " " && N && !e.defaultPrevented && M.stop(e, () => {
602
+ M.pulsate(e);
603
603
  });
604
- }), { getButtonProps: ve, rootRef: ye } = Tt({
605
- nativeButton: me,
604
+ }), { getButtonProps: ge, rootRef: _e } = Ct({
605
+ nativeButton: de,
606
606
  nativeButtonProp: v,
607
- internalNativeButton: pe,
608
- allowInferredHostMismatch: de || typeof O == "string",
607
+ internalNativeButton: ue,
608
+ allowInferredHostMismatch: A || typeof j == "string",
609
609
  disabled: c,
610
- type: le,
611
- hasFormAction: fe,
612
- tabIndex: oe,
613
- onBeforeKeyDown: ge,
614
- onBeforeKeyUp: _e
615
- }), { onClick: be, onKeyDown: xe, onKeyUp: Se, ...Ce } = ve({
610
+ type: se,
611
+ hasFormAction: le,
612
+ tabIndex: k,
613
+ onBeforeKeyDown: me,
614
+ onBeforeKeyUp: he
615
+ }), { onClick: ve, onKeyDown: ye, onKeyUp: be, ...xe } = ge({
616
616
  onClick: b,
617
617
  onKeyDown: E,
618
- onKeyUp: ee
618
+ onKeyUp: D
619
619
  });
620
- N.useImperativeHandle(r, () => ({ focusVisible: () => {
621
- j(!0), ye.current.focus();
622
- } }), [ye]);
623
- let we = k.shouldMount && !l && !c;
624
- N.useEffect(() => {
625
- A && d && !l && k.pulsate();
620
+ F.useImperativeHandle(r, () => ({ focusVisible: () => {
621
+ pe(!0), _e.current.focus();
622
+ } }), [_e]);
623
+ let Se = M.shouldMount && !l && !c;
624
+ F.useEffect(() => {
625
+ N && d && !l && M.pulsate();
626
626
  }, [
627
627
  l,
628
628
  d,
629
- A,
630
- k
629
+ N,
630
+ M
631
631
  ]);
632
- let Te = I(k, "start", te, u), De = I(k, "stop", S, u), Oe = I(k, "stop", C, u), ke = I(k, "stop", ne, u), Ae = I(k, "stop", (e) => {
633
- A && e.preventDefault(), D && D(e);
634
- }, u), je = I(k, "start", ae, u), Me = I(k, "stop", re, u), Ne = I(k, "stop", ie, u), Pe = I(k, "stop", (e) => {
635
- Ee(e.target) || j(!1), y && y(e);
636
- }, !1), Fe = P((e) => {
637
- ye.current ||= e.currentTarget, !m && Ee(e.target) && (j(!0), T && T(e)), w && w(e);
638
- }), Ie = {};
639
- de && (Ie.tabIndex = c ? -1 : oe, c && (Ie["aria-disabled"] = c), Ie.type = le);
640
- let Le = ct(t, ye), Re = {
632
+ let Ce = R(M, "start", ee, u), Te = R(M, "stop", S, u), Ee = R(M, "stop", C, u), De = R(M, "stop", te, u), Oe = R(M, "stop", (e) => {
633
+ N && e.preventDefault(), O && O(e);
634
+ }, u), ke = R(M, "start", ie, u), Ae = R(M, "stop", ne, u), je = R(M, "stop", re, u), Me = R(M, "stop", (e) => {
635
+ we(e.target) || pe(!1), y && y(e);
636
+ }, !1), Ne = I((e) => {
637
+ _e.current ||= e.currentTarget, !m && we(e.target) && (pe(!0), T && T(e)), w && w(e);
638
+ }), Pe = {};
639
+ A && (Pe.tabIndex = c ? -1 : k, c && (Pe["aria-disabled"] = c), Pe.type = se);
640
+ let Fe = ot(t, _e), Ie = {
641
641
  ...n,
642
642
  centerRipple: i,
643
643
  component: s,
@@ -646,80 +646,80 @@ var Wt = Se("MuiButtonBase", [
646
646
  disableTouchRipple: u,
647
647
  focusRipple: d,
648
648
  suppressFocusVisible: m,
649
- tabIndex: oe,
650
- focusVisible: A,
649
+ tabIndex: k,
650
+ focusVisible: N,
651
651
  internalDisabledThemeFocusVisible: g
652
- }, ze = Gt(Re);
653
- return /*#__PURE__*/ (0, M.jsxs)(Kt, {
654
- as: O,
655
- className: x(ze.root, o),
656
- ownerState: Re,
657
- onBlur: Pe,
658
- onClick: be,
659
- onContextMenu: De,
660
- onFocus: Fe,
661
- onKeyDown: xe,
662
- onKeyUp: Se,
663
- onMouseDown: Te,
664
- onMouseLeave: Ae,
665
- onMouseUp: ke,
666
- onDragLeave: Oe,
667
- onTouchEnd: Me,
668
- onTouchMove: Ne,
669
- onTouchStart: je,
670
- ref: Le,
671
- ...de ? Ie : Ce,
672
- ...ue,
673
- children: [a, we ? /*#__PURE__*/ (0, M.jsx)(Ht, {
674
- ref: he,
652
+ }, Le = Ut(Ie);
653
+ return /*#__PURE__*/ (0, P.jsxs)(Wt, {
654
+ as: j,
655
+ className: x(Le.root, o),
656
+ ownerState: Ie,
657
+ onBlur: Me,
658
+ onClick: ve,
659
+ onContextMenu: Te,
660
+ onFocus: Ne,
661
+ onKeyDown: ye,
662
+ onKeyUp: be,
663
+ onMouseDown: Ce,
664
+ onMouseLeave: Oe,
665
+ onMouseUp: De,
666
+ onDragLeave: Ee,
667
+ onTouchEnd: Ae,
668
+ onTouchMove: je,
669
+ onTouchStart: ke,
670
+ ref: Fe,
671
+ ...A ? Pe : xe,
672
+ ...ce,
673
+ children: [a, Se ? /*#__PURE__*/ (0, P.jsx)(Bt, {
674
+ ref: fe,
675
675
  center: i,
676
- ...se
676
+ ...ae
677
677
  }) : null]
678
678
  });
679
679
  });
680
- function I(e, t, n, r = !1) {
681
- return P((i) => (n && n(i), r || e[t](i), !0));
680
+ function R(e, t, n, r = !1) {
681
+ return I((i) => (n && n(i), r || e[t](i), !0));
682
682
  }
683
- var Jt = /*#__PURE__*/ N.createContext({}), Yt = /*#__PURE__*/ N.createContext(void 0);
684
- function Xt(e, t) {
683
+ var Kt = /*#__PURE__*/ F.createContext({}), qt = /*#__PURE__*/ F.createContext(void 0);
684
+ function Jt(e, t) {
685
685
  return t === void 0 || e === void 0 ? !1 : Array.isArray(t) ? t.includes(e) : e === t;
686
686
  }
687
- function Zt(e, t) {
688
- let { children: n, disabled: r = !1, selected: i = !1, value: a } = e, o = ye(), s = ve({
687
+ function Yt(e, t) {
688
+ let { children: n, disabled: r = !1, selected: i = !1, value: a } = e, o = _e(), s = ge({
689
689
  id: a,
690
690
  ref: t,
691
691
  disabled: r,
692
692
  selected: i
693
693
  }), c = o.getItemMap().size === 0 && i ? 0 : s.tabIndex;
694
- return /*#__PURE__*/ N.cloneElement(N.Children.only(n), {
694
+ return /*#__PURE__*/ F.cloneElement(F.Children.only(n), {
695
695
  ...s,
696
696
  tabIndex: n.props.tabIndex ?? c
697
697
  });
698
698
  }
699
- var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
699
+ var Xt = /*#__PURE__*/ F.forwardRef(Yt), Zt = (e) => {
700
700
  let { classes: t, fullWidth: n, selected: r, disabled: i, size: a, color: o } = e;
701
- return Ce({ root: [
701
+ return xe({ root: [
702
702
  "root",
703
703
  r && "selected",
704
704
  i && "disabled",
705
705
  n && "fullWidth",
706
- `size${We(a)}`,
706
+ `size${He(a)}`,
707
707
  o
708
- ] }, lt, t);
709
- }, en = ze(qt, {
708
+ ] }, st, t);
709
+ }, Qt = Le(Gt, {
710
710
  name: "MuiToggleButton",
711
711
  slot: "Root",
712
712
  overridesResolver: (e, t) => {
713
713
  let { ownerState: n } = e;
714
- return [t.root, t[`size${We(n.size)}`]];
714
+ return [t.root, t[`size${He(n.size)}`]];
715
715
  }
716
- })(He(({ theme: e }) => ({
716
+ })(Be(({ theme: e }) => ({
717
717
  ...e.typography.button,
718
718
  borderRadius: (e.vars || e).shape.borderRadius,
719
719
  padding: 11,
720
720
  border: `1px solid ${(e.vars || e).palette.divider}`,
721
721
  color: (e.vars || e).palette.action.active,
722
- [`&.${ut.disabled}`]: {
722
+ [`&.${ct.disabled}`]: {
723
723
  color: (e.vars || e).palette.action.disabled,
724
724
  border: `1px solid ${(e.vars || e).palette.action.disabledBackground}`
725
725
  },
@@ -731,7 +731,7 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
731
731
  variants: [
732
732
  {
733
733
  props: { color: "standard" },
734
- style: { [`&.${ut.selected}`]: {
734
+ style: { [`&.${ct.selected}`]: {
735
735
  color: (e.vars || e).palette.text.primary,
736
736
  backgroundColor: e.alpha((e.vars || e).palette.text.primary, (e.vars || e).palette.action.selectedOpacity),
737
737
  "&:hover": {
@@ -740,9 +740,9 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
740
740
  }
741
741
  } }
742
742
  },
743
- ...Object.entries(e.palette).filter(Je()).map(([t]) => ({
743
+ ...Object.entries(e.palette).filter(Ke()).map(([t]) => ({
744
744
  props: { color: t },
745
- style: { [`&.${ut.selected}`]: {
745
+ style: { [`&.${ct.selected}`]: {
746
746
  color: (e.vars || e).palette[t].main,
747
747
  backgroundColor: e.alpha((e.vars || e).palette[t].main, (e.vars || e).palette.action.selectedOpacity),
748
748
  "&:hover": {
@@ -770,11 +770,11 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
770
770
  }
771
771
  }
772
772
  ]
773
- }))), tn = /*#__PURE__*/ N.forwardRef(function(e, t) {
774
- let { value: n, isRovingTabIndex: r, ...i } = N.useContext(Jt), a = N.useContext(Yt), o = Ke({
775
- props: ee({
773
+ }))), $t = /*#__PURE__*/ F.forwardRef(function(e, t) {
774
+ let { value: n, isRovingTabIndex: r, ...i } = F.useContext(Kt), a = F.useContext(qt), o = We({
775
+ props: T({
776
776
  ...i,
777
- selected: Xt(e.value, n)
777
+ selected: Jt(e.value, n)
778
778
  }, e),
779
779
  name: "MuiToggleButton"
780
780
  }), { children: s, className: c, color: l = "standard", disabled: u = !1, disableFocusRipple: d = !1, fullWidth: f = !1, onChange: p, onClick: m, selected: h, size: g = "medium", value: _, ...v } = o, y = {
@@ -784,9 +784,9 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
784
784
  disableFocusRipple: d,
785
785
  fullWidth: f,
786
786
  size: g
787
- }, b = $t(y), S = (e) => {
787
+ }, b = Zt(y), S = (e) => {
788
788
  m && (m(e, _), e.defaultPrevented) || p && p(e, _);
789
- }, C = a || "", w = /*#__PURE__*/ (0, M.jsx)(en, {
789
+ }, C = a || "", w = /*#__PURE__*/ (0, P.jsx)(Qt, {
790
790
  className: x(i.className, b.root, c, C),
791
791
  internalNativeButton: !0,
792
792
  disabled: u,
@@ -800,23 +800,23 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
800
800
  ...v,
801
801
  children: s
802
802
  });
803
- return r ? /*#__PURE__*/ (0, M.jsx)(Qt, {
803
+ return r ? /*#__PURE__*/ (0, P.jsx)(Xt, {
804
804
  disabled: u,
805
805
  selected: h,
806
806
  ref: t,
807
807
  value: _,
808
808
  children: w
809
809
  }) : w;
810
- }), nn = ({ vTheme: e, vSpec: t, id: n, layout: r }) => {
811
- let a = e?.fonts?.general.fontFamily ?? "Roboto", o = {
812
- ...u,
810
+ }), en = ({ vTheme: e, vSpec: t, id: n, layout: r }) => {
811
+ let i = e?.fonts?.general.fontFamily ?? "Roboto", o = {
812
+ ...l,
813
813
  ...t.treeChartSettings?.nodeLayout?.border
814
814
  };
815
815
  o.enabled === !1 && (o.borderWidth = 0);
816
816
  let s = {
817
- ...f,
817
+ ...u,
818
818
  ...t.treeChartSettings?.nodeLayout.hoverStyle
819
- }, c = t.treeChartSettings?.nodeLayout?.backgroundColor ?? l.backgroundColor, d = new be(c).isLight() ? i.grey1 : i.grey5;
819
+ }, c = t.treeChartSettings?.nodeLayout?.backgroundColor ?? d.backgroundColor, f = new ve(c).isLight() ? a.grey1 : a.grey5;
820
820
  return `
821
821
  #${n} {
822
822
  &[data-mode="view"] .tree-toolbar {
@@ -826,20 +826,20 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
826
826
  display: flex;
827
827
  }
828
828
 
829
- --link-color: ${i.grey3};
829
+ --link-color: ${a.grey3};
830
830
 
831
831
  --border-color: ${o.borderColor};
832
832
  --border-width: ${o.borderWidth}px;
833
- --border-color-edit: ${i.secondaryPurple};
833
+ --border-color-edit: ${a.secondaryPurple};
834
834
  --border-radius: ${o.borderRadius}px;
835
- --border-color-selected: ${i.grey2};
835
+ --border-color-selected: ${a.grey2};
836
836
 
837
837
  --border-hover-width: ${s.borderWidth}px;
838
838
  --border-hover-color: ${s.borderColor || o.borderColor};
839
839
 
840
840
  --node-background: ${c};
841
- --node-background-highlight: ${i.grey2};
842
- --font-color: ${d};
841
+ --node-background-highlight: ${a.grey2};
842
+ --font-color: ${f};
843
843
 
844
844
  .links-wrapper path {
845
845
  stroke: var(--link-color);
@@ -872,7 +872,7 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
872
872
  background-color: var(--node-background);
873
873
  }
874
874
  &:hover .button-content {
875
- background-color: ${i.grey5};
875
+ background-color: ${a.grey5};
876
876
  }
877
877
  }
878
878
 
@@ -890,7 +890,7 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
890
890
  .node-content {
891
891
  color: var(--font-color);
892
892
  font-size: 12px;
893
- font-family: ${a}, sans-serif;
893
+ font-family: ${i}, sans-serif;
894
894
  width: 100%;
895
895
  height: 100%;
896
896
  border: var(--border-width) solid var(--border-color);
@@ -928,7 +928,7 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
928
928
  }
929
929
 
930
930
  .dragging-active .drop-target .node-content::after {
931
- background-color: ${i.feedbackBlue};
931
+ background-color: ${a.feedbackBlue};
932
932
  opacity: 1;
933
933
  }
934
934
 
@@ -947,7 +947,7 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
947
947
  width: 100%;
948
948
  height: 100%;
949
949
  border-radius: var(--border-radius);
950
- background-color: ${i.grey2};
950
+ background-color: ${a.grey2};
951
951
  opacity: 0.2;
952
952
  }
953
953
  .node-excluded .node-foreign-object-div {
@@ -956,26 +956,26 @@ var Qt = /*#__PURE__*/ N.forwardRef(Zt), $t = (e) => {
956
956
  }
957
957
 
958
958
  ${r.getCSS(n, t)}`;
959
- }, rn = { depth: -1 }, an = {}, on = {};
960
- function sn(e) {
959
+ }, tn = { depth: -1 }, nn = {}, rn = {};
960
+ function an(e) {
961
961
  return e.id;
962
962
  }
963
- function cn(e) {
963
+ function on(e) {
964
964
  return e.parentId;
965
965
  }
966
- function ln() {
967
- var e = sn, t = cn, n;
966
+ function sn() {
967
+ var e = an, t = on, n;
968
968
  function r(r) {
969
969
  var i = Array.from(r), a = e, o = t, s, c, l, u, d, f, p, m, h = /* @__PURE__ */ new Map();
970
970
  if (n != null) {
971
- let e = i.map((e, t) => un(n(e, t, r))), t = e.map(dn), s = new Set(e).add("");
972
- for (let n of t) s.has(n) || (s.add(n), e.push(n), t.push(dn(n)), i.push(on));
971
+ let e = i.map((e, t) => cn(n(e, t, r))), t = e.map(ln), s = new Set(e).add("");
972
+ for (let n of t) s.has(n) || (s.add(n), e.push(n), t.push(ln(n)), i.push(rn));
973
973
  a = (t, n) => e[n], o = (e, n) => t[n];
974
974
  }
975
- for (l = 0, s = i.length; l < s; ++l) c = i[l], f = i[l] = new Qe(c), (p = a(c, l, r)) != null && (p += "") && (m = f.id = p, h.set(m, h.has(m) ? an : f)), (p = o(c, l, r)) != null && (p += "") && (f.parent = p);
975
+ for (l = 0, s = i.length; l < s; ++l) c = i[l], f = i[l] = new Xe(c), (p = a(c, l, r)) != null && (p += "") && (m = f.id = p, h.set(m, h.has(m) ? nn : f)), (p = o(c, l, r)) != null && (p += "") && (f.parent = p);
976
976
  for (l = 0; l < s; ++l) if (f = i[l], p = f.parent) {
977
977
  if (d = h.get(p), !d) throw Error("missing: " + p);
978
- if (d === an) throw Error("ambiguous: " + p);
978
+ if (d === nn) throw Error("ambiguous: " + p);
979
979
  d.children ? d.children.push(f) : d.children = [f], f.parent = d;
980
980
  } else {
981
981
  if (u) throw Error("multiple roots");
@@ -983,34 +983,34 @@ function ln() {
983
983
  }
984
984
  if (!u) throw Error("no root");
985
985
  if (n != null) {
986
- for (; u.data === on && u.children.length === 1;) u = u.children[0], --s;
987
- for (let e = i.length - 1; e >= 0 && (f = i[e], f.data === on); --e) f.data = null;
986
+ for (; u.data === rn && u.children.length === 1;) u = u.children[0], --s;
987
+ for (let e = i.length - 1; e >= 0 && (f = i[e], f.data === rn); --e) f.data = null;
988
988
  }
989
- if (u.parent = rn, u.eachBefore(function(e) {
989
+ if (u.parent = tn, u.eachBefore(function(e) {
990
990
  e.depth = e.parent.depth + 1, --s;
991
- }).eachBefore(Ze), u.parent = null, s > 0) throw Error("cycle");
991
+ }).eachBefore(Ye), u.parent = null, s > 0) throw Error("cycle");
992
992
  return u;
993
993
  }
994
994
  return r.id = function(t) {
995
- return arguments.length ? (e = $e(t), r) : e;
995
+ return arguments.length ? (e = Ze(t), r) : e;
996
996
  }, r.parentId = function(e) {
997
- return arguments.length ? (t = $e(e), r) : t;
997
+ return arguments.length ? (t = Ze(e), r) : t;
998
998
  }, r.path = function(e) {
999
- return arguments.length ? (n = $e(e), r) : n;
999
+ return arguments.length ? (n = Ze(e), r) : n;
1000
1000
  }, r;
1001
1001
  }
1002
- function un(e) {
1002
+ function cn(e) {
1003
1003
  e = `${e}`;
1004
1004
  let t = e.length;
1005
- return fn(e, t - 1) && !fn(e, t - 2) && (e = e.slice(0, -1)), e[0] === "/" ? e : `/${e}`;
1005
+ return un(e, t - 1) && !un(e, t - 2) && (e = e.slice(0, -1)), e[0] === "/" ? e : `/${e}`;
1006
1006
  }
1007
- function dn(e) {
1007
+ function ln(e) {
1008
1008
  let t = e.length;
1009
1009
  if (t < 2) return "";
1010
- for (; --t > 1 && !fn(e, t););
1010
+ for (; --t > 1 && !un(e, t););
1011
1011
  return e.slice(0, t);
1012
1012
  }
1013
- function fn(e, t) {
1013
+ function un(e, t) {
1014
1014
  if (e[t] === "/") {
1015
1015
  let n = 0;
1016
1016
  for (; t > 0 && e[--t] === "\\";) ++n;
@@ -1018,39 +1018,39 @@ function fn(e, t) {
1018
1018
  }
1019
1019
  return !1;
1020
1020
  }
1021
- function pn(e, t) {
1021
+ function dn(e, t) {
1022
1022
  return e.parent === t.parent ? 1 : 2;
1023
1023
  }
1024
- function mn(e) {
1024
+ function fn(e) {
1025
1025
  var t = e.children;
1026
1026
  return t ? t[0] : e.t;
1027
1027
  }
1028
- function hn(e) {
1028
+ function pn(e) {
1029
1029
  var t = e.children;
1030
1030
  return t ? t[t.length - 1] : e.t;
1031
1031
  }
1032
- function gn(e, t, n) {
1032
+ function mn(e, t, n) {
1033
1033
  var r = n / (t.i - e.i);
1034
1034
  t.c -= r, t.s += n, e.c += r, t.z += n, t.m += n;
1035
1035
  }
1036
- function _n(e) {
1036
+ function hn(e) {
1037
1037
  for (var t = 0, n = 0, r = e.children, i = r.length, a; --i >= 0;) a = r[i], a.z += t, a.m += t, t += a.s + (n += a.c);
1038
1038
  }
1039
- function vn(e, t, n) {
1039
+ function gn(e, t, n) {
1040
1040
  return e.a.parent === t.parent ? e.a : n;
1041
1041
  }
1042
- function yn(e, t) {
1042
+ function _n(e, t) {
1043
1043
  this._ = e, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
1044
1044
  }
1045
- yn.prototype = Object.create(Qe.prototype);
1046
- function bn(e) {
1047
- for (var t = new yn(e, 0), n, r = [t], i, a, o, s; n = r.pop();) if (a = n._.children) for (n.children = Array(s = a.length), o = s - 1; o >= 0; --o) r.push(i = n.children[o] = new yn(a[o], o)), i.parent = n;
1048
- return (t.parent = new yn(null, 0)).children = [t], t;
1045
+ _n.prototype = Object.create(Xe.prototype);
1046
+ function vn(e) {
1047
+ for (var t = new _n(e, 0), n, r = [t], i, a, o, s; n = r.pop();) if (a = n._.children) for (n.children = Array(s = a.length), o = s - 1; o >= 0; --o) r.push(i = n.children[o] = new _n(a[o], o)), i.parent = n;
1048
+ return (t.parent = new _n(null, 0)).children = [t], t;
1049
1049
  }
1050
- function xn() {
1051
- var e = pn, t = 1, n = 1, r = null;
1050
+ function yn() {
1051
+ var e = dn, t = 1, n = 1, r = null;
1052
1052
  function i(i) {
1053
- var s = bn(i);
1053
+ var s = vn(i);
1054
1054
  if (s.eachAfter(a), s.parent.m = -s.z, s.eachBefore(o), r) i.eachBefore(c);
1055
1055
  else {
1056
1056
  var l = i, u = i, d = i;
@@ -1067,7 +1067,7 @@ function xn() {
1067
1067
  function a(t) {
1068
1068
  var n = t.children, r = t.parent.children, i = t.i ? r[t.i - 1] : null;
1069
1069
  if (n) {
1070
- _n(t);
1070
+ hn(t);
1071
1071
  var a = (n[0].z + n[n.length - 1].z) / 2;
1072
1072
  i ? (t.z = i.z + e(t._, i._), t.m = t.z - a) : t.z = a;
1073
1073
  } else i && (t.z = i.z + e(t._, i._));
@@ -1078,8 +1078,8 @@ function xn() {
1078
1078
  }
1079
1079
  function s(t, n, r) {
1080
1080
  if (n) {
1081
- for (var i = t, a = t, o = n, s = i.parent.children[0], c = i.m, l = a.m, u = o.m, d = s.m, f; o = hn(o), i = mn(i), o && i;) s = mn(s), a = hn(a), a.a = t, f = o.z + u - i.z - c + e(o._, i._), f > 0 && (gn(vn(o, t, r), t, f), c += f, l += f), u += o.m, c += i.m, d += s.m, l += a.m;
1082
- o && !hn(a) && (a.t = o, a.m += u - l), i && !mn(s) && (s.t = i, s.m += c - d, r = t);
1081
+ for (var i = t, a = t, o = n, s = i.parent.children[0], c = i.m, l = a.m, u = o.m, d = s.m, f; o = pn(o), i = fn(i), o && i;) s = fn(s), a = pn(a), a.a = t, f = o.z + u - i.z - c + e(o._, i._), f > 0 && (mn(gn(o, t, r), t, f), c += f, l += f), u += o.m, c += i.m, d += s.m, l += a.m;
1082
+ o && !pn(a) && (a.t = o, a.m += u - l), i && !fn(s) && (s.t = i, s.m += c - d, r = t);
1083
1083
  }
1084
1084
  return r;
1085
1085
  }
@@ -1094,14 +1094,14 @@ function xn() {
1094
1094
  return arguments.length ? (r = !0, t = +e[0], n = +e[1], i) : r ? [t, n] : null;
1095
1095
  }, i;
1096
1096
  }
1097
- var L = "__root__", Sn = "__total__", Cn = (e) => `__dimension__${JSON.stringify(e)}`, wn = (e, t) => {
1097
+ var z = "__root__", bn = "__total__", xn = (e) => `__dimension__${JSON.stringify(e)}`, Sn = (e, t) => {
1098
1098
  let n = e[t];
1099
1099
  return n == null ? ["nil"] : [
1100
1100
  "value",
1101
1101
  typeof n,
1102
1102
  n
1103
1103
  ];
1104
- }, Tn = (e, t) => {
1104
+ }, Cn = (e, t) => {
1105
1105
  if (t?.indicator !== "custom") return;
1106
1106
  let n = t?.indicatorThreshold;
1107
1107
  if (!n || e == null) return {
@@ -1127,7 +1127,7 @@ var L = "__root__", Sn = "__total__", Cn = (e) => `__dimension__${JSON.stringify
1127
1127
  color: null,
1128
1128
  icon: void 0
1129
1129
  };
1130
- }, En = (e, t, r, i) => {
1130
+ }, wn = (e, t, r, i) => {
1131
1131
  let a = {};
1132
1132
  return e.slots?.forEach((r) => {
1133
1133
  if (r.key === "main") return;
@@ -1143,48 +1143,48 @@ var L = "__root__", Sn = "__total__", Cn = (e) => `__dimension__${JSON.stringify
1143
1143
  let s = i?.find((t) => t.parentId === e.dataItem.uniqueSignature && t.role === `tree-${r.key}`);
1144
1144
  if (s) {
1145
1145
  let e = n(s.dataItem);
1146
- s.formatter && (a = s.formatter), e && (o.value = t?.[e], o.label = o.value === null ? "-" : m(a?.format, o.value) ?? "-");
1146
+ s.formatter && (a = s.formatter), e && (o.value = t?.[e], o.label = o.value === null ? "-" : g(a?.format, o.value) ?? "-");
1147
1147
  }
1148
- } else r.source === "variable" && (o.value = r.propertyValue, o.label = o.value === null ? "-" : m(a?.format, o.value) ?? "-");
1149
- o.customIndicator = Tn(o.value, r);
1148
+ } else r.source === "variable" && (o.value = r.propertyValue, o.label = o.value === null ? "-" : g(a?.format, o.value) ?? "-");
1149
+ o.customIndicator = Cn(o.value, r);
1150
1150
  }
1151
1151
  a[r.key] = { ...o };
1152
1152
  }), a;
1153
- }, Dn = (e, t, n, r = !1) => {
1153
+ }, Tn = (e, t, n, r = !1) => {
1154
1154
  if (n === 0 || e.data.id === "__total__") return !0;
1155
1155
  let i = t ?? 2;
1156
1156
  return e.depth - +!!r < i;
1157
- }, On = (e, t, r) => {
1157
+ }, En = (e, t, r) => {
1158
1158
  let i = [{
1159
- id: L,
1159
+ id: z,
1160
1160
  parentId: null,
1161
1161
  disabled: !1
1162
- }], o = /* @__PURE__ */ new Set();
1162
+ }], a = /* @__PURE__ */ new Set();
1163
1163
  e.measures.forEach((e) => {
1164
- o.add(e.dataItem.uniqueSignature);
1164
+ a.add(e.dataItem.uniqueSignature);
1165
1165
  });
1166
- let s = e.measures.filter((e) => a(e));
1166
+ let o = e.measures.filter((e) => p(e));
1167
1167
  e.measures.forEach((e) => {
1168
- let t = e.dataItem.uniqueSignature, n = e.parentId && o.has(e.parentId) ? e.parentId : L;
1168
+ let t = e.dataItem.uniqueSignature, n = e.parentId && a.has(e.parentId) ? e.parentId : z;
1169
1169
  i.push({
1170
1170
  id: t,
1171
1171
  parentId: n,
1172
- disabled: !a(e)
1172
+ disabled: !p(e)
1173
1173
  });
1174
1174
  });
1175
- let c = ln().id((e) => e.id).parentId((e) => e.parentId)(i), l = [];
1176
- c.descendants().forEach((e) => {
1175
+ let s = sn().id((e) => e.id).parentId((e) => e.parentId)(i), c = [];
1176
+ s.descendants().forEach((e) => {
1177
1177
  if (e.data.disabled) return;
1178
1178
  let t = e.ancestors().slice(1).find((e) => !e.data.disabled);
1179
- t ? l.push({
1179
+ t ? c.push({
1180
1180
  id: e.data.id,
1181
1181
  parentId: t.data.id
1182
- }) : l.push({
1182
+ }) : c.push({
1183
1183
  id: e.data.id,
1184
1184
  parentId: null
1185
1185
  });
1186
1186
  });
1187
- let u = l.flatMap((r) => {
1187
+ let l = c.flatMap((r) => {
1188
1188
  if (r.id === "__root__") return [{
1189
1189
  id: r.id,
1190
1190
  parentId: null,
@@ -1194,128 +1194,128 @@ var L = "__root__", Sn = "__total__", Cn = (e) => `__dimension__${JSON.stringify
1194
1194
  value: null
1195
1195
  }
1196
1196
  }];
1197
- let i = s.find((e) => e.dataItem.uniqueSignature === r.id);
1197
+ let i = o.find((e) => e.dataItem.uniqueSignature === r.id);
1198
1198
  if (!i) return [];
1199
- let a = n(i.dataItem), o = t[0].items?.[0], c = i ? En(i, o, s, e.supportingMeasures) : {}, l = o?.[a], u = i?.slots?.find((e) => e.key === "main");
1199
+ let a = n(i.dataItem), s = t[0].items?.[0], c = i ? wn(i, s, o, e.supportingMeasures) : {}, l = s?.[a], u = i?.slots?.find((e) => e.key === "main");
1200
1200
  return [{
1201
1201
  id: r.id,
1202
1202
  parentId: r.parentId,
1203
- label: p(i),
1203
+ label: f(i),
1204
1204
  value: {
1205
- label: m(i.formatter?.format, t[0].items?.[0]?.[a]) ?? "-",
1205
+ label: g(i.formatter?.format, t[0].items?.[0]?.[a]) ?? "-",
1206
1206
  value: l
1207
1207
  },
1208
1208
  indicator: u?.indicator ?? null,
1209
- customIndicator: Tn(l, u),
1209
+ customIndicator: Cn(l, u),
1210
1210
  brush: {
1211
- key: [oe.sourceKey, oe.field].join("/"),
1212
- value: O(i)
1211
+ key: [me.sourceKey, me.field].join("/"),
1212
+ value: N(i)
1213
1213
  },
1214
1214
  ...c
1215
1215
  }];
1216
- }), d = ln().id((e) => e.id).parentId((e) => e.parentId)(u), f = s.map((e) => e.dataItem.uniqueSignature);
1217
- return d.sort((e, t) => f.indexOf(e.data.id) - f.indexOf(t.data.id)), d.descendants().forEach((e) => {
1216
+ }), u = sn().id((e) => e.id).parentId((e) => e.parentId)(l), d = o.map((e) => e.dataItem.uniqueSignature);
1217
+ return u.sort((e, t) => d.indexOf(e.data.id) - d.indexOf(t.data.id)), u.descendants().forEach((e) => {
1218
1218
  let t = !1;
1219
1219
  t = e.data.id in r ? r[e.data.id] === !1 : e.data.expanded?.enabled ? e.data.expanded.value === !1 : !1, t && (e._children = e.children, e.children = void 0);
1220
- }), d;
1221
- }, kn = (e, t, n) => {
1220
+ }), u;
1221
+ }, Dn = (e, t, n) => {
1222
1222
  if (t.itemsNotAffectedByFiltering?.pattern?.length && e.staticFilters.ignoreGlobalFilters && e.staticFilters.showGlobalFiltersEffect) {
1223
1223
  let e = [0, ...t.itemsNotAffectedByFiltering.pattern.map((e) => n[e]).filter((e) => e !== null)].join("-");
1224
1224
  return !t.itemsNotAffectedByFiltering.itemsMap?.[e];
1225
1225
  }
1226
1226
  return !1;
1227
- }, An = (e, t, n, r, i, a) => {
1228
- let { id: o, parentId: s, prop: c, measureProp: l, dataItemIdx: u, engineKey: d } = a, f = n?.slots?.find((e) => e.key === "main"), p = i && n ? En(n, r, [n], e.supportingMeasures) : {};
1227
+ }, On = (e, t, n, r, i, a) => {
1228
+ let { id: o, parentId: s, prop: c, measureProp: l, dataItemIdx: u, engineKey: d } = a, f = n?.slots?.find((e) => e.key === "main"), p = i && n ? wn(n, r, [n], e.supportingMeasures) : {};
1229
1229
  return {
1230
1230
  id: o,
1231
1231
  parentId: s,
1232
1232
  label: String(r[c]),
1233
1233
  row: +u,
1234
1234
  value: i && n && l ? {
1235
- label: m(n.formatter?.format, r[l]) ?? "-",
1235
+ label: g(n.formatter?.format, r[l]) ?? "-",
1236
1236
  value: r[l]
1237
1237
  } : null,
1238
1238
  indicator: f?.indicator ?? null,
1239
- customIndicator: Tn(l ? r[l] : null, f),
1239
+ customIndicator: Cn(l ? r[l] : null, f),
1240
1240
  brush: {
1241
1241
  key: d,
1242
1242
  value: r[c]
1243
1243
  },
1244
- _excluded: kn(e, t, r),
1244
+ _excluded: Dn(e, t, r),
1245
1245
  ...p
1246
1246
  };
1247
1247
  };
1248
- function jn(e, t, i) {
1249
- let o = t[0], s = e.dimensions.filter((e) => a(e)), c = {}, l = s.map((t) => [n(t.dataItem), r(e.referencedData, t.dataItem.internalKey) ?? n(t.dataItem)]), u = e.measures.filter((e) => a(e))[0], d = u ? n(u.dataItem) : null, f = e.totals?.enabled ?? !1, p = u?.slots?.find((e) => e.key === "main"), h, g, _ = /* @__PURE__ */ new Set(), v = o.groupings, y = v ? Object.keys(v) : void 0;
1248
+ function kn(e, t, r) {
1249
+ let i = t[0], a = e.dimensions.filter((e) => p(e)), o = {}, c = a.map((t) => [n(t.dataItem), s(e.referencedData, t.dataItem.internalKey) ?? n(t.dataItem)]), l = e.measures.filter((e) => p(e))[0], u = l ? n(l.dataItem) : null, d = e.totals?.enabled ?? !1, f = l?.slots?.find((e) => e.key === "main"), m, h, _ = /* @__PURE__ */ new Set(), v = i.groupings, y = v ? Object.keys(v) : void 0;
1250
1250
  v && y && y.forEach((t) => {
1251
- let n = v[t], r = o.items[+t], i = l.filter(([e]) => n[e] === 0);
1252
- if (!i.length) {
1253
- h = d ? r[d] : void 0, g = r;
1251
+ let n = v[t], r = i.items[+t], a = c.filter(([e]) => n[e] === 0);
1252
+ if (!a.length) {
1253
+ m = u ? r[u] : void 0, h = r;
1254
1254
  return;
1255
1255
  }
1256
- let [a, s] = i.length ? i[i.length - 1] : ["", ""], p = Cn(i.map((e) => wn(r, e[0]))), m = i.slice(0, -1), y = m.length ? Cn(m.map((e) => wn(r, e[0]))) : f ? Sn : L;
1257
- i.length < l.length && _.add(p), c[p] || (c[p] = An(e, o, u, r, !!u, {
1258
- engineKey: s,
1256
+ let [s, f] = a.length ? a[a.length - 1] : ["", ""], p = xn(a.map((e) => Sn(r, e[0]))), g = a.slice(0, -1), y = g.length ? xn(g.map((e) => Sn(r, e[0]))) : d ? bn : z;
1257
+ a.length < c.length && _.add(p), o[p] || (o[p] = On(e, i, l, r, !!l, {
1258
+ engineKey: f,
1259
1259
  id: p,
1260
1260
  parentId: y,
1261
- measureProp: d,
1262
- prop: a,
1261
+ measureProp: u,
1262
+ prop: s,
1263
1263
  dataItemIdx: +t
1264
1264
  }));
1265
- }), o.items.forEach((t, n) => {
1266
- y?.includes(String(n)) || l.forEach(([r, i], a, s) => {
1265
+ }), i.items.forEach((t, n) => {
1266
+ y?.includes(String(n)) || c.forEach(([r, a], s, c) => {
1267
1267
  if (t[r] === void 0) {
1268
1268
  console.warn(`Dimension property ${r} is missing in data item at index ${n}, skipping this dimension for this item`);
1269
1269
  return;
1270
1270
  }
1271
- let l = Cn(s.slice(0, a + 1).map((e) => wn(t, e[0]))), p = a === 0 ? f ? Sn : L : Cn(s.slice(0, a).map((e) => wn(t, e[0])));
1272
- c[l] || (c[l] = An(e, o, u, t, a === s.length - 1 && !!u, {
1273
- engineKey: i,
1271
+ let f = xn(c.slice(0, s + 1).map((e) => Sn(t, e[0]))), p = s === 0 ? d ? bn : z : xn(c.slice(0, s).map((e) => Sn(t, e[0])));
1272
+ o[f] || (o[f] = On(e, i, l, t, s === c.length - 1 && !!l, {
1273
+ engineKey: a,
1274
1274
  dataItemIdx: n,
1275
- id: l,
1275
+ id: f,
1276
1276
  parentId: p,
1277
- measureProp: d,
1277
+ measureProp: u,
1278
1278
  prop: r
1279
1279
  }));
1280
1280
  });
1281
1281
  });
1282
- let b = h ?? Object.values(c).reduce((e, t) => e + (_.has(t.id) ? 0 : t.value?.value ?? 0), 0), x = g ?? o.totals, S = Object.values(c);
1283
- f && S.unshift({
1284
- id: Sn,
1285
- parentId: L,
1282
+ let b = m ?? Object.values(o).reduce((e, t) => e + (_.has(t.id) ? 0 : t.value?.value ?? 0), 0), x = h ?? i.totals, S = Object.values(o);
1283
+ d && S.unshift({
1284
+ id: bn,
1285
+ parentId: z,
1286
1286
  label: "Total",
1287
1287
  row: -1,
1288
- value: u ? {
1289
- label: m(u.formatter?.format, b) ?? "-",
1288
+ value: l ? {
1289
+ label: g(l.formatter?.format, b) ?? "-",
1290
1290
  value: b
1291
1291
  } : null,
1292
- indicator: p?.indicator ?? null,
1293
- customIndicator: Tn(b, p),
1294
- ...u ? En(u, x, [u], e.supportingMeasures) : {}
1292
+ indicator: f?.indicator ?? null,
1293
+ customIndicator: Cn(b, f),
1294
+ ...l ? wn(l, x, [l], e.supportingMeasures) : {}
1295
1295
  }), S.unshift({
1296
- id: L,
1296
+ id: z,
1297
1297
  parentId: null,
1298
1298
  label: "Dummy Root",
1299
1299
  row: -1,
1300
1300
  value: null
1301
1301
  });
1302
- let C = ln().id((e) => e.id).parentId((e) => e.parentId)(S);
1302
+ let C = sn().id((e) => e.id).parentId((e) => e.parentId)(S);
1303
1303
  return C.sort((e, t) => (e.data.row ?? 0) - (t.data.row ?? 0)), C.descendants().forEach((t) => {
1304
1304
  if (t.data.id === "__total__") return;
1305
1305
  let n = !1;
1306
- n = t.data.id in i ? i[t.data.id] === !1 : !Dn(t, e.treeChartSettings?.initialExpandedLevels, s.length, f), n && (t._children = t.children, t.children = void 0);
1306
+ n = t.data.id in r ? r[t.data.id] === !1 : !Tn(t, e.treeChartSettings?.initialExpandedLevels, a.length, d), n && (t._children = t.children, t.children = void 0);
1307
1307
  }), C;
1308
1308
  }
1309
- var Mn = ({ vSpec: e, data: t, nodeExpandState: n }) => {
1310
- let r = e.dimensions.filter(a).length, [i, o] = (0, N.useState)(null);
1311
- return (0, N.useEffect)(() => {
1309
+ var An = ({ vSpec: e, data: t, nodeExpandState: n }) => {
1310
+ let r = e.dimensions.filter(p).length, [i, a] = (0, F.useState)(null);
1311
+ return (0, F.useEffect)(() => {
1312
1312
  if (r > 0) {
1313
- let r = jn(e, t, n.current);
1314
- o(r);
1313
+ let r = kn(e, t, n.current);
1314
+ a(r);
1315
1315
  return;
1316
1316
  }
1317
- let i = On(e, t, n.current);
1318
- o(i);
1317
+ let i = En(e, t, n.current);
1318
+ a(i);
1319
1319
  }, [
1320
1320
  t,
1321
1321
  e.dimensions,
@@ -1324,117 +1324,117 @@ var Mn = ({ vSpec: e, data: t, nodeExpandState: n }) => {
1324
1324
  e.treeChartSettings?.nodeExpandState,
1325
1325
  e.totals?.enabled
1326
1326
  ]), i;
1327
- }, Nn = {
1327
+ }, jn = {
1328
1328
  svg: "http://www.w3.org/2000/svg",
1329
1329
  xhtml: "http://www.w3.org/1999/xhtml",
1330
1330
  xlink: "http://www.w3.org/1999/xlink",
1331
1331
  xml: "http://www.w3.org/XML/1998/namespace",
1332
1332
  xmlns: "http://www.w3.org/2000/xmlns/"
1333
1333
  };
1334
- function Pn(e) {
1334
+ function Mn(e) {
1335
1335
  var t = e += "", n = t.indexOf(":");
1336
- return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), Nn.hasOwnProperty(t) ? {
1337
- space: Nn[t],
1336
+ return n >= 0 && (t = e.slice(0, n)) !== "xmlns" && (e = e.slice(n + 1)), jn.hasOwnProperty(t) ? {
1337
+ space: jn[t],
1338
1338
  local: e
1339
1339
  } : e;
1340
1340
  }
1341
- function Fn(e) {
1341
+ function Nn(e) {
1342
1342
  return function() {
1343
1343
  var t = this.ownerDocument, n = this.namespaceURI;
1344
1344
  return n === "http://www.w3.org/1999/xhtml" && t.documentElement.namespaceURI === "http://www.w3.org/1999/xhtml" ? t.createElement(e) : t.createElementNS(n, e);
1345
1345
  };
1346
1346
  }
1347
- function In(e) {
1347
+ function Pn(e) {
1348
1348
  return function() {
1349
1349
  return this.ownerDocument.createElementNS(e.space, e.local);
1350
1350
  };
1351
1351
  }
1352
- function Ln(e) {
1353
- var t = Pn(e);
1354
- return (t.local ? In : Fn)(t);
1352
+ function Fn(e) {
1353
+ var t = Mn(e);
1354
+ return (t.local ? Pn : Nn)(t);
1355
1355
  }
1356
- function Rn() {}
1357
- function zn(e) {
1358
- return e == null ? Rn : function() {
1356
+ function In() {}
1357
+ function Ln(e) {
1358
+ return e == null ? In : function() {
1359
1359
  return this.querySelector(e);
1360
1360
  };
1361
1361
  }
1362
- function Bn(e) {
1363
- typeof e != "function" && (e = zn(e));
1362
+ function Rn(e) {
1363
+ typeof e != "function" && (e = Ln(e));
1364
1364
  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] = Array(o), c, l, u = 0; u < o; ++u) (c = a[u]) && (l = e.call(c, c.__data__, u, a)) && ("__data__" in c && (l.__data__ = c.__data__), s[u] = l);
1365
- return new z(r, this._parents);
1365
+ return new V(r, this._parents);
1366
1366
  }
1367
- function Vn(e) {
1367
+ function zn(e) {
1368
1368
  return e == null ? [] : Array.isArray(e) ? e : Array.from(e);
1369
1369
  }
1370
- function Hn() {
1370
+ function Bn() {
1371
1371
  return [];
1372
1372
  }
1373
- function Un(e) {
1374
- return e == null ? Hn : function() {
1373
+ function Vn(e) {
1374
+ return e == null ? Bn : function() {
1375
1375
  return this.querySelectorAll(e);
1376
1376
  };
1377
1377
  }
1378
- function Wn(e) {
1378
+ function Hn(e) {
1379
1379
  return function() {
1380
- return Vn(e.apply(this, arguments));
1380
+ return zn(e.apply(this, arguments));
1381
1381
  };
1382
1382
  }
1383
- function Gn(e) {
1384
- e = typeof e == "function" ? Wn(e) : Un(e);
1383
+ function Un(e) {
1384
+ e = typeof e == "function" ? Hn(e) : Vn(e);
1385
1385
  for (var t = this._groups, n = t.length, r = [], i = [], a = 0; a < n; ++a) for (var o = t[a], s = o.length, c, l = 0; l < s; ++l) (c = o[l]) && (r.push(e.call(c, c.__data__, l, o)), i.push(c));
1386
- return new z(r, i);
1386
+ return new V(r, i);
1387
1387
  }
1388
- function Kn(e) {
1388
+ function Wn(e) {
1389
1389
  return function() {
1390
1390
  return this.matches(e);
1391
1391
  };
1392
1392
  }
1393
- function qn(e) {
1393
+ function Gn(e) {
1394
1394
  return function(t) {
1395
1395
  return t.matches(e);
1396
1396
  };
1397
1397
  }
1398
- var Jn = Array.prototype.find;
1399
- function Yn(e) {
1398
+ var Kn = Array.prototype.find;
1399
+ function qn(e) {
1400
1400
  return function() {
1401
- return Jn.call(this.children, e);
1401
+ return Kn.call(this.children, e);
1402
1402
  };
1403
1403
  }
1404
- function Xn() {
1404
+ function Jn() {
1405
1405
  return this.firstElementChild;
1406
1406
  }
1407
- function Zn(e) {
1408
- return this.select(e == null ? Xn : Yn(typeof e == "function" ? e : qn(e)));
1407
+ function Yn(e) {
1408
+ return this.select(e == null ? Jn : qn(typeof e == "function" ? e : Gn(e)));
1409
1409
  }
1410
- var Qn = Array.prototype.filter;
1411
- function $n() {
1410
+ var Xn = Array.prototype.filter;
1411
+ function Zn() {
1412
1412
  return Array.from(this.children);
1413
1413
  }
1414
- function er(e) {
1414
+ function Qn(e) {
1415
1415
  return function() {
1416
- return Qn.call(this.children, e);
1416
+ return Xn.call(this.children, e);
1417
1417
  };
1418
1418
  }
1419
- function tr(e) {
1420
- return this.selectAll(e == null ? $n : er(typeof e == "function" ? e : qn(e)));
1419
+ function $n(e) {
1420
+ return this.selectAll(e == null ? Zn : Qn(typeof e == "function" ? e : Gn(e)));
1421
1421
  }
1422
- function nr(e) {
1423
- typeof e != "function" && (e = Kn(e));
1422
+ function er(e) {
1423
+ typeof e != "function" && (e = Wn(e));
1424
1424
  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);
1425
- return new z(r, this._parents);
1425
+ return new V(r, this._parents);
1426
1426
  }
1427
- function rr(e) {
1427
+ function tr(e) {
1428
1428
  return Array(e.length);
1429
1429
  }
1430
- function ir() {
1431
- return new z(this._enter || this._groups.map(rr), this._parents);
1430
+ function nr() {
1431
+ return new V(this._enter || this._groups.map(tr), this._parents);
1432
1432
  }
1433
- function ar(e, t) {
1433
+ function rr(e, t) {
1434
1434
  this.ownerDocument = e.ownerDocument, this.namespaceURI = e.namespaceURI, this._next = null, this._parent = e, this.__data__ = t;
1435
1435
  }
1436
- ar.prototype = {
1437
- constructor: ar,
1436
+ rr.prototype = {
1437
+ constructor: rr,
1438
1438
  appendChild: function(e) {
1439
1439
  return this._parent.insertBefore(e, this._next);
1440
1440
  },
@@ -1448,59 +1448,59 @@ ar.prototype = {
1448
1448
  return this._parent.querySelectorAll(e);
1449
1449
  }
1450
1450
  };
1451
- function or(e) {
1451
+ function ir(e) {
1452
1452
  return function() {
1453
1453
  return e;
1454
1454
  };
1455
1455
  }
1456
- function sr(e, t, n, r, i, a) {
1457
- for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new ar(e, a[o]);
1456
+ function ar(e, t, n, r, i, a) {
1457
+ for (var o = 0, s, c = t.length, l = a.length; o < l; ++o) (s = t[o]) ? (s.__data__ = a[o], r[o] = s) : n[o] = new rr(e, a[o]);
1458
1458
  for (; o < c; ++o) (s = t[o]) && (i[o] = s);
1459
1459
  }
1460
- function cr(e, t, n, r, i, a, o) {
1460
+ function or(e, t, n, r, i, a, o) {
1461
1461
  var s, c, l = /* @__PURE__ */ new Map(), u = t.length, d = a.length, f = Array(u), p;
1462
1462
  for (s = 0; s < u; ++s) (c = t[s]) && (f[s] = p = o.call(c, c.__data__, s, t) + "", l.has(p) ? i[s] = c : l.set(p, c));
1463
- for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new ar(e, a[s]);
1463
+ for (s = 0; s < d; ++s) p = o.call(e, a[s], s, a) + "", (c = l.get(p)) ? (r[s] = c, c.__data__ = a[s], l.delete(p)) : n[s] = new rr(e, a[s]);
1464
1464
  for (s = 0; s < u; ++s) (c = t[s]) && l.get(f[s]) === c && (i[s] = c);
1465
1465
  }
1466
- function lr(e) {
1466
+ function sr(e) {
1467
1467
  return e.__data__;
1468
1468
  }
1469
- function ur(e, t) {
1470
- if (!arguments.length) return Array.from(this, lr);
1471
- var n = t ? cr : sr, r = this._parents, i = this._groups;
1472
- typeof e != "function" && (e = or(e));
1469
+ function cr(e, t) {
1470
+ if (!arguments.length) return Array.from(this, sr);
1471
+ var n = t ? or : ar, r = this._parents, i = this._groups;
1472
+ typeof e != "function" && (e = ir(e));
1473
1473
  for (var a = i.length, o = Array(a), s = Array(a), c = Array(a), l = 0; l < a; ++l) {
1474
- var u = r[l], d = i[l], f = d.length, p = dr(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
1474
+ var u = r[l], d = i[l], f = d.length, p = lr(e.call(u, u && u.__data__, l, r)), m = p.length, h = s[l] = Array(m), g = o[l] = Array(m);
1475
1475
  n(u, d, h, g, c[l] = Array(f), p, t);
1476
1476
  for (var _ = 0, v = 0, y, b; _ < m; ++_) if (y = h[_]) {
1477
1477
  for (_ >= v && (v = _ + 1); !(b = g[v]) && ++v < m;);
1478
1478
  y._next = b || null;
1479
1479
  }
1480
1480
  }
1481
- return o = new z(o, r), o._enter = s, o._exit = c, o;
1481
+ return o = new V(o, r), o._enter = s, o._exit = c, o;
1482
1482
  }
1483
- function dr(e) {
1483
+ function lr(e) {
1484
1484
  return typeof e == "object" && "length" in e ? e : Array.from(e);
1485
1485
  }
1486
- function fr() {
1487
- return new z(this._exit || this._groups.map(rr), this._parents);
1486
+ function ur() {
1487
+ return new V(this._exit || this._groups.map(tr), this._parents);
1488
1488
  }
1489
- function pr(e, t, n) {
1489
+ function dr(e, t, n) {
1490
1490
  var r = this.enter(), i = this, a = this.exit();
1491
1491
  return typeof e == "function" ? (r = e(r), r &&= r.selection()) : r = r.append(e + ""), t != null && (i = t(i), i &&= i.selection()), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
1492
1492
  }
1493
- function mr(e) {
1493
+ function fr(e) {
1494
1494
  for (var t = e.selection ? e.selection() : e, n = this._groups, r = t._groups, i = n.length, a = r.length, o = Math.min(i, a), s = Array(i), c = 0; c < o; ++c) for (var l = n[c], u = r[c], d = l.length, f = s[c] = Array(d), p, m = 0; m < d; ++m) (p = l[m] || u[m]) && (f[m] = p);
1495
1495
  for (; c < i; ++c) s[c] = n[c];
1496
- return new z(s, this._parents);
1496
+ return new V(s, this._parents);
1497
1497
  }
1498
- function hr() {
1498
+ function pr() {
1499
1499
  for (var e = this._groups, t = -1, n = e.length; ++t < n;) for (var r = e[t], i = r.length - 1, a = r[i], o; --i >= 0;) (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
1500
1500
  return this;
1501
1501
  }
1502
- function gr(e) {
1503
- e ||= _r;
1502
+ function mr(e) {
1503
+ e ||= hr;
1504
1504
  function t(t, n) {
1505
1505
  return t && n ? e(t.__data__, n.__data__) : !t - !n;
1506
1506
  }
@@ -1508,131 +1508,131 @@ function gr(e) {
1508
1508
  for (var o = n[a], s = o.length, c = i[a] = Array(s), l, u = 0; u < s; ++u) (l = o[u]) && (c[u] = l);
1509
1509
  c.sort(t);
1510
1510
  }
1511
- return new z(i, this._parents).order();
1511
+ return new V(i, this._parents).order();
1512
1512
  }
1513
- function _r(e, t) {
1513
+ function hr(e, t) {
1514
1514
  return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
1515
1515
  }
1516
- function vr() {
1516
+ function gr() {
1517
1517
  var e = arguments[0];
1518
1518
  return arguments[0] = this, e.apply(null, arguments), this;
1519
1519
  }
1520
- function yr() {
1520
+ function _r() {
1521
1521
  return Array.from(this);
1522
1522
  }
1523
- function br() {
1523
+ function vr() {
1524
1524
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length; i < a; ++i) {
1525
1525
  var o = r[i];
1526
1526
  if (o) return o;
1527
1527
  }
1528
1528
  return null;
1529
1529
  }
1530
- function xr() {
1530
+ function yr() {
1531
1531
  let e = 0;
1532
1532
  for (let t of this) ++e;
1533
1533
  return e;
1534
1534
  }
1535
- function Sr() {
1535
+ function br() {
1536
1536
  return !this.node();
1537
1537
  }
1538
- function Cr(e) {
1538
+ function xr(e) {
1539
1539
  for (var t = this._groups, n = 0, r = t.length; n < r; ++n) for (var i = t[n], a = 0, o = i.length, s; a < o; ++a) (s = i[a]) && e.call(s, s.__data__, a, i);
1540
1540
  return this;
1541
1541
  }
1542
- function wr(e) {
1542
+ function Sr(e) {
1543
1543
  return function() {
1544
1544
  this.removeAttribute(e);
1545
1545
  };
1546
1546
  }
1547
- function Tr(e) {
1547
+ function Cr(e) {
1548
1548
  return function() {
1549
1549
  this.removeAttributeNS(e.space, e.local);
1550
1550
  };
1551
1551
  }
1552
- function Er(e, t) {
1552
+ function wr(e, t) {
1553
1553
  return function() {
1554
1554
  this.setAttribute(e, t);
1555
1555
  };
1556
1556
  }
1557
- function Dr(e, t) {
1557
+ function Tr(e, t) {
1558
1558
  return function() {
1559
1559
  this.setAttributeNS(e.space, e.local, t);
1560
1560
  };
1561
1561
  }
1562
- function Or(e, t) {
1562
+ function Er(e, t) {
1563
1563
  return function() {
1564
1564
  var n = t.apply(this, arguments);
1565
1565
  n == null ? this.removeAttribute(e) : this.setAttribute(e, n);
1566
1566
  };
1567
1567
  }
1568
- function kr(e, t) {
1568
+ function Dr(e, t) {
1569
1569
  return function() {
1570
1570
  var n = t.apply(this, arguments);
1571
1571
  n == null ? this.removeAttributeNS(e.space, e.local) : this.setAttributeNS(e.space, e.local, n);
1572
1572
  };
1573
1573
  }
1574
- function Ar(e, t) {
1575
- var n = Pn(e);
1574
+ function Or(e, t) {
1575
+ var n = Mn(e);
1576
1576
  if (arguments.length < 2) {
1577
1577
  var r = this.node();
1578
1578
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
1579
1579
  }
1580
- return this.each((t == null ? n.local ? Tr : wr : typeof t == "function" ? n.local ? kr : Or : n.local ? Dr : Er)(n, t));
1580
+ return this.each((t == null ? n.local ? Cr : Sr : typeof t == "function" ? n.local ? Dr : Er : n.local ? Tr : wr)(n, t));
1581
1581
  }
1582
- function jr(e) {
1582
+ function kr(e) {
1583
1583
  return e.ownerDocument && e.ownerDocument.defaultView || e.document && e || e.defaultView;
1584
1584
  }
1585
- function Mr(e) {
1585
+ function Ar(e) {
1586
1586
  return function() {
1587
1587
  this.style.removeProperty(e);
1588
1588
  };
1589
1589
  }
1590
- function Nr(e, t, n) {
1590
+ function jr(e, t, n) {
1591
1591
  return function() {
1592
1592
  this.style.setProperty(e, t, n);
1593
1593
  };
1594
1594
  }
1595
- function Pr(e, t, n) {
1595
+ function Mr(e, t, n) {
1596
1596
  return function() {
1597
1597
  var r = t.apply(this, arguments);
1598
1598
  r == null ? this.style.removeProperty(e) : this.style.setProperty(e, r, n);
1599
1599
  };
1600
1600
  }
1601
- function Fr(e, t, n) {
1602
- return arguments.length > 1 ? this.each((t == null ? Mr : typeof t == "function" ? Pr : Nr)(e, t, n ?? "")) : R(this.node(), e);
1601
+ function Nr(e, t, n) {
1602
+ return arguments.length > 1 ? this.each((t == null ? Ar : typeof t == "function" ? Mr : jr)(e, t, n ?? "")) : B(this.node(), e);
1603
1603
  }
1604
- function R(e, t) {
1605
- return e.style.getPropertyValue(t) || jr(e).getComputedStyle(e, null).getPropertyValue(t);
1604
+ function B(e, t) {
1605
+ return e.style.getPropertyValue(t) || kr(e).getComputedStyle(e, null).getPropertyValue(t);
1606
1606
  }
1607
- function Ir(e) {
1607
+ function Pr(e) {
1608
1608
  return function() {
1609
1609
  delete this[e];
1610
1610
  };
1611
1611
  }
1612
- function Lr(e, t) {
1612
+ function Fr(e, t) {
1613
1613
  return function() {
1614
1614
  this[e] = t;
1615
1615
  };
1616
1616
  }
1617
- function Rr(e, t) {
1617
+ function Ir(e, t) {
1618
1618
  return function() {
1619
1619
  var n = t.apply(this, arguments);
1620
1620
  n == null ? delete this[e] : this[e] = n;
1621
1621
  };
1622
1622
  }
1623
- function zr(e, t) {
1624
- return arguments.length > 1 ? this.each((t == null ? Ir : typeof t == "function" ? Rr : Lr)(e, t)) : this.node()[e];
1623
+ function Lr(e, t) {
1624
+ return arguments.length > 1 ? this.each((t == null ? Pr : typeof t == "function" ? Ir : Fr)(e, t)) : this.node()[e];
1625
1625
  }
1626
- function Br(e) {
1626
+ function Rr(e) {
1627
1627
  return e.trim().split(/^|\s+/);
1628
1628
  }
1629
- function Vr(e) {
1630
- return e.classList || new Hr(e);
1629
+ function zr(e) {
1630
+ return e.classList || new Br(e);
1631
1631
  }
1632
- function Hr(e) {
1633
- this._node = e, this._names = Br(e.getAttribute("class") || "");
1632
+ function Br(e) {
1633
+ this._node = e, this._names = Rr(e.getAttribute("class") || "");
1634
1634
  }
1635
- Hr.prototype = {
1635
+ Br.prototype = {
1636
1636
  add: function(e) {
1637
1637
  this._names.indexOf(e) < 0 && (this._names.push(e), this._node.setAttribute("class", this._names.join(" ")));
1638
1638
  },
@@ -1644,123 +1644,123 @@ Hr.prototype = {
1644
1644
  return this._names.indexOf(e) >= 0;
1645
1645
  }
1646
1646
  };
1647
- function Ur(e, t) {
1648
- for (var n = Vr(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
1647
+ function Vr(e, t) {
1648
+ for (var n = zr(e), r = -1, i = t.length; ++r < i;) n.add(t[r]);
1649
1649
  }
1650
- function Wr(e, t) {
1651
- for (var n = Vr(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
1650
+ function Hr(e, t) {
1651
+ for (var n = zr(e), r = -1, i = t.length; ++r < i;) n.remove(t[r]);
1652
1652
  }
1653
- function Gr(e) {
1653
+ function Ur(e) {
1654
1654
  return function() {
1655
- Ur(this, e);
1655
+ Vr(this, e);
1656
1656
  };
1657
1657
  }
1658
- function Kr(e) {
1658
+ function Wr(e) {
1659
1659
  return function() {
1660
- Wr(this, e);
1660
+ Hr(this, e);
1661
1661
  };
1662
1662
  }
1663
- function qr(e, t) {
1663
+ function Gr(e, t) {
1664
1664
  return function() {
1665
- (t.apply(this, arguments) ? Ur : Wr)(this, e);
1665
+ (t.apply(this, arguments) ? Vr : Hr)(this, e);
1666
1666
  };
1667
1667
  }
1668
- function Jr(e, t) {
1669
- var n = Br(e + "");
1668
+ function Kr(e, t) {
1669
+ var n = Rr(e + "");
1670
1670
  if (arguments.length < 2) {
1671
- for (var r = Vr(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
1671
+ for (var r = zr(this.node()), i = -1, a = n.length; ++i < a;) if (!r.contains(n[i])) return !1;
1672
1672
  return !0;
1673
1673
  }
1674
- return this.each((typeof t == "function" ? qr : t ? Gr : Kr)(n, t));
1674
+ return this.each((typeof t == "function" ? Gr : t ? Ur : Wr)(n, t));
1675
1675
  }
1676
- function Yr() {
1676
+ function qr() {
1677
1677
  this.textContent = "";
1678
1678
  }
1679
- function Xr(e) {
1679
+ function Jr(e) {
1680
1680
  return function() {
1681
1681
  this.textContent = e;
1682
1682
  };
1683
1683
  }
1684
- function Zr(e) {
1684
+ function Yr(e) {
1685
1685
  return function() {
1686
1686
  var t = e.apply(this, arguments);
1687
1687
  this.textContent = t ?? "";
1688
1688
  };
1689
1689
  }
1690
- function Qr(e) {
1691
- return arguments.length ? this.each(e == null ? Yr : (typeof e == "function" ? Zr : Xr)(e)) : this.node().textContent;
1690
+ function Xr(e) {
1691
+ return arguments.length ? this.each(e == null ? qr : (typeof e == "function" ? Yr : Jr)(e)) : this.node().textContent;
1692
1692
  }
1693
- function $r() {
1693
+ function Zr() {
1694
1694
  this.innerHTML = "";
1695
1695
  }
1696
- function ei(e) {
1696
+ function Qr(e) {
1697
1697
  return function() {
1698
1698
  this.innerHTML = e;
1699
1699
  };
1700
1700
  }
1701
- function ti(e) {
1701
+ function $r(e) {
1702
1702
  return function() {
1703
1703
  var t = e.apply(this, arguments);
1704
1704
  this.innerHTML = t ?? "";
1705
1705
  };
1706
1706
  }
1707
- function ni(e) {
1708
- return arguments.length ? this.each(e == null ? $r : (typeof e == "function" ? ti : ei)(e)) : this.node().innerHTML;
1707
+ function ei(e) {
1708
+ return arguments.length ? this.each(e == null ? Zr : (typeof e == "function" ? $r : Qr)(e)) : this.node().innerHTML;
1709
1709
  }
1710
- function ri() {
1710
+ function ti() {
1711
1711
  this.nextSibling && this.parentNode.appendChild(this);
1712
1712
  }
1713
- function ii() {
1714
- return this.each(ri);
1713
+ function ni() {
1714
+ return this.each(ti);
1715
1715
  }
1716
- function ai() {
1716
+ function ri() {
1717
1717
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
1718
1718
  }
1719
- function oi() {
1720
- return this.each(ai);
1719
+ function ii() {
1720
+ return this.each(ri);
1721
1721
  }
1722
- function si(e) {
1723
- var t = typeof e == "function" ? e : Ln(e);
1722
+ function ai(e) {
1723
+ var t = typeof e == "function" ? e : Fn(e);
1724
1724
  return this.select(function() {
1725
1725
  return this.appendChild(t.apply(this, arguments));
1726
1726
  });
1727
1727
  }
1728
- function ci() {
1728
+ function oi() {
1729
1729
  return null;
1730
1730
  }
1731
- function li(e, t) {
1732
- var n = typeof e == "function" ? e : Ln(e), r = t == null ? ci : typeof t == "function" ? t : zn(t);
1731
+ function si(e, t) {
1732
+ var n = typeof e == "function" ? e : Fn(e), r = t == null ? oi : typeof t == "function" ? t : Ln(t);
1733
1733
  return this.select(function() {
1734
1734
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
1735
1735
  });
1736
1736
  }
1737
- function ui() {
1737
+ function ci() {
1738
1738
  var e = this.parentNode;
1739
1739
  e && e.removeChild(this);
1740
1740
  }
1741
- function di() {
1742
- return this.each(ui);
1741
+ function li() {
1742
+ return this.each(ci);
1743
1743
  }
1744
- function fi() {
1744
+ function ui() {
1745
1745
  var e = this.cloneNode(!1), t = this.parentNode;
1746
1746
  return t ? t.insertBefore(e, this.nextSibling) : e;
1747
1747
  }
1748
- function pi() {
1748
+ function di() {
1749
1749
  var e = this.cloneNode(!0), t = this.parentNode;
1750
1750
  return t ? t.insertBefore(e, this.nextSibling) : e;
1751
1751
  }
1752
- function mi(e) {
1753
- return this.select(e ? pi : fi);
1752
+ function fi(e) {
1753
+ return this.select(e ? di : ui);
1754
1754
  }
1755
- function hi(e) {
1755
+ function pi(e) {
1756
1756
  return arguments.length ? this.property("__data__", e) : this.node().__data__;
1757
1757
  }
1758
- function gi(e) {
1758
+ function mi(e) {
1759
1759
  return function(t) {
1760
1760
  e.call(this, t, this.__data__);
1761
1761
  };
1762
1762
  }
1763
- function _i(e) {
1763
+ function hi(e) {
1764
1764
  return e.trim().split(/^|\s+/).map(function(e) {
1765
1765
  var t = "", n = e.indexOf(".");
1766
1766
  return n >= 0 && (t = e.slice(n + 1), e = e.slice(0, n)), {
@@ -1769,7 +1769,7 @@ function _i(e) {
1769
1769
  };
1770
1770
  });
1771
1771
  }
1772
- function vi(e) {
1772
+ function gi(e) {
1773
1773
  return function() {
1774
1774
  var t = this.__on;
1775
1775
  if (t) {
@@ -1778,9 +1778,9 @@ function vi(e) {
1778
1778
  }
1779
1779
  };
1780
1780
  }
1781
- function yi(e, t, n) {
1781
+ function _i(e, t, n) {
1782
1782
  return function() {
1783
- var r = this.__on, i, a = gi(t);
1783
+ var r = this.__on, i, a = mi(t);
1784
1784
  if (r) {
1785
1785
  for (var o = 0, s = r.length; o < s; ++o) if ((i = r[o]).type === e.type && i.name === e.name) {
1786
1786
  this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = a, i.options = n), i.value = t;
@@ -1796,8 +1796,8 @@ function yi(e, t, n) {
1796
1796
  }, r ? r.push(i) : this.__on = [i];
1797
1797
  };
1798
1798
  }
1799
- function bi(e, t, n) {
1800
- var r = _i(e + ""), i, a = r.length, o;
1799
+ function vi(e, t, n) {
1800
+ var r = hi(e + ""), i, a = r.length, o;
1801
1801
  if (arguments.length < 2) {
1802
1802
  var s = this.node().__on;
1803
1803
  if (s) {
@@ -1805,87 +1805,87 @@ function bi(e, t, n) {
1805
1805
  }
1806
1806
  return;
1807
1807
  }
1808
- for (s = t ? yi : vi, i = 0; i < a; ++i) this.each(s(r[i], t, n));
1808
+ for (s = t ? _i : gi, i = 0; i < a; ++i) this.each(s(r[i], t, n));
1809
1809
  return this;
1810
1810
  }
1811
- function xi(e, t, n) {
1812
- var r = jr(e), i = r.CustomEvent;
1811
+ function yi(e, t, n) {
1812
+ var r = kr(e), i = r.CustomEvent;
1813
1813
  typeof i == "function" ? i = new i(t, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(t, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(t, !1, !1)), e.dispatchEvent(i);
1814
1814
  }
1815
- function Si(e, t) {
1815
+ function bi(e, t) {
1816
1816
  return function() {
1817
- return xi(this, e, t);
1817
+ return yi(this, e, t);
1818
1818
  };
1819
1819
  }
1820
- function Ci(e, t) {
1820
+ function xi(e, t) {
1821
1821
  return function() {
1822
- return xi(this, e, t.apply(this, arguments));
1822
+ return yi(this, e, t.apply(this, arguments));
1823
1823
  };
1824
1824
  }
1825
- function wi(e, t) {
1826
- return this.each((typeof t == "function" ? Ci : Si)(e, t));
1825
+ function Si(e, t) {
1826
+ return this.each((typeof t == "function" ? xi : bi)(e, t));
1827
1827
  }
1828
- function* Ti() {
1828
+ function* Ci() {
1829
1829
  for (var e = this._groups, t = 0, n = e.length; t < n; ++t) for (var r = e[t], i = 0, a = r.length, o; i < a; ++i) (o = r[i]) && (yield o);
1830
1830
  }
1831
- var Ei = [null];
1832
- function z(e, t) {
1831
+ var wi = [null];
1832
+ function V(e, t) {
1833
1833
  this._groups = e, this._parents = t;
1834
1834
  }
1835
- function B() {
1836
- return new z([[document.documentElement]], Ei);
1835
+ function H() {
1836
+ return new V([[document.documentElement]], wi);
1837
1837
  }
1838
- function Di() {
1838
+ function Ti() {
1839
1839
  return this;
1840
1840
  }
1841
- z.prototype = B.prototype = {
1842
- constructor: z,
1843
- select: Bn,
1844
- selectAll: Gn,
1845
- selectChild: Zn,
1846
- selectChildren: tr,
1847
- filter: nr,
1848
- data: ur,
1849
- enter: ir,
1850
- exit: fr,
1851
- join: pr,
1852
- merge: mr,
1853
- selection: Di,
1854
- order: hr,
1855
- sort: gr,
1856
- call: vr,
1857
- nodes: yr,
1858
- node: br,
1859
- size: xr,
1860
- empty: Sr,
1861
- each: Cr,
1862
- attr: Ar,
1863
- style: Fr,
1864
- property: zr,
1865
- classed: Jr,
1866
- text: Qr,
1867
- html: ni,
1868
- raise: ii,
1869
- lower: oi,
1870
- append: si,
1871
- insert: li,
1872
- remove: di,
1873
- clone: mi,
1874
- datum: hi,
1875
- on: bi,
1876
- dispatch: wi,
1877
- [Symbol.iterator]: Ti
1841
+ V.prototype = H.prototype = {
1842
+ constructor: V,
1843
+ select: Rn,
1844
+ selectAll: Un,
1845
+ selectChild: Yn,
1846
+ selectChildren: $n,
1847
+ filter: er,
1848
+ data: cr,
1849
+ enter: nr,
1850
+ exit: ur,
1851
+ join: dr,
1852
+ merge: fr,
1853
+ selection: Ti,
1854
+ order: pr,
1855
+ sort: mr,
1856
+ call: gr,
1857
+ nodes: _r,
1858
+ node: vr,
1859
+ size: yr,
1860
+ empty: br,
1861
+ each: xr,
1862
+ attr: Or,
1863
+ style: Nr,
1864
+ property: Lr,
1865
+ classed: Kr,
1866
+ text: Xr,
1867
+ html: ei,
1868
+ raise: ni,
1869
+ lower: ii,
1870
+ append: ai,
1871
+ insert: si,
1872
+ remove: li,
1873
+ clone: fi,
1874
+ datum: pi,
1875
+ on: vi,
1876
+ dispatch: Si,
1877
+ [Symbol.iterator]: Ci
1878
1878
  };
1879
- function V(e) {
1880
- return typeof e == "string" ? new z([[document.querySelector(e)]], [document.documentElement]) : new z([[e]], Ei);
1879
+ function U(e) {
1880
+ return typeof e == "string" ? new V([[document.querySelector(e)]], [document.documentElement]) : new V([[e]], wi);
1881
1881
  }
1882
- function Oi(e) {
1882
+ function Ei(e) {
1883
1883
  let t;
1884
1884
  for (; t = e.sourceEvent;) e = t;
1885
1885
  return e;
1886
1886
  }
1887
- function H(e, t) {
1888
- if (e = Oi(e), t === void 0 && (t = e.currentTarget), t) {
1887
+ function W(e, t) {
1888
+ if (e = Ei(e), t === void 0 && (t = e.currentTarget), t) {
1889
1889
  var n = t.ownerSVGElement || t;
1890
1890
  if (n.createSVGPoint) {
1891
1891
  var r = n.createSVGPoint();
@@ -1898,47 +1898,47 @@ function H(e, t) {
1898
1898
  }
1899
1899
  return [e.pageX, e.pageY];
1900
1900
  }
1901
- function ki(e) {
1902
- return typeof e == "string" ? new z([document.querySelectorAll(e)], [document.documentElement]) : new z([Vn(e)], Ei);
1901
+ function Di(e) {
1902
+ return typeof e == "string" ? new V([document.querySelectorAll(e)], [document.documentElement]) : new V([zn(e)], wi);
1903
1903
  }
1904
- var Ai = /* @__PURE__ */ e(xe()), U = c[o.KPIChange], W = U.slots, ji = "#577f56", Mi = "#9e4d53", Ni = (e) => typeof e == "number" && Number.isFinite(e), Pi = (e, t) => {
1905
- let n = new Ai.default(e);
1906
- return (new Ai.default(t).isLight() ? n.lighten(.5).alpha(.5) : n.darken(.5).alpha(.5)).rgb().string();
1907
- }, Fi = (e, t) => {
1904
+ var Oi = /* @__PURE__ */ e(ye()), G = o[i.KPIChange], K = G.slots, ki = "#577f56", Ai = "#9e4d53", ji = (e) => typeof e == "number" && Number.isFinite(e), Mi = (e, t) => {
1905
+ let n = new Oi.default(e);
1906
+ return (new Oi.default(t).isLight() ? n.lighten(.5).alpha(.5) : n.darken(.5).alpha(.5)).rgb().string();
1907
+ }, Ni = (e, t) => {
1908
1908
  if (!e.enabled) return "";
1909
- let n = Ni(e.value) ? e.value : null, r = n === null ? "" : n < 0 ? "negative" : "positive", i = "", a = "";
1909
+ let n = ji(e.value) ? e.value : null, r = n === null ? "" : n < 0 ? "negative" : "positive", i = "", a = "";
1910
1910
  if (e.indicator === "inverse") r = r === "negative" ? "positive" : "negative";
1911
1911
  else if (e.indicator === "none") r = "";
1912
1912
  else if (e.indicator === "custom") {
1913
1913
  r = "";
1914
- let n = e.customIndicator?.color ? Pi(e.customIndicator.color, t) : "inherit";
1915
- i = `color: ${e.customIndicator?.color ?? "inherit"}; background-color: ${n};`, e.customIndicator?.icon && (a = `<span class="footer-icon">${_.sanitize(e.customIndicator.icon)}</span>`);
1914
+ let n = e.customIndicator?.color ? Mi(e.customIndicator.color, t) : "inherit";
1915
+ i = `color: ${e.customIndicator?.color ?? "inherit"}; background-color: ${n};`, e.customIndicator?.icon && (a = `<span class="footer-icon">${O.sanitize(e.customIndicator.icon)}</span>`);
1916
1916
  }
1917
- return `<div class="footer ${r}" style="${i}"><span class="footer-label">${_.sanitize(e.label ?? "-")}</span>${a}</div>`;
1918
- }, Ii = (e, t) => {
1917
+ return `<div class="footer ${r}" style="${i}"><span class="footer-label">${O.sanitize(e.label ?? "-")}</span>${a}</div>`;
1918
+ }, Pi = (e, t) => {
1919
1919
  if (!e.enabled) return "";
1920
- let n = e.indicator, r = Ni(e.value) ? e.value : null, i = r === null ? "neutral" : r < 0 ? "negative" : "positive", a = "", o = r === null ? "" : r < 0 ? "arrow_downward" : "arrow_upward";
1920
+ let n = e.indicator, r = ji(e.value) ? e.value : null, i = r === null ? "neutral" : r < 0 ? "negative" : "positive", a = "", o = r === null ? "" : r < 0 ? "arrow_downward" : "arrow_upward";
1921
1921
  if (n === "inverse") i = i === "negative" ? "positive" : "negative";
1922
1922
  else if (n === "none") i = "", o = void 0;
1923
1923
  else if (n === "custom") {
1924
1924
  i = "";
1925
- let n = e.customIndicator?.color ? Pi(e.customIndicator.color, t) : "inherit";
1925
+ let n = e.customIndicator?.color ? Mi(e.customIndicator.color, t) : "inherit";
1926
1926
  a = `color: ${e.customIndicator?.color ?? "inherit"}; background-color: ${n};`, o = e.customIndicator?.icon;
1927
1927
  }
1928
- let s = o ? `<span class="pill-icon">${_.sanitize(o)}</span>` : "";
1929
- return `<div class="pill ${i}" style="${a}"><span class="pill-label">${_.sanitize(e.label ?? "-")}</span>${s}</div>`;
1930
- }, Li = (e, t) => {
1928
+ let s = o ? `<span class="pill-icon">${O.sanitize(o)}</span>` : "";
1929
+ return `<div class="pill ${i}" style="${a}"><span class="pill-label">${O.sanitize(e.label ?? "-")}</span>${s}</div>`;
1930
+ }, Fi = (e, t) => {
1931
1931
  let n = e.value ?? {
1932
1932
  label: "-",
1933
1933
  value: null,
1934
1934
  enabled: !1
1935
1935
  }, r = "", i = "";
1936
- return e.indicator === "custom" && (e.customIndicator?.color && (r = `color: ${e.customIndicator.color};`), e.customIndicator?.icon && (i = `<span class="value-icon">${_.sanitize(e.customIndicator.icon)}</span>`)), `<div class="value ${t ? "value-space" : ""}" style="${r}"><span class="value-label">${_.sanitize(n.label)}</span>${i}</div>`;
1937
- }, Ri = (e, n) => {
1938
- let r = e.data.diff ?? t.diff.defaults, i = e.data.change ?? t.change.defaults, a = n.config.nodeDefaultBackground ?? "#ffffff", o = Li(e.data, !i.enabled), s = Fi(r, a), c = Ii(i, a), l = [];
1936
+ return e.indicator === "custom" && (e.customIndicator?.color && (r = `color: ${e.customIndicator.color};`), e.customIndicator?.icon && (i = `<span class="value-icon">${O.sanitize(e.customIndicator.icon)}</span>`)), `<div class="value ${t ? "value-space" : ""}" style="${r}"><span class="value-label">${O.sanitize(n.label)}</span>${i}</div>`;
1937
+ }, Ii = (e, n) => {
1938
+ let r = e.data.diff ?? t.diff.defaults, i = e.data.change ?? t.change.defaults, a = n.config.nodeDefaultBackground ?? "#ffffff", o = Fi(e.data, !i.enabled), s = Ni(r, a), c = Pi(i, a), l = [];
1939
1939
  return e.data._upToTheRootHighlighted && l.push("node-highlight"), `
1940
1940
  <div class="node-content layout-a ${l.join(" ")}">
1941
- <div class="label">${_.sanitize(e.data.label)}</div>
1941
+ <div class="label">${O.sanitize(e.data.label)}</div>
1942
1942
  <div class="flex-row">
1943
1943
  ${o}
1944
1944
  ${c}
@@ -1947,45 +1947,45 @@ var Ai = /* @__PURE__ */ e(xe()), U = c[o.KPIChange], W = U.slots, ji = "#577f56
1947
1947
 
1948
1948
  </div>
1949
1949
  `;
1950
- }, zi = ({ node: e, config: t }) => e.data?.id === "__root__" ? null : `<div class="button-content"> ${{
1950
+ }, Li = ({ node: e, config: t }) => e.data?.id === "__root__" ? null : `<div class="button-content"> ${{
1951
1951
  left: (e) => e ? "◀" : "▶",
1952
1952
  bottom: (e) => e ? "▼" : "▲",
1953
1953
  right: (e) => e ? "▶" : "◀",
1954
1954
  top: (e) => e ? "▲" : "▼"
1955
1955
  }[t.layout](e.children)} </div>`;
1956
- function Bi(e) {
1956
+ function Ri(e) {
1957
1957
  if (e.data._upToTheRootHighlighted) {
1958
- V(this).style("stroke-width", "var(--border-hover-width)").style("stroke", "var(--border-hover-color)");
1958
+ U(this).style("stroke-width", "var(--border-hover-width)").style("stroke", "var(--border-hover-color)");
1959
1959
  return;
1960
1960
  }
1961
1961
  if (!e.data.diff?.enabled) {
1962
- V(this).style("stroke-width", null).style("stroke", null);
1962
+ U(this).style("stroke-width", null).style("stroke", null);
1963
1963
  return;
1964
1964
  }
1965
- let n = (Ni(e.data.diff?.value) ? e.data.diff.value : null) ?? (Ni(t.diff.defaults.value) ? t.diff.defaults.value : 0), r = e.parent?.children?.flatMap((t) => t.id === e.id || !t.data.diff?.enabled || !Ni(t.data.diff?.value) ? [] : [Math.abs(t.data.diff.value)]) ?? [], i = r.length ? Math.max(...r) : 0, a = Math.abs(n) > i, o = n < 0, s = o ? Mi : ji, c = e.data.diff?.indicator;
1966
- c === "inverse" ? s = o ? ji : Mi : c === "none" ? s = "var(--link-color)" : c === "custom" && (s = e.data.diff?.customIndicator?.color ?? "var(--link-color)");
1965
+ let n = (ji(e.data.diff?.value) ? e.data.diff.value : null) ?? (ji(t.diff.defaults.value) ? t.diff.defaults.value : 0), r = e.parent?.children?.flatMap((t) => t.id === e.id || !t.data.diff?.enabled || !ji(t.data.diff?.value) ? [] : [Math.abs(t.data.diff.value)]) ?? [], i = r.length ? Math.max(...r) : 0, a = Math.abs(n) > i, o = n < 0, s = o ? Ai : ki, c = e.data.diff?.indicator;
1966
+ c === "inverse" ? s = o ? ki : Ai : c === "none" ? s = "var(--link-color)" : c === "custom" && (s = e.data.diff?.customIndicator?.color ?? "var(--link-color)");
1967
1967
  let l = a ? 2 : 1;
1968
- V(this).style("stroke", s).style("stroke-width", l);
1968
+ U(this).style("stroke", s).style("stroke-width", l);
1969
1969
  }
1970
- var Vi = (e, t) => {
1970
+ var zi = (e, t) => {
1971
1971
  let n = {
1972
- ...U.labelStyle,
1972
+ ...G.labelStyle,
1973
1973
  ...t.treeChartSettings.nodeLayout?.labelStyle,
1974
- fontSize: t.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? U.labelStyle?.fontSize
1974
+ fontSize: t.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? G.labelStyle?.fontSize
1975
1975
  }, r = {
1976
- ...U.valueStyle,
1976
+ ...G.valueStyle,
1977
1977
  ...t.treeChartSettings.nodeLayout?.valueStyle,
1978
- fontSize: t.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? U.valueStyle?.fontSize
1978
+ fontSize: t.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? G.valueStyle?.fontSize
1979
1979
  }, i = {
1980
- ...W.change?.styling,
1981
- ...W.change?.styling?.fontStyle,
1980
+ ...K.change?.styling,
1981
+ ...K.change?.styling?.fontStyle,
1982
1982
  ...t.treeChartSettings.nodeLayout?.slots?.change,
1983
- fontSize: t.treeChartSettings.nodeLayout?.slots?.change?.fontSize ?? W.change?.styling?.fontSize
1983
+ fontSize: t.treeChartSettings.nodeLayout?.slots?.change?.fontSize ?? K.change?.styling?.fontSize
1984
1984
  }, a = {
1985
- ...W.diff?.styling,
1986
- ...W.diff?.styling?.fontStyle,
1985
+ ...K.diff?.styling,
1986
+ ...K.diff?.styling?.fontStyle,
1987
1987
  ...t.treeChartSettings.nodeLayout?.slots?.diff,
1988
- fontSize: t.treeChartSettings.nodeLayout?.slots?.diff?.fontSize ?? W.diff?.styling?.fontSize
1988
+ fontSize: t.treeChartSettings.nodeLayout?.slots?.diff?.fontSize ?? K.diff?.styling?.fontSize
1989
1989
  };
1990
1990
  return `
1991
1991
  #${e} {
@@ -2113,68 +2113,68 @@ var Vi = (e, t) => {
2113
2113
  }
2114
2114
 
2115
2115
  .positive {
2116
- color: ${ji};
2116
+ color: ${ki};
2117
2117
  background-color: #e4fae8;
2118
2118
  }
2119
2119
 
2120
2120
  .negative {
2121
- color: ${Mi};
2121
+ color: ${Ai};
2122
2122
  background-color: #fcecec;
2123
2123
  }
2124
2124
  }
2125
2125
  }`;
2126
- }, Hi = {
2126
+ }, Bi = {
2127
2127
  name: "KPI Change",
2128
- ...U,
2129
- getNodeContent: Ri,
2130
- getButtonContent: zi,
2131
- linkUpdate: Bi,
2132
- getCSS: Vi,
2128
+ ...G,
2129
+ getNodeContent: Ii,
2130
+ getButtonContent: Li,
2131
+ linkUpdate: Ri,
2132
+ getCSS: zi,
2133
2133
  width: 180,
2134
2134
  sizes: (e) => {
2135
2135
  let t = {
2136
- ...W.diff?.styling,
2137
- ...W.diff?.styling?.fontStyle,
2136
+ ...K.diff?.styling,
2137
+ ...K.diff?.styling?.fontStyle,
2138
2138
  ...e.treeChartSettings.nodeLayout?.slots?.diff,
2139
- fontSize: e.treeChartSettings.nodeLayout?.slots?.diff?.fontSize ?? W.diff?.styling?.fontSize
2139
+ fontSize: e.treeChartSettings.nodeLayout?.slots?.diff?.fontSize ?? K.diff?.styling?.fontSize
2140
2140
  }, n = {
2141
- ...U.labelStyle,
2141
+ ...G.labelStyle,
2142
2142
  ...e.treeChartSettings.nodeLayout?.labelStyle,
2143
- fontSize: e.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? U.labelStyle?.fontSize
2143
+ fontSize: e.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? G.labelStyle?.fontSize
2144
2144
  }, r = {
2145
- ...U.valueStyle,
2145
+ ...G.valueStyle,
2146
2146
  ...e.treeChartSettings.nodeLayout?.valueStyle,
2147
- fontSize: e.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? U.valueStyle?.fontSize
2147
+ fontSize: e.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? G.valueStyle?.fontSize
2148
2148
  };
2149
2149
  return {
2150
- label: Math.ceil(A(n.fontSize)) + 8,
2151
- value: Math.ceil(A(r.fontSize)) + 8,
2152
- diff: Math.ceil(A(t.fontSize)) + 16
2150
+ label: Math.ceil(k(n.fontSize)) + 8,
2151
+ value: Math.ceil(k(r.fontSize)) + 8,
2152
+ diff: Math.ceil(k(t.fontSize)) + 16
2153
2153
  };
2154
2154
  },
2155
2155
  height: (e, n) => {
2156
2156
  let r = 20;
2157
2157
  return r += n?.label ?? 0, r += n?.value ?? 0, (e.data.diff ?? t.diff.defaults)?.enabled && (r += n?.diff ?? 0), r;
2158
2158
  }
2159
- }, G = c[o.Basic], Ui = (e) => {
2159
+ }, q = o[i.Basic], Vi = (e) => {
2160
2160
  if (e.id === "__root__") return null;
2161
2161
  let t = "", n = "";
2162
- e.data.indicator === "custom" && (e.data.customIndicator?.color && (t = `color: ${e.data.customIndicator.color};`), e.data.customIndicator?.icon && (n = `<span class="value-icon">${_.sanitize(e.data.customIndicator.icon)}</span>`));
2163
- let r = e.data.value ? `<div class="value" style="${t}"><span class="value-label">${_.sanitize(e.data.value.label)}</span>${n}</div>` : "", i = [];
2162
+ e.data.indicator === "custom" && (e.data.customIndicator?.color && (t = `color: ${e.data.customIndicator.color};`), e.data.customIndicator?.icon && (n = `<span class="value-icon">${O.sanitize(e.data.customIndicator.icon)}</span>`));
2163
+ let r = e.data.value ? `<div class="value" style="${t}"><span class="value-label">${O.sanitize(e.data.value.label)}</span>${n}</div>` : "", i = [];
2164
2164
  return e.data._upToTheRootHighlighted && i.push("node-highlight"), `
2165
2165
  <div class="node-content layout-b ${i.join(" ")}">
2166
- <div class="label">${_.sanitize(e.data.label)}</div>
2166
+ <div class="label">${O.sanitize(e.data.label)}</div>
2167
2167
  ${r}
2168
2168
  </div>`;
2169
- }, Wi = (e, t) => {
2169
+ }, Hi = (e, t) => {
2170
2170
  let n = {
2171
- ...G.labelStyle,
2171
+ ...q.labelStyle,
2172
2172
  ...t.treeChartSettings.nodeLayout?.labelStyle,
2173
- fontSize: t.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? G.labelStyle?.fontSize
2173
+ fontSize: t.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? q.labelStyle?.fontSize
2174
2174
  }, r = {
2175
- ...G.valueStyle,
2175
+ ...q.valueStyle,
2176
2176
  ...t.treeChartSettings.nodeLayout?.valueStyle,
2177
- fontSize: t.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? G.valueStyle?.fontSize
2177
+ fontSize: t.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? q.valueStyle?.fontSize
2178
2178
  };
2179
2179
  return `
2180
2180
  #${e} {
@@ -2218,56 +2218,56 @@ var Vi = (e, t) => {
2218
2218
  }
2219
2219
  }
2220
2220
  }`;
2221
- }, Gi = {
2221
+ }, Ui = {
2222
2222
  name: "Basic",
2223
- ...G,
2224
- getNodeContent: Ui,
2225
- getCSS: Wi,
2223
+ ...q,
2224
+ getNodeContent: Vi,
2225
+ getCSS: Hi,
2226
2226
  width: 140,
2227
2227
  sizes: (e) => {
2228
2228
  let t = {
2229
- ...G.labelStyle,
2229
+ ...q.labelStyle,
2230
2230
  ...e.treeChartSettings.nodeLayout?.labelStyle,
2231
- fontSize: e.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? G.labelStyle?.fontSize
2231
+ fontSize: e.treeChartSettings.nodeLayout?.labelStyle?.fontSize ?? q.labelStyle?.fontSize
2232
2232
  }, n = {
2233
- ...G.valueStyle,
2233
+ ...q.valueStyle,
2234
2234
  ...e.treeChartSettings.nodeLayout?.valueStyle,
2235
- fontSize: e.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? G.valueStyle?.fontSize
2235
+ fontSize: e.treeChartSettings.nodeLayout?.valueStyle?.fontSize ?? q.valueStyle?.fontSize
2236
2236
  };
2237
2237
  return {
2238
- label: A(t.fontSize) + 8,
2239
- value: A(n.fontSize) + 8
2238
+ label: k(t.fontSize) + 8,
2239
+ value: k(n.fontSize) + 8
2240
2240
  };
2241
2241
  },
2242
2242
  height: (e, t) => {
2243
2243
  let n = 8 + (t?.label ?? 0);
2244
2244
  return e.data.value && (n += 8 + (t?.value ?? 0)), n;
2245
2245
  }
2246
- }, Ki = {
2247
- [o.KPIChange]: Hi,
2248
- [o.Basic]: Gi
2249
- }, qi = { passive: !1 }, Ji = {
2246
+ }, Wi = {
2247
+ [i.KPIChange]: Bi,
2248
+ [i.Basic]: Ui
2249
+ }, Gi = { passive: !1 }, Ki = {
2250
2250
  capture: !0,
2251
2251
  passive: !1
2252
2252
  };
2253
- function Yi(e) {
2253
+ function qi(e) {
2254
2254
  e.stopImmediatePropagation();
2255
2255
  }
2256
- function K(e) {
2256
+ function Ji(e) {
2257
2257
  e.preventDefault(), e.stopImmediatePropagation();
2258
2258
  }
2259
- function Xi(e) {
2260
- var t = e.document.documentElement, n = V(e).on("dragstart.drag", K, Ji);
2261
- "onselectstart" in t ? n.on("selectstart.drag", K, Ji) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
2259
+ function Yi(e) {
2260
+ var t = e.document.documentElement, n = U(e).on("dragstart.drag", Ji, Ki);
2261
+ "onselectstart" in t ? n.on("selectstart.drag", Ji, Ki) : (t.__noselect = t.style.MozUserSelect, t.style.MozUserSelect = "none");
2262
2262
  }
2263
- function Zi(e, t) {
2264
- var n = e.document.documentElement, r = V(e).on("dragstart.drag", null);
2265
- t && (r.on("click.drag", K, Ji), setTimeout(function() {
2263
+ function Xi(e, t) {
2264
+ var n = e.document.documentElement, r = U(e).on("dragstart.drag", null);
2265
+ t && (r.on("click.drag", Ji, Ki), setTimeout(function() {
2266
2266
  r.on("click.drag", null);
2267
2267
  }, 0)), "onselectstart" in n ? r.on("selectstart.drag", null) : (n.style.MozUserSelect = n.__noselect, delete n.__noselect);
2268
2268
  }
2269
- var Qi = (e) => () => e;
2270
- function $i(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
2269
+ var Zi = (e) => () => e;
2270
+ function Qi(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a, x: o, y: s, dx: c, dy: l, dispatch: u }) {
2271
2271
  Object.defineProperties(this, {
2272
2272
  type: {
2273
2273
  value: e,
@@ -2322,65 +2322,65 @@ function $i(e, { sourceEvent: t, subject: n, target: r, identifier: i, active: a
2322
2322
  _: { value: u }
2323
2323
  });
2324
2324
  }
2325
- $i.prototype.on = function() {
2325
+ Qi.prototype.on = function() {
2326
2326
  var e = this._.on.apply(this._, arguments);
2327
2327
  return e === this._ ? this : e;
2328
- }, tt();
2329
- function ea(e) {
2328
+ }, $e();
2329
+ function $i(e) {
2330
2330
  return !e.ctrlKey && !e.button;
2331
2331
  }
2332
- function ta() {
2332
+ function ea() {
2333
2333
  return this.parentNode;
2334
2334
  }
2335
- function na(e, t) {
2335
+ function ta(e, t) {
2336
2336
  return t ?? {
2337
2337
  x: e.x,
2338
2338
  y: e.y
2339
2339
  };
2340
2340
  }
2341
- function ra() {
2341
+ function na() {
2342
2342
  return navigator.maxTouchPoints || "ontouchstart" in this;
2343
2343
  }
2344
- function ia() {
2345
- var e = ea, t = ta, n = na, r = ra, i = {}, a = et("start", "drag", "end"), o = 0, s, c, l, u, d = 0;
2344
+ function ra() {
2345
+ var e = $i, t = ea, n = ta, r = na, i = {}, a = Qe("start", "drag", "end"), o = 0, s, c, l, u, d = 0;
2346
2346
  function f(e) {
2347
- e.on("mousedown.drag", p).filter(r).on("touchstart.drag", g).on("touchmove.drag", _, qi).on("touchend.drag touchcancel.drag", v).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2347
+ e.on("mousedown.drag", p).filter(r).on("touchstart.drag", g).on("touchmove.drag", _, Gi).on("touchend.drag touchcancel.drag", v).style("touch-action", "none").style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
2348
2348
  }
2349
2349
  function p(n, r) {
2350
2350
  if (!(u || !e.call(this, n, r))) {
2351
2351
  var i = y(this, t.call(this, n, r), n, r, "mouse");
2352
- i && (V(n.view).on("mousemove.drag", m, Ji).on("mouseup.drag", h, Ji), Xi(n.view), Yi(n), l = !1, s = n.clientX, c = n.clientY, i("start", n));
2352
+ i && (U(n.view).on("mousemove.drag", m, Ki).on("mouseup.drag", h, Ki), Yi(n.view), qi(n), l = !1, s = n.clientX, c = n.clientY, i("start", n));
2353
2353
  }
2354
2354
  }
2355
2355
  function m(e) {
2356
- if (K(e), !l) {
2356
+ if (Ji(e), !l) {
2357
2357
  var t = e.clientX - s, n = e.clientY - c;
2358
2358
  l = t * t + n * n > d;
2359
2359
  }
2360
2360
  i.mouse("drag", e);
2361
2361
  }
2362
2362
  function h(e) {
2363
- V(e.view).on("mousemove.drag mouseup.drag", null), Zi(e.view, l), K(e), i.mouse("end", e);
2363
+ U(e.view).on("mousemove.drag mouseup.drag", null), Xi(e.view, l), Ji(e), i.mouse("end", e);
2364
2364
  }
2365
2365
  function g(n, r) {
2366
2366
  if (e.call(this, n, r)) {
2367
2367
  var i = n.changedTouches, a = t.call(this, n, r), o = i.length, s, c;
2368
- for (s = 0; s < o; ++s) (c = y(this, a, n, r, i[s].identifier, i[s])) && (Yi(n), c("start", n, i[s]));
2368
+ for (s = 0; s < o; ++s) (c = y(this, a, n, r, i[s].identifier, i[s])) && (qi(n), c("start", n, i[s]));
2369
2369
  }
2370
2370
  }
2371
2371
  function _(e) {
2372
2372
  var t = e.changedTouches, n = t.length, r, a;
2373
- for (r = 0; r < n; ++r) (a = i[t[r].identifier]) && (K(e), a("drag", e, t[r]));
2373
+ for (r = 0; r < n; ++r) (a = i[t[r].identifier]) && (Ji(e), a("drag", e, t[r]));
2374
2374
  }
2375
2375
  function v(e) {
2376
2376
  var t = e.changedTouches, n = t.length, r, a;
2377
2377
  for (u && clearTimeout(u), u = setTimeout(function() {
2378
2378
  u = null;
2379
- }, 500), r = 0; r < n; ++r) (a = i[t[r].identifier]) && (Yi(e), a("end", e, t[r]));
2379
+ }, 500), r = 0; r < n; ++r) (a = i[t[r].identifier]) && (qi(e), a("end", e, t[r]));
2380
2380
  }
2381
2381
  function y(e, t, r, s, c, l) {
2382
- var u = a.copy(), d = H(l || r, t), p, m, h;
2383
- if ((h = n.call(e, new $i("beforestart", {
2382
+ var u = a.copy(), d = W(l || r, t), p, m, h;
2383
+ if ((h = n.call(e, new Qi("beforestart", {
2384
2384
  sourceEvent: r,
2385
2385
  target: f,
2386
2386
  identifier: c,
@@ -2398,10 +2398,10 @@ function ia() {
2398
2398
  break;
2399
2399
  case "end": delete i[c], --o;
2400
2400
  case "drag":
2401
- d = H(l || a, t), _ = o;
2401
+ d = W(l || a, t), _ = o;
2402
2402
  break;
2403
2403
  }
2404
- u.call(r, e, new $i(r, {
2404
+ u.call(r, e, new Qi(r, {
2405
2405
  sourceEvent: a,
2406
2406
  subject: h,
2407
2407
  target: f,
@@ -2416,13 +2416,13 @@ function ia() {
2416
2416
  };
2417
2417
  }
2418
2418
  return f.filter = function(t) {
2419
- return arguments.length ? (e = typeof t == "function" ? t : Qi(!!t), f) : e;
2419
+ return arguments.length ? (e = typeof t == "function" ? t : Zi(!!t), f) : e;
2420
2420
  }, f.container = function(e) {
2421
- return arguments.length ? (t = typeof e == "function" ? e : Qi(e), f) : t;
2421
+ return arguments.length ? (t = typeof e == "function" ? e : Zi(e), f) : t;
2422
2422
  }, f.subject = function(e) {
2423
- return arguments.length ? (n = typeof e == "function" ? e : Qi(e), f) : n;
2423
+ return arguments.length ? (n = typeof e == "function" ? e : Zi(e), f) : n;
2424
2424
  }, f.touchable = function(e) {
2425
- return arguments.length ? (r = typeof e == "function" ? e : Qi(!!e), f) : r;
2425
+ return arguments.length ? (r = typeof e == "function" ? e : Zi(!!e), f) : r;
2426
2426
  }, f.on = function() {
2427
2427
  var e = a.on.apply(a, arguments);
2428
2428
  return e === a ? f : e;
@@ -2430,7 +2430,7 @@ function ia() {
2430
2430
  return arguments.length ? (d = (e = +e) * e, f) : Math.sqrt(d);
2431
2431
  }, f;
2432
2432
  }
2433
- var q = 0, aa = 0, oa = 0, sa = 1e3, ca, la, ua = 0, da = 0, fa = 0, pa = typeof performance == "object" && performance.now ? performance : Date, ma = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
2433
+ var ia = 0, aa = 0, oa = 0, sa = 1e3, ca, la, ua = 0, da = 0, fa = 0, pa = typeof performance == "object" && performance.now ? performance : Date, ma = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
2434
2434
  setTimeout(e, 17);
2435
2435
  };
2436
2436
  function ha() {
@@ -2457,16 +2457,16 @@ function va(e, t, n) {
2457
2457
  return r.restart(e, t, n), r;
2458
2458
  }
2459
2459
  function ya() {
2460
- ha(), ++q;
2460
+ ha(), ++ia;
2461
2461
  for (var e = ca, t; e;) (t = da - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
2462
- --q;
2462
+ --ia;
2463
2463
  }
2464
2464
  function ba() {
2465
- da = (ua = pa.now()) + fa, q = aa = 0;
2465
+ da = (ua = pa.now()) + fa, ia = aa = 0;
2466
2466
  try {
2467
2467
  ya();
2468
2468
  } finally {
2469
- q = 0, Sa(), da = 0;
2469
+ ia = 0, Sa(), da = 0;
2470
2470
  }
2471
2471
  }
2472
2472
  function xa() {
@@ -2478,7 +2478,7 @@ function Sa() {
2478
2478
  la = e, Ca(r);
2479
2479
  }
2480
2480
  function Ca(e) {
2481
- q || (aa &&= clearTimeout(aa), e - da > 24 ? (e < Infinity && (aa = setTimeout(ba, e - pa.now() - fa)), oa &&= clearInterval(oa)) : (oa ||= (ua = pa.now(), setInterval(xa, sa)), q = 1, ma(ba)));
2481
+ ia || (aa &&= clearTimeout(aa), e - da > 24 ? (e < Infinity && (aa = setTimeout(ba, e - pa.now() - fa)), oa &&= clearInterval(oa)) : (oa ||= (ua = pa.now(), setInterval(xa, sa)), ia = 1, ma(ba)));
2482
2482
  }
2483
2483
  function wa(e, t, n) {
2484
2484
  var r = new _a();
@@ -2486,8 +2486,8 @@ function wa(e, t, n) {
2486
2486
  r.stop(), e(n + t);
2487
2487
  }, t, n), r;
2488
2488
  }
2489
- Me(), ce(), tt();
2490
- var Ta = et("start", "end", "cancel", "interrupt"), Ea = [];
2489
+ Ae(), j(), $e();
2490
+ var Ta = Qe("start", "end", "cancel", "interrupt"), Ea = [];
2491
2491
  function Da(e, t, n, r, i, a) {
2492
2492
  var o = e.__transition;
2493
2493
  if (!o) e.__transition = {};
@@ -2620,9 +2620,9 @@ function Fa(e, t, n) {
2620
2620
  }
2621
2621
  function Ia(e, t) {
2622
2622
  var n;
2623
- return (typeof t == "number" ? ge : t instanceof je ? me : (n = je(t)) ? (t = n, me) : _e)(e, t);
2623
+ return (typeof t == "number" ? fe : t instanceof ke ? le : (n = ke(t)) ? (t = n, le) : se)(e, t);
2624
2624
  }
2625
- ce();
2625
+ j();
2626
2626
  function La(e) {
2627
2627
  return function() {
2628
2628
  this.removeAttribute(e);
@@ -2662,7 +2662,7 @@ function Ha(e, t, n) {
2662
2662
  };
2663
2663
  }
2664
2664
  function Ua(e, t) {
2665
- var n = Pn(e), r = n === "transform" ? ae : Ia;
2665
+ var n = Mn(e), r = n === "transform" ? ue : Ia;
2666
2666
  return this.attrTween(e, typeof t == "function" ? (n.local ? Ha : Va)(n, r, Fa(this, "attr." + e, t)) : t == null ? (n.local ? Ra : La)(n) : (n.local ? Ba : za)(n, r, t));
2667
2667
  }
2668
2668
  function Wa(e, t) {
@@ -2696,7 +2696,7 @@ function Ja(e, t) {
2696
2696
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
2697
2697
  if (t == null) return this.tween(n, null);
2698
2698
  if (typeof t != "function") throw Error();
2699
- var r = Pn(e);
2699
+ var r = Mn(e);
2700
2700
  return this.tween(n, (r.local ? Ka : qa)(r, t));
2701
2701
  }
2702
2702
  function Ya(e, t) {
@@ -2749,7 +2749,7 @@ function io(e) {
2749
2749
  return this.each(ro(this._id, e));
2750
2750
  }
2751
2751
  function ao(e) {
2752
- typeof e != "function" && (e = Kn(e));
2752
+ typeof e != "function" && (e = Wn(e));
2753
2753
  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);
2754
2754
  return new X(r, this._parents, this._name, this._id);
2755
2755
  }
@@ -2788,28 +2788,28 @@ function fo() {
2788
2788
  }
2789
2789
  function po(e) {
2790
2790
  var t = this._name, n = this._id;
2791
- typeof e != "function" && (e = zn(e));
2791
+ typeof e != "function" && (e = Ln(e));
2792
2792
  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, Da(l[f], t, n, f, l, Y(u, n)));
2793
2793
  return new X(a, this._parents, t, n);
2794
2794
  }
2795
2795
  function mo(e) {
2796
2796
  var t = this._name, n = this._id;
2797
- typeof e != "function" && (e = Un(e));
2797
+ typeof e != "function" && (e = Vn(e));
2798
2798
  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]) {
2799
2799
  for (var f = e.call(u, u.__data__, d, c), p, m = Y(u, n), h = 0, g = f.length; h < g; ++h) (p = f[h]) && Da(p, t, n, h, f, m);
2800
2800
  a.push(f), o.push(u);
2801
2801
  }
2802
2802
  return new X(a, o, t, n);
2803
2803
  }
2804
- var ho = B.prototype.constructor;
2804
+ var ho = H.prototype.constructor;
2805
2805
  function go() {
2806
2806
  return new ho(this._groups, this._parents);
2807
2807
  }
2808
- ce();
2808
+ j();
2809
2809
  function _o(e, t) {
2810
2810
  var n, r, i;
2811
2811
  return function() {
2812
- var a = R(this, e), o = (this.style.removeProperty(e), R(this, e));
2812
+ var a = B(this, e), o = (this.style.removeProperty(e), B(this, e));
2813
2813
  return a === o ? null : a === n && o === r ? i : i = t(n = a, r = o);
2814
2814
  };
2815
2815
  }
@@ -2821,15 +2821,15 @@ function vo(e) {
2821
2821
  function yo(e, t, n) {
2822
2822
  var r, i = n + "", a;
2823
2823
  return function() {
2824
- var o = R(this, e);
2824
+ var o = B(this, e);
2825
2825
  return o === i ? null : o === r ? a : a = t(r = o, n);
2826
2826
  };
2827
2827
  }
2828
2828
  function bo(e, t, n) {
2829
2829
  var r, i, a;
2830
2830
  return function() {
2831
- var o = R(this, e), s = n(this), c = s + "";
2832
- return s ?? (c = s = (this.style.removeProperty(e), R(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
2831
+ var o = B(this, e), s = n(this), c = s + "";
2832
+ return s ?? (c = s = (this.style.removeProperty(e), B(this, e))), o === c ? null : o === r && c === i ? a : (i = c, a = t(r = o, s));
2833
2833
  };
2834
2834
  }
2835
2835
  function xo(e, t) {
@@ -2840,7 +2840,7 @@ function xo(e, t) {
2840
2840
  };
2841
2841
  }
2842
2842
  function So(e, t, n) {
2843
- var r = (e += "") == "transform" ? ue : Ia;
2843
+ var r = (e += "") == "transform" ? oe : Ia;
2844
2844
  return t == null ? this.styleTween(e, _o(e, r)).on("end.style." + e, vo(e)) : typeof t == "function" ? this.styleTween(e, bo(e, r, Fa(this, "style." + e, t))).each(xo(this._id, e)) : this.styleTween(e, yo(e, r, t), n).on("end.style." + e, null);
2845
2845
  }
2846
2846
  function Co(e, t, n) {
@@ -2926,12 +2926,12 @@ function X(e, t, n, r) {
2926
2926
  this._groups = e, this._parents = t, this._name = n, this._id = r;
2927
2927
  }
2928
2928
  function Fo(e) {
2929
- return B().transition(e);
2929
+ return H().transition(e);
2930
2930
  }
2931
2931
  function Io() {
2932
2932
  return ++Po;
2933
2933
  }
2934
- var Z = B.prototype;
2934
+ var Z = H.prototype;
2935
2935
  X.prototype = Fo.prototype = {
2936
2936
  constructor: X,
2937
2937
  select: po,
@@ -2963,12 +2963,12 @@ X.prototype = Fo.prototype = {
2963
2963
  easeVarying: io,
2964
2964
  end: No,
2965
2965
  [Symbol.iterator]: Z[Symbol.iterator]
2966
- }, se();
2966
+ }, pe();
2967
2967
  var Lo = {
2968
2968
  time: null,
2969
2969
  delay: 0,
2970
2970
  duration: 250,
2971
- ease: le
2971
+ ease: de
2972
2972
  };
2973
2973
  function Ro(e, t) {
2974
2974
  for (var n; !(n = e.__transition) || !(n = n[t]);) if (!(e = e.parentNode)) throw Error(`transition ${t} not found`);
@@ -2980,7 +2980,7 @@ function zo(e) {
2980
2980
  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]) && Da(c, e, t, l, o, n || Ro(c, t));
2981
2981
  return new X(r, this._parents, e, t);
2982
2982
  }
2983
- B.prototype.interrupt = ja, B.prototype.transition = zo;
2983
+ H.prototype.interrupt = ja, H.prototype.transition = zo;
2984
2984
  var Bo = (e) => () => e;
2985
2985
  function Vo(e, { sourceEvent: t, target: n, transform: r, dispatch: i }) {
2986
2986
  Object.defineProperties(this, {
@@ -3058,7 +3058,7 @@ function Wo(e) {
3058
3058
  function Go(e) {
3059
3059
  e.preventDefault(), e.stopImmediatePropagation();
3060
3060
  }
3061
- tt(), ce();
3061
+ $e(), j();
3062
3062
  function Ko(e) {
3063
3063
  return (!e.ctrlKey || e.type === "wheel") && !e.button;
3064
3064
  }
@@ -3080,9 +3080,9 @@ function Zo(e, t, n) {
3080
3080
  return e.translate(i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), o > a ? (a + o) / 2 : Math.min(0, a) || Math.max(0, o));
3081
3081
  }
3082
3082
  function Qo() {
3083
- var e = Ko, t = qo, n = Zo, r = Yo, i = Xo, a = [0, Infinity], o = [[-Infinity, -Infinity], [Infinity, Infinity]], s = 250, c = fe, l = et("start", "zoom", "end"), u, d, f, p = 500, m = 150, h = 0, g = 10;
3083
+ var e = Ko, t = qo, n = Zo, r = Yo, i = Xo, a = [0, Infinity], o = [[-Infinity, -Infinity], [Infinity, Infinity]], s = 250, c = M, l = Qe("start", "zoom", "end"), u, d, f, p = 500, m = 150, h = 0, g = 10;
3084
3084
  function _(e) {
3085
- e.property("__zoom", Jo).on("wheel.zoom", w, { passive: !1 }).on("mousedown.zoom", T).on("dblclick.zoom", E).filter(i).on("touchstart.zoom", ee).on("touchmove.zoom", te).on("touchend.zoom touchcancel.zoom", D).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3085
+ e.property("__zoom", Jo).on("wheel.zoom", w, { passive: !1 }).on("mousedown.zoom", T).on("dblclick.zoom", E).filter(i).on("touchstart.zoom", D).on("touchmove.zoom", ee).on("touchend.zoom touchcancel.zoom", O).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
3086
3086
  }
3087
3087
  _.transform = function(e, t, n, r) {
3088
3088
  var i = e.selection ? e.selection() : e;
@@ -3155,7 +3155,7 @@ function Qo() {
3155
3155
  return --this.active === 0 && (delete this.that.__zooming, this.emit("end")), this;
3156
3156
  },
3157
3157
  emit: function(e) {
3158
- var t = V(this.that).datum();
3158
+ var t = U(this.that).datum();
3159
3159
  l.call(e, this.that, new Vo(e, {
3160
3160
  sourceEvent: this.sourceEvent,
3161
3161
  target: _,
@@ -3167,7 +3167,7 @@ function Qo() {
3167
3167
  };
3168
3168
  function w(t, ...i) {
3169
3169
  if (!e.apply(this, arguments)) return;
3170
- var s = S(this, i).event(t), c = this.__zoom, l = Math.max(a[0], Math.min(a[1], c.k * 2 ** r.apply(this, arguments))), u = H(t);
3170
+ var s = S(this, i).event(t), c = this.__zoom, l = Math.max(a[0], Math.min(a[1], c.k * 2 ** r.apply(this, arguments))), u = W(t);
3171
3171
  if (s.wheel) (s.mouse[0][0] !== u[0] || s.mouse[0][1] !== u[1]) && (s.mouse[1] = c.invert(s.mouse[0] = u)), clearTimeout(s.wheel);
3172
3172
  else if (c.k === l) return;
3173
3173
  else s.mouse = [u, c.invert(u)], Aa(this), s.start();
@@ -3178,29 +3178,29 @@ function Qo() {
3178
3178
  }
3179
3179
  function T(t, ...r) {
3180
3180
  if (f || !e.apply(this, arguments)) return;
3181
- var i = t.currentTarget, a = S(this, r, !0).event(t), s = V(t.view).on("mousemove.zoom", d, !0).on("mouseup.zoom", p, !0), c = H(t, i), l = t.clientX, u = t.clientY;
3182
- Xi(t.view), Wo(t), a.mouse = [c, this.__zoom.invert(c)], Aa(this), a.start();
3181
+ var i = t.currentTarget, a = S(this, r, !0).event(t), s = U(t.view).on("mousemove.zoom", d, !0).on("mouseup.zoom", p, !0), c = W(t, i), l = t.clientX, u = t.clientY;
3182
+ Yi(t.view), Wo(t), a.mouse = [c, this.__zoom.invert(c)], Aa(this), a.start();
3183
3183
  function d(e) {
3184
3184
  if (Go(e), !a.moved) {
3185
3185
  var t = e.clientX - l, r = e.clientY - u;
3186
3186
  a.moved = t * t + r * r > h;
3187
3187
  }
3188
- a.event(e).zoom("mouse", n(y(a.that.__zoom, a.mouse[0] = H(e, i), a.mouse[1]), a.extent, o));
3188
+ a.event(e).zoom("mouse", n(y(a.that.__zoom, a.mouse[0] = W(e, i), a.mouse[1]), a.extent, o));
3189
3189
  }
3190
3190
  function p(e) {
3191
- s.on("mousemove.zoom mouseup.zoom", null), Zi(e.view, a.moved), Go(e), a.event(e).end();
3191
+ s.on("mousemove.zoom mouseup.zoom", null), Xi(e.view, a.moved), Go(e), a.event(e).end();
3192
3192
  }
3193
3193
  }
3194
3194
  function E(r, ...i) {
3195
3195
  if (e.apply(this, arguments)) {
3196
- var a = this.__zoom, c = H(r.changedTouches ? r.changedTouches[0] : r, this), l = a.invert(c), u = a.k * (r.shiftKey ? .5 : 2), d = n(y(v(a, u), c, l), t.apply(this, i), o);
3197
- Go(r), s > 0 ? V(this).transition().duration(s).call(x, d, c, r) : V(this).call(_.transform, d, c, r);
3196
+ var a = this.__zoom, c = W(r.changedTouches ? r.changedTouches[0] : r, this), l = a.invert(c), u = a.k * (r.shiftKey ? .5 : 2), d = n(y(v(a, u), c, l), t.apply(this, i), o);
3197
+ Go(r), s > 0 ? U(this).transition().duration(s).call(x, d, c, r) : U(this).call(_.transform, d, c, r);
3198
3198
  }
3199
3199
  }
3200
- function ee(t, ...n) {
3200
+ function D(t, ...n) {
3201
3201
  if (e.apply(this, arguments)) {
3202
3202
  var r = t.touches, i = r.length, a = S(this, n, t.changedTouches.length === i).event(t), o, s, c, l;
3203
- for (Wo(t), s = 0; s < i; ++s) c = r[s], l = H(c, this), l = [
3203
+ for (Wo(t), s = 0; s < i; ++s) c = r[s], l = W(c, this), l = [
3204
3204
  l,
3205
3205
  this.__zoom.invert(l),
3206
3206
  c.identifier
@@ -3210,10 +3210,10 @@ function Qo() {
3210
3210
  }, p)), Aa(this), a.start());
3211
3211
  }
3212
3212
  }
3213
- function te(e, ...t) {
3213
+ function ee(e, ...t) {
3214
3214
  if (this.__zooming) {
3215
3215
  var r = S(this, t).event(e), i = e.changedTouches, a = i.length, s, c, l, u;
3216
- for (Go(e), s = 0; s < a; ++s) c = i[s], l = H(c, this), r.touch0 && r.touch0[2] === c.identifier ? r.touch0[0] = l : r.touch1 && r.touch1[2] === c.identifier && (r.touch1[0] = l);
3216
+ for (Go(e), s = 0; s < a; ++s) c = i[s], l = W(c, this), r.touch0 && r.touch0[2] === c.identifier ? r.touch0[0] = l : r.touch1 && r.touch1[2] === c.identifier && (r.touch1[0] = l);
3217
3217
  if (c = r.that.__zoom, r.touch1) {
3218
3218
  var d = r.touch0[0], f = r.touch0[1], p = r.touch1[0], m = r.touch1[1], h = (h = p[0] - d[0]) * h + (h = p[1] - d[1]) * h, g = (g = m[0] - f[0]) * g + (g = m[1] - f[1]) * g;
3219
3219
  c = v(c, Math.sqrt(h / g)), l = [(d[0] + p[0]) / 2, (d[1] + p[1]) / 2], u = [(f[0] + m[0]) / 2, (f[1] + m[1]) / 2];
@@ -3222,15 +3222,15 @@ function Qo() {
3222
3222
  r.zoom("touch", n(y(c, l, u), r.extent, o));
3223
3223
  }
3224
3224
  }
3225
- function D(e, ...t) {
3225
+ function O(e, ...t) {
3226
3226
  if (this.__zooming) {
3227
3227
  var n = S(this, t).event(e), r = e.changedTouches, i = r.length, a, o;
3228
3228
  for (Wo(e), f && clearTimeout(f), f = setTimeout(function() {
3229
3229
  f = null;
3230
3230
  }, p), a = 0; a < i; ++a) o = r[a], n.touch0 && n.touch0[2] === o.identifier ? delete n.touch0 : n.touch1 && n.touch1[2] === o.identifier && delete n.touch1;
3231
3231
  if (n.touch1 && !n.touch0 && (n.touch0 = n.touch1, delete n.touch1), n.touch0) n.touch0[1] = this.__zoom.invert(n.touch0[0]);
3232
- else if (n.end(), n.taps === 2 && (o = H(o, this), Math.hypot(d[0] - o[0], d[1] - o[1]) < g)) {
3233
- var s = V(this).on("dblclick.zoom");
3232
+ else if (n.end(), n.taps === 2 && (o = W(o, this), Math.hypot(d[0] - o[0], d[1] - o[1]) < g)) {
3233
+ var s = U(this).on("dblclick.zoom");
3234
3234
  s && s.apply(this, arguments);
3235
3235
  }
3236
3236
  }
@@ -3262,7 +3262,7 @@ function Qo() {
3262
3262
  return arguments.length ? (g = +e, _) : g;
3263
3263
  }, _;
3264
3264
  }
3265
- j();
3265
+ ce();
3266
3266
  var $o = (e) => ({
3267
3267
  left: {
3268
3268
  nodeLeftX: () => 0,
@@ -3530,20 +3530,20 @@ var is = () => {
3530
3530
  buttonContent: ns,
3531
3531
  pagingButton: rs,
3532
3532
  nodeUpdate: function() {
3533
- V(this).select(".node-rect").attr("stroke", null).attr("stroke-width", null);
3533
+ U(this).select(".node-rect").attr("stroke", null).attr("stroke-width", null);
3534
3534
  },
3535
3535
  nodeEnter: (e) => e,
3536
3536
  nodeExit: (e) => e,
3537
3537
  linkUpdate: function(e) {
3538
3538
  if (e.data._upToTheRootHighlighted) {
3539
- V(this).style("stroke-width", "var(--border-hover-width)").style("stroke", "var(--border-hover-color)");
3539
+ U(this).style("stroke-width", "var(--border-hover-width)").style("stroke", "var(--border-hover-color)");
3540
3540
  return;
3541
3541
  }
3542
- V(this).style("stroke", null).style("stroke-width", null), e.data._upToTheRootHighlighted && V(this).raise();
3542
+ U(this).style("stroke", null).style("stroke-width", null), e.data._upToTheRootHighlighted && U(this).raise();
3543
3543
  },
3544
3544
  hdiagonal: es,
3545
3545
  diagonal: ts,
3546
- linkGroupArc: k().x((e) => e.x).y((e) => e.y)
3546
+ linkGroupArc: he().x((e) => e.x).y((e) => e.y)
3547
3547
  };
3548
3548
  return e.layoutBindings = $o(e), e;
3549
3549
  }, as = (e) => Math.min(1, 9 / e), os = (e, t, n, r) => {
@@ -3558,35 +3558,35 @@ var is = () => {
3558
3558
  y: d / 2 - h * os(c, l, d / h, a?.y)
3559
3559
  };
3560
3560
  }, cs = (e, t, n) => {
3561
- let r = (0, N.useRef)(e.treeChartSettings?.transform), i = (0, N.useRef)(null);
3561
+ let r = (0, F.useRef)(e.treeChartSettings?.transform), i = (0, F.useRef)(null);
3562
3562
  return i.current = (t) => {
3563
3563
  let r = is(), i = t.treeOptions, a = {
3564
3564
  linkUpdate: r.linkUpdate,
3565
3565
  getButtonContent: r.buttonContent,
3566
- ...Ki[i.layoutPreset]
3566
+ ...Wi[i.layoutPreset]
3567
3567
  }, o = a.sizes ? a.sizes(e) : {}, s = {
3568
3568
  ...a.labelStyle,
3569
3569
  ...e.treeChartSettings?.nodeLayout?.labelStyle,
3570
3570
  fontSize: e.treeChartSettings?.nodeLayout?.labelStyle?.fontSize ?? a.labelStyle?.fontSize
3571
3571
  }, c = {
3572
- ...u,
3572
+ ...l,
3573
3573
  ...e.treeChartSettings?.nodeLayout?.border
3574
3574
  };
3575
3575
  c.enabled === !1 && (c.borderWidth = 0);
3576
- let d = {
3577
- ...f,
3576
+ let f = {
3577
+ ...u,
3578
3578
  ...e.treeChartSettings?.nodeLayout.hoverStyle
3579
- }, p = d.enabled ? d.borderWidth : 0;
3580
- n.nodeWidth((e) => (i.nodeWidth ? i.nodeWidth : typeof a.width == "function" ? a.width(e) : a.width) + (c.borderWidth ?? 0) * 2).nodeHeight((e) => (e.id === "__root__" ? 0 : typeof a.height == "function" ? a.height(e, o) : a.height) + (c.borderWidth ?? 0) * 2).nodeDefaultBackground(e.treeChartSettings?.nodeLayout?.backgroundColor ?? l.backgroundColor).compact(i.compact).layout(i.directionOrigin).padding({
3579
+ }, p = f.enabled ? f.borderWidth : 0;
3580
+ n.nodeWidth((e) => (i.nodeWidth ? i.nodeWidth : typeof a.width == "function" ? a.width(e) : a.width) + (c.borderWidth ?? 0) * 2).nodeHeight((e) => (e.id === "__root__" ? 0 : typeof a.height == "function" ? a.height(e, o) : a.height) + (c.borderWidth ?? 0) * 2).nodeDefaultBackground(e.treeChartSettings?.nodeLayout?.backgroundColor ?? d.backgroundColor).compact(i.compact).layout(i.directionOrigin).padding({
3581
3581
  top: p,
3582
3582
  right: p,
3583
3583
  bottom: p,
3584
3584
  left: p
3585
- }).gridEnabled(i.gridLayoutEnabled).gridRows(i.gridLayoutRows).forceAutoFit(i.forceAutoFit).minFitScale(i.keepFitReadable ? as(A(s.fontSize)) : 0).setActiveNodeCentered(!i.forceAutoFit).duration(i.animate === !1 ? 0 : 400).root(t.root).linkUpdate(a.linkUpdate).buttonContent(a.getButtonContent).container(t.container).nodeContent((e) => a.getNodeContent(e, { config: n.getConfig() })).render({
3585
+ }).gridEnabled(i.gridLayoutEnabled).gridRows(i.gridLayoutRows).forceAutoFit(i.forceAutoFit).minFitScale(i.keepFitReadable ? as(k(s.fontSize)) : 0).setActiveNodeCentered(!i.forceAutoFit).duration(i.animate === !1 ? 0 : 400).root(t.root).linkUpdate(a.linkUpdate).buttonContent(a.getButtonContent).container(t.container).nodeContent((e) => a.getNodeContent(e, { config: n.getConfig() })).render({
3586
3586
  zoomToFit: t.zoomToFit ?? !1,
3587
3587
  transform: t.transform
3588
3588
  });
3589
- }, (0, N.useCallback)((e, n) => {
3589
+ }, (0, F.useCallback)((e, n) => {
3590
3590
  !e || !t.current || i.current?.({
3591
3591
  root: e,
3592
3592
  container: t.current,
@@ -3598,7 +3598,7 @@ var is = () => {
3598
3598
  }, ls = {
3599
3599
  directionOrigin: "top",
3600
3600
  compact: !1,
3601
- layoutPreset: o.Basic,
3601
+ layoutPreset: i.Basic,
3602
3602
  forceAutoFit: !1,
3603
3603
  keepFitReadable: !0,
3604
3604
  animate: !0,
@@ -3606,7 +3606,7 @@ var is = () => {
3606
3606
  gridLayoutEnabled: !1,
3607
3607
  gridLayoutRows: 0
3608
3608
  }, us = (e, t) => {
3609
- let n = t?.isPrintMode ?? !1, r = e.treeChartSettings?.forceAutoFit ?? ls.forceAutoFit, i = {
3609
+ let n = t?.isPrintMode ?? !1, r = e.treeChartSettings?.forceAutoFit ?? ls.forceAutoFit, a = {
3610
3610
  directionOrigin: e.treeChartSettings?.directionOrigin ?? ls.directionOrigin,
3611
3611
  compact: e.treeChartSettings?.compact ?? ls.compact,
3612
3612
  layoutPreset: e.treeChartSettings?.nodeLayout?.preset ?? ls.layoutPreset,
@@ -3619,8 +3619,8 @@ var is = () => {
3619
3619
  gridLayoutRows: e.treeChartSettings.gridLayout?.rows ?? 0
3620
3620
  };
3621
3621
  return {
3622
- treeSettings: i,
3623
- layout: Ki[i.layoutPreset || o.Basic]
3622
+ treeSettings: a,
3623
+ layout: Wi[a.layoutPreset || i.Basic]
3624
3624
  };
3625
3625
  };
3626
3626
  function ds(e) {
@@ -3733,8 +3733,8 @@ ks.prototype = ws.prototype = {
3733
3733
  links: Cs,
3734
3734
  copy: Ts
3735
3735
  };
3736
- var As = ie();
3737
- Fe();
3736
+ var As = re();
3737
+ Ne();
3738
3738
  var { version: js } = {
3739
3739
  name: "d3-flextree",
3740
3740
  version: "2.1.2",
@@ -4034,19 +4034,19 @@ var Ps = (e, t = 0) => (e.y = t, (e.children || []).reduce((t, n) => {
4034
4034
  next: n
4035
4035
  };
4036
4036
  };
4037
- j();
4037
+ ce();
4038
4038
  var $ = {
4039
- selection: B,
4040
- select: V,
4041
- max: Ne,
4042
- min: Ie,
4043
- sum: Pe,
4044
- cumsum: Le,
4045
- tree: xn,
4046
- stratify: ln,
4039
+ selection: H,
4040
+ select: U,
4041
+ max: je,
4042
+ min: Pe,
4043
+ sum: Me,
4044
+ cumsum: Fe,
4045
+ tree: yn,
4046
+ stratify: sn,
4047
4047
  zoom: Qo,
4048
4048
  zoomIdentity: Ho,
4049
- linkHorizontal: k,
4049
+ linkHorizontal: he,
4050
4050
  flextree: Ns
4051
4051
  }, Ks = class {
4052
4052
  stateInternal = {
@@ -4131,7 +4131,7 @@ var $ = {
4131
4131
  };
4132
4132
  }
4133
4133
  extendHierarchyNodePrototype() {
4134
- Xe.prototype.allDescendants || (Xe.prototype.allDescendants = function() {
4134
+ Je.prototype.allDescendants || (Je.prototype.allDescendants = function() {
4135
4135
  let e = [];
4136
4136
  this.each((t) => {
4137
4137
  e.push(t);
@@ -4293,7 +4293,7 @@ var $ = {
4293
4293
  }).remove();
4294
4294
  let d = this, f = r.nodesWrapper.selectAll("g.node").data(o, ({ data: e }) => i.nodeId(e) ?? ""), p = f.enter().append("g").attr("data-brush", (e) => e.data.brush?.key ?? null).attr("class", "node").attr("transform", (n) => n == r.root ? `translate(${e},${t})` : `translate(${i.layoutBindings[i.layout].nodeJoinX(n.parent || n)},${i.layoutBindings[i.layout].nodeJoinY(n.parent || n)})`).classed("draggable droppable", !0).on("click.node", (e, t) => {
4295
4295
  [...e.srcElement.classList].includes("node-button-foreign-object") || i.onNodeClick(t);
4296
- }).call(ia().filter(function(e, t) {
4296
+ }).call(ra().filter(function(e, t) {
4297
4297
  return r.dragEnabled === !0 && t.depth > 0;
4298
4298
  }).on("start", function(e, t) {
4299
4299
  d.onDragStart(this, e, t);
@@ -4438,12 +4438,12 @@ var $ = {
4438
4438
  let r = this.getChartState();
4439
4439
  r.dragNode = n;
4440
4440
  let i = t.subject.width / 2;
4441
- r.dragStartX = t.x - i, r.dragStartY = t.y, r.isDragStarting = !0, V(e).classed("dragging", !0);
4441
+ r.dragStartX = t.x - i, r.dragStartY = t.y, r.isDragStarting = !0, U(e).classed("dragging", !0);
4442
4442
  }
4443
4443
  onDrag(e, t) {
4444
4444
  let n = this.getChartState(), r = this.getConfig();
4445
4445
  if (!n.dragNode) return;
4446
- let i = V(e);
4446
+ let i = U(e);
4447
4447
  if (n.isDragStarting) {
4448
4448
  n.isDragStarting = !1, r.container.classList.add("dragging-active"), i.raise();
4449
4449
  let e = t.subject.descendants(), a = [...e || [], t.subject], o = e.filter((e) => e.data.id !== t.subject.id);
@@ -4459,7 +4459,7 @@ var $ = {
4459
4459
  bottom: t.y + t.subject.height,
4460
4460
  midX: t.x + t.subject.width / 2,
4461
4461
  midY: t.y + t.subject.height / 2
4462
- }, o = ki("g.node:not(.dragging)");
4462
+ }, o = Di("g.node:not(.dragging)");
4463
4463
  o.classed("drop-target", !1), o.filter(function(e) {
4464
4464
  let t = {
4465
4465
  left: e.x,
@@ -4474,7 +4474,7 @@ var $ = {
4474
4474
  this.getConfig().container.classList.remove("dragging-active");
4475
4475
  let n = this.getChartState();
4476
4476
  if (n.dragNode) {
4477
- if (V(e).classed("dragging", !1), !n.dropNode) {
4477
+ if (U(e).classed("dragging", !1), !n.dropNode) {
4478
4478
  this.render();
4479
4479
  return;
4480
4480
  }
@@ -4482,7 +4482,7 @@ var $ = {
4482
4482
  this.render();
4483
4483
  return;
4484
4484
  }
4485
- V(e).remove(), n.dragNode.parent = n.dropNode, n.dragNode.parent && (n.dragNode.parent.children = n.dragNode.parent.children?.filter((e) => e.id !== n.dragNode?.id) || void 0), this.getConfig().onNodeParentChange?.(n.dragNode), n.dropNode = null, n.dragNode = null, this.render();
4485
+ U(e).remove(), n.dragNode.parent = n.dropNode, n.dragNode.parent && (n.dragNode.parent.children = n.dragNode.parent.children?.filter((e) => e.id !== n.dragNode?.id) || void 0), this.getConfig().onNodeParentChange?.(n.dragNode), n.dropNode = null, n.dragNode = null, this.render();
4486
4486
  }
4487
4487
  }
4488
4488
  zoomed(e) {
@@ -4560,12 +4560,12 @@ var $ = {
4560
4560
  let e = this.getChartState();
4561
4561
  e.svg && (e.svg.selectAll("*").remove(), e.svg = null, e.chart = null);
4562
4562
  }
4563
- }, qs = de(), Js = (e, t, n) => {
4563
+ }, qs = ie(), Js = (e, t, n) => {
4564
4564
  let r = String(n);
4565
4565
  return Array.from(e.querySelectorAll(".node[data-brush][data-value]")).find((e) => e.getAttribute("data-brush") === t && e.getAttribute("data-value") === r);
4566
4566
  }, Ys = (e, t, n) => {
4567
- let r = g(), i = (0, N.useCallback)((t) => {
4568
- t.data.brush && r.daedalus.emitEvent(he.Brush, {
4567
+ let r = b(), i = (0, F.useCallback)((t) => {
4568
+ t.data.brush && r.daedalus.emitEvent(A.Brush, {
4569
4569
  data: {
4570
4570
  action: qs.BrushEventAction.Hover,
4571
4571
  data: [{
@@ -4575,8 +4575,8 @@ var $ = {
4575
4575
  },
4576
4576
  emitter: e
4577
4577
  });
4578
- }, [r, e]), a = (0, N.useCallback)((t) => {
4579
- t.data.brush && r.daedalus.emitEvent(he.Brush, {
4578
+ }, [r, e]), a = (0, F.useCallback)((t) => {
4579
+ t.data.brush && r.daedalus.emitEvent(A.Brush, {
4580
4580
  data: {
4581
4581
  action: qs.BrushEventAction.Blur,
4582
4582
  data: [{
@@ -4586,7 +4586,7 @@ var $ = {
4586
4586
  },
4587
4587
  emitter: e
4588
4588
  });
4589
- }, [r, e]), o = (0, N.useRef)(void 0);
4589
+ }, [r, e]), o = (0, F.useRef)(void 0);
4590
4590
  return o.current = (r) => {
4591
4591
  if (r.emitter !== e && !(!t || !n.interactive)) switch (r.data.action) {
4592
4592
  case qs.BrushEventAction.Hover:
@@ -4607,20 +4607,20 @@ var $ = {
4607
4607
  t.querySelectorAll(".node.hovered").forEach((e) => e.classList.remove("hovered"));
4608
4608
  break;
4609
4609
  }
4610
- }, S({
4611
- action: he.Brush,
4610
+ }, _({
4611
+ action: A.Brush,
4612
4612
  handler: ({ payload: e }) => e && o.current?.(e)
4613
4613
  }, []), {
4614
4614
  onTreeNodeHover: i,
4615
4615
  onTreeNodeLeave: a
4616
4616
  };
4617
4617
  }, Xs = (e) => {
4618
- let { variables: t, variablesFetched: r, updateVariable: i } = T();
4618
+ let { variables: t, variablesFetched: r, updateVariable: i } = D();
4619
4619
  return {
4620
- variables: (0, N.useMemo)(() => {
4620
+ variables: (0, F.useMemo)(() => {
4621
4621
  let r = {};
4622
4622
  return e.measures?.forEach((e) => {
4623
- !e.slots || !a(e) || Object.values(e.slots).filter((e) => e.enabled && e.source === "variable" && e.propertyValue?.type === "variable").forEach((i) => {
4623
+ !e.slots || !p(e) || Object.values(e.slots).filter((e) => e.enabled && e.source === "variable" && e.propertyValue?.type === "variable").forEach((i) => {
4624
4624
  let a = i.propertyValue.variableName;
4625
4625
  if (!a) return;
4626
4626
  let o = t.find((e) => e.name === a);
@@ -4641,132 +4641,132 @@ var $ = {
4641
4641
  variablesFetched: r
4642
4642
  };
4643
4643
  }, Zs = (e, t) => {
4644
- let r = e.dimensions.filter(a), i = r.map((e) => n(e.dataItem)), o = r.length, s = (0, N.useMemo)(() => v(r.map((e) => ({
4644
+ let r = e.dimensions.filter(p), i = r.map((e) => n(e.dataItem)), a = r.length, o = (0, F.useMemo)(() => S(r.map((e) => ({
4645
4645
  dataItem: e.dataItem,
4646
4646
  dateLevel: void 0,
4647
4647
  datePart: void 0,
4648
4648
  operator: As.FilterOperator.InList
4649
- })), { ignoreApplied: !0 }), [i]), c = (0, N.useCallback)((e) => {
4650
- if (!o || !s?.length || !e.data.brush) return;
4651
- let { key: t, value: n } = e.data.brush, r = s.find((e) => e.fieldKey === t && pe(e.operators));
4649
+ })), { ignoreApplied: !0 }), [i]), s = (0, F.useCallback)((e) => {
4650
+ if (!a || !o?.length || !e.data.brush) return;
4651
+ let { key: t, value: n } = e.data.brush, r = o.find((e) => e.fieldKey === t && ae(e.operators));
4652
4652
  if (!r) return;
4653
4653
  let i = (r.operators.pending ?? r.operators.applied ?? r.operators.initial) === As.FilterOperator.NotInList ? "off" : "on";
4654
4654
  r.state.pending && r.state.pending.includes(n) && (i = i === "off" ? "on" : "off"), r.onClick(n, { [i]: !0 });
4655
- }, [s, i]);
4656
- return (0, N.useEffect)(() => {
4657
- t && (t.querySelectorAll(".node.selected").forEach((e) => e.classList.remove("selected")), s.forEach(({ fieldKey: e, state: n }) => {
4655
+ }, [o, i]);
4656
+ return (0, F.useEffect)(() => {
4657
+ t && (t.querySelectorAll(".node.selected").forEach((e) => e.classList.remove("selected")), o.forEach(({ fieldKey: e, state: n }) => {
4658
4658
  n.pending !== null && n.pending.forEach((n) => {
4659
4659
  e && Js(t, e, n)?.classList.add("selected");
4660
4660
  });
4661
4661
  }));
4662
- }, [t, JSON.stringify(s)]), { onTreeNodeClick: c };
4662
+ }, [t, JSON.stringify(o)]), { onTreeNodeClick: s };
4663
4663
  }, Qs = (e, t) => {
4664
4664
  e.next({
4665
- action: re.SaveLocalVSpec,
4665
+ action: ne.SaveLocalVSpec,
4666
4666
  payload: { vSpecChange: { treeChartSettings: { ...t } } },
4667
4667
  mergeWith(e, t, n) {
4668
4668
  if (n === "nodeExpandState") return t;
4669
4669
  }
4670
4670
  });
4671
4671
  }, $s = 80, ec = (e, t, r, i) => {
4672
- let o = (0, N.useRef)(e.treeChartSettings?.nodeExpandState ?? {}), s = i.forceAutoFit, c = b(), l = Xs(c), u = h(), d = te(), f = g(), p = e.dimensions.filter(a), m = p.length, [_] = (0, N.useState)(e.treeChartSettings?.transform ?? null), [v, y] = (0, N.useState)(_ ?? {
4672
+ let a = (0, F.useRef)(e.treeChartSettings?.nodeExpandState ?? {}), o = i.forceAutoFit, s = C(), c = Xs(s), l = y(), u = m(), d = b(), f = e.dimensions.filter(p), h = f.length, [g] = (0, F.useState)(e.treeChartSettings?.transform ?? null), [_, v] = (0, F.useState)(g ?? {
4673
4673
  k: 1,
4674
4674
  x: 0,
4675
4675
  y: 0
4676
- }), x = (0, N.useRef)(e.treeChartSettings?.transform), { onTreeNodeHover: S, onTreeNodeLeave: C } = Ys(r, t.current, i), { onTreeNodeClick: w } = Zs(e, t.current), T = (0, N.useRef)(new Ks()), E = (0, N.useRef)(null), ee = !e.treeChartSettings.gridLayout?.enabled && e.treeChartSettings?.nodeLayout?.hoverStyle?.enabled, D = (0, N.useCallback)(() => {
4677
- E.current &&= (clearTimeout(E.current), null);
4676
+ }), x = (0, F.useRef)(e.treeChartSettings?.transform), { onTreeNodeHover: S, onTreeNodeLeave: w } = Ys(r, t.current, i), { onTreeNodeClick: T } = Zs(e, t.current), E = (0, F.useRef)(new Ks()), D = (0, F.useRef)(null), ee = !e.treeChartSettings.gridLayout?.enabled && e.treeChartSettings?.nodeLayout?.hoverStyle?.enabled, O = (0, F.useCallback)(() => {
4677
+ D.current &&= (clearTimeout(D.current), null);
4678
4678
  }, []);
4679
- return T.current.onNodeHover((e) => {
4680
- i.interactive && S(e), ee && (D(), T.current.highlight(e));
4679
+ return E.current.onNodeHover((e) => {
4680
+ i.interactive && S(e), ee && (O(), E.current.highlight(e));
4681
4681
  }).onNodeLeave((e) => {
4682
- i.interactive && C(e), ee && (D(), E.current = setTimeout(() => {
4683
- T.current.highlight(null), E.current = null;
4682
+ i.interactive && w(e), ee && (O(), D.current = setTimeout(() => {
4683
+ E.current.highlight(null), D.current = null;
4684
4684
  }, $s));
4685
4685
  }).onNodeClick((e) => {
4686
4686
  if (!i.interactive) return;
4687
- let t = m > 0 ? e.data.id === "__total__" ? "total" : "dimension" : "measure", n = e.data.value?.value, r = t === "dimension" ? e.data.brush?.value : n;
4688
- Re({
4687
+ let t = h > 0 ? e.data.id === "__total__" ? "total" : "dimension" : "measure", n = e.data.value?.value, r = t === "dimension" ? e.data.brush?.value : n;
4688
+ Ie({
4689
4689
  id: "onNodeClick",
4690
4690
  nodeName: e.data.label,
4691
4691
  nodeType: t,
4692
4692
  ...r == null ? {} : { nodeValue: r },
4693
4693
  ...n == null ? {} : { measureValue: n }
4694
- }, { vBackendAPI: f }), w(e);
4694
+ }, { vBackendAPI: d }), T(e);
4695
4695
  }).onNodeParentChange((t) => {
4696
- if (m > 0) return;
4696
+ if (h > 0) return;
4697
4697
  let r = e.measures.find((e) => e.dataItem.uniqueSignature === t.data.id);
4698
- r && ne(d, e.measures, n(r.dataItem), !t.parent || t.parent.data.id === "__root__" ? void 0 : t.parent.data.id);
4698
+ r && te(u, e.measures, n(r.dataItem), !t.parent || t.parent.data.id === "__root__" ? void 0 : t.parent.data.id);
4699
4699
  }).onExpandOrCollapse((t) => {
4700
- let n = Dn(t, e.treeChartSettings?.initialExpandedLevels, p.length, e.totals?.enabled ?? !1), r = !((t._children?.length ?? 0) > 0 && !t.children?.length);
4701
- r === n ? delete o.current[t.data.id] : o.current[t.data.id] = r, Qs(u, { nodeExpandState: o.current }), !(m > 0) && Object.values(l.variables).filter((e) => e.measureId.includes(t.data.id)).forEach((e) => {
4702
- e.id && l.updateVariable(e.id, r, As.VariableType.boolean);
4700
+ let n = Tn(t, e.treeChartSettings?.initialExpandedLevels, f.length, e.totals?.enabled ?? !1), r = !((t._children?.length ?? 0) > 0 && !t.children?.length);
4701
+ r === n ? delete a.current[t.data.id] : a.current[t.data.id] = r, Qs(l, { nodeExpandState: a.current }), !(h > 0) && Object.values(c.variables).filter((e) => e.measureId.includes(t.data.id)).forEach((e) => {
4702
+ e.id && c.updateVariable(e.id, r, As.VariableType.boolean);
4703
4703
  });
4704
4704
  }).onUserZoom(() => {
4705
4705
  x.current = null;
4706
4706
  }).onZoomEnd((e) => {
4707
- if (s) return;
4707
+ if (o) return;
4708
4708
  let t = {
4709
4709
  k: e.transform.k,
4710
4710
  x: e.transform.x,
4711
4711
  y: e.transform.y
4712
4712
  };
4713
- t.k === v.k && t.x === v.x && t.y === v.y || (y(t), Qs(u, {
4714
- nodeExpandState: o.current,
4713
+ t.k === _.k && t.x === _.x && t.y === _.y || (v(t), Qs(l, {
4714
+ nodeExpandState: a.current,
4715
4715
  transform: t
4716
4716
  }));
4717
- }), (0, N.useEffect)(() => () => D(), [D]), (0, N.useEffect)(() => {
4718
- e.treeChartSettings?.nodeExpandState && (o.current = e.treeChartSettings.nodeExpandState ?? {});
4719
- }, [e.treeChartSettings?.nodeExpandState]), (0, N.useEffect)(() => {
4720
- c.treeChartSettings?.nodeExpandState || (o.current = {});
4721
- }, [c.treeChartSettings?.initialExpandedLevels]), (0, N.useEffect)(() => {
4722
- x.current = e.treeChartSettings?.transform, T.current && T.current.unsetUserTransform(), !(!e.treeChartSettings?.transform || !T.current) && T.current.applyTransform(e.treeChartSettings.transform);
4717
+ }), (0, F.useEffect)(() => () => O(), [O]), (0, F.useEffect)(() => {
4718
+ e.treeChartSettings?.nodeExpandState && (a.current = e.treeChartSettings.nodeExpandState ?? {});
4719
+ }, [e.treeChartSettings?.nodeExpandState]), (0, F.useEffect)(() => {
4720
+ s.treeChartSettings?.nodeExpandState || (a.current = {});
4721
+ }, [s.treeChartSettings?.initialExpandedLevels]), (0, F.useEffect)(() => {
4722
+ x.current = e.treeChartSettings?.transform, E.current && E.current.unsetUserTransform(), !(!e.treeChartSettings?.transform || !E.current) && E.current.applyTransform(e.treeChartSettings.transform);
4723
4723
  }, [e.treeChartSettings?.transform]), {
4724
- chart: T.current,
4725
- expandedState: o
4724
+ chart: E.current,
4725
+ expandedState: a
4726
4726
  };
4727
- }, tc = ({ vSpec: e, vTheme: t, data: n, elementSize: r = {
4727
+ }, tc = ({ vSpec: e, vTheme: t, data: n, elementSize: i = {
4728
4728
  width: 0,
4729
4729
  height: 0
4730
- }, vizProperties: i }) => {
4731
- let o = i?.isEditMode ?? !1, c = i?.isPrintMode ?? !1, l = e?.treeChartSettings?.gridLayout?.enabled, u = e.dimensions.filter(a).length, d = e.measures.filter(a), f = (0, N.useRef)("tree-" + s(10)), p = (0, N.useRef)(null), m = e.treeChartSettings?.forceAutoFit === !0, { layout: h, treeSettings: g } = us(e, i), { chart: _, expandedState: v } = ec(e, p, f.current, g), y = cs(e, p, _), b = Mn({
4730
+ }, vizProperties: a }) => {
4731
+ let o = a?.isEditMode ?? !1, s = a?.isPrintMode ?? !1, c = e?.treeChartSettings?.gridLayout?.enabled, l = e.dimensions.filter(p).length, u = e.measures.filter(p), d = (0, F.useRef)("tree-" + r(10)), f = (0, F.useRef)(null), m = e.treeChartSettings?.forceAutoFit === !0, { layout: h, treeSettings: g } = us(e, a), { chart: _, expandedState: v } = ec(e, f, d.current, g), y = cs(e, f, _), b = An({
4732
4732
  vSpec: e,
4733
4733
  data: n,
4734
4734
  nodeExpandState: v
4735
- }), [x, S] = (0, N.useState)(!1);
4736
- (0, N.useLayoutEffect)(() => (p.current && _.container(p.current).init(), () => {
4735
+ }), [x, S] = (0, F.useState)(!1);
4736
+ (0, F.useLayoutEffect)(() => (f.current && _.container(f.current).init(), () => {
4737
4737
  _.destroy();
4738
- }), [_]), (0, N.useEffect)(() => {
4738
+ }), [_]), (0, F.useEffect)(() => {
4739
4739
  x ? _.enableDrag() : _.disableDrag();
4740
- }, [x]), (0, N.useEffect)(() => {
4741
- !p.current || !_ || !r.width || !r.height || y(b, g);
4740
+ }, [x]), (0, F.useEffect)(() => {
4741
+ !f.current || !_ || !i.width || !i.height || y(b, g);
4742
4742
  }, [
4743
- r.width,
4744
- r.height,
4743
+ i.width,
4744
+ i.height,
4745
4745
  y
4746
4746
  ]);
4747
- let C = o && u === 0 && !l;
4748
- (0, N.useEffect)(() => {
4749
- p.current && y(b, g);
4747
+ let C = o && l === 0 && !c;
4748
+ (0, F.useEffect)(() => {
4749
+ f.current && y(b, g);
4750
4750
  }, [
4751
4751
  b,
4752
4752
  JSON.stringify(g),
4753
4753
  y
4754
4754
  ]);
4755
- let w = nn({
4755
+ let T = en({
4756
4756
  vTheme: t,
4757
4757
  vSpec: e,
4758
- id: f.current,
4758
+ id: d.current,
4759
4759
  layout: h
4760
4760
  });
4761
- return /* @__PURE__ */ (0, M.jsxs)("div", {
4761
+ return /* @__PURE__ */ (0, P.jsxs)("div", {
4762
4762
  style: {
4763
4763
  width: "100%",
4764
4764
  height: "100%"
4765
4765
  },
4766
- id: f.current,
4766
+ id: d.current,
4767
4767
  "data-mode": o ? "edit" : "view",
4768
4768
  children: [
4769
- !c && /* @__PURE__ */ (0, M.jsxs)("div", {
4769
+ !s && /* @__PURE__ */ (0, P.jsxs)("div", {
4770
4770
  className: "tree-toolbar",
4771
4771
  style: {
4772
4772
  position: "absolute",
@@ -4776,33 +4776,33 @@ var $ = {
4776
4776
  top: 0,
4777
4777
  gap: 10
4778
4778
  },
4779
- children: [C && /* @__PURE__ */ (0, M.jsx)(tn, {
4779
+ children: [C && /* @__PURE__ */ (0, P.jsx)($t, {
4780
4780
  size: "small",
4781
4781
  value: "organize",
4782
4782
  selected: x,
4783
4783
  onChange: () => S(!x),
4784
- disabled: d.length < 2,
4785
- children: /* @__PURE__ */ (0, M.jsx)(nt, {})
4786
- }), !m && /* @__PURE__ */ (0, M.jsx)(tn, {
4784
+ disabled: u.length < 2,
4785
+ children: /* @__PURE__ */ (0, P.jsx)(et, {})
4786
+ }), !m && /* @__PURE__ */ (0, P.jsx)($t, {
4787
4787
  value: "",
4788
4788
  size: "small",
4789
4789
  onClick: () => _?.fit(),
4790
- children: /* @__PURE__ */ (0, M.jsx)(E, {})
4790
+ children: /* @__PURE__ */ (0, P.jsx)(w, {})
4791
4791
  })]
4792
4792
  }),
4793
- /* @__PURE__ */ (0, M.jsx)("style", { children: w }),
4794
- /* @__PURE__ */ (0, M.jsx)("div", {
4793
+ /* @__PURE__ */ (0, P.jsx)("style", { children: T }),
4794
+ /* @__PURE__ */ (0, P.jsx)("div", {
4795
4795
  style: {
4796
4796
  width: "100%",
4797
4797
  height: "100%"
4798
4798
  },
4799
- ref: p
4799
+ ref: f
4800
4800
  })
4801
4801
  ]
4802
4802
  });
4803
- }, nc = C((e) => {
4803
+ }, nc = v((e) => {
4804
4804
  let { vSpec: t, data: n } = e;
4805
- return !t || !n || !d(t) ? null : /* @__PURE__ */ (0, M.jsx)(tc, {
4805
+ return !t || !n || !c(t) ? null : /* @__PURE__ */ (0, P.jsx)(tc, {
4806
4806
  ...e,
4807
4807
  vSpec: t,
4808
4808
  data: n