@astrato-io/visualizations 0.6.4 → 0.6.5

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 (149) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/THIRD_PARTY_NOTICES.md +94 -4
  3. package/chunks/ClickAwayListener-BbeNMAvj.js +52 -0
  4. package/chunks/{LinearProgress-CUZ0D8_t.js → LinearProgress-B1FeWaen.js} +54 -54
  5. package/chunks/app-filter-bar.compiler-BGJ7HAbr.js +64 -0
  6. package/chunks/bar.compiler-CT0ZbQKc.js +374 -0
  7. package/chunks/{src-Cum_2NLV.js → builder-B6dWSIdD.js} +5779 -5635
  8. package/chunks/{coloring-C16AUZEi.js → coloring-B1XAfg6b.js} +234 -233
  9. package/chunks/{src-BC7cGcJ-.js → definitions-D3OVqmXl.js} +438 -360
  10. package/chunks/{escobar-BGqT1EsE.js → escobar-eDjtGpkC.js} +4645 -4619
  11. package/chunks/filter.compiler-DBsyRBJt.js +70 -0
  12. package/chunks/{filtering-Yq4DEa0t.js → filtering-tqjAyJH5.js} +432 -313
  13. package/chunks/{grouping-type-BX_9Ix5q.js → grouping-type-On4s9Thj.js} +1 -1
  14. package/chunks/handlers-VTBfIZYZ.js +13072 -0
  15. package/chunks/isEqual-BDxAhUo8.js +7514 -0
  16. package/chunks/line.compiler-CzdM5Ld0.js +198 -0
  17. package/chunks/{metadata-CPXdYoln.js → metadata-BGElBy5Z.js} +1 -1
  18. package/chunks/number.compiler-G-R7y16P.js +53 -0
  19. package/chunks/{src-C0LgoUWY.js → operations-CTNUX6Sy.js} +9576 -9432
  20. package/chunks/{range-DrzdfBX4.js → range-CiwTbMig.js} +2 -2
  21. package/chunks/{registry-CExpGJ1N.js → registry-CsQQzukD.js} +153 -153
  22. package/chunks/{requirements-DNhuShLS.js → requirements-DYjZCFyf.js} +1 -1
  23. package/chunks/{shared-CKDL4hx9.js → shared-CBvcC5YV.js} +460 -413
  24. package/chunks/{standalone-D5vnf-9y.js → standalone-0M4HlmDW2.js} +823 -822
  25. package/chunks/standalone-0ashe9w1.js +411 -0
  26. package/chunks/{standalone-C85u7U6I.js → standalone-B7jax8wa.js} +93 -94
  27. package/chunks/standalone-BK0VYU-l.js +463 -0
  28. package/chunks/{standalone-BDCwI6Hn.js → standalone-BMIbT1b2.js} +815 -815
  29. package/chunks/standalone-BZV5vOwA.js +6 -0
  30. package/chunks/standalone-BhDrWj4p.js +1980 -0
  31. package/chunks/{standalone-CNyNHKVx.js → standalone-BtSHCp2U2.js} +97 -98
  32. package/chunks/{standalone-CDQnr6qT.js → standalone-BvaKdky9.js} +95 -96
  33. package/chunks/standalone-BwtM31-f.js +2 -0
  34. package/chunks/{standalone-CY57qwZ-.js → standalone-C3gg736V.js} +153 -153
  35. package/chunks/{standalone-DFPva_ku.js → standalone-CC1VUjO32.js} +60 -60
  36. package/chunks/{standalone-CCNtaJ7s.js → standalone-C_rYnZ0N.js} +41 -41
  37. package/chunks/{standalone-CZynjFG7.js → standalone-CoLrAxRV.js} +3701 -3482
  38. package/chunks/{standalone-jiz0L2Dg.js → standalone-DC-aUgXC.js} +104 -104
  39. package/chunks/standalone-DCtRoTWg.js +675 -0
  40. package/chunks/standalone-DUDFTBqL.js +833 -0
  41. package/chunks/standalone-DhZkX9Td.js +2 -0
  42. package/chunks/{standalone-Dx3MLlrO.js → standalone-DtLElfuM.js} +141 -141
  43. package/chunks/{standalone-BmfMt74U.js → standalone-G9Q4Uczu.js} +192 -192
  44. package/chunks/{standalone-BH5NqDwp.js → standalone-JuLF-OoH.js} +390 -391
  45. package/chunks/standalone-_DeX21JJ.js +383 -0
  46. package/chunks/{standalone-lBm9hQ-q.js → standalone-gFhKZh8m.js} +34 -34
  47. package/chunks/standalone-tDNy-SFH.js +281 -0
  48. package/chunks/{standalone-rJ45Zfl1.js → standalone-v1oxfU20.js} +10 -10
  49. package/chunks/{standalone-BYm1UjLr.js → standalone-vzBY6q0I2.js} +18 -18
  50. package/chunks/table.compiler-tb914oj3.js +222 -0
  51. package/chunks/{ui-D1HQNIBy.js → ui-DQWtv2iM.js} +13485 -3973
  52. package/chunks/{useFieldName-oqQ3bvnO.js → useFieldName-BvdcoJRl.js} +1 -1
  53. package/chunks/{utils-Ba9T0TqC.js → utils-Bg7K-t6K.js} +7306 -6024
  54. package/chunks/{src-DvX5LU9T.js → view-Bn83C8d9.js} +2555 -4831
  55. package/definitions.js +3 -3
  56. package/docs/operations/astrato-app-filter-bar.md +17 -17
  57. package/docs/operations/bar.md +989 -1071
  58. package/docs/operations/combo.md +717 -738
  59. package/docs/operations/date-picker.md +25 -25
  60. package/docs/operations/distribution-gauge.md +471 -607
  61. package/docs/operations/dot.md +787 -879
  62. package/docs/operations/filter.md +139 -163
  63. package/docs/operations/gauge.md +491 -627
  64. package/docs/operations/heatMap.md +834 -916
  65. package/docs/operations/histogram.md +166 -180
  66. package/docs/operations/iframe.md +5 -5
  67. package/docs/operations/image.md +16 -16
  68. package/docs/operations/index.md +12 -12
  69. package/docs/operations/line.md +811 -888
  70. package/docs/operations/number.md +470 -536
  71. package/docs/operations/pie.md +825 -958
  72. package/docs/operations/radar.md +599 -679
  73. package/docs/operations/sankey.md +462 -584
  74. package/docs/operations/scatter.md +823 -929
  75. package/docs/operations/shape.md +34 -34
  76. package/docs/operations/simpleTextObject.md +18 -25
  77. package/docs/operations/slider.md +33 -43
  78. package/docs/operations/table.md +1160 -1150
  79. package/docs/operations/tree.md +354 -361
  80. package/docs/operations/treemap.md +545 -637
  81. package/docs/operations/waterfall.md +369 -379
  82. package/docs/operations/word-cloud.md +512 -583
  83. package/getters.js +3 -3
  84. package/index.js +51 -51
  85. package/metadata.js +3 -3
  86. package/operations.js +7 -7
  87. package/package.json +80 -86
  88. package/src/definitions/index.d.ts +2 -2
  89. package/src/definitions/{shared/lib → model/definitions}/available-fields.d.ts +0 -1
  90. package/src/definitions/{shared/lib/compilers/index.d.ts → model/definitions/compilers/compile.d.ts} +1 -1
  91. package/src/definitions/model/definitions/data-item-resolution.d.ts +19 -0
  92. package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +1341 -0
  93. package/src/definitions/model/definitions/descriptors/json-schema.d.ts +2 -0
  94. package/src/definitions/model/definitions/diagnostics.d.ts +5 -0
  95. package/src/definitions/model/definitions/field-suggestions.d.ts +2 -0
  96. package/src/definitions/model/definitions/index.d.ts +23 -0
  97. package/src/definitions/{shared/lib → model/definitions}/registry/compile.d.ts +1 -1
  98. package/src/definitions/model/definitions/registry/descriptor-registry.d.ts +3 -0
  99. package/src/definitions/model/definitions/schema-registry.d.ts +660 -0
  100. package/src/definitions/{shared/lib → model/definitions}/schemas/broad-chart.schema.d.ts +1 -1
  101. package/src/definitions/{shared/lib → model/definitions}/schemas/common.schema.d.ts +0 -1
  102. package/src/definitions/model/definitions/schemas/index.d.ts +9 -0
  103. package/src/definitions/{shared/lib → model/definitions}/schemas/object.schema.d.ts +6 -6
  104. package/src/definitions/{shared/lib → model/definitions}/types/definition.types.d.ts +1 -1
  105. package/src/definitions/model/definitions/types/index.d.ts +3 -0
  106. package/src/definitions/{shared/lib/registry → model/definitions}/validation.d.ts +1 -1
  107. package/chunks/Radio-Ciu-F4CU.js +0 -957
  108. package/chunks/ToggleButton-BCJc3Jlc.js +0 -153
  109. package/chunks/_baseFlatten-DPXPOrea.js +0 -7076
  110. package/chunks/app-filter-bar.compiler-j_CVoWTa.js +0 -55
  111. package/chunks/bar.compiler-oqaPzIut.js +0 -370
  112. package/chunks/data-item-resolution-1lvYB5ln.js +0 -53
  113. package/chunks/event-bus-KiSiCJrC.js +0 -2683
  114. package/chunks/filter.compiler-CuLtc_02.js +0 -60
  115. package/chunks/gauge-target-type-BkKXAqkX.js +0 -4
  116. package/chunks/interfaces-VUY4_yVO.js +0 -8742
  117. package/chunks/line-settings-DfYTUyPz.js +0 -4
  118. package/chunks/line.compiler-BpA_6Tc7.js +0 -188
  119. package/chunks/number.compiler-DbkWcG4S.js +0 -44
  120. package/chunks/pie-uv42Eqal.js +0 -10
  121. package/chunks/src-Dun_jXtz.js +0 -10295
  122. package/chunks/standalone-87YV_m9n.js +0 -687
  123. package/chunks/standalone-BLVAWLNJ.js +0 -385
  124. package/chunks/standalone-BPomtAVs.js +0 -2
  125. package/chunks/standalone-BXyBcUOQ.js +0 -2
  126. package/chunks/standalone-BllF4rDp.js +0 -383
  127. package/chunks/standalone-BqWyrnZI.js +0 -281
  128. package/chunks/standalone-DQxxNwF8.js +0 -675
  129. package/chunks/standalone-DS9T0FZ-.js +0 -830
  130. package/chunks/standalone-DzixzZAL.js +0 -411
  131. package/chunks/standalone-QJ1kKMnO.js +0 -6
  132. package/chunks/table.compiler-BrXkm4Fz.js +0 -213
  133. package/chunks/toInteger-DVZr-D1j.js +0 -11
  134. package/chunks/treemap-x_zmJoG7.js +0 -23
  135. package/chunks/types-dVVCsDWD.js +0 -4
  136. package/chunks/view-CLqWMV7Z.js +0 -156
  137. package/src/definitions/shared/index.d.ts +0 -5
  138. package/src/definitions/shared/lib/registry/descriptor-registry.d.ts +0 -587
  139. package/src/definitions/shared/lib/registry/index.d.ts +0 -3
  140. package/src/definitions/shared/lib/schemas/index.d.ts +0 -9
  141. package/src/definitions/shared/lib/types/index.d.ts +0 -3
  142. package/src/definitions/{shared/lib → model/definitions}/schemas/app-filter-bar.schema.d.ts +0 -0
  143. package/src/definitions/{shared/lib → model/definitions}/schemas/bar.schema.d.ts +0 -0
  144. package/src/definitions/{shared/lib → model/definitions}/schemas/filter.schema.d.ts +0 -0
  145. package/src/definitions/{shared/lib → model/definitions}/schemas/line.schema.d.ts +0 -0
  146. package/src/definitions/{shared/lib → model/definitions}/schemas/number.schema.d.ts +0 -0
  147. package/src/definitions/{shared/lib → model/definitions}/schemas/table.schema.d.ts +4 -4
  148. /package/src/definitions/{shared/lib → model/definitions}/types/compilation.types.d.ts +0 -0
  149. /package/src/definitions/{shared/lib → model/definitions}/types/descriptor.types.d.ts +0 -0
@@ -1,28 +1,28 @@
1
1
  import { o as e } from "./rolldown-runtime-DleVn1XH.js";
2
- import { No as t, Oa as n, Ta as r, Ti as i, Wc as a, Xs as o, Yn as s, lo as c, pc as l, qs as u, so as d, ta as f, ti as p } from "./interfaces-VUY4_yVO.js";
3
- import { I as m, Ki as h, P as g, Zt as _, o as v, wi as y } from "./utils-Ba9T0TqC.js";
4
- import { It as b, Jt as x, Lt as S, Vt as C, X as w, Z as T, bt as E, cn as D, en as ee, i as O, in as k, j as te, ln as A, n as ne, nn as j, rn as M, rt as re, sn as N, tn as ie, un as P, xt as ae } from "./escobar-BGqT1EsE.js";
5
- import { l as F, vt as I } from "./_baseFlatten-DPXPOrea.js";
6
- import { a as oe, r as se, t as ce } from "./coloring-C16AUZEi.js";
7
- import { f as le, r as L, t as ue, u as de } from "./src-D9XogOrc.js";
8
- var fe = /* @__PURE__ */ e(h()), R = /* @__PURE__ */ function(e) {
2
+ import { Gn as t, Ks as n, Mo as r, Qi as i, Sa as a, Si as o, Ta as s, Uc as c, Ys as l, Zr as u, ao as d, fc as f, so as p } from "./isEqual-BDxAhUo8.js";
3
+ import { $t as m, Ei as h, I as g, P as _, Yi as v, o as y } from "./utils-Bg7K-t6K.js";
4
+ import { Vt as b, mt as x } from "./ui-DQWtv2iM.js";
5
+ import { It as S, Jt as C, Lt as w, Vt as T, X as E, Z as D, an as O, bt as k, cn as A, dn as j, i as ee, in as M, j as te, ln as N, n as ne, nn as re, rn as P, rt as ie, tn as ae, un as F, xt as oe } from "./escobar-eDjtGpkC.js";
6
+ import { h as se, p as ce, t as le } from "./coloring-B1XAfg6b.js";
7
+ import { f as I, r as L, t as ue, u as de } from "./src-D9XogOrc.js";
8
+ var fe = /* @__PURE__ */ e(v()), R = /* @__PURE__ */ function(e) {
9
9
  return e.sankey = "key-sankey", e.labels = "key-labels", e.columnLabels = "key-column-labels", e;
10
10
  }({}), z = /* @__PURE__ */ function(e) {
11
11
  return e.NodeFlow = "flow", e.NodeColor = "color", e;
12
12
  }({}), B = /* @__PURE__ */ function(e) {
13
13
  return e.ColumnTitleLeft = "columnTitleLeft", e.ColumnTitleCenter = "columnTitleCenter", e.ColumnTitleRight = "columnTitleRight", e.NodeLabelLeft = "nodeLabelLeft", e.NodeLabelCenter = "nodeLabelCenter", e.NodeLabelRight = "nodeLabelRight", e;
14
- }({}), pe = class extends ce {
14
+ }({}), pe = class extends le {
15
15
  dimensionIds = [];
16
16
  dimensionColoring = {};
17
17
  constructor(e, t, n) {
18
- super(e, t, n), this.dimensionIds = [], this.vSpec.dimensions.filter((e) => i(e)).forEach((e) => {
19
- let t = l(e.dataItem);
18
+ super(e, t, n), this.dimensionIds = [], this.vSpec.dimensions.filter((e) => o(e)).forEach((e) => {
19
+ let t = f(e.dataItem);
20
20
  this.dimensionColoring[t] = e.coloring, this.dimensionIds.push(t);
21
21
  });
22
22
  }
23
23
  getColorByScale(e, t = {}) {
24
- let { ref: n } = t, r = this.getDatumFromProp(e, n, "color"), i = r?.value, a = e.resources.scale(r.source?.field ?? r.label), s = r.source.field && this.dimensionColoring[r.source.field];
25
- if (s?.type === o.Categorical && s.persistentColors === !0) {
24
+ let { ref: n } = t, r = this.getDatumFromProp(e, n, "color"), i = r?.value, a = e.resources.scale(r.source?.field ?? r.label), o = r.source.field && this.dimensionColoring[r.source.field];
25
+ if (o?.type === l.Categorical && o.persistentColors === !0) {
26
26
  let e = a.range();
27
27
  return e[this.getHash(i) % e.length];
28
28
  }
@@ -35,7 +35,7 @@ var fe = /* @__PURE__ */ e(h()), R = /* @__PURE__ */ function(e) {
35
35
  let t = this.vSpec.coloring?.overwrites;
36
36
  for (let n = 0; n < t.length; n++) {
37
37
  let r = t[n], i = e.datum, a = r.operator || "equals";
38
- if ([i, ...Object.keys(i).filter((e) => this.dimensionIds.includes(i[e]?.source?.field)).map((e) => i[e])].find((e) => e.source.field === r?.dataItemId ? a === "equals" ? r.value === e.value || r.value === String(e.value) : se(r, e.value) : !1)) return r.color;
38
+ if ([i, ...Object.keys(i).filter((e) => this.dimensionIds.includes(i[e]?.source?.field)).map((e) => i[e])].find((e) => e.source.field === r?.dataItemId ? a === "equals" ? r.value === e.value || r.value === String(e.value) : ce(r, e.value) : !1)) return r.color;
39
39
  }
40
40
  }
41
41
  getFilteredColor() {
@@ -44,7 +44,7 @@ var fe = /* @__PURE__ */ e(h()), R = /* @__PURE__ */ function(e) {
44
44
  getLinkColorDefinition() {
45
45
  return (e) => {
46
46
  if (this.notAffectedItems?.pattern?.length && this.vSpec.staticFilters.ignoreGlobalFilters && this.vSpec.staticFilters.showGlobalFiltersEffect) {
47
- let t = oe(e, this.notAffectedItems);
47
+ let t = se(e, this.notAffectedItems);
48
48
  if (t) return t;
49
49
  }
50
50
  if (this.isColorOverwriteActive()) {
@@ -59,36 +59,36 @@ var fe = /* @__PURE__ */ e(h()), R = /* @__PURE__ */ function(e) {
59
59
  }
60
60
  }, me = (e, t) => e.data.value === t.data.value ? 0 : e.data.value < t.data.value ? 1 : -1, he = (e, t) => e.data.value === t.data.value ? 0 : e.data.value < t.data.value ? -1 : 1, ge = (e, t) => e.data.flow.value === t.data.flow.value ? 0 : e.data.flow.value < t.data.flow.value ? 1 : -1, _e = (e, t) => e.data.flow.value === t.data.flow.value ? 0 : e.data.flow.value < t.data.flow.value ? -1 : 1;
61
61
  function ve(e, t) {
62
- let n = e.dimensions.filter((e) => i(e)), r = (e.querySettings?.sortingOrder ?? []).map((e) => ({
63
- id: l(e.dataItem),
62
+ let n = e.dimensions.filter((e) => o(e)), r = (e.querySettings?.sortingOrder ?? []).map((e) => ({
63
+ id: f(e.dataItem),
64
64
  direction: e.sortDirection,
65
65
  type: e.fieldType
66
- })), a = r.find((e) => e.type === "measure"), o = r.indexOf(a);
66
+ })), i = r.find((e) => e.type === "measure"), a = r.indexOf(i);
67
67
  return n.map((n) => {
68
- let i = l(n.dataItem), s;
68
+ let o = f(n.dataItem), s;
69
69
  if (e.sankeySettings.applyDataSortOnNodeColumns) {
70
- let e = r.find((e) => e.id === i), t = r.indexOf(e);
71
- e && t < o ? s = e.direction === "desc" ? me : he : a && (s = a.direction === "desc" ? ge : _e);
70
+ let e = r.find((e) => e.id === o), t = r.indexOf(e);
71
+ e && t < a ? s = e.direction === "desc" ? me : he : i && (s = i.direction === "desc" ? ge : _e);
72
72
  }
73
73
  return {
74
- id: i,
74
+ id: o,
75
75
  sort: s,
76
- isGrouped: p(e.dimensions, e.enableAlternate, t)
76
+ isGrouped: u(e.dimensions, e.enableAlternate, t)
77
77
  };
78
78
  });
79
79
  }
80
80
  var ye = (e, t) => {
81
- let r = e.sankeySettings.linkColoring?.opacity ?? .3, i = t.valuePickerMode ?? !1, a = i ? t.valuePickerTargetDataItemId : "";
81
+ let n = e.sankeySettings.linkColoring?.opacity ?? .3, r = t.valuePickerMode ?? !1, i = r ? t.valuePickerTargetDataItemId : "";
82
82
  return {
83
83
  trigger: [{
84
- on: D.Tap,
85
- action: N.Toggle,
84
+ on: N.Tap,
85
+ action: A.Toggle,
86
86
  globalPropagation: "stop",
87
87
  data: ["", "linkTarget"],
88
88
  contexts: [M.Selection]
89
89
  }, {
90
- on: D.Over,
91
- action: N.Set,
90
+ on: N.Over,
91
+ action: A.Set,
92
92
  globalPropagation: "stop",
93
93
  data: ["", "linkTarget"],
94
94
  contexts: [M.Highlight]
@@ -98,20 +98,20 @@ var ye = (e, t) => {
98
98
  context: M.Selection,
99
99
  data: ["", "linkTarget"],
100
100
  filter: (e) => e.data?.type?.value === "link",
101
- mode: A.Or,
102
- style: { inactive: { opacity: r * .25 } }
101
+ mode: F.Or,
102
+ style: { inactive: { opacity: n * .25 } }
103
103
  },
104
104
  {
105
105
  context: M.Selection,
106
106
  data: [""],
107
107
  filter: (e) => e.data?.type?.value === "node",
108
- mode: A.Or,
108
+ mode: F.Or,
109
109
  style: { inactive: { fill: (e) => {
110
110
  let t = !e.fill || e.fill === "none" || e.fill === "transparent";
111
111
  switch (!0) {
112
112
  case t:
113
- case i && e.data.source.field === a: return e.fill;
114
- default: return ee(ie(e.fill), .25);
113
+ case r && e.data.source.field === i: return e.fill;
114
+ default: return ae(re(e.fill), .25);
115
115
  }
116
116
  } } }
117
117
  },
@@ -119,21 +119,21 @@ var ye = (e, t) => {
119
119
  context: M.Highlight,
120
120
  data: [""],
121
121
  filter: (e) => e.data?.type?.value === "node",
122
- mode: A.Or,
122
+ mode: F.Or,
123
123
  style: { active: {
124
- strokeWidth: (e) => i && e.data.source.field !== a ? 0 : 1,
125
- stroke: n.mainDarkNavy
124
+ strokeWidth: (e) => r && e.data.source.field !== i ? 0 : 1,
125
+ stroke: s.mainDarkNavy
126
126
  } }
127
127
  }
128
128
  ]
129
129
  };
130
- }, be = (e, t, n, r, a, o) => {
131
- let s = e.dimensions.filter((e) => i(e)), c = new pe(e, t, a?.[0]?.itemsNotAffectedByFiltering), u = e.sankeySettings.linkColoring?.opacity ?? .3, d = e.sankeySettings.linkColoring, f = s.map((e) => l(e.dataItem)), p = f.map((e, t) => `dim${t}`), m = e.sankeySettings.showNullNodes ? (e, t) => p[f.indexOf(t) + 1] : (e, t) => {
132
- let n = f.indexOf(t), r = f.slice(n + 1).find((t) => e[p[f.indexOf(t)]].value !== null);
133
- return p[f.indexOf(r)];
130
+ }, be = (e, t, n, r, i, a) => {
131
+ let s = e.dimensions.filter((e) => o(e)), c = new pe(e, t, i?.[0]?.itemsNotAffectedByFiltering), l = e.sankeySettings.linkColoring?.opacity ?? .3, u = e.sankeySettings.linkColoring, d = s.map((e) => f(e.dataItem)), p = d.map((e, t) => `dim${t}`), m = e.sankeySettings.showNullNodes ? (e, t) => p[d.indexOf(t) + 1] : (e, t) => {
132
+ let n = d.indexOf(t), r = d.slice(n + 1).find((t) => e[p[d.indexOf(t)]].value !== null);
133
+ return p[d.indexOf(r)];
134
134
  }, h = {
135
135
  key: R.sankey,
136
- type: P.Sankey,
136
+ type: j.Sankey,
137
137
  data: { collection: "coll" },
138
138
  settings: {
139
139
  showNullNodes: e.sankeySettings.showNullNodes,
@@ -147,7 +147,7 @@ var ye = (e, t) => {
147
147
  showNodeFlowLabel: e.sankeySettings.nodeLabels.enabled && e.sankeySettings.nodeLabels.showFlowValue,
148
148
  showNodeLabelBackdrop: e.sankeySettings.nodeLabels.showBackdrop !== !1,
149
149
  nodeLabelBackdropColor: e.sankeySettings.nodeLabels.backdropColor,
150
- columnFields: ve(e, o.isPrintMode),
150
+ columnFields: ve(e, a.isPrintMode),
151
151
  nodeLabelPlacements: e.sankeySettings.nodeLabels.placements.filter((e) => e.enabled).map((e) => e.placement),
152
152
  node: {
153
153
  id: (e) => `${e.datum.source.field}::${e.datum.value}`,
@@ -164,11 +164,11 @@ var ye = (e, t) => {
164
164
  },
165
165
  value: { ref: "flow" },
166
166
  dataFill: c.getLinkColorDefinition(),
167
- fill: () => d.override ? d.color || t.colors.brandColors[0] : void 0,
168
- opacity: u
167
+ fill: () => u.override ? u.color || t.colors.brandColors[0] : void 0,
168
+ opacity: l
169
169
  }
170
170
  },
171
- brush: o.disable?.brushing === !0 ? void 0 : ye(e, o),
171
+ brush: a.disable?.brushing === !0 ? void 0 : ye(e, a),
172
172
  animations: {
173
173
  presetId: "simple-opacity",
174
174
  enabled: !0
@@ -179,44 +179,44 @@ var ye = (e, t) => {
179
179
  components: [...n.components, h]
180
180
  };
181
181
  }, xe = (e, t, n) => {
182
- let r = e.measures.filter((e) => i(e)), a = e.dimensions.filter((e) => i(e)), o = l(r[0].dataItem), s = a.map((e) => l(e.dataItem)), c = s.map((e) => ({
182
+ let r = e.measures.filter((e) => o(e)), i = e.dimensions.filter((e) => o(e)), a = f(r[0].dataItem), s = i.map((e) => f(e.dataItem)), c = s.map((e) => ({
183
183
  field: e,
184
184
  trackBy: (e) => e,
185
185
  reduce: "first",
186
186
  props: {
187
187
  [z.NodeFlow]: {
188
- field: o,
188
+ field: a,
189
189
  reduce: "sum"
190
190
  },
191
- [o]: {
192
- field: o,
191
+ [a]: {
192
+ field: a,
193
193
  reduce: "sum"
194
194
  },
195
195
  [z.NodeColor]: { field: e },
196
196
  type: "node"
197
197
  }
198
- })), u = s.slice(0, s.length - 1).map((e, t) => {
198
+ })), l = s.slice(0, s.length - 1).map((e, t) => {
199
199
  let n = {
200
200
  field: s[t],
201
201
  props: {
202
- flow: { field: o },
203
- [o]: { field: o },
202
+ flow: { field: a },
203
+ [a]: { field: a },
204
204
  type: "link"
205
205
  }
206
206
  };
207
207
  return s.forEach((e, t) => {
208
208
  n.field !== e && (n.props[`dim${t}`] = { field: e });
209
209
  }), n;
210
- }), d = [{
210
+ }), u = [{
211
211
  key: "coll",
212
212
  data: {
213
- extract: [...c, ...u],
213
+ extract: [...c, ...l],
214
214
  filter: e.sankeySettings.showNullNodes ? void 0 : (e) => e.value !== null
215
215
  }
216
216
  }];
217
217
  return {
218
218
  ...n,
219
- collections: d,
219
+ collections: u,
220
220
  formatters: { flow: {
221
221
  type: "excel-format",
222
222
  format: r[0].formatter?.format
@@ -234,13 +234,13 @@ var ye = (e, t) => {
234
234
  linkData: ({ node: e }) => e.desc.field,
235
235
  label({ node: e }) {
236
236
  let t = e.desc.label;
237
- return e.desc?.isGrouped ? C(t) : t;
237
+ return e.desc?.isGrouped ? T(t) : t;
238
238
  }
239
239
  }]
240
240
  }
241
241
  }
242
- }), H = 64, Se = new F(I.fontLight), Ce = new F(I.fontDark), U = (e, t, n) => {
243
- let r = new F(n.fonts.general.color);
242
+ }), H = 64, Se = new x(b.fontLight), Ce = new x(b.fontDark), U = (e, t, n) => {
243
+ let r = new x(n.fonts.general.color);
244
244
  return {
245
245
  component: R.sankey,
246
246
  selector: e,
@@ -257,7 +257,7 @@ var ye = (e, t) => {
257
257
  return e.desc?.backdrop;
258
258
  },
259
259
  fill({ node: e }) {
260
- return !e.desc.backdrop && !e.desc.background ? r.rgb() : new F(e.desc?.backdrop?.fill || e.desc.background).betterContrast(r, Se, Ce).rgb();
260
+ return !e.desc.backdrop && !e.desc.background ? r.rgb() : new x(e.desc?.backdrop?.fill || e.desc.background).betterContrast(r, Se, Ce).rgb();
261
261
  },
262
262
  linkData({ node: e }) {
263
263
  return e.desc?.data;
@@ -270,11 +270,11 @@ var ye = (e, t) => {
270
270
  }
271
271
  }
272
272
  };
273
- }, we = (e, n, r, o, c, u, d, f) => {
273
+ }, we = (e, n, i, a, s, l, d, p) => {
274
274
  let m = [];
275
- f && m.push(S(R.columnLabels, R.columnLabels, f));
275
+ p && m.push(w(R.columnLabels, R.columnLabels, p));
276
276
  let h = {
277
- type: P.Labels,
277
+ type: j.Labels,
278
278
  key: R.columnLabels,
279
279
  layout: { displayOrder: 2 },
280
280
  settings: { sources: [
@@ -287,27 +287,27 @@ var ye = (e, t) => {
287
287
  presetId: "simple-opacity",
288
288
  enabled: !0
289
289
  }
290
- }, g = e?.measures.find(i), _ = g ? l(g.dataItem) : void 0, v = g && (s(g) || g.label || g.dataItem?.name || "Measure");
291
- f && g && e.measures.length > 1 && m.push(b(P.Text, f));
290
+ }, g = e?.measures.find(o), _ = g ? f(g.dataItem) : void 0, v = g && (t(g) || g.label || g.dataItem?.name || "Measure");
291
+ p && g && e.measures.length > 1 && m.push(S(j.Text, p));
292
292
  let y = g && e.measures.length > 1 ? {
293
- type: P.Text,
293
+ type: j.Text,
294
294
  key: `text-${_}`,
295
- dataItemType: a.Measure,
295
+ dataItemType: c.Measure,
296
296
  dataItemRole: g.role,
297
- text: p(e.measures, e.enableAlternate, u.isPrintMode) ? C(v) : v,
297
+ text: u(e.measures, e.enableAlternate, l.isPrintMode) ? T(v) : v,
298
298
  layout: {
299
- dock: t.Bottom,
299
+ dock: r.Bottom,
300
300
  color: "red"
301
301
  },
302
302
  style: { text: {
303
303
  fontFamily: n.fonts.general.fontFamily,
304
- fontSize: `${I.fieldTitle.fontSize}px`,
304
+ fontSize: `${b.fieldTitle.fontSize}px`,
305
305
  fontStyle: "normal",
306
306
  fill: n.fonts.general.color
307
307
  } },
308
- anchor: t.Center
308
+ anchor: r.Center
309
309
  } : void 0, x = {
310
- type: P.Labels,
310
+ type: j.Labels,
311
311
  key: R.labels,
312
312
  layout: { displayOrder: 2 },
313
313
  settings: { sources: [
@@ -316,10 +316,10 @@ var ye = (e, t) => {
316
316
  U(`.${B.NodeLabelRight}`, 1, n)
317
317
  ] },
318
318
  style: { label: "$label" },
319
- brush: u.disable?.brushing === !0 ? void 0 : {
319
+ brush: l.disable?.brushing === !0 ? void 0 : {
320
320
  trigger: [{
321
- on: D.Tap,
322
- action: N.Toggle,
321
+ on: N.Tap,
322
+ action: A.Toggle,
323
323
  globalPropagation: "stop",
324
324
  data: [""],
325
325
  contexts: [M.Selection]
@@ -336,60 +336,60 @@ var ye = (e, t) => {
336
336
  }
337
337
  };
338
338
  return {
339
- ...r,
339
+ ...i,
340
340
  components: [
341
- ...r.components,
341
+ ...i.components,
342
342
  h,
343
343
  ...y ? [y] : [],
344
344
  x
345
345
  ],
346
- interactions: r.interactions ? [...r.interactions, ...m] : [...m]
346
+ interactions: i.interactions ? [...i.interactions, ...m] : [...m]
347
347
  };
348
- }, Te = (e, t, n, r, i) => {
349
- if (n.type !== o.PerEachDimension) {
348
+ }, Te = (e, t, n, r, a) => {
349
+ if (n.type !== l.PerEachDimension) {
350
350
  let e = n.color || t?.colors?.brandColors?.[0] || "#aaa";
351
351
  return {
352
- type: k.CategoricalColor,
352
+ type: O.CategoricalColor,
353
353
  data: [],
354
354
  range: [e],
355
355
  unknown: e
356
356
  };
357
357
  }
358
- let a = r.coloring || {};
359
- if (a.type !== o.Categorical) {
360
- let n = i[e.dimensions.indexOf(r) % i.length], o = a.color || n || t?.colors?.brandColors?.[0] || "#aaa";
358
+ let o = r.coloring || {};
359
+ if (o.type !== l.Categorical) {
360
+ let n = a[e.dimensions.indexOf(r) % a.length], i = o.color || n || t?.colors?.brandColors?.[0] || "#aaa";
361
361
  return {
362
- type: k.CategoricalColor,
362
+ type: O.CategoricalColor,
363
363
  data: [],
364
- range: [o],
365
- unknown: o
364
+ range: [i],
365
+ unknown: i
366
366
  };
367
367
  }
368
- return ae(e, t, l(r.dataItem), {
369
- customPalette: a.customPalette ?? f.customPalette,
370
- palette: a.palette
368
+ return oe(e, t, f(r.dataItem), {
369
+ customPalette: o.customPalette ?? i.customPalette,
370
+ palette: o.palette
371
371
  });
372
372
  }, Ee = (e, t, n) => {
373
- let r = e.dimensions.filter((e) => i(e));
373
+ let r = e.dimensions.filter((e) => o(e));
374
374
  if (!r[0]) return n;
375
- let a = {}, o = E({
375
+ let a = {}, s = k({
376
376
  palette: e.coloring.palette,
377
- customPalette: e.coloring.customPalette ?? f.customPalette
377
+ customPalette: e.coloring.customPalette ?? i.customPalette
378
378
  }, t);
379
379
  return r.forEach((n) => {
380
- let r = l(n.dataItem);
381
- a[r] = Te(e, t, e.coloring, n, o);
380
+ let r = f(n.dataItem);
381
+ a[r] = Te(e, t, e.coloring, n, s);
382
382
  }), {
383
383
  ...n,
384
384
  scales: a
385
385
  };
386
386
  }, De = (e, t, n) => {
387
- let r = e.dimensions.filter((e) => i(e)), a = e.measures.filter((e) => i(e));
388
- if (!r[0] || !a[0]) return n;
389
- let o = {
387
+ let r = e.dimensions.filter((e) => o(e)), i = e.measures.filter((e) => o(e));
388
+ if (!r[0] || !i[0]) return n;
389
+ let a = {
390
390
  "$font-family": t.fonts.general.fontFamily,
391
391
  "$font-color": t.fonts.general.color,
392
- "$font-size": `${x(e.sankeySettings?.nodeLabels?.fontSize)}px`,
392
+ "$font-size": `${C(e.sankeySettings?.nodeLabels?.fontSize)}px`,
393
393
  $label: {
394
394
  fontSize: "$font-size",
395
395
  fontFamily: "$font-family",
@@ -398,17 +398,17 @@ var ye = (e, t) => {
398
398
  },
399
399
  $title: {
400
400
  "@extend": "$label",
401
- fontSize: `${I.fieldTitle.fontSize}px`,
401
+ fontSize: `${b.fieldTitle.fontSize}px`,
402
402
  padding: 4
403
403
  }
404
404
  };
405
405
  return {
406
406
  ...n,
407
- style: o
407
+ style: a
408
408
  };
409
- }, Oe = (e, t) => t?.data?.type?.value === "link" ? `${t.data.label} - ${t.data.linkTarget.label}` : t.data.label, ke = (e, t, n, r, i, a, o) => {
410
- let c = [], l = s(e[0]) || e[0].label || e[0].dataItem.name || "", u = e.length ? l : "Count", d = t.desc?.flow ?? t.data?.flow.value;
411
- return d = o ? n.formatter(re())(d) : n.formatter("flow")(d), c.push({
409
+ }, Oe = (e, t) => t?.data?.type?.value === "link" ? `${t.data.label} - ${t.data.linkTarget.label}` : t.data.label, ke = (e, n, r, i, a, o, s) => {
410
+ let c = [], l = t(e[0]) || e[0].label || e[0].dataItem.name || "", u = e.length ? l : "Count", d = n.desc?.flow ?? n.data?.flow.value;
411
+ return d = s ? r.formatter(ie())(d) : r.formatter("flow")(d), c.push({
412
412
  label: u,
413
413
  value: d
414
414
  }), c;
@@ -417,7 +417,7 @@ var ye = (e, t) => {
417
417
  area: "target",
418
418
  type: e[0]?.data?.type?.value === "link" ? "pointer" : "bounds"
419
419
  }) };
420
- return a.extract = T(e, t, ke, Oe), w(e, t, n, a, "tooltip", i);
420
+ return a.extract = D(e, t, ke, Oe), E(e, t, n, a, "tooltip", i);
421
421
  }, je = class extends te {
422
422
  constructor() {
423
423
  super([
@@ -430,12 +430,12 @@ var ye = (e, t) => {
430
430
  ]);
431
431
  }
432
432
  preCompile(e, t) {
433
- let n = e.measures.filter((e) => i(e)), r = e.dimensions.filter((e) => i(e)), a = n[0];
434
- if (!a) return;
435
- let o = l(a.dataItem), s = r.map((e) => l(e.dataItem));
433
+ let n = e.measures.filter((e) => o(e)), r = e.dimensions.filter((e) => o(e)), i = n[0];
434
+ if (!i) return;
435
+ let a = f(i.dataItem), s = r.map((e) => f(e.dataItem));
436
436
  t.forEach((t) => {
437
437
  if (t.items?.length) {
438
- if (t.items = t.items.filter((e) => e[o] > 0), !t.items.length) throw Error("Current data query resulted in only negative and/or null values which can not be displayed in this chart.");
438
+ if (t.items = t.items.filter((e) => e[a] > 0), !t.items.length) throw Error("Current data query resulted in only negative and/or null values which can not be displayed in this chart.");
439
439
  if (!e.sankeySettings.showNullNodes && !t.items.find((e) => s.find((t) => e[t] !== null))) throw Error("Current dataset contains only non-null dimension values and can not be displayed in the current configuration of this chart.");
440
440
  }
441
441
  });
@@ -453,7 +453,7 @@ var ye = (e, t) => {
453
453
  showNodeLabelBackdrop: !0,
454
454
  nodeLabelBackdropColor: null,
455
455
  columnFields: [],
456
- nodeLabelPlacements: [c.Beside],
456
+ nodeLabelPlacements: [p.Beside],
457
457
  node: {
458
458
  id: "",
459
459
  fill: "#333333"
@@ -479,7 +479,7 @@ function Me(e) {
479
479
  }
480
480
  function Ne(e) {
481
481
  return e.map((e) => ({
482
- type: j.Path,
482
+ type: P.Path,
483
483
  data: e.data,
484
484
  desc: { flow: e.value },
485
485
  d: Me(e),
@@ -574,7 +574,7 @@ function Ie(e, t) {
574
574
  let a = i.reduce(([e, t], n) => [e + n.sourceSum, t + n.targetSum], [0, 0]), o = 1 - Math.max(...a) / e.value, s = e.y1 - e.y0, c = e.y0;
575
575
  n.push({
576
576
  id: e.id,
577
- type: j.Rect,
577
+ type: P.Rect,
578
578
  x: e.x0 + t.nodeMargin,
579
579
  width: e.x1 - e.x0 - t.nodeMargin * 2,
580
580
  y: c,
@@ -591,7 +591,7 @@ function Ie(e, t) {
591
591
  let l = s * (Math.max(i, a) / e.value);
592
592
  n.push({
593
593
  id: `${e.id}::${o}`,
594
- type: j.Rect,
594
+ type: P.Rect,
595
595
  x: e.x0 + t.nodeMargin,
596
596
  width: e.x1 - e.x0 - t.nodeMargin * 2,
597
597
  y: c,
@@ -624,7 +624,7 @@ var K = (e, t, n = !1, r = [4, 2]) => ({
624
624
  return a < i ? [] : e.map((e) => {
625
625
  let t = n[e.layer], a = K(e, r, !1, [4, 0]), o = a.backdrop?.padding ?? [0, 0], s = t.align < .5 ? B.NodeLabelLeft : t.align > .5 ? B.NodeLabelRight : B.NodeLabelCenter;
626
626
  return {
627
- type: j.Rect,
627
+ type: P.Rect,
628
628
  id: `${e.id}::labelTarget`,
629
629
  x: t.fullX + (t.align < .5 ? r.nodeMargin + o[0] : 0),
630
630
  width: t.fullWidth - (t.align === .5 ? 0 : r.nodeMargin + o[0]),
@@ -639,7 +639,7 @@ var K = (e, t, n = !1, r = [4, 2]) => ({
639
639
  let { nodePadding: i } = r;
640
640
  return e.filter((e) => e.y1 - e.y0 + i >= r.nodeLabelHeight).map((e) => {
641
641
  let t = n[e.layer], a = t.align <= .5 ? B.NodeLabelLeft : B.NodeLabelRight, o = K(e, r, !1, [4, 2]), s = o.backdrop?.padding ?? [0, 0], c = [2, 2], l = [s[0] + c[0], s[1] + c[1]], u = {
642
- type: j.Rect,
642
+ type: P.Rect,
643
643
  id: `${e.id}::labelTarget`,
644
644
  x: t.gapX + l[0],
645
645
  width: t.gapWidth - 2 * l[0],
@@ -654,7 +654,7 @@ var K = (e, t, n = !1, r = [4, 2]) => ({
654
654
  }, Be = (e) => e.columnGap >= 20, Ve = (e, t, n, r) => e.filter((e) => e.y1 - e.y0 >= r.nodeLabelHeight).map((e) => {
655
655
  let t = K(e, r, !0, [4, 2]);
656
656
  return {
657
- type: j.Rect,
657
+ type: P.Rect,
658
658
  id: `${e.id}::labelTarget`,
659
659
  x: e.x0 + r.nodeMargin,
660
660
  width: e.x1 - e.x0 - r.nodeMargin * 2,
@@ -665,15 +665,15 @@ var K = (e, t, n = !1, r = [4, 2]) => ({
665
665
  fill: "none"
666
666
  };
667
667
  }), He = (e) => e.columnWidth >= 80, q = {
668
- [c.Above]: {
668
+ [p.Above]: {
669
669
  condition: Re,
670
670
  create: Le
671
671
  },
672
- [c.Beside]: {
672
+ [p.Beside]: {
673
673
  condition: Be,
674
674
  create: ze
675
675
  },
676
- [c.Inside]: {
676
+ [p.Inside]: {
677
677
  condition: He,
678
678
  create: Ve
679
679
  }
@@ -693,7 +693,7 @@ function Ge(e, t) {
693
693
  return e.map((e) => {
694
694
  let t = e.align < .5 ? B.ColumnTitleLeft : e.align > .5 ? B.ColumnTitleRight : B.ColumnTitleCenter;
695
695
  return {
696
- type: j.Rect,
696
+ type: P.Rect,
697
697
  id: `column::${e.field}::labelTarget`,
698
698
  tag: t,
699
699
  fill: "none",
@@ -789,22 +789,22 @@ function Xe(e, t, n) {
789
789
  function Ze(e, t, n, r, i) {
790
790
  let a = Math.max(0, n.width / (e.length * 2) * t.nodeWidth), o = a > 0 ? t.linkMargin * .5 * Math.min(24, (n.width - a * e.length) / (e.length - 1) / 2) : 0;
791
791
  a += o * 2;
792
- let s = (n.width - a * e.length) / (e.length - 1), l = Math.max(...e.map((e) => e.count)), u = r.measureText(i.title).height + 2 * i.title.padding, d = 8 + u, f = t.showColumnHeaderLabels && n.height - 8 - d > 0, p = r.measureText(i.label).height + 2 * i.label.padding, m = f ? d : 0, h = n.height - m, g = h / l / 2 * t.nodePadding, _ = (t.showNodeDimensionLabel || t.showNodeFlowLabel) && p * l < h / 2, v = g, y = Ue({
792
+ let s = (n.width - a * e.length) / (e.length - 1), c = Math.max(...e.map((e) => e.count)), l = r.measureText(i.title).height + 2 * i.title.padding, u = 8 + l, d = t.showColumnHeaderLabels && n.height - 8 - u > 0, f = r.measureText(i.label).height + 2 * i.label.padding, m = d ? u : 0, h = n.height - m, g = h / c / 2 * t.nodePadding, _ = (t.showNodeDimensionLabel || t.showNodeFlowLabel) && f * c < h / 2, v = g, y = Ue({
793
793
  canShowNodeLabelAboveNode: _,
794
794
  columnGap: s,
795
795
  columnWidth: a,
796
796
  priority: t.nodeLabelPlacements
797
797
  });
798
- return _ && y === c.Above && (m += p, v = Math.max(p, g)), {
798
+ return _ && y === p.Above && (m += f, v = Math.max(f, g)), {
799
799
  columnGap: s,
800
800
  columnWidth: a,
801
801
  nodePadding: v,
802
802
  availableHeight: h,
803
- nodeLabelHeight: p,
803
+ nodeLabelHeight: f,
804
804
  nodeMargin: o,
805
805
  top: m,
806
- showHeader: f,
807
- headerTitleHeight: u,
806
+ showHeader: d,
807
+ headerTitleHeight: l,
808
808
  canShowNodeLabelAboveNode: _
809
809
  };
810
810
  }
@@ -838,29 +838,29 @@ function et(e) {
838
838
  function tt(e) {
839
839
  return e.links;
840
840
  }
841
- function nt(e, t) {
841
+ function $(e, t) {
842
842
  let n = e.get(t);
843
843
  if (!n) throw Error("missing: " + t);
844
844
  return n;
845
845
  }
846
- function rt({ nodes: e }) {
846
+ function nt({ nodes: e }) {
847
847
  for (let t of e) {
848
848
  let e = t.y0, n = e;
849
849
  for (let n of t.sourceLinks) n.y0 = e + n.width / 2, e += n.width;
850
850
  for (let e of t.targetLinks) e.y1 = n + e.width / 2, n += e.width;
851
851
  }
852
852
  }
853
- function it() {
853
+ function rt() {
854
854
  let e = 0, t = 0, n = 1, r = 1, i = 24, a = 8, o, s = $e, c = Qe, l, u, d = et, f = tt, p = 6;
855
855
  function m() {
856
856
  let e = {
857
857
  nodes: d.apply(null, arguments),
858
858
  links: f.apply(null, arguments)
859
859
  };
860
- return h(e), g(e), _(e), v(e), x(e), rt(e), e;
860
+ return h(e), g(e), _(e), v(e), x(e), nt(e), e;
861
861
  }
862
862
  m.update = function(e) {
863
- return rt(e), e;
863
+ return nt(e), e;
864
864
  }, m.nodeId = function(e) {
865
865
  return arguments.length ? (s = typeof e == "function" ? e : J(e), m) : s;
866
866
  }, m.nodeAlign = function(e) {
@@ -890,7 +890,7 @@ function it() {
890
890
  for (let [e, r] of t.entries()) {
891
891
  r.index = e;
892
892
  let { source: t, target: i } = r;
893
- typeof t != "object" && (t = r.source = nt(n, t)), typeof i != "object" && (i = r.target = nt(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
893
+ typeof t != "object" && (t = r.source = $(n, t)), typeof i != "object" && (i = r.target = $(n, i)), t.sourceLinks.push(r), i.targetLinks.push(r);
894
894
  }
895
895
  if (u != null) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(u), n.sort(u);
896
896
  }
@@ -920,7 +920,7 @@ function it() {
920
920
  }
921
921
  }
922
922
  function y({ nodes: t }) {
923
- let r = le(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
923
+ let r = I(t, (e) => e.depth) + 1, a = (n - e - i) / (r - 1), o = Array(r);
924
924
  for (let n of t) {
925
925
  let t = Math.max(0, Math.min(r - 1, Math.floor(c.call(null, n, r))));
926
926
  n.layer = t, n.x0 = e + t * a, n.x1 = n.x0 + i, o[t] ? o[t].push(n) : o[t] = [n];
@@ -941,12 +941,12 @@ function it() {
941
941
  let n = i[t];
942
942
  n.y0 += e * (t + 1), n.y1 += e * (t + 1);
943
943
  }
944
- ee(i);
944
+ O(i);
945
945
  }
946
946
  }
947
947
  function x(e) {
948
948
  let n = y(e);
949
- o = Math.min(a, (r - t) / (le(n, (e) => e.length) - 1)), b(n);
949
+ o = Math.min(a, (r - t) / (I(n, (e) => e.length) - 1)), b(n);
950
950
  for (let e = 0; e < p; ++e) {
951
951
  let t = .99 ** e, r = Math.max(1 - t, (e + 1) / p);
952
952
  C(n, t, r), S(n, t, r);
@@ -959,7 +959,7 @@ function it() {
959
959
  let n = 0, r = 0;
960
960
  for (let { source: t, value: i } of e.targetLinks) {
961
961
  let a = i * (e.layer - t.layer);
962
- n += O(t, e) * a, r += a;
962
+ n += k(t, e) * a, r += a;
963
963
  }
964
964
  if (!(r > 0)) continue;
965
965
  let i = (n / r - e.y0) * t;
@@ -975,7 +975,7 @@ function it() {
975
975
  let n = 0, r = 0;
976
976
  for (let { target: t, value: i } of e.sourceLinks) {
977
977
  let a = i * (t.layer - e.layer);
978
- n += k(e, t) * a, r += a;
978
+ n += A(e, t) * a, r += a;
979
979
  }
980
980
  if (!(r > 0)) continue;
981
981
  let i = (n / r - e.y0) * t;
@@ -1006,10 +1006,10 @@ function it() {
1006
1006
  for (let { target: { targetLinks: t } } of e) t.sort(Y);
1007
1007
  }
1008
1008
  }
1009
- function ee(e) {
1009
+ function O(e) {
1010
1010
  if (u === void 0) for (let { sourceLinks: t, targetLinks: n } of e) t.sort(X), n.sort(Y);
1011
1011
  }
1012
- function O(e, t) {
1012
+ function k(e, t) {
1013
1013
  let n = e.y0 - (e.sourceLinks.length - 1) * o / 2;
1014
1014
  for (let { target: r, width: i } of e.sourceLinks) {
1015
1015
  if (r === t) break;
@@ -1021,7 +1021,7 @@ function it() {
1021
1021
  }
1022
1022
  return n;
1023
1023
  }
1024
- function k(e, t) {
1024
+ function A(e, t) {
1025
1025
  let n = t.y0 - (t.targetLinks.length - 1) * o / 2;
1026
1026
  for (let { source: r, width: i } of t.targetLinks) {
1027
1027
  if (r === e) break;
@@ -1035,10 +1035,10 @@ function it() {
1035
1035
  }
1036
1036
  return m;
1037
1037
  }
1038
- var $ = 4;
1038
+ var it = 4;
1039
1039
  function at(e) {
1040
- let { columns: t, sankeyNodes: n, sankeyLinks: r, columnWidth: i, columnGap: a, nodePadding: o, top: s, rect: c } = e, l = t.map((e) => e.field), u = (e) => l.indexOf(e.data.source.field), d = t.find((e) => !!e.sort) ? (e, n) => t[e.layer].sort?.(e, n) : void 0, f = [[0, s + $], [c.width, c.height - 2 * $]];
1041
- it().nodeId((e) => e.id).nodePadding(o).nodeWidth(i).linkSort((e, t) => e.dataFill && t.dataFill ? G(e, t) : e.dataFill ? 1 : -1).nodeSort(d).nodeAlign(u).extent(f).iterations(6)({
1040
+ let { columns: t, sankeyNodes: n, sankeyLinks: r, columnWidth: i, columnGap: a, nodePadding: o, top: s, rect: c } = e, l = t.map((e) => e.field), u = (e) => l.indexOf(e.data.source.field), d = t.find((e) => !!e.sort) ? (e, n) => t[e.layer].sort?.(e, n) : void 0, f = [[0, s + it], [c.width, c.height - 2 * it]];
1041
+ rt().nodeId((e) => e.id).nodePadding(o).nodeWidth(i).linkSort((e, t) => e.dataFill && t.dataFill ? G(e, t) : e.dataFill ? 1 : -1).nodeSort(d).nodeAlign(u).extent(f).iterations(6)({
1042
1042
  nodes: n,
1043
1043
  links: r
1044
1044
  });
@@ -1105,22 +1105,22 @@ var ot = {
1105
1105
  }
1106
1106
  };
1107
1107
  function st(e) {
1108
- e.component(P.Sankey, ot);
1108
+ e.component(j.Sankey, ot);
1109
1109
  }
1110
- var ct = y(), lt = _(({ vSpec: e, vTheme: t, data: n, elementSize: i, vizProperties: a }) => {
1111
- let o = g(), [s] = (0, fe.useState)(() => new je()), c = t || r, d = v(), f = m(), p = d.targetDataItemId;
1112
- if (!p && d.targetInternalKey) {
1113
- let t = e.dimensions.find((e) => e.dataItem.internalKey === d.targetInternalKey);
1114
- t && (p = l(t.dataItem));
1110
+ var ct = h(), lt = m(({ vSpec: e, vTheme: t, data: r, elementSize: i, vizProperties: o }) => {
1111
+ let s = _(), [c] = (0, fe.useState)(() => new je()), l = t || a, u = y(), d = g(), p = u.targetDataItemId;
1112
+ if (!p && u.targetInternalKey) {
1113
+ let t = e.dimensions.find((e) => e.dataItem.internalKey === u.targetInternalKey);
1114
+ t && (p = f(t.dataItem));
1115
1115
  }
1116
- let h = {
1117
- ...a,
1118
- valuePickerMode: !!d.activeKey,
1116
+ let m = {
1117
+ ...o,
1118
+ valuePickerMode: !!u.activeKey,
1119
1119
  valuePickerTargetDataItemId: p
1120
- }, _ = s.compile(e, c, n, i, h, u.Sankey, o, f, ne());
1121
- return _ ? /* @__PURE__ */ (0, ct.jsx)(O, {
1122
- config: a,
1123
- definition: _,
1120
+ }, h = c.compile(e, l, r, i, m, n.Sankey, s, d, ne());
1121
+ return h ? /* @__PURE__ */ (0, ct.jsx)(ee, {
1122
+ config: o,
1123
+ definition: h,
1124
1124
  size: i,
1125
1125
  vSpec: e,
1126
1126
  escobarPlugins: [st]