@orbcharts/core 3.0.0-beta.8 → 3.0.0-beta.9

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 (68) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +401 -401
  3. package/dist/orbcharts-core.umd.js +3 -3
  4. package/lib/core-types.ts +7 -7
  5. package/package.json +42 -42
  6. package/src/AbstractChart.ts +57 -57
  7. package/src/GridChart.ts +24 -24
  8. package/src/MultiGridChart.ts +24 -24
  9. package/src/MultiValueChart.ts +24 -24
  10. package/src/RelationshipChart.ts +24 -24
  11. package/src/SeriesChart.ts +24 -24
  12. package/src/TreeChart.ts +24 -24
  13. package/src/base/createBaseChart.ts +505 -505
  14. package/src/base/createBasePlugin.ts +153 -153
  15. package/src/base/validators/chartOptionsValidator.ts +23 -23
  16. package/src/base/validators/chartParamsValidator.ts +133 -133
  17. package/src/base/validators/elementValidator.ts +13 -13
  18. package/src/base/validators/pluginsValidator.ts +14 -14
  19. package/src/defaults.ts +238 -238
  20. package/src/defineGridPlugin.ts +3 -3
  21. package/src/defineMultiGridPlugin.ts +3 -3
  22. package/src/defineMultiValuePlugin.ts +3 -3
  23. package/src/defineNoneDataPlugin.ts +4 -4
  24. package/src/defineRelationshipPlugin.ts +3 -3
  25. package/src/defineSeriesPlugin.ts +3 -3
  26. package/src/defineTreePlugin.ts +3 -3
  27. package/src/grid/computedDataFn.ts +129 -129
  28. package/src/grid/contextObserverCallback.ts +176 -176
  29. package/src/grid/dataFormatterValidator.ts +101 -101
  30. package/src/grid/dataValidator.ts +12 -12
  31. package/src/index.ts +20 -20
  32. package/src/multiGrid/computedDataFn.ts +123 -123
  33. package/src/multiGrid/contextObserverCallback.ts +41 -41
  34. package/src/multiGrid/dataFormatterValidator.ts +115 -115
  35. package/src/multiGrid/dataValidator.ts +12 -12
  36. package/src/multiValue/computedDataFn.ts +110 -110
  37. package/src/multiValue/contextObserverCallback.ts +160 -160
  38. package/src/multiValue/dataFormatterValidator.ts +9 -9
  39. package/src/multiValue/dataValidator.ts +9 -9
  40. package/src/relationship/computedDataFn.ts +144 -144
  41. package/src/relationship/contextObserverCallback.ts +80 -80
  42. package/src/relationship/dataFormatterValidator.ts +9 -9
  43. package/src/relationship/dataValidator.ts +9 -9
  44. package/src/series/computedDataFn.ts +88 -88
  45. package/src/series/contextObserverCallback.ts +100 -100
  46. package/src/series/dataFormatterValidator.ts +41 -41
  47. package/src/series/dataValidator.ts +12 -12
  48. package/src/tree/computedDataFn.ts +129 -129
  49. package/src/tree/contextObserverCallback.ts +58 -58
  50. package/src/tree/dataFormatterValidator.ts +13 -13
  51. package/src/tree/dataValidator.ts +13 -13
  52. package/src/utils/commonUtils.ts +55 -55
  53. package/src/utils/d3Scale.ts +198 -198
  54. package/src/utils/errorMessage.ts +42 -42
  55. package/src/utils/gridObservables.ts +683 -683
  56. package/src/utils/index.ts +9 -9
  57. package/src/utils/multiGridObservables.ts +392 -392
  58. package/src/utils/multiValueObservables.ts +661 -661
  59. package/src/utils/observables.ts +219 -219
  60. package/src/utils/orbchartsUtils.ts +377 -377
  61. package/src/utils/relationshipObservables.ts +84 -84
  62. package/src/utils/seriesObservables.ts +175 -175
  63. package/src/utils/treeObservables.ts +105 -105
  64. package/src/utils/validator.ts +126 -126
  65. package/tsconfig.base.json +13 -13
  66. package/tsconfig.json +2 -2
  67. package/vite-env.d.ts +6 -6
  68. package/vite.config.js +22 -22
@@ -14,9 +14,9 @@ const Ae = {
14
14
  colorScheme: "light",
15
15
  colors: {
16
16
  light: {
17
- // label: ['#67B7DC', '#6794DC', '#6771DC', '#8067DC', '#A367DC', '#C767DC', '#DC67CE', '#DC67AB', '#DC6788', '#DC6967', '#DC8C67', '#DCAF67'],
17
+ label: ["#67B7DC", "#6794DC", "#6771DC", "#8067DC", "#A367DC", "#C767DC", "#DC67CE", "#DC67AB", "#DC6788", "#DC6967", "#DC8C67", "#DCAF67"],
18
18
  // label: ['#F3A356', '#7A60F0', '#38B1AF', '#60A2F0', '#F06062', '#FF383C', '#6580EA', '#079F9C', '#9F65EA', '#EA7465', '#EA7465', '#8657D2', '#59B757', '#2797FF', '#D25786', '#F54BA6', '#4BECF5', '#74FD72', '#CA4BF5', '#EFE26E'],
19
- label: ["#60A2F0", "#F3A356", "#7A60F0", "#38B1AF", "#F06062", "#FF383C", "#6580EA", "#079F9C", "#9F65EA", "#EA7465", "#EA7465", "#8657D2", "#59B757", "#2797FF", "#D25786", "#F54BA6", "#4BECF5", "#74FD72", "#CA4BF5", "#EFE26E"],
19
+ // label: ['#60A2F0', '#F3A356', '#7A60F0', '#38B1AF', '#F06062', '#FF383C', '#6580EA', '#079F9C', '#9F65EA', '#EA7465', '#EA7465', '#8657D2', '#59B757', '#2797FF', '#D25786', '#F54BA6', '#4BECF5', '#74FD72', '#CA4BF5', '#EFE26E'],
20
20
  // primary: '#454545',
21
21
  primary: "#1b1e23",
22
22
  secondary: "#e1e1e1",
@@ -24,8 +24,8 @@ const Ae = {
24
24
  background: "#ffffff"
25
25
  },
26
26
  dark: {
27
- // label: ['#67B7DC', '#6794DC', '#38B1AF', '#6771DC', '#8067DC', '#A367DC', '#C767DC', '#DC67CE', '#DC67AB', '#DC6788', '#DC6967', '#DC8C67', '#DCAF67'],
28
- label: ["#60A2F0", "#F3A356", "#7A60F0", "#38B1AF", "#F06062", "#FF383C", "#6580EA", "#079F9C", "#9F65EA", "#EA7465", "#EA7465", "#8657D2", "#59B757", "#2797FF", "#D25786", "#F54BA6", "#4BECF5", "#74FD72", "#CA4BF5", "#EFE26E"],
27
+ label: ["#67B7DC", "#6794DC", "#38B1AF", "#6771DC", "#8067DC", "#A367DC", "#C767DC", "#DC67CE", "#DC67AB", "#DC6788", "#DC6967", "#DC8C67", "#DCAF67"],
28
+ // label: ['#60A2F0', '#F3A356', '#7A60F0', '#38B1AF', '#F06062', '#FF383C', '#6580EA', '#079F9C', '#9F65EA', '#EA7465', '#EA7465', '#8657D2', '#59B757', '#2797FF', '#D25786', '#F54BA6', '#4BECF5', '#74FD72', '#CA4BF5', '#EFE26E'],
29
29
  primary: "#f0f0f0",
30
30
  secondary: "#e1e1e1",
31
31
  white: "#ffffff",
@@ -39,7 +39,7 @@ const Ae = {
39
39
  },
40
40
  transitionDuration: 800,
41
41
  transitionEase: "easeCubic"
42
- }, Mi = 800, Ti = 500, qc = [], jc = [], Wc = [], Jc = [], Kc = [], Zc = {
42
+ }, Ci = 800, Mi = 500, qc = [], jc = [], Wc = [], Jc = [], Kc = [], Zc = {
43
43
  nodes: [],
44
44
  edges: []
45
45
  }, X = {
@@ -47,7 +47,7 @@ const Ae = {
47
47
  scaleDomain: ["auto", "auto"],
48
48
  scaleRange: [0, 0.9],
49
49
  label: ""
50
- }, Fi = {
50
+ }, Ti = {
51
51
  position: "bottom",
52
52
  scaleDomain: [0, "max"],
53
53
  scalePadding: 0.5,
@@ -86,7 +86,7 @@ const Jn = {
86
86
  rowLabels: [],
87
87
  columnLabels: [],
88
88
  valueAxis: { ...X },
89
- groupAxis: { ...Fi },
89
+ groupAxis: { ...Ti },
90
90
  separateSeries: !1
91
91
  // slotIndex: 0,
92
92
  // seriesSlotIndexes: null
@@ -153,10 +153,10 @@ er.visibleFilter.toString = () => "(datum, context) => true";
153
153
  function U(t) {
154
154
  return Object.prototype.toString.call(t) === "[object Object]";
155
155
  }
156
- function Ci(t) {
156
+ function Fi(t) {
157
157
  return Object.prototype.toString.call(t) === "[object Function]";
158
158
  }
159
- function Ei(t) {
159
+ function Li(t) {
160
160
  return !!(t && t.nodeType);
161
161
  }
162
162
  function mt(t, e) {
@@ -182,7 +182,7 @@ function Qc(t = 0) {
182
182
  console.error(e);
183
183
  }
184
184
  }
185
- function Li(t, e) {
185
+ function Ei(t, e) {
186
186
  const n = {
187
187
  string: (a) => typeof a == "string",
188
188
  number: (a) => typeof a == "number",
@@ -192,7 +192,7 @@ function Li(t, e) {
192
192
  "object[]": (a) => Array.isArray(a) && a.every((o) => U(o)),
193
193
  "string[]": (a) => Array.isArray(a) && a.every((o) => typeof o == "string"),
194
194
  "number[]": (a) => Array.isArray(a) && a.every((o) => typeof o == "number"),
195
- Function: (a) => Ci(a),
195
+ Function: (a) => Fi(a),
196
196
  null: (a) => a === null,
197
197
  undefined: (a) => a === void 0
198
198
  }, r = {
@@ -217,8 +217,8 @@ function Li(t, e) {
217
217
  return !1;
218
218
  });
219
219
  }
220
- function C(t, e) {
221
- const n = Li(t, e);
220
+ function F(t, e) {
221
+ const n = Ei(t, e);
222
222
  if (n) {
223
223
  const r = e[n], i = r.toBeTypes ? r.toBeTypes.join(" | ") : r.toBe ? r.toBe : r.toBeOption ? r.toBeOption : "";
224
224
  return {
@@ -239,7 +239,7 @@ function C(t, e) {
239
239
  };
240
240
  }
241
241
  const Pi = (t) => {
242
- const e = C(t, {
242
+ const e = F(t, {
243
243
  visibleFilter: {
244
244
  toBeTypes: ["Function"]
245
245
  },
@@ -260,7 +260,7 @@ const Pi = (t) => {
260
260
  }
261
261
  });
262
262
  if (t.container) {
263
- const n = C(t.container, {
263
+ const n = F(t.container, {
264
264
  gap: {
265
265
  toBeTypes: ["number"]
266
266
  },
@@ -317,7 +317,7 @@ function ki() {
317
317
  function Ni(t) {
318
318
  return t === null ? NaN : +t;
319
319
  }
320
- const Bi = nr(ee), rr = Bi.right;
320
+ const Ri = nr(ee), rr = Ri.right;
321
321
  nr(Ni).center;
322
322
  class pn extends Map {
323
323
  constructor(e, n = Vi) {
@@ -330,7 +330,7 @@ class pn extends Map {
330
330
  return super.has(mn(this, e));
331
331
  }
332
332
  set(e, n) {
333
- return super.set(Ri(this, e), n);
333
+ return super.set(Bi(this, e), n);
334
334
  }
335
335
  delete(e) {
336
336
  return super.delete(Ii(this, e));
@@ -340,7 +340,7 @@ function mn({ _intern: t, _key: e }, n) {
340
340
  const r = e(n);
341
341
  return t.has(r) ? t.get(r) : n;
342
342
  }
343
- function Ri({ _intern: t, _key: e }, n) {
343
+ function Bi({ _intern: t, _key: e }, n) {
344
344
  const r = e(n);
345
345
  return t.has(r) ? t.get(r) : (t.set(r, n), n);
346
346
  }
@@ -370,12 +370,12 @@ function Ui(t, e, n) {
370
370
  else for (let l = 0; l < s; ++l) u[l] = (i + l) * o;
371
371
  return u;
372
372
  }
373
- function Le(t, e, n) {
373
+ function Ee(t, e, n) {
374
374
  return e = +e, t = +t, n = +n, oe(t, e, n)[2];
375
375
  }
376
376
  function Hi(t, e, n) {
377
377
  e = +e, t = +t, n = +n;
378
- const r = e < t, i = r ? Le(e, t, n) : Le(t, e, n);
378
+ const r = e < t, i = r ? Ee(e, t, n) : Ee(t, e, n);
379
379
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
380
380
  }
381
381
  function zi(t, e, n) {
@@ -604,10 +604,10 @@ function va(t, e) {
604
604
  for (var a = i.length, o = new Array(a), s = new Array(a), u = new Array(a), l = 0; l < a; ++l) {
605
605
  var f = r[l], c = i[l], h = c.length, p = ba(t.call(f, f && f.__data__, l, r)), m = p.length, d = s[l] = new Array(m), v = o[l] = new Array(m), D = u[l] = new Array(h);
606
606
  n(f, c, d, v, D, p, e);
607
- for (var A = 0, $ = 0, F, _; A < m; ++A)
608
- if (F = d[A]) {
607
+ for (var A = 0, $ = 0, T, _; A < m; ++A)
608
+ if (T = d[A]) {
609
609
  for (A >= $ && ($ = A + 1); !(_ = v[$]) && ++$ < m; ) ;
610
- F._next = _ || null;
610
+ T._next = _ || null;
611
611
  }
612
612
  }
613
613
  return o = new H(o, r), o._enter = s, o._exit = u, o;
@@ -655,10 +655,10 @@ function Sa() {
655
655
  var t = arguments[0];
656
656
  return arguments[0] = this, t.apply(null, arguments), this;
657
657
  }
658
- function Ma() {
658
+ function Ca() {
659
659
  return Array.from(this);
660
660
  }
661
- function Ta() {
661
+ function Ma() {
662
662
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
663
663
  for (var r = t[e], i = 0, a = r.length; i < a; ++i) {
664
664
  var o = r[i];
@@ -666,21 +666,21 @@ function Ta() {
666
666
  }
667
667
  return null;
668
668
  }
669
- function Fa() {
669
+ function Ta() {
670
670
  let t = 0;
671
671
  for (const e of this) ++t;
672
672
  return t;
673
673
  }
674
- function Ca() {
674
+ function Fa() {
675
675
  return !this.node();
676
676
  }
677
- function Ea(t) {
677
+ function La(t) {
678
678
  for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
679
679
  for (var i = e[n], a = 0, o = i.length, s; a < o; ++a)
680
680
  (s = i[a]) && t.call(s, s.__data__, a, i);
681
681
  return this;
682
682
  }
683
- function La(t) {
683
+ function Ea(t) {
684
684
  return function() {
685
685
  this.removeAttribute(t);
686
686
  };
@@ -706,19 +706,19 @@ function Na(t, e) {
706
706
  n == null ? this.removeAttribute(t) : this.setAttribute(t, n);
707
707
  };
708
708
  }
709
- function Ba(t, e) {
709
+ function Ra(t, e) {
710
710
  return function() {
711
711
  var n = e.apply(this, arguments);
712
712
  n == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, n);
713
713
  };
714
714
  }
715
- function Ra(t, e) {
715
+ function Ba(t, e) {
716
716
  var n = xe(t);
717
717
  if (arguments.length < 2) {
718
718
  var r = this.node();
719
719
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
720
720
  }
721
- return this.each((e == null ? n.local ? Pa : La : typeof e == "function" ? n.local ? Ba : Na : n.local ? ka : Oa)(n, e));
721
+ return this.each((e == null ? n.local ? Pa : Ea : typeof e == "function" ? n.local ? Ra : Na : n.local ? ka : Oa)(n, e));
722
722
  }
723
723
  function cr(t) {
724
724
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
@@ -963,7 +963,7 @@ function Ao(t, e) {
963
963
  function So(t, e) {
964
964
  return this.each((typeof e == "function" ? Ao : _o)(t, e));
965
965
  }
966
- function* Mo() {
966
+ function* Co() {
967
967
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
968
968
  for (var r = t[e], i = 0, a = r.length, o; i < a; ++i)
969
969
  (o = r[i]) && (yield o);
@@ -975,7 +975,7 @@ function H(t, e) {
975
975
  function Ht() {
976
976
  return new H([[document.documentElement]], gr);
977
977
  }
978
- function To() {
978
+ function Mo() {
979
979
  return this;
980
980
  }
981
981
  H.prototype = Ht.prototype = {
@@ -990,16 +990,16 @@ H.prototype = Ht.prototype = {
990
990
  exit: xa,
991
991
  join: wa,
992
992
  merge: Da,
993
- selection: To,
993
+ selection: Mo,
994
994
  order: $a,
995
995
  sort: _a,
996
996
  call: Sa,
997
- nodes: Ma,
998
- node: Ta,
999
- size: Fa,
1000
- empty: Ca,
1001
- each: Ea,
1002
- attr: Ra,
997
+ nodes: Ca,
998
+ node: Ma,
999
+ size: Ta,
1000
+ empty: Fa,
1001
+ each: La,
1002
+ attr: Ba,
1003
1003
  style: Xa,
1004
1004
  property: za,
1005
1005
  classed: Ja,
@@ -1014,7 +1014,7 @@ H.prototype = Ht.prototype = {
1014
1014
  datum: vo,
1015
1015
  on: $o,
1016
1016
  dispatch: So,
1017
- [Symbol.iterator]: Mo
1017
+ [Symbol.iterator]: Co
1018
1018
  };
1019
1019
  function Wt(t) {
1020
1020
  return typeof t == "string" ? new H([[document.querySelector(t)]], [document.documentElement]) : new H([[t]], gr);
@@ -1029,7 +1029,7 @@ function yr(t, e) {
1029
1029
  }
1030
1030
  function zt() {
1031
1031
  }
1032
- var It = 0.7, ue = 1 / It, _t = "\\s*([+-]?\\d+)\\s*", Vt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Fo = /^#([0-9a-f]{3,8})$/, Co = new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`), Eo = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), Lo = new RegExp(`^rgba\\(${_t},${_t},${_t},${Vt}\\)$`), Po = new RegExp(`^rgba\\(${Z},${Z},${Z},${Vt}\\)$`), Oo = new RegExp(`^hsl\\(${Vt},${Z},${Z}\\)$`), ko = new RegExp(`^hsla\\(${Vt},${Z},${Z},${Vt}\\)$`), yn = {
1032
+ var It = 0.7, ue = 1 / It, _t = "\\s*([+-]?\\d+)\\s*", Vt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Z = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", To = /^#([0-9a-f]{3,8})$/, Fo = new RegExp(`^rgb\\(${_t},${_t},${_t}\\)$`), Lo = new RegExp(`^rgb\\(${Z},${Z},${Z}\\)$`), Eo = new RegExp(`^rgba\\(${_t},${_t},${_t},${Vt}\\)$`), Po = new RegExp(`^rgba\\(${Z},${Z},${Z},${Vt}\\)$`), Oo = new RegExp(`^hsl\\(${Vt},${Z},${Z}\\)$`), ko = new RegExp(`^hsla\\(${Vt},${Z},${Z},${Vt}\\)$`), yn = {
1033
1033
  aliceblue: 15792383,
1034
1034
  antiquewhite: 16444375,
1035
1035
  aqua: 65535,
@@ -1190,7 +1190,7 @@ qe(zt, gt, {
1190
1190
  // Deprecated! Use color.formatHex.
1191
1191
  formatHex: vn,
1192
1192
  formatHex8: No,
1193
- formatHsl: Bo,
1193
+ formatHsl: Ro,
1194
1194
  formatRgb: bn,
1195
1195
  toString: bn
1196
1196
  });
@@ -1200,7 +1200,7 @@ function vn() {
1200
1200
  function No() {
1201
1201
  return this.rgb().formatHex8();
1202
1202
  }
1203
- function Bo() {
1203
+ function Ro() {
1204
1204
  return vr(this).formatHsl();
1205
1205
  }
1206
1206
  function bn() {
@@ -1208,7 +1208,7 @@ function bn() {
1208
1208
  }
1209
1209
  function gt(t) {
1210
1210
  var e, n;
1211
- return t = (t + "").trim().toLowerCase(), (e = Fo.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? xn(e) : n === 3 ? new Y(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Jt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Jt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Co.exec(t)) ? new Y(e[1], e[2], e[3], 1) : (e = Eo.exec(t)) ? new Y(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Lo.exec(t)) ? Jt(e[1], e[2], e[3], e[4]) : (e = Po.exec(t)) ? Jt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Oo.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, 1) : (e = ko.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, e[4]) : yn.hasOwnProperty(t) ? xn(yn[t]) : t === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
1211
+ return t = (t + "").trim().toLowerCase(), (e = To.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? xn(e) : n === 3 ? new Y(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Jt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Jt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Fo.exec(t)) ? new Y(e[1], e[2], e[3], 1) : (e = Lo.exec(t)) ? new Y(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = Eo.exec(t)) ? Jt(e[1], e[2], e[3], e[4]) : (e = Po.exec(t)) ? Jt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = Oo.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, 1) : (e = ko.exec(t)) ? $n(e[1], e[2] / 100, e[3] / 100, e[4]) : yn.hasOwnProperty(t) ? xn(yn[t]) : t === "transparent" ? new Y(NaN, NaN, NaN, 0) : null;
1212
1212
  }
1213
1213
  function xn(t) {
1214
1214
  return new Y(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
@@ -1216,11 +1216,11 @@ function xn(t) {
1216
1216
  function Jt(t, e, n, r) {
1217
1217
  return r <= 0 && (t = e = n = NaN), new Y(t, e, n, r);
1218
1218
  }
1219
- function Ro(t) {
1219
+ function Bo(t) {
1220
1220
  return t instanceof zt || (t = gt(t)), t ? (t = t.rgb(), new Y(t.r, t.g, t.b, t.opacity)) : new Y();
1221
1221
  }
1222
1222
  function Oe(t, e, n, r) {
1223
- return arguments.length === 1 ? Ro(t) : new Y(t, e, n, r ?? 1);
1223
+ return arguments.length === 1 ? Bo(t) : new Y(t, e, n, r ?? 1);
1224
1224
  }
1225
1225
  function Y(t, e, n, r) {
1226
1226
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
@@ -1391,7 +1391,7 @@ function jo(t, e) {
1391
1391
  return r;
1392
1392
  };
1393
1393
  }
1394
- var ke = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Me = new RegExp(ke.source, "g");
1394
+ var ke = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, Ce = new RegExp(ke.source, "g");
1395
1395
  function Wo(t) {
1396
1396
  return function() {
1397
1397
  return t;
@@ -1403,9 +1403,9 @@ function Jo(t) {
1403
1403
  };
1404
1404
  }
1405
1405
  function xr(t, e) {
1406
- var n = ke.lastIndex = Me.lastIndex = 0, r, i, a, o = -1, s = [], u = [];
1407
- for (t = t + "", e = e + ""; (r = ke.exec(t)) && (i = Me.exec(e)); )
1408
- (a = i.index) > n && (a = e.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, u.push({ i: o, x: W(r, i) })), n = Me.lastIndex;
1406
+ var n = ke.lastIndex = Ce.lastIndex = 0, r, i, a, o = -1, s = [], u = [];
1407
+ for (t = t + "", e = e + ""; (r = ke.exec(t)) && (i = Ce.exec(e)); )
1408
+ (a = i.index) > n && (a = e.slice(n, a), s[o] ? s[o] += a : s[++o] = a), (r = r[0]) === (i = i[0]) ? s[o] ? s[o] += i : s[++o] = i : (s[++o] = null, u.push({ i: o, x: W(r, i) })), n = Ce.lastIndex;
1409
1409
  return n < e.length && (a = e.slice(n), s[o] ? s[o] += a : s[++o] = a), s.length < 2 ? u[0] ? Jo(u[0].x) : Wo(e) : (e = u.length, function(l) {
1410
1410
  for (var f = 0, c; f < e; ++f) s[(c = u[f]).i] = c.x(l);
1411
1411
  return s.join("");
@@ -1477,7 +1477,7 @@ function Dr(t, e, n, r) {
1477
1477
  };
1478
1478
  };
1479
1479
  }
1480
- var ts = Dr(Zo, "px, ", "px)", "deg)"), es = Dr(Qo, ", ", ")", ")"), Mt = 0, Nt = 0, kt = 0, $r = 1e3, fe, Bt, he = 0, yt = 0, we = 0, Gt = typeof performance == "object" && performance.now ? performance : Date, _r = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1480
+ var ts = Dr(Zo, "px, ", "px)", "deg)"), es = Dr(Qo, ", ", ")", ")"), Ct = 0, Nt = 0, kt = 0, $r = 1e3, fe, Rt, he = 0, yt = 0, we = 0, Gt = typeof performance == "object" && performance.now ? performance : Date, _r = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1481
1481
  setTimeout(t, 17);
1482
1482
  };
1483
1483
  function Je() {
@@ -1493,10 +1493,10 @@ pe.prototype = Ar.prototype = {
1493
1493
  constructor: pe,
1494
1494
  restart: function(t, e, n) {
1495
1495
  if (typeof t != "function") throw new TypeError("callback is not a function");
1496
- n = (n == null ? Je() : +n) + (e == null ? 0 : +e), !this._next && Bt !== this && (Bt ? Bt._next = this : fe = this, Bt = this), this._call = t, this._time = n, Be();
1496
+ n = (n == null ? Je() : +n) + (e == null ? 0 : +e), !this._next && Rt !== this && (Rt ? Rt._next = this : fe = this, Rt = this), this._call = t, this._time = n, Re();
1497
1497
  },
1498
1498
  stop: function() {
1499
- this._call && (this._call = null, this._time = 1 / 0, Be());
1499
+ this._call && (this._call = null, this._time = 1 / 0, Re());
1500
1500
  }
1501
1501
  };
1502
1502
  function Ar(t, e, n) {
@@ -1504,17 +1504,17 @@ function Ar(t, e, n) {
1504
1504
  return r.restart(t, e, n), r;
1505
1505
  }
1506
1506
  function rs() {
1507
- Je(), ++Mt;
1507
+ Je(), ++Ct;
1508
1508
  for (var t = fe, e; t; )
1509
1509
  (e = yt - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1510
- --Mt;
1510
+ --Ct;
1511
1511
  }
1512
1512
  function Sn() {
1513
- yt = (he = Gt.now()) + we, Mt = Nt = 0;
1513
+ yt = (he = Gt.now()) + we, Ct = Nt = 0;
1514
1514
  try {
1515
1515
  rs();
1516
1516
  } finally {
1517
- Mt = 0, as(), yt = 0;
1517
+ Ct = 0, as(), yt = 0;
1518
1518
  }
1519
1519
  }
1520
1520
  function is() {
@@ -1524,22 +1524,22 @@ function is() {
1524
1524
  function as() {
1525
1525
  for (var t, e = fe, n, r = 1 / 0; e; )
1526
1526
  e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : fe = n);
1527
- Bt = t, Be(r);
1527
+ Rt = t, Re(r);
1528
1528
  }
1529
- function Be(t) {
1530
- if (!Mt) {
1529
+ function Re(t) {
1530
+ if (!Ct) {
1531
1531
  Nt && (Nt = clearTimeout(Nt));
1532
1532
  var e = t - yt;
1533
- e > 24 ? (t < 1 / 0 && (Nt = setTimeout(Sn, t - Gt.now() - we)), kt && (kt = clearInterval(kt))) : (kt || (he = Gt.now(), kt = setInterval(is, $r)), Mt = 1, _r(Sn));
1533
+ e > 24 ? (t < 1 / 0 && (Nt = setTimeout(Sn, t - Gt.now() - we)), kt && (kt = clearInterval(kt))) : (kt || (he = Gt.now(), kt = setInterval(is, $r)), Ct = 1, _r(Sn));
1534
1534
  }
1535
1535
  }
1536
- function Mn(t, e, n) {
1536
+ function Cn(t, e, n) {
1537
1537
  var r = new pe();
1538
1538
  return e = e == null ? 0 : +e, r.restart((i) => {
1539
1539
  r.stop(), t(i + e);
1540
1540
  }, e, n), r;
1541
1541
  }
1542
- var os = ir("start", "end", "cancel", "interrupt"), ss = [], Sr = 0, Tn = 1, Re = 2, re = 3, Fn = 4, Ie = 5, ie = 6;
1542
+ var os = ir("start", "end", "cancel", "interrupt"), ss = [], Sr = 0, Mn = 1, Be = 2, re = 3, Tn = 4, Ie = 5, ie = 6;
1543
1543
  function De(t, e, n, r, i, a) {
1544
1544
  var o = t.__transition;
1545
1545
  if (!o) t.__transition = {};
@@ -1579,19 +1579,19 @@ function us(t, e, n) {
1579
1579
  var r = t.__transition, i;
1580
1580
  r[e] = n, n.timer = Ar(a, 0, n.time);
1581
1581
  function a(l) {
1582
- n.state = Tn, n.timer.restart(o, n.delay, n.time), n.delay <= l && o(l - n.delay);
1582
+ n.state = Mn, n.timer.restart(o, n.delay, n.time), n.delay <= l && o(l - n.delay);
1583
1583
  }
1584
1584
  function o(l) {
1585
1585
  var f, c, h, p;
1586
- if (n.state !== Tn) return u();
1586
+ if (n.state !== Mn) return u();
1587
1587
  for (f in r)
1588
1588
  if (p = r[f], p.name === n.name) {
1589
- if (p.state === re) return Mn(o);
1590
- p.state === Fn ? (p.state = ie, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete r[f]) : +f < e && (p.state = ie, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete r[f]);
1589
+ if (p.state === re) return Cn(o);
1590
+ p.state === Tn ? (p.state = ie, p.timer.stop(), p.on.call("interrupt", t, t.__data__, p.index, p.group), delete r[f]) : +f < e && (p.state = ie, p.timer.stop(), p.on.call("cancel", t, t.__data__, p.index, p.group), delete r[f]);
1591
1591
  }
1592
- if (Mn(function() {
1593
- n.state === re && (n.state = Fn, n.timer.restart(s, n.delay, n.time), s(l));
1594
- }), n.state = Re, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Re) {
1592
+ if (Cn(function() {
1593
+ n.state === re && (n.state = Tn, n.timer.restart(s, n.delay, n.time), s(l));
1594
+ }), n.state = Be, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Be) {
1595
1595
  for (n.state = re, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1596
1596
  (p = n.tween[f].value.call(t, t.__data__, n.index, n.group)) && (i[++c] = p);
1597
1597
  i.length = c + 1;
@@ -1617,7 +1617,7 @@ function ls(t, e) {
1617
1617
  a = !1;
1618
1618
  continue;
1619
1619
  }
1620
- i = r.state > Re && r.state < Ie, r.state = ie, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[o];
1620
+ i = r.state > Be && r.state < Ie, r.state = ie, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[o];
1621
1621
  }
1622
1622
  a && delete t.__transition;
1623
1623
  }
@@ -1678,7 +1678,7 @@ function Ze(t, e, n) {
1678
1678
  return K(i, r).value[e];
1679
1679
  };
1680
1680
  }
1681
- function Mr(t, e) {
1681
+ function Cr(t, e) {
1682
1682
  var n;
1683
1683
  return (typeof e == "number" ? W : e instanceof gt ? ce : (n = gt(e)) ? (e = n, ce) : xr)(t, e);
1684
1684
  }
@@ -1721,7 +1721,7 @@ function bs(t, e, n) {
1721
1721
  };
1722
1722
  }
1723
1723
  function xs(t, e) {
1724
- var n = xe(t), r = n === "transform" ? es : Mr;
1724
+ var n = xe(t), r = n === "transform" ? es : Cr;
1725
1725
  return this.attrTween(t, typeof e == "function" ? (n.local ? bs : vs)(n, r, Ze(this, "attr." + t, e)) : e == null ? (n.local ? ds : ms)(n) : (n.local ? ys : gs)(n, r, e));
1726
1726
  }
1727
1727
  function ws(t, e) {
@@ -1763,30 +1763,30 @@ function Ss(t, e) {
1763
1763
  Ke(this, t).delay = +e.apply(this, arguments);
1764
1764
  };
1765
1765
  }
1766
- function Ms(t, e) {
1766
+ function Cs(t, e) {
1767
1767
  return e = +e, function() {
1768
1768
  Ke(this, t).delay = e;
1769
1769
  };
1770
1770
  }
1771
- function Ts(t) {
1771
+ function Ms(t) {
1772
1772
  var e = this._id;
1773
- return arguments.length ? this.each((typeof t == "function" ? Ss : Ms)(e, t)) : K(this.node(), e).delay;
1773
+ return arguments.length ? this.each((typeof t == "function" ? Ss : Cs)(e, t)) : K(this.node(), e).delay;
1774
1774
  }
1775
- function Fs(t, e) {
1775
+ function Ts(t, e) {
1776
1776
  return function() {
1777
1777
  Q(this, t).duration = +e.apply(this, arguments);
1778
1778
  };
1779
1779
  }
1780
- function Cs(t, e) {
1780
+ function Fs(t, e) {
1781
1781
  return e = +e, function() {
1782
1782
  Q(this, t).duration = e;
1783
1783
  };
1784
1784
  }
1785
- function Es(t) {
1785
+ function Ls(t) {
1786
1786
  var e = this._id;
1787
- return arguments.length ? this.each((typeof t == "function" ? Fs : Cs)(e, t)) : K(this.node(), e).duration;
1787
+ return arguments.length ? this.each((typeof t == "function" ? Ts : Fs)(e, t)) : K(this.node(), e).duration;
1788
1788
  }
1789
- function Ls(t, e) {
1789
+ function Es(t, e) {
1790
1790
  if (typeof e != "function") throw new Error();
1791
1791
  return function() {
1792
1792
  Q(this, t).ease = e;
@@ -1794,7 +1794,7 @@ function Ls(t, e) {
1794
1794
  }
1795
1795
  function Ps(t) {
1796
1796
  var e = this._id;
1797
- return arguments.length ? this.each(Ls(e, t)) : K(this.node(), e).ease;
1797
+ return arguments.length ? this.each(Es(e, t)) : K(this.node(), e).ease;
1798
1798
  }
1799
1799
  function Os(t, e) {
1800
1800
  return function() {
@@ -1814,7 +1814,7 @@ function Ns(t) {
1814
1814
  (u = a[l]) && t.call(u, u.__data__, l, a) && s.push(u);
1815
1815
  return new rt(r, this._parents, this._name, this._id);
1816
1816
  }
1817
- function Bs(t) {
1817
+ function Rs(t) {
1818
1818
  if (t._id !== this._id) throw new Error();
1819
1819
  for (var e = this._groups, n = t._groups, r = e.length, i = n.length, a = Math.min(r, i), o = new Array(r), s = 0; s < a; ++s)
1820
1820
  for (var u = e[s], l = n[s], f = u.length, c = o[s] = new Array(f), h, p = 0; p < f; ++p)
@@ -1823,14 +1823,14 @@ function Bs(t) {
1823
1823
  o[s] = e[s];
1824
1824
  return new rt(o, this._parents, this._name, this._id);
1825
1825
  }
1826
- function Rs(t) {
1826
+ function Bs(t) {
1827
1827
  return (t + "").trim().split(/^|\s+/).every(function(e) {
1828
1828
  var n = e.indexOf(".");
1829
1829
  return n >= 0 && (e = e.slice(0, n)), !e || e === "start";
1830
1830
  });
1831
1831
  }
1832
1832
  function Is(t, e, n) {
1833
- var r, i, a = Rs(e) ? Ke : Q;
1833
+ var r, i, a = Bs(e) ? Ke : Q;
1834
1834
  return function() {
1835
1835
  var o = a(this, t), s = o.on;
1836
1836
  s !== r && (i = (r = s).copy()).on(e, n), o.on = i;
@@ -1881,7 +1881,7 @@ function qs(t, e) {
1881
1881
  return a === o ? null : a === n && o === r ? i : i = e(n = a, r = o);
1882
1882
  };
1883
1883
  }
1884
- function Tr(t) {
1884
+ function Mr(t) {
1885
1885
  return function() {
1886
1886
  this.style.removeProperty(t);
1887
1887
  };
@@ -1903,13 +1903,13 @@ function Ws(t, e, n) {
1903
1903
  function Js(t, e) {
1904
1904
  var n, r, i, a = "style." + e, o = "end." + a, s;
1905
1905
  return function() {
1906
- var u = Q(this, t), l = u.on, f = u.value[a] == null ? s || (s = Tr(e)) : void 0;
1906
+ var u = Q(this, t), l = u.on, f = u.value[a] == null ? s || (s = Mr(e)) : void 0;
1907
1907
  (l !== n || i !== f) && (r = (n = l).copy()).on(o, i = f), u.on = r;
1908
1908
  };
1909
1909
  }
1910
1910
  function Ks(t, e, n) {
1911
- var r = (t += "") == "transform" ? ts : Mr;
1912
- return e == null ? this.styleTween(t, qs(t, r)).on("end.style." + t, Tr(t)) : typeof e == "function" ? this.styleTween(t, Ws(t, r, Ze(this, "style." + t, e))).each(Js(this._id, t)) : this.styleTween(t, js(t, r, e), n).on("end.style." + t, null);
1911
+ var r = (t += "") == "transform" ? ts : Cr;
1912
+ return e == null ? this.styleTween(t, qs(t, r)).on("end.style." + t, Mr(t)) : typeof e == "function" ? this.styleTween(t, Ws(t, r, Ze(this, "style." + t, e))).each(Js(this._id, t)) : this.styleTween(t, js(t, r, e), n).on("end.style." + t, null);
1913
1913
  }
1914
1914
  function Zs(t, e, n) {
1915
1915
  return function(r) {
@@ -1966,7 +1966,7 @@ function ou(t) {
1966
1966
  return this.tween(e, au(t));
1967
1967
  }
1968
1968
  function su() {
1969
- for (var t = this._name, e = this._id, n = Fr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1969
+ for (var t = this._name, e = this._id, n = Tr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1970
1970
  for (var o = r[a], s = o.length, u, l = 0; l < s; ++l)
1971
1971
  if (u = o[l]) {
1972
1972
  var f = K(u, e);
@@ -1995,7 +1995,7 @@ var lu = 0;
1995
1995
  function rt(t, e, n, r) {
1996
1996
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1997
1997
  }
1998
- function Fr() {
1998
+ function Tr() {
1999
1999
  return ++lu;
2000
2000
  }
2001
2001
  var nt = Ht.prototype;
@@ -2006,7 +2006,7 @@ rt.prototype = {
2006
2006
  selectChild: nt.selectChild,
2007
2007
  selectChildren: nt.selectChildren,
2008
2008
  filter: Ns,
2009
- merge: Bs,
2009
+ merge: Rs,
2010
2010
  selection: zs,
2011
2011
  transition: su,
2012
2012
  call: nt.call,
@@ -2024,8 +2024,8 @@ rt.prototype = {
2024
2024
  textTween: ou,
2025
2025
  remove: Xs,
2026
2026
  tween: ps,
2027
- delay: Ts,
2028
- duration: Es,
2027
+ delay: Ms,
2028
+ duration: Ls,
2029
2029
  ease: Ps,
2030
2030
  easeVarying: ks,
2031
2031
  end: uu,
@@ -2049,7 +2049,7 @@ function hu(t, e) {
2049
2049
  }
2050
2050
  function pu(t) {
2051
2051
  var e, n;
2052
- t instanceof rt ? (e = t._id, t = t._name) : (e = Fr(), (n = fu).time = Je(), t = t == null ? null : t + "");
2052
+ t instanceof rt ? (e = t._id, t = t._name) : (e = Tr(), (n = fu).time = Je(), t = t == null ? null : t + "");
2053
2053
  for (var r = this._groups, i = r.length, a = 0; a < i; ++a)
2054
2054
  for (var o = r[a], s = o.length, u, l = 0; l < s; ++l)
2055
2055
  (u = o[l]) && De(u, t, e, l, o, n || hu(u, e));
@@ -2068,7 +2068,7 @@ function me(t, e) {
2068
2068
  +t.slice(n + 1)
2069
2069
  ];
2070
2070
  }
2071
- function Tt(t) {
2071
+ function Mt(t) {
2072
2072
  return t = me(Math.abs(t)), t ? t[1] : NaN;
2073
2073
  }
2074
2074
  function du(t, e) {
@@ -2125,20 +2125,20 @@ function vu(t) {
2125
2125
  }
2126
2126
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
2127
2127
  }
2128
- var Cr;
2128
+ var Fr;
2129
2129
  function bu(t, e) {
2130
2130
  var n = me(t, e);
2131
2131
  if (!n) return t + "";
2132
- var r = n[0], i = n[1], a = i - (Cr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2132
+ var r = n[0], i = n[1], a = i - (Fr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
2133
2133
  return a === o ? r : a > o ? r + new Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + new Array(1 - a).join("0") + me(t, Math.max(0, e + a - 1))[0];
2134
2134
  }
2135
- function Cn(t, e) {
2135
+ function Fn(t, e) {
2136
2136
  var n = me(t, e);
2137
2137
  if (!n) return t + "";
2138
2138
  var r = n[0], i = n[1];
2139
2139
  return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0");
2140
2140
  }
2141
- const En = {
2141
+ const Ln = {
2142
2142
  "%": (t, e) => (t * 100).toFixed(e),
2143
2143
  b: (t) => Math.round(t).toString(2),
2144
2144
  c: (t) => t + "",
@@ -2147,53 +2147,53 @@ const En = {
2147
2147
  f: (t, e) => t.toFixed(e),
2148
2148
  g: (t, e) => t.toPrecision(e),
2149
2149
  o: (t) => Math.round(t).toString(8),
2150
- p: (t, e) => Cn(t * 100, e),
2151
- r: Cn,
2150
+ p: (t, e) => Fn(t * 100, e),
2151
+ r: Fn,
2152
2152
  s: bu,
2153
2153
  X: (t) => Math.round(t).toString(16).toUpperCase(),
2154
2154
  x: (t) => Math.round(t).toString(16)
2155
2155
  };
2156
- function Ln(t) {
2156
+ function En(t) {
2157
2157
  return t;
2158
2158
  }
2159
2159
  var Pn = Array.prototype.map, On = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2160
2160
  function xu(t) {
2161
- var e = t.grouping === void 0 || t.thousands === void 0 ? Ln : du(Pn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? Ln : gu(Pn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", s = t.minus === void 0 ? "−" : t.minus + "", u = t.nan === void 0 ? "NaN" : t.nan + "";
2161
+ var e = t.grouping === void 0 || t.thousands === void 0 ? En : du(Pn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? En : gu(Pn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", s = t.minus === void 0 ? "−" : t.minus + "", u = t.nan === void 0 ? "NaN" : t.nan + "";
2162
2162
  function l(c) {
2163
2163
  c = de(c);
2164
- var h = c.fill, p = c.align, m = c.sign, d = c.symbol, v = c.zero, D = c.width, A = c.comma, $ = c.precision, F = c.trim, _ = c.type;
2165
- _ === "n" ? (A = !0, _ = "g") : En[_] || ($ === void 0 && ($ = 12), F = !0, _ = "g"), (v || h === "0" && p === "=") && (v = !0, h = "0", p = "=");
2166
- var B = d === "$" ? n : d === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", I = d === "$" ? r : /[%p]/.test(_) ? o : "", k = En[_], b = /[defgprs%]/.test(_);
2164
+ var h = c.fill, p = c.align, m = c.sign, d = c.symbol, v = c.zero, D = c.width, A = c.comma, $ = c.precision, T = c.trim, _ = c.type;
2165
+ _ === "n" ? (A = !0, _ = "g") : Ln[_] || ($ === void 0 && ($ = 12), T = !0, _ = "g"), (v || h === "0" && p === "=") && (v = !0, h = "0", p = "=");
2166
+ var R = d === "$" ? n : d === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : "", I = d === "$" ? r : /[%p]/.test(_) ? o : "", k = Ln[_], b = /[defgprs%]/.test(_);
2167
2167
  $ = $ === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, $)) : Math.max(0, Math.min(20, $));
2168
2168
  function w(g) {
2169
- var S = B, T = I, R, it, lt;
2169
+ var S = R, M = I, B, it, lt;
2170
2170
  if (_ === "c")
2171
- T = k(g) + T, g = "";
2171
+ M = k(g) + M, g = "";
2172
2172
  else {
2173
2173
  g = +g;
2174
2174
  var j = g < 0 || 1 / g < 0;
2175
- if (g = isNaN(g) ? u : k(Math.abs(g), $), F && (g = vu(g)), j && +g == 0 && m !== "+" && (j = !1), S = (j ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + S, T = (_ === "s" ? On[8 + Cr / 3] : "") + T + (j && m === "(" ? ")" : ""), b) {
2176
- for (R = -1, it = g.length; ++R < it; )
2177
- if (lt = g.charCodeAt(R), 48 > lt || lt > 57) {
2178
- T = (lt === 46 ? i + g.slice(R + 1) : g.slice(R)) + T, g = g.slice(0, R);
2175
+ if (g = isNaN(g) ? u : k(Math.abs(g), $), T && (g = vu(g)), j && +g == 0 && m !== "+" && (j = !1), S = (j ? m === "(" ? m : s : m === "-" || m === "(" ? "" : m) + S, M = (_ === "s" ? On[8 + Fr / 3] : "") + M + (j && m === "(" ? ")" : ""), b) {
2176
+ for (B = -1, it = g.length; ++B < it; )
2177
+ if (lt = g.charCodeAt(B), 48 > lt || lt > 57) {
2178
+ M = (lt === 46 ? i + g.slice(B + 1) : g.slice(B)) + M, g = g.slice(0, B);
2179
2179
  break;
2180
2180
  }
2181
2181
  }
2182
2182
  }
2183
2183
  A && !v && (g = e(g, 1 / 0));
2184
- var jt = S.length + g.length + T.length, et = jt < D ? new Array(D - jt + 1).join(h) : "";
2185
- switch (A && v && (g = e(et + g, et.length ? D - T.length : 1 / 0), et = ""), p) {
2184
+ var jt = S.length + g.length + M.length, et = jt < D ? new Array(D - jt + 1).join(h) : "";
2185
+ switch (A && v && (g = e(et + g, et.length ? D - M.length : 1 / 0), et = ""), p) {
2186
2186
  case "<":
2187
- g = S + g + T + et;
2187
+ g = S + g + M + et;
2188
2188
  break;
2189
2189
  case "=":
2190
- g = S + et + g + T;
2190
+ g = S + et + g + M;
2191
2191
  break;
2192
2192
  case "^":
2193
- g = et.slice(0, jt = et.length >> 1) + S + g + T + et.slice(jt);
2193
+ g = et.slice(0, jt = et.length >> 1) + S + g + M + et.slice(jt);
2194
2194
  break;
2195
2195
  default:
2196
- g = et + S + g + T;
2196
+ g = et + S + g + M;
2197
2197
  break;
2198
2198
  }
2199
2199
  return a(g);
@@ -2203,7 +2203,7 @@ function xu(t) {
2203
2203
  }, w;
2204
2204
  }
2205
2205
  function f(c, h) {
2206
- var p = l((c = de(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(Tt(h) / 3))) * 3, d = Math.pow(10, -m), v = On[8 + m / 3];
2206
+ var p = l((c = de(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(Mt(h) / 3))) * 3, d = Math.pow(10, -m), v = On[8 + m / 3];
2207
2207
  return function(D) {
2208
2208
  return p(d * D) + v;
2209
2209
  };
@@ -2213,23 +2213,23 @@ function xu(t) {
2213
2213
  formatPrefix: f
2214
2214
  };
2215
2215
  }
2216
- var Qt, tn, Er;
2216
+ var Qt, tn, Lr;
2217
2217
  wu({
2218
2218
  thousands: ",",
2219
2219
  grouping: [3],
2220
2220
  currency: ["$", ""]
2221
2221
  });
2222
2222
  function wu(t) {
2223
- return Qt = xu(t), tn = Qt.format, Er = Qt.formatPrefix, Qt;
2223
+ return Qt = xu(t), tn = Qt.format, Lr = Qt.formatPrefix, Qt;
2224
2224
  }
2225
2225
  function Du(t) {
2226
- return Math.max(0, -Tt(Math.abs(t)));
2226
+ return Math.max(0, -Mt(Math.abs(t)));
2227
2227
  }
2228
2228
  function $u(t, e) {
2229
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Tt(e) / 3))) * 3 - Tt(Math.abs(t)));
2229
+ return Math.max(0, Math.max(-8, Math.min(8, Math.floor(Mt(e) / 3))) * 3 - Mt(Math.abs(t)));
2230
2230
  }
2231
2231
  function _u(t, e) {
2232
- return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Tt(e) - Tt(t)) + 1;
2232
+ return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, Mt(e) - Mt(t)) + 1;
2233
2233
  }
2234
2234
  function $e(t, e) {
2235
2235
  switch (arguments.length) {
@@ -2245,7 +2245,7 @@ function $e(t, e) {
2245
2245
  return this;
2246
2246
  }
2247
2247
  const kn = Symbol("implicit");
2248
- function Lr() {
2248
+ function Er() {
2249
2249
  var t = new pn(), e = [], n = [], r = kn;
2250
2250
  function i(a) {
2251
2251
  let o = t.get(a);
@@ -2266,11 +2266,11 @@ function Lr() {
2266
2266
  }, i.unknown = function(a) {
2267
2267
  return arguments.length ? (r = a, i) : r;
2268
2268
  }, i.copy = function() {
2269
- return Lr(e, n).unknown(r);
2269
+ return Er(e, n).unknown(r);
2270
2270
  }, $e.apply(i, arguments), i;
2271
2271
  }
2272
2272
  function Pr() {
2273
- var t = Lr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, s = !1, u = 0, l = 0, f = 0.5;
2273
+ var t = Er().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, a, o, s = !1, u = 0, l = 0, f = 0.5;
2274
2274
  delete t.unknown;
2275
2275
  function c() {
2276
2276
  var h = e().length, p = i < r, m = p ? i : r, d = p ? r : i;
@@ -2318,7 +2318,7 @@ function Su(t) {
2318
2318
  return t;
2319
2319
  };
2320
2320
  }
2321
- function Mu(t) {
2321
+ function Cu(t) {
2322
2322
  return +t;
2323
2323
  }
2324
2324
  var Nn = [0, 1];
@@ -2330,19 +2330,19 @@ function Ve(t, e) {
2330
2330
  return (n - t) / e;
2331
2331
  } : Su(isNaN(e) ? NaN : 0.5);
2332
2332
  }
2333
- function Tu(t, e) {
2333
+ function Mu(t, e) {
2334
2334
  var n;
2335
2335
  return t > e && (n = t, t = e, e = n), function(r) {
2336
2336
  return Math.max(t, Math.min(e, r));
2337
2337
  };
2338
2338
  }
2339
- function Fu(t, e, n) {
2339
+ function Tu(t, e, n) {
2340
2340
  var r = t[0], i = t[1], a = e[0], o = e[1];
2341
2341
  return i < r ? (r = Ve(i, r), a = n(o, a)) : (r = Ve(r, i), a = n(a, o)), function(s) {
2342
2342
  return a(r(s));
2343
2343
  };
2344
2344
  }
2345
- function Cu(t, e, n) {
2345
+ function Fu(t, e, n) {
2346
2346
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), a = new Array(r), o = -1;
2347
2347
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++o < r; )
2348
2348
  i[o] = Ve(t[o], t[o + 1]), a[o] = n(e[o], e[o + 1]);
@@ -2351,14 +2351,14 @@ function Cu(t, e, n) {
2351
2351
  return a[u](i[u](s));
2352
2352
  };
2353
2353
  }
2354
- function Eu(t, e) {
2354
+ function Lu(t, e) {
2355
2355
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2356
2356
  }
2357
- function Lu() {
2357
+ function Eu() {
2358
2358
  var t = Nn, e = Nn, n = We, r, i, a, o = Dt, s, u, l;
2359
2359
  function f() {
2360
2360
  var h = Math.min(t.length, e.length);
2361
- return o !== Dt && (o = Tu(t[0], t[h - 1])), s = h > 2 ? Cu : Fu, u = l = null, c;
2361
+ return o !== Dt && (o = Mu(t[0], t[h - 1])), s = h > 2 ? Fu : Tu, u = l = null, c;
2362
2362
  }
2363
2363
  function c(h) {
2364
2364
  return h == null || isNaN(h = +h) ? a : (u || (u = s(t.map(r), e, n)))(r(o(h)));
@@ -2366,7 +2366,7 @@ function Lu() {
2366
2366
  return c.invert = function(h) {
2367
2367
  return o(i((l || (l = s(e, t.map(r), W)))(h)));
2368
2368
  }, c.domain = function(h) {
2369
- return arguments.length ? (t = Array.from(h, Mu), f()) : t.slice();
2369
+ return arguments.length ? (t = Array.from(h, Cu), f()) : t.slice();
2370
2370
  }, c.range = function(h) {
2371
2371
  return arguments.length ? (e = Array.from(h), f()) : e.slice();
2372
2372
  }, c.rangeRound = function(h) {
@@ -2382,14 +2382,14 @@ function Lu() {
2382
2382
  };
2383
2383
  }
2384
2384
  function Pu() {
2385
- return Lu()(Dt, Dt);
2385
+ return Eu()(Dt, Dt);
2386
2386
  }
2387
2387
  function Ou(t, e, n, r) {
2388
2388
  var i = Hi(t, e, n), a;
2389
2389
  switch (r = de(r ?? ",f"), r.type) {
2390
2390
  case "s": {
2391
2391
  var o = Math.max(Math.abs(t), Math.abs(e));
2392
- return r.precision == null && !isNaN(a = $u(i, o)) && (r.precision = a), Er(r, o);
2392
+ return r.precision == null && !isNaN(a = $u(i, o)) && (r.precision = a), Lr(r, o);
2393
2393
  }
2394
2394
  case "":
2395
2395
  case "e":
@@ -2419,7 +2419,7 @@ function kr(t) {
2419
2419
  n == null && (n = 10);
2420
2420
  var r = e(), i = 0, a = r.length - 1, o = r[i], s = r[a], u, l, f = 10;
2421
2421
  for (s < o && (l = o, o = s, s = l, l = i, i = a, a = l); f-- > 0; ) {
2422
- if (l = Le(o, s, n), l === u)
2422
+ if (l = Ee(o, s, n), l === u)
2423
2423
  return r[i] = o, r[a] = s, e(r);
2424
2424
  if (l > 0)
2425
2425
  o = Math.floor(o / l) * l, s = Math.ceil(s / l) * l;
@@ -2435,7 +2435,7 @@ function kr(t) {
2435
2435
  function Xt() {
2436
2436
  var t = Pu();
2437
2437
  return t.copy = function() {
2438
- return Eu(t, Xt());
2438
+ return Lu(t, Xt());
2439
2439
  }, $e.apply(t, arguments), kr(t);
2440
2440
  }
2441
2441
  function Nr() {
@@ -2463,16 +2463,16 @@ function Nr() {
2463
2463
  return Nr().domain([t, e]).range(i).unknown(a);
2464
2464
  }, $e.apply(kr(o), arguments);
2465
2465
  }
2466
- function Rt(t, e, n) {
2466
+ function Bt(t, e, n) {
2467
2467
  this.k = t, this.x = e, this.y = n;
2468
2468
  }
2469
- Rt.prototype = {
2470
- constructor: Rt,
2469
+ Bt.prototype = {
2470
+ constructor: Bt,
2471
2471
  scale: function(t) {
2472
- return t === 1 ? this : new Rt(this.k * t, this.x, this.y);
2472
+ return t === 1 ? this : new Bt(this.k * t, this.x, this.y);
2473
2473
  },
2474
2474
  translate: function(t, e) {
2475
- return t === 0 & e === 0 ? this : new Rt(this.k, this.x + this.k * t, this.y + this.k * e);
2475
+ return t === 0 & e === 0 ? this : new Bt(this.k, this.x + this.k * t, this.y + this.k * e);
2476
2476
  },
2477
2477
  apply: function(t) {
2478
2478
  return [t[0] * this.k + this.x, t[1] * this.k + this.y];
@@ -2502,7 +2502,7 @@ Rt.prototype = {
2502
2502
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2503
2503
  }
2504
2504
  };
2505
- Rt.prototype;
2505
+ Bt.prototype;
2506
2506
  function tf(t, e) {
2507
2507
  return e instanceof Function ? e(t) : tn(e)(t);
2508
2508
  }
@@ -2513,13 +2513,13 @@ function _e(t, e, n, r) {
2513
2513
  function en(t, e) {
2514
2514
  return `${t}_series${e}`;
2515
2515
  }
2516
- function Br(t, e) {
2516
+ function Rr(t, e) {
2517
2517
  return `${t}_group${e}`;
2518
2518
  }
2519
2519
  function nn() {
2520
2520
  return "";
2521
2521
  }
2522
- function Rr({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2522
+ function Br({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2523
2523
  const r = e.seriesDirection === "row" ? e.rowLabels : e.columnLabels;
2524
2524
  return t.map((i, a) => r[a] != null ? r[a] : en(n, a));
2525
2525
  }
@@ -2531,13 +2531,13 @@ function Nu({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid"
2531
2531
  if (t[0] == null)
2532
2532
  return [];
2533
2533
  const r = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2534
- return t[0].map((i, a) => r[a] != null ? r[a] : Br(n, a));
2534
+ return t[0].map((i, a) => r[a] != null ? r[a] : Rr(n, a));
2535
2535
  }
2536
- function Bu({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2536
+ function Ru({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2537
2537
  if (t[0] == null)
2538
2538
  return [];
2539
2539
  const i = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2540
- return t[0].map((a, o) => i[o] != null ? i[o] : Br(`${n}_grid${r}`, o));
2540
+ return t[0].map((a, o) => i[o] != null ? i[o] : Rr(`${n}_grid${r}`, o));
2541
2541
  }
2542
2542
  function vt(t) {
2543
2543
  const e = [0, 0];
@@ -2546,7 +2546,7 @@ function vt(t) {
2546
2546
  i > r[1] ? i : r[1]
2547
2547
  ], [t[0], t[0]]) : e;
2548
2548
  }
2549
- function Ru(t) {
2549
+ function Bu(t) {
2550
2550
  const e = t.filter((n) => n != null && n.value != null).map((n) => n.value);
2551
2551
  return vt(e);
2552
2552
  }
@@ -2597,7 +2597,7 @@ function Vr(t) {
2597
2597
  n++;
2598
2598
  return { rowAmount: e, columnAmount: n };
2599
2599
  }
2600
- function Bn(t, e, n) {
2600
+ function Rn(t, e, n) {
2601
2601
  const { gap: r } = e, { rowAmount: i, columnAmount: a } = e.rowAmount * e.columnAmount >= n ? e : Vr(n);
2602
2602
  return new Array(n).fill(null).map((o, s) => {
2603
2603
  const u = s % a, l = Math.floor(s / a), f = (t.width - r * (a - 1)) / a, c = (t.height - r * (i - 1)) / i, h = u * f + u * r, p = l * c + l * r;
@@ -2673,7 +2673,7 @@ const Vu = (t) => {
2673
2673
  throw Error(a);
2674
2674
  }
2675
2675
  return i;
2676
- }, Gu = (t) => C({ data: t }, {
2676
+ }, Gu = (t) => F({ data: t }, {
2677
2677
  data: {
2678
2678
  toBe: "(DataSeriesDatum | DataSeriesValue)[][] | (DataSeriesDatum | DataSeriesValue)[]",
2679
2679
  // 畢免資料量過大檢查不完,不深度檢查
@@ -2783,7 +2783,7 @@ function Gr(t, e) {
2783
2783
  return { value: l[0] ? l[1] : void 0, done: !0 };
2784
2784
  }
2785
2785
  }
2786
- function Ft(t) {
2786
+ function Tt(t) {
2787
2787
  var e = typeof Symbol == "function" && Symbol.iterator, n = e && t[e], r = 0;
2788
2788
  if (n) return n.call(t);
2789
2789
  if (t && typeof t.length == "number") return {
@@ -2859,7 +2859,7 @@ function Yu(t, e, n) {
2859
2859
  function Uu(t) {
2860
2860
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2861
2861
  var e = t[Symbol.asyncIterator], n;
2862
- return e ? e.call(t) : (t = typeof Ft == "function" ? Ft(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
2862
+ return e ? e.call(t) : (t = typeof Tt == "function" ? Tt(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
2863
2863
  return this;
2864
2864
  }, n);
2865
2865
  function r(a) {
@@ -2884,7 +2884,7 @@ function rn(t) {
2884
2884
  }, n = t(e);
2885
2885
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
2886
2886
  }
2887
- var Te = rn(function(t) {
2887
+ var Me = rn(function(t) {
2888
2888
  return function(n) {
2889
2889
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
2890
2890
  ` + n.map(function(r, i) {
@@ -2911,7 +2911,7 @@ var qt = function() {
2911
2911
  if (o)
2912
2912
  if (this._parentage = null, Array.isArray(o))
2913
2913
  try {
2914
- for (var s = Ft(o), u = s.next(); !u.done; u = s.next()) {
2914
+ for (var s = Tt(o), u = s.next(); !u.done; u = s.next()) {
2915
2915
  var l = u.value;
2916
2916
  l.remove(this);
2917
2917
  }
@@ -2931,18 +2931,18 @@ var qt = function() {
2931
2931
  try {
2932
2932
  f();
2933
2933
  } catch (d) {
2934
- a = d instanceof Te ? d.errors : [d];
2934
+ a = d instanceof Me ? d.errors : [d];
2935
2935
  }
2936
2936
  var c = this._finalizers;
2937
2937
  if (c) {
2938
2938
  this._finalizers = null;
2939
2939
  try {
2940
- for (var h = Ft(c), p = h.next(); !p.done; p = h.next()) {
2940
+ for (var h = Tt(c), p = h.next(); !p.done; p = h.next()) {
2941
2941
  var m = p.value;
2942
2942
  try {
2943
- Rn(m);
2943
+ Bn(m);
2944
2944
  } catch (d) {
2945
- a = a ?? [], d instanceof Te ? a = st(st([], ot(a)), ot(d.errors)) : a.push(d);
2945
+ a = a ?? [], d instanceof Me ? a = st(st([], ot(a)), ot(d.errors)) : a.push(d);
2946
2946
  }
2947
2947
  }
2948
2948
  } catch (d) {
@@ -2956,13 +2956,13 @@ var qt = function() {
2956
2956
  }
2957
2957
  }
2958
2958
  if (a)
2959
- throw new Te(a);
2959
+ throw new Me(a);
2960
2960
  }
2961
2961
  }, t.prototype.add = function(e) {
2962
2962
  var n;
2963
2963
  if (e && e !== this)
2964
2964
  if (this.closed)
2965
- Rn(e);
2965
+ Bn(e);
2966
2966
  else {
2967
2967
  if (e instanceof t) {
2968
2968
  if (e.closed || e._hasParent(this))
@@ -2991,7 +2991,7 @@ var qt = function() {
2991
2991
  function Yr(t) {
2992
2992
  return t instanceof qt || t && "closed" in t && N(t.remove) && N(t.add) && N(t.unsubscribe);
2993
2993
  }
2994
- function Rn(t) {
2994
+ function Bn(t) {
2995
2995
  N(t) ? t() : t.unsubscribe();
2996
2996
  }
2997
2997
  var Ur = {
@@ -3054,7 +3054,7 @@ var an = function(t) {
3054
3054
  }
3055
3055
  }, e;
3056
3056
  }(qt), Hu = Function.prototype.bind;
3057
- function Fe(t, e) {
3057
+ function Te(t, e) {
3058
3058
  return Hu.call(t, e);
3059
3059
  }
3060
3060
  var zu = function() {
@@ -3103,9 +3103,9 @@ var zu = function() {
3103
3103
  a && Ur.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
3104
3104
  return a.unsubscribe();
3105
3105
  }, o = {
3106
- next: n.next && Fe(n.next, s),
3107
- error: n.error && Fe(n.error, s),
3108
- complete: n.complete && Fe(n.complete, s)
3106
+ next: n.next && Te(n.next, s),
3107
+ error: n.error && Te(n.error, s),
3108
+ complete: n.complete && Te(n.complete, s)
3109
3109
  }) : o = n;
3110
3110
  }
3111
3111
  return a.destination = new zu(o), a;
@@ -3126,11 +3126,11 @@ var ju = {
3126
3126
  }, on = function() {
3127
3127
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
3128
3128
  }();
3129
- function Ct(t) {
3129
+ function Ft(t) {
3130
3130
  return t;
3131
3131
  }
3132
3132
  function Wu(t) {
3133
- return t.length === 0 ? Ct : t.length === 1 ? t[0] : function(n) {
3133
+ return t.length === 0 ? Ft : t.length === 1 ? t[0] : function(n) {
3134
3134
  return t.reduce(function(r, i) {
3135
3135
  return i(r);
3136
3136
  }, n);
@@ -3283,7 +3283,7 @@ var Qu = function(t) {
3283
3283
  if (r._throwIfClosed(), !r.isStopped) {
3284
3284
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
3285
3285
  try {
3286
- for (var o = Ft(r.currentObservers), s = o.next(); !s.done; s = o.next()) {
3286
+ for (var o = Tt(r.currentObservers), s = o.next(); !s.done; s = o.next()) {
3287
3287
  var u = s.value;
3288
3288
  u.next(n);
3289
3289
  }
@@ -3518,7 +3518,7 @@ function ln(t) {
3518
3518
  function ol(t) {
3519
3519
  return N(ln(t)) ? t.pop() : void 0;
3520
3520
  }
3521
- function Et(t) {
3521
+ function Lt(t) {
3522
3522
  return jr(ln(t)) ? t.pop() : void 0;
3523
3523
  }
3524
3524
  function Wr(t, e) {
@@ -3627,7 +3627,7 @@ function fl(t) {
3627
3627
  return new O(function(e) {
3628
3628
  var n, r;
3629
3629
  try {
3630
- for (var i = Ft(t), a = i.next(); !a.done; a = i.next()) {
3630
+ for (var i = Tt(t), a = i.next(); !a.done; a = i.next()) {
3631
3631
  var o = a.value;
3632
3632
  if (e.next(o), e.closed)
3633
3633
  return;
@@ -3791,14 +3791,14 @@ function bl(t, e) {
3791
3791
  }
3792
3792
  throw ti(t);
3793
3793
  }
3794
- function Lt(t, e) {
3794
+ function Et(t, e) {
3795
3795
  return e ? bl(t, e) : z(t);
3796
3796
  }
3797
3797
  function pt() {
3798
3798
  for (var t = [], e = 0; e < arguments.length; e++)
3799
3799
  t[e] = arguments[e];
3800
- var n = Et(t);
3801
- return Lt(t, n);
3800
+ var n = Lt(t);
3801
+ return Et(t, n);
3802
3802
  }
3803
3803
  var li = rn(function(t) {
3804
3804
  return function() {
@@ -3825,14 +3825,14 @@ function $l(t) {
3825
3825
  return Dl(t, e);
3826
3826
  });
3827
3827
  }
3828
- var _l = Array.isArray, Al = Object.getPrototypeOf, Sl = Object.prototype, Ml = Object.keys;
3829
- function Tl(t) {
3828
+ var _l = Array.isArray, Al = Object.getPrototypeOf, Sl = Object.prototype, Cl = Object.keys;
3829
+ function Ml(t) {
3830
3830
  if (t.length === 1) {
3831
3831
  var e = t[0];
3832
3832
  if (_l(e))
3833
3833
  return { args: e, keys: null };
3834
- if (Fl(e)) {
3835
- var n = Ml(e);
3834
+ if (Tl(e)) {
3835
+ var n = Cl(e);
3836
3836
  return {
3837
3837
  args: n.map(function(r) {
3838
3838
  return e[r];
@@ -3843,31 +3843,31 @@ function Tl(t) {
3843
3843
  }
3844
3844
  return { args: t, keys: null };
3845
3845
  }
3846
- function Fl(t) {
3846
+ function Tl(t) {
3847
3847
  return t && typeof t == "object" && Al(t) === Sl;
3848
3848
  }
3849
- function Cl(t, e) {
3849
+ function Fl(t, e) {
3850
3850
  return t.reduce(function(n, r, i) {
3851
3851
  return n[r] = e[i], n;
3852
3852
  }, {});
3853
3853
  }
3854
- function L() {
3854
+ function E() {
3855
3855
  for (var t = [], e = 0; e < arguments.length; e++)
3856
3856
  t[e] = arguments[e];
3857
- var n = Et(t), r = ol(t), i = Tl(t), a = i.args, o = i.keys;
3857
+ var n = Lt(t), r = ol(t), i = Ml(t), a = i.args, o = i.keys;
3858
3858
  if (a.length === 0)
3859
- return Lt([], n);
3860
- var s = new O(El(a, n, o ? function(u) {
3861
- return Cl(o, u);
3862
- } : Ct));
3859
+ return Et([], n);
3860
+ var s = new O(Ll(a, n, o ? function(u) {
3861
+ return Fl(o, u);
3862
+ } : Ft));
3863
3863
  return r ? s.pipe($l(r)) : s;
3864
3864
  }
3865
- function El(t, e, n) {
3866
- return n === void 0 && (n = Ct), function(r) {
3865
+ function Ll(t, e, n) {
3866
+ return n === void 0 && (n = Ft), function(r) {
3867
3867
  Yn(e, function() {
3868
3868
  for (var i = t.length, a = new Array(i), o = i, s = i, u = function(f) {
3869
3869
  Yn(e, function() {
3870
- var c = Lt(t[f], e), h = !1;
3870
+ var c = Et(t[f], e), h = !1;
3871
3871
  c.subscribe(V(r, function(p) {
3872
3872
  a[f] = p, h || (h = !0, s--), s || r.next(n(a.slice()));
3873
3873
  }, function() {
@@ -3882,7 +3882,7 @@ function El(t, e, n) {
3882
3882
  function Yn(t, e, n) {
3883
3883
  t ? at(n, t, e) : e();
3884
3884
  }
3885
- function Ll(t, e, n, r, i, a, o, s) {
3885
+ function El(t, e, n, r, i, a, o, s) {
3886
3886
  var u = [], l = 0, f = 0, c = !1, h = function() {
3887
3887
  c && !u.length && !l && e.complete();
3888
3888
  }, p = function(d) {
@@ -3920,11 +3920,11 @@ function ci(t, e, n) {
3920
3920
  return e(r, a, i, o);
3921
3921
  })(z(t(r, i)));
3922
3922
  }, n) : (typeof e == "number" && (n = e), G(function(r, i) {
3923
- return Ll(r, i, t, n);
3923
+ return El(r, i, t, n);
3924
3924
  }));
3925
3925
  }
3926
3926
  function cn(t) {
3927
- return t === void 0 && (t = 1 / 0), ci(Ct, t);
3927
+ return t === void 0 && (t = 1 / 0), ci(Ft, t);
3928
3928
  }
3929
3929
  function Pl() {
3930
3930
  return cn(1);
@@ -3932,7 +3932,7 @@ function Pl() {
3932
3932
  function Un() {
3933
3933
  for (var t = [], e = 0; e < arguments.length; e++)
3934
3934
  t[e] = arguments[e];
3935
- return Pl()(Lt(t, Et(t)));
3935
+ return Pl()(Et(t, Lt(t)));
3936
3936
  }
3937
3937
  function Ol(t) {
3938
3938
  return new O(function(e) {
@@ -3959,12 +3959,12 @@ function kl(t, e, n) {
3959
3959
  function Nl() {
3960
3960
  for (var t = [], e = 0; e < arguments.length; e++)
3961
3961
  t[e] = arguments[e];
3962
- var n = Et(t), r = Wr(t, 1 / 0), i = t;
3963
- return i.length ? i.length === 1 ? z(i[0]) : cn(r)(Lt(i, n)) : qr;
3962
+ var n = Lt(t), r = Wr(t, 1 / 0), i = t;
3963
+ return i.length ? i.length === 1 ? z(i[0]) : cn(r)(Et(i, n)) : qr;
3964
3964
  }
3965
- var Bl = Array.isArray;
3966
- function Rl(t) {
3967
- return t.length === 1 && Bl(t[0]) ? t[0] : t;
3965
+ var Rl = Array.isArray;
3966
+ function Bl(t) {
3967
+ return t.length === 1 && Rl(t[0]) ? t[0] : t;
3968
3968
  }
3969
3969
  function Hn(t, e) {
3970
3970
  return G(function(n, r) {
@@ -4021,7 +4021,7 @@ function Gl(t) {
4021
4021
  });
4022
4022
  }
4023
4023
  function q(t, e) {
4024
- return e === void 0 && (e = Ct), t = t ?? Xl, G(function(n, r) {
4024
+ return e === void 0 && (e = Ft), t = t ?? Xl, G(function(n, r) {
4025
4025
  var i, a = !0;
4026
4026
  n.subscribe(V(r, function(o) {
4027
4027
  var s = e(o);
@@ -4048,7 +4048,7 @@ function Ul() {
4048
4048
  function Hl(t, e) {
4049
4049
  var n = arguments.length >= 2;
4050
4050
  return function(r) {
4051
- return r.pipe(Ct, Gl(1), n ? Vl(e) : Yl(function() {
4051
+ return r.pipe(Ft, Gl(1), n ? Vl(e) : Yl(function() {
4052
4052
  return new li();
4053
4053
  }));
4054
4054
  };
@@ -4056,9 +4056,9 @@ function Hl(t, e) {
4056
4056
  function zl() {
4057
4057
  for (var t = [], e = 0; e < arguments.length; e++)
4058
4058
  t[e] = arguments[e];
4059
- var n = Et(t), r = Wr(t, 1 / 0);
4060
- return t = Rl(t), G(function(i, a) {
4061
- cn(r)(Lt(st([i], ot(t)), n)).subscribe(a);
4059
+ var n = Lt(t), r = Wr(t, 1 / 0);
4060
+ return t = Bl(t), G(function(i, a) {
4061
+ cn(r)(Et(st([i], ot(t)), n)).subscribe(a);
4062
4062
  });
4063
4063
  }
4064
4064
  function ql() {
@@ -4080,26 +4080,26 @@ function Ue(t) {
4080
4080
  var $ = f;
4081
4081
  D(), $ == null || $.unsubscribe();
4082
4082
  };
4083
- return G(function($, F) {
4083
+ return G(function($, T) {
4084
4084
  p++, !d && !m && v();
4085
4085
  var _ = h = h ?? n();
4086
- F.add(function() {
4087
- p--, p === 0 && !d && !m && (c = Ce(A, u));
4088
- }), _.subscribe(F), !f && p > 0 && (f = new Ut({
4089
- next: function(B) {
4090
- return _.next(B);
4086
+ T.add(function() {
4087
+ p--, p === 0 && !d && !m && (c = Fe(A, u));
4088
+ }), _.subscribe(T), !f && p > 0 && (f = new Ut({
4089
+ next: function(R) {
4090
+ return _.next(R);
4091
4091
  },
4092
- error: function(B) {
4093
- d = !0, v(), c = Ce(D, i, B), _.error(B);
4092
+ error: function(R) {
4093
+ d = !0, v(), c = Fe(D, i, R), _.error(R);
4094
4094
  },
4095
4095
  complete: function() {
4096
- m = !0, v(), c = Ce(D, o), _.complete();
4096
+ m = !0, v(), c = Fe(D, o), _.complete();
4097
4097
  }
4098
4098
  }), z($).subscribe(f));
4099
4099
  })(l);
4100
4100
  };
4101
4101
  }
4102
- function Ce(t, e) {
4102
+ function Fe(t, e) {
4103
4103
  for (var n = [], r = 2; r < arguments.length; r++)
4104
4104
  n[r - 2] = arguments[r];
4105
4105
  if (e === !0) {
@@ -4126,15 +4126,15 @@ function y(t, e, n) {
4126
4126
  resetOnRefCountZero: i
4127
4127
  });
4128
4128
  }
4129
- function Ee() {
4129
+ function Le() {
4130
4130
  for (var t = [], e = 0; e < arguments.length; e++)
4131
4131
  t[e] = arguments[e];
4132
- var n = Et(t);
4132
+ var n = Lt(t);
4133
4133
  return G(function(r, i) {
4134
4134
  (n ? Un(t, r, n) : Un(t, r)).subscribe(i);
4135
4135
  });
4136
4136
  }
4137
- function E(t, e) {
4137
+ function L(t, e) {
4138
4138
  return G(function(n, r) {
4139
4139
  var i = null, a = 0, o = !1, s = function() {
4140
4140
  return o && !i && r.complete();
@@ -4152,7 +4152,7 @@ function E(t, e) {
4152
4152
  }));
4153
4153
  });
4154
4154
  }
4155
- function M(t) {
4155
+ function C(t) {
4156
4156
  return G(function(e, n) {
4157
4157
  z(t).subscribe(V(n, function() {
4158
4158
  return n.complete();
@@ -4201,7 +4201,7 @@ function Jl(t) {
4201
4201
  }
4202
4202
  const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4203
4203
  const r = new P(), i = e.pipe(
4204
- M(r),
4204
+ C(r),
4205
4205
  x((c) => ({
4206
4206
  id: null,
4207
4207
  seriesLabel: null,
@@ -4211,7 +4211,7 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4211
4211
  })),
4212
4212
  q()
4213
4213
  ), a = n.pipe(
4214
- M(r),
4214
+ C(r),
4215
4215
  // filter(d => d.eventName === 'mouseover' || d.eventName === 'mousemove'),
4216
4216
  Hn((c) => c.eventName === "mouseover"),
4217
4217
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
@@ -4229,13 +4229,13 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4229
4229
  highlightDefault: null
4230
4230
  })
4231
4231
  ), o = n.pipe(
4232
- M(r),
4232
+ C(r),
4233
4233
  Hn((c) => c.eventName === "mouseout"),
4234
4234
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4235
4235
  // map(d => {
4236
4236
  // return { id: '', label: '' }
4237
4237
  // })
4238
- E((c) => i)
4238
+ L((c) => i)
4239
4239
  );
4240
4240
  function s(c, h) {
4241
4241
  const p = c.find((m) => m.id === h);
@@ -4250,13 +4250,13 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4250
4250
  function f(c, h) {
4251
4251
  return h == null ? [] : c.filter((p) => p.categoryLabel === h);
4252
4252
  }
4253
- return new O((c) => (L({
4253
+ return new O((c) => (E({
4254
4254
  target: Nl(a, o, i),
4255
4255
  datumList: t,
4256
4256
  fullChartParams: e
4257
4257
  }).pipe(
4258
- M(r),
4259
- E(async (h) => h)
4258
+ C(r),
4259
+ L(async (h) => h)
4260
4260
  ).subscribe((h) => {
4261
4261
  let p = [];
4262
4262
  h.fullChartParams.highlightTarget === "datum" ? p = s(h.datumList, h.target.id) : h.fullChartParams.highlightTarget === "series" ? p = u(h.datumList, h.target.seriesLabel) : h.fullChartParams.highlightTarget === "group" ? p = l(h.datumList, h.target.groupLabel) : h.fullChartParams.highlightTarget === "category" && (p = f(h.datumList, h.target.categoryLabel)), c.next(p);
@@ -4309,11 +4309,11 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4309
4309
  q((e, n) => JSON.stringify(e).length === JSON.stringify(n).length)
4310
4310
  ), zn = ({ computedData$: t }) => t.pipe(
4311
4311
  x((e) => e.map((n) => n.filter((r) => r.visible != !1)))
4312
- ), Ql = ({ computedData$: t, fullDataFormatter$: e }) => L({
4312
+ ), Ql = ({ computedData$: t, fullDataFormatter$: e }) => E({
4313
4313
  computedData: t,
4314
4314
  fullDataFormatter: e
4315
4315
  }).pipe(
4316
- E(async (n) => n),
4316
+ L(async (n) => n),
4317
4317
  x((n) => {
4318
4318
  const r = n.fullDataFormatter.sumSeries == !0 ? n.computedData.map((i) => [
4319
4319
  // 加總為一筆資料
@@ -4323,19 +4323,19 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4323
4323
  r.flat().sort((i, a) => i.seq - a.seq)
4324
4324
  ];
4325
4325
  })
4326
- ), tc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
4326
+ ), tc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
4327
4327
  computedData: t,
4328
4328
  fullDataFormatter: e,
4329
4329
  layout: n
4330
4330
  }).pipe(
4331
- E(async (i) => i),
4332
- x((i) => i.fullDataFormatter.separateSeries ? Bn(i.layout, i.fullDataFormatter.container, i.computedData.length) : Bn(i.layout, i.fullDataFormatter.container, 1))
4333
- ), ec = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => L({
4331
+ L(async (i) => i),
4332
+ x((i) => i.fullDataFormatter.separateSeries ? Rn(i.layout, i.fullDataFormatter.container, i.computedData.length) : Rn(i.layout, i.fullDataFormatter.container, 1))
4333
+ ), ec = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => E({
4334
4334
  seriesContainerPosition: t,
4335
4335
  seriesLabels: e,
4336
4336
  separateSeries: n
4337
4337
  }).pipe(
4338
- E(async (r) => r),
4338
+ L(async (r) => r),
4339
4339
  x((r) => r.separateSeries ? new Map(r.seriesLabels.map((i, a) => [i, r.seriesContainerPosition[a] ?? r.seriesContainerPosition[0]])) : new Map(r.seriesLabels.map((i, a) => [i, r.seriesContainerPosition[0]])))
4340
4340
  ), nc = ({ subject: t, observer: e }) => {
4341
4341
  const n = Pt(e.fullChartParams$).pipe(
@@ -4445,7 +4445,7 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4445
4445
  }
4446
4446
  function i(a, o, s) {
4447
4447
  const u = o.valueAxis.position === "left" || o.valueAxis.position === "right" ? s.height : s.width, l = a.flat();
4448
- let [f, c] = Ru(l);
4448
+ let [f, c] = Bu(l);
4449
4449
  return f === c && c === 0 && (c = 1), ut({
4450
4450
  maxValue: c,
4451
4451
  minValue: f,
@@ -4457,12 +4457,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4457
4457
  // 不使用dataFormatter設定
4458
4458
  });
4459
4459
  }
4460
- return L({
4460
+ return E({
4461
4461
  computedData: t,
4462
4462
  fullDataFormatter: e,
4463
4463
  layout: n
4464
4464
  }).pipe(
4465
- E(async (a) => a),
4465
+ L(async (a) => a),
4466
4466
  x((a) => {
4467
4467
  const o = r(a.computedData, a.fullDataFormatter, a.layout), s = i(a.computedData, a.fullDataFormatter, a.layout), u = s(0);
4468
4468
  return a.computedData.map((l, f) => l.map((c, h) => {
@@ -4485,12 +4485,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4485
4485
  } : { width: o, height: s };
4486
4486
  }
4487
4487
  return new O((i) => {
4488
- L({
4488
+ E({
4489
4489
  fullDataFormatter: t,
4490
4490
  layout: e
4491
4491
  }).pipe(
4492
- M(n),
4493
- E(async (a) => a)
4492
+ C(n),
4493
+ L(async (a) => a)
4494
4494
  ).subscribe((a) => {
4495
4495
  const o = r({
4496
4496
  xAxisPosition: a.fullDataFormatter.groupAxis.position,
@@ -4510,12 +4510,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4510
4510
  x((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4511
4511
  ), yi = ({ computedLayoutData$: t }) => t.pipe(
4512
4512
  x((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4513
- ), rc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
4513
+ ), rc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
4514
4514
  computedData: t,
4515
4515
  fullDataFormatter: e,
4516
4516
  layout: n
4517
4517
  }).pipe(
4518
- E(async (i) => i),
4518
+ L(async (i) => i),
4519
4519
  x((i) => {
4520
4520
  if (i.fullDataFormatter.separateSeries)
4521
4521
  return Yt(i.layout, i.fullDataFormatter.container, i.computedData.length);
@@ -4541,18 +4541,18 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4541
4541
  })
4542
4542
  );
4543
4543
  return t.pipe(
4544
- E((r) => fi(() => r, e, n))
4544
+ L((r) => fi(() => r, e, n))
4545
4545
  );
4546
- }, bi = ({ computedData$: t, fullDataFormatter$: e }) => L({
4546
+ }, bi = ({ computedData$: t, fullDataFormatter$: e }) => E({
4547
4547
  computedData: t,
4548
4548
  fullDataFormatter: e
4549
4549
  }).pipe(
4550
- E(async (n) => n),
4550
+ L(async (n) => n),
4551
4551
  x((n) => {
4552
4552
  const r = n.fullDataFormatter.groupAxis, i = n.computedData[0] ? n.computedData[0].length - 1 : 0, a = r.scaleDomain[0] - r.scalePadding, o = r.scaleDomain[1] === "max" ? i + r.scalePadding : r.scaleDomain[1] + r.scalePadding;
4553
4553
  return [a, o];
4554
4554
  })
4555
- ), xi = ({ computedData$: t, groupScaleDomainValue$: e }) => L({
4555
+ ), xi = ({ computedData$: t, groupScaleDomainValue$: e }) => E({
4556
4556
  computedData: t,
4557
4557
  // fullDataFormatter: fullDataFormatter$,
4558
4558
  groupScaleDomainValue: e
@@ -4583,12 +4583,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4583
4583
  value: `translate(${u}px, ${l}px) rotate(${f}deg) rotateX(${c}deg) rotateY(${h}deg)`
4584
4584
  };
4585
4585
  }
4586
- return new O((i) => (L({
4586
+ return new O((i) => (E({
4587
4587
  fullDataFormatter: t,
4588
4588
  layout: e
4589
4589
  }).pipe(
4590
- M(n),
4591
- E(async (a) => a)
4590
+ C(n),
4591
+ L(async (a) => a)
4592
4592
  ).subscribe((a) => {
4593
4593
  const o = r({
4594
4594
  xAxis: a.fullDataFormatter.groupAxis,
@@ -4616,15 +4616,15 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4616
4616
  const a = new P();
4617
4617
  function o({ data: s, groupAxis: u, valueAxis: l, groupScaleDomainValue: f, filteredMinMaxValue: c, width: h, height: p }) {
4618
4618
  let m = 0, d = 0, v = 0, D = 0;
4619
- const A = u.position === "top" || u.position === "bottom" ? h : p, $ = 0, F = s[0] ? s[0].length - 1 : 0, _ = ut({
4620
- maxValue: F,
4619
+ const A = u.position === "top" || u.position === "bottom" ? h : p, $ = 0, T = s[0] ? s[0].length - 1 : 0, _ = ut({
4620
+ maxValue: T,
4621
4621
  minValue: $,
4622
4622
  axisWidth: A,
4623
4623
  // scaleDomain: groupAxis.scaleDomain,
4624
4624
  scaleDomain: f,
4625
4625
  scaleRange: [0, 1]
4626
- }), B = _($), I = _(F);
4627
- $ == F ? (m = 0, v = 1) : (m = B, v = (I - B) / A), c[0] === c[1] && c[1] === 0 && (c[1] = 1);
4626
+ }), R = _($), I = _(T);
4627
+ $ == T ? (m = 0, v = 1) : (m = R, v = (I - R) / A), c[0] === c[1] && c[1] === 0 && (c[1] = 1);
4628
4628
  const k = l.position === "left" || l.position === "right" ? p : h, b = ut({
4629
4629
  maxValue: c[1],
4630
4630
  minValue: c[0],
@@ -4643,15 +4643,15 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4643
4643
  value: `translate(${m}px, ${d}px) scale(${v}, ${D})`
4644
4644
  };
4645
4645
  }
4646
- return new O((s) => (L({
4646
+ return new O((s) => (E({
4647
4647
  computedData: t,
4648
4648
  groupScaleDomainValue: e,
4649
4649
  filteredMinMaxValue: n,
4650
4650
  fullDataFormatter: r,
4651
4651
  layout: i
4652
4652
  }).pipe(
4653
- M(a),
4654
- E(async (u) => u)
4653
+ C(a),
4654
+ L(async (u) => u)
4655
4655
  ).subscribe((u) => {
4656
4656
  const l = o({
4657
4657
  data: u.computedData,
@@ -4666,12 +4666,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4666
4666
  }), function() {
4667
4667
  a.next(void 0);
4668
4668
  }));
4669
- }, _i = ({ gridContainerPosition$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => L({
4669
+ }, _i = ({ gridContainerPosition$: t, gridAxesTransform$: e, gridGraphicTransform$: n }) => E({
4670
4670
  gridContainerPosition: t,
4671
4671
  gridAxesTransform: e,
4672
4672
  gridGraphicTransform: n
4673
4673
  }).pipe(
4674
- E(async (r) => r),
4674
+ L(async (r) => r),
4675
4675
  x((r) => r.gridAxesTransform.rotate == 0 || r.gridAxesTransform.rotate == 180 ? r.gridContainerPosition.map((i, a) => [
4676
4676
  1 / r.gridGraphicTransform.scale[0] / r.gridContainerPosition[a].scale[0],
4677
4677
  1 / r.gridGraphicTransform.scale[1] / r.gridContainerPosition[a].scale[1]
@@ -4696,12 +4696,12 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4696
4696
  }).pipe(
4697
4697
  y(1)
4698
4698
  );
4699
- return L({
4699
+ return E({
4700
4700
  fullDataFormatter: t,
4701
4701
  computedData: e,
4702
4702
  multiGridContainer: s
4703
4703
  }).pipe(
4704
- E(async (u) => u),
4704
+ L(async (u) => u),
4705
4705
  // distinctUntilChanged((a, b) => {
4706
4706
  // // 只有當computedData的長度改變時,才重新計算
4707
4707
  // return a.computedData.length === b.computedData.length
@@ -4720,60 +4720,60 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4720
4720
  ...u.fullDataFormatter.container
4721
4721
  }
4722
4722
  }, m = pt(p).pipe(
4723
- M(a),
4723
+ C(a),
4724
4724
  y(1)
4725
4725
  ), d = pt(f).pipe(
4726
- M(a),
4726
+ C(a),
4727
4727
  y(1)
4728
4728
  ), v = m.pipe(
4729
4729
  x((j) => j.separateSeries),
4730
4730
  q(),
4731
4731
  y(1)
4732
4732
  ), D = pt(u.multiGridContainer[c]).pipe(
4733
- M(a),
4733
+ C(a),
4734
4734
  y(1)
4735
4735
  ), A = mi({
4736
4736
  fullDataFormatter$: m,
4737
4737
  layout$: n
4738
4738
  }).pipe(
4739
- M(a),
4739
+ C(a),
4740
4740
  y(1)
4741
4741
  ), $ = d.pipe(
4742
4742
  x((j) => j.flat())
4743
4743
  ).pipe(
4744
- M(a),
4744
+ C(a),
4745
4745
  y(1)
4746
- ), F = di({
4746
+ ), T = di({
4747
4747
  computedData$: d
4748
4748
  }).pipe(
4749
- M(a),
4749
+ C(a),
4750
4750
  y(1)
4751
4751
  ), _ = fn({
4752
4752
  datumList$: $
4753
4753
  }).pipe(
4754
- M(a),
4754
+ C(a),
4755
4755
  y(1)
4756
- ), B = hi({
4756
+ ), R = hi({
4757
4757
  datumList$: $
4758
4758
  }).pipe(
4759
- M(a),
4759
+ C(a),
4760
4760
  y(1)
4761
4761
  ), I = gi({
4762
4762
  computedData$: d
4763
4763
  }).pipe(
4764
- M(a),
4764
+ C(a),
4765
4765
  y(1)
4766
4766
  ), k = pi({
4767
4767
  computedData$: d,
4768
4768
  fullDataFormatter$: m,
4769
4769
  layout$: n
4770
4770
  }).pipe(
4771
- M(a),
4771
+ C(a),
4772
4772
  y(1)
4773
4773
  ), b = yi({
4774
4774
  computedLayoutData$: k
4775
4775
  }).pipe(
4776
- M(a),
4776
+ C(a),
4777
4777
  y(1)
4778
4778
  ), w = vi({
4779
4779
  computedData$: d,
@@ -4784,24 +4784,24 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4784
4784
  computedData$: d,
4785
4785
  fullDataFormatter$: m
4786
4786
  }).pipe(
4787
- M(a),
4787
+ C(a),
4788
4788
  y(1)
4789
4789
  ), S = xi({
4790
4790
  computedData$: d,
4791
4791
  groupScaleDomainValue$: g
4792
4792
  }).pipe(
4793
- M(a),
4793
+ C(a),
4794
4794
  y(1)
4795
- ), T = wi({
4795
+ ), M = wi({
4796
4796
  fullDataFormatter$: m,
4797
4797
  layout$: n
4798
4798
  }).pipe(
4799
- M(a),
4799
+ C(a),
4800
4800
  y(1)
4801
- ), R = Di({
4802
- gridAxesTransform$: T
4801
+ ), B = Di({
4802
+ gridAxesTransform$: M
4803
4803
  }).pipe(
4804
- M(a),
4804
+ C(a),
4805
4805
  y(1)
4806
4806
  ), it = $i({
4807
4807
  computedData$: d,
@@ -4810,11 +4810,11 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4810
4810
  fullDataFormatter$: m,
4811
4811
  layout$: n
4812
4812
  }).pipe(
4813
- M(a),
4813
+ C(a),
4814
4814
  y(1)
4815
4815
  ), lt = _i({
4816
4816
  gridContainerPosition$: D,
4817
- gridAxesTransform$: T,
4817
+ gridAxesTransform$: M,
4818
4818
  gridGraphicTransform$: it
4819
4819
  });
4820
4820
  return {
@@ -4822,9 +4822,9 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4822
4822
  gridContainerPosition$: D,
4823
4823
  gridAxesSize$: A,
4824
4824
  gridHighlight$: o,
4825
- seriesLabels$: F,
4825
+ seriesLabels$: T,
4826
4826
  SeriesDataMap$: _,
4827
- GroupDataMap$: B,
4827
+ GroupDataMap$: R,
4828
4828
  dataFormatter$: m,
4829
4829
  computedData$: d,
4830
4830
  computedLayoutData$: k,
@@ -4833,20 +4833,20 @@ const xt = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4833
4833
  computedStackedData$: w,
4834
4834
  groupScaleDomainValue$: g,
4835
4835
  filteredMinMaxValue$: S,
4836
- gridAxesTransform$: T,
4837
- gridAxesReverseTransform$: R,
4836
+ gridAxesTransform$: M,
4837
+ gridAxesReverseTransform$: B,
4838
4838
  gridGraphicTransform$: it,
4839
4839
  gridGraphicReverseScale$: lt
4840
4840
  };
4841
4841
  });
4842
4842
  })
4843
4843
  );
4844
- }, Ai = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
4844
+ }, Ai = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
4845
4845
  computedData: t,
4846
4846
  fullDataFormatter: e,
4847
4847
  layout: n
4848
4848
  }).pipe(
4849
- E(async (r) => r),
4849
+ L(async (r) => r),
4850
4850
  x((r) => {
4851
4851
  const i = r.fullDataFormatter.gridList[0] ?? be, a = r.computedData.reduce((l, f, c) => {
4852
4852
  const p = (r.fullDataFormatter.gridList[c] ?? i).separateSeries ? f.length : r.fullDataFormatter.separateGrid ? 1 : 0;
@@ -4895,7 +4895,7 @@ function ft({ columnName: t, expectToBe: e, from: n }) {
4895
4895
  ----> find in '${n}'`;
4896
4896
  }
4897
4897
  function uc(t) {
4898
- return t ? C(t, {
4898
+ return t ? F(t, {
4899
4899
  width: {
4900
4900
  toBe: '"auto" | number',
4901
4901
  test: (n) => n === "auto" || typeof n == "number"
@@ -4910,10 +4910,10 @@ function uc(t) {
4910
4910
  }) : { status: "success", columnName: "", expectToBe: "" };
4911
4911
  }
4912
4912
  function lc(t) {
4913
- return C({ element: t }, {
4913
+ return F({ element: t }, {
4914
4914
  element: {
4915
4915
  toBe: "Dom",
4916
- test: (n) => Ei(n)
4916
+ test: (n) => Li(n)
4917
4917
  }
4918
4918
  });
4919
4919
  }
@@ -4926,7 +4926,7 @@ function cc(t, e) {
4926
4926
  relationship: ["category", "datum", "none"],
4927
4927
  tree: ["category", "datum", "none"],
4928
4928
  noneData: ["none"]
4929
- }, r = C(e, {
4929
+ }, r = F(e, {
4930
4930
  padding: {
4931
4931
  toBeTypes: ["object"]
4932
4932
  },
@@ -4956,7 +4956,7 @@ function cc(t, e) {
4956
4956
  }
4957
4957
  });
4958
4958
  if (e && e.padding) {
4959
- const i = C(e.padding, {
4959
+ const i = F(e.padding, {
4960
4960
  top: {
4961
4961
  toBeTypes: ["number"]
4962
4962
  },
@@ -4974,7 +4974,7 @@ function cc(t, e) {
4974
4974
  return i;
4975
4975
  }
4976
4976
  if (e && e.colors) {
4977
- const i = C(e.colors, {
4977
+ const i = F(e.colors, {
4978
4978
  light: {
4979
4979
  toBeTypes: ["object"]
4980
4980
  },
@@ -4985,7 +4985,7 @@ function cc(t, e) {
4985
4985
  if (i.status === "error")
4986
4986
  return i;
4987
4987
  if (e.colors.light) {
4988
- const a = C(e.colors.light, {
4988
+ const a = F(e.colors.light, {
4989
4989
  label: {
4990
4990
  toBeTypes: ["string[]"]
4991
4991
  },
@@ -5006,7 +5006,7 @@ function cc(t, e) {
5006
5006
  return a;
5007
5007
  }
5008
5008
  if (e.colors.dark) {
5009
- const a = C(e.colors.dark, {
5009
+ const a = F(e.colors.dark, {
5010
5010
  label: {
5011
5011
  toBeTypes: ["string[]"]
5012
5012
  },
@@ -5030,7 +5030,7 @@ function cc(t, e) {
5030
5030
  return r;
5031
5031
  }
5032
5032
  function fc(t, e) {
5033
- return C({ pluginEntities: e }, {
5033
+ return F({ pluginEntities: e }, {
5034
5034
  pluginEntities: {
5035
5035
  toBe: `PluginEntity<'${t}'>[]`,
5036
5036
  test: (r) => Array.isArray(r) && r.every((i) => i.chartType === t || i.chartType === "noneData")
@@ -5068,16 +5068,16 @@ const hc = ({
5068
5068
  from: "Chart.constructor"
5069
5069
  }));
5070
5070
  else {
5071
- const { status: S, columnName: T, expectToBe: R } = lc(u);
5071
+ const { status: S, columnName: M, expectToBe: B } = lc(u);
5072
5072
  if (S === "error")
5073
5073
  throw new Error(ct({
5074
- columnName: T,
5075
- expectToBe: R,
5074
+ columnName: M,
5075
+ expectToBe: B,
5076
5076
  from: "Chart.constructor"
5077
5077
  }));
5078
5078
  S === "warning" && console.warn(ft({
5079
- columnName: T,
5080
- expectToBe: R,
5079
+ columnName: M,
5080
+ expectToBe: B,
5081
5081
  from: "Chart.constructor"
5082
5082
  }));
5083
5083
  }
@@ -5107,8 +5107,8 @@ const hc = ({
5107
5107
  allPluginParams: g.allPluginParams ? g.allPluginParams : {}
5108
5108
  };
5109
5109
  })(l), d = p.data$.pipe(y(1)), v = p.dataFormatter$.pipe(
5110
- M(a),
5111
- Ee({}),
5110
+ C(a),
5111
+ Le({}),
5112
5112
  x((b) => {
5113
5113
  try {
5114
5114
  const { status: w, columnName: g, expectToBe: S } = e(b);
@@ -5134,8 +5134,8 @@ const hc = ({
5134
5134
  // }),
5135
5135
  y(1)
5136
5136
  ), D = p.chartParams$.pipe(
5137
- M(a),
5138
- Ee({}),
5137
+ C(a),
5138
+ Le({}),
5139
5139
  x((b) => {
5140
5140
  try {
5141
5141
  const { status: w, columnName: g, expectToBe: S } = cc(o, b);
@@ -5161,12 +5161,12 @@ const hc = ({
5161
5161
  // }),
5162
5162
  y(1)
5163
5163
  ), A = D.pipe(
5164
- M(a),
5165
- Ee({}),
5164
+ C(a),
5165
+ Le({}),
5166
5166
  x((b) => mt(b.padding ?? {}, jn))
5167
5167
  );
5168
5168
  A.pipe(
5169
- M(a),
5169
+ C(a),
5170
5170
  Hl()
5171
5171
  ).subscribe((b) => {
5172
5172
  c.attr("transform", `translate(${b.left}, ${b.top})`);
@@ -5177,7 +5177,7 @@ const hc = ({
5177
5177
  width: (l == null ? void 0 : l.width) ?? Ae.width,
5178
5178
  height: (l == null ? void 0 : l.height) ?? Ae.height
5179
5179
  }).pipe(
5180
- E((b) => fi(
5180
+ L((b) => fi(
5181
5181
  () => b.width === "auto" || b.height === "auto",
5182
5182
  // 有 'auto' 的話就監聽element的尺寸
5183
5183
  Jl(u).pipe(
@@ -5188,9 +5188,9 @@ const hc = ({
5188
5188
  ),
5189
5189
  pt(b)
5190
5190
  )),
5191
- M(a),
5191
+ C(a),
5192
5192
  Ue()
5193
- ), F = pt().pipe(
5193
+ ), T = pt().pipe(
5194
5194
  ql(
5195
5195
  $.pipe(
5196
5196
  Il(250)
@@ -5201,13 +5201,13 @@ const hc = ({
5201
5201
  ),
5202
5202
  q((b, w) => JSON.stringify(b) === JSON.stringify(w)),
5203
5203
  Ue()
5204
- ), _ = F.subscribe(), B = L({
5205
- rootSize: F,
5204
+ ), _ = T.subscribe(), R = E({
5205
+ rootSize: T,
5206
5206
  mergedPadding: A
5207
5207
  }).pipe(
5208
- M(a),
5209
- E(async (b) => {
5210
- const w = b.rootSize.width > 0 ? b.rootSize.width : Mi, g = b.rootSize.height > 0 ? b.rootSize.height : Ti;
5208
+ C(a),
5209
+ L(async (b) => {
5210
+ const w = b.rootSize.width > 0 ? b.rootSize.width : Ci, g = b.rootSize.height > 0 ? b.rootSize.height : Mi;
5211
5211
  return {
5212
5212
  width: w - b.mergedPadding.left - b.mergedPadding.right,
5213
5213
  height: g - b.mergedPadding.top - b.mergedPadding.bottom,
@@ -5221,30 +5221,30 @@ const hc = ({
5221
5221
  }),
5222
5222
  y(1)
5223
5223
  );
5224
- B.subscribe((b) => {
5224
+ R.subscribe((b) => {
5225
5225
  f.attr("width", b.rootWidth).attr("height", b.rootHeight);
5226
5226
  });
5227
- const I = L({
5227
+ const I = E({
5228
5228
  data: d,
5229
5229
  dataFormatter: v,
5230
5230
  chartParams: D
5231
5231
  // layout: iif(() => isAxesTypeMap[chartType] === true, layout$, of(undefined))
5232
5232
  }).pipe(
5233
- M(a),
5234
- E(async (b) => b),
5235
- E((b) => pt(b).pipe(
5233
+ C(a),
5234
+ L(async (b) => b),
5235
+ L((b) => pt(b).pipe(
5236
5236
  x((w) => {
5237
5237
  try {
5238
- const { status: g, columnName: S, expectToBe: T } = r(w.data);
5238
+ const { status: g, columnName: S, expectToBe: M } = r(w.data);
5239
5239
  if (g === "error")
5240
5240
  throw new Error(ct({
5241
5241
  columnName: S,
5242
- expectToBe: T,
5242
+ expectToBe: M,
5243
5243
  from: "Chart.data$"
5244
5244
  }));
5245
5245
  g === "warning" && console.warn(ft({
5246
5246
  columnName: S,
5247
- expectToBe: T,
5247
+ expectToBe: M,
5248
5248
  from: "Chart.data$"
5249
5249
  }));
5250
5250
  } catch (g) {
@@ -5280,18 +5280,18 @@ const hc = ({
5280
5280
  return;
5281
5281
  }
5282
5282
  h.selectAll("g.orbcharts__plugin").data(b, (w) => w.name).join(
5283
- (w) => w.append("g").attr("class", (g) => `orbcharts__plugin orbcharts__${g.name}`).each((g, S, T) => {
5284
- const R = {
5283
+ (w) => w.append("g").attr("class", (g) => `orbcharts__plugin orbcharts__${g.name}`).each((g, S, M) => {
5284
+ const B = {
5285
5285
  fullParams$: new O(),
5286
5286
  fullChartParams$: D,
5287
5287
  fullDataFormatter$: v,
5288
5288
  computedData$: I,
5289
- layout$: B
5289
+ layout$: R
5290
5290
  }, it = i({
5291
- observer: R,
5291
+ observer: B,
5292
5292
  subject: p
5293
5293
  }), j = {
5294
- selection: Wt(T[S]),
5294
+ selection: Wt(M[S]),
5295
5295
  rootSelection: f,
5296
5296
  name: g.name,
5297
5297
  chartType: o,
@@ -5301,7 +5301,7 @@ const hc = ({
5301
5301
  g.setPresetParams(m.allPluginParams[g.name] ?? {}), g.setContext(j), k[j.name] = g, g.init();
5302
5302
  }),
5303
5303
  (w) => w,
5304
- (w) => w.each((g, S, T) => {
5304
+ (w) => w.each((g, S, M) => {
5305
5305
  k[g.name] && (k[g.name].destroy(), k[g.name] = void 0);
5306
5306
  }).remove()
5307
5307
  ).sort((w, g) => w.layerIndex - g.layerIndex);
@@ -5341,7 +5341,7 @@ class lf extends Ot {
5341
5341
  }
5342
5342
  }
5343
5343
  const pc = (t) => {
5344
- const e = C(t, {
5344
+ const e = F(t, {
5345
5345
  visibleFilter: {
5346
5346
  toBeTypes: ["Function"]
5347
5347
  },
@@ -5351,7 +5351,7 @@ const pc = (t) => {
5351
5351
  container: {
5352
5352
  toBeTypes: ["object"]
5353
5353
  }
5354
- }), n = C(t, {
5354
+ }), n = F(t, {
5355
5355
  seriesDirection: {
5356
5356
  toBe: '"row" | "column"',
5357
5357
  test: (r) => r === "row" || r === "column"
@@ -5375,7 +5375,7 @@ const pc = (t) => {
5375
5375
  if (n.status === "error")
5376
5376
  return n;
5377
5377
  if (t.valueAxis) {
5378
- const r = C(t.valueAxis, {
5378
+ const r = F(t.valueAxis, {
5379
5379
  position: {
5380
5380
  toBe: '"bottom" | "left" | "top" | "right"',
5381
5381
  test: (i) => i === "bottom" || i === "left" || i === "top" || i === "right"
@@ -5396,7 +5396,7 @@ const pc = (t) => {
5396
5396
  return r;
5397
5397
  }
5398
5398
  if (t.groupAxis) {
5399
- const r = C(t.groupAxis, {
5399
+ const r = F(t.groupAxis, {
5400
5400
  position: {
5401
5401
  toBe: '"bottom" | "left" | "top" | "right"',
5402
5402
  test: (i) => i === "bottom" || i === "left" || i === "top" || i === "right"
@@ -5416,7 +5416,7 @@ const pc = (t) => {
5416
5416
  return r;
5417
5417
  }
5418
5418
  if (t.container) {
5419
- const r = C(t.container, {
5419
+ const r = F(t.container, {
5420
5420
  gap: {
5421
5421
  toBeTypes: ["number"]
5422
5422
  },
@@ -5470,7 +5470,7 @@ const mc = (t) => {
5470
5470
  return [];
5471
5471
  let i;
5472
5472
  try {
5473
- const a = Si(e, n), o = Rr({
5473
+ const a = Si(e, n), o = Br({
5474
5474
  transposedDataGrid: a,
5475
5475
  dataFormatterGrid: n,
5476
5476
  chartType: "grid"
@@ -5503,7 +5503,7 @@ const mc = (t) => {
5503
5503
  throw Error(a);
5504
5504
  }
5505
5505
  return i;
5506
- }, dc = (t) => C({ data: t }, {
5506
+ }, dc = (t) => F({ data: t }, {
5507
5507
  data: {
5508
5508
  toBe: "(DataGridDatum | DataGridValue)[][]",
5509
5509
  // 畢免資料量過大檢查不完,不深度檢查
@@ -5591,7 +5591,7 @@ const mc = (t) => {
5591
5591
  layout$: e.layout$
5592
5592
  }).pipe(
5593
5593
  y(1)
5594
- ), F = _i({
5594
+ ), T = _i({
5595
5595
  gridContainerPosition$: i,
5596
5596
  gridAxesTransform$: D,
5597
5597
  gridGraphicTransform$: $
@@ -5619,7 +5619,7 @@ const mc = (t) => {
5619
5619
  gridAxesTransform$: D,
5620
5620
  gridAxesReverseTransform$: A,
5621
5621
  gridGraphicTransform$: $,
5622
- gridGraphicReverseScale$: F
5622
+ gridGraphicReverseScale$: T
5623
5623
  };
5624
5624
  };
5625
5625
  class cf extends Ot {
@@ -5638,7 +5638,7 @@ class cf extends Ot {
5638
5638
  }
5639
5639
  }
5640
5640
  const yc = (t) => {
5641
- const e = C(t, {
5641
+ const e = F(t, {
5642
5642
  visibleFilter: {
5643
5643
  toBeTypes: ["Function"]
5644
5644
  },
@@ -5654,7 +5654,7 @@ const yc = (t) => {
5654
5654
  });
5655
5655
  if (t.gridList) {
5656
5656
  const r = t.gridList.map((i, a) => {
5657
- const o = C(i, {
5657
+ const o = F(i, {
5658
5658
  seriesDirection: {
5659
5659
  toBe: '"row" | "column"',
5660
5660
  test: (s) => s === "row" || s === "column"
@@ -5678,7 +5678,7 @@ const yc = (t) => {
5678
5678
  if (o.status === "error")
5679
5679
  return o;
5680
5680
  if (i.valueAxis) {
5681
- const s = C(i.valueAxis, {
5681
+ const s = F(i.valueAxis, {
5682
5682
  position: {
5683
5683
  toBe: '"top" | "bottom" | "left" | "right"',
5684
5684
  test: (u) => u === "top" || u === "bottom" || u === "left" || u === "right"
@@ -5698,7 +5698,7 @@ const yc = (t) => {
5698
5698
  if (s.status === "error")
5699
5699
  return s;
5700
5700
  } else if (i.groupAxis) {
5701
- const s = C(i.groupAxis, {
5701
+ const s = F(i.groupAxis, {
5702
5702
  position: {
5703
5703
  toBe: '"top" | "bottom" | "left" | "right"',
5704
5704
  test: (u) => u === "top" || u === "bottom" || u === "left" || u === "right"
@@ -5727,7 +5727,7 @@ const yc = (t) => {
5727
5727
  return r;
5728
5728
  }
5729
5729
  if (t.container) {
5730
- const n = C(t.container, {
5730
+ const n = F(t.container, {
5731
5731
  gap: {
5732
5732
  toBeTypes: ["number"]
5733
5733
  },
@@ -5748,7 +5748,7 @@ const yc = (t) => {
5748
5748
  return [];
5749
5749
  let i = [];
5750
5750
  try {
5751
- const a = n.gridList[0] || be, o = e.map((c, h) => n.gridList[h] || a), s = e.map((c, h) => Si(c, o[h])), u = n.separateGrid ? s.map((c, h) => Rr({
5751
+ const a = n.gridList[0] || be, o = e.map((c, h) => n.gridList[h] || a), s = e.map((c, h) => Si(c, o[h])), u = n.separateGrid ? s.map((c, h) => Br({
5752
5752
  transposedDataGrid: c,
5753
5753
  dataFormatterGrid: o[h],
5754
5754
  chartType: "multiGrid"
@@ -5765,15 +5765,15 @@ const yc = (t) => {
5765
5765
  l.set(c, p), f++;
5766
5766
  }
5767
5767
  }), i = s.map((c, h) => {
5768
- const p = u[h], m = Bu({
5768
+ const p = u[h], m = Ru({
5769
5769
  transposedDataGrid: c,
5770
5770
  dataFormatterGrid: o[h],
5771
5771
  chartType: "multiGrid",
5772
5772
  gridIndex: h
5773
5773
  });
5774
5774
  let d = 0;
5775
- return c.map((D, A) => D.map(($, F) => {
5776
- const _ = _e("multiGrid", h, A, F), B = m[F], I = p[A], k = {
5775
+ return c.map((D, A) => D.map(($, T) => {
5776
+ const _ = _e("multiGrid", h, A, T), R = m[T], I = p[A], k = {
5777
5777
  id: $.id ? $.id : _,
5778
5778
  index: d,
5779
5779
  label: $.label ? $.label : _,
@@ -5784,8 +5784,8 @@ const yc = (t) => {
5784
5784
  // accSeriesIndex: seriesIndex, // 預設為seriesIndex
5785
5785
  seriesIndex: A,
5786
5786
  seriesLabel: I,
5787
- groupIndex: F,
5788
- groupLabel: B,
5787
+ groupIndex: T,
5788
+ groupLabel: R,
5789
5789
  color: l.get(I),
5790
5790
  visible: !0
5791
5791
  // 先給一個預設值
@@ -5797,7 +5797,7 @@ const yc = (t) => {
5797
5797
  throw Error(a);
5798
5798
  }
5799
5799
  return i;
5800
- }, bc = (t) => C({ data: t }, {
5800
+ }, bc = (t) => F({ data: t }, {
5801
5801
  data: {
5802
5802
  toBe: "DataGrid[]",
5803
5803
  // 畢免資料量過大檢查不完,不深度檢查
@@ -5953,13 +5953,13 @@ const wc = (t) => ({
5953
5953
  reverse: !0
5954
5954
  });
5955
5955
  }
5956
- return L({
5956
+ return E({
5957
5957
  computedData: t,
5958
5958
  minMaxXY: e,
5959
5959
  fullDataFormatter: n,
5960
5960
  layout: r
5961
5961
  }).pipe(
5962
- E(async (o) => o),
5962
+ L(async (o) => o),
5963
5963
  x((o) => {
5964
5964
  const s = i(o.minMaxXY, o.layout), u = a(o.minMaxXY, o.layout);
5965
5965
  return o.computedData.map((l, f) => l.map((c, h) => ({
@@ -5974,16 +5974,16 @@ const wc = (t) => ({
5974
5974
  }, Sc = ({ computedData$: t, fullDataFormatter$: e }) => t.pipe(
5975
5975
  x((n) => n.map((r) => r[0] ? r[0].categoryLabel : "")),
5976
5976
  q((n, r) => JSON.stringify(n).length === JSON.stringify(r).length)
5977
- ), Mc = ({ computedData$: t }) => t.pipe(
5977
+ ), Cc = ({ computedData$: t }) => t.pipe(
5978
5978
  x((e) => e.map((n) => n.filter((r) => r.visible == !0)).filter((n) => n.length > 0))
5979
- ), Tc = ({ computedLayoutData$: t }) => t.pipe(
5979
+ ), Mc = ({ computedLayoutData$: t }) => t.pipe(
5980
5980
  x((e) => e.map((n) => n.filter((r) => r.visible == !0)).filter((n) => n.length > 0))
5981
- ), Fc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => L({
5981
+ ), Tc = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => E({
5982
5982
  computedData: t,
5983
5983
  fullDataFormatter: e,
5984
5984
  layout: n
5985
5985
  }).pipe(
5986
- E(async (i) => i),
5986
+ L(async (i) => i),
5987
5987
  x((i) => {
5988
5988
  if (i.fullDataFormatter.separateCategory)
5989
5989
  return Yt(i.layout, i.fullDataFormatter.container, i.computedData.length);
@@ -5992,7 +5992,7 @@ const wc = (t) => ({
5992
5992
  return i.computedData.map((o, s) => a[0]);
5993
5993
  }
5994
5994
  })
5995
- ), Cc = ({ visibleComputedLayoutData$: t, minMaxXY$: e, fullDataFormatter$: n }) => L({
5995
+ ), Fc = ({ visibleComputedLayoutData$: t, minMaxXY$: e, fullDataFormatter$: n }) => E({
5996
5996
  visibleComputedLayoutData: t,
5997
5997
  minMaxXY: e,
5998
5998
  fullDataFormatter: n
@@ -6014,14 +6014,14 @@ const wc = (t) => ({
6014
6014
  maxYDatum: h
6015
6015
  };
6016
6016
  })
6017
- ), Ec = ({ minMaxXY$: t, filteredMinMaxXYData$: e, fullDataFormatter$: n, layout$: r }) => {
6017
+ ), Lc = ({ minMaxXY$: t, filteredMinMaxXYData$: e, fullDataFormatter$: n, layout$: r }) => {
6018
6018
  const i = new P();
6019
6019
  function a({ minMaxXY: o, filteredMinMaxXYData: s, xAxis: u, yAxis: l, width: f, height: c }) {
6020
- let h = 0, p = 0, m = 0, d = 0, { minX: v, maxX: D, minY: A, maxY: $ } = o, F = s.minXDatum.value[0] ?? 0, _ = s.maxXDatum.value[0] ?? 0, B = s.minYDatum.value[1] ?? 0, I = s.maxYDatum.value[1] ?? 0;
6021
- F === _ && _ === 0 && (_ = 1), B === I && I === 0 && (I = 1), v === D && D === 0 && (D = 1), A === $ && $ === 0 && ($ = 1);
6020
+ let h = 0, p = 0, m = 0, d = 0, { minX: v, maxX: D, minY: A, maxY: $ } = o, T = s.minXDatum.value[0] ?? 0, _ = s.maxXDatum.value[0] ?? 0, R = s.minYDatum.value[1] ?? 0, I = s.maxYDatum.value[1] ?? 0;
6021
+ T === _ && _ === 0 && (_ = 1), R === I && I === 0 && (I = 1), v === D && D === 0 && (D = 1), A === $ && $ === 0 && ($ = 1);
6022
6022
  const k = ut({
6023
6023
  maxValue: _,
6024
- minValue: F,
6024
+ minValue: T,
6025
6025
  axisWidth: f,
6026
6026
  scaleDomain: u.scaleDomain,
6027
6027
  scaleRange: u.scaleRange
@@ -6029,13 +6029,13 @@ const wc = (t) => ({
6029
6029
  h = b, m = (w - b) / f;
6030
6030
  const S = ut({
6031
6031
  maxValue: I,
6032
- minValue: B,
6032
+ minValue: R,
6033
6033
  axisWidth: c,
6034
6034
  scaleDomain: l.scaleDomain,
6035
6035
  scaleRange: l.scaleRange,
6036
6036
  reverse: !0
6037
- }), T = S(A > 0 ? 0 : A), R = S($ < 0 ? 0 : $);
6038
- return p = R, d = (T - R) / c, {
6037
+ }), M = S(A > 0 ? 0 : A), B = S($ < 0 ? 0 : $);
6038
+ return p = B, d = (M - B) / c, {
6039
6039
  translate: [h, p],
6040
6040
  scale: [m, d],
6041
6041
  rotate: 0,
@@ -6044,14 +6044,14 @@ const wc = (t) => ({
6044
6044
  value: `translate(${h}px, ${p}px) scale(${m}, ${d})`
6045
6045
  };
6046
6046
  }
6047
- return new O((o) => (L({
6047
+ return new O((o) => (E({
6048
6048
  minMaxXY: t,
6049
6049
  filteredMinMaxXYData: e,
6050
6050
  fullDataFormatter: n,
6051
6051
  layout: r
6052
6052
  }).pipe(
6053
- M(i),
6054
- E(async (s) => s)
6053
+ C(i),
6054
+ L(async (s) => s)
6055
6055
  ).subscribe((s) => {
6056
6056
  if (!s.filteredMinMaxXYData.minXDatum || !s.filteredMinMaxXYData.maxXDatum || s.filteredMinMaxXYData.minXDatum.value[0] == null || s.filteredMinMaxXYData.maxXDatum.value[0] == null || !s.filteredMinMaxXYData.minYDatum || !s.filteredMinMaxXYData.maxYDatum || s.filteredMinMaxXYData.minYDatum.value[1] == null || s.filteredMinMaxXYData.maxYDatum.value[1] == null)
6057
6057
  return;
@@ -6067,12 +6067,12 @@ const wc = (t) => ({
6067
6067
  }), function() {
6068
6068
  i.next(void 0);
6069
6069
  }));
6070
- }, Lc = ({ multiValueContainerPosition$: t, multiValueGraphicTransform$: e }) => L({
6070
+ }, Ec = ({ multiValueContainerPosition$: t, multiValueGraphicTransform$: e }) => E({
6071
6071
  multiValueContainerPosition: t,
6072
6072
  // multiValueAxesTransform: multiValueAxesTransform$,
6073
6073
  multiValueGraphicTransform: e
6074
6074
  }).pipe(
6075
- E(async (n) => n),
6075
+ L(async (n) => n),
6076
6076
  x((n) => n.multiValueContainerPosition.map((r, i) => [
6077
6077
  1 / n.multiValueGraphicTransform.scale[0] / n.multiValueContainerPosition[i].scale[0],
6078
6078
  1 / n.multiValueGraphicTransform.scale[1] / n.multiValueContainerPosition[i].scale[1]
@@ -6084,7 +6084,7 @@ const wc = (t) => ({
6084
6084
  x((v) => v.separateCategory),
6085
6085
  q(),
6086
6086
  y(1)
6087
- ), i = Fc({
6087
+ ), i = Tc({
6088
6088
  computedData$: e.computedData$,
6089
6089
  fullDataFormatter$: e.fullDataFormatter$,
6090
6090
  layout$: e.layout$
@@ -6116,28 +6116,28 @@ const wc = (t) => ({
6116
6116
  layout$: e.layout$
6117
6117
  }).pipe(
6118
6118
  y(1)
6119
- ), c = Mc({
6119
+ ), c = Cc({
6120
6120
  computedData$: e.computedData$
6121
6121
  }).pipe(
6122
6122
  y(1)
6123
- ), h = Tc({
6123
+ ), h = Mc({
6124
6124
  computedLayoutData$: f
6125
6125
  }).pipe(
6126
6126
  y(1)
6127
- ), p = Cc({
6127
+ ), p = Fc({
6128
6128
  visibleComputedLayoutData$: h,
6129
6129
  minMaxXY$: l,
6130
6130
  fullDataFormatter$: e.fullDataFormatter$
6131
6131
  }).pipe(
6132
6132
  y(1)
6133
- ), m = Ec({
6133
+ ), m = Lc({
6134
6134
  minMaxXY$: l,
6135
6135
  filteredMinMaxXYData$: p,
6136
6136
  fullDataFormatter$: e.fullDataFormatter$,
6137
6137
  layout$: e.layout$
6138
6138
  }).pipe(
6139
6139
  y(1)
6140
- ), d = Lc({
6140
+ ), d = Ec({
6141
6141
  multiValueContainerPosition$: i,
6142
6142
  // multiValueAxesTransform$: multiValueAxesTransform$,
6143
6143
  multiValueGraphicTransform$: m
@@ -6264,14 +6264,14 @@ const Oc = (t) => ({
6264
6264
  status: "success",
6265
6265
  columnName: "",
6266
6266
  expectToBe: ""
6267
- }), Bc = (t, e) => L({
6267
+ }), Rc = (t, e) => E({
6268
6268
  CategoryNodeMap: t,
6269
6269
  CategoryEdgeMap: e
6270
6270
  }).pipe(
6271
- E(async (n) => n),
6271
+ L(async (n) => n),
6272
6272
  x((n) => [...Array.from(n.CategoryNodeMap.keys()), ...Array.from(n.CategoryEdgeMap.keys())]),
6273
6273
  q((n, r) => JSON.stringify(n).length === JSON.stringify(r).length)
6274
- ), Rc = (t) => t.pipe(
6274
+ ), Bc = (t) => t.pipe(
6275
6275
  x((e) => {
6276
6276
  const n = /* @__PURE__ */ new Map();
6277
6277
  return e.nodes.forEach((r) => {
@@ -6285,11 +6285,11 @@ const Oc = (t) => ({
6285
6285
  n.set(r.id, r);
6286
6286
  }), n;
6287
6287
  })
6288
- ), Vc = ({ computedData$: t, NodeMap$: e }) => L({
6288
+ ), Vc = ({ computedData$: t, NodeMap$: e }) => E({
6289
6289
  computedData: t,
6290
6290
  NodeMap: e
6291
6291
  }).pipe(
6292
- E(async (n) => n),
6292
+ L(async (n) => n),
6293
6293
  x((n) => ({
6294
6294
  nodes: n.computedData.nodes.filter((r) => r.visible),
6295
6295
  edges: n.computedData.edges.filter((r) => r.visible).filter((r) => n.NodeMap.has(r.startNode.id) && n.NodeMap.has(r.endNode.id))
@@ -6317,11 +6317,11 @@ const Oc = (t) => ({
6317
6317
  datumList$: e.computedData$.pipe(x((c) => c.edges))
6318
6318
  }).pipe(
6319
6319
  y(1)
6320
- ), s = Rc(e.computedData$).pipe(
6320
+ ), s = Bc(e.computedData$).pipe(
6321
6321
  y(1)
6322
6322
  ), u = Ic(e.computedData$).pipe(
6323
6323
  y(1)
6324
- ), l = Bc(a, o).pipe(
6324
+ ), l = Rc(a, o).pipe(
6325
6325
  y(1)
6326
6326
  ), f = Vc({
6327
6327
  computedData$: e.computedData$,
@@ -6361,7 +6361,7 @@ class pf extends Ot {
6361
6361
  );
6362
6362
  }
6363
6363
  }
6364
- const Xc = (t) => C(t, {
6364
+ const Xc = (t) => F(t, {
6365
6365
  visibleFilter: {
6366
6366
  toBeTypes: ["Function"]
6367
6367
  },
@@ -6449,7 +6449,7 @@ const Xc = (t) => C(t, {
6449
6449
  throw Error(s);
6450
6450
  }
6451
6451
  return o;
6452
- }, Uc = (t) => C({ data: t }, {
6452
+ }, Uc = (t) => F({ data: t }, {
6453
6453
  data: {
6454
6454
  toBe: "DataTreeObj | DataTreeDatum[]",
6455
6455
  // 畢免資料量過大檢查不完,不深度檢查
@@ -6512,12 +6512,12 @@ function zc({ chartType: t, config: e, initFn: n }) {
6512
6512
  let a = () => {
6513
6513
  }, o;
6514
6514
  const s = new Gn(e.defaultParams), u = new Gn({}), l = s.pipe(
6515
- E((f) => u.pipe(
6516
- M(r),
6515
+ L((f) => u.pipe(
6516
+ C(r),
6517
6517
  x((c) => {
6518
6518
  try {
6519
6519
  const { status: h, columnName: p, expectToBe: m } = e.validator(c, {
6520
- validateColumns: C
6520
+ validateColumns: F
6521
6521
  });
6522
6522
  if (h === "error")
6523
6523
  throw new Error(ct({
@@ -6579,14 +6579,14 @@ const wt = (t) => function(n) {
6579
6579
  }, gf = wt("series"), yf = wt("grid"), vf = wt("multiGrid"), bf = wt("multiValue"), xf = wt("noneData"), wf = wt("relationship"), Df = wt("tree");
6580
6580
  export {
6581
6581
  Zc as DEFAULTL_DATA_RELATIONA,
6582
- Ti as DEFAULT_CHART_HEIGHT,
6582
+ Mi as DEFAULT_CHART_HEIGHT,
6583
6583
  Ae as DEFAULT_CHART_OPTIONS,
6584
6584
  hn as DEFAULT_CHART_PARAMS,
6585
- Mi as DEFAULT_CHART_WIDTH,
6585
+ Ci as DEFAULT_CHART_WIDTH,
6586
6586
  ve as DEFAULT_DATA_FORMATTER_CONTAINER,
6587
6587
  Kn as DEFAULT_DATA_FORMATTER_GRID,
6588
6588
  Jn as DEFAULT_DATA_FORMATTER_GRID_GRID,
6589
- Fi as DEFAULT_DATA_FORMATTER_GROUP_AXIS,
6589
+ Ti as DEFAULT_DATA_FORMATTER_GROUP_AXIS,
6590
6590
  Zn as DEFAULT_DATA_FORMATTER_MULTI_GRID,
6591
6591
  be as DEFAULT_DATA_FORMATTER_MULTI_GRID_GRID,
6592
6592
  Qn as DEFAULT_DATA_FORMATTER_MULTI_VALUE,
@@ -6607,7 +6607,7 @@ export {
6607
6607
  lf as SeriesChart,
6608
6608
  mf as TreeChart,
6609
6609
  Yt as calcGridContainerLayout,
6610
- Bn as calcSeriesContainerLayout,
6610
+ Rn as calcSeriesContainerLayout,
6611
6611
  ye as categoryDataMapObservable,
6612
6612
  oc as categoryLabelsObservable,
6613
6613
  vi as computedStackedDataObservables,
@@ -6615,12 +6615,12 @@ export {
6615
6615
  of as createAxisToValueScale,
6616
6616
  nn as createDefaultCategoryLabel,
6617
6617
  _e as createDefaultDatumId,
6618
- Br as createDefaultGroupLabel,
6618
+ Rr as createDefaultGroupLabel,
6619
6619
  en as createDefaultSeriesLabel,
6620
6620
  Nu as createGridGroupLabels,
6621
- Rr as createGridSeriesLabels,
6621
+ Br as createGridSeriesLabels,
6622
6622
  sf as createLabelToAxisScale,
6623
- Bu as createMultiGridGroupLabels,
6623
+ Ru as createMultiGridGroupLabels,
6624
6624
  ku as createMultiGridSeriesLabels,
6625
6625
  ut as createValueToAxisScale,
6626
6626
  yf as defineGridPlugin,
@@ -6639,7 +6639,7 @@ export {
6639
6639
  rf as getMinMaxMultiValue,
6640
6640
  af as getMinMaxMultiValueXY,
6641
6641
  ef as getMinMaxSeries,
6642
- Ru as getMinMaxValue,
6642
+ Bu as getMinMaxValue,
6643
6643
  Di as gridAxesReverseTransformObservable,
6644
6644
  mi as gridAxesSizeObservable,
6645
6645
  wi as gridAxesTransformObservable,
@@ -6653,8 +6653,8 @@ export {
6653
6653
  hi as groupDataMapObservable,
6654
6654
  bi as groupScaleDomainValueObservable,
6655
6655
  xt as highlightObservable,
6656
- Ei as isDom,
6657
- Ci as isFunction,
6656
+ Li as isDom,
6657
+ Fi as isFunction,
6658
6658
  U as isPlainObject,
6659
6659
  mt as mergeOptionsWithDefault,
6660
6660
  Ai as multiGridContainerObservable,