@arcgis/charts-components 5.2.0-next.120 → 5.2.0-next.121

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 (140) hide show
  1. package/dist/cdn/{S5QSKGOD.js → 22GEDSID.js} +1 -1
  2. package/dist/cdn/{4ETHEVDM.js → 2DSJEDV6.js} +1 -1
  3. package/dist/cdn/{65WBRNOB.js → 2IMGLB5P.js} +1 -1
  4. package/dist/cdn/{EB5Z3G6D.js → 2MG6R4WZ.js} +1 -1
  5. package/dist/cdn/{SDDU5POB.js → 346W6JSX.js} +1 -1
  6. package/dist/cdn/{N7E2X5IX.js → 3JFIDJNK.js} +1 -1
  7. package/dist/cdn/3QIWL4Y6.js +2 -0
  8. package/dist/cdn/{ZAW4TN54.js → 4UPY7IZR.js} +1 -1
  9. package/dist/cdn/{CZGKNCIX.js → 55HD5ASD.js} +1 -1
  10. package/dist/cdn/{C22JKC32.js → 5NGZOXPZ.js} +1 -1
  11. package/dist/cdn/{P3VQFUQZ.js → 5NRVL7NV.js} +1 -1
  12. package/dist/cdn/{EAQZOXHL.js → 5OKYID5L.js} +1 -1
  13. package/dist/cdn/{UGJ6ZOQG.js → 5VU34FMQ.js} +1 -1
  14. package/dist/cdn/{U3W5ZPMZ.js → 6BYOOUOD.js} +1 -1
  15. package/dist/cdn/{FC6VMJIM.js → 6ESJJXFR.js} +1 -1
  16. package/dist/cdn/{WI4ABUKJ.js → 6IREEVIJ.js} +1 -1
  17. package/dist/cdn/{UQP6Q7H2.js → 72NDGOVB.js} +1 -1
  18. package/dist/cdn/{XNGFPEGT.js → 73RZMSJU.js} +1 -1
  19. package/dist/cdn/{7XTX3KFW.js → 74GBWUON.js} +1 -1
  20. package/dist/cdn/{JPCSR3D6.js → 7CVC24HH.js} +1 -1
  21. package/dist/cdn/{HBNL5LOO.js → 7MZUUBLN.js} +1 -1
  22. package/dist/cdn/{QJL354WC.js → A5JPFNVL.js} +1 -1
  23. package/dist/cdn/{V7JCHSX7.js → AAVHXU5D.js} +1 -1
  24. package/dist/cdn/BPEDCIDB.js +2 -0
  25. package/dist/cdn/{WFMMHYSH.js → CBSDCSFV.js} +1 -1
  26. package/dist/cdn/{6UUPPMVB.js → CFMJKZLO.js} +1 -1
  27. package/dist/cdn/{5NMUWLMG.js → CR5FDXHH.js} +1 -1
  28. package/dist/cdn/{OKH3U3GN.js → CSSKK7IZ.js} +1 -1
  29. package/dist/cdn/{J6RFRXEU.js → CXWIF2KU.js} +1 -1
  30. package/dist/cdn/{2LE4U3GT.js → DFR64RQY.js} +1 -1
  31. package/dist/cdn/{FF547HMW.js → ELRXUJGD.js} +1 -1
  32. package/dist/cdn/{XA4KE5YW.js → EWRTR7X6.js} +1 -1
  33. package/dist/cdn/{OQEUNYYG.js → F5DTLXOB.js} +1 -1
  34. package/dist/cdn/{VIQEFX6O.js → FUBHLZ4H.js} +1 -1
  35. package/dist/cdn/{VVWD3AMY.js → FZVZ5MJE.js} +1 -1
  36. package/dist/cdn/{FNDN7EW7.js → G5ND4PUZ.js} +1 -1
  37. package/dist/cdn/GSF5JMAE.js +2 -0
  38. package/dist/cdn/{ASQ2GJVW.js → GXCZ6WXB.js} +1 -1
  39. package/dist/cdn/{UVKFQG23.js → HDPGUTTH.js} +1 -1
  40. package/dist/cdn/{HXB7PSCG.js → HQO53B54.js} +1 -1
  41. package/dist/cdn/{RWAKKYLM.js → IGCN2436.js} +1 -1
  42. package/dist/cdn/INWA5VAO.js +2 -0
  43. package/dist/cdn/{7WZGORIO.js → K3VIGXRU.js} +24 -24
  44. package/dist/cdn/{XZ37Y4W5.js → K7OSRGWZ.js} +1 -1
  45. package/dist/cdn/{4YFDRBNS.js → KDIC74D5.js} +1 -1
  46. package/dist/cdn/{OMLLMMVS.js → LYOBJZHA.js} +1 -1
  47. package/dist/cdn/{5LI7FA5C.js → MHHVGZZG.js} +1 -1
  48. package/dist/cdn/{O5QM6RFL.js → MKCJDMSH.js} +1 -1
  49. package/dist/cdn/{BYRJMIXU.js → MV4GOTGG.js} +1 -1
  50. package/dist/cdn/NE2LIVPM.js +2 -0
  51. package/dist/cdn/{FTTD7LG7.js → O23HS34R.js} +1 -1
  52. package/dist/cdn/{NNCCPCL2.js → ONW2IT27.js} +1 -1
  53. package/dist/cdn/{PENUTMVD.js → OVXUFZCS.js} +1 -1
  54. package/dist/cdn/{3QSV7I2J.js → PQDWXZQQ.js} +1 -1
  55. package/dist/cdn/{NI5E2OS4.js → QNW7XSUO.js} +1 -1
  56. package/dist/cdn/{ZOOL6KEW.js → QXDNKTZG.js} +1 -1
  57. package/dist/cdn/{HPJM5ZOD.js → S6P4Y54X.js} +1 -1
  58. package/dist/cdn/SAQBQSQJ.js +2 -0
  59. package/dist/cdn/{4QQPANET.js → SZ5CW7OV.js} +1 -1
  60. package/dist/cdn/{ZXW6JPMX.js → T34EUD7U.js} +1 -1
  61. package/dist/cdn/T7I3TS7D.js +2 -0
  62. package/dist/cdn/{PO2ZDNTQ.js → UELAD6BI.js} +1 -1
  63. package/dist/cdn/{JQ7S563J.js → UQ2QHPXB.js} +1 -1
  64. package/dist/cdn/{SZHJZL2A.js → URI7A66F.js} +1 -1
  65. package/dist/cdn/{STJ2HTKL.js → V7YFMMPW.js} +1 -1
  66. package/dist/cdn/{T3VRQEKN.js → VTVZQCHN.js} +1 -1
  67. package/dist/cdn/{S2G75NCQ.js → VWLVU22M.js} +1 -1
  68. package/dist/cdn/{DPICOEXC.js → WAZUL35Q.js} +1 -1
  69. package/dist/cdn/{HI7Z5QTR.js → WSU3OSWJ.js} +1 -1
  70. package/dist/cdn/{BG65SP3R.js → X25OSCFT.js} +1 -1
  71. package/dist/cdn/{X2R5WPB4.js → XXMGWWQ4.js} +1 -1
  72. package/dist/cdn/{7QDL4TE3.js → Y5TN6VKQ.js} +2 -2
  73. package/dist/cdn/{V6MI3KKW.js → Y6NNKV6H.js} +1 -1
  74. package/dist/cdn/{7SE3B7E2.js → Y6UMC7NU.js} +1 -1
  75. package/dist/cdn/{WGGNHZDW.js → Y6WT7UDU.js} +1 -1
  76. package/dist/cdn/{LGS2QMGB.js → YQN5N3XC.js} +1 -1
  77. package/dist/cdn/{HQX6SMWC.js → YWFQXN7J.js} +1 -1
  78. package/dist/cdn/{JTO6MPTF.js → ZDDZVKMH.js} +1 -1
  79. package/dist/cdn/{LQKGTJZ6.js → ZDJAMFJK.js} +1 -1
  80. package/dist/cdn/{POB26WCE.js → ZMS2AX7K.js} +1 -1
  81. package/dist/cdn/{LE4F6FBR.js → ZPZQIWBB.js} +1 -1
  82. package/dist/cdn/{BIUADXHB.js → ZUVDEUDH.js} +1 -1
  83. package/dist/cdn/assets/charts-config-general/t9n/messages.en.json +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/model/shared/setup-utils.js +1 -1
  86. package/dist/chunks/box-plot-data.js +2 -2
  87. package/dist/chunks/box-plot-model.js +1 -1
  88. package/dist/chunks/chart-ui-utils.js +13 -13
  89. package/dist/chunks/class-breaks.js +1 -1
  90. package/dist/chunks/combo-bar-line-chart-model.js +7 -7
  91. package/dist/chunks/data-labels-visibility.js +2 -2
  92. package/dist/chunks/data.js +12 -12
  93. package/dist/chunks/histogram-data.js +1 -1
  94. package/dist/chunks/index.js +1167 -1119
  95. package/dist/chunks/index4.js +7 -7
  96. package/dist/chunks/model-setter.js +3 -3
  97. package/dist/chunks/model-with-y-guides.js +1 -1
  98. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  99. package/dist/chunks/pie-chart-model.js +1 -1
  100. package/dist/chunks/rounded-corners.js +1 -1
  101. package/dist/chunks/scatterplot-model.js +6 -6
  102. package/dist/chunks/serial-chart-data.js +701 -708
  103. package/dist/chunks/serial-chart-model.js +15 -15
  104. package/dist/chunks/utils.js +6 -6
  105. package/dist/chunks/utils2.js +1 -1
  106. package/dist/chunks/web-component-utils.js +7 -7
  107. package/dist/chunks/x-bounds.js +44 -42
  108. package/dist/components/arcgis-chart/customElement.js +3085 -3010
  109. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  110. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +52 -47
  111. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  112. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +10 -7
  114. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  115. package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
  116. package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
  117. package/dist/components/arcgis-charts-config-guide/customElement.js +21 -21
  118. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  119. package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
  120. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  121. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +41 -39
  122. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  123. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
  124. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  125. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  126. package/dist/docs/api.json +1 -1
  127. package/dist/docs/docs.json +1 -1
  128. package/dist/docs/web-types.json +1 -1
  129. package/dist/index.js +351 -347
  130. package/dist/model/mixins/model-with-guides.d.ts +2 -2
  131. package/dist/utils/chart-config/converter/index.js +20 -20
  132. package/dist/utils/data/index.d.ts +47 -1
  133. package/package.json +5 -5
  134. package/dist/cdn/27DMKFXK.js +0 -2
  135. package/dist/cdn/7DMHLVYX.js +0 -2
  136. package/dist/cdn/FVYM4LYH.js +0 -2
  137. package/dist/cdn/WQ5MRC4U.js +0 -2
  138. package/dist/cdn/YM3BNPLM.js +0 -2
  139. package/dist/cdn/ZDQWQTZE.js +0 -2
  140. package/dist/cdn/ZYWOR5AX.js +0 -2
@@ -1,208 +1,208 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { substitute as M } from "@arcgis/core/intl.js";
3
- import { cloneDeep as J, memoize as Ye, isEmpty as Xe } from "lodash-es";
4
- import { S as oe } from "./common.js";
5
- import { s as N, u as Y, a as Ie, g as ye, b as Le, c as $e, d as He, e as pe } from "./utils.js";
6
- import { Y as L, aO as X, bj as Ue, bO as je, bP as Ze, bD as De, f as Ke, p as ee, W as _e, V as Qe, bQ as ze, O as me, aX as Ge, bR as Je, N as et, t as tt, bS as st, aP as it, Q as at, bT as rt, _ as nt, bx as ot, bU as lt, bV as fe, bW as ct, bX as ut, bY as dt, P as yt, bZ as Se, b_ as _, bF as mt, aQ as q, aW as Q, M as gt, r as j, a1 as Oe, b$ as W, bB as U, c0 as pt, c1 as ft, c2 as V, c3 as k, c4 as Fe, bC as xe } from "./index.js";
7
- import { a as E, s as ge, g as te, b as he, c as St } from "./data.js";
8
- import { a as T, d as I, f as Ft, l as R, t as D, h as $, g as xt, b as ht, e as le } from "./chart-object-literals.js";
9
- import { d as Ne, b as Tt } from "./rest-js-object-literals.js";
10
- import { i as se } from "./index4.js";
11
- import { q as Bt, W as z, X as ce, H as Ct, Y as bt, Z as At, _ as vt, $ as It, k as Lt } from "./index3.js";
12
- import { a as w, C as H, b as P } from "./index2.js";
13
- import { g as Ve, s as Dt } from "./series-types.js";
14
- import { C as Ot, m as Nt } from "./model-setter.js";
15
- import { convertChartSpec as Vt } from "../utils/chart-config/converter/index.js";
16
- import { i as ue, h as kt } from "./type-guards.js";
17
- import { g as ie } from "./utils2.js";
18
- import { b as qt, g as Rt } from "./series-length.js";
19
- const Ds = (s) => {
3
+ import { cloneDeep as te, memoize as $e, isEmpty as He, isEqual as Ue } from "lodash-es";
4
+ import { S as ce } from "./common.js";
5
+ import { Y as L, aO as X, bm as je, bR as Ze, bS as _e, bG as De, f as Ke, p as ie, W as Qe, V as ze, bT as Ge, O as ge, a_ as Je, bU as et, N as tt, t as it, bV as st, aP as at, Q as rt, bW as nt, _ as ot, bA as lt, bX as ct, bY as Se, bZ as ut, b_ as dt, b$ as yt, P as mt, c0 as Fe, c1 as Q, bI as gt, aQ as k, aZ as z, M as pt, r as Z, a1 as Ne, c2 as Y, bE as j, c3 as ft, c4 as St, c5 as O, c6 as V, c7 as he, bF as Te } from "./index.js";
6
+ import { u as W, s as Oe, g as pe, a as Ve, b as Ft, c as ht, d as G, e as xe } from "./utils.js";
7
+ import { a as w, s as fe, g as se, b as Be, c as Tt } from "./data.js";
8
+ import { a as x, d as I, f as xt, l as q, t as N, h as $, g as Bt, b as Ct, e as ue } from "./chart-object-literals.js";
9
+ import { d as ke, b as bt } from "./rest-js-object-literals.js";
10
+ import { i as ae } from "./index4.js";
11
+ import { q as At, W as J, X as de, H as vt, Y as It, Z as Lt, _ as Dt, $ as Nt, k as Ot } from "./index3.js";
12
+ import { a as P, C as H, b as R } from "./index2.js";
13
+ import { g as qe, s as Vt } from "./series-types.js";
14
+ import { C as kt, m as qt } from "./model-setter.js";
15
+ import { convertChartSpec as Rt } from "../utils/chart-config/converter/index.js";
16
+ import { i as ye, h as Pt } from "./type-guards.js";
17
+ import { g as re } from "./utils2.js";
18
+ import { b as wt, g as Et } from "./series-length.js";
19
+ const qi = (i) => {
20
20
  let e;
21
- const t = s.series[0];
21
+ const t = i.series[0];
22
22
  return L(t) && (e = t.temporalBinning?.size), e;
23
- }, Pt = (s) => {
23
+ }, Mt = (i) => {
24
24
  let e;
25
- const t = s.series[0];
25
+ const t = i.series[0];
26
26
  return L(t) && (e = t.temporalBinning?.unit), e;
27
- }, Os = (s) => {
27
+ }, Ri = (i) => {
28
28
  let e;
29
- const t = s.series[0];
29
+ const t = i.series[0];
30
30
  return L(t) && (e = t.temporalBinning?.timeAggregationType), e;
31
- }, Ns = (s) => {
31
+ }, Pi = (i) => {
32
32
  let e;
33
- const t = s.series[0];
33
+ const t = i.series[0];
34
34
  return L(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, Vs = (s) => {
35
+ }, wi = (i) => {
36
36
  let e;
37
- const t = s.series[0];
37
+ const t = i.series[0];
38
38
  return L(t) && (e = t.temporalBinning?.nullPolicy), e;
39
- }, wt = (s, e) => {
39
+ }, Yt = (i, e) => {
40
40
  e?.series?.forEach((t) => {
41
- L(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
41
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = i);
42
42
  });
43
- }, Et = (s, e) => {
43
+ }, Wt = (i, e) => {
44
44
  e?.series?.forEach((t) => {
45
- L(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
46
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, ks = (s, e) => {
45
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = i);
46
+ });
47
+ }, Ei = (i, e) => {
48
48
  e.series?.forEach((t) => {
49
- L(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
50
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, qs = (s, e) => {
49
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = i);
50
+ });
51
+ }, Mi = (i, e) => {
52
52
  e.series?.forEach((t) => {
53
- L(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
54
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, Rs = (s, e) => {
53
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = i);
54
+ });
55
+ }, Yi = (i, e) => {
56
56
  e.series?.forEach((t) => {
57
- L(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
58
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, Mt = (s) => {
60
- wt(0, s);
57
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = i);
58
+ });
59
+ }, Xt = (i) => {
60
+ Yt(0, i);
61
61
  };
62
- var Wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Xt = (s, e, t, r) => {
63
- for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
64
- (n = s[a]) && (i = n(e, t, i) || i);
65
- return i && Wt(e, t, i), i;
62
+ var $t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Ut = (i, e, t, a) => {
63
+ for (var s = Ht(e, t), r = i.length - 1, n; r >= 0; r--)
64
+ (n = i[r]) && (s = n(e, t, s) || s);
65
+ return s && $t(e, t, s), s;
66
66
  };
67
- const $t = (s) => {
67
+ const jt = (i) => {
68
68
  let e;
69
- return X(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
70
- (t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
- }), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
- }, ke = (s, e) => {
73
- const t = Ue(s);
74
- X(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
75
- (r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
76
- }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
69
+ return X(i) ? e = i.outTimeZone : i?.series.forEach((t) => {
70
+ (t.type === x.BarSeries || t.type === x.RadarSeries || t.type === x.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
+ }), e || (e = i?.axes?.[0]?.valueFormat.type === x.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
+ }, Re = (i, e) => {
73
+ const t = je(i);
74
+ X(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
75
+ (a.type === x.BarSeries || a.type === x.RadarSeries || a.type === x.LineSeries) && (i ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
76
+ }), e?.axes?.[0]?.valueFormat.type === x.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
77
77
  };
78
- class Ht extends Ot {
78
+ class Zt extends kt {
79
79
  /**
80
80
  * Gets the time zone for the chart.
81
81
  */
82
82
  get timeZone() {
83
- return $t(this._config);
83
+ return jt(this._config);
84
84
  }
85
85
  set timeZone(e) {
86
- ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
86
+ Re(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
87
  }
88
88
  }
89
- Xt([
90
- Nt
91
- ], Ht.prototype, "timeZone");
92
- function Ps(s, e) {
89
+ Ut([
90
+ qt
91
+ ], Zt.prototype, "timeZone");
92
+ function Wi(i, e) {
93
93
  let t;
94
- return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
94
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
95
95
  }
96
- function ws(s, e) {
96
+ function Xi(i, e) {
97
97
  let t;
98
- return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
98
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = i)), t;
99
99
  }
100
- function Es(s, e) {
100
+ function $i(i, e) {
101
101
  let t;
102
- return e !== void 0 && (t = { ...e, rotated: s }), t;
102
+ return e !== void 0 && (t = { ...e, rotated: i }), t;
103
103
  }
104
- function Ut(s) {
104
+ function _t(i) {
105
105
  let e;
106
- return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
106
+ return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
107
107
  }
108
- function Ms(s, e) {
109
- return e != null || De(s);
108
+ function Hi(i, e) {
109
+ return e != null || De(i);
110
110
  }
111
- async function Ws(s) {
112
- const { config: e, layer: t, abortSignal: r } = s;
113
- let i = !1;
114
- return ue(t) || kt(e) ? e && ue(t) && (i = await Ze({ config: e, layer: t, abortSignal: r })) : i = !0, i;
111
+ async function Ui(i) {
112
+ const { config: e, layer: t, abortSignal: a } = i;
113
+ let s = !1;
114
+ return ye(t) || Pt(e) ? e && ye(t) && (s = await _e({ config: e, layer: t, abortSignal: a })) : s = !0, s;
115
115
  }
116
- async function jt(s) {
116
+ async function Kt(i) {
117
117
  const {
118
118
  queryObject: e,
119
119
  chartConfig: t,
120
- splitByField: r,
121
- errorStrings: i,
122
- abortSignal: a,
120
+ splitByField: a,
121
+ errorStrings: s,
122
+ abortSignal: r,
123
123
  runtimeDataFilters: n,
124
124
  ignoreViewExtent: o,
125
125
  setTimeBinningInfoWhenNotProvided: l,
126
126
  returnFeaturesExtent: c,
127
- returnStatisticsAggregatedIds: p,
127
+ returnStatisticsAggregatedIds: g,
128
128
  chartLimits: f
129
- } = s;
130
- let u = [], m;
131
- const d = J(t), y = d.series[0], g = rt({
129
+ } = i;
130
+ let p = [], u;
131
+ const d = te(t), y = d.series[0], m = nt({
132
132
  queryObject: e,
133
133
  chartConfig: d,
134
134
  runtimeDataFilters: n,
135
135
  ignoreViewExtent: o
136
136
  });
137
- if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), L(y) && nt({
138
- xAxisValueFormatType: ot(d),
137
+ if (m.outStatistics?.[0]?.outStatisticFieldName && (m.outStatistics[0].outStatisticFieldName = At.outStatistics.outStatisticFieldName), L(y) && ot({
138
+ xAxisValueFormatType: lt(d),
139
139
  setTimeBinningInfoWhenNotProvided: l,
140
140
  seriesConfig: y,
141
141
  queryObject: e
142
- }) && lt(r, e)) {
143
- const { temporalBinning: F, x } = y, { uniqueQuery: S } = fe({
142
+ }) && ct(a, e)) {
143
+ const { temporalBinning: F, x: S } = y, { uniqueQuery: h } = Se({
144
144
  chartConfig: d,
145
- queryConfig: g,
145
+ queryConfig: m,
146
146
  queryObject: e,
147
147
  setTimeBinningInfoWhenNotProvided: l,
148
148
  returnFeaturesExtent: c,
149
149
  chartLimits: f
150
- }), A = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
- m = await ct({
150
+ }), b = t.axes?.[0].valueFormat.type === x.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ u = await ut({
152
152
  queryObject: e,
153
- dateField: x,
154
- splitByField: r,
155
- queryConfig: S,
156
- axisTimeZone: A,
153
+ dateField: S,
154
+ splitByField: a,
155
+ queryConfig: h,
156
+ axisTimeZone: b,
157
157
  temporalBinning: F,
158
- returnStatisticsAggregatedIds: p,
159
- errorStrings: i,
160
- abortSignal: a
161
- }), u = Array.from(
158
+ returnStatisticsAggregatedIds: g,
159
+ errorStrings: s,
160
+ abortSignal: r
161
+ }), p = Array.from(
162
162
  new Set(
163
- m.flatMap((C) => {
164
- const { stackedAttributes: B } = C;
165
- let v = [];
166
- return B && (v = B.map((b) => b[r]).filter((b) => b !== void 0)), v;
163
+ u.flatMap((C) => {
164
+ const { stackedAttributes: T } = C;
165
+ let A = [];
166
+ return T && (A = T.map((v) => v[a]).filter((v) => v !== void 0)), A;
167
167
  })
168
168
  ).values()
169
169
  );
170
170
  } else {
171
- const { uniqueQuery: F } = fe({
171
+ const { uniqueQuery: F } = Se({
172
172
  chartConfig: d,
173
173
  queryObject: e,
174
- queryConfig: g,
174
+ queryConfig: m,
175
175
  setTimeBinningInfoWhenNotProvided: l,
176
176
  returnFeaturesExtent: c,
177
177
  chartLimits: f
178
- }), { elementCount: x } = await ut({
178
+ }), { elementCount: S } = await dt({
179
179
  chartConfig: d,
180
180
  queryObject: e,
181
- queryConfig: g,
181
+ queryConfig: m,
182
182
  behaviorAfterLimit: f?.behaviorAfterLimit,
183
183
  numberMaxOfFeaturesToFetch: F.num,
184
- abortSignal: a
184
+ abortSignal: r
185
185
  });
186
- m = await dt({
186
+ u = await yt({
187
187
  queryObject: e,
188
188
  queryConfig: F,
189
- featureCount: x,
190
- returnStatisticsAggregatedIds: p,
191
- errorStrings: i,
192
- abortSignal: a
193
- }), u = Array.from(
189
+ featureCount: S,
190
+ returnStatisticsAggregatedIds: g,
191
+ errorStrings: s,
192
+ abortSignal: r
193
+ }), p = Array.from(
194
194
  new Set(
195
- m.map((S) => S.attributes[r]).filter((S) => S !== void 0)
195
+ u.map((h) => h.attributes[a]).filter((h) => h !== void 0)
196
196
  ).values()
197
197
  );
198
198
  }
199
- return { allValues: u, preFetchedQueryResponse: m };
199
+ return { allValues: p, preFetchedQueryResponse: u };
200
200
  }
201
- function Zt(s, e) {
201
+ function Qt(i, e) {
202
202
  const t = /* @__PURE__ */ new Map();
203
- return s.series.forEach((r) => {
204
- let i = me({
205
- where: r.query?.where,
203
+ return i.series.forEach((a) => {
204
+ let s = ge({
205
+ where: a.query?.where,
206
206
  // normalize the value so it matches what we get from getAllValues()
207
207
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
208
208
  normalize: !0,
@@ -210,88 +210,88 @@ function Zt(s, e) {
210
210
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
211
211
  escape: !1
212
212
  });
213
- e && i !== null && (i = Number(i));
214
- const a = Ve([r]);
215
- a !== void 0 && t.set(a, [
216
- ...t.get(a) ?? [],
217
- i
213
+ e && s !== null && (s = Number(s));
214
+ const r = qe([a]);
215
+ r !== void 0 && t.set(r, [
216
+ ...t.get(r) ?? [],
217
+ s
218
218
  ]);
219
219
  }), t;
220
220
  }
221
- function Kt(s) {
222
- const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
223
- return Array.from(t.keys()).forEach((a) => {
224
- const n = t.get(a) ?? [];
221
+ function zt(i) {
222
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = i, s = /* @__PURE__ */ new Map();
223
+ return Array.from(t.keys()).forEach((r) => {
224
+ const n = t.get(r) ?? [];
225
225
  let o = [];
226
- r ? o = e : e.forEach((l) => {
226
+ a ? o = e : e.forEach((l) => {
227
227
  n.includes(l) || o.push(l);
228
- }), i.set(a, o);
229
- }), i;
228
+ }), s.set(r, o);
229
+ }), s;
230
230
  }
231
- function _t(s) {
232
- const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
231
+ function Gt(i) {
232
+ const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: s } = i, r = JSON.parse(
233
233
  JSON.stringify({
234
234
  ...e.series[0],
235
- ...i
235
+ ...s
236
236
  })
237
237
  );
238
- if (a.query) {
239
- if (t === null ? a.id = H.nullValue : t === "" ? a.id = H.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
240
- const o = a.id;
241
- a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
238
+ if (r.query) {
239
+ if (t === null ? r.id = H.nullValue : t === "" ? r.id = H.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
240
+ const o = r.id;
241
+ r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
242
242
  }
243
243
  const n = typeof t == "number" || t === null ? t : `'${t}'`;
244
- a.query.where = `${r}=${n}`;
244
+ r.query.where = `${a}=${n}`;
245
245
  }
246
- return a;
246
+ return r;
247
247
  }
248
- async function Qt(s) {
248
+ async function Jt(i) {
249
249
  const {
250
250
  updateSplitBySeries: e,
251
251
  config: t,
252
- queryObject: r,
253
- errorStrings: i,
254
- abortSignal: a,
252
+ queryObject: a,
253
+ errorStrings: s,
254
+ abortSignal: r,
255
255
  runtimeDataFilters: n,
256
256
  ignoreViewExtent: o,
257
257
  setTimeBinningInfoWhenNotProvided: l,
258
258
  returnFeaturesExtent: c,
259
- returnStatisticsAggregatedIds: p,
259
+ returnStatisticsAggregatedIds: g,
260
260
  chartLimits: f
261
- } = s, { seriesTemplate: u } = e ?? {};
262
- let m;
263
- if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
261
+ } = i, { seriesTemplate: p } = e ?? {};
262
+ let u;
263
+ if (a && !ye(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || p !== void 0) && e.addMissingSeries) {
264
264
  const d = t.series.length === 0;
265
- t.series.length === 0 && u !== void 0 && t.series.push(u);
266
- const y = ee(t.series);
267
- if (y === w.BoxPlotC5MonoFieldAndSplitBy || y === w.BoxPlotC6MultiFieldsAndSplitBy || y === w.BoxPlotC7MonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
268
- const g = et(t.series[0]?.query?.where), F = tt(r), x = st(g, F), S = x ? it(x) : !1, A = await jt({
269
- queryObject: r,
265
+ t.series.length === 0 && p !== void 0 && t.series.push(p);
266
+ const y = ie(t.series);
267
+ if (y === P.BoxPlotC5MonoFieldAndSplitBy || y === P.BoxPlotC6MultiFieldsAndSplitBy || y === P.BoxPlotC7MonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
268
+ const m = tt(t.series[0]?.query?.where), F = it(a), S = st(m, F), h = S ? at(S) : !1, b = await Kt({
269
+ queryObject: a,
270
270
  chartConfig: t,
271
- splitByField: g,
272
- abortSignal: a,
271
+ splitByField: m,
272
+ abortSignal: r,
273
273
  runtimeDataFilters: n,
274
274
  ignoreViewExtent: o,
275
275
  setTimeBinningInfoWhenNotProvided: l,
276
276
  returnFeaturesExtent: c,
277
- returnStatisticsAggregatedIds: p,
277
+ returnStatisticsAggregatedIds: g,
278
278
  chartLimits: f,
279
- errorStrings: i
280
- }), { allValues: C } = A;
281
- if ({ preFetchedQueryResponse: m } = A, C.length > 0) {
282
- const B = Zt(t, S), v = Kt({
279
+ errorStrings: s
280
+ }), { allValues: C } = b;
281
+ if ({ preFetchedQueryResponse: u } = b, C.length > 0) {
282
+ const T = Qt(t, h), A = zt({
283
283
  allValues: C,
284
- configUniqueValuesPerSeriesType: B,
284
+ configUniqueValuesPerSeriesType: T,
285
285
  initialConfigWasEmpty: d
286
286
  });
287
- Array.from(v.keys()).forEach((b) => {
288
- (v.get(b) ?? []).forEach((O) => {
287
+ Array.from(A.keys()).forEach((v) => {
288
+ (A.get(v) ?? []).forEach((D) => {
289
289
  t.series.push(
290
- _t({
290
+ Gt({
291
291
  chartConfig: t,
292
- seriesTemplate: u,
293
- missingValue: O,
294
- splitByField: g
292
+ seriesTemplate: p,
293
+ missingValue: D,
294
+ splitByField: m
295
295
  })
296
296
  );
297
297
  }), d && t.series.shift();
@@ -299,151 +299,151 @@ async function Qt(s) {
299
299
  }
300
300
  }
301
301
  }
302
- return m;
302
+ return u;
303
303
  }
304
- function zt(s, e) {
305
- e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
304
+ function ei(i, e) {
305
+ e && !De(e) && (e = et({ chartConfig: e, queryObject: i }));
306
306
  }
307
- async function Ys(s) {
307
+ async function ji(i) {
308
308
  const {
309
309
  configToAlter: e,
310
310
  layer: t,
311
- addMissingSeries: r,
312
- updateSplitBySeries: i,
313
- chartContainer: a,
311
+ addMissingSeries: a,
312
+ updateSplitBySeries: s,
313
+ chartContainer: r,
314
314
  queryObject: n,
315
315
  abortSignal: o,
316
316
  runtimeDataFilters: l,
317
317
  ignoreViewExtent: c,
318
- setTimeBinningInfoWhenNotProvided: p,
318
+ setTimeBinningInfoWhenNotProvided: g,
319
319
  returnFeaturesExtent: f,
320
- returnStatisticsAggregatedIds: u,
321
- chartLimits: m,
320
+ returnStatisticsAggregatedIds: p,
321
+ chartLimits: u,
322
322
  timeZone: d,
323
323
  errorStrings: y
324
- } = s;
325
- let g = e, F;
326
- return g && (zt(t, g), g = await Vt(g, t, void 0, o), r && n && (F = await Qt({
327
- updateSplitBySeries: i,
328
- config: g,
324
+ } = i;
325
+ let m = e, F;
326
+ return m && (ei(t, m), m = await Rt(m, t, void 0, o), a && n && (F = await Jt({
327
+ updateSplitBySeries: s,
328
+ config: m,
329
329
  queryObject: n,
330
330
  errorStrings: y,
331
331
  abortSignal: o,
332
332
  runtimeDataFilters: l,
333
333
  ignoreViewExtent: c,
334
- setTimeBinningInfoWhenNotProvided: p,
334
+ setTimeBinningInfoWhenNotProvided: g,
335
335
  returnFeaturesExtent: f,
336
- returnStatisticsAggregatedIds: u,
337
- chartLimits: m
338
- })), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
336
+ returnStatisticsAggregatedIds: p,
337
+ chartLimits: u
338
+ })), m = Ze(m, r), Re(d, m)), { alteredConfig: m, preFetchedQueryResponse: F };
339
339
  }
340
- function Gt(s, e) {
340
+ function ti(i, e) {
341
341
  let t = !1;
342
342
  if (e !== void 0) {
343
- const r = at({ key: yt.Average, splitBy: e });
344
- t = Number.isFinite(s[r]);
343
+ const a = rt({ key: mt.Average, splitBy: e });
344
+ t = Number.isFinite(i[a]);
345
345
  }
346
346
  return t;
347
347
  }
348
- function Xs(s) {
349
- const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
348
+ function Zi(i) {
349
+ const { data: e, config: t, showEmptySeries: a } = i, s = t.series.length, r = te(t);
350
350
  let n = !1;
351
- if (!r && i > 1 && e) {
352
- const o = Ke(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
351
+ if (!a && s > 1 && e) {
352
+ const o = Ke(e), l = qe(t?.series), c = ie(t?.series), g = /* @__PURE__ */ new Set();
353
353
  switch (l) {
354
- case T.ComboLineAndBarSeries:
355
- case T.BarSeries:
356
- case T.RadarSeries:
357
- case T.LineSeries: {
358
- a.series.forEach((u) => {
354
+ case x.ComboLineAndBarSeries:
355
+ case x.BarSeries:
356
+ case x.RadarSeries:
357
+ case x.LineSeries: {
358
+ r.series.forEach((p) => {
359
359
  if (Array.isArray(o)) {
360
- let m = "";
361
- "y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
362
- (y) => Ge({
360
+ let u = "";
361
+ "y" in p && (u = Array.isArray(p.y) ? p.y[0] : p.y, c === P.BarAndLineSplitByNoAggregation && (u = `${u}_${ge({ where: p.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
362
+ (y) => Je({
363
363
  dataItem: y,
364
- x: u.x,
365
- y: m,
364
+ x: p.x,
365
+ y: u,
366
366
  aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
367
367
  })
368
- ) && p.add(u));
368
+ ) && g.add(p));
369
369
  }
370
370
  });
371
371
  break;
372
372
  }
373
- case T.BoxPlotSeries: {
374
- if (_e(t)) {
375
- const u = Qe(t);
376
- t.series.forEach((m) => {
373
+ case x.BoxPlotSeries: {
374
+ if (Qe(t)) {
375
+ const p = ze(t);
376
+ t.series.forEach((u) => {
377
377
  let d, y;
378
- m.type === T.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
379
- (g) => ze({
380
- dataItem: g,
381
- splitBy: m.query?.where,
382
- showOutliers: u
378
+ u.type === x.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
379
+ (m) => Ge({
380
+ dataItem: m,
381
+ splitBy: u.query?.where,
382
+ showOutliers: p
383
383
  })
384
- )) : m.type === T.LineSeries && (d = e.meanLines, y = d?.some(
385
- (g) => Gt(g, m.query?.where)
386
- )), y && p.add(m);
384
+ )) : u.type === x.LineSeries && (d = e.meanLines, y = d?.some(
385
+ (m) => ti(m, u.query?.where)
386
+ )), y && g.add(u);
387
387
  });
388
388
  }
389
389
  break;
390
390
  }
391
391
  }
392
- const f = Array.from(p.values());
393
- n = f.length > 0 && f.length < i, n && (a.series = f);
392
+ const f = Array.from(g.values());
393
+ n = f.length > 0 && f.length < s, n && (r.series = f);
394
394
  }
395
- return { seriesFilteredOut: n, filteredConfig: a };
395
+ return { seriesFilteredOut: n, filteredConfig: r };
396
396
  }
397
- const $s = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
398
- s.hideEmptyRowsAndColumns = e;
399
- }, Us = (s, e) => {
400
- const t = s.series[0];
397
+ const _i = (i) => i.hideEmptyRowsAndColumns, Ki = (i, e) => {
398
+ i.hideEmptyRowsAndColumns = e;
399
+ }, Qi = (i, e) => {
400
+ const t = i.series[0];
401
401
  t.heatRulesType = e;
402
- }, js = (s) => s.series[0].heatRulesType, Zs = (s, e) => {
403
- const t = s.series[0];
402
+ }, zi = (i) => i.series[0].heatRulesType, Gi = (i, e) => {
403
+ const t = i.series[0];
404
404
  t.gradientRules = e;
405
- }, Ks = (s) => s.series[0].gradientRules, _s = (s) => {
406
- const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
405
+ }, Ji = (i) => i.series[0].gradientRules, es = (i) => {
406
+ const { yField: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r } = a, n = re(1, t), o = ii(t), l = ae(t), c = t.series[0];
407
407
  if (typeof e == "string" && o !== e && c) {
408
- if (c.y = e, Ut(t), o === n || l) {
409
- const p = P(a, e);
410
- Y(t, 1, p);
408
+ if (c.y = e, _t(t), o === n || l) {
409
+ const g = R(r, e);
410
+ W(t, 1, g);
411
411
  }
412
- qe({ commonStrings: i, config: t, layerInfo: r });
412
+ Pe({ commonStrings: s, config: t, layerInfo: a });
413
413
  }
414
- }, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
415
- const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
416
- if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
417
- const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
- Y(t, 0, a);
414
+ }, ii = (i) => i.series[0].y ?? "", ts = (i) => {
415
+ const { binning: e, config: t, commonStrings: a } = i, s = t.series[0];
416
+ if (s.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
417
+ const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
+ W(t, 0, r);
419
419
  }
420
- G({ axisIndex: 0, commonStrings: r, config: t });
421
- }, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
422
- const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
423
- if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
424
- const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
425
- Y(t, 1, a);
420
+ ee({ axisIndex: 0, commonStrings: a, config: t });
421
+ }, si = (i) => i.series[0].xTemporalBinning, is = (i) => {
422
+ const { binning: e, config: t, commonStrings: a } = i, s = t.series[0];
423
+ if (s.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
424
+ const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
425
+ W(t, 1, r);
426
426
  }
427
- G({ axisIndex: 1, commonStrings: r, config: t });
428
- }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
427
+ ee({ axisIndex: 1, commonStrings: a, config: t });
428
+ }, ai = (i) => i.series[0].yTemporalBinning, ri = (i, e) => {
429
429
  e.orderOptions ??= {};
430
- const t = e.axes?.[0]?.valueFormat?.type === "category" ? D.Category : D.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? D.Category : D.YValue, a = de(e)[1], n = {
430
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = me(e)[0], s = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = me(e)[1], n = {
431
431
  ...e.orderOptions.data ?? {},
432
- orderType: D.MultiAxes
432
+ orderType: N.MultiAxes
433
433
  };
434
- r === oe.customSort && t === D.Category && (n.orderByX = [...s]), a === oe.customSort && i === D.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
435
- }, Gs = (s, e) => {
434
+ a === ce.customSort && t === N.Category && (n.orderByX = [...i]), r === ce.customSort && s === N.Category && (n.orderByY = [...i]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
435
+ }, ss = (i, e) => {
436
436
  const t = e.series[0];
437
- t.gridLine && (t.gridLine.width = s);
438
- }, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
439
- const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
440
- t.gridLine && r && (t.gridLine.color = s);
441
- }, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
437
+ t.gridLine && (t.gridLine.width = i);
438
+ }, as = (i) => i.series[0].gridLine?.width, rs = (i, e) => {
439
+ const t = e.series[0], a = i?.length === 4 && i.every((s) => typeof s == "number");
440
+ t.gridLine && a && (t.gridLine.color = i);
441
+ }, ns = (i) => i.series[0].gridLine?.color, os = (i, e) => {
442
442
  const t = e.legend;
443
- t && (t.position = s);
444
- }, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
445
- const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
446
- a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
443
+ t && (t.position = i);
444
+ }, ls = (i) => i.legend?.position ?? xt.Bottom, cs = (i) => i.series[0].query?.outStatistics?.[0]?.onStatisticField, us = (i) => {
445
+ const { field: e, config: t, layerInfo: a, commonStrings: s } = i, r = t.series[0].query?.outStatistics?.[0], n = le(t, a, s);
446
+ r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
447
447
  outStatistics: [
448
448
  {
449
449
  onStatisticField: e,
@@ -451,146 +451,146 @@ const $s = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
451
451
  statisticType: I.Count
452
452
  }
453
453
  ]
454
- }, n && t.title && (t.title.content.text = Z(t, r, i));
455
- }, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, oi = (s) => {
456
- const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
457
- a && e !== I.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === I.Count || e === I.Sum) && is($.Zero, t), n && t.title && (t.title.content.text = Z(t, r, i));
458
- }, li = (s) => s.nullPolicy, is = (s, e) => {
459
- e.nullPolicy = s;
460
- }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
461
- e.series[0].emptyCells = s;
462
- }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
463
- e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
464
- }, mi = (s) => s.includeLeapDay, gi = (s, e) => {
465
- e.includeLeapDay = s;
466
- }, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
467
- e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
454
+ }, n && t.title && (t.title.content.text = _(t, a, s));
455
+ }, ds = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ys = (i) => {
456
+ const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, r = t.series[0]?.query?.outStatistics?.[0], n = le(t, a, s);
457
+ r && e !== I.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === I.Count || e === I.Sum) && ni($.Zero, t), n && t.title && (t.title.content.text = _(t, a, s));
458
+ }, ms = (i) => i.nullPolicy, ni = (i, e) => {
459
+ e.nullPolicy = i;
460
+ }, gs = (i) => i.series[0].emptyCells, ps = (i, e) => {
461
+ e.series[0].emptyCells = i;
462
+ }, fs = (i) => i.series[0].emptyCells?.text, Ss = (i, e) => {
463
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = i : e.series[0].emptyCells = { text: i };
464
+ }, Fs = (i) => i.includeLeapDay, hs = (i, e) => {
465
+ e.includeLeapDay = i;
466
+ }, Ts = (i) => i.series[0].emptyCells?.symbol, xs = (i, e) => {
467
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = i : e.series[0].emptyCells = { symbol: i };
468
468
  };
469
- function Si(s) {
470
- return s.viewType;
469
+ function Bs(i) {
470
+ return i.viewType;
471
471
  }
472
- function Fi(s, e) {
473
- mt(e) || (e.viewType = s);
472
+ function Cs(i, e) {
473
+ gt(e) || (e.viewType = i);
474
474
  }
475
- function xi(s) {
476
- return s.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
475
+ function bs(i) {
476
+ return i.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
477
477
  }
478
- function hi(s, e) {
479
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
480
- breaksCount: s ?? H.classBreaks.breaksCount
478
+ function As(i, e) {
479
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = i ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
480
+ breaksCount: i ?? H.classBreaks.breaksCount
481
481
  };
482
482
  }
483
- function Ti(s) {
484
- return s.series[0].classBreaksRules?.classificationMethod;
483
+ function vs(i) {
484
+ return i.series[0].classBreaksRules?.classificationMethod;
485
485
  }
486
- function Bi(s, e) {
487
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
488
- classificationMethod: s
486
+ function Is(i, e) {
487
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = i : e.series[0].classBreaksRules = {
488
+ classificationMethod: i
489
489
  }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
490
490
  }
491
- function Ci(s, e) {
492
- e.firstDayOfWeek = s;
491
+ function Ls(i, e) {
492
+ e.firstDayOfWeek = i;
493
493
  }
494
- function bi(s) {
495
- return s.firstDayOfWeek;
494
+ function Ds(i) {
495
+ return i.firstDayOfWeek;
496
496
  }
497
- function Ai(s) {
498
- return s.series[0].classBreaksRules?.colorRampInfo?.name;
497
+ function Ns(i) {
498
+ return i.series[0].classBreaksRules?.colorRampInfo?.name;
499
499
  }
500
- function vi(s, e) {
500
+ function Os(i, e) {
501
501
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
502
502
  ...e.series[0].classBreaksRules.colorRampInfo,
503
- name: s
503
+ name: i
504
504
  } : e.series[0].classBreaksRules = {
505
505
  colorRampInfo: {
506
- name: s,
506
+ name: i,
507
507
  flipped: !1
508
508
  }
509
509
  };
510
510
  }
511
- function Ii(s) {
512
- return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
511
+ function Vs(i) {
512
+ return i.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
513
513
  }
514
- function Li(s, e) {
514
+ function ks(i, e) {
515
515
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
516
516
  ...e.series[0].classBreaksRules.colorRampInfo,
517
- flipped: s
517
+ flipped: i
518
518
  } : e.series[0].classBreaksRules = {
519
519
  colorRampInfo: {
520
- flipped: s
520
+ flipped: i
521
521
  }
522
522
  };
523
523
  }
524
- const as = [
525
- R.DayOfMonth,
526
- R.MonthOfYear
527
- ], Te = (s) => {
524
+ const oi = [
525
+ q.DayOfMonth,
526
+ q.MonthOfYear
527
+ ], Ce = (i) => {
528
528
  let e;
529
- return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
530
- }, Be = (s) => q(s) || Q(s), Ce = (s) => {
531
- const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
532
- i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
533
- }, rs = (s, e) => {
529
+ return Q(i) ? e = de() : (k(i) || z(i)) && (e = J()), e;
530
+ }, be = (i) => k(i) || z(i), Ae = (i) => {
531
+ const { axisIndex: e, commonStrings: t, config: a, valueFormat: s } = i, r = a.axes?.[e]?.valueFormat;
532
+ s !== void 0 && r?.type !== s.type && Oe({ config: a, commonStrings: t, valueFormat: s, axisIndex: e });
533
+ }, li = (i, e) => {
534
534
  let t;
535
- return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
536
- }, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
537
- let t = as[s];
538
- return s === 0 && e?.unit === R.DayOfWeek ? t = R.HourOfDay : s === 1 && e?.unit === R.HourOfDay && (t = R.DayOfWeek), {
539
- type: T.CalendarDateParts,
535
+ return e === 0 ? t = i.series[0]?.xTemporalBinning : e === 1 && (t = i.series[0]?.yTemporalBinning), t;
536
+ }, ve = (i, e) => i.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ie = (i, e) => {
537
+ let t = oi[i];
538
+ return i === 0 && e?.unit === q.DayOfWeek ? t = q.HourOfDay : i === 1 && e?.unit === q.HourOfDay && (t = q.DayOfWeek), {
539
+ type: x.CalendarDateParts,
540
540
  unit: t
541
541
  };
542
- }, ns = (s) => {
542
+ }, ci = (i) => {
543
543
  let e = {};
544
- switch (s.unit) {
545
- case R.DayOfMonth:
544
+ switch (i.unit) {
545
+ case q.DayOfMonth:
546
546
  e = { day: "2-digit" };
547
547
  break;
548
- case R.DayOfWeek:
548
+ case q.DayOfWeek:
549
549
  e = { weekday: "short" };
550
550
  break;
551
- case R.HourOfDay:
551
+ case q.HourOfDay:
552
552
  e = { hour: "numeric", hour12: !1 };
553
553
  break;
554
- case R.MonthOfYear:
554
+ case q.MonthOfYear:
555
555
  e = { month: "short" };
556
556
  break;
557
557
  default:
558
- e = z().intlOptions;
558
+ e = J().intlOptions;
559
559
  break;
560
560
  }
561
561
  return {
562
- type: T.DateAxisFormat,
562
+ type: x.DateAxisFormat,
563
563
  intlOptions: e
564
564
  };
565
- }, ve = (s) => {
566
- const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = P(n.layerFieldsInfo, a);
567
- e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && Y(i, e, be(r, t.unit));
568
- }, G = (s) => {
569
- const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
570
- Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
571
- }, qe = (s) => {
572
- const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), c = Te(o), p = Be(n) && Be(o), f = _(n) && _(o);
573
- if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
574
- const u = es(t) === void 0, m = ts(t) === void 0;
575
- u && (ve({
565
+ }, Le = (i) => {
566
+ const { axisIndex: e, binning: t, commonStrings: a, config: s, fieldName: r, layerInfo: n } = i, o = s.series[0], l = re(e, s), c = R(n.layerFieldsInfo, r);
567
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === ve(a, t.unit) || l === a.xAxis) && W(s, e, ve(a, t.unit));
568
+ }, ee = (i) => {
569
+ const { axisIndex: e, commonStrings: t, config: a } = i, s = li(a, e), r = s ? ci(s) : void 0;
570
+ Oe({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
571
+ }, Pe = (i) => {
572
+ const { commonStrings: e, config: t, layerInfo: a } = i, s = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, s), o = Fe(a.layerFieldsInfo, r), l = Ce(n), c = Ce(o), g = be(n) && be(o), f = Q(n) && Q(o);
573
+ if (Ae({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ae({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), g) {
574
+ const p = si(t) === void 0, u = ai(t) === void 0;
575
+ p && (Le({
576
576
  axisIndex: 0,
577
- binning: Ae(0, t.series[0].yTemporalBinning),
577
+ binning: Ie(0, t.series[0].yTemporalBinning),
578
578
  commonStrings: e,
579
579
  config: t,
580
- fieldName: i,
581
- layerInfo: r
582
- }), G({
580
+ fieldName: s,
581
+ layerInfo: a
582
+ }), ee({
583
583
  axisIndex: 0,
584
584
  commonStrings: e,
585
585
  config: t
586
- })), m && (ve({
586
+ })), u && (Le({
587
587
  axisIndex: 1,
588
- binning: Ae(1, t.series[0].xTemporalBinning),
588
+ binning: Ie(1, t.series[0].xTemporalBinning),
589
589
  commonStrings: e,
590
590
  config: t,
591
- fieldName: a,
592
- layerInfo: r
593
- }), G({
591
+ fieldName: r,
592
+ layerInfo: a
593
+ }), ee({
594
594
  axisIndex: 1,
595
595
  commonStrings: e,
596
596
  config: t
@@ -598,328 +598,333 @@ const as = [
598
598
  }
599
599
  f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
600
600
  };
601
- function os(s) {
601
+ function ui(i) {
602
602
  const e = {};
603
- return s.series.forEach((t) => {
604
- Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
603
+ return i.series.forEach((t) => {
604
+ Vt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === x.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
605
605
  }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
606
606
  }
607
- function ae(s) {
608
- const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
607
+ function ne(i) {
608
+ const { seriesIndex: e, xAxisField: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, o = Z(r?.layer).idField;
609
609
  let l;
610
- const c = i.series[e ?? 0];
611
- let p = !1, f = !1, u = !1;
610
+ const c = s.series[e ?? 0];
611
+ let g = !1, f = !1, p = !1;
612
612
  if (c === void 0) {
613
- const B = i.series;
614
- p = B.slice(0, e).every((v) => V(v)), f = B.slice(0, e).every((v) => k(v)), u = B.slice(0, e).every((v) => Fe(v));
613
+ const T = s.series;
614
+ g = T.slice(0, e).every((A) => O(A)), f = T.slice(0, e).every((A) => V(A)), p = T.slice(0, e).every((A) => he(A));
615
615
  } else
616
- p = V(c), f = k(c), u = Fe(c);
617
- p ? l = bt({
616
+ g = O(c), f = V(c), p = he(c);
617
+ g ? l = It({
618
618
  commonStrings: n,
619
619
  seriesIndex: e,
620
620
  objectIDField: o
621
- }) : f ? l = At({
621
+ }) : f ? l = Lt({
622
622
  commonStrings: n,
623
623
  seriesIndex: e,
624
624
  objectIDField: o
625
- }) : u ? l = vt(n, o) : l = It({
625
+ }) : p ? l = Dt(n, o) : l = Nt({
626
626
  seriesIndex: e,
627
627
  objectIDField: o,
628
628
  commonStrings: n
629
629
  });
630
- const m = i.series[0]?.dataLabels, d = "nullCategory" in i.series[0] ? os(i) : void 0, y = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, g = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
630
+ const u = s.series[0]?.dataLabels, d = "nullCategory" in s.series[0] ? ui(s) : void 0, y = "binTemporalData" in s.series[0] ? s.series[0].binTemporalData : void 0, m = "classBreakRules" in s.series[0] ? s.series[0].classBreakRules : void 0, F = "xTemporalBinning" in s.series[0] ? s.series[0].xTemporalBinning : void 0, S = "yTemporalBinning" in s.series[0] ? s.series[0].yTemporalBinning : void 0, h = "emptyCells" in s.series[0] ? s.series[0].emptyCells : void 0, b = s.series[0].query && "fetchNullValues" in s.series[0].query ? s.series[0].query?.fetchNullValues : void 0, C = {
631
631
  ...l,
632
632
  x: t,
633
633
  y: "",
634
634
  dataLabels: {
635
635
  ...l.dataLabels,
636
- type: l.dataLabels?.type ?? T.Text,
637
- content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
638
- visible: m?.visible ?? !1
636
+ type: l.dataLabels?.type ?? x.Text,
637
+ content: { ...l.dataLabels?.content, ...u?.content, type: bt.TS },
638
+ visible: u?.visible ?? !1
639
639
  },
640
640
  ...d !== void 0 ? { nullCategory: d } : {},
641
641
  ...y !== void 0 ? { binTemporalData: y } : {},
642
- ...g !== void 0 ? { classBreakRules: g } : {},
642
+ ...m !== void 0 ? { classBreakRules: m } : {},
643
643
  ...F !== void 0 ? { xTemporalBinning: F } : {},
644
- ...x !== void 0 ? { yTemporalBinning: x } : {},
645
- ...S !== void 0 ? { emptyCells: S } : {}
644
+ ...S !== void 0 ? { yTemporalBinning: S } : {},
645
+ ...h !== void 0 ? { emptyCells: h } : {}
646
646
  };
647
647
  if (C.query = {
648
648
  groupByFieldsForStatistics: [t],
649
- ...A !== void 0 ? { fetchNullValues: A } : {}
650
- }, r !== I.NoAggregation && o !== void 0) {
651
- const B = `${r}_${o}_0`.toUpperCase();
652
- C.y = B, C.query.outStatistics = [
649
+ ...b !== void 0 ? { fetchNullValues: b } : {}
650
+ }, a !== I.NoAggregation && o !== void 0) {
651
+ const T = `${a}_${o}_0`.toUpperCase();
652
+ C.y = T, C.query.outStatistics = [
653
653
  {
654
- statisticType: r,
654
+ statisticType: a,
655
655
  onStatisticField: o,
656
- outStatisticFieldName: B
656
+ outStatisticFieldName: T
657
657
  }
658
658
  ];
659
659
  }
660
- if (L(i.series[0]) && L(C)) {
661
- let B = Pt(i);
662
- B === le.Quarter && (B = le.Month), C.temporalBinning = {
663
- ...i.series[0]?.temporalBinning,
664
- unit: B
660
+ if (L(s.series[0]) && L(C)) {
661
+ let T = Mt(s);
662
+ T === ue.Quarter && (T = ue.Month), C.temporalBinning = {
663
+ ...s.series[0]?.temporalBinning,
664
+ unit: T
665
665
  };
666
666
  }
667
- return J(C);
667
+ return te(C);
668
668
  }
669
- function Z(s, e, t) {
670
- const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = E(s), o = K(s), l = Pe(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => P(r ?? [], S)).join(", "), m = P(r ?? [], n), d = P(r ?? [], c), y = s.series.some((S) => W(S)), g = y ? "category" : "xAxisField", F = m;
671
- let x = "";
672
- if (ge({
669
+ function _(i, e, t) {
670
+ const { layerFieldsInfo: a } = e, { idField: s, isTraditionalTypeOID: r } = Z(e.layer), n = w(i), o = U(i), l = oe(i), c = K(i), g = r && (o.length === 0 || o.includes(s)), f = vt(l, t), p = g ? "" : o.map((h) => R(a ?? [], h)).join(", "), u = R(a ?? [], n), d = R(a ?? [], c), y = i.series.some((h) => Y(h)), m = y ? "category" : "xAxisField", F = u;
671
+ let S = "";
672
+ if (fe({
673
673
  fieldName: n,
674
674
  numericFields: o,
675
- fieldList: r
675
+ fieldList: a
676
676
  }))
677
- x = M(t.titleLabels.aggrTypeOfAggrFields, {
677
+ S = M(t.titleLabels.aggrTypeOfAggrFields, {
678
678
  aggregationType: f,
679
- aggregationFields: u
679
+ aggregationFields: p
680
680
  });
681
681
  else if (l === I.NoAggregation) {
682
- const S = p ? i : u;
682
+ const h = g ? s : p;
683
683
  if (c === "") {
684
- const A = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
685
- x = M(t.titleLabels[A], {
686
- aggregationType: S,
687
- [g]: F
684
+ const b = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
685
+ S = M(t.titleLabels[b], {
686
+ aggregationType: h,
687
+ [m]: F
688
688
  });
689
689
  } else {
690
- const A = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
- x = M(t.titleLabels[A], {
692
- aggregationType: S,
693
- [g]: F,
690
+ const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
+ S = M(t.titleLabels[b], {
692
+ aggregationType: h,
693
+ [m]: F,
694
694
  splitByField: d
695
695
  });
696
696
  }
697
697
  } else if (l === I.Count)
698
698
  if (c === "") {
699
- const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
700
- x = M(t.titleLabels[S], {
699
+ const h = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
700
+ S = M(t.titleLabels[h], {
701
701
  aggregationType: f,
702
- [g]: F
702
+ [m]: F
703
703
  });
704
704
  } else {
705
- const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
- x = M(t.titleLabels[S], {
705
+ const h = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
+ S = M(t.titleLabels[h], {
707
707
  aggregationType: f,
708
- [g]: F,
708
+ [m]: F,
709
709
  splitByField: d
710
710
  });
711
711
  }
712
712
  else if (c !== "") {
713
- const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
714
- x = M(t.titleLabels[S], {
713
+ const h = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
714
+ S = M(t.titleLabels[h], {
715
715
  aggregationType: f,
716
- aggregationField: u,
717
- [g]: F,
716
+ aggregationField: p,
717
+ [m]: F,
718
718
  splitByField: d
719
719
  });
720
720
  } else if (o.length > 0) {
721
- const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
- x = M(t.titleLabels[S], {
721
+ const h = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
+ S = M(t.titleLabels[h], {
723
723
  aggregationType: f,
724
- aggregationFields: u,
725
- [g]: F
724
+ aggregationFields: p,
725
+ [m]: F
726
726
  });
727
727
  }
728
- return x;
728
+ return S;
729
729
  }
730
- const Re = (s) => me({
731
- where: s.query?.where,
730
+ const we = (i) => ge({
731
+ where: i.query?.where,
732
732
  normalize: !1,
733
733
  escape: !1
734
- }) ?? "", Pe = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, re = Ye(
735
- (s) => {
736
- const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
737
- return gt(s?.series?.[0]?.query?.where) ? "" : e;
734
+ }) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, K = $e(
735
+ (i) => {
736
+ const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
737
+ return pt(i?.series?.[0]?.query?.where) ? "" : e;
738
738
  },
739
- (s) => s?.series?.[0]?.query?.where
740
- ), K = (s) => {
739
+ (i) => i?.series?.[0]?.query?.where
740
+ ), U = (i) => {
741
741
  let e = [];
742
- if (re(s) === "")
743
- e = s?.series.map((t) => {
744
- const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
745
- return r?.length > 0 ? r : t.y;
742
+ if (K(i) === "")
743
+ e = i?.series.map((t) => {
744
+ const a = t.query?.outStatistics?.map((s) => s.onStatisticField) ?? [];
745
+ return a?.length > 0 ? a : t.y;
746
746
  }).flat() ?? [];
747
747
  else {
748
- const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
749
- e = r !== void 0 ? [r] : [];
748
+ const t = i?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
749
+ e = a !== void 0 ? [a] : [];
750
750
  }
751
751
  return e.filter((t) => t !== "");
752
752
  };
753
- function we(s) {
754
- const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
755
- return e === "" ? t[i] ?? a : t[0] ?? a;
753
+ function Ee(i) {
754
+ const { splitByField: e, numericFields: t, layer: a, seriesIndex: s } = i, r = Z(a).idField ?? "";
755
+ return e === "" ? t[s] ?? r : t[0] ?? r;
756
756
  }
757
- function ls(s) {
758
- const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
759
- let a = !1;
760
- t === I.Count ? a = !0 : t === I.NoAggregation && (a = e.every((l) => {
761
- const c = i.layerFieldsInfo.find((p) => p.name === l);
762
- return c !== void 0 ? xe(c) : !1;
763
- })), pe(r, 1, a);
764
- const n = r.series.some((l) => V(l)), o = r.series.some((l) => k(l));
757
+ function di(i) {
758
+ const { numericFields: e, aggregationType: t, config: a, layerInfo: s } = i;
759
+ let r = !1;
760
+ t === I.Count ? r = !0 : t === I.NoAggregation && (r = e.every((l) => {
761
+ const c = s.layerFieldsInfo.find((g) => g.name === l);
762
+ return c !== void 0 ? Te(c) : !1;
763
+ })), xe(a, 1, r);
764
+ const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
765
765
  if (n || o) {
766
- const l = E(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
767
- pe(r, 0, p);
766
+ const l = w(a), c = s.layerFieldsInfo.find((f) => f.name === l), g = c !== void 0 && Te(c);
767
+ xe(a, 0, g);
768
768
  }
769
769
  }
770
- const de = (s) => {
770
+ function Me(i) {
771
+ for (const e of [1, 2])
772
+ G({ config: i, value: null, axisIndex: e, isMax: !1 }), G({ config: i, value: null, axisIndex: e, isMax: !0 });
773
+ }
774
+ const me = (i) => {
771
775
  let e;
772
- if (X(s)) {
773
- const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? D.Category : D.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? D.Category : D.YValue;
774
- e = [he(t, i), he(r, a)];
776
+ if (X(i)) {
777
+ const t = i.orderOptions?.data?.orderByX ?? [""], a = i.orderOptions?.data?.orderByY ?? [""], s = i.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = i.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
778
+ e = [Be(t, s), Be(a, r)];
775
779
  } else {
776
- const t = s.orderOptions?.data?.orderType ?? D.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
777
- e = [St(r, t)];
780
+ const t = i.orderOptions?.data?.orderType ?? N.Category, a = i.orderOptions?.data && "orderBy" in i.orderOptions.data ? i.orderOptions.data.orderBy : Bt.Ascending;
781
+ e = [Tt(a, t)];
778
782
  }
779
783
  return e;
780
784
  };
781
- function cs(s) {
782
- const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
783
- config: i,
785
+ function yi(i) {
786
+ const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l = ne({
787
+ config: s,
784
788
  xAxisField: e,
785
- aggregationType: r,
786
- layerInfo: a,
789
+ aggregationType: a,
790
+ layerInfo: r,
787
791
  seriesIndex: 0,
788
792
  commonStrings: n
789
- }), c = te({
790
- config: i,
793
+ }), c = se({
794
+ config: s,
791
795
  xAxisField: e,
792
796
  numericFields: t,
793
- aggregationType: r,
794
- layer: a.layer,
797
+ aggregationType: a,
798
+ layer: r.layer,
795
799
  fieldList: o
796
- }).name, p = E(i), f = K(i), u = ge({
797
- fieldName: p,
800
+ }).name, g = w(s), f = U(s), p = fe({
801
+ fieldName: g,
798
802
  numericFields: f,
799
803
  fieldList: o
800
- }) ? i.series[0] : void 0, m = `series_${Date.now()}`, d = u?.id ?? m, y = u?.name ?? n.axisLabels.values, F = {
801
- ...u ?? l,
804
+ }) ? s.series[0] : void 0, u = `series_${Date.now()}`, d = p?.id ?? u, y = p?.name ?? n.axisLabels.values, F = {
805
+ ...p ?? l,
802
806
  id: d,
803
807
  name: y,
804
- x: U,
808
+ x: j,
805
809
  y: c
806
- }, x = [];
807
- for (const S of t)
808
- x.push({
809
- onStatisticField: S,
810
- outStatisticFieldName: `${S}_0`.toUpperCase(),
811
- statisticType: r
810
+ }, S = [];
811
+ for (const h of t)
812
+ S.push({
813
+ onStatisticField: h,
814
+ outStatisticFieldName: `${h}_0`.toUpperCase(),
815
+ statisticType: a
812
816
  });
813
- return F.query = { outStatistics: x }, i.series.length === 1 && ((V(F) || k(F)) && Me(F, i.series[0]), W(F) ? F.fillSymbol = i.series[0].fillSymbol : (V(F) || k(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
817
+ return F.query = { outStatistics: S }, s.series.length === 1 && ((O(F) || V(F)) && We(F, s.series[0]), Y(F) ? F.fillSymbol = s.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = s.series[0].lineSymbol, F.markerSymbol = s.series[0].markerSymbol)), [F];
814
818
  }
815
- function Ee(s) {
816
- const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
819
+ function Ye(i) {
820
+ const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l = Z(r.layer).idField, c = [];
817
821
  for (let d = 0; d < t.length; d += 1) {
818
- const y = ae({
819
- config: i,
822
+ const y = ne({
823
+ config: s,
820
824
  xAxisField: e,
821
- aggregationType: r,
822
- layerInfo: a,
825
+ aggregationType: a,
826
+ layerInfo: r,
823
827
  seriesIndex: d,
824
828
  commonStrings: n
825
- }), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((O) => O.name === g) ? g : te({
826
- config: i,
829
+ }), m = s.series[d]?.y, F = typeof m == "string" && m.trim() !== "" && !o.find((D) => D.name === m) ? m : se({
830
+ config: s,
827
831
  xAxisField: e,
828
832
  numericFields: t,
829
- aggregationType: r,
830
- layer: a.layer,
833
+ aggregationType: a,
834
+ layer: r.layer,
831
835
  numericFieldIndex: d,
832
836
  fieldList: o
833
- }).name, x = t[d], S = i.series.find(
834
- (O) => O.query?.where === void 0 && (O.query?.outStatistics?.length === 1 && O.query?.outStatistics?.[0]?.onStatisticField === x || O.query?.outStatistics === void 0 && (O.y === x || O.x === x))
835
- ), A = x !== l ? x : y.id, C = S?.id ?? A, B = S?.name ?? P(o, x) ?? C, v = S ?? y, b = {
836
- ...v,
837
+ }).name, S = t[d], h = s.series.find(
838
+ (D) => D.query?.where === void 0 && (D.query?.outStatistics?.length === 1 && D.query?.outStatistics?.[0]?.onStatisticField === S || D.query?.outStatistics === void 0 && (D.y === S || D.x === S))
839
+ ), b = S !== l ? S : y.id, C = h?.id ?? b, T = h?.name ?? R(o, S) ?? C, A = h ?? y, v = {
840
+ ...A,
837
841
  id: C,
838
- name: B
842
+ name: T
839
843
  };
840
- let h = x;
841
- b.query !== void 0 && (r !== I.NoAggregation ? (h = b.type === T.HeatSeries && S?.type === T.HeatSeries ? x : F, b.query.outStatistics = [
844
+ let E = S;
845
+ v.query !== void 0 && (a !== I.NoAggregation ? (E = v.type === x.HeatSeries && h?.type === x.HeatSeries ? S : F, v.query.outStatistics = [
842
846
  {
843
- ...v.query?.outStatistics?.[0] ?? {},
844
- onStatisticField: x,
847
+ ...A.query?.outStatistics?.[0] ?? {},
848
+ onStatisticField: S,
845
849
  outStatisticFieldName: F,
846
- statisticType: r
850
+ statisticType: a
847
851
  }
848
- ]) : delete b.query.outStatistics), b.y = h, c.push(b);
852
+ ]) : delete v.query.outStatistics), v.y = E, c.push(v);
849
853
  }
850
- const p = c.filter((d) => W(d)), f = c.filter(
851
- (d) => V(d) || k(d)
852
- ), u = i.series.filter((d) => W(d)), m = i.series.filter(
853
- (d) => V(d) || k(d)
854
+ const g = c.filter((d) => Y(d)), f = c.filter(
855
+ (d) => O(d) || V(d)
856
+ ), p = s.series.filter((d) => Y(d)), u = s.series.filter(
857
+ (d) => O(d) || V(d)
854
858
  );
855
- return u.length === 1 && p.length === 1 && W(u[0]) && W(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((V(m[0]) && V(f[0]) || k(m[0]) && k(f[0])) && Me(f[0], m[0]), (V(m[0]) && V(f[0]) || k(m[0]) && k(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
859
+ return p.length === 1 && g.length === 1 && Y(p[0]) && Y(g[0]) && (g[0].fillSymbol = p[0].fillSymbol), u.length === 1 && f.length === 1 && ((O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && We(f[0], u[0]), (O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && (f[0].lineSymbol = u[0].lineSymbol, f[0].markerSymbol = u[0].markerSymbol)), c;
856
860
  }
857
- function Di(s) {
858
- const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = E(t), l = K(t), c = re(t), p = ne(t, r, i), f = We(t, r, i);
859
- if (t.series.forEach((u, m) => {
860
- const d = te({
861
+ function qs(i) {
862
+ const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r, layer: n } = a, o = w(t), l = U(t), c = K(t), g = oe(t), f = le(t, a, s), p = Xe(t, a, s);
863
+ if (t.series.forEach((u, d) => {
864
+ const y = se({
861
865
  config: t,
862
866
  xAxisField: o,
863
867
  numericFields: l,
864
868
  aggregationType: e,
865
869
  splitByField: c,
866
870
  layer: n,
867
- seriesIndex: m,
868
- numericFieldIndex: m,
869
- fieldList: a
871
+ seriesIndex: d,
872
+ numericFieldIndex: d,
873
+ fieldList: r
870
874
  }).name;
871
- u.y = d;
872
- const y = we({
875
+ u.y = y;
876
+ const m = Ee({
873
877
  splitByField: c,
874
878
  numericFields: l,
875
879
  layer: n,
876
- seriesIndex: m
877
- }), g = u.query?.outStatistics?.[0]?.onStatisticField ?? y;
880
+ seriesIndex: d
881
+ }), F = u.query?.outStatistics?.[0]?.onStatisticField ?? m;
878
882
  u.query = {
879
883
  ...u.query,
880
884
  outStatistics: e === I.NoAggregation ? void 0 : [
881
885
  {
882
886
  ...u.query?.outStatistics?.[0],
883
- outStatisticFieldName: d,
887
+ outStatisticFieldName: y,
884
888
  statisticType: e,
885
- onStatisticField: g
889
+ onStatisticField: F
886
890
  }
887
891
  ]
888
- }, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? $.Interpolate : $.Null), e === I.NoAggregation && Mt(t);
889
- }), p && t.title && (t.title.content.text = Z(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
890
- const u = ye({
892
+ }, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? $.Interpolate : $.Null), e === I.NoAggregation && Xt(t);
893
+ }), f && t.title && (t.title.content.text = _(t, a, s)), p && t.series[0].type !== x.HeatSeries) {
894
+ const u = pe({
891
895
  config: t,
892
- layerInfo: r,
893
- commonStrings: i,
896
+ layerInfo: a,
897
+ commonStrings: s,
894
898
  numericFields: l,
895
899
  aggregationType: e
896
900
  });
897
- Y(t, 1, u);
901
+ W(t, 1, u);
898
902
  }
903
+ g !== e && Me(t);
899
904
  }
900
- function us(s) {
905
+ function mi(i) {
901
906
  const {
902
907
  splitByField: e,
903
908
  xAxisField: t,
904
- numericFields: r,
905
- aggregationType: i,
906
- config: a,
909
+ numericFields: a,
910
+ aggregationType: s,
911
+ config: r,
907
912
  layerInfo: n,
908
913
  commonStrings: o,
909
914
  splitByFieldInfos: l
910
- } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = we({
915
+ } = i, { layer: c, layerFieldsInfo: g } = n, { categoriesArray: f, splitByFieldType: p } = l, u = Ee({
911
916
  splitByField: e,
912
- numericFields: r,
917
+ numericFields: a,
913
918
  layer: c,
914
919
  seriesIndex: 0
915
920
  });
916
921
  let d = [];
917
922
  if (f.length === 0) {
918
- d = Ee({
923
+ d = Ye({
919
924
  xAxisField: t,
920
- numericFields: r,
921
- aggregationType: i,
922
- config: a,
925
+ numericFields: a,
926
+ aggregationType: s,
927
+ config: r,
923
928
  layerInfo: n,
924
929
  commonStrings: o
925
930
  });
@@ -927,279 +932,267 @@ function us(s) {
927
932
  y.query && (y.query.where = `${e}=''`);
928
933
  } else
929
934
  for (let y = 0; y < f.length; y += 1) {
930
- const g = f[y], F = te({
931
- config: a,
935
+ const m = f[y], F = se({
936
+ config: r,
932
937
  xAxisField: t,
933
- numericFields: r,
934
- aggregationType: i,
938
+ numericFields: a,
939
+ aggregationType: s,
935
940
  layer: n.layer,
936
941
  seriesIndex: y,
937
942
  splitByField: e,
938
- fieldList: p
939
- }).name, x = ae({
940
- config: a,
943
+ fieldList: g
944
+ }).name, S = ne({
945
+ config: r,
941
946
  xAxisField: t,
942
- aggregationType: i,
947
+ aggregationType: s,
943
948
  layerInfo: n,
944
949
  seriesIndex: y,
945
950
  commonStrings: o
946
- }), S = Oe({
951
+ }), h = Ne({
947
952
  queryObject: n.layer,
948
953
  fieldName: e,
949
- fieldValue: g ?? ""
950
- }), A = `${g}`, C = a.series.find(
951
- (O) => String(Re(O)).trim().replace(/'/gu, "") === A
952
- ), B = C?.id ?? A, v = C?.name ?? S ?? B, b = C ?? x, h = {
953
- ...b,
954
- id: B,
955
- name: v,
954
+ fieldValue: m ?? ""
955
+ }), b = `${m}`, C = r.series.find(
956
+ (D) => String(we(D)).trim().replace(/'/gu, "") === b
957
+ ), T = C?.id ?? b, A = C?.name ?? h ?? T, v = C ?? S, E = {
958
+ ...v,
959
+ id: T,
960
+ name: A,
956
961
  y: F,
957
962
  query: {
958
- ...b.query,
959
- where: `${e}=${u === Ne.String && g !== null ? `'${g}'` : g}`,
960
- outStatistics: i !== I.NoAggregation ? [
963
+ ...v.query,
964
+ where: `${e}=${p === ke.String && m !== null ? `'${m}'` : m}`,
965
+ outStatistics: s !== I.NoAggregation ? [
961
966
  {
962
- ...b.query?.outStatistics?.[0] ?? {},
963
- onStatisticField: m,
967
+ ...v.query?.outStatistics?.[0] ?? {},
968
+ onStatisticField: u,
964
969
  outStatisticFieldName: F,
965
- statisticType: i
970
+ statisticType: s
966
971
  }
967
972
  ] : void 0
968
973
  }
969
974
  };
970
- d.push(h);
975
+ d.push(E);
971
976
  }
972
977
  return d;
973
978
  }
974
- const Oi = (s) => {
979
+ const Rs = (i) => {
975
980
  const {
976
981
  xAxisFieldName: e,
977
982
  splitByField: t,
978
- numericFields: r,
979
- aggregationType: i,
980
- config: a,
983
+ numericFields: a,
984
+ aggregationType: s,
985
+ config: r,
981
986
  layerInfo: n,
982
987
  commonStrings: o,
983
988
  splitByFieldInfos: l
984
- } = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = qt(a), u = E(p), m = c.find((h) => h.name === u), d = a.series[0]?.query === void 0, y = c.find((h) => h.name === e), g = ne(p, n, o), F = We(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
985
- let S = Le(a);
986
- const A = p.series.some((h) => W(h)), C = pt(p.series), B = ft(p.series), v = q(m) || q(y);
987
- if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (A ? S = ce() : S = Lt()), S !== void 0 && He(a, o, S), f === 0 && (a.series = [
988
- ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
989
- ]), a.series.forEach((h) => {
990
- h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
991
- }), t === "" || r.length > 1 ? ge({
989
+ } = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = wt(r), p = w(g), u = K(g), d = oe(g), y = c.find((B) => B.name === p), m = r.series[0]?.query === void 0, F = U(g), S = c.find((B) => B.name === e), h = le(g, n, o), b = Xe(g, n, o), C = gi({ config: g, layerInfo: n, commonStrings: o });
990
+ let T = Ve(r);
991
+ const A = g.series.some((B) => Y(B)), v = ft(g.series), E = St(g.series), D = k(y) || k(S);
992
+ if (Q(S) ? T = de() : !z(y) && z(S) ? T = J() : !k(y) && k(S) ? T = J() : k(y) && !k(S) && (A ? T = de() : T = Ot()), T !== void 0 && ht(r, o, T), f === 0 && (r.series = [
993
+ ne({ config: r, xAxisField: e, aggregationType: s, layerInfo: n, commonStrings: o })
994
+ ]), r.series.forEach((B) => {
995
+ B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
996
+ }), t === "" || a.length > 1 ? fe({
992
997
  fieldName: e,
993
- numericFields: r,
998
+ numericFields: a,
994
999
  fieldList: c
995
- }) ? a.series = cs({
996
- config: a,
1000
+ }) ? r.series = yi({
1001
+ config: r,
997
1002
  layerInfo: n,
998
1003
  xAxisField: e,
999
- numericFields: r,
1000
- aggregationType: i,
1004
+ numericFields: a,
1005
+ aggregationType: s,
1001
1006
  commonStrings: o
1002
- }) : a.series = Ee({
1003
- config: a,
1007
+ }) : r.series = Ye({
1008
+ config: r,
1004
1009
  layerInfo: n,
1005
1010
  xAxisField: e,
1006
- numericFields: r,
1007
- aggregationType: i,
1011
+ numericFields: a,
1012
+ aggregationType: s,
1008
1013
  commonStrings: o
1009
- }) : l && (a.series = us({
1010
- config: a,
1014
+ }) : l && (r.series = mi({
1015
+ config: r,
1011
1016
  layerInfo: n,
1012
1017
  splitByField: t,
1013
1018
  xAxisField: e,
1014
- numericFields: r,
1015
- aggregationType: i,
1019
+ numericFields: a,
1020
+ aggregationType: s,
1016
1021
  commonStrings: o,
1017
1022
  splitByFieldInfos: l
1018
- })), x && e !== U && a.series[0].type !== T.HeatSeries) {
1019
- const h = P(c, e);
1020
- Y(a, 0, h);
1023
+ })), C && e !== j && r.series[0].type !== x.HeatSeries) {
1024
+ const B = R(c, e);
1025
+ W(r, 0, B);
1021
1026
  }
1022
- if (F && a.series[0].type !== T.HeatSeries) {
1023
- const h = ye({
1024
- config: a,
1027
+ if (b && r.series[0].type !== x.HeatSeries) {
1028
+ const B = pe({
1029
+ config: r,
1025
1030
  layerInfo: n,
1026
1031
  commonStrings: o,
1027
- numericFields: r,
1028
- aggregationType: i
1032
+ numericFields: a,
1033
+ aggregationType: s
1029
1034
  });
1030
- Y(a, 1, h);
1035
+ W(r, 1, B);
1031
1036
  }
1032
- g && a.title && (a.title.content.text = Z(a, n, o));
1033
- const b = u === e;
1034
- if (N({
1035
- config: a,
1036
- value: b ? a.axes?.[1]?.minimum ?? null : null,
1037
- axisIndex: 1,
1038
- isMax: !1
1039
- }), N({
1040
- config: a,
1041
- value: b ? a.axes?.[1]?.maximum ?? null : null,
1042
- axisIndex: 1,
1043
- isMax: !0
1044
- }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (N({ config: a, value: null, axisIndex: 0, isMax: !1 }), N({ config: a, value: null, axisIndex: 0, isMax: !0 }), v && i !== I.NoAggregation && !X(p))) {
1045
- const h = q(y) ? $.Null : $.Interpolate;
1046
- Et(h, a);
1037
+ if (h && r.title && (r.title.content.text = _(r, n, o)), p === e && u === t && d === s && Ue(F, a) || Me(r), di({ numericFields: a, aggregationType: s, config: r, layerInfo: n }), (v || E) && (G({ config: r, value: null, axisIndex: 0, isMax: !1 }), G({ config: r, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !X(g))) {
1038
+ const B = k(S) ? $.Null : $.Interpolate;
1039
+ Wt(B, r);
1047
1040
  }
1048
- X(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
1049
- d && delete h.query, u !== e && L(h) && (y?.type === Ne.TimeOnly ? h.binTemporalData = !1 : h.binTemporalData = h.type === T.LineSeries && q(y));
1041
+ X(r) && Pe({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((B) => {
1042
+ m && delete B.query, p !== e && L(B) && (S?.type === ke.TimeOnly ? B.binTemporalData = !1 : B.binTemporalData = B.type === x.LineSeries && k(S));
1050
1043
  });
1051
- }, Me = (s, e) => {
1052
- s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
1044
+ }, We = (i, e) => {
1045
+ i.markerVisible = e.markerVisible, i.lineSmoothed = e.lineSmoothed, i.showArea = e.showArea, i.areaColor = e.areaColor, i.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (i.lineSymbol = { ...e.lineSymbol, color: i.lineSymbol?.color }), e.markerSymbol && (i.markerSymbol = {
1053
1046
  ...e.markerSymbol,
1054
- color: s.markerSymbol?.color
1047
+ color: i.markerSymbol?.color
1055
1048
  });
1056
- }, Ni = (s) => {
1057
- const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
1049
+ }, Ps = (i) => {
1050
+ const { config: e, seriesIndex: t, layerInfo: a, commonStrings: s } = i, r = e.series?.[t], n = K(e);
1058
1051
  let o;
1059
- if (ee(e.series) === w.BarAndLineFromFields)
1060
- o = i.axisLabels.values;
1061
- else if (Xe(n)) {
1062
- const c = a.query?.outStatistics?.[0]?.onStatisticField;
1063
- c !== void 0 && c !== j(r.layer).idField && (o = P(r.layerFieldsInfo, c));
1052
+ if (ie(e.series) === P.BarAndLineFromFields)
1053
+ o = s.axisLabels.values;
1054
+ else if (He(n)) {
1055
+ const c = r.query?.outStatistics?.[0]?.onStatisticField;
1056
+ c !== void 0 && c !== Z(a.layer).idField && (o = R(a.layerFieldsInfo, c));
1064
1057
  } else {
1065
- const c = String(Re(a)).trim().replace(/'/gu, "");
1066
- o = Oe({
1067
- queryObject: r.layer,
1058
+ const c = String(we(r)).trim().replace(/'/gu, "");
1059
+ o = Ne({
1060
+ queryObject: a.layer,
1068
1061
  fieldName: n,
1069
1062
  fieldValue: c ?? ""
1070
1063
  }) ?? c;
1071
1064
  }
1072
- return o ?? a.id;
1073
- }, Vi = (s, e) => {
1065
+ return o ?? r.id;
1066
+ }, ws = (i, e) => {
1074
1067
  if (X(e))
1075
- ss(s, e);
1068
+ ri(i, e);
1076
1069
  else {
1077
1070
  e.orderOptions ??= {};
1078
1071
  const t = e.orderOptions?.data?.orderType;
1079
- de(e)[0] === oe.customSort && t === D.Category && (e.orderOptions.data = {
1080
- orderType: D.Category,
1081
- orderBy: [...s]
1072
+ me(e)[0] === ce.customSort && t === N.Category && (e.orderOptions.data = {
1073
+ orderType: N.Category,
1074
+ orderBy: [...i]
1082
1075
  });
1083
1076
  }
1084
- }, ki = async (s) => {
1085
- const { config: e, layerInfo: t, errorStrings: r } = s, i = E(e), a = Le(e)?.type, n = K(e), o = ee(e.series);
1077
+ }, Es = async (i) => {
1078
+ const { config: e, layerInfo: t, errorStrings: a } = i, s = w(e), r = Ve(e)?.type, n = U(e), o = ie(e.series);
1086
1079
  let l = [];
1087
- return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((c) => P(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await $e({
1080
+ return r === x.CategoryAxisFormat && (o === P.BarAndLineFromFields || s === j ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : s.trim() !== "" && s !== j && t !== void 0 && (l = await Ft({
1088
1081
  layerInfo: t,
1089
1082
  config: e,
1090
- category: i,
1091
- errorStrings: r
1083
+ category: s,
1084
+ errorStrings: a
1092
1085
  }))), l;
1093
1086
  };
1094
- function ne(s, e, t) {
1095
- const r = Z(s, e, t), i = Rt(s), a = se(s);
1096
- return r === i || a;
1087
+ function le(i, e, t) {
1088
+ const a = _(i, e, t), s = Et(i), r = ae(i);
1089
+ return a === s || r;
1097
1090
  }
1098
- function We(s, e, t) {
1099
- const r = ye({
1100
- config: s,
1091
+ function Xe(i, e, t) {
1092
+ const a = pe({
1093
+ config: i,
1101
1094
  layerInfo: e,
1102
1095
  commonStrings: t,
1103
- numericFields: K(s),
1104
- aggregationType: Pe(s)
1105
- }), i = ie(1, s), a = se(s);
1106
- return r === i || a;
1096
+ numericFields: U(i),
1097
+ aggregationType: oe(i)
1098
+ }), s = re(1, i), r = ae(i);
1099
+ return a === s || r;
1107
1100
  }
1108
- function ds(s) {
1109
- const { config: e, layerInfo: t, commonStrings: r } = s, i = P(t.layerFieldsInfo, E(e)), a = ie(0, e), n = se(e), o = E(e) === U && (a === "" || a === r.xAxis);
1110
- return i === a || n || o;
1101
+ function gi(i) {
1102
+ const { config: e, layerInfo: t, commonStrings: a } = i, s = R(t.layerFieldsInfo, w(e)), r = re(0, e), n = ae(e), o = w(e) === j && (r === "" || r === a.xAxis);
1103
+ return s === r || n || o;
1111
1104
  }
1112
- function qi(s) {
1113
- return L(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
1105
+ function Ms(i) {
1106
+ return L(i.series[0]) ? i.series[0].binTemporalData ?? !0 : !1;
1114
1107
  }
1115
- function Ri(s, e) {
1108
+ function Ys(i, e) {
1116
1109
  e?.series.forEach((t) => {
1117
- L(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
1118
- unit: le.Day,
1110
+ L(t) && (t.binTemporalData = i, i ? t.temporalBinning = {
1111
+ unit: ue.Day,
1119
1112
  size: 0,
1120
- timeAggregationType: ht.Start,
1113
+ timeAggregationType: Ct.Start,
1121
1114
  trimIncompleteTimeInterval: !0,
1122
1115
  nullPolicy: $.Null
1123
1116
  } : delete t.temporalBinning);
1124
1117
  });
1125
1118
  }
1126
1119
  export {
1127
- Gs as $,
1128
- ki as A,
1129
- Vi as B,
1130
- Oi as C,
1131
- qi as D,
1132
- Ri as E,
1133
- Z as F,
1134
- qe as G,
1135
- Jt as H,
1136
- _s as I,
1137
- Si as J,
1138
- Fi as K,
1139
- es as L,
1140
- Qs as M,
1141
- ts as N,
1142
- zs as O,
1143
- xi as P,
1144
- hi as Q,
1145
- Ti as R,
1146
- Bi as S,
1147
- Ai as T,
1148
- vi as U,
1149
- Ii as V,
1150
- Ht as W,
1151
- Li as X,
1152
- $s as Y,
1153
- Hs as Z,
1154
- Js as _,
1155
- Ms as a,
1156
- ti as a0,
1157
- ei as a1,
1158
- js as a2,
1159
- Us as a3,
1160
- Ks as a4,
1161
- Zs as a5,
1162
- ai as a6,
1163
- ri as a7,
1164
- ni as a8,
1165
- oi as a9,
1166
- ii as aa,
1167
- si as ab,
1168
- li as ac,
1169
- is as ad,
1170
- ci as ae,
1171
- ui as af,
1172
- di as ag,
1173
- yi as ah,
1174
- mi as ai,
1175
- gi as aj,
1176
- bi as ak,
1177
- Ci as al,
1178
- pi as am,
1179
- fi as an,
1180
- Ps as b,
1181
- ws as c,
1182
- K as d,
1183
- re as e,
1184
- Xs as f,
1185
- Pe as g,
1186
- Ni as h,
1187
- Ws as i,
1188
- Ds as j,
1189
- wt as k,
1190
- Pt as l,
1191
- ks as m,
1192
- Os as n,
1193
- qs as o,
1194
- Ys as p,
1195
- Ns as q,
1196
- Ut as r,
1197
- ke as s,
1198
- Rs as t,
1199
- Es as u,
1200
- Vs as v,
1201
- Et as w,
1202
- Mt as x,
1203
- Di as y,
1204
- de as z
1120
+ ss as $,
1121
+ Es as A,
1122
+ ws as B,
1123
+ Rs as C,
1124
+ Ms as D,
1125
+ Ys as E,
1126
+ _ as F,
1127
+ Pe as G,
1128
+ ii as H,
1129
+ es as I,
1130
+ Bs as J,
1131
+ Cs as K,
1132
+ si as L,
1133
+ ts as M,
1134
+ ai as N,
1135
+ is as O,
1136
+ bs as P,
1137
+ As as Q,
1138
+ vs as R,
1139
+ Is as S,
1140
+ Ns as T,
1141
+ Os as U,
1142
+ Vs as V,
1143
+ Zt as W,
1144
+ ks as X,
1145
+ _i as Y,
1146
+ Ki as Z,
1147
+ as as _,
1148
+ Hi as a,
1149
+ ns as a0,
1150
+ rs as a1,
1151
+ zi as a2,
1152
+ Qi as a3,
1153
+ Ji as a4,
1154
+ Gi as a5,
1155
+ cs as a6,
1156
+ us as a7,
1157
+ ds as a8,
1158
+ ys as a9,
1159
+ ls as aa,
1160
+ os as ab,
1161
+ ms as ac,
1162
+ ni as ad,
1163
+ gs as ae,
1164
+ ps as af,
1165
+ fs as ag,
1166
+ Ss as ah,
1167
+ Fs as ai,
1168
+ hs as aj,
1169
+ Ds as ak,
1170
+ Ls as al,
1171
+ Ts as am,
1172
+ xs as an,
1173
+ Wi as b,
1174
+ Xi as c,
1175
+ U as d,
1176
+ K as e,
1177
+ Zi as f,
1178
+ oe as g,
1179
+ Ps as h,
1180
+ Ui as i,
1181
+ qi as j,
1182
+ Yt as k,
1183
+ Mt as l,
1184
+ Ei as m,
1185
+ Ri as n,
1186
+ Mi as o,
1187
+ ji as p,
1188
+ Pi as q,
1189
+ _t as r,
1190
+ Re as s,
1191
+ Yi as t,
1192
+ $i as u,
1193
+ wi as v,
1194
+ Wt as w,
1195
+ Xt as x,
1196
+ qs as y,
1197
+ me as z
1205
1198
  };