@arcgis/charts-components 5.2.0-next.53 → 5.2.0-next.54

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