@arcgis/charts-components 5.2.0-next.23 → 5.2.0-next.24

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