@arcgis/charts-components 6.0.0-next.30 → 6.0.0-next.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/cdn/{MUN2S3E4.js → 2FSC4TII.js} +1 -1
  2. package/dist/cdn/{FCIX6GGU.js → 2P3VH3BF.js} +1 -1
  3. package/dist/cdn/{JRSS3F4L.js → 3YLQHPDB.js} +1 -1
  4. package/dist/cdn/{KK2MZ4JC.js → 424VG732.js} +1 -1
  5. package/dist/cdn/{UD6HCV4U.js → 47MLKUMN.js} +1 -1
  6. package/dist/cdn/{U47KTF7M.js → 4B7KYFKX.js} +1 -1
  7. package/dist/cdn/{JYA5U7KT.js → 4E7XIO26.js} +1 -1
  8. package/dist/cdn/{VOFQH5IC.js → 4FZEHAQ3.js} +1 -1
  9. package/dist/cdn/{X2DZWHQW.js → 4L3DNWI7.js} +1 -1
  10. package/dist/cdn/4O5PXQHF.js +4 -0
  11. package/dist/cdn/{SYNIRISM.js → 4UGEZMMX.js} +1 -1
  12. package/dist/cdn/{WWTDXZGS.js → 5PW4T4LC.js} +1 -1
  13. package/dist/cdn/{QDSTYON4.js → 6WXE7PI7.js} +1 -1
  14. package/dist/cdn/{SGJJDKKA.js → 7HBNUKHF.js} +1 -1
  15. package/dist/cdn/{MSBIMCZD.js → 7KGHI7WT.js} +1 -1
  16. package/dist/cdn/{QD55AYES.js → 7KIHMJWQ.js} +1 -1
  17. package/dist/cdn/{KL5AVH4O.js → 7L6DK5OS.js} +1 -1
  18. package/dist/cdn/{TTGVSQVW.js → 7RPS2ZKZ.js} +1 -1
  19. package/dist/cdn/{HFTFNQJQ.js → 7TSIJZWC.js} +1 -1
  20. package/dist/cdn/{WHN4YP6X.js → ADENRYX7.js} +1 -1
  21. package/dist/cdn/{AN7IJ6AX.js → BAC6JT5W.js} +1 -1
  22. package/dist/cdn/{HYE4BAPU.js → BDR6ELDH.js} +1 -1
  23. package/dist/cdn/{25QC6GIT.js → BIFGQ23U.js} +1 -1
  24. package/dist/cdn/{ZWDCZ3BB.js → BWNBESN5.js} +1 -1
  25. package/dist/cdn/{WCUPRSJO.js → CUOXXQBF.js} +1 -1
  26. package/dist/cdn/{KLDHTXQX.js → CUQWT4QG.js} +1 -1
  27. package/dist/cdn/{U4AHEAFG.js → CVYI4FDJ.js} +1 -1
  28. package/dist/cdn/{B3QNMX44.js → CY3KIENE.js} +1 -1
  29. package/dist/cdn/{7F6LOZLY.js → DK5CFPVG.js} +1 -1
  30. package/dist/cdn/{GY26ZORC.js → DYGFR6KY.js} +1 -1
  31. package/dist/cdn/{SGWNVFIC.js → E5F3CSMH.js} +1 -1
  32. package/dist/cdn/{HSPGNGWN.js → EEZEPHWK.js} +1 -1
  33. package/dist/cdn/{VHFV37DA.js → EGEYRUPY.js} +1 -1
  34. package/dist/cdn/{M3F5FMP4.js → FWGGOXK6.js} +1 -1
  35. package/dist/cdn/{WPBGJ7TA.js → GIJFJBQ5.js} +1 -1
  36. package/dist/cdn/{ZWTCLURV.js → GTXF2Q7A.js} +1 -1
  37. package/dist/cdn/{HQUV6P3J.js → H4EBGCSZ.js} +1 -1
  38. package/dist/cdn/{TD2A5VIL.js → HEL54XVB.js} +1 -1
  39. package/dist/cdn/{TO36XQBZ.js → HR5JU7P5.js} +1 -1
  40. package/dist/cdn/{PVJD76IR.js → ICEANLLZ.js} +1 -1
  41. package/dist/cdn/{A3VQPJ6Y.js → IRSIUA3Z.js} +1 -1
  42. package/dist/cdn/{OAOD5CD6.js → J77BQI65.js} +1 -1
  43. package/dist/cdn/{SSE23HGJ.js → JFZ5WV6G.js} +1 -1
  44. package/dist/cdn/{GG5WH22M.js → JON7QEXZ.js} +1 -1
  45. package/dist/cdn/{ZRZICFCQ.js → JTXDHQSH.js} +1 -1
  46. package/dist/cdn/{YT2VNZV4.js → KNJKA4IL.js} +1 -1
  47. package/dist/cdn/{QJ5GAILY.js → LEWMDRPW.js} +1 -1
  48. package/dist/cdn/{QBXMZDH4.js → LHYWDDAS.js} +1 -1
  49. package/dist/cdn/{VRZET2BS.js → LSO2XNPH.js} +1 -1
  50. package/dist/cdn/{NFX7AZX3.js → M4DADMOO.js} +1 -1
  51. package/dist/cdn/{IL5NGTL7.js → MIONK5O5.js} +1 -1
  52. package/dist/cdn/{MHW64E3A.js → MVPGEBWQ.js} +1 -1
  53. package/dist/cdn/{NPHI6WI5.js → N45L56WG.js} +1 -1
  54. package/dist/cdn/{LB4HNAIE.js → NEVDA2IQ.js} +1 -1
  55. package/dist/cdn/{PHRAHDAC.js → OJFYB73J.js} +1 -1
  56. package/dist/cdn/{CRLM4T6V.js → OXASIEVD.js} +1 -1
  57. package/dist/cdn/{HA4Y6XKL.js → PB4WIYWN.js} +1 -1
  58. package/dist/cdn/{5UYTQNHS.js → PV7DIUGW.js} +1 -1
  59. package/dist/cdn/{W4Y3QYJT.js → PY7P35QO.js} +1 -1
  60. package/dist/cdn/{43Q7OGOH.js → QCSV57EQ.js} +1 -1
  61. package/dist/cdn/{B5AQ3NNL.js → QGRQW5WK.js} +1 -1
  62. package/dist/cdn/{KMPKCXZM.js → R6XBFNY4.js} +1 -1
  63. package/dist/cdn/{R5VTRDCV.js → RGPG43GI.js} +1 -1
  64. package/dist/cdn/{VCLQRZI2.js → S4SOKS52.js} +1 -1
  65. package/dist/cdn/{6JD4UQO2.js → SAK4CBE7.js} +1 -1
  66. package/dist/cdn/{XR4X7LVB.js → SD2WCRDV.js} +1 -1
  67. package/dist/cdn/{GGQH47WY.js → SMNUEDMN.js} +1 -1
  68. package/dist/cdn/{GUAULB6T.js → T35WVFIU.js} +1 -1
  69. package/dist/cdn/{K5EKMEXI.js → TFJ4OWRJ.js} +1 -1
  70. package/dist/cdn/{4DNJYU33.js → TLC7ZXQM.js} +1 -1
  71. package/dist/cdn/{Y5ROZLS4.js → TQHFCEOB.js} +1 -1
  72. package/dist/cdn/{GCTV22SA.js → USYS3LBV.js} +1 -1
  73. package/dist/cdn/{3LRLDG7X.js → VAUOYVAJ.js} +1 -1
  74. package/dist/cdn/{WP6CEEFY.js → VOY3C6F2.js} +1 -1
  75. package/dist/cdn/{ZCYWZBOA.js → WE4SAQIV.js} +1 -1
  76. package/dist/cdn/{YOJFH5RX.js → WFMIM4RW.js} +1 -1
  77. package/dist/cdn/{6WKJ5VRI.js → XB6GQZZL.js} +1 -1
  78. package/dist/cdn/{53B3EJBT.js → XERWQ4IR.js} +16 -16
  79. package/dist/cdn/{6534DFFO.js → XFXZYSPI.js} +1 -1
  80. package/dist/cdn/{SQ6PNUM5.js → XI6OEXXA.js} +1 -1
  81. package/dist/cdn/{NHEMQ3ZY.js → XR46HOI2.js} +1 -1
  82. package/dist/cdn/{CKDPIIRG.js → Y672RHLI.js} +1 -1
  83. package/dist/cdn/{JEFLBTJD.js → YK5YAUHK.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/model/shared/setup-utils.js +1 -1
  86. package/dist/chunks/index.js +691 -709
  87. package/dist/components/arcgis-chart/customElement.js +188 -187
  88. package/dist/docs/api.json +1 -1
  89. package/dist/docs/docs.json +1 -1
  90. package/dist/docs/web-types.json +1 -1
  91. package/dist/types/lumina.d.ts +2 -0
  92. package/dist/types/preact.d.ts +2 -0
  93. package/dist/types/react.d.ts +2 -0
  94. package/dist/types/stencil.d.ts +2 -0
  95. package/package.json +4 -4
  96. package/dist/cdn/HM4I3F2W.js +0 -4
@@ -733,7 +733,7 @@ function Un(t) {
733
733
  }
734
734
  return f;
735
735
  }
736
- const F = {
736
+ const S = {
737
737
  // chart with no specific subtype
738
738
  NonSpecific: "nonSpecific",
739
739
  // non aggregated bar/line chart
@@ -952,15 +952,15 @@ function ns(t) {
952
952
  async function ss(t) {
953
953
  const { queryObject: e, queryConfig: i, outputFormat: r, dataFormat: a, outAnalytics: n, errorStrings: s, abortSignal: o } = t, { where: l, geometry: u, distance: c, units: d, timeExtent: f } = i;
954
954
  let m;
955
- const g = j(e), p = pe(g);
956
- if (p) {
957
- const S = { where: J([l, p.definitionExpression]) }, b = { query: S, signal: o }, T = it(u)?.extent?.toJSON();
955
+ const g = j(e), y = pe(g);
956
+ if (y) {
957
+ const F = { where: J([l, y.definitionExpression]) }, b = { query: F, signal: o }, T = it(u)?.extent?.toJSON();
958
958
  if (T !== void 0) {
959
959
  const x = ns(d), { xmin: v, ymin: A, xmax: N, ymax: L } = T;
960
- S.geometryType = "esriGeometryEnvelope", S.geometry = `${v},${A},${N},${L}`, c !== void 0 && (S.distance = c.toString()), x !== void 0 && (S.units = x, u?.spatialReference?.wkid != null && (S.inSR = u.spatialReference.wkid.toString()));
960
+ F.geometryType = "esriGeometryEnvelope", F.geometry = `${v},${A},${N},${L}`, c !== void 0 && (F.distance = c.toString()), x !== void 0 && (F.units = x, u?.spatialReference?.wkid != null && (F.inSR = u.spatialReference.wkid.toString()));
961
961
  }
962
- f && (S.time = `${f[0]},${f[1]}`);
963
- const C = `${p.url}/${p.layerId}/queryAnalytic?f=${r}&dataFormat=${a}&outAnalytics=${n}`;
962
+ f && (F.time = `${f[0]},${f[1]}`);
963
+ const C = `${y.url}/${y.layerId}/queryAnalytic?f=${r}&dataFormat=${a}&outAnalytics=${n}`;
964
964
  try {
965
965
  m = (await kt(C, b)).data?.features?.[0]?.attributes;
966
966
  } catch (x) {
@@ -995,15 +995,15 @@ async function os(t) {
995
995
  let u;
996
996
  const c = j(i), d = is(c);
997
997
  if (d && i && "queryAttributeBins" in i && i.queryAttributeBins) {
998
- const { x: f, y: m, xTemporalBinning: g, yTemporalBinning: p } = e.series[0], { outTimeZone: y, firstDayOfWeek: S, includeLeapDay: b } = e, T = lu({
998
+ const { x: f, y: m, xTemporalBinning: g, yTemporalBinning: y } = e.series[0], { outTimeZone: p, firstDayOfWeek: F, includeLeapDay: b } = e, T = lu({
999
999
  queryObject: i,
1000
1000
  queryConfig: r,
1001
1001
  x: f,
1002
1002
  y: m,
1003
1003
  xTemporalBinning: g,
1004
- yTemporalBinning: p,
1005
- configTimeZone: y,
1006
- firstDayOfWeek: S,
1004
+ yTemporalBinning: y,
1005
+ configTimeZone: p,
1006
+ firstDayOfWeek: F,
1007
1007
  includeLeapDay: b,
1008
1008
  view: a,
1009
1009
  syncViewTimeZone: n,
@@ -1098,7 +1098,7 @@ async function us(t) {
1098
1098
  queryConfig: e,
1099
1099
  returnStatisticsAggregatedIds: !1
1100
1100
  });
1101
- d.outFields = n || a === F.PieNoAggregation || a === F.BarAndLineNoAggregation || a === F.BarAndLineSplitByNoAggregation ? [c ? u : "*"] : [i], d.outFields?.[0] === i && (d.returnDistinctValues = !0), d.outStatistics = null, d.groupByFieldsForStatistics = null, d.orderByFields = null;
1101
+ d.outFields = n || a === S.PieNoAggregation || a === S.BarAndLineNoAggregation || a === S.BarAndLineSplitByNoAggregation ? [c ? u : "*"] : [i], d.outFields?.[0] === i && (d.returnDistinctValues = !0), d.outStatistics = null, d.groupByFieldsForStatistics = null, d.orderByFields = null;
1102
1102
  try {
1103
1103
  o = await r.queryFeatureCount(d, { signal: s });
1104
1104
  } catch {
@@ -1110,11 +1110,11 @@ async function Lt(t) {
1110
1110
  const { queryObject: e, queryConfig: i, abortKey: r, errorStrings: a, abortSignal: n } = t, { outStatistics: s } = i, o = /* @__PURE__ */ new Map();
1111
1111
  if (s !== void 0 && s.length > 0) {
1112
1112
  const l = s.map((f) => {
1113
- const { statisticType: m, onStatisticField: g, outStatisticFieldName: p } = f;
1113
+ const { statisticType: m, onStatisticField: g, outStatisticFieldName: y } = f;
1114
1114
  return {
1115
1115
  statisticType: m,
1116
1116
  onStatisticField: g,
1117
- outStatisticFieldName: p?.toUpperCase()
1117
+ outStatisticFieldName: y?.toUpperCase()
1118
1118
  };
1119
1119
  });
1120
1120
  i.outStatistics = l, delete i.num, delete i.orderByFields;
@@ -1208,10 +1208,10 @@ async function xe(t) {
1208
1208
  let c = [];
1209
1209
  const d = j(e), f = a ?? 1, m = Va(e, d);
1210
1210
  if (n !== !0 && f > m && d?.capabilities?.query.supportsPagination) {
1211
- let g = 0, p = 0;
1212
- const y = Math.ceil(f / m), S = Math.ceil(y / _.maxParallelRequests), b = [];
1213
- for (; p < S; ) {
1214
- g = p * _.maxParallelRequests * m;
1211
+ let g = 0, y = 0;
1212
+ const p = Math.ceil(f / m), F = Math.ceil(p / _.maxParallelRequests), b = [];
1213
+ for (; y < F; ) {
1214
+ g = y * _.maxParallelRequests * m;
1215
1215
  const C = ds({
1216
1216
  queryConfig: { ...i, start: g },
1217
1217
  queryObject: e,
@@ -1223,7 +1223,7 @@ async function xe(t) {
1223
1223
  abortKey: l,
1224
1224
  abortSignal: u
1225
1225
  });
1226
- b.push(C), p += 1;
1226
+ b.push(C), y += 1;
1227
1227
  }
1228
1228
  c = (await Promise.all(b)).flat();
1229
1229
  } else (Number.isNaN(f) || f >= 0) && (c = await zr({
@@ -1281,7 +1281,7 @@ async function gs(t) {
1281
1281
  const { unit: g } = n;
1282
1282
  try {
1283
1283
  if (g && (m = dt(r, e), m && e && "queryAttributeBins" in e && e.queryAttributeBins)) {
1284
- const p = su({
1284
+ const y = su({
1285
1285
  queryObject: e,
1286
1286
  queryConfig: a,
1287
1287
  temporalBinning: n,
@@ -1292,15 +1292,15 @@ async function gs(t) {
1292
1292
  syncViewTimeZone: u,
1293
1293
  returnStatisticsAggregatedIds: c
1294
1294
  });
1295
- f = (await e.queryAttributeBins(p, { signal: d })).features;
1295
+ f = (await e.queryAttributeBins(y, { signal: d })).features;
1296
1296
  }
1297
- } catch (p) {
1298
- const y = o ?? (await Ft(
1297
+ } catch (y) {
1298
+ const p = o ?? (await Ft(
1299
1299
  Xe(document.documentElement).t9nLocale,
1300
1300
  bt("./assets/common/t9n"),
1301
1301
  "messages."
1302
1302
  )).errorStrings;
1303
- throw new ue(de.QueryFeaturesError, y.errors.queryError, p);
1303
+ throw new ue(de.QueryFeaturesError, p.errors.queryError, y);
1304
1304
  }
1305
1305
  }
1306
1306
  if (m === !1) {
@@ -1321,13 +1321,13 @@ async function gs(t) {
1321
1321
  async function St(t) {
1322
1322
  const { queryObject: e, queryConfig: i, category: r, splitByField: a, num: n, chartLimits: s, errorStrings: o, abortKey: l, abortSignal: u } = t, c = a !== void 0, d = r !== Zt ? [r] : [];
1323
1323
  c && d.push(a);
1324
- const f = j(e), { idField: m, isTraditionalTypeOID: g } = Ae(f), p = g ? m : "*", y = {
1324
+ const f = j(e), { idField: m, isTraditionalTypeOID: g } = Ae(f), y = g ? m : "*", p = {
1325
1325
  ...i,
1326
1326
  groupByFieldsForStatistics: Array.from(new Set(d)),
1327
1327
  outStatistics: [
1328
1328
  {
1329
1329
  statisticType: O.Count,
1330
- onStatisticField: p,
1330
+ onStatisticField: y,
1331
1331
  // Generating an out stat field name. Letting it to COUNT only can fail the query on arcObject layers
1332
1332
  outStatisticFieldName: `${O.Count}_OBJECTID`
1333
1333
  }
@@ -1339,11 +1339,11 @@ async function St(t) {
1339
1339
  // state, using the `returnDistinctValues` on a specific field.
1340
1340
  // Refer to: https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8208
1341
1341
  num: n ?? s?.maxBarThreePlusSeriesCountTotal ?? s?.serialChart?.elements
1342
- }, S = await xe({
1342
+ }, F = await xe({
1343
1343
  queryObject: e,
1344
1344
  featureCount: 1,
1345
1345
  // skipping the count
1346
- queryConfig: y,
1346
+ queryConfig: p,
1347
1347
  returnStatisticsAggregatedIds: !1,
1348
1348
  errorStrings: o,
1349
1349
  abortKey: l,
@@ -1351,7 +1351,7 @@ async function St(t) {
1351
1351
  });
1352
1352
  return Array.from(
1353
1353
  new Set(
1354
- S.map((T) => T.attributes[c ? a : r])
1354
+ F.map((T) => T.attributes[c ? a : r])
1355
1355
  )
1356
1356
  ).sort((T, C) => typeof T == "string" && typeof C == "string" ? T.localeCompare(C) : Number(T) - Number(C));
1357
1357
  }
@@ -1452,28 +1452,28 @@ function vt(t) {
1452
1452
  chartConfig: u
1453
1453
  } = t;
1454
1454
  if (e !== void 0 && e.length > 1) {
1455
- const c = i === oe.Descending && a !== !0, d = G(u.series) === F.BarAndLineSplitByNoAggregation, f = u.series?.[0], m = d ? re(f?.query?.where) : "", g = d && f !== void 0 && "y" in f && typeof f.y == "string" ? f.y : "";
1456
- e.sort((p, y) => {
1457
- let S = 0, b = m !== "" && g !== "" ? (
1455
+ const c = i === oe.Descending && a !== !0, d = G(u.series) === S.BarAndLineSplitByNoAggregation, f = u.series?.[0], m = d ? re(f?.query?.where) : "", g = d && f !== void 0 && "y" in f && typeof f.y == "string" ? f.y : "";
1456
+ e.sort((y, p) => {
1457
+ let F = 0, b = m !== "" && g !== "" ? (
1458
1458
  // using String(dataItems[splitByField]) to preserve both null and undefined values like y_null and y_undefined
1459
- p[`${g}_${String(p[m])}`]
1460
- ) : p[r];
1459
+ y[`${g}_${String(y[m])}`]
1460
+ ) : y[r];
1461
1461
  s === !0 && !l && (b = Yi({
1462
- value: `${p[r]?.toString()}`,
1463
- dataContext: p,
1462
+ value: `${y[r]?.toString()}`,
1463
+ dataContext: y,
1464
1464
  specificField: o ? B.xAxisField : B.originalXValue
1465
1465
  }));
1466
1466
  let T = m !== "" && g !== "" ? (
1467
1467
  // using String(dataItems[splitByField]) to preserve both null and undefined values like y_null and y_undefined
1468
- y[`${g}_${String(y[m])}`]
1469
- ) : y[r];
1468
+ p[`${g}_${String(p[m])}`]
1469
+ ) : p[r];
1470
1470
  s === !0 && !l && (T = Yi({
1471
- value: `${y[r]?.toString()}`,
1472
- dataContext: y,
1471
+ value: `${p[r]?.toString()}`,
1472
+ dataContext: p,
1473
1473
  specificField: o ? B.xAxisField : B.originalXValue
1474
1474
  })), n === !0 && c && s === !0 && (b = Number.isNaN(Number.parseFloat(`${b?.toString()}`)) ? b : Number.parseFloat(b), T = Number.isNaN(Number.parseFloat(`${T?.toString()}`)) ? T : Number.parseFloat(T));
1475
- const C = p[B.originalXValue] === null || p[Vt.defaultGroupOfSlicesId] === !0, x = y[B.originalXValue] === null || y[Vt.defaultGroupOfSlicesId] === !0;
1476
- return C && !x ? S = 1 : !C && x ? S = -1 : typeof b == "string" && typeof T == "string" ? (S = b.localeCompare(T, void 0, { numeric: !0 }), c && (S *= -1)) : b === void 0 ? S = c ? -1 : 1 : T === void 0 ? S = c ? 1 : -1 : b !== null && T !== null && (b > T ? S = c ? -1 : 1 : b < T && (S = c ? 1 : -1)), S;
1475
+ const C = y[B.originalXValue] === null || y[Vt.defaultGroupOfSlicesId] === !0, x = p[B.originalXValue] === null || p[Vt.defaultGroupOfSlicesId] === !0;
1476
+ return C && !x ? F = 1 : !C && x ? F = -1 : typeof b == "string" && typeof T == "string" ? (F = b.localeCompare(T, void 0, { numeric: !0 }), c && (F *= -1)) : b === void 0 ? F = c ? -1 : 1 : T === void 0 ? F = c ? 1 : -1 : b !== null && T !== null && (b > T ? F = c ? -1 : 1 : b < T && (F = c ? 1 : -1)), F;
1477
1477
  });
1478
1478
  }
1479
1479
  }
@@ -1556,9 +1556,9 @@ function Ni(t, e) {
1556
1556
  maxLineTwoSeriesCountTotal: f,
1557
1557
  maxLineThreePlusSeriesCountPerSeries: m,
1558
1558
  maxLineThreePlusSeriesCountTotal: g,
1559
- maxPieChartSliceCountTotal: p,
1560
- maxGaugeByFeaturesLimit: y,
1561
- maxRadarChartSeriesCount: S,
1559
+ maxPieChartSliceCountTotal: y,
1560
+ maxGaugeByFeaturesLimit: p,
1561
+ maxRadarChartSeriesCount: F,
1562
1562
  maxRadarUniqueSeriesCountTotal: b,
1563
1563
  maxRadarTwoSeriesCountPerSeries: T,
1564
1564
  maxRadarTwoSeriesCountTotal: C,
@@ -1595,7 +1595,7 @@ function Ni(t, e) {
1595
1595
  })));
1596
1596
  break;
1597
1597
  case h.RadarSeries:
1598
- P <= (S ?? N) && (P === 1 ? i = b ?? L : P === 2 ? i = lt({
1598
+ P <= (F ?? N) && (P === 1 ? i = b ?? L : P === 2 ? i = lt({
1599
1599
  countTotal: C ?? L,
1600
1600
  countPerSeries: T,
1601
1601
  numberOfSeries: P
@@ -1606,10 +1606,10 @@ function Ni(t, e) {
1606
1606
  })));
1607
1607
  break;
1608
1608
  case h.PieSeries:
1609
- i = p ?? M;
1609
+ i = y ?? M;
1610
1610
  break;
1611
1611
  case h.GaugeSeries:
1612
- i = y ?? w;
1612
+ i = p ?? w;
1613
1613
  break;
1614
1614
  case h.HeatSeries:
1615
1615
  i = A ?? D;
@@ -1620,7 +1620,7 @@ function Ni(t, e) {
1620
1620
  // handled through the number of bins
1621
1621
  case h.BoxPlotSeries:
1622
1622
  }
1623
- return (E === F.BarAndLineNoAggregation || E === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / P)), i;
1623
+ return (E === S.BarAndLineNoAggregation || E === S.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / P)), i;
1624
1624
  }
1625
1625
  function Zi(t, e) {
1626
1626
  let i = t;
@@ -1727,11 +1727,11 @@ function df(t) {
1727
1727
  }).filter((u) => u !== void 0), a;
1728
1728
  }
1729
1729
  function mi(t) {
1730
- return t !== F.PieNoAggregation && t !== F.BarAndLineNoAggregation && t !== F.BarAndLineSplitByNoAggregation;
1730
+ return t !== S.PieNoAggregation && t !== S.BarAndLineNoAggregation && t !== S.BarAndLineSplitByNoAggregation;
1731
1731
  }
1732
1732
  function Ts(t) {
1733
1733
  const e = G(t.series);
1734
- return e === F.BarAndLineFromFields || e === F.PieFromFields || e === F.BoxPlotC1MonoField || e === F.BoxPlotC2MultiFields || e === F.BoxPlotC5MonoFieldAndSplitBy || e === F.BoxPlotC6MultiFieldsAndSplitBy;
1734
+ return e === S.BarAndLineFromFields || e === S.PieFromFields || e === S.BoxPlotC1MonoField || e === S.BoxPlotC2MultiFields || e === S.BoxPlotC5MonoFieldAndSplitBy || e === S.BoxPlotC6MultiFieldsAndSplitBy;
1735
1735
  }
1736
1736
  function Ke(t) {
1737
1737
  return me(t) ? t?.showMean ?? !1 : !1;
@@ -1868,12 +1868,12 @@ async function Os(t) {
1868
1868
  dataFormat: f,
1869
1869
  outputFormat: m,
1870
1870
  typeKey: g,
1871
- typeValue: p,
1872
- fieldValue: y,
1873
- slopePropertyList: S,
1871
+ typeValue: y,
1872
+ fieldValue: p,
1873
+ slopePropertyList: F,
1874
1874
  interceptPropertyList: b,
1875
1875
  r2PropertyList: T
1876
- } = ws, C = `[{"${g}": "${p}", "${y}":"${l},${u}"}]`, x = await ss({
1876
+ } = ws, C = `[{"${g}": "${y}", "${p}":"${l},${u}"}]`, x = await ss({
1877
1877
  queryObject: i,
1878
1878
  queryConfig: a,
1879
1879
  outputFormat: m,
@@ -1884,7 +1884,7 @@ async function Os(t) {
1884
1884
  });
1885
1885
  if (x !== void 0) {
1886
1886
  let v = Number.NaN, A = Number.NaN;
1887
- const { expr: N } = qt(x, S), { expr: L } = qt(x, b), { expr: M } = qt(x, T);
1887
+ const { expr: N } = qt(x, F), { expr: L } = qt(x, b), { expr: M } = qt(x, T);
1888
1888
  N !== void 0 && Number.isFinite(x[N]) && (v = x[N]), L !== void 0 && Number.isFinite(x[L]) && (A = x[L]), M !== void 0 && Number.isFinite(x[M]) && (c = x[M]);
1889
1889
  const { dataContextXMinField: w, dataContextXMaxField: D, dataContextYMinField: I, dataContextYMaxField: P } = B.scatterplotAggregationFields, E = e.get(w) ?? Number.NaN, z = e.get(D) ?? Number.NaN, Q = e.get(I) ?? Number.NaN, q = e.get(P) ?? Number.NaN, X = (z - E) / 100;
1890
1890
  let K = E - X, k = Number.NaN;
@@ -2005,16 +2005,16 @@ async function qs(t) {
2005
2005
  chartConfig: e,
2006
2006
  orderBy: oe.Ascending
2007
2007
  });
2008
- const p = /* @__PURE__ */ new Map(), { r2: y, trendLinePoints: S } = s !== !1 ? await jr({
2008
+ const y = /* @__PURE__ */ new Map(), { r2: p, trendLinePoints: F } = s !== !1 ? await jr({
2009
2009
  data: g,
2010
- statsMap: p,
2010
+ statsMap: y,
2011
2011
  queryConfig: i,
2012
2012
  queryObject: r,
2013
2013
  chartConfig: e,
2014
2014
  errorStrings: o,
2015
2015
  abortSignal: u
2016
2016
  }) : B.scatterplotSeries;
2017
- return { dataItems: g, r2: y, trendLinePoints: S };
2017
+ return { dataItems: g, r2: p, trendLinePoints: F };
2018
2018
  }
2019
2019
  const Vs = (t) => ({
2020
2020
  x: t.series[0].x,
@@ -2028,8 +2028,8 @@ function ks(t) {
2028
2028
  if (o !== void 0 && l !== void 0 && o !== l) {
2029
2029
  let u = Number.MAX_SAFE_INTEGER, c = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER;
2030
2030
  r.forEach((m) => {
2031
- const g = m[n], p = m[s];
2032
- typeof g == "number" && (g < u && (u = g), g > c && (c = g)), typeof p == "number" && (p < d && (d = p), p > f && (f = p));
2031
+ const g = m[n], y = m[s];
2032
+ typeof g == "number" && (g < u && (u = g), g > c && (c = g)), typeof y == "number" && (y < d && (d = y), y > f && (f = y));
2033
2033
  }), u !== Number.MAX_SAFE_INTEGER && c !== Number.MIN_SAFE_INTEGER && d !== Number.MAX_SAFE_INTEGER && f !== Number.MIN_SAFE_INTEGER && (a = {
2034
2034
  xBandId: o,
2035
2035
  yBandId: l,
@@ -2373,13 +2373,13 @@ async function eo(t) {
2373
2373
  const g = await gt(m, l);
2374
2374
  if (!g)
2375
2375
  throw new Error("Raster info is not available for the layer.");
2376
- let p = it(i.geometry);
2377
- const y = Qt(m, c);
2378
- if (y < 0)
2376
+ let y = it(i.geometry);
2377
+ const p = Qt(m, c);
2378
+ if (p < 0)
2379
2379
  throw new Error("Band ID not found for `${x}`.");
2380
- let S, b;
2381
- if (!a && (d === void 0 || d === te.None) && !(Ye(m) && At(m)) && f && Array.isArray(g.histograms) && g.histograms.length > y && g.histograms[y].size % f === 0 && Array.isArray(g.statistics) && g?.statistics?.length > y)
2382
- S = g.histograms[y], b = g.statistics[y];
2380
+ let F, b;
2381
+ if (!a && (d === void 0 || d === te.None) && !(Ye(m) && At(m)) && f && Array.isArray(g.histograms) && g.histograms.length > p && g.histograms[p].size % f === 0 && Array.isArray(g.statistics) && g?.statistics?.length > p)
2382
+ F = g.histograms[p], b = g.statistics[p];
2383
2383
  else {
2384
2384
  let T, C, x;
2385
2385
  if (a && n)
@@ -2387,10 +2387,10 @@ async function eo(t) {
2387
2387
  else {
2388
2388
  const A = Js, N = 2;
2389
2389
  let L = g.width, M = g.height;
2390
- if (!a && !p && Ye(m) && At(m))
2390
+ if (!a && !y && Ye(m) && At(m))
2391
2391
  try {
2392
2392
  const I = m.createQuery(), { extent: P } = await m.queryExtent(I, { signal: l });
2393
- P && (L = P.width, M = P.height, p = P);
2393
+ P && (L = P.width, M = P.height, y = P);
2394
2394
  } catch {
2395
2395
  }
2396
2396
  const w = Math.max(
@@ -2408,8 +2408,8 @@ async function eo(t) {
2408
2408
  const A = Ks(d), N = await Nn(
2409
2409
  m,
2410
2410
  {
2411
- bandIds: [y],
2412
- geometry: p ?? g.extent,
2411
+ bandIds: [p],
2412
+ geometry: y ?? g.extent,
2413
2413
  histogramSize: f ?? void 0,
2414
2414
  pixelSize: v,
2415
2415
  transformType: A,
@@ -2417,13 +2417,13 @@ async function eo(t) {
2417
2417
  },
2418
2418
  { signal: l }
2419
2419
  );
2420
- b = N.statistics[0], S = N.histograms[0];
2420
+ b = N.statistics[0], F = N.histograms[0];
2421
2421
  } catch (A) {
2422
2422
  if (!Ti.isAbortError(A))
2423
2423
  throw new ue(de.Default, "Failed to compute raster histogram.", A);
2424
2424
  }
2425
2425
  }
2426
- return { histogram: S, statistics: b };
2426
+ return { histogram: F, statistics: b };
2427
2427
  }
2428
2428
  function to(t, e) {
2429
2429
  const i = [], r = (t.max - t.min) / t.size;
@@ -2529,15 +2529,15 @@ function ao(t) {
2529
2529
  } : void 0;
2530
2530
  }
2531
2531
  const ta = [
2532
- F.BarAndLineMonoField,
2533
- F.BarAndLineMultiFields,
2534
- F.PieNoAggregation,
2535
- F.PieFromCategory,
2536
- F.BoxPlotC3MonoFieldAndCategory,
2537
- F.BoxPlotC4MultiFieldsAndCategory,
2538
- F.BoxPlotC7MonoFieldAndCategoryAndSplitBy,
2539
- F.BarAndLineNoAggregation,
2540
- F.BarAndLineSplitByNoAggregation
2532
+ S.BarAndLineMonoField,
2533
+ S.BarAndLineMultiFields,
2534
+ S.PieNoAggregation,
2535
+ S.PieFromCategory,
2536
+ S.BoxPlotC3MonoFieldAndCategory,
2537
+ S.BoxPlotC4MultiFieldsAndCategory,
2538
+ S.BoxPlotC7MonoFieldAndCategoryAndSplitBy,
2539
+ S.BarAndLineNoAggregation,
2540
+ S.BarAndLineSplitByNoAggregation
2541
2541
  ], tr = 1e4, wt = 1e4;
2542
2542
  function no(t = te.None, e) {
2543
2543
  return t === te.None || t === te.Log && e > 0 || t === te.Sqrt && e >= 0;
@@ -2583,7 +2583,7 @@ function ra(t) {
2583
2583
  return e;
2584
2584
  }
2585
2585
  async function lo(t) {
2586
- const { queryObject: e, fieldName: i, queryConfig: r, errorStrings: a, abortKey: n, abortSignal: s } = t, o = j(e), { idField: l, isTraditionalTypeOID: u } = Ae(o), c = u ? l : "*", d = `${O.Count}_${l}`, f = `${O.Count}_${i}`, m = `${O.Minimum}_${i}`, g = `${O.Maximum}_${i}`, p = {
2586
+ const { queryObject: e, fieldName: i, queryConfig: r, errorStrings: a, abortKey: n, abortSignal: s } = t, o = j(e), { idField: l, isTraditionalTypeOID: u } = Ae(o), c = u ? l : "*", d = `${O.Count}_${l}`, f = `${O.Count}_${i}`, m = `${O.Minimum}_${i}`, g = `${O.Maximum}_${i}`, y = {
2587
2587
  ...r,
2588
2588
  outStatistics: [
2589
2589
  {
@@ -2607,32 +2607,30 @@ async function lo(t) {
2607
2607
  outStatisticFieldName: g
2608
2608
  }
2609
2609
  ]
2610
- }, y = await Lt({
2610
+ }, p = await Lt({
2611
2611
  queryObject: e,
2612
- queryConfig: p,
2612
+ queryConfig: y,
2613
2613
  errorStrings: a,
2614
2614
  abortKey: n,
2615
2615
  abortSignal: s
2616
- }), S = y.get(d) ?? Number.NaN, b = y.get(f) ?? Number.NaN, T = y.get(m) ?? Number.NaN, C = y.get(g) ?? Number.NaN;
2617
- return { countExcludingNulls: b, countIncludingNulls: S, min: T, max: C };
2616
+ }), F = p.get(d) ?? Number.NaN, b = p.get(f) ?? Number.NaN, T = p.get(m) ?? Number.NaN, C = p.get(g) ?? Number.NaN;
2617
+ return { countExcludingNulls: b, countIncludingNulls: F, min: T, max: C };
2618
2618
  }
2619
2619
  async function co(t) {
2620
- const { queryConfig: e, chartConfig: i, queryObject: r, errorStrings: a, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: l, dataTransformationType: u } = o;
2621
- let c = [];
2622
- const { countIncludingNulls: d, countExcludingNulls: f, min: m, max: g } = await lo({
2620
+ const { queryConfig: e, chartConfig: i, queryObject: r, errorStrings: a, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: l, dataTransformationType: u } = o, { countIncludingNulls: c, countExcludingNulls: d, min: f, max: m } = await lo({
2623
2621
  queryObject: r,
2624
2622
  queryConfig: e,
2625
2623
  fieldName: l,
2626
2624
  errorStrings: a,
2627
2625
  abortKey: n,
2628
2626
  abortSignal: s
2629
- }), p = no(u, m), y = f < 2 || m === g, S = { ...e };
2630
- return S.where = J([S.where, `${l} is not null`]), {
2631
- rawData: c,
2632
- dataCompatibleWithTransformation: p,
2633
- dataCountIncompatible: y,
2634
- countExcludingNulls: f,
2635
- countIncludingNulls: d
2627
+ });
2628
+ return {
2629
+ dataCompatibleWithTransformation: no(u, f),
2630
+ dataCountIncompatible: d < 2 || f === m,
2631
+ // We need 2+ features to make a histogram and min different from max
2632
+ countExcludingNulls: d,
2633
+ countIncludingNulls: c
2636
2634
  };
2637
2635
  }
2638
2636
  function uo(t) {
@@ -2656,16 +2654,7 @@ function fo(t) {
2656
2654
  }), c.filter = n, c;
2657
2655
  }
2658
2656
  function mo(t) {
2659
- const {
2660
- seriesConfig: e,
2661
- layer: i,
2662
- view: r,
2663
- minValue: a,
2664
- maxValue: n,
2665
- featureFilter: s,
2666
- queryConfig: o,
2667
- abortSignal: l
2668
- } = t, { x: u, binCount: c, dataTransformationType: d } = e;
2657
+ const { seriesConfig: e, layer: i, view: r, minValue: a, maxValue: n, featureFilter: s, queryConfig: o, abortSignal: l } = t, { x: u, binCount: c, dataTransformationType: d } = e;
2669
2658
  let f = {
2670
2659
  layer: i,
2671
2660
  view: r,
@@ -2717,30 +2706,30 @@ async function po(t) {
2717
2706
  const m = j(r);
2718
2707
  if (!Jn(m))
2719
2708
  return { valid: !1 };
2720
- const g = it(i?.geometry)?.extent?.toJSON() !== void 0, p = yo({ view: s, queryConfig: i, layer: m, ignoreViewExtent: o }), y = fo({
2709
+ const g = it(i?.geometry)?.extent?.toJSON() !== void 0, y = yo({ view: s, queryConfig: i, layer: m, ignoreViewExtent: o }), p = fo({
2721
2710
  seriesConfig: c,
2722
2711
  layer: m,
2723
2712
  view: s,
2724
2713
  useFeaturesInView: g,
2725
- featureFilter: p,
2714
+ featureFilter: y,
2726
2715
  queryConfig: i,
2727
2716
  abortSignal: u
2728
2717
  });
2729
- let S;
2730
- y.outStatisticTypes = { exclude: ["median"] };
2718
+ let F;
2719
+ p.outStatisticTypes = { exclude: ["median"] };
2731
2720
  try {
2732
- S = await Xi(y);
2721
+ F = await Xi(p);
2733
2722
  } catch (L) {
2734
2723
  throw new ue(de.QueryFeaturesError, l.errors.queryError, L);
2735
2724
  }
2736
- y.outStatisticTypes = { include: ["median"] };
2725
+ p.outStatisticTypes = { include: ["median"] };
2737
2726
  try {
2738
- const L = await Xi(y);
2739
- L?.median && (S.median = L.median);
2727
+ const L = await Xi(p);
2728
+ L?.median && (F.median = L.median);
2740
2729
  } catch {
2741
2730
  }
2742
- S = uo(S);
2743
- const { avg: b, count: T, stddev: C, min: x, max: v, sum: A, median: N } = S;
2731
+ F = uo(F);
2732
+ const { avg: b, count: T, stddev: C, min: x, max: v, sum: A, median: N } = F;
2744
2733
  if (T === 0)
2745
2734
  f = {
2746
2735
  ...ia(d)
@@ -2752,8 +2741,7 @@ async function po(t) {
2752
2741
  view: s,
2753
2742
  minValue: oo(x),
2754
2743
  maxValue: v,
2755
- valueExpression: y.valueExpression,
2756
- featureFilter: p,
2744
+ featureFilter: y,
2757
2745
  queryConfig: i,
2758
2746
  abortSignal: u
2759
2747
  });
@@ -2792,13 +2780,7 @@ async function aa(t) {
2792
2780
  if (ee(r))
2793
2781
  d = await io(t);
2794
2782
  else {
2795
- const {
2796
- rawData: f,
2797
- dataCompatibleWithTransformation: m,
2798
- dataCountIncompatible: g,
2799
- countIncludingNulls: p,
2800
- countExcludingNulls: y
2801
- } = await co({
2783
+ const { dataCompatibleWithTransformation: f, dataCountIncompatible: m, countIncludingNulls: g, countExcludingNulls: y } = await co({
2802
2784
  queryObject: r,
2803
2785
  chartConfig: e,
2804
2786
  queryConfig: i,
@@ -2806,11 +2788,11 @@ async function aa(t) {
2806
2788
  abortKey: a,
2807
2789
  abortSignal: n
2808
2790
  });
2809
- d = { valid: !0 }, !m || g ? d = ia(c.dataTransformationType, g) : d = await po({
2791
+ d = { valid: !0 }, !f || m ? d = ia(c.dataTransformationType, m) : d = await po({
2810
2792
  chartConfig: e,
2811
2793
  queryObject: r,
2812
2794
  queryConfig: i,
2813
- countIncludingNulls: p,
2795
+ countIncludingNulls: g,
2814
2796
  countExcludingNulls: y,
2815
2797
  view: o,
2816
2798
  ignoreViewExtent: l,
@@ -3075,17 +3057,17 @@ function Kf(t) {
3075
3057
  errorStrings: c
3076
3058
  } = t, d = ee(n);
3077
3059
  let f = c.errors.defaultInvalidChart, m;
3078
- const g = new Intl.NumberFormat(o), p = Qe(i), {
3079
- maxCategoryCount: y,
3080
- serialChart: { categories: S }
3081
- } = p;
3060
+ const g = new Intl.NumberFormat(o), y = Qe(i), {
3061
+ maxCategoryCount: p,
3062
+ serialChart: { categories: F }
3063
+ } = y;
3082
3064
  let b = c.modalHeaders.invalidChart;
3083
3065
  switch (e) {
3084
3066
  case W.BarElementExceedsLimit:
3085
3067
  {
3086
3068
  b = c.modalHeaders.tooManyFeatures;
3087
3069
  let C = Number.NaN, x = Number.NaN, v = "";
3088
- a !== void 0 && (a <= (p.maxBarChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = c.errors.uniqueSeriesBarCountCannotExceedLimit, C = p.maxBarUniqueSeriesCountTotal ?? p.serialChart?.elements) : a === 2 ? (v = c.errors.twoSeriesBarCountCannotExceedLimit, C = p.maxBarTwoSeriesCountTotal ?? p.serialChart?.elements, x = p.maxBarTwoSeriesCountPerSeries) : a > 2 && (v = c.errors.threePlusSeriesBarCountCannotExceedLimit, C = p.maxBarThreePlusSeriesCountTotal ?? p.serialChart?.elements, x = p.maxBarThreePlusSeriesCountPerSeries) : (v = c.errors.barSeriesCountCannotExceedLimit, x = p.maxBarChartSeriesCount ?? p.serialChart?.series));
3070
+ a !== void 0 && (a <= (y.maxBarChartSeriesCount ?? y.serialChart?.series) ? a === 1 ? (v = c.errors.uniqueSeriesBarCountCannotExceedLimit, C = y.maxBarUniqueSeriesCountTotal ?? y.serialChart?.elements) : a === 2 ? (v = c.errors.twoSeriesBarCountCannotExceedLimit, C = y.maxBarTwoSeriesCountTotal ?? y.serialChart?.elements, x = y.maxBarTwoSeriesCountPerSeries) : a > 2 && (v = c.errors.threePlusSeriesBarCountCannotExceedLimit, C = y.maxBarThreePlusSeriesCountTotal ?? y.serialChart?.elements, x = y.maxBarThreePlusSeriesCountPerSeries) : (v = c.errors.barSeriesCountCannotExceedLimit, x = y.maxBarChartSeriesCount ?? y.serialChart?.series));
3089
3071
  const A = g.format(C), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
3090
3072
  f = Ce(v, {
3091
3073
  totalLimit: A,
@@ -3102,7 +3084,7 @@ function Kf(t) {
3102
3084
  {
3103
3085
  b = c.modalHeaders.tooManyFeatures;
3104
3086
  let C = Number.NaN, x = Number.NaN, v = "";
3105
- a !== void 0 && (a <= (p.maxLineChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = l ? c.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : c.errors.uniqueSeriesLineCountCannotExceedLimit, C = p.maxLineUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = l ? c.errors.twoTemporalSeriesLineCountCannotExceedLimit : c.errors.twoSeriesLineCountCannotExceedLimit, C = p.maxLineTwoSeriesCountTotal ?? p.serialChart.elements, x = p.maxLineTwoSeriesCountPerSeries) : a > 2 && (v = l ? c.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : c.errors.threePlusSeriesLineCountCannotExceedLimit, C = p.maxLineThreePlusSeriesCountTotal ?? p.serialChart.elements, x = p.maxLineThreePlusSeriesCountPerSeries) : (v = c.errors.lineSeriesCountCannotExceedLimit, x = p.maxLineChartSeriesCount ?? p.serialChart?.series));
3087
+ a !== void 0 && (a <= (y.maxLineChartSeriesCount ?? y.serialChart?.series) ? a === 1 ? (v = l ? c.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : c.errors.uniqueSeriesLineCountCannotExceedLimit, C = y.maxLineUniqueSeriesCountTotal ?? y.serialChart.elements) : a === 2 ? (v = l ? c.errors.twoTemporalSeriesLineCountCannotExceedLimit : c.errors.twoSeriesLineCountCannotExceedLimit, C = y.maxLineTwoSeriesCountTotal ?? y.serialChart.elements, x = y.maxLineTwoSeriesCountPerSeries) : a > 2 && (v = l ? c.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : c.errors.threePlusSeriesLineCountCannotExceedLimit, C = y.maxLineThreePlusSeriesCountTotal ?? y.serialChart.elements, x = y.maxLineThreePlusSeriesCountPerSeries) : (v = c.errors.lineSeriesCountCannotExceedLimit, x = y.maxLineChartSeriesCount ?? y.serialChart?.series));
3106
3088
  const A = g.format(C), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
3107
3089
  f = Ce(v, {
3108
3090
  elementCount: L,
@@ -3119,7 +3101,7 @@ function Kf(t) {
3119
3101
  {
3120
3102
  b = c.modalHeaders.tooManyFeatures;
3121
3103
  let C = Number.NaN, x = Number.NaN, v = "";
3122
- a !== void 0 && (a <= (p.maxRadarChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = c.errors.uniqueSeriesRadarCountCannotExceedLimit, C = p.maxRadarUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = c.errors.twoSeriesRadarCountCannotExceedLimit, C = p.maxRadarTwoSeriesCountTotal ?? p.serialChart.elements, x = p.maxRadarTwoSeriesCountPerSeries) : a > 2 && (v = c.errors.threePlusSeriesRadarCountCannotExceedLimit, C = p.maxRadarThreePlusSeriesCountTotal ?? p.serialChart.elements, x = p.maxRadarThreePlusSeriesCountPerSeries) : (v = c.errors.radarSeriesCountCannotExceedLimit, x = p.maxRadarChartSeriesCount ?? p.serialChart?.series));
3104
+ a !== void 0 && (a <= (y.maxRadarChartSeriesCount ?? y.serialChart?.series) ? a === 1 ? (v = c.errors.uniqueSeriesRadarCountCannotExceedLimit, C = y.maxRadarUniqueSeriesCountTotal ?? y.serialChart.elements) : a === 2 ? (v = c.errors.twoSeriesRadarCountCannotExceedLimit, C = y.maxRadarTwoSeriesCountTotal ?? y.serialChart.elements, x = y.maxRadarTwoSeriesCountPerSeries) : a > 2 && (v = c.errors.threePlusSeriesRadarCountCannotExceedLimit, C = y.maxRadarThreePlusSeriesCountTotal ?? y.serialChart.elements, x = y.maxRadarThreePlusSeriesCountPerSeries) : (v = c.errors.radarSeriesCountCannotExceedLimit, x = y.maxRadarChartSeriesCount ?? y.serialChart?.series));
3123
3105
  const A = g.format(C), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
3124
3106
  f = Ce(v, {
3125
3107
  elementCount: L,
@@ -3136,7 +3118,7 @@ function Kf(t) {
3136
3118
  {
3137
3119
  b = c.modalHeaders.tooManyFeatures;
3138
3120
  let C = Number.NaN, x = Number.NaN, v = "";
3139
- a !== void 0 && (a <= (p.maxBoxPlotSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = c.errors.uniqueSeriesBoxCountCannotExceedLimit, C = p.maxBoxUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = c.errors.twoSeriesBoxCountCannotExceedLimit, C = p.maxBoxTwoSeriesCountTotal ?? p.serialChart.elements, x = p.maxBoxTwoSeriesCountPerSeries) : a > 2 && (v = c.errors.threePlusBoxLineCountCannotExceedLimit, C = p.maxBoxThreePlusSeriesCountTotal ?? p.serialChart.elements, x = p.maxBoxThreePlusSeriesCountPerSeries) : (v = c.errors.boxSeriesCountCannotExceedLimit, x = p.maxBoxPlotSeriesCount ?? p.serialChart.series));
3121
+ a !== void 0 && (a <= (y.maxBoxPlotSeriesCount ?? y.serialChart?.series) ? a === 1 ? (v = c.errors.uniqueSeriesBoxCountCannotExceedLimit, C = y.maxBoxUniqueSeriesCountTotal ?? y.serialChart.elements) : a === 2 ? (v = c.errors.twoSeriesBoxCountCannotExceedLimit, C = y.maxBoxTwoSeriesCountTotal ?? y.serialChart.elements, x = y.maxBoxTwoSeriesCountPerSeries) : a > 2 && (v = c.errors.threePlusBoxLineCountCannotExceedLimit, C = y.maxBoxThreePlusSeriesCountTotal ?? y.serialChart.elements, x = y.maxBoxThreePlusSeriesCountPerSeries) : (v = c.errors.boxSeriesCountCannotExceedLimit, x = y.maxBoxPlotSeriesCount ?? y.serialChart.series));
3140
3122
  const A = g.format(C), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
3141
3123
  f = Ce(v, {
3142
3124
  elementCount: L,
@@ -3152,7 +3134,7 @@ function Kf(t) {
3152
3134
  case W.BoxPlotOutliersExceedsLimit:
3153
3135
  {
3154
3136
  b = c.modalHeaders.tooManyFeatures;
3155
- const C = c.errors.boxSeriesOutlierCannotExceedLimit, x = p.maxBoxPlotOutlierLimit ?? p.boxPlot?.outliers, v = g.format(x);
3137
+ const C = c.errors.boxSeriesOutlierCannotExceedLimit, x = y.maxBoxPlotOutlierLimit ?? y.boxPlot?.outliers, v = g.format(x);
3156
3138
  f = Ce(C, {
3157
3139
  totalLimit: v
3158
3140
  }), m = { actualCount: r ?? Number.NaN, totalLimit: x };
@@ -3161,7 +3143,7 @@ function Kf(t) {
3161
3143
  case W.HeatChartExceedsLimit:
3162
3144
  {
3163
3145
  b = c.modalHeaders.tooManyFeatures;
3164
- const C = c.errors.heatChartCannotExceedLimit, x = p.maxHeatChartCellLimit ?? p.heatChart?.cells, v = g.format(x), A = r !== void 0 ? g.format(r) : "";
3146
+ const C = c.errors.heatChartCannotExceedLimit, x = y.maxHeatChartCellLimit ?? y.heatChart?.cells, v = g.format(x), A = r !== void 0 ? g.format(r) : "";
3165
3147
  f = Ce(C, {
3166
3148
  featureCount: A,
3167
3149
  totalLimit: v
@@ -3174,7 +3156,7 @@ function Kf(t) {
3174
3156
  case W.PieChartExceedsLimit:
3175
3157
  {
3176
3158
  b = c.modalHeaders.tooManyFeatures;
3177
- const C = c.errors.pieChartSlicesCannotExceedLimit, x = p.maxPieChartSliceCountTotal ?? p.pieChart?.slices, v = g.format(x), A = r !== void 0 ? g.format(r) : "";
3159
+ const C = c.errors.pieChartSlicesCannotExceedLimit, x = y.maxPieChartSliceCountTotal ?? y.pieChart?.slices, v = g.format(x), A = r !== void 0 ? g.format(r) : "";
3178
3160
  f = Ce(C, {
3179
3161
  sliceCount: A,
3180
3162
  totalLimit: v
@@ -3187,7 +3169,7 @@ function Kf(t) {
3187
3169
  case W.GaugeExceedsLimit:
3188
3170
  {
3189
3171
  b = c.modalHeaders.tooManyFeatures;
3190
- const C = c.errors.gaugeCannotExceedLimit, x = p.maxGaugeByFeaturesLimit ?? p.gauge?.features, v = g.format(x), A = r !== void 0 ? g.format(r) : "";
3172
+ const C = c.errors.gaugeCannotExceedLimit, x = y.maxGaugeByFeaturesLimit ?? y.gauge?.features, v = g.format(x), A = r !== void 0 ? g.format(r) : "";
3191
3173
  f = Ce(C, {
3192
3174
  featureCount: A,
3193
3175
  totalLimit: v
@@ -3223,11 +3205,11 @@ function Kf(t) {
3223
3205
  break;
3224
3206
  case W.BadData:
3225
3207
  }
3226
- if (f === c.errors.defaultInvalidChart && (e === W.BarElementExceedsLimit || e === W.LineChartExceedsLimit || e === W.RadarChartExceedsLimit || e === W.HeatChartExceedsLimit || e === W.PieChartExceedsLimit || e === W.GaugeExceedsLimit || e === W.BoxPlotExceedsLimit) && typeof r == "number" && typeof a == "number" && r / a > (y ?? S)) {
3208
+ if (f === c.errors.defaultInvalidChart && (e === W.BarElementExceedsLimit || e === W.LineChartExceedsLimit || e === W.RadarChartExceedsLimit || e === W.HeatChartExceedsLimit || e === W.PieChartExceedsLimit || e === W.GaugeExceedsLimit || e === W.BoxPlotExceedsLimit) && typeof r == "number" && typeof a == "number" && r / a > (p ?? F)) {
3227
3209
  const C = r / a;
3228
3210
  f = Ce(c.errors.categoryCountCannotExceedLimit, {
3229
3211
  categoryCount: g.format(C),
3230
- maxCategoryCount: g.format(y ?? S)
3212
+ maxCategoryCount: g.format(p ?? F)
3231
3213
  });
3232
3214
  }
3233
3215
  return {
@@ -3264,33 +3246,33 @@ function wi(t) {
3264
3246
  y: r,
3265
3247
  chartSubType: i,
3266
3248
  splitByValue: a
3267
- }), p = e[g];
3268
- if (p != null) {
3269
- let y = Number(p);
3270
- if (Number.isFinite(y)) {
3249
+ }), y = e[g];
3250
+ if (y != null) {
3251
+ let p = Number(y);
3252
+ if (Number.isFinite(p)) {
3271
3253
  l = {
3272
3254
  ...l,
3273
3255
  key: m,
3274
3256
  showOutliers: !1,
3275
3257
  standardizeValues: !0
3276
3258
  };
3277
- let S = se(l);
3278
- if (o[S] = yi({ mean: d, stdDev: f, value: y }), m === R.Min || m === R.Max) {
3259
+ let F = se(l);
3260
+ if (o[F] = yi({ mean: d, stdDev: f, value: p }), m === R.Min || m === R.Max) {
3279
3261
  l = {
3280
3262
  ...l,
3281
3263
  key: m,
3282
3264
  showOutliers: !0,
3283
3265
  standardizeValues: !0
3284
- }, S = se(l), l = {
3266
+ }, F = se(l), l = {
3285
3267
  ...l,
3286
3268
  standardizeValues: !1,
3287
3269
  splitByValue: a
3288
3270
  };
3289
3271
  const b = se(l);
3290
- y = Number(e[b]), Number.isFinite(y) && (o[S] = yi({
3272
+ p = Number(e[b]), Number.isFinite(p) && (o[F] = yi({
3291
3273
  mean: d,
3292
3274
  stdDev: f,
3293
- value: y
3275
+ value: p
3294
3276
  }));
3295
3277
  }
3296
3278
  }
@@ -3304,7 +3286,7 @@ function Lo(t) {
3304
3286
  Object.keys(a).forEach((u) => {
3305
3287
  u.startsWith(o) ? l[u.replace(`${o}_`, "")] = a[u] : u.includes(B.rendererSymbolField) && (l[u] = a[u]), l[B.boxPlot.boxPlotCategory] = o, r && (l = wi({
3306
3288
  dataItem: l,
3307
- chartSubType: F.BoxPlotC2MultiFields
3289
+ chartSubType: S.BoxPlotC2MultiFields
3308
3290
  }));
3309
3291
  }), n.set(o, l);
3310
3292
  }), Array.from(n.values());
@@ -3332,7 +3314,7 @@ function Po(t) {
3332
3314
  f.startsWith(`${c}_`) ? d[`${u}_${f.replace(`${c}_`, "")}`] = m : f.includes(B.rendererSymbolField) || f === _.uniqueIds ? d[`${f}_${u}`] = m : f === B.boxPlot.boxPlotMeanLineMarkerId && (d[f] = l[f]);
3333
3315
  }), a && (d = wi({
3334
3316
  dataItem: d,
3335
- chartSubType: F.BoxPlotC6MultiFieldsAndSplitBy,
3317
+ chartSubType: S.BoxPlotC6MultiFieldsAndSplitBy,
3336
3318
  splitByValue: u,
3337
3319
  meanPerField: n?.[mt(c, O.Average)],
3338
3320
  stdDevPerField: n?.[mt(c, O.StandardDeviation)]
@@ -3349,7 +3331,7 @@ function Mo(t) {
3349
3331
  i.forEach((o) => {
3350
3332
  wi({
3351
3333
  dataItem: s,
3352
- chartSubType: F.BoxPlotC4MultiFieldsAndCategory,
3334
+ chartSubType: S.BoxPlotC4MultiFieldsAndCategory,
3353
3335
  y: o,
3354
3336
  meanPerField: a?.[mt(o, O.Average)],
3355
3337
  stdDevPerField: a?.[mt(o, O.StandardDeviation)]
@@ -3380,7 +3362,7 @@ function Io(t) {
3380
3362
  }
3381
3363
  function Oo(t, e) {
3382
3364
  const { series: i } = t, r = i[0], { y: a } = r, n = G(t.series), s = {
3383
- y: n === F.BoxPlotC4MultiFieldsAndCategory ? a : void 0,
3365
+ y: n === S.BoxPlotC4MultiFieldsAndCategory ? a : void 0,
3384
3366
  chartSubType: n
3385
3367
  }, o = t.series.map((l) => {
3386
3368
  let u = ce({
@@ -3441,24 +3423,24 @@ function ar(t) {
3441
3423
  return l === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : l === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [u, c, d].filter((m) => m !== void 0).join(" AND ");
3442
3424
  }
3443
3425
  function oa(t) {
3444
- const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === F.BoxPlotC1MonoField || a === F.BoxPlotC3MonoFieldAndCategory || a === F.BoxPlotC5MonoFieldAndSplitBy || a === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy ? void 0 : i, o = ut(s), l = [], u = [], { maxOperandsPerWhereClause: c } = Jt();
3426
+ const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === S.BoxPlotC1MonoField || a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy ? void 0 : i, o = ut(s), l = [], u = [], { maxOperandsPerWhereClause: c } = Jt();
3445
3427
  let d = [], f = [], m = 1;
3446
- return e.forEach((g, p) => {
3447
- const { outlierMinThreshold: y, outlierMaxThreshold: S } = Do(g, o);
3448
- if (typeof y == "number" && typeof S == "number") {
3428
+ return e.forEach((g, y) => {
3429
+ const { outlierMinThreshold: p, outlierMaxThreshold: F } = Do(g, o);
3430
+ if (typeof p == "number" && typeof F == "number") {
3449
3431
  const b = {
3450
3432
  yField: i,
3451
- outlierMinThreshold: y,
3452
- outlierMaxThreshold: S
3433
+ outlierMinThreshold: p,
3434
+ outlierMaxThreshold: F
3453
3435
  };
3454
- if ((a === F.BoxPlotC3MonoFieldAndCategory || a === F.BoxPlotC4MultiFieldsAndCategory || a === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (b.xField = r, b.xValue = Ai({
3436
+ if ((a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC4MultiFieldsAndCategory || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (b.xField = r, b.xValue = Ai({
3455
3437
  value: g[r],
3456
3438
  dataContext: g
3457
- })), (a === F.BoxPlotC5MonoFieldAndSplitBy || a === F.BoxPlotC6MultiFieldsAndSplitBy || a === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in g) {
3439
+ })), (a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC6MultiFieldsAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in g) {
3458
3440
  const T = g[n];
3459
3441
  (typeof T == "string" || typeof T == "number" || T instanceof Date || T === null) && (b.splitByField = n, b.splitByValue = T);
3460
3442
  }
3461
- d.push(ar({ ...b, target: "outliers" })), f.push(ar({ ...b, target: "alternativeData" })), (m % c === 0 || p === e.length - 1) && (l.push(J(d, "OR")), u.push(J(f, "OR")), d = [], f = []);
3443
+ d.push(ar({ ...b, target: "outliers" })), f.push(ar({ ...b, target: "alternativeData" })), (m % c === 0 || y === e.length - 1) && (l.push(J(d, "OR")), u.push(J(f, "OR")), d = [], f = []);
3462
3444
  }
3463
3445
  m += 1;
3464
3446
  }), { outliersFilterBatches: l, dataWithoutOutliersFilterBatches: u };
@@ -3468,12 +3450,12 @@ function Eo(t) {
3468
3450
  let l = s?.[mt(n, O.Average)], u = s?.[mt(n, O.StandardDeviation)];
3469
3451
  if (l === void 0 && u === void 0)
3470
3452
  switch (r) {
3471
- case F.BoxPlotC2MultiFields: {
3453
+ case S.BoxPlotC2MultiFields: {
3472
3454
  const c = ut(n), d = e[0];
3473
3455
  l = Number(d[c[R.Average]]), u = Number(d[c[R.StandardDeviation]]);
3474
3456
  break;
3475
3457
  }
3476
- case F.BoxPlotC4MultiFieldsAndCategory: {
3458
+ case S.BoxPlotC4MultiFieldsAndCategory: {
3477
3459
  const c = e.find((d) => d[a] === i[a]);
3478
3460
  if (c !== void 0) {
3479
3461
  const d = ut(n);
@@ -3481,7 +3463,7 @@ function Eo(t) {
3481
3463
  }
3482
3464
  break;
3483
3465
  }
3484
- case F.BoxPlotC6MultiFieldsAndSplitBy: {
3466
+ case S.BoxPlotC6MultiFieldsAndSplitBy: {
3485
3467
  const c = e.find((d) => d[o] === i[o]);
3486
3468
  if (c !== void 0) {
3487
3469
  const d = ut(n);
@@ -3493,9 +3475,9 @@ function Eo(t) {
3493
3475
  return { mean: l, stdDev: u };
3494
3476
  }
3495
3477
  async function Ro(t) {
3496
- const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: a, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: l } = t, u = G(e), c = e[0], { x: d } = c, f = re(c.query?.where), m = j(a), g = Ae(m).idField, p = le(e), y = [];
3497
- for (let T = 0; T < p.length; T += 1) {
3498
- const C = p[T], { outliersFilterBatches: x } = oa({
3478
+ const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: a, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: l } = t, u = G(e), c = e[0], { x: d } = c, f = re(c.query?.where), m = j(a), g = Ae(m).idField, y = le(e), p = [];
3479
+ for (let T = 0; T < y.length; T += 1) {
3480
+ const C = y[T], { outliersFilterBatches: x } = oa({
3499
3481
  data: i,
3500
3482
  yField: C,
3501
3483
  x: d,
@@ -3516,7 +3498,7 @@ async function Ro(t) {
3516
3498
  num: void 0,
3517
3499
  outFields: N
3518
3500
  };
3519
- y.push(
3501
+ p.push(
3520
3502
  xe({
3521
3503
  queryObject: a,
3522
3504
  queryConfig: L,
@@ -3531,9 +3513,9 @@ async function Ro(t) {
3531
3513
  }
3532
3514
  }
3533
3515
  }
3534
- const S = await Promise.all(y), b = /* @__PURE__ */ new Map();
3535
- for (let T = 0; T < S.length; T += 1) {
3536
- const C = S[T], x = p[T];
3516
+ const F = await Promise.all(p), b = /* @__PURE__ */ new Map();
3517
+ for (let T = 0; T < F.length; T += 1) {
3518
+ const C = F[T], x = y[T];
3537
3519
  C.forEach((v) => {
3538
3520
  const A = { ...v.attributes };
3539
3521
  if (A[x] !== void 0) {
@@ -3543,15 +3525,15 @@ async function Ro(t) {
3543
3525
  chartSubType: u
3544
3526
  };
3545
3527
  switch (u) {
3546
- case F.BoxPlotC5MonoFieldAndSplitBy:
3547
- case F.BoxPlotC6MultiFieldsAndSplitBy:
3548
- case F.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
3528
+ case S.BoxPlotC5MonoFieldAndSplitBy:
3529
+ case S.BoxPlotC6MultiFieldsAndSplitBy:
3530
+ case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
3549
3531
  N = {
3550
3532
  ...N,
3551
3533
  splitByValue: A[f]
3552
3534
  };
3553
3535
  break;
3554
- case F.BoxPlotC4MultiFieldsAndCategory:
3536
+ case S.BoxPlotC4MultiFieldsAndCategory:
3555
3537
  N = {
3556
3538
  ...N,
3557
3539
  y: x
@@ -3602,14 +3584,14 @@ async function qo(t) {
3602
3584
  abortSignal: u
3603
3585
  } = t;
3604
3586
  let c = [];
3605
- const { series: d, showMean: f } = n, m = Ei({ showMean: f, seriesConfig: d }), g = G(d), p = He(n), { x: y } = p, S = re(p.query?.where), b = [];
3587
+ const { series: d, showMean: f } = n, m = Ei({ showMean: f, seriesConfig: d }), g = G(d), y = He(n), { x: p } = y, F = re(y.query?.where), b = [];
3606
3588
  for (let C = 0; C < m.length; C += 1) {
3607
3589
  const x = m[C], { dataWithoutOutliersFilterBatches: v } = oa({
3608
3590
  data: e,
3609
3591
  yField: x,
3610
- x: y,
3592
+ x: p,
3611
3593
  chartSubType: g,
3612
- splitByField: S
3594
+ splitByField: F
3613
3595
  });
3614
3596
  for (let A = 0; A < v.length; A += 1) {
3615
3597
  const N = v[A], L = {
@@ -3640,33 +3622,33 @@ async function qo(t) {
3640
3622
  const T = await Promise.all(b);
3641
3623
  for (let C = 0; C < T.length; C += 1)
3642
3624
  c.push(...T[C]);
3643
- return g !== F.BoxPlotC7MonoFieldAndCategoryAndSplitBy && g !== F.BoxPlotC1MonoField && (c = Bt({
3625
+ return g !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && g !== S.BoxPlotC1MonoField && (c = Bt({
3644
3626
  data: c,
3645
- x: S !== void 0 && S !== "" ? S : y
3627
+ x: F !== void 0 && F !== "" ? F : p
3646
3628
  })), c;
3647
3629
  }
3648
3630
  async function Vo(t) {
3649
3631
  const { queryObject: e, uniqueQuery: i, chartConfig: r, errorStrings: a, abortKey: n, abortSignal: s } = t;
3650
3632
  let o;
3651
3633
  const { series: l, showMean: u } = r, c = G(l);
3652
- if (c === F.BoxPlotC4MultiFieldsAndCategory || c === F.BoxPlotC6MultiFieldsAndSplitBy) {
3634
+ if (c === S.BoxPlotC4MultiFieldsAndCategory || c === S.BoxPlotC6MultiFieldsAndSplitBy) {
3653
3635
  const d = Ei({ showMean: u, seriesConfig: l }), f = {
3654
3636
  ...i
3655
3637
  };
3656
3638
  delete f.outStatistics, delete f.groupByFieldsForStatistics, delete f.orderByFields;
3657
3639
  const m = [];
3658
- for (let p = 0; p < d.length; p += 1) {
3659
- const y = d[p];
3640
+ for (let y = 0; y < d.length; y += 1) {
3641
+ const p = d[y];
3660
3642
  m.push(
3661
3643
  {
3662
3644
  statisticType: O.Average,
3663
- onStatisticField: y,
3664
- outStatisticFieldName: `${O.Average}_${y}`
3645
+ onStatisticField: p,
3646
+ outStatisticFieldName: `${O.Average}_${p}`
3665
3647
  },
3666
3648
  {
3667
3649
  statisticType: O.StandardDeviation,
3668
- onStatisticField: y,
3669
- outStatisticFieldName: `${O.StandardDeviation}_${y}`
3650
+ onStatisticField: p,
3651
+ outStatisticFieldName: `${O.StandardDeviation}_${p}`
3670
3652
  }
3671
3653
  );
3672
3654
  }
@@ -3700,17 +3682,17 @@ function la(t) {
3700
3682
  if (i?.[0] !== void 0) {
3701
3683
  const f = re(o.query?.where);
3702
3684
  switch (l) {
3703
- case F.BoxPlotC1MonoField:
3685
+ case S.BoxPlotC1MonoField:
3704
3686
  d[0][B.boxPlot.boxPlotCategory] = c[0];
3705
3687
  break;
3706
- case F.BoxPlotC2MultiFields:
3688
+ case S.BoxPlotC2MultiFields:
3707
3689
  d = Lo({
3708
3690
  data: i,
3709
3691
  yList: c,
3710
3692
  calculateZScore: r
3711
3693
  });
3712
3694
  break;
3713
- case F.BoxPlotC4MultiFieldsAndCategory:
3695
+ case S.BoxPlotC4MultiFieldsAndCategory:
3714
3696
  d = Mo({
3715
3697
  data: i,
3716
3698
  yList: c,
@@ -3718,7 +3700,7 @@ function la(t) {
3718
3700
  calculateZScore: r
3719
3701
  });
3720
3702
  break;
3721
- case F.BoxPlotC5MonoFieldAndSplitBy:
3703
+ case S.BoxPlotC5MonoFieldAndSplitBy:
3722
3704
  d = wo({
3723
3705
  data: i,
3724
3706
  splitByField: f,
@@ -3726,7 +3708,7 @@ function la(t) {
3726
3708
  // there's only one `y` value for that query type
3727
3709
  });
3728
3710
  break;
3729
- case F.BoxPlotC6MultiFieldsAndSplitBy:
3711
+ case S.BoxPlotC6MultiFieldsAndSplitBy:
3730
3712
  d = Po({
3731
3713
  splitByField: f,
3732
3714
  data: i,
@@ -3735,14 +3717,14 @@ function la(t) {
3735
3717
  calculateZScore: r
3736
3718
  });
3737
3719
  break;
3738
- case F.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
3720
+ case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
3739
3721
  d = Io({
3740
3722
  splitByField: f,
3741
3723
  x: u,
3742
3724
  data: i
3743
3725
  });
3744
3726
  break;
3745
- case F.BoxPlotC3MonoFieldAndCategory:
3727
+ case S.BoxPlotC3MonoFieldAndCategory:
3746
3728
  }
3747
3729
  }
3748
3730
  return Oo(e, d), d;
@@ -3780,7 +3762,7 @@ async function $o(t) {
3780
3762
  abortKey: u,
3781
3763
  abortSignal: c
3782
3764
  });
3783
- const p = await qo({
3765
+ const y = await qo({
3784
3766
  queryObject: i,
3785
3767
  uniqueQuery: r,
3786
3768
  elementCount: s,
@@ -3793,7 +3775,7 @@ async function $o(t) {
3793
3775
  });
3794
3776
  d = ko({
3795
3777
  data: d,
3796
- additionalData: p,
3778
+ additionalData: y,
3797
3779
  chartConfig: n
3798
3780
  });
3799
3781
  }
@@ -3883,8 +3865,8 @@ function Ht(t) {
3883
3865
  else if (u?.[0] !== void 0 && e !== void 0 && e.length > 1) {
3884
3866
  const { orderBy: c } = u[0];
3885
3867
  let { sortingField: d } = u[0];
3886
- const f = i.orderOptions?.data?.orderType === je.Category, m = u[0].preferLabel !== !1, g = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotC2MultiFields || s === F.BoxPlotC6MultiFieldsAndSplitBy, p = g || o === h.PieSeries, y = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
3887
- if (f && p && (!m || (o === h.LineSeries || o === h.RadarSeries) && l === h.NumberAxisFormat) && (d = B.originalXValue), Array.isArray(c))
3868
+ const f = i.orderOptions?.data?.orderType === je.Category, m = u[0].preferLabel !== !1, g = s === S.BarAndLineFromFields || s === S.PieFromFields || s === S.BoxPlotC2MultiFields || s === S.BoxPlotC6MultiFieldsAndSplitBy, y = g || o === h.PieSeries, p = s === S.PieNoAggregation || s === S.BarAndLineNoAggregation || s === S.BarAndLineSplitByNoAggregation;
3869
+ if (f && y && (!m || (o === h.LineSeries || o === h.RadarSeries) && l === h.NumberAxisFormat) && (d = B.originalXValue), Array.isArray(c))
3888
3870
  Ss({
3889
3871
  arrayToSort: e,
3890
3872
  orderBy: c,
@@ -3894,17 +3876,17 @@ function Ht(t) {
3894
3876
  preferLabel: m
3895
3877
  });
3896
3878
  else {
3897
- const S = l === h.DateAxisFormat && f;
3879
+ const F = l === h.DateAxisFormat && f;
3898
3880
  vt({
3899
3881
  arrayToSort: e,
3900
3882
  orderBy: c,
3901
3883
  chartConfig: i,
3902
3884
  sortingField: d,
3903
- forceAscendingOrder: S,
3904
- isNonAggregated: y,
3885
+ forceAscendingOrder: F,
3886
+ isNonAggregated: p,
3905
3887
  sortByCategory: f,
3906
3888
  preferLabel: m,
3907
- isPieOrByFieldsChart: p
3889
+ isPieOrByFieldsChart: y
3908
3890
  });
3909
3891
  }
3910
3892
  }
@@ -3944,21 +3926,21 @@ async function im(t) {
3944
3926
  const { series: o, chartRenderer: l } = r, u = Qo(l), c = u ? ct.ChartRenderer : ct.LayerRenderer, d = i ? j(i) : void 0, f = u ?? d?.renderer;
3945
3927
  let m;
3946
3928
  d && c === ct.LayerRenderer ? s = await za(d) : c === ct.ChartRenderer && (s = Rc(f));
3947
- const g = Nc(u, d?.renderer), p = Ic({
3929
+ const g = Nc(u, d?.renderer), y = Ic({
3948
3930
  chartRenderer: l,
3949
3931
  queryObject: i
3950
- }), y = V(o), S = G(o), b = He(r), T = re(b.query?.where);
3932
+ }), p = V(o), F = G(o), b = He(r), T = re(b.query?.where);
3951
3933
  m = /* @__PURE__ */ new Map();
3952
- for (let C = 0; C < (y === h.HistogramSeries && e.length > 0 ? 1 : e.length); C += 1) {
3934
+ for (let C = 0; C < (p === h.HistogramSeries && e.length > 0 ? 1 : e.length); C += 1) {
3953
3935
  const x = e[C], v = await Oc({
3954
3936
  seriesConfig: r.series,
3955
3937
  dataItem: x,
3956
3938
  renderer: f,
3957
3939
  rendererType: g,
3958
3940
  rendererOrigin: c,
3959
- chartSubType: S,
3941
+ chartSubType: F,
3960
3942
  splitByField: T,
3961
- graphicTemplate: p,
3943
+ graphicTemplate: y,
3962
3944
  mapAttributesToSymbol: m,
3963
3945
  rendererFieldNames: s
3964
3946
  });
@@ -3988,16 +3970,16 @@ function Wo(t) {
3988
3970
  B.technicalFieldSplitByField,
3989
3971
  H.valueField,
3990
3972
  ...Br
3991
- ], d = (p, y) => {
3992
- const S = y[B.originalXValue];
3993
- S !== void 0 && a && (y[a] = S);
3994
- const b = y[B.originalYCategoryValue];
3995
- b !== void 0 && n && (y[n] = b), a && y[H.xField] !== void 0 && (y[a] = y[B.originalXValue] !== void 0 ? y[B.originalXValue] : y[H.xField], delete y[H.xField]), n && y[H.yField] !== void 0 && (y[n] = y[B.originalYCategoryValue] !== void 0 ? y[B.originalYCategoryValue] : y[H.yField], delete y[H.yField]), s && y[H.valueField] !== void 0 && (y[s] = y[H.valueField], delete y[H.valueField]);
3973
+ ], d = (y, p) => {
3974
+ const F = p[B.originalXValue];
3975
+ F !== void 0 && a && (p[a] = F);
3976
+ const b = p[B.originalYCategoryValue];
3977
+ b !== void 0 && n && (p[n] = b), a && p[H.xField] !== void 0 && (p[a] = p[B.originalXValue] !== void 0 ? p[B.originalXValue] : p[H.xField], delete p[H.xField]), n && p[H.yField] !== void 0 && (p[n] = p[B.originalYCategoryValue] !== void 0 ? p[B.originalYCategoryValue] : p[H.yField], delete p[H.yField]), s && p[H.valueField] !== void 0 && (p[s] = p[H.valueField], delete p[H.valueField]);
3996
3978
  const T = {};
3997
- return Object.keys(y).forEach((C) => {
3998
- !c.includes(C) && !C.includes(B.rendererSymbolField) && !C.includes(_.uniqueIds) && (T[C] = y[C]);
3999
- }), p.push(T), p;
4000
- }, f = (p, y) => JSON.stringify(p).localeCompare(JSON.stringify(y));
3979
+ return Object.keys(p).forEach((C) => {
3980
+ !c.includes(C) && !C.includes(B.rendererSymbolField) && !C.includes(_.uniqueIds) && (T[C] = p[C]);
3981
+ }), y.push(T), y;
3982
+ }, f = (y, p) => JSON.stringify(y).localeCompare(JSON.stringify(p));
4001
3983
  let m = o?.reduce(d, [])?.sort(f), g = l?.reduce(d, [])?.sort(f);
4002
3984
  m && g && a && m.length !== g.length && (m = Bt({ data: m, x: a }), g = Bt({ data: g, x: a })), u = m?.length !== g?.length || !we(m, g);
4003
3985
  }
@@ -4011,11 +3993,11 @@ function Ho(t) {
4011
3993
  if (o !== void 0 && Wo({
4012
3994
  itemsA: o,
4013
3995
  itemsB: i,
4014
- isPieFromFields: G(e.series) === F.PieFromFields,
3996
+ isPieFromFields: G(e.series) === S.PieFromFields,
4015
3997
  x: e.series[0].x,
4016
3998
  y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
4017
3999
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
4018
- }) ? a = o : a = i ?? [], n.length > 1 && s !== F.BarAndLineNoAggregation && s !== F.BarAndLineSplitByNoAggregation) {
4000
+ }) ? a = o : a = i ?? [], n.length > 1 && s !== S.BarAndLineNoAggregation && s !== S.BarAndLineSplitByNoAggregation) {
4019
4001
  const l = re(n[0].query?.where);
4020
4002
  a = Bt({ data: a, x: n[0].x, splitByField: l });
4021
4003
  }
@@ -4052,8 +4034,8 @@ async function Go(t) {
4052
4034
  }
4053
4035
  async function Uo(t) {
4054
4036
  const { queryObject: e, chartConfig: i, queryConfig: r, chartLimits: a, errorStrings: n, abortKey: s, abortSignal: o } = t, l = { valid: !0 }, { behaviorAfterLimit: u, maxGaugeByFeaturesLimit: c, gauge: d } = a ?? {}, f = c ?? d?.features, m = ei(i);
4055
- let g = !0, p;
4056
- if (m && (p = (await ba({
4037
+ let g = !0, y;
4038
+ if (m && (y = (await ba({
4057
4039
  chartConfig: i,
4058
4040
  queryObject: e,
4059
4041
  queryConfig: r,
@@ -4062,43 +4044,43 @@ async function Uo(t) {
4062
4044
  isGaugeByFeature: m,
4063
4045
  abortSignal: o
4064
4046
  })).elementCount, a?.behaviorAfterLimit !== We.RenderUpToTheLimit && (g = Oe({
4065
- count: p ?? 0,
4047
+ count: y ?? 0,
4066
4048
  seriesCount: i.series.length,
4067
4049
  chartType: h.GaugeSeries,
4068
4050
  chartLimits: a
4069
- })), a && (Number.isFinite(f) || Number.isFinite(p)))) {
4070
- const y = Math.min(f ?? Number.NaN, p ?? Number.NaN);
4071
- let S = a;
4072
- Number.isFinite(y) && (S = {
4051
+ })), a && (Number.isFinite(f) || Number.isFinite(y)))) {
4052
+ const p = Math.min(f ?? Number.NaN, y ?? Number.NaN);
4053
+ let F = a;
4054
+ Number.isFinite(p) && (F = {
4073
4055
  ...a,
4074
- maxGaugeByFeaturesLimit: y,
4075
- gauge: { features: y }
4076
- }), Ha({ chartConfig: i, chartLimits: S, uniqueQuery: r });
4056
+ maxGaugeByFeaturesLimit: p,
4057
+ gauge: { features: p }
4058
+ }), Ha({ chartConfig: i, chartLimits: F, uniqueQuery: r });
4077
4059
  }
4078
4060
  if (Number.isNaN(g) || g) {
4079
- const y = await Go({
4061
+ const p = await Go({
4080
4062
  queryObject: e,
4081
4063
  chartConfig: i,
4082
4064
  queryConfig: r,
4083
4065
  errorStrings: n,
4084
4066
  abortKey: s,
4085
4067
  abortSignal: o
4086
- }), { calculatedAxisMinimum: S, calculatedAxisMaximum: b, gaugeValue: T } = await Yo({
4068
+ }), { calculatedAxisMinimum: F, calculatedAxisMaximum: b, gaugeValue: T } = await Yo({
4087
4069
  chartConfig: i,
4088
4070
  queryConfig: r,
4089
- chartData: y,
4071
+ chartData: p,
4090
4072
  featureIndex: i.series?.[0]?.featureIndex,
4091
4073
  queryObject: e,
4092
4074
  errorStrings: n
4093
4075
  });
4094
4076
  l.data = {
4095
- dataItems: y,
4096
- calculatedAxisMinimum: S,
4077
+ dataItems: p,
4078
+ calculatedAxisMinimum: F,
4097
4079
  calculatedAxisMaximum: b,
4098
4080
  gaugeValue: T
4099
- }, l.count = y.length, Number.isNaN(T) && y.length > 0 && (l.valid = !1, l.invalidType = W.NoValue);
4081
+ }, l.count = p.length, Number.isNaN(T) && p.length > 0 && (l.valid = !1, l.invalidType = W.NoValue);
4100
4082
  } else
4101
- l.count = p, Wt({
4083
+ l.count = y, Wt({
4102
4084
  dataInfo: l,
4103
4085
  chartType: h.GaugeSeries
4104
4086
  });
@@ -4189,8 +4171,8 @@ async function Yo(t) {
4189
4171
  queryConfig: r ?? {},
4190
4172
  errorStrings: s
4191
4173
  }), g = ua({ chartData: i, x: o }));
4192
- const p = f ?? u ?? Wi.axisMinimum, y = m ?? c ?? Wi.axisMaximum;
4193
- return { calculatedAxisMinimum: p, calculatedAxisMaximum: y, gaugeValue: g };
4174
+ const y = f ?? u ?? Wi.axisMinimum, p = m ?? c ?? Wi.axisMaximum;
4175
+ return { calculatedAxisMinimum: y, calculatedAxisMaximum: p, gaugeValue: g };
4194
4176
  }
4195
4177
  function $e(t, e) {
4196
4178
  let i = "";
@@ -4276,7 +4258,7 @@ function ma(t) {
4276
4258
  const l = Ee({ where: r ?? "", normalize: !1, escape: !0 });
4277
4259
  let u = "";
4278
4260
  if (As(s)) {
4279
- const d = G(s.series) === F.BoxPlotC4MultiFieldsAndCategory ? i : void 0, f = se({
4261
+ const d = G(s.series) === S.BoxPlotC4MultiFieldsAndCategory ? i : void 0, f = se({
4280
4262
  key: R.Min,
4281
4263
  showOutliers: !0,
4282
4264
  splitBy: r,
@@ -4288,8 +4270,8 @@ function ma(t) {
4288
4270
  y: d
4289
4271
  }), g = e === B.boxPlot.boxPlotCategory ? a[e] : i;
4290
4272
  if (!ie(g)) {
4291
- const p = a[f], y = a[m];
4292
- Number.isFinite(p) && Number.isFinite(y) && (u = `${g?.toString()}>=${p?.toString()} AND ${g?.toString()}<=${y?.toString()}`);
4273
+ const y = a[f], p = a[m];
4274
+ Number.isFinite(y) && Number.isFinite(p) && (u = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${p?.toString()}`);
4293
4275
  }
4294
4276
  }
4295
4277
  return J([o, l, u]);
@@ -4305,7 +4287,7 @@ function Jo(t) {
4305
4287
  dataContext: r,
4306
4288
  queryObject: s
4307
4289
  });
4308
- else if (G(n.series) !== F.BarAndLineFromFields) {
4290
+ else if (G(n.series) !== S.BarAndLineFromFields) {
4309
4291
  let c = Ai({
4310
4292
  value: r[e],
4311
4293
  dataContext: r
@@ -4322,7 +4304,7 @@ function Jo(t) {
4322
4304
  function Ko(t) {
4323
4305
  const { xAxisField: e, dataContext: i, chartConfig: r } = t;
4324
4306
  let a = i[B.originalXValue];
4325
- return a === void 0 && (a = i[e]), G(r.series) === F.PieFromFields ? "" : Ee({
4307
+ return a === void 0 && (a = i[e]), G(r.series) === S.PieFromFields ? "" : Ee({
4326
4308
  where: $e(e, a),
4327
4309
  normalize: !1,
4328
4310
  escape: !0
@@ -4355,8 +4337,8 @@ function el(t) {
4355
4337
  let u = "";
4356
4338
  if (l.type === h.HeatSeries) {
4357
4339
  let c, d;
4358
- const f = r[H.xField], m = r[B.originalXValue], g = r[H.yField], p = r[B.originalYCategoryValue], y = a.axes?.[0]?.valueFormat?.type, S = a.axes?.[1]?.valueFormat?.type;
4359
- y === h.CategoryAxisFormat ? c = Ee({
4340
+ const f = r[H.xField], m = r[B.originalXValue], g = r[H.yField], y = r[B.originalYCategoryValue], p = a.axes?.[0]?.valueFormat?.type, F = a.axes?.[1]?.valueFormat?.type;
4341
+ p === h.CategoryAxisFormat ? c = Ee({
4360
4342
  where: $e(l.x, m ?? f),
4361
4343
  normalize: !1,
4362
4344
  escape: !0
@@ -4368,8 +4350,8 @@ function el(t) {
4368
4350
  outTimeZone: n,
4369
4351
  dataTimeZone: s,
4370
4352
  runsOnClientQueryEngine: o
4371
- }), S === h.CategoryAxisFormat ? d = Ee({
4372
- where: $e(l.y, p ?? g),
4353
+ }), F === h.CategoryAxisFormat ? d = Ee({
4354
+ where: $e(l.y, y ?? g),
4373
4355
  normalize: !1,
4374
4356
  escape: !0
4375
4357
  }) : d = lr({
@@ -4441,9 +4423,9 @@ async function il(t) {
4441
4423
  view: f,
4442
4424
  errorStrings: m,
4443
4425
  abortKey: g,
4444
- abortSignal: p
4445
- } = t, y = G(r.series);
4446
- let S = { valid: !0, data: { dataItems: [] } };
4426
+ abortSignal: y
4427
+ } = t, p = G(r.series);
4428
+ let F = { valid: !0, data: { dataItems: [] } };
4447
4429
  if (a !== void 0 && a.length > 0) {
4448
4430
  const b = He(r), { x: T } = b, C = "y" in b ? b.y : "", v = Te(e).find((D) => D.name === T)?.type, A = [], N = a.reduce(
4449
4431
  (D, I) => {
@@ -4451,10 +4433,10 @@ async function il(t) {
4451
4433
  if (_.uniqueIds in I)
4452
4434
  A.push(I[_.uniqueIds]);
4453
4435
  else {
4454
- switch (y) {
4455
- case F.BoxPlotC5MonoFieldAndSplitBy:
4456
- case F.BoxPlotC6MultiFieldsAndSplitBy:
4457
- case F.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
4436
+ switch (p) {
4437
+ case S.BoxPlotC5MonoFieldAndSplitBy:
4438
+ case S.BoxPlotC6MultiFieldsAndSplitBy:
4439
+ case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
4458
4440
  const Q = re(b.query?.where ?? ""), q = `_${R.Average}`;
4459
4441
  Object.keys(I).forEach((U) => {
4460
4442
  if (U.includes(q)) {
@@ -4467,7 +4449,7 @@ async function il(t) {
4467
4449
  }
4468
4450
  const E = [C].flat();
4469
4451
  let z = E.length === 1 ? E[0] : "";
4470
- if (y === F.BoxPlotC4MultiFieldsAndCategory) {
4452
+ if (p === S.BoxPlotC4MultiFieldsAndCategory) {
4471
4453
  const Q = `_${R.FirstQuartile}`, q = Object.keys(I).find((U) => U.includes(Q));
4472
4454
  q !== void 0 && (z = q.replace(Q, ""));
4473
4455
  }
@@ -4492,7 +4474,7 @@ async function il(t) {
4492
4474
  N.push(`${D} IN (${A.join(",")})`);
4493
4475
  }
4494
4476
  const M = N.join(" OR "), w = { ...i };
4495
- w.where = J([w.where, M]), S = await Pi({
4477
+ w.where = J([w.where, M]), F = await Pi({
4496
4478
  queryObject: e,
4497
4479
  chartConfig: r,
4498
4480
  queryConfig: w,
@@ -4506,10 +4488,10 @@ async function il(t) {
4506
4488
  view: f,
4507
4489
  errorStrings: m,
4508
4490
  abortKey: g,
4509
- abortSignal: p
4491
+ abortSignal: y
4510
4492
  });
4511
4493
  }
4512
- return S;
4494
+ return F;
4513
4495
  }
4514
4496
  async function rl(t) {
4515
4497
  const {
@@ -4527,9 +4509,9 @@ async function rl(t) {
4527
4509
  hideZeroCountCategories: f,
4528
4510
  replaceNoValueCategoryWithZero: m,
4529
4511
  view: g,
4530
- errorStrings: p,
4531
- abortKey: y,
4532
- abortSignal: S
4512
+ errorStrings: y,
4513
+ abortKey: p,
4514
+ abortSignal: F
4533
4515
  } = t;
4534
4516
  Ct(e);
4535
4517
  const { series: b } = r, T = V(b), C = ve(r);
@@ -4541,7 +4523,7 @@ async function rl(t) {
4541
4523
  x.data = { dataItems: v };
4542
4524
  break;
4543
4525
  case h.PieSeries:
4544
- if (G(r.series) === F.PieFromFields) {
4526
+ if (G(r.series) === S.PieFromFields) {
4545
4527
  const { x: N, y: L } = r.series[0], M = Ve(v);
4546
4528
  M.forEach((w) => {
4547
4529
  N in w && (w[ye] = w[N], delete w[N]), L in w && (w[Le] = w[L], delete w[L]);
@@ -4564,9 +4546,9 @@ async function rl(t) {
4564
4546
  hideZeroCountCategories: f,
4565
4547
  replaceNoValueCategoryWithZero: m,
4566
4548
  view: g,
4567
- errorStrings: p,
4568
- abortKey: y,
4569
- abortSignal: S
4549
+ errorStrings: y,
4550
+ abortKey: p,
4551
+ abortSignal: F
4570
4552
  }));
4571
4553
  break;
4572
4554
  case h.BarSeries:
@@ -4597,14 +4579,14 @@ async function rl(t) {
4597
4579
  queryObject: e,
4598
4580
  queryConfig: N,
4599
4581
  chartConfig: r,
4600
- errorStrings: p,
4582
+ errorStrings: y,
4601
4583
  setTimeBinningInfoWhenNotProvided: o,
4602
4584
  returnFeaturesExtent: l,
4603
4585
  returnStatisticsAggregatedIds: u,
4604
4586
  chartLimits: c,
4605
4587
  popupTemplateFieldInfosEnabled: d,
4606
4588
  view: g,
4607
- abortSignal: S
4589
+ abortSignal: F
4608
4590
  });
4609
4591
  }
4610
4592
  break;
@@ -4628,9 +4610,9 @@ async function rl(t) {
4628
4610
  chartConfig: r,
4629
4611
  queryConfig: w,
4630
4612
  view: g,
4631
- errorStrings: p,
4632
- abortKey: y,
4633
- abortSignal: S
4613
+ errorStrings: y,
4614
+ abortKey: p,
4615
+ abortSignal: F
4634
4616
  });
4635
4617
  }
4636
4618
  break;
@@ -4671,11 +4653,11 @@ async function Pi(t) {
4671
4653
  replaceNoValueCategoryWithZero: m,
4672
4654
  view: g
4673
4655
  } = t;
4674
- let p = { valid: !0 };
4675
- const y = Ke(i), S = await pi({
4656
+ let y = { valid: !0 };
4657
+ const p = Ke(i), F = await pi({
4676
4658
  queryObject: e,
4677
4659
  queryConfig: r,
4678
- fetchFullBoxPlotData: !y,
4660
+ fetchFullBoxPlotData: !p,
4679
4661
  chartConfig: i,
4680
4662
  errorStrings: a,
4681
4663
  abortKey: n,
@@ -4689,11 +4671,11 @@ async function Pi(t) {
4689
4671
  replaceNoValueCategoryWithZero: m,
4690
4672
  view: g
4691
4673
  });
4692
- if (!y)
4693
- p = S;
4674
+ if (!p)
4675
+ y = F;
4694
4676
  else {
4695
4677
  const b = { dataItems: [] };
4696
- b.meanLines = S.data.dataItems;
4678
+ b.meanLines = F.data.dataItems;
4697
4679
  const T = Bo(i), C = (await pi({
4698
4680
  queryObject: e,
4699
4681
  queryConfig: r,
@@ -4711,9 +4693,9 @@ async function Pi(t) {
4711
4693
  abortKey: n,
4712
4694
  abortSignal: s
4713
4695
  })).data;
4714
- b.dataItems = C.dataItems, b.outliers = C.outliers, p.data = b;
4696
+ b.dataItems = C.dataItems, b.outliers = C.outliers, y.data = b;
4715
4697
  }
4716
- return p;
4698
+ return y;
4717
4699
  }
4718
4700
  async function nm(t) {
4719
4701
  const {
@@ -4731,9 +4713,9 @@ async function nm(t) {
4731
4713
  setTimeBinningInfoWhenNotProvided: f,
4732
4714
  returnFeaturesExtent: m,
4733
4715
  returnStatisticsAggregatedIds: g,
4734
- chartLimits: p,
4735
- popupTemplateFieldInfosEnabled: y,
4736
- hideZeroCountCategories: S,
4716
+ chartLimits: y,
4717
+ popupTemplateFieldInfosEnabled: p,
4718
+ hideZeroCountCategories: F,
4737
4719
  replaceNoValueCategoryWithZero: b,
4738
4720
  view: T,
4739
4721
  syncViewTimeZone: C,
@@ -4761,9 +4743,9 @@ async function nm(t) {
4761
4743
  setTimeBinningInfoWhenNotProvided: f,
4762
4744
  returnFeaturesExtent: m,
4763
4745
  returnStatisticsAggregatedIds: g,
4764
- chartLimits: p,
4765
- popupTemplateFieldInfosEnabled: y,
4766
- hideZeroCountCategories: S,
4746
+ chartLimits: y,
4747
+ popupTemplateFieldInfosEnabled: p,
4748
+ hideZeroCountCategories: F,
4767
4749
  replaceNoValueCategoryWithZero: b,
4768
4750
  view: T,
4769
4751
  errorStrings: x,
@@ -4780,8 +4762,8 @@ async function nm(t) {
4780
4762
  errorStrings: x,
4781
4763
  returnFeaturesExtent: m,
4782
4764
  returnStatisticsAggregatedIds: g,
4783
- chartLimits: p,
4784
- popupTemplateFieldInfosEnabled: y,
4765
+ chartLimits: y,
4766
+ popupTemplateFieldInfosEnabled: p,
4785
4767
  view: T,
4786
4768
  syncViewTimeZone: C,
4787
4769
  abortKey: r,
@@ -4797,9 +4779,9 @@ async function nm(t) {
4797
4779
  setTimeBinningInfoWhenNotProvided: f,
4798
4780
  returnFeaturesExtent: m,
4799
4781
  returnStatisticsAggregatedIds: g,
4800
- chartLimits: p,
4801
- popupTemplateFieldInfosEnabled: y,
4802
- hideZeroCountCategories: S,
4782
+ chartLimits: y,
4783
+ popupTemplateFieldInfosEnabled: p,
4784
+ hideZeroCountCategories: F,
4803
4785
  replaceNoValueCategoryWithZero: b,
4804
4786
  view: T,
4805
4787
  errorStrings: x,
@@ -4822,9 +4804,9 @@ async function nm(t) {
4822
4804
  setTimeBinningInfoWhenNotProvided: f,
4823
4805
  returnFeaturesExtent: m,
4824
4806
  returnStatisticsAggregatedIds: g,
4825
- chartLimits: p,
4826
- popupTemplateFieldInfosEnabled: y,
4827
- hideZeroCountCategories: S,
4807
+ chartLimits: y,
4808
+ popupTemplateFieldInfosEnabled: p,
4809
+ hideZeroCountCategories: F,
4828
4810
  replaceNoValueCategoryWithZero: b,
4829
4811
  view: T,
4830
4812
  abortKey: r,
@@ -4848,9 +4830,9 @@ async function nm(t) {
4848
4830
  setTimeBinningInfoWhenNotProvided: f,
4849
4831
  returnFeaturesExtent: m,
4850
4832
  returnStatisticsAggregatedIds: g,
4851
- chartLimits: p,
4852
- popupTemplateFieldInfosEnabled: y,
4853
- hideZeroCountCategories: S,
4833
+ chartLimits: y,
4834
+ popupTemplateFieldInfosEnabled: p,
4835
+ hideZeroCountCategories: F,
4854
4836
  replaceNoValueCategoryWithZero: b,
4855
4837
  view: T,
4856
4838
  chartConfig: i,
@@ -4877,7 +4859,7 @@ async function nm(t) {
4877
4859
  queryObject: e,
4878
4860
  chartConfig: i,
4879
4861
  queryConfig: w,
4880
- chartLimits: p,
4862
+ chartLimits: y,
4881
4863
  errorStrings: x,
4882
4864
  abortKey: r,
4883
4865
  abortSignal: a
@@ -4912,23 +4894,23 @@ async function nl(t) {
4912
4894
  } = t, { series: c } = i;
4913
4895
  let d = e;
4914
4896
  const f = G(c), m = ve(i);
4915
- if (s !== We.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === h.CategoryAxisFormat) {
4916
- const { x: g } = c[0], p = {
4897
+ if (s !== We.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== S.BarAndLineFromFields && f !== S.BarAndLineNoAggregation && f !== S.PieNoAggregation && m === h.CategoryAxisFormat) {
4898
+ const { x: g } = c[0], y = {
4917
4899
  ...r,
4918
4900
  returnDistinctValues: !0,
4919
4901
  outFields: [g]
4920
4902
  };
4921
- delete p.outStatistics, delete p.orderByFields, delete p.groupByFieldsForStatistics;
4922
- const S = (await xe({
4903
+ delete y.outStatistics, delete y.orderByFields, delete y.groupByFieldsForStatistics;
4904
+ const F = (await xe({
4923
4905
  queryObject: a,
4924
- queryConfig: p,
4906
+ queryConfig: y,
4925
4907
  featureCount: n,
4926
4908
  returnStatisticsAggregatedIds: !1,
4927
4909
  errorStrings: o,
4928
4910
  abortKey: l,
4929
4911
  abortSignal: u
4930
4912
  })).map((b) => b.attributes[g]).filter((b) => b != null);
4931
- S.length > e.length && (d = al(S, e, g));
4913
+ F.length > e.length && (d = al(F, e, g));
4932
4914
  }
4933
4915
  return d;
4934
4916
  }
@@ -5105,15 +5087,15 @@ function dl(t) {
5105
5087
  const { unit: o } = r, l = r.size ?? 1, u = i[0], { x: c } = u;
5106
5088
  let d, f;
5107
5089
  if (Be(u) && (f = u.temporalBinning?.nullPolicy, d = u.temporalBinning?.timeAggregationType), l > 1 || o === $.Week || o === $.Month || o === $.Year) {
5108
- const { query: m } = i[0], g = le(i), { statisticType: p } = m?.outStatistics?.[0] ?? Nr;
5109
- let y = !1, S = d === ae.End ? e.length - 1 : 0;
5090
+ const { query: m } = i[0], g = le(i), { statisticType: y } = m?.outStatistics?.[0] ?? Nr;
5091
+ let p = !1, F = d === ae.End ? e.length - 1 : 0;
5110
5092
  const b = {
5111
- binFirstOrLastIndex: S,
5093
+ binFirstOrLastIndex: F,
5112
5094
  data: e,
5113
5095
  x: c,
5114
5096
  timeIntervalInfo: r
5115
5097
  };
5116
- for (; !y; ) {
5098
+ for (; !p; ) {
5117
5099
  let T = {};
5118
5100
  const { binStartDate: C, binEndDate: x, last: v, nextBinFirstOrLastIndex: A, sliceStartIndex: N, sliceEndIndex: L } = d === ae.End ? (
5119
5101
  // When grouping from the end we'll start from the last date and move backward to create the bins
@@ -5122,10 +5104,10 @@ function dl(t) {
5122
5104
  // When grouping from the start we'll start from the first date and move forward to create the bins
5123
5105
  ll(b)
5124
5106
  );
5125
- if (y = v, T = d === ae.End ? T = e[L - 1] : T = e[S], x > n && C < n || C < a && x > a || C >= a && x <= n) {
5107
+ if (p = v, T = d === ae.End ? T = e[L - 1] : T = e[F], x > n && C < n || C < a && x > a || C >= a && x <= n) {
5126
5108
  const M = e.slice(N, L).filter((P) => !(B.dateBinModel in P));
5127
5109
  g.forEach((P) => {
5128
- T[P] = ul({ binsToRegroup: M, statisticType: p, y: P, nullPolicy: f });
5110
+ T[P] = ul({ binsToRegroup: M, statisticType: y, y: P, nullPolicy: f });
5129
5111
  });
5130
5112
  const w = M.map((P) => P[Ie]).filter((P) => P !== void 0), D = ps(w);
5131
5113
  D !== void 0 && (T[Ie] = D);
@@ -5135,20 +5117,20 @@ function dl(t) {
5135
5117
  }, []);
5136
5118
  I.length > 0 && (T[_.uniqueIds] = I), T[c] = C, T[B.xAxisField] = C, T[B.dateBinningRange] = [C, x], delete T[B.dateBinModel], s.push(T);
5137
5119
  } else v && d !== ae.End && s.length > 0 && (s[s.length - 1][B.dateBinningRange][1] = s[s.length - 1][B.dateBinningRange][1] + 1);
5138
- S = A, b.binFirstOrLastIndex = A;
5120
+ F = A, b.binFirstOrLastIndex = A;
5139
5121
  }
5140
5122
  d === ae.End && (s = s.reverse());
5141
5123
  } else l === 1 ? s = e.map((m, g) => {
5142
- const p = m[c];
5143
- let y = e[g + 1]?.[c];
5144
- return y = typeof y == "number" ? y - 1 : _e({
5145
- date: p,
5124
+ const y = m[c];
5125
+ let p = e[g + 1]?.[c];
5126
+ return p = typeof p == "number" ? p - 1 : _e({
5127
+ date: y,
5146
5128
  unit: o,
5147
5129
  size: l,
5148
5130
  nextOrPrevious: "next"
5149
5131
  }), {
5150
5132
  ...m,
5151
- [B.dateBinningRange]: [p, y]
5133
+ [B.dateBinningRange]: [y, p]
5152
5134
  };
5153
5135
  }) : s = e;
5154
5136
  return s;
@@ -5206,33 +5188,33 @@ function fl(t) {
5206
5188
  if (o !== void 0 && Number.isFinite(o) && r / i !== o) {
5207
5189
  let g = Math.ceil(r / i) * i - r;
5208
5190
  l === $.Week && (g *= 7);
5209
- const p = pa(n);
5191
+ const y = pa(n);
5210
5192
  if (c === ae.End) {
5211
- let y = a[0][u];
5212
- for (let S = 0; S < g; S += 1)
5213
- y = _e({
5214
- date: y,
5193
+ let p = a[0][u];
5194
+ for (let F = 0; F < g; F += 1)
5195
+ p = _e({
5196
+ date: p,
5215
5197
  unit: l,
5216
5198
  size: 1,
5217
5199
  nextOrPrevious: "previous"
5218
5200
  }), a.push({
5219
- ...p,
5220
- [u]: y,
5221
- [B.xAxisField]: y
5201
+ ...y,
5202
+ [u]: p,
5203
+ [B.xAxisField]: p
5222
5204
  });
5223
5205
  g > 0 && (d = a[a.length - 1][u]);
5224
5206
  } else {
5225
- let y = a[a.length - 1][u];
5226
- for (let S = 0; S < g; S += 1)
5227
- y = _e({
5228
- date: y,
5207
+ let p = a[a.length - 1][u];
5208
+ for (let F = 0; F < g; F += 1)
5209
+ p = _e({
5210
+ date: p,
5229
5211
  unit: l,
5230
5212
  size: 1,
5231
5213
  nextOrPrevious: "next"
5232
5214
  }), a.push({
5233
- ...p,
5234
- [u]: y,
5235
- [B.xAxisField]: y
5215
+ ...y,
5216
+ [u]: p,
5217
+ [B.xAxisField]: p
5236
5218
  });
5237
5219
  f = a[a.length - 1][u];
5238
5220
  }
@@ -5291,14 +5273,14 @@ function yl(t) {
5291
5273
  unit: l
5292
5274
  })) {
5293
5275
  const { x: d } = r[0], f = r[0].temporalBinning?.timeAggregationType, m = pa(r);
5294
- let p = f === ae.End ? i : e, y = f === ae.End ? a.length - 1 : 0;
5295
- for (; y < a.length && (f === ae.End && p > e || f !== ae.End && p < i); )
5296
- p !== a[y][d] ? u.push({
5276
+ let y = f === ae.End ? i : e, p = f === ae.End ? a.length - 1 : 0;
5277
+ for (; p < a.length && (f === ae.End && y > e || f !== ae.End && y < i); )
5278
+ y !== a[p][d] ? u.push({
5297
5279
  ...m,
5298
- [d]: p,
5299
- [B.xAxisField]: p
5300
- }) : y = f === ae.End ? y - 1 : y + 1, p = _e({
5301
- date: p,
5280
+ [d]: y,
5281
+ [B.xAxisField]: y
5282
+ }) : p = f === ae.End ? p - 1 : p + 1, y = _e({
5283
+ date: y,
5302
5284
  unit: l === $.Month || l === $.Year ? $.Day : l,
5303
5285
  size: 1,
5304
5286
  nextOrPrevious: f === ae.End ? "previous" : "next"
@@ -5349,20 +5331,20 @@ function* Sl(t) {
5349
5331
  }
5350
5332
  ];
5351
5333
  let g = et.groupByCaseBegin;
5352
- for (let y = 0; y < a.length; y += 1) {
5353
- const S = a[y], [b, T] = S[B.dateBinningRange], C = ft(b), x = ft(T);
5334
+ for (let p = 0; p < a.length; p += 1) {
5335
+ const F = a[p], [b, T] = F[B.dateBinningRange], C = ft(b), x = ft(T);
5354
5336
  g = hl({
5355
5337
  groupByFieldsForStatistics: g,
5356
5338
  queryStartDate: C,
5357
5339
  queryEndDate: x,
5358
5340
  dateField: c,
5359
5341
  y: [d].flat()[0],
5360
- binIndex: y,
5361
- lastBin: y === a.length - 1
5342
+ binIndex: p,
5343
+ lastBin: p === a.length - 1
5362
5344
  });
5363
5345
  }
5364
5346
  g = `${g} ${et.groupByCaseEnd}`;
5365
- const p = {
5347
+ const y = {
5366
5348
  ...r,
5367
5349
  groupByFieldsForStatistics: [g],
5368
5350
  outStatistics: m,
@@ -5370,7 +5352,7 @@ function* Sl(t) {
5370
5352
  };
5371
5353
  yield xe({
5372
5354
  queryObject: e,
5373
- queryConfig: p,
5355
+ queryConfig: y,
5374
5356
  noBatch: !0,
5375
5357
  returnStatisticsAggregatedIds: !1,
5376
5358
  errorStrings: n,
@@ -5394,10 +5376,10 @@ async function Fl(t) {
5394
5376
  d && c.forEach((m) => {
5395
5377
  const g = m.attributes[`${f}`];
5396
5378
  if (g !== void 0) {
5397
- const [p, y] = g.split("|");
5398
- if (y !== void 0) {
5399
- const S = m.attributes[O.ContinuousPercentile];
5400
- o[y][`${p}`] = S;
5379
+ const [y, p] = g.split("|");
5380
+ if (p !== void 0) {
5381
+ const F = m.attributes[O.ContinuousPercentile];
5382
+ o[p][`${y}`] = F;
5401
5383
  }
5402
5384
  }
5403
5385
  });
@@ -5439,13 +5421,13 @@ function dr(t, e) {
5439
5421
  return i;
5440
5422
  }
5441
5423
  function bl(t) {
5442
- const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: a, x: n, y: s, nullPolicy: o, queryObject: l } = t, u = Qr(n), d = Te(l).find((S) => S.name === n)?.type, f = [], m = e.series[0], g = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
5443
- let y = !1;
5444
- return i.forEach((S, b) => {
5445
- if (g && (b === 0 && p === ae.End || b === i.length - 1 && p === ae.Start))
5446
- y = !0;
5424
+ const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: a, x: n, y: s, nullPolicy: o, queryObject: l } = t, u = Qr(n), d = Te(l).find((F) => F.name === n)?.type, f = [], m = e.series[0], g = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, y = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
5425
+ let p = !1;
5426
+ return i.forEach((F, b) => {
5427
+ if (g && (b === 0 && y === ae.End || b === i.length - 1 && y === ae.Start))
5428
+ p = !0;
5447
5429
  else {
5448
- const { attributes: C, stackedAttributes: x, statisticsAggregatedIds: v } = S;
5430
+ const { attributes: C, stackedAttributes: x, statisticsAggregatedIds: v } = F;
5449
5431
  let A = C[u.lowerBoundaryAlias], N = C[u.upperBoundaryAlias];
5450
5432
  const L = A, M = N;
5451
5433
  if (A = dr(A, d), N = dr(N, d), typeof A == "number" && typeof N == "number") {
@@ -5458,13 +5440,13 @@ function bl(t) {
5458
5440
  }
5459
5441
  }) : typeof s == "string" && ur({ dataItem: w, statField: s, nullPolicy: o });
5460
5442
  const { featureExtent: D, featureExtentKey: I } = ha({
5461
- feature: S,
5443
+ feature: F,
5462
5444
  splitByField: a
5463
5445
  });
5464
5446
  D && (w[I] = D), f.push(w);
5465
5447
  }
5466
5448
  }
5467
- }), f && f.length > 0 && !y && (f[0][B.firstTemporalBin] = !0, f[f.length - 1][B.lastTemporalBin] = !0), { data: f, firstOrLastWasSkipped: y };
5449
+ }), f && f.length > 0 && !p && (f[0][B.firstTemporalBin] = !0, f[f.length - 1][B.lastTemporalBin] = !0), { data: f, firstOrLastWasSkipped: p };
5468
5450
  }
5469
5451
  async function xl(t) {
5470
5452
  const {
@@ -5488,25 +5470,25 @@ async function xl(t) {
5488
5470
  sortingField: a,
5489
5471
  chartConfig: r
5490
5472
  }), g > 1) {
5491
- const { numberOfFinalBinsWithinDataRange: p, numberOfSingleBinsWithinDataRange: y } = ya({
5473
+ const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = ya({
5492
5474
  dateMinTimestamp: f,
5493
5475
  dateMaxTimestamp: m,
5494
5476
  timeIntervalInfo: l
5495
- }), { newDateMin: S, newDateMax: b } = fl({
5477
+ }), { newDateMin: F, newDateMax: b } = fl({
5496
5478
  dateMaxTimestamp: m,
5497
5479
  data: d,
5498
- numberOfFinalBinsWithinDataRange: p,
5499
- numberOfSingleBinsWithinDataRange: y,
5480
+ numberOfFinalBinsWithinDataRange: y,
5481
+ numberOfSingleBinsWithinDataRange: p,
5500
5482
  seriesConfig: s,
5501
5483
  timeIntervalInfo: l
5502
5484
  });
5503
5485
  d = yl({
5504
- newDateMin: S,
5486
+ newDateMin: F,
5505
5487
  newDateMax: b,
5506
5488
  seriesConfig: s,
5507
5489
  data: d,
5508
5490
  initialNumberOfBins: g,
5509
- numberOfSingleBinsWithinDataRange: y,
5491
+ numberOfSingleBinsWithinDataRange: p,
5510
5492
  timeIntervalInfo: l
5511
5493
  }), vt({
5512
5494
  arrayToSort: d,
@@ -5543,12 +5525,12 @@ function Bl(t) {
5543
5525
  let r, a, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
5544
5526
  if (n && s) {
5545
5527
  typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
5546
- const o = Cl(i), l = (s - n) / o, u = cr.findIndex((S) => S.threshold > l), c = cr[u], { unitMs: d, preferredIntervalSize: f } = c;
5528
+ const o = Cl(i), l = (s - n) / o, u = cr.findIndex((F) => F.threshold > l), c = cr[u], { unitMs: d, preferredIntervalSize: f } = c;
5547
5529
  ({ unit: r } = c);
5548
5530
  const m = l / d, g = f.findIndex(
5549
- (S) => S >= m
5550
- ), p = f[g], y = g === 0 ? f[0] : f[g - 1];
5551
- a = p - m < m - y ? p : y;
5531
+ (F) => F >= m
5532
+ ), y = f[g], p = g === 0 ? f[0] : f[g - 1];
5533
+ a = y - m < m - p ? y : p;
5552
5534
  }
5553
5535
  return { size: a, unit: r };
5554
5536
  }
@@ -5592,7 +5574,7 @@ function ha(t) {
5592
5574
  }
5593
5575
  const n = a?.toJSON();
5594
5576
  let s = Ie;
5595
- return n !== void 0 && i !== void 0 && r === F.BarAndLineSplitBy && (s = e.attributes[i] !== void 0 ? `${Ie}_${e.attributes[i]}` : Ie), { featureExtent: n, featureExtentKey: s };
5577
+ return n !== void 0 && i !== void 0 && r === S.BarAndLineSplitBy && (s = e.attributes[i] !== void 0 ? `${Ie}_${e.attributes[i]}` : Ie), { featureExtent: n, featureExtentKey: s };
5596
5578
  }
5597
5579
  function Al(t, e) {
5598
5580
  const i = t, r = V(e);
@@ -5633,7 +5615,7 @@ function Pl(t) {
5633
5615
  }
5634
5616
  function Ml(t) {
5635
5617
  const { chartConfig: e, chartType: i, chartSubType: r, attributes: a, featureIndex: n, x: s } = t;
5636
- (r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation) && Wn({ isXAxis: !0, chartType: i, valueFormat: e.axes?.[0]?.valueFormat }) ? (a[B.xAxisField] = `${a[s]}-${n}`, a[B.xAxisDisplayField] = a[s]) : i === h.HeatSeries ? a[B.xAxisField] = a[H.xField] : r !== F.BarAndLineFromFields && r !== F.PieFromFields && (a[B.xAxisField] = a[s]);
5618
+ (r === S.BarAndLineNoAggregation || r === S.BarAndLineSplitByNoAggregation) && Wn({ isXAxis: !0, chartType: i, valueFormat: e.axes?.[0]?.valueFormat }) ? (a[B.xAxisField] = `${a[s]}-${n}`, a[B.xAxisDisplayField] = a[s]) : i === h.HeatSeries ? a[B.xAxisField] = a[H.xField] : r !== S.BarAndLineFromFields && r !== S.PieFromFields && (a[B.xAxisField] = a[s]);
5637
5619
  }
5638
5620
  function Il(t) {
5639
5621
  const { feature: e, splitByField: i, chartSubType: r, attributes: a } = t, { featureExtent: n, featureExtentKey: s } = ha({ feature: e, splitByField: i, chartSubType: r });
@@ -5641,7 +5623,7 @@ function Il(t) {
5641
5623
  }
5642
5624
  function Ol(t) {
5643
5625
  const { chartSubType: e, attributes: i, splitByField: r, mapToStatField: a } = t, { outStatisticFieldName: n } = _.outStatistics ?? {}, s = Sa(i, r);
5644
- if (e === F.BarAndLineSplitBy && n && s !== void 0) {
5626
+ if (e === S.BarAndLineSplitBy && n && s !== void 0) {
5645
5627
  const o = a?.get(s);
5646
5628
  o !== void 0 && (s === r && (i[B.technicalFieldSplitByField] = i[o]), i[o] = i[n]), delete i[n];
5647
5629
  }
@@ -5670,7 +5652,7 @@ function El(t, e) {
5670
5652
  }
5671
5653
  function Rl(t) {
5672
5654
  const { chartSubType: e, dataItem: i, outStatistics: r } = t;
5673
- (e === F.PieFromFields || e === F.BarAndLineFromFields) && i !== void 0 && r[0] !== void 0 && Object.keys(i).forEach((a) => {
5655
+ (e === S.PieFromFields || e === S.BarAndLineFromFields) && i !== void 0 && r[0] !== void 0 && Object.keys(i).forEach((a) => {
5674
5656
  const n = r.find(
5675
5657
  (s) => s.outStatisticFieldName?.toLowerCase() === a.toLowerCase()
5676
5658
  )?.onStatisticField;
@@ -5679,7 +5661,7 @@ function Rl(t) {
5679
5661
  }
5680
5662
  function ql(t) {
5681
5663
  const { dataItem: e, splitByField: i, y: r, chartSubType: a, queryObject: n } = t;
5682
- if (typeof r == "string" && a === F.BarAndLineSplitByNoAggregation) {
5664
+ if (typeof r == "string" && a === S.BarAndLineSplitByNoAggregation) {
5683
5665
  const s = j(n), { idField: o, isTraditionalTypeOID: l } = Ae(s), u = l ? o : void 0;
5684
5666
  if (e !== void 0 && !ie(i) && !ie(r)) {
5685
5667
  const c = e[i], d = c === null ? "null" : c?.toString(), f = `${r}_${d}`;
@@ -5689,7 +5671,7 @@ function ql(t) {
5689
5671
  }
5690
5672
  function Vl(t) {
5691
5673
  const { chartSubType: e, attributes: i, y: r } = t;
5692
- r && (e === F.BoxPlotC1MonoField || e === F.BoxPlotC3MonoFieldAndCategory || e === F.BoxPlotC5MonoFieldAndSplitBy || e === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && Object.keys(i).forEach((n) => {
5674
+ r && (e === S.BoxPlotC1MonoField || e === S.BoxPlotC3MonoFieldAndCategory || e === S.BoxPlotC5MonoFieldAndSplitBy || e === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && Object.keys(i).forEach((n) => {
5693
5675
  if (n.startsWith(`${r}_`)) {
5694
5676
  const s = n.slice(r.length + 1);
5695
5677
  i[s] = i[n], delete i[n];
@@ -5699,33 +5681,33 @@ function Vl(t) {
5699
5681
  function kl(t, e) {
5700
5682
  let i = 1;
5701
5683
  switch (t) {
5702
- case F.BarAndLineFromFields:
5703
- case F.PieFromFields:
5684
+ case S.BarAndLineFromFields:
5685
+ case S.PieFromFields:
5704
5686
  i = e.series[0].query?.outStatistics?.length ?? 1;
5705
5687
  break;
5706
- case F.BoxPlotC2MultiFields:
5707
- case F.BoxPlotC6MultiFieldsAndSplitBy:
5688
+ case S.BoxPlotC2MultiFields:
5689
+ case S.BoxPlotC6MultiFieldsAndSplitBy:
5708
5690
  i = e.series[0].y.length;
5709
5691
  break;
5710
- case F.BarAndLineNoAggregation:
5711
- case F.BoxPlotC1MonoField:
5712
- case F.BoxPlotC3MonoFieldAndCategory:
5713
- case F.BoxPlotC4MultiFieldsAndCategory:
5714
- case F.BoxPlotC5MonoFieldAndSplitBy:
5715
- case F.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
5716
- case F.PieFromCategory:
5717
- case F.BarAndLineSplitByNoAggregation:
5718
- case F.PieNoAggregation:
5719
- case F.BarAndLineSplitBy:
5720
- case F.BarAndLineMonoField:
5721
- case F.BarAndLineMultiFields:
5722
- case F.NonSpecific:
5692
+ case S.BarAndLineNoAggregation:
5693
+ case S.BoxPlotC1MonoField:
5694
+ case S.BoxPlotC3MonoFieldAndCategory:
5695
+ case S.BoxPlotC4MultiFieldsAndCategory:
5696
+ case S.BoxPlotC5MonoFieldAndSplitBy:
5697
+ case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
5698
+ case S.PieFromCategory:
5699
+ case S.BarAndLineSplitByNoAggregation:
5700
+ case S.PieNoAggregation:
5701
+ case S.BarAndLineSplitBy:
5702
+ case S.BarAndLineMonoField:
5703
+ case S.BarAndLineMultiFields:
5704
+ case S.NonSpecific:
5723
5705
  }
5724
5706
  return i;
5725
5707
  }
5726
5708
  function $l(t) {
5727
5709
  const { attributes: e, showMean: i, chartSubType: r } = t;
5728
- i && (r === F.BoxPlotC5MonoFieldAndSplitBy || r === F.BoxPlotC6MultiFieldsAndSplitBy || r === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && (e[B.boxPlot.boxPlotMeanLineMarkerId] = !0);
5710
+ i && (r === S.BoxPlotC5MonoFieldAndSplitBy || r === S.BoxPlotC6MultiFieldsAndSplitBy || r === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && (e[B.boxPlot.boxPlotMeanLineMarkerId] = !0);
5729
5711
  }
5730
5712
  function _l(t) {
5731
5713
  const { queryResponse: e, chartConfig: i, maxCategoryCount: r } = t, a = G(i.series);
@@ -5735,7 +5717,7 @@ function zl(t) {
5735
5717
  const { attributes: e, uniqueCategoryList: i, maxCategoryCount: r, x: a, chartSubType: n } = t;
5736
5718
  let s = !1;
5737
5719
  if (a && r && Number.isFinite(r) && !ta.includes(n))
5738
- if ((n === F.BarAndLineFromFields || n === F.PieFromFields) && Object.keys(e).length > r)
5720
+ if ((n === S.BarAndLineFromFields || n === S.PieFromFields) && Object.keys(e).length > r)
5739
5721
  Object.keys(e).filter((o) => o !== O.EnvelopeAggregate).forEach((o, l) => {
5740
5722
  l >= r && delete e[o];
5741
5723
  });
@@ -5748,7 +5730,7 @@ function zl(t) {
5748
5730
  function Ql(t) {
5749
5731
  const { attributes: e, x: i, y: r, xFieldDomain: a, yFieldDomain: n, chartType: s, chartSubType: o, xAxisValueFormat: l, yAxisValueFormat: u } = t;
5750
5732
  let c, d;
5751
- if (o !== F.PieFromFields) {
5733
+ if (o !== S.PieFromFields) {
5752
5734
  const f = e[i], m = typeof r == "string" ? r : r?.[0], g = typeof m == "string" ? e[m] : void 0;
5753
5735
  a && (typeof f == "string" || typeof f == "number") && (c = Ci(f, a)), n && s === h.HeatSeries && (typeof g == "string" || typeof g == "number") && (d = Ci(g, n)), c !== void 0 && c !== f && (typeof c != "string" || !$t(l)) && (e[B.originalXValue] = f, e[i] = c, e[B.xAxisDisplayField] = c), typeof r == "string" && !$t(u) && d !== void 0 && d !== g && (e[B.originalYCategoryValue] = e[r], e[r] = d);
5754
5736
  }
@@ -5758,7 +5740,7 @@ function Wl(t) {
5758
5740
  let o;
5759
5741
  if (i)
5760
5742
  o = i;
5761
- else if (r === F.PieNoAggregation || r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation) {
5743
+ else if (r === S.PieNoAggregation || r === S.BarAndLineNoAggregation || r === S.BarAndLineSplitByNoAggregation) {
5762
5744
  const l = a.getObjectId();
5763
5745
  l != null && (o = [l]);
5764
5746
  }
@@ -5773,7 +5755,7 @@ function Hl(t) {
5773
5755
  }
5774
5756
  function Gl(t) {
5775
5757
  const { chartSubType: e, attributes: i, x: r } = t;
5776
- e !== F.BarAndLineFromFields && e !== F.PieFromFields && (i[B.originalXValue] = i[r]);
5758
+ e !== S.BarAndLineFromFields && e !== S.PieFromFields && (i[B.originalXValue] = i[r]);
5777
5759
  }
5778
5760
  function Sa(t, e) {
5779
5761
  let i;
@@ -5794,7 +5776,7 @@ function Fa(t) {
5794
5776
  resultLimit: o,
5795
5777
  chartLimits: l,
5796
5778
  fieldList: u
5797
- } = t, { series: c } = r, d = G(c), f = V(c), { x: m } = c[0], g = "y" in c[0] ? c[0].y : void 0, p = c[0].query?.outStatistics ?? [], y = _t(r?.axes?.[0]?.valueFormat), S = xi(e, m), b = typeof g == "string" ? xi(e, g) : void 0, C = mu(u ?? []).includes(m), x = Ke(r), v = [];
5779
+ } = t, { series: c } = r, d = G(c), f = V(c), { x: m } = c[0], g = "y" in c[0] ? c[0].y : void 0, y = c[0].query?.outStatistics ?? [], p = _t(r?.axes?.[0]?.valueFormat), F = xi(e, m), b = typeof g == "string" ? xi(e, g) : void 0, C = mu(u ?? []).includes(m), x = Ke(r), v = [];
5798
5780
  let A = 0;
5799
5781
  const N = /* @__PURE__ */ new Set(), {
5800
5782
  maxCategoryCount: L,
@@ -5803,7 +5785,7 @@ function Fa(t) {
5803
5785
  for (let I = 0; D[I] && I < D.length && !(o !== void 0 && A >= o); I += 1) {
5804
5786
  A += kl(d, r);
5805
5787
  const P = D[I], E = { ...P.attributes };
5806
- zl({ attributes: E, uniqueCategoryList: N, maxCategoryCount: w, x: m, chartSubType: d }) || (Gl({ chartSubType: d, x: m, attributes: E }), El(E, c), Rl({ chartSubType: d, dataItem: E, outStatistics: p }), ql({
5788
+ zl({ attributes: E, uniqueCategoryList: N, maxCategoryCount: w, x: m, chartSubType: d }) || (Gl({ chartSubType: d, x: m, attributes: E }), El(E, c), Rl({ chartSubType: d, dataItem: E, outStatistics: y }), ql({
5807
5789
  dataItem: E,
5808
5790
  splitByField: n,
5809
5791
  y: g,
@@ -5813,7 +5795,7 @@ function Fa(t) {
5813
5795
  chartSubType: d,
5814
5796
  attributes: E,
5815
5797
  y: typeof g == "string" ? g : g?.[0]
5816
- }), $l({ attributes: E, showMean: x, chartSubType: d }), Pl({ attributes: E, x: m, categoryValueFormat: y, isDateField: C, isTimeBinningSeries: s }), Ll({
5798
+ }), $l({ attributes: E, showMean: x, chartSubType: d }), Pl({ attributes: E, x: m, categoryValueFormat: p, isDateField: C, isTimeBinningSeries: s }), Ll({
5817
5799
  x: m,
5818
5800
  fieldList: u,
5819
5801
  attributes: E
@@ -5830,7 +5812,7 @@ function Fa(t) {
5830
5812
  attributes: E,
5831
5813
  x: m,
5832
5814
  y: g,
5833
- xFieldDomain: S,
5815
+ xFieldDomain: F,
5834
5816
  yFieldDomain: b,
5835
5817
  chartType: f,
5836
5818
  chartSubType: d,
@@ -5869,9 +5851,9 @@ async function ti(t) {
5869
5851
  errorStrings: d,
5870
5852
  abortKey: f,
5871
5853
  abortSignal: m
5872
- } = t, { series: g } = r, p = G(g);
5873
- let y = [];
5874
- const S = p === F.BarAndLineSplitBy || p === F.BarAndLineSplitByNoAggregation ? re(g[0].query?.where) : "", b = c ?? await xe({
5854
+ } = t, { series: g } = r, y = G(g);
5855
+ let p = [];
5856
+ const F = y === S.BarAndLineSplitBy || y === S.BarAndLineSplitByNoAggregation ? re(g[0].query?.where) : "", b = c ?? await xe({
5875
5857
  queryObject: e,
5876
5858
  queryConfig: i,
5877
5859
  featureCount: n,
@@ -5880,20 +5862,20 @@ async function ti(t) {
5880
5862
  errorStrings: d,
5881
5863
  abortSignal: m
5882
5864
  }), T = Te(e, l), { x: C } = g[0];
5883
- return y = Fa({
5865
+ return p = Fa({
5884
5866
  queryObject: e,
5885
5867
  queryResponse: b,
5886
5868
  chartConfig: r,
5887
5869
  mapToStatField: a,
5888
- splitByField: S,
5870
+ splitByField: F,
5889
5871
  isTimeBinningSeries: s,
5890
5872
  fieldList: T,
5891
5873
  resultLimit: i.num,
5892
5874
  chartLimits: o
5893
- }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (y = Bt({ data: y, x: C, splitByField: S })), y = Al(
5894
- y,
5875
+ }), y !== S.BarAndLineSplitByNoAggregation && y !== S.BarAndLineFromFields && (F !== "" && (p = Bt({ data: p, x: C, splitByField: F })), p = Al(
5876
+ p,
5895
5877
  g
5896
- )), y;
5878
+ )), p;
5897
5879
  }
5898
5880
  async function ba(t) {
5899
5881
  const {
@@ -5906,8 +5888,8 @@ async function ba(t) {
5906
5888
  abortSignal: o
5907
5889
  } = t, { series: l } = e, u = G(l), { x: c } = l[0], d = l.length;
5908
5890
  let f, m, g = !1;
5909
- if (u === F.BoxPlotC1MonoField || u === F.BoxPlotC5MonoFieldAndSplitBy ? (m = d, f = m) : u === F.BoxPlotC2MultiFields || u === F.BoxPlotC6MultiFieldsAndSplitBy ? (m = e.series[0].y.length, f = m) : u === F.PieFromFields || u === F.BarAndLineFromFields ? (m = l[0].query?.outStatistics?.filter(
5910
- (p) => p.statisticType !== O.EnvelopeAggregate
5891
+ if (u === S.BoxPlotC1MonoField || u === S.BoxPlotC5MonoFieldAndSplitBy ? (m = d, f = m) : u === S.BoxPlotC2MultiFields || u === S.BoxPlotC6MultiFieldsAndSplitBy ? (m = e.series[0].y.length, f = m) : u === S.PieFromFields || u === S.BarAndLineFromFields ? (m = l[0].query?.outStatistics?.filter(
5892
+ (y) => y.statisticType !== O.EnvelopeAggregate
5911
5893
  ).length ?? 0, f = m) : f = await us({
5912
5894
  queryObject: i,
5913
5895
  x: c,
@@ -5916,8 +5898,8 @@ async function ba(t) {
5916
5898
  isGaugeByFeature: s,
5917
5899
  abortSignal: o
5918
5900
  }), f !== void 0) {
5919
- const p = u === F.BoxPlotC1MonoField || u === F.BoxPlotC3MonoFieldAndCategory || u === F.BoxPlotC5MonoFieldAndSplitBy;
5920
- m = mi(u) && !p ? f * d : f;
5901
+ const y = u === S.BoxPlotC1MonoField || u === S.BoxPlotC3MonoFieldAndCategory || u === S.BoxPlotC5MonoFieldAndSplitBy;
5902
+ m = mi(u) && !y ? f * d : f;
5921
5903
  }
5922
5904
  return n === We.RenderUpToTheLimit && m !== void 0 && a !== void 0 && a < m && (m = a, f = Math.ceil(m / d), g = !0), { categoryOrDateCount: f, elementCount: m, chartLimitsReached: g };
5923
5905
  }
@@ -5937,10 +5919,10 @@ async function pi(t) {
5937
5919
  returnStatisticsAggregatedIds: f,
5938
5920
  chartLimits: m,
5939
5921
  popupTemplateFieldInfosEnabled: g,
5940
- hideZeroCountCategories: p
5922
+ hideZeroCountCategories: y
5941
5923
  } = t;
5942
5924
  Ke(e);
5943
- const y = t.replaceNoValueCategoryWithZero ?? B.options.replaceNoValueCategoryWithZero, S = !(p ?? !y), { behaviorAfterLimit: b } = m ?? {};
5925
+ const p = t.replaceNoValueCategoryWithZero ?? B.options.replaceNoValueCategoryWithZero, F = !(y ?? !p), { behaviorAfterLimit: b } = m ?? {};
5944
5926
  let T;
5945
5927
  const C = { valid: !0 };
5946
5928
  let x, v = !1;
@@ -6011,15 +5993,15 @@ async function pi(t) {
6011
5993
  chartLimits: m
6012
5994
  })), Q) {
6013
5995
  if (M === h.PieSeries) {
6014
- L === F.PieFromFields && (x = zt({
5996
+ L === S.PieFromFields && (x = zt({
6015
5997
  dataToConvert: x[0],
6016
5998
  x: ye,
6017
5999
  y: Le,
6018
6000
  fieldList: s
6019
6001
  }));
6020
6002
  let q = "";
6021
- L === F.PieFromFields ? q = Le : "y" in N && typeof N.y == "string" && (q = N.y), bs(x, q) ? C.data = { dataItems: x } : No(C, W.PieChartMixOfNegativePositiveSlices);
6022
- } else if ((M === h.RadarSeries || M === h.BarSeries || M === h.LineSeries || M === h.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in N && typeof N.y == "string" ? x = zt({
6003
+ L === S.PieFromFields ? q = Le : "y" in N && typeof N.y == "string" && (q = N.y), bs(x, q) ? C.data = { dataItems: x } : No(C, W.PieChartMixOfNegativePositiveSlices);
6004
+ } else if ((M === h.RadarSeries || M === h.BarSeries || M === h.LineSeries || M === h.ComboLineAndBarSeries) && (L === S.BarAndLineFromFields && "y" in N && typeof N.y == "string" ? x = zt({
6023
6005
  dataToConvert: x[0],
6024
6006
  x: N.x,
6025
6007
  y: N.y,
@@ -6040,7 +6022,7 @@ async function pi(t) {
6040
6022
  chartType: M,
6041
6023
  chartLimits: m
6042
6024
  }), Q)) {
6043
- S && (x = sl(x, e));
6025
+ F && (x = sl(x, e));
6044
6026
  let q = {};
6045
6027
  if (Be(N)) {
6046
6028
  const { size: U, unit: X } = N.temporalBinning ?? {};
@@ -6122,11 +6104,11 @@ function Zl(t) {
6122
6104
  for (const m of r) {
6123
6105
  const g = String(m);
6124
6106
  if (!c.has(`${f}|${g}`)) {
6125
- const p = l ? Ut({
6107
+ const y = l ? Ut({
6126
6108
  queryObject: l,
6127
6109
  fieldName: s,
6128
6110
  fieldValue: f
6129
- }) ?? d : d, y = l ? Ut({
6111
+ }) ?? d : d, p = l ? Ut({
6130
6112
  queryObject: l,
6131
6113
  fieldName: o,
6132
6114
  fieldValue: g
@@ -6134,8 +6116,8 @@ function Zl(t) {
6134
6116
  u.push({
6135
6117
  [B.originalXValue]: d === null ? null : d,
6136
6118
  [B.originalYCategoryValue]: m === null ? null : m,
6137
- [H.xField]: d === null ? "null" : p,
6138
- [H.yField]: m === null ? "null" : y,
6119
+ [H.xField]: d === null ? "null" : y,
6120
+ [H.yField]: m === null ? "null" : p,
6139
6121
  [a]: n,
6140
6122
  [vr]: !0
6141
6123
  // flagging the cell with an extra field to later skip it at selection
@@ -6165,10 +6147,10 @@ async function xa(t) {
6165
6147
  syncViewTimeZone: f,
6166
6148
  abortKey: m,
6167
6149
  abortSignal: g
6168
- } = t, p = { valid: !0 };
6169
- let y;
6150
+ } = t, y = { valid: !0 };
6151
+ let p;
6170
6152
  if (Je(e)) {
6171
- const { nullPolicy: S } = e, b = e.series[0], { x: T, y: C, query: x, xTemporalBinning: v, yTemporalBinning: A } = b, N = x?.outStatistics?.[0]?.outStatisticFieldName ?? "", L = x?.outStatistics?.[0]?.statisticType ?? O.Count, M = jl(e), w = H.valueField, D = S === be.Zero ? 0 : null;
6153
+ const { nullPolicy: F } = e, b = e.series[0], { x: T, y: C, query: x, xTemporalBinning: v, yTemporalBinning: A } = b, N = x?.outStatistics?.[0]?.outStatisticFieldName ?? "", L = x?.outStatistics?.[0]?.statisticType ?? O.Count, M = jl(e), w = H.valueField, D = F === be.Zero ? 0 : null;
6172
6154
  if (vo(e)) {
6173
6155
  const I = n ? await St({
6174
6156
  queryObject: r,
@@ -6191,7 +6173,7 @@ async function xa(t) {
6191
6173
  chartType: h.HeatSeries,
6192
6174
  chartLimits: u
6193
6175
  }))
6194
- Wt({ dataInfo: p, chartType: h.HeatSeries });
6176
+ Wt({ dataInfo: y, chartType: h.HeatSeries });
6195
6177
  else {
6196
6178
  const z = await ls({
6197
6179
  chartConfig: e,
@@ -6205,7 +6187,7 @@ async function xa(t) {
6205
6187
  });
6206
6188
  if (typeof z?.[0] == "object") {
6207
6189
  const Q = Te(r, c);
6208
- y = Fa({
6190
+ p = Fa({
6209
6191
  queryObject: r,
6210
6192
  queryResponse: z,
6211
6193
  chartConfig: e,
@@ -6214,10 +6196,10 @@ async function xa(t) {
6214
6196
  chartLimits: u,
6215
6197
  resultLimit: i.num,
6216
6198
  fieldList: Q
6217
- }), y.length !== E && I && P && (y = [
6218
- ...y,
6199
+ }), p.length !== E && I && P && (p = [
6200
+ ...p,
6219
6201
  ...Zl({
6220
- dataItems: y,
6202
+ dataItems: p,
6221
6203
  xUniqueValues: I,
6222
6204
  yUniqueValues: P,
6223
6205
  valueField: w,
@@ -6226,8 +6208,8 @@ async function xa(t) {
6226
6208
  y: C,
6227
6209
  queryObject: r
6228
6210
  })
6229
- ], M && (y = Xl({
6230
- dataItems: y,
6211
+ ], M && (p = Xl({
6212
+ dataItems: p,
6231
6213
  valueField: w,
6232
6214
  filterOutZero: L === O.Count
6233
6215
  })));
@@ -6245,7 +6227,7 @@ async function xa(t) {
6245
6227
  abortSignal: g
6246
6228
  }), P = A ? Ul(A.unit) : await St({ queryObject: r, queryConfig: i, category: C, errorStrings: s, abortKey: m, abortSignal: g });
6247
6229
  let E = 0;
6248
- y = I?.features.flatMap((z) => {
6230
+ p = I?.features.flatMap((z) => {
6249
6231
  const Q = [], { attributes: q, stackedAttributes: U } = z, X = [];
6250
6232
  if (U?.forEach((K) => {
6251
6233
  const k = `${K[C]}`;
@@ -6270,7 +6252,7 @@ async function xa(t) {
6270
6252
  })) || Q.push({
6271
6253
  [H.xField]: `${q[_.heatChartLowerBoundaryAlias]}`,
6272
6254
  [H.yField]: k,
6273
- [w]: S === be.Zero ? 0 : null,
6255
+ [w]: F === be.Zero ? 0 : null,
6274
6256
  [vr]: !0
6275
6257
  // flagging the cell with an extra field to later skip it at selection
6276
6258
  });
@@ -6282,18 +6264,18 @@ async function xa(t) {
6282
6264
  seriesCount: 1,
6283
6265
  chartType: h.HeatSeries,
6284
6266
  chartLimits: u
6285
- }) || Wt({ dataInfo: p, chartType: h.HeatSeries });
6267
+ }) || Wt({ dataInfo: y, chartType: h.HeatSeries });
6286
6268
  }
6287
- u?.behaviorAfterLimit === We.RenderUpToTheLimit && y && (y = Yl({
6269
+ u?.behaviorAfterLimit === We.RenderUpToTheLimit && p && (p = Yl({
6288
6270
  chartConfig: e,
6289
- dataItems: y,
6271
+ dataItems: p,
6290
6272
  chartLimits: u
6291
- })), y && (p.data = {
6292
- dataItems: y,
6293
- heatChartAxesData: na({ chartConfig: e, chartData: y })
6273
+ })), p && (y.data = {
6274
+ dataItems: p,
6275
+ heatChartAxesData: na({ chartConfig: e, chartData: p })
6294
6276
  });
6295
6277
  }
6296
- return p;
6278
+ return y;
6297
6279
  }
6298
6280
  function Jl(t) {
6299
6281
  const { chartConfig: e, data: i, chartLimits: r } = t, a = e.series;
@@ -6311,8 +6293,8 @@ function Jl(t) {
6311
6293
  if (u.push(f), c += l.filter((m) => Number.isFinite(f[m])).length, c > o) {
6312
6294
  let m = c - o, g = l.length - 1;
6313
6295
  for (; m !== 0 && g >= 0; ) {
6314
- const p = l[g];
6315
- Number.isFinite(f[p]) && (delete f[p], m -= 1), g -= 1;
6296
+ const y = l[g];
6297
+ Number.isFinite(f[y]) && (delete f[y], m -= 1), g -= 1;
6316
6298
  }
6317
6299
  }
6318
6300
  d += 1;
@@ -6339,15 +6321,15 @@ async function Ii(t) {
6339
6321
  popupTemplateFieldInfosEnabled: f,
6340
6322
  view: m,
6341
6323
  syncViewTimeZone: g
6342
- } = t, { behaviorAfterLimit: p } = d ?? {}, y = e.series, S = y[0], { x: b } = S, T = re(S.query?.where), C = { valid: !0 };
6324
+ } = t, { behaviorAfterLimit: y } = d ?? {}, p = e.series, F = p[0], { x: b } = F, T = re(F.query?.where), C = { valid: !0 };
6343
6325
  let x;
6344
- if (Be(S)) {
6345
- const { temporalBinning: v } = S;
6326
+ if (Be(F)) {
6327
+ const { temporalBinning: v } = F;
6346
6328
  if (r && v) {
6347
6329
  const { unit: A, size: N } = v, w = Te(r).find((ge) => ge.name === b)?.type;
6348
6330
  let D = 1, I = { unit: A, size: N }, P = !1, E = !1, z = !1;
6349
6331
  const Q = vl({
6350
- series: S,
6332
+ series: F,
6351
6333
  isTimeBinningSeries: !0,
6352
6334
  setTimeBinningInfoWhenNotProvided: l
6353
6335
  }), q = !dt(T, r) || Q ? await gl({ queryObject: r, queryConfig: i, x: b, xFieldType: w, errorStrings: o, abortSignal: n }) : void 0;
@@ -6366,10 +6348,10 @@ async function Ii(t) {
6366
6348
  chartLimits: d
6367
6349
  });
6368
6350
  let K = h.LineSeries, k = W.LineChartExceedsLimit;
6369
- Co(S) ? (K = h.BarSeries, k = W.BarElementExceedsLimit) : xo(S) && (K = h.RadarSeries, k = W.RadarChartExceedsLimit);
6351
+ Co(F) ? (K = h.BarSeries, k = W.BarElementExceedsLimit) : xo(F) && (K = h.RadarSeries, k = W.RadarChartExceedsLimit);
6370
6352
  let Y = Oe({
6371
6353
  count: D ?? 0,
6372
- seriesCount: y.length,
6354
+ seriesCount: p.length,
6373
6355
  chartType: K,
6374
6356
  chartLimits: d
6375
6357
  });
@@ -6387,7 +6369,7 @@ async function Ii(t) {
6387
6369
  syncViewTimeZone: g,
6388
6370
  returnStatisticsAggregatedIds: c,
6389
6371
  abortSignal: n
6390
- }), nt = "y" in S && typeof S.y == "string" ? S.y : void 0;
6372
+ }), nt = "y" in F && typeof F.y == "string" ? F.y : void 0;
6391
6373
  if ({ data: x, firstOrLastWasSkipped: z } = bl({
6392
6374
  chartConfig: e,
6393
6375
  queryResults: yt,
@@ -6399,16 +6381,16 @@ async function Ii(t) {
6399
6381
  queryObject: r
6400
6382
  }), !Oe({
6401
6383
  count: x.length,
6402
- seriesCount: y.length,
6384
+ seriesCount: p.length,
6403
6385
  chartType: K,
6404
6386
  chartLimits: d
6405
6387
  })) {
6406
- const Pt = le(y), pt = x.filter(
6388
+ const Pt = le(p), pt = x.filter(
6407
6389
  (Pe) => Pt.some((Ne) => Ne in Pe && Number.isFinite(Pe[Ne]))
6408
6390
  ).length;
6409
6391
  Oe({
6410
6392
  count: pt,
6411
- seriesCount: y.length,
6393
+ seriesCount: p.length,
6412
6394
  chartType: K,
6413
6395
  chartLimits: d
6414
6396
  }) || (Y = !1);
@@ -6419,7 +6401,7 @@ async function Ii(t) {
6419
6401
  dateMaxTimestamp: q.dateRange.dateMaxTimestamp,
6420
6402
  timeIntervalInfo: I
6421
6403
  });
6422
- D = ge * y.length, D = ga(D, I.unit), x = await ti({
6404
+ D = ge * p.length, D = ga(D, I.unit), x = await ti({
6423
6405
  queryObject: r,
6424
6406
  uniqueQuery: U,
6425
6407
  chartConfig: e,
@@ -6438,14 +6420,14 @@ async function Ii(t) {
6438
6420
  chartConfig: e,
6439
6421
  queryResults: x,
6440
6422
  x: b,
6441
- seriesConfig: y,
6423
+ seriesConfig: p,
6442
6424
  dateRange: q.dateRange,
6443
6425
  timeIntervalInfo: I,
6444
6426
  errorStrings: o,
6445
6427
  abortSignal: n
6446
6428
  });
6447
6429
  }
6448
- Kn(r) && x && (x?.length + 1 === tr && z || x.length === tr) && (P = !0), p === We.RenderUpToTheLimit && x && ({ trimmedData: x, chartLimitsReached: E } = Jl({ chartConfig: e, chartLimits: d, data: x }));
6430
+ Kn(r) && x && (x?.length + 1 === tr && z || x.length === tr) && (P = !0), y === We.RenderUpToTheLimit && x && ({ trimmedData: x, chartLimitsReached: E } = Jl({ chartConfig: e, chartLimits: d, data: x }));
6449
6431
  }
6450
6432
  Y || (C.valid = !1, C.invalidType = k), C.data = {
6451
6433
  dataItems: x,
@@ -6474,7 +6456,7 @@ async function Kl(t) {
6474
6456
  xAxisValueFormatType: ve(e),
6475
6457
  setTimeBinningInfoWhenNotProvided: n,
6476
6458
  queryObject: r
6477
- }), { uniqueQuery: p, mapToStatField: y } = _i({
6459
+ }), { uniqueQuery: y, mapToStatField: p } = _i({
6478
6460
  chartConfig: e,
6479
6461
  queryObject: r,
6480
6462
  queryConfig: i,
@@ -6483,13 +6465,13 @@ async function Kl(t) {
6483
6465
  returnFeaturesExtent: s,
6484
6466
  chartLimits: l
6485
6467
  });
6486
- let S = await ti({
6468
+ let F = await ti({
6487
6469
  queryObject: r,
6488
- uniqueQuery: p,
6470
+ uniqueQuery: y,
6489
6471
  elementCount: 1,
6490
6472
  // this will skip the query counting the number of features, not needed for selection
6491
6473
  chartConfig: e,
6492
- mapToStatField: y,
6474
+ mapToStatField: p,
6493
6475
  isTimeBinningSeries: g,
6494
6476
  chartLimits: l,
6495
6477
  popupTemplateFieldInfosEnabled: u,
@@ -6497,7 +6479,7 @@ async function Kl(t) {
6497
6479
  errorStrings: c,
6498
6480
  abortKey: a
6499
6481
  });
6500
- return me(e) && (S = la({ chartConfig: e, data: S, calculateZScore: !1 })), f.data = { dataItems: S }, f;
6482
+ return me(e) && (F = la({ chartConfig: e, data: F, calculateZScore: !1 })), f.data = { dataItems: F }, f;
6501
6483
  }
6502
6484
  async function ec(t) {
6503
6485
  const {
@@ -6517,7 +6499,7 @@ async function ec(t) {
6517
6499
  } = t;
6518
6500
  let g = { valid: !0 };
6519
6501
  if (me(e)) {
6520
- const p = me(e) ? e.showMean : !1;
6502
+ const y = me(e) ? e.showMean : !1;
6521
6503
  g = await Pi({
6522
6504
  queryObject: r,
6523
6505
  chartConfig: e,
@@ -6532,7 +6514,7 @@ async function ec(t) {
6532
6514
  view: d,
6533
6515
  errorStrings: m,
6534
6516
  abortKey: f
6535
- }), p && g.data && "dataItems" in g.data && "meanLines" in g.data && g.data.meanLines && (g.data.dataItems = [...g.data.dataItems, ...g.data.meanLines]);
6517
+ }), y && g.data && "dataItems" in g.data && "meanLines" in g.data && g.data.meanLines && (g.data.dataItems = [...g.data.dataItems, ...g.data.meanLines]);
6536
6518
  }
6537
6519
  return g;
6538
6520
  }
@@ -6572,7 +6554,7 @@ async function rc(t) {
6572
6554
  dataContextCountDistinctX: m,
6573
6555
  dataContextCountDistinctY: g
6574
6556
  } = B.scatterplotAggregationFields;
6575
- let p, y, S, b, T;
6557
+ let y, p, F, b, T;
6576
6558
  const C = e.get(u), x = e.get(c), v = e.get(d), A = e.get(f);
6577
6559
  if (C != null && v !== void 0 && v !== null && x !== void 0 && x !== null && A !== void 0 && A !== null && !Number.isNaN(C + x + v + A)) {
6578
6560
  const {
@@ -6586,7 +6568,7 @@ async function rc(t) {
6586
6568
  abortKey: o,
6587
6569
  abortSignal: l
6588
6570
  });
6589
- S = Math.min(D.get(g) ?? Number.NaN, w), b = Math.min(D.get(m) ?? Number.NaN, w), T = b * S, p = x === C ? 0 : (x - C) / (b - 1), y = A === v ? 0 : (A - v) / (S - 1), e.set(B.scatterplotAggregationFields.xStep, p), e.set(B.scatterplotAggregationFields.yStep, y), e.set(B.scatterplotAggregationFields.rowCount, S), e.set(B.scatterplotAggregationFields.columnCount, b), e.set(B.scatterplotAggregationFields.realGridSize, T);
6571
+ F = Math.min(D.get(g) ?? Number.NaN, w), b = Math.min(D.get(m) ?? Number.NaN, w), T = b * F, y = x === C ? 0 : (x - C) / (b - 1), p = A === v ? 0 : (A - v) / (F - 1), e.set(B.scatterplotAggregationFields.xStep, y), e.set(B.scatterplotAggregationFields.yStep, p), e.set(B.scatterplotAggregationFields.rowCount, F), e.set(B.scatterplotAggregationFields.columnCount, b), e.set(B.scatterplotAggregationFields.realGridSize, T);
6590
6572
  }
6591
6573
  }
6592
6574
  function ac(t) {
@@ -6638,13 +6620,13 @@ async function sc(t) {
6638
6620
  } = t, c = i.series[0], { x: d, y: f } = c, {
6639
6621
  dataContextXMinField: m,
6640
6622
  dataContextXMaxField: g,
6641
- dataContextYMinField: p,
6642
- dataContextYMaxField: y,
6643
- queryNumberOfFeatures: S,
6623
+ dataContextYMinField: y,
6624
+ dataContextYMaxField: p,
6625
+ queryNumberOfFeatures: F,
6644
6626
  queryNumberOfAggregatedFeatures: b
6645
6627
  } = B.scatterplotAggregationFields;
6646
6628
  let T;
6647
- const C = e?.get(m) ?? Number.NaN, x = e?.get(g) ?? Number.NaN, v = e?.get(S) ?? Number.NaN, A = e?.get(p) ?? C, N = e?.get(y) ?? x;
6629
+ const C = e?.get(m) ?? Number.NaN, x = e?.get(g) ?? Number.NaN, v = e?.get(F) ?? Number.NaN, A = e?.get(y) ?? C, N = e?.get(p) ?? x;
6648
6630
  if (C != null && A !== void 0 && A !== null && x !== void 0 && x !== null && N !== void 0 && N !== null && !Number.isNaN(C + x + A + N)) {
6649
6631
  const L = j(r), { idField: M, isTraditionalTypeOID: w } = Ae(L), D = w ? M : "*", I = e?.get(B.scatterplotAggregationFields.xStep), P = e?.get(B.scatterplotAggregationFields.yStep), E = e?.get(B.scatterplotAggregationFields.realGridSize), z = e?.get(B.scatterplotAggregationFields.rowCount), Q = e?.get(B.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), U = Te(r);
6650
6632
  if (U?.forEach((k) => {
@@ -6752,12 +6734,12 @@ async function oc(t) {
6752
6734
  dataContextXMaxField: f,
6753
6735
  dataContextYMinField: m,
6754
6736
  dataContextYMaxField: g,
6755
- queryNumberOfFeatures: p
6756
- } = B.scatterplotAggregationFields, { idField: y, isTraditionalTypeOID: S } = Ae(j(r)), b = S ? y : "*", T = [
6737
+ queryNumberOfFeatures: y
6738
+ } = B.scatterplotAggregationFields, { idField: p, isTraditionalTypeOID: F } = Ae(j(r)), b = F ? p : "*", T = [
6757
6739
  {
6758
6740
  statisticType: O.Count,
6759
6741
  onStatisticField: b,
6760
- outStatisticFieldName: p
6742
+ outStatisticFieldName: y
6761
6743
  },
6762
6744
  {
6763
6745
  statisticType: O.Minimum,
@@ -6800,43 +6782,43 @@ function lc(t) {
6800
6782
  let d = [];
6801
6783
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
6802
6784
  const f = _r(r, a), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
6803
- i.stackedAttributes.forEach((p) => {
6804
- let y = p[f.stackAlias], S;
6805
- typeof y == "number" && typeof n == "number" && (y *= n), typeof y == "number" && typeof n == "number" && (S = y + n);
6806
- const b = p[r], T = p[a];
6807
- if (typeof y == "number" && typeof S == "number" && typeof b == "number" && typeof T == "number") {
6785
+ i.stackedAttributes.forEach((y) => {
6786
+ let p = y[f.stackAlias], F;
6787
+ typeof p == "number" && typeof n == "number" && (p *= n), typeof p == "number" && typeof n == "number" && (F = p + n);
6788
+ const b = y[r], T = y[a];
6789
+ if (typeof p == "number" && typeof F == "number" && typeof b == "number" && typeof T == "number") {
6808
6790
  const C = {
6809
- ...p,
6791
+ ...y,
6810
6792
  [r]: Rt({ value: b, valueMin: m, valueMax: g }),
6811
- [a]: Rt({ value: T, valueMin: y, valueMax: S }),
6793
+ [a]: Rt({ value: T, valueMin: p, valueMax: F }),
6812
6794
  [o]: Math.min(m, g),
6813
6795
  [l]: Math.max(m, g),
6814
- [u]: y,
6815
- [c]: S
6796
+ [u]: p,
6797
+ [c]: F
6816
6798
  };
6817
- Array.isArray(p.aggregateIds) && p.aggregateIds.length !== wt && (C[_.uniqueIds] = p.aggregateIds), d.push(C);
6799
+ Array.isArray(y.aggregateIds) && y.aggregateIds.length !== wt && (C[_.uniqueIds] = y.aggregateIds), d.push(C);
6818
6800
  }
6819
6801
  });
6820
6802
  } else {
6821
6803
  const { expr: f, isInItem: m } = ii(i.attributes);
6822
6804
  if (m && f && i.attributes[f] !== s) {
6823
- let [g, p, y, S] = i.attributes[f].split("|");
6824
- g = Math.min(g, p), p = Math.max(g, p), y = Math.min(y, S), S = Math.max(y, S);
6805
+ let [g, y, p, F] = i.attributes[f].split("|");
6806
+ g = Math.min(g, y), y = Math.max(g, y), p = Math.min(p, F), F = Math.max(p, F);
6825
6807
  const b = {
6826
6808
  ...i.attributes,
6827
6809
  [o]: g,
6828
- [l]: p,
6829
- [u]: y,
6830
- [c]: S
6810
+ [l]: y,
6811
+ [u]: p,
6812
+ [c]: F
6831
6813
  };
6832
6814
  b[r] = Rt({
6833
6815
  value: b[r],
6834
6816
  valueMin: g,
6835
- valueMax: p
6817
+ valueMax: y
6836
6818
  }), b[a] = Rt({
6837
6819
  value: b[a],
6838
- valueMin: y,
6839
- valueMax: S
6820
+ valueMin: p,
6821
+ valueMax: F
6840
6822
  }), d = [b];
6841
6823
  }
6842
6824
  }
@@ -6862,19 +6844,19 @@ function cc(t) {
6862
6844
  async function uc(t) {
6863
6845
  const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: a, errorStrings: n, abortKey: s, abortSignal: o } = t, l = r.series[0], { x: u, y: c } = l, d = j(e);
6864
6846
  let f = [];
6865
- const m = Te(e), g = ai(d).idFields, p = (m?.filter((C) => Nt(C) && C.name !== u && C.name !== c) ?? []).map(
6847
+ const m = Te(e), g = ai(d).idFields, y = (m?.filter((C) => Nt(C) && C.name !== u && C.name !== c) ?? []).map(
6866
6848
  (C) => C.name
6867
- ) ?? [], y = l?.additionalTooltipFields ?? [], S = Array.from(
6868
- /* @__PURE__ */ new Set([u, c, ...g ?? [], ...p, ...y])
6849
+ ) ?? [], p = l?.additionalTooltipFields ?? [], F = Array.from(
6850
+ /* @__PURE__ */ new Set([u, c, ...g ?? [], ...y, ...p])
6869
6851
  ), b = pe(d);
6870
6852
  if (b && !b.isTable) {
6871
6853
  const { rendererField: C, rendererNormalizationField: x } = du(d?.renderer ?? void 0);
6872
- ie(C) || S.push(C), ie(x) || S.push(x);
6854
+ ie(C) || F.push(C), ie(x) || F.push(x);
6873
6855
  }
6874
6856
  const T = {
6875
6857
  ...i,
6876
6858
  orderByFields: [`${u} ${oe.Ascending}`],
6877
- outFields: S
6859
+ outFields: F
6878
6860
  };
6879
6861
  return f = await xe({
6880
6862
  queryObject: e,
@@ -6900,13 +6882,13 @@ async function dc(t) {
6900
6882
  errorStrings: c,
6901
6883
  abortKey: d,
6902
6884
  abortSignal: f
6903
- } = t, m = i.series[0], { x: g, y: p } = m;
6885
+ } = t, m = i.series[0], { x: g, y } = m;
6904
6886
  if (!Number.isNaN(s) && s > 0) {
6905
- const y = { ...r };
6906
- y.where = J([y.where, `${g} IS NOT NULL`, `${p} IS NOT NULL`]), l ? e = await sc({
6887
+ const p = { ...r };
6888
+ p.where = J([p.where, `${g} IS NOT NULL`, `${y} IS NOT NULL`]), l ? e = await sc({
6907
6889
  chartConfig: i,
6908
6890
  queryObject: a,
6909
- queryConfig: y,
6891
+ queryConfig: p,
6910
6892
  statsMap: n,
6911
6893
  returnStatisticsAggregatedIds: o,
6912
6894
  useQueryAttributeBins: u,
@@ -6916,7 +6898,7 @@ async function dc(t) {
6916
6898
  }) : e = await uc({
6917
6899
  queryObject: a,
6918
6900
  chartConfig: i,
6919
- queryConfig: y,
6901
+ queryConfig: p,
6920
6902
  featureCount: s,
6921
6903
  errorStrings: c,
6922
6904
  abortKey: d,
@@ -6950,9 +6932,9 @@ async function Ca(t) {
6950
6932
  abortSignal: u
6951
6933
  }), { queryNumberOfFeatures: f, yStep: m } = B.scatterplotAggregationFields, {
6952
6934
  maxScatterPointsBeforeAggregation: g,
6953
- scatterplot: { aggregationThreshold: p }
6954
- } = Qe(s), y = d?.get(f) ?? Number.NaN, S = y >= (g ?? p), b = rs(r);
6955
- S && await rc({
6935
+ scatterplot: { aggregationThreshold: y }
6936
+ } = Qe(s), p = d?.get(f) ?? Number.NaN, F = p >= (g ?? y), b = rs(r);
6937
+ F && await rc({
6956
6938
  statsMap: d,
6957
6939
  chartConfig: e,
6958
6940
  queryObject: r,
@@ -6966,13 +6948,13 @@ async function Ca(t) {
6966
6948
  ...t,
6967
6949
  queryObject: r,
6968
6950
  statsMap: d,
6969
- numberOfFeatures: y,
6970
- isAggregationMode: S,
6951
+ numberOfFeatures: p,
6952
+ isAggregationMode: F,
6971
6953
  useQueryAttributeBins: b
6972
6954
  }), C = cc({
6973
6955
  chartConfig: e,
6974
6956
  rawData: T,
6975
- isAggregationMode: S,
6957
+ isAggregationMode: F,
6976
6958
  yStep: d.get(m),
6977
6959
  useQueryAttributeBins: b
6978
6960
  });
@@ -6991,7 +6973,7 @@ async function Ca(t) {
6991
6973
  errorStrings: o,
6992
6974
  abortSignal: u
6993
6975
  }) : B.scatterplotSeries;
6994
- c = { dataItems: C, r2: x, trendLinePoints: v, aggregated: S };
6976
+ c = { dataItems: C, r2: x, trendLinePoints: v, aggregated: F };
6995
6977
  }
6996
6978
  return c;
6997
6979
  }
@@ -7052,7 +7034,7 @@ function Oi(t) {
7052
7034
  return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
7053
7035
  }
7054
7036
  function Ba(t) {
7055
- return t === F.BoxPlotC2MultiFields || t === F.BoxPlotC4MultiFieldsAndCategory || t === F.BoxPlotC6MultiFieldsAndSplitBy;
7037
+ return t === S.BoxPlotC2MultiFields || t === S.BoxPlotC4MultiFieldsAndCategory || t === S.BoxPlotC6MultiFieldsAndSplitBy;
7056
7038
  }
7057
7039
  function se(t) {
7058
7040
  const { key: e, y: i, chartSubType: r, splitBy: a, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
@@ -7067,19 +7049,19 @@ function mc(t) {
7067
7049
  const { configSeries: e, boxPlotDataItem: i, yList: r, showOutliers: a } = t, n = G(e);
7068
7050
  let s = !1;
7069
7051
  switch (n) {
7070
- case F.BoxPlotC1MonoField:
7071
- case F.BoxPlotC2MultiFields:
7072
- case F.BoxPlotC3MonoFieldAndCategory:
7052
+ case S.BoxPlotC1MonoField:
7053
+ case S.BoxPlotC2MultiFields:
7054
+ case S.BoxPlotC3MonoFieldAndCategory:
7073
7055
  s = ci({ dataItem: i, showOutliers: a });
7074
7056
  break;
7075
- case F.BoxPlotC4MultiFieldsAndCategory:
7057
+ case S.BoxPlotC4MultiFieldsAndCategory:
7076
7058
  s = r.some(
7077
7059
  (o) => ci({ dataItem: i, y: o, showOutliers: a })
7078
7060
  );
7079
7061
  break;
7080
- case F.BoxPlotC5MonoFieldAndSplitBy:
7081
- case F.BoxPlotC6MultiFieldsAndSplitBy:
7082
- case F.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
7062
+ case S.BoxPlotC5MonoFieldAndSplitBy:
7063
+ case S.BoxPlotC6MultiFieldsAndSplitBy:
7064
+ case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
7083
7065
  s = e.some(
7084
7066
  (o) => ci({
7085
7067
  dataItem: i,
@@ -7099,7 +7081,7 @@ function Di(t) {
7099
7081
  }
7100
7082
  function va(t, e) {
7101
7083
  let i = [];
7102
- return "y" in t && t.y !== void 0 && (e === F.BarAndLineSplitByNoAggregation ? i = [
7084
+ return "y" in t && t.y !== void 0 && (e === S.BarAndLineSplitByNoAggregation ? i = [
7103
7085
  `${t.y.toString()}_${ce({
7104
7086
  where: t.query?.where,
7105
7087
  keepSurroundingQuotes: !1,
@@ -7185,7 +7167,7 @@ function lm(t) {
7185
7167
  {
7186
7168
  const c = l;
7187
7169
  let { x: d, y: f } = e.series[0];
7188
- G(e.series) === F.PieFromFields && (d = ye, f = Le);
7170
+ G(e.series) === S.PieFromFields && (d = ye, f = Le);
7189
7171
  const m = c[f];
7190
7172
  u = c[d] !== void 0 && c[d] !== null && !on(m) && qe(Number(m), i);
7191
7173
  }
@@ -7265,21 +7247,21 @@ function hc(t) {
7265
7247
  const u = r, c = yc(e, i), d = i ? V(e.filter((f) => i?.includes(f.id))) : V(e);
7266
7248
  if (u.forEach((f) => {
7267
7249
  c.forEach((m, g) => {
7268
- const p = d !== h.ComboLineAndBarSeries || g === h.BarSeries;
7250
+ const y = d !== h.ComboLineAndBarSeries || g === h.BarSeries;
7269
7251
  if (n) {
7270
- let y = 0, S = 0, b = !1, T = !1;
7252
+ let p = 0, F = 0, b = !1, T = !1;
7271
7253
  for (let C = 0; C < m.length; C += 1) {
7272
7254
  const x = f[m[C]];
7273
- Number.isFinite(x) && (x < 0 ? (S += x, T = !0, p && (l = !0)) : (y += x, b = !0));
7255
+ Number.isFinite(x) && (x < 0 ? (F += x, T = !0, y && (l = !0)) : (p += x, b = !0));
7274
7256
  }
7275
- s = b ? Math.max(s, y) : s, o = T ? Math.min(o, S) : o, b && !T && (o = Math.min(o, y)), !b && T && (s = Math.max(s, S)), p && b && y <= 0 && (l = !0);
7257
+ s = b ? Math.max(s, p) : s, o = T ? Math.min(o, F) : o, b && !T && (o = Math.min(o, p)), !b && T && (s = Math.max(s, F)), y && b && p <= 0 && (l = !0);
7276
7258
  } else {
7277
- let y = 0;
7278
- for (let S = 0; S < m.length; S += 1) {
7279
- const b = f[m[S]];
7280
- y += b, s = Math.max(s, y), o = Math.min(o, y);
7259
+ let p = 0;
7260
+ for (let F = 0; F < m.length; F += 1) {
7261
+ const b = f[m[F]];
7262
+ p += b, s = Math.max(s, p), o = Math.min(o, p);
7281
7263
  }
7282
- p && (s <= 0 || o <= 0) && (l = !0);
7264
+ y && (s <= 0 || o <= 0) && (l = !0);
7283
7265
  }
7284
7266
  });
7285
7267
  }), a === Fe.Stacked100 && !l) {
@@ -7308,20 +7290,20 @@ function gr(t) {
7308
7290
  const d = s.filter((m) => m[u] !== null);
7309
7291
  if ({ min: r, max: a } = Tt(d, (m) => m[u]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && r !== void 0 && a !== void 0 && ([r, a] = [new Date(r).valueOf(), new Date(a).valueOf()]), c === h.BoxPlotSeries) {
7310
7292
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
7311
- const m = le(l, o), g = G(l), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, y = n.series.map(
7312
- (S) => S.visible !== !1 ? ce({ where: S.query?.where }) : ""
7293
+ const m = le(l, o), g = G(l), y = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, p = n.series.map(
7294
+ (F) => F.visible !== !1 ? ce({ where: F.query?.where }) : ""
7313
7295
  );
7314
- y.length === 0 && y.push(" "), d.forEach((S) => {
7296
+ p.length === 0 && p.push(" "), d.forEach((F) => {
7315
7297
  m.forEach((b) => {
7316
- const T = g === F.BoxPlotC4MultiFieldsAndCategory ? b : void 0;
7317
- y.forEach((C) => {
7298
+ const T = g === S.BoxPlotC4MultiFieldsAndCategory ? b : void 0;
7299
+ p.forEach((C) => {
7318
7300
  const { min: x, max: v } = Sc({
7319
7301
  y: T,
7320
7302
  splitByValue: C,
7321
7303
  chartSubType: g,
7322
7304
  showOutliers: !1,
7323
- standardizeValues: p,
7324
- dataItem: S
7305
+ standardizeValues: y,
7306
+ dataItem: F
7325
7307
  });
7326
7308
  x != null && x < e && (e = x), v != null && v > i && (i = v);
7327
7309
  });
@@ -7333,23 +7315,23 @@ function gr(t) {
7333
7315
  // we should keep the intention of the function purely as it is, meaning retrieving the min/max values from the stacked series.
7334
7316
  case Fe.Stacked100:
7335
7317
  case Fe.Stacked: {
7336
- const { stackedMinY: g, stackedMaxY: p } = hc({
7318
+ const { stackedMinY: g, stackedMaxY: y } = hc({
7337
7319
  seriesConfig: l,
7338
7320
  filteredData: d,
7339
7321
  filteredSeriesIds: o,
7340
7322
  stackedType: m
7341
7323
  });
7342
- e = g, i = p;
7324
+ e = g, i = y;
7343
7325
  break;
7344
7326
  }
7345
7327
  case Fe.Side:
7346
7328
  default: {
7347
- e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, le(l, o).forEach((p) => {
7348
- const { min: y, max: S } = Tt(
7329
+ e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, le(l, o).forEach((y) => {
7330
+ const { min: p, max: F } = Tt(
7349
7331
  d,
7350
- (b) => b[p]
7332
+ (b) => b[y]
7351
7333
  );
7352
- y !== void 0 && y < e && (e = y), S !== void 0 && S > i && (i = S);
7334
+ p !== void 0 && p < e && (e = p), F !== void 0 && F > i && (i = F);
7353
7335
  });
7354
7336
  break;
7355
7337
  }
@@ -7411,7 +7393,7 @@ function um(t) {
7411
7393
  }
7412
7394
  function bc(t, e) {
7413
7395
  const i = t;
7414
- if (e?.[0] !== void 0 && G(e) === F.PieFromFields) {
7396
+ if (e?.[0] !== void 0 && G(e) === S.PieFromFields) {
7415
7397
  const { x: r, y: a } = e[0];
7416
7398
  (Bi(t) ? i : i.dataItems).forEach((o) => (ye in o && r !== ye && (o[r] = o[r] !== void 0 ? o[r] : o[ye], delete o[ye]), Le in o && a !== Le && (o[a] = o[a] !== void 0 ? o[a] : o[Le], delete o[Le]), o));
7417
7399
  }
@@ -7431,8 +7413,8 @@ function xc(t, e) {
7431
7413
  f[o] !== void 0 && (m = f[o]);
7432
7414
  let g = { ...f, [c]: m };
7433
7415
  if (delete g[o], delete g[u], d) {
7434
- let p = f[d];
7435
- f[l] !== void 0 && (p = f[l]), g = { ...g, [d]: p }, delete g[l];
7416
+ let y = f[d];
7417
+ f[l] !== void 0 && (y = f[l]), g = { ...g, [d]: y }, delete g[l];
7436
7418
  }
7437
7419
  return g;
7438
7420
  }), n ? r = s : "dataItems" in r && (r.dataItems = s);
@@ -7513,11 +7495,11 @@ function Bc(t) {
7513
7495
  [f]: m[f]
7514
7496
  }))
7515
7497
  );
7516
- } else u.valid && (a === F.PieFromFields ? n = zt({
7498
+ } else u.valid && (a === S.PieFromFields ? n = zt({
7517
7499
  dataToConvert: c[0],
7518
7500
  x: ye,
7519
7501
  y: Le
7520
- }) : a === F.BarAndLineFromFields ? n = zt({
7502
+ }) : a === S.BarAndLineFromFields ? n = zt({
7521
7503
  dataToConvert: c[0],
7522
7504
  x: i[0].x,
7523
7505
  y: i[0].y
@@ -7542,8 +7524,8 @@ async function vc(t) {
7542
7524
  returnFeaturesExtent: f,
7543
7525
  returnStatisticsAggregatedIds: m,
7544
7526
  popupTemplateFieldInfosEnabled: g,
7545
- view: p
7546
- } = t, { series: y } = r, S = V(y), b = [], { maxOIDsPerSelectionQuery: T, maxElementsPerSelectionQuery: C } = Jt(), x = i && i.length > 0 ? Math.ceil(i.length / C) : void 0, v = Math.ceil(e.length / T), A = x ? x <= v : !1, N = (A ? x : v) ?? 1;
7527
+ view: y
7528
+ } = t, { series: p } = r, F = V(p), b = [], { maxOIDsPerSelectionQuery: T, maxElementsPerSelectionQuery: C } = Jt(), x = i && i.length > 0 ? Math.ceil(i.length / C) : void 0, v = Math.ceil(e.length / T), A = x ? x <= v : !1, N = (A ? x : v) ?? 1;
7547
7529
  for (let M = 0; M < N; M += 1) {
7548
7530
  const w = { ...a };
7549
7531
  if (A && i) {
@@ -7561,7 +7543,7 @@ async function vc(t) {
7561
7543
  });
7562
7544
  w.objectIds = D;
7563
7545
  }
7564
- switch (S) {
7546
+ switch (F) {
7565
7547
  case h.HeatSeries:
7566
7548
  b.push(
7567
7549
  xa({
@@ -7576,7 +7558,7 @@ async function vc(t) {
7576
7558
  returnFeaturesExtent: f,
7577
7559
  returnStatisticsAggregatedIds: m,
7578
7560
  popupTemplateFieldInfosEnabled: g,
7579
- view: p
7561
+ view: y
7580
7562
  })
7581
7563
  );
7582
7564
  break;
@@ -7588,7 +7570,7 @@ async function vc(t) {
7588
7570
  if (Re({
7589
7571
  xAxisValueFormatType: ve(r),
7590
7572
  setTimeBinningInfoWhenNotProvided: d,
7591
- seriesConfig: y[0],
7573
+ seriesConfig: p[0],
7592
7574
  queryObject: s
7593
7575
  })) {
7594
7576
  const D = Ve(r);
@@ -7602,7 +7584,7 @@ async function vc(t) {
7602
7584
  returnFeaturesExtent: f,
7603
7585
  returnStatisticsAggregatedIds: m,
7604
7586
  popupTemplateFieldInfosEnabled: g,
7605
- view: p,
7587
+ view: y,
7606
7588
  errorStrings: n
7607
7589
  })
7608
7590
  );
@@ -7633,7 +7615,7 @@ async function vc(t) {
7633
7615
  returnFeaturesExtent: f,
7634
7616
  returnStatisticsAggregatedIds: m,
7635
7617
  popupTemplateFieldInfosEnabled: g,
7636
- view: p,
7618
+ view: y,
7637
7619
  errorStrings: n,
7638
7620
  queryConfig: w
7639
7621
  })
@@ -7652,7 +7634,7 @@ async function vc(t) {
7652
7634
  returnFeaturesExtent: f,
7653
7635
  returnStatisticsAggregatedIds: m,
7654
7636
  popupTemplateFieldInfosEnabled: g,
7655
- view: p,
7637
+ view: y,
7656
7638
  errorStrings: n,
7657
7639
  sortData: !1,
7658
7640
  // sort not needed
@@ -7667,7 +7649,7 @@ async function vc(t) {
7667
7649
  queryObject: s,
7668
7650
  queryConfig: w,
7669
7651
  chartConfig: r,
7670
- x: y[0].x,
7652
+ x: p[0].x,
7671
7653
  errorStrings: n
7672
7654
  })
7673
7655
  );
@@ -7692,19 +7674,19 @@ async function mm(t) {
7692
7674
  returnSelectionOIDs: f,
7693
7675
  popupTemplateFieldInfosEnabled: m,
7694
7676
  view: g,
7695
- viewExtentUpdated: p,
7696
- runtimeDataFilters: y,
7697
- ignoreViewExtent: S,
7677
+ viewExtentUpdated: y,
7678
+ runtimeDataFilters: p,
7679
+ ignoreViewExtent: F,
7698
7680
  selectionData: b
7699
7681
  } = t, { series: T } = e, { selectionItems: C, selectionOIDs: x } = b ?? {};
7700
7682
  let v;
7701
7683
  const A = V(T), N = j(s), L = A !== h.HistogramSeries && A !== h.HeatSeries && C !== void 0 && C.length > 0 && !(T[0].x in C[0]) && !(ye in C[0]) && !(B.boxPlot.boxPlotCategory in C[0]);
7702
- if (p !== !0 && f !== !1 && x !== void 0 && x.length > 0 && (r === !0 || L || l)) {
7684
+ if (y !== !0 && f !== !1 && x !== void 0 && x.length > 0 && (r === !0 || L || l)) {
7703
7685
  const w = Oi(i), D = Wa({
7704
7686
  queryObject: s,
7705
7687
  chartConfig: e,
7706
- runtimeDataFilters: y,
7707
- ignoreViewExtent: S,
7688
+ runtimeDataFilters: p,
7689
+ ignoreViewExtent: F,
7708
7690
  view: g
7709
7691
  }), I = re(e.series[0]?.query?.where), P = le(e.series), E = De(e.series[0].query?.where);
7710
7692
  if (w && !Tc(w) && w.some((z) => N.objectIdField in z))
@@ -7789,26 +7771,26 @@ function Ac(t) {
7789
7771
  }), u = j(i), c = u?.renderer;
7790
7772
  switch (c?.type) {
7791
7773
  case fe.Simple:
7792
- r = n === h.HistogramSeries || n === h.ScatterSeries || s === F.BarAndLineMonoField || s === F.BoxPlotC1MonoField || s === F.BoxPlotC2MultiFields || s === F.BoxPlotC3MonoFieldAndCategory || s === F.BarAndLineNoAggregation && a.length === 1 && !l;
7774
+ r = n === h.HistogramSeries || n === h.ScatterSeries || s === S.BarAndLineMonoField || s === S.BoxPlotC1MonoField || s === S.BoxPlotC2MultiFields || s === S.BoxPlotC3MonoFieldAndCategory || s === S.BarAndLineNoAggregation && a.length === 1 && !l;
7793
7775
  break;
7794
7776
  case fe.UniqueValue:
7795
7777
  {
7796
7778
  const f = c?.field, m = re(o.query?.where), { x: g } = o;
7797
- r = (s === F.BoxPlotC5MonoFieldAndSplitBy || s === F.BoxPlotC6MultiFieldsAndSplitBy || s === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotC3MonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === g || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n === h.ScatterSeries;
7779
+ r = (s === S.BoxPlotC5MonoFieldAndSplitBy || s === S.BoxPlotC6MultiFieldsAndSplitBy || s === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy || s === S.BarAndLineSplitByNoAggregation || s === S.BarAndLineSplitBy) && f === m || (s === S.BoxPlotC3MonoFieldAndCategory || s === S.PieFromCategory || s === S.BarAndLineMonoField) && f === g || s === S.BarAndLineNoAggregation || s === S.PieNoAggregation || n === h.ScatterSeries;
7798
7780
  }
7799
7781
  break;
7800
7782
  case fe.PieChart:
7801
- r = s === F.PieFromFields || s === F.BarAndLineFromFields || s === F.BarAndLineMultiFields || s === F.BarAndLineMonoField || s === F.BoxPlotC1MonoField || s === F.BoxPlotC2MultiFields || s === F.BoxPlotC3MonoFieldAndCategory || s === F.BoxPlotC4MultiFieldsAndCategory;
7783
+ r = s === S.PieFromFields || s === S.BarAndLineFromFields || s === S.BarAndLineMultiFields || s === S.BarAndLineMonoField || s === S.BoxPlotC1MonoField || s === S.BoxPlotC2MultiFields || s === S.BoxPlotC3MonoFieldAndCategory || s === S.BoxPlotC4MultiFieldsAndCategory;
7802
7784
  break;
7803
7785
  case fe.ClassBreaks:
7804
- r = n === h.HeatSeries || n === h.ScatterSeries || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation;
7786
+ r = n === h.HeatSeries || n === h.ScatterSeries || s === S.BarAndLineNoAggregation || s === S.PieNoAggregation;
7805
7787
  break;
7806
7788
  case fe.Dictionary:
7807
7789
  case fe.DotDensity:
7808
7790
  case fe.Heatmap:
7809
7791
  break;
7810
7792
  default:
7811
- r = ee(u) && (s === F.BarAndLineMonoField || s === F.BarAndLineSplitBy || s === F.BarAndLineSplitByNoAggregation);
7793
+ r = ee(u) && (s === S.BarAndLineMonoField || s === S.BarAndLineSplitBy || s === S.BarAndLineSplitByNoAggregation);
7812
7794
  break;
7813
7795
  }
7814
7796
  }
@@ -7851,34 +7833,34 @@ function Pc(t) {
7851
7833
  (d) => {
7852
7834
  let { field: f } = d;
7853
7835
  const { color: m, label: g } = d;
7854
- let p;
7855
- Array.isArray(m) && m?.length === 4 ? p = m : m && "toRgba" in m && (p = m.toRgba());
7856
- let y = !1, S = !0;
7836
+ let y;
7837
+ Array.isArray(m) && m?.length === 4 ? y = m : m && "toRgba" in m && (y = m.toRgba());
7838
+ let p = !1, F = !0;
7857
7839
  switch (l) {
7858
7840
  case h.BarSeries:
7859
7841
  case h.LineSeries:
7860
7842
  case h.ComboLineAndBarSeries:
7861
7843
  case h.RadarSeries:
7862
- if (r !== F.BarAndLineFromFields) {
7844
+ if (r !== S.BarAndLineFromFields) {
7863
7845
  const b = i.find((T) => T.query?.outStatistics?.[0]?.onStatisticField === f);
7864
7846
  b !== void 0 && "y" in b ? f = [b.y].flat()[0] : f = "";
7865
7847
  }
7866
- y = r !== F.BarAndLineFromFields || f === a[B.originalXValue];
7848
+ p = r !== S.BarAndLineFromFields || f === a[B.originalXValue];
7867
7849
  break;
7868
7850
  case h.PieSeries:
7869
- y = r === F.PieFromFields && f === a[B.originalXValue];
7851
+ p = r === S.PieFromFields && f === a[B.originalXValue];
7870
7852
  break;
7871
7853
  case h.BoxPlotSeries:
7872
- r === F.BoxPlotC1MonoField || r === F.BoxPlotC3MonoFieldAndCategory ? y = f === i[0].y : f && (r === F.BoxPlotC2MultiFields || r === F.BoxPlotC4MultiFieldsAndCategory) && (y = i.map((T) => T.y).flat().includes(f)), S = !1;
7854
+ r === S.BoxPlotC1MonoField || r === S.BoxPlotC3MonoFieldAndCategory ? p = f === i[0].y : f && (r === S.BoxPlotC2MultiFields || r === S.BoxPlotC4MultiFieldsAndCategory) && (p = i.map((T) => T.y).flat().includes(f)), F = !1;
7873
7855
  break;
7874
7856
  }
7875
- y && p && (s = {
7857
+ p && y && (s = {
7876
7858
  type: ne.SMS,
7877
- color: p,
7878
- label: S && g ? g : void 0
7859
+ color: y,
7860
+ label: F && g ? g : void 0
7879
7861
  }, u != null && (s.outline = u), wa({
7880
7862
  dataItem: a,
7881
- symbolField: r === F.BarAndLineFromFields || r === F.PieFromFields ? B.rendererSymbolField : `${B.rendererSymbolField}_${f}`,
7863
+ symbolField: r === S.BarAndLineFromFields || r === S.PieFromFields ? B.rendererSymbolField : `${B.rendererSymbolField}_${f}`,
7882
7864
  rendererSymbol: s,
7883
7865
  rendererOrigin: n
7884
7866
  }) && (o = !0));
@@ -7895,18 +7877,18 @@ function Mc(t) {
7895
7877
  keepSurroundingQuotes: !1,
7896
7878
  escape: !1
7897
7879
  });
7898
- o === null ? s = B.nullValue : i === F.BarAndLineSplitBy && typeof e.y == "string" ? s = e.y : i === F.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? s = `${e.y}_${o}` : s = `${o}`;
7880
+ o === null ? s = B.nullValue : i === S.BarAndLineSplitBy && typeof e.y == "string" ? s = e.y : i === S.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? s = `${e.y}_${o}` : s = `${o}`;
7899
7881
  }
7900
7882
  } else if (r === fe.PieChart)
7901
7883
  switch (i) {
7902
- case F.BoxPlotC2MultiFields:
7884
+ case S.BoxPlotC2MultiFields:
7903
7885
  s = Array.isArray(e.y) ? e.y.flat() : e.y;
7904
7886
  break;
7905
- case F.BarAndLineMonoField:
7906
- case F.BarAndLineMultiFields:
7907
- case F.BoxPlotC1MonoField:
7908
- case F.BoxPlotC3MonoFieldAndCategory:
7909
- case F.BoxPlotC4MultiFieldsAndCategory:
7887
+ case S.BarAndLineMonoField:
7888
+ case S.BarAndLineMultiFields:
7889
+ case S.BoxPlotC1MonoField:
7890
+ case S.BoxPlotC3MonoFieldAndCategory:
7891
+ case S.BoxPlotC4MultiFieldsAndCategory:
7910
7892
  s = e.y;
7911
7893
  break;
7912
7894
  }
@@ -7957,22 +7939,22 @@ async function Oc(t) {
7957
7939
  d = m.rendererSymbol, f = m.colorMatchApplied;
7958
7940
  } else if (i?.[Vt.defaultGroupOfSlicesId] !== !0) {
7959
7941
  const { x: m } = e[0], g = /* @__PURE__ */ new Map();
7960
- o && o.trim() !== "" ? e.forEach((p) => {
7961
- if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
7962
- const y = Pa({
7963
- seriesConfig: p,
7942
+ o && o.trim() !== "" ? e.forEach((y) => {
7943
+ if (y.type === h.BarSeries || y.type === h.LineSeries || y.type === h.BoxPlotSeries || y.type === h.RadarSeries) {
7944
+ const p = Pa({
7945
+ seriesConfig: y,
7964
7946
  chartSubType: s,
7965
7947
  rendererType: a,
7966
7948
  dataItem: i
7967
- }), S = ce({
7968
- where: p.query?.where,
7949
+ }), F = ce({
7950
+ where: y.query?.where,
7969
7951
  normalize: !0,
7970
7952
  keepSurroundingQuotes: !1,
7971
7953
  escape: !1
7972
7954
  });
7973
- g.set(y, {
7955
+ g.set(p, {
7974
7956
  ...i,
7975
- [o]: S
7957
+ [o]: F
7976
7958
  });
7977
7959
  }
7978
7960
  }) : e[0].type === h.HeatSeries && a === fe.ClassBreaks ? g.set(B.rendererSymbolField, {
@@ -7985,11 +7967,11 @@ async function Oc(t) {
7985
7967
  }
7986
7968
  );
7987
7969
  try {
7988
- const p = Array.from(g.entries()), y = l.clone();
7989
- y.layer = l.layer;
7990
- const S = r?.uniqueValueInfos;
7991
- for (let b = 0; b < p.length; b += 1) {
7992
- const [T, C] = p[b];
7970
+ const y = Array.from(g.entries()), p = l.clone();
7971
+ p.layer = l.layer;
7972
+ const F = r?.uniqueValueInfos;
7973
+ for (let b = 0; b < y.length; b += 1) {
7974
+ const [T, C] = y[b];
7993
7975
  if (pr({
7994
7976
  mode: "encode",
7995
7977
  x: m,
@@ -7997,16 +7979,16 @@ async function Oc(t) {
7997
7979
  attributes: C
7998
7980
  }), u && u.length > 0 && Object.keys(C).forEach((v) => {
7999
7981
  u.includes(v) || delete C[v];
8000
- }), y.attributes = C, c?.has(JSON.stringify(C)))
7982
+ }), p.attributes = C, c?.has(JSON.stringify(C)))
8001
7983
  d = c.get(JSON.stringify(C));
8002
7984
  else {
8003
- if (d = (await oi.getDisplayedSymbol(y))?.toJSON(), d != null) {
7985
+ if (d = (await oi.getDisplayedSymbol(p))?.toJSON(), d != null) {
8004
7986
  if (d.color === void 0) {
8005
- const A = (await oi.getDisplayedColor(y))?.toJSON();
7987
+ const A = (await oi.getDisplayedColor(p))?.toJSON();
8006
7988
  A && (d.color = A.length === 4 ? A : [...A, 255]);
8007
7989
  }
8008
- const v = await oi.getLegendLabel(y);
8009
- v != null && v !== "" && (d.label = v, d.uniqueValue = S?.find((A) => A.label === v)?.value ?? void 0);
7990
+ const v = await oi.getLegendLabel(p);
7991
+ v != null && v !== "" && (d.label = v, d.uniqueValue = F?.find((A) => A.label === v)?.value ?? void 0);
8010
7992
  }
8011
7993
  c?.set(JSON.stringify(C), d);
8012
7994
  }
@@ -8319,18 +8301,18 @@ async function Qc(t) {
8319
8301
  // for #17296
8320
8302
  };
8321
8303
  else {
8322
- const g = i.groupByFieldsForStatistics?.[0] ?? "", p = e.colorMatch === !0 && Ac({ chartConfig: e, queryObject: r }), y = m.some((x) => x.query?.fetchNullValues), S = /* @__PURE__ */ new Map();
8304
+ const g = i.groupByFieldsForStatistics?.[0] ?? "", y = e.colorMatch === !0 && Ac({ chartConfig: e, queryObject: r }), p = m.some((x) => x.query?.fetchNullValues), F = /* @__PURE__ */ new Map();
8323
8305
  for (const x of f) {
8324
- const { groupKey: v } = Sr(x.attributes[g], y);
8325
- v === B.nullValue && !y || (S.has(v) || S.set(v, []), S.get(v).push(x.attributes));
8306
+ const { groupKey: v } = Sr(x.attributes[g], p);
8307
+ v === B.nullValue && !p || (F.has(v) || F.set(v, []), F.get(v).push(x.attributes));
8326
8308
  }
8327
8309
  const b = c.fields.find(({ name: x }) => x.toLowerCase() === "value")?.name, T = Vc(
8328
- S,
8310
+ F,
8329
8311
  b
8330
8312
  ), C = [];
8331
- S.forEach((x) => {
8332
- const v = {}, A = x[0][g], { display: N, original: L } = Sr(A, y);
8333
- if (v[g] = N, v[B.xAxisField] = N, v[B.originalXValue] = L, p) {
8313
+ F.forEach((x) => {
8314
+ const v = {}, A = x[0][g], { display: N, original: L } = Sr(A, p);
8315
+ if (v[g] = N, v[B.xAxisField] = N, v[B.originalXValue] = L, y) {
8334
8316
  const M = hr({
8335
8317
  layer: u,
8336
8318
  chartRenderer: e.chartRenderer,
@@ -8348,7 +8330,7 @@ async function Qc(t) {
8348
8330
  keepSurroundingQuotes: !1,
8349
8331
  escape: !1
8350
8332
  });
8351
- if (p && w && D !== void 0 && "y" in M) {
8333
+ if (y && w && D !== void 0 && "y" in M) {
8352
8334
  const U = w.toLowerCase() === b?.toLowerCase(), X = hr({
8353
8335
  layer: u,
8354
8336
  chartRenderer: e.chartRenderer,
@@ -8455,15 +8437,15 @@ async function hm(t) {
8455
8437
  fetchNullValues: o,
8456
8438
  chartLimits: l,
8457
8439
  errorStrings: u
8458
- } = t, d = n.filter((N) => N.name === a)[0]?.type, f = o !== !0 ? `${a} IS NOT NULL` : "", m = r && o !== !0 ? `${r} IS NOT NULL` : "", g = V(e?.series), { where: p } = e?.dataFilters ?? {}, y = {
8459
- where: J([p, f, m]),
8440
+ } = t, d = n.filter((N) => N.name === a)[0]?.type, f = o !== !0 ? `${a} IS NOT NULL` : "", m = r && o !== !0 ? `${r} IS NOT NULL` : "", g = V(e?.series), { where: y } = e?.dataFilters ?? {}, p = {
8441
+ where: J([y, f, m]),
8460
8442
  // excluding the null values from the list
8461
8443
  orderByFields: ie(a) ? [] : [`${a} ${oe.Ascending}`],
8462
8444
  // default sorting ascending for split-by field
8463
8445
  geometry: e?.dataFilters?.geometry
8464
8446
  };
8465
- let S = "";
8466
- s?.length === 0 ? S = Ae(i).idField : s && ([S] = s);
8447
+ let F = "";
8448
+ s?.length === 0 ? F = Ae(i).idField : s && ([F] = s);
8467
8449
  let b = i ? ee(i) ? await Ma({
8468
8450
  layer: i,
8469
8451
  category: e?.series[0].x ?? "",
@@ -8472,7 +8454,7 @@ async function hm(t) {
8472
8454
  queryObject: i,
8473
8455
  category: e?.series[0].x ?? "",
8474
8456
  splitByField: a,
8475
- queryConfig: y,
8457
+ queryConfig: p,
8476
8458
  errorStrings: u
8477
8459
  }) : [];
8478
8460
  const T = Qe(l), C = {
@@ -8489,7 +8471,7 @@ async function hm(t) {
8489
8471
  getKey: (L) => L === null ? null : L?.toString()
8490
8472
  });
8491
8473
  }
8492
- return { categoriesArray: b, seriesLimitReached: A, totalSeriesCount: v, splitByFieldType: d, numericalField: S };
8474
+ return { categoriesArray: b, seriesLimitReached: A, totalSeriesCount: v, splitByFieldType: d, numericalField: F };
8493
8475
  }
8494
8476
  function Sm(t, e) {
8495
8477
  let i = e === "";
@@ -8644,9 +8626,9 @@ function Oe(t) {
8644
8626
  maxBarThreePlusSeriesCountTotal: f,
8645
8627
  maxLineChartSeriesCount: m,
8646
8628
  maxLineUniqueSeriesCountTotal: g,
8647
- maxLineTwoSeriesCountPerSeries: p,
8648
- maxLineTwoSeriesCountTotal: y,
8649
- maxLineThreePlusSeriesCountPerSeries: S,
8629
+ maxLineTwoSeriesCountPerSeries: y,
8630
+ maxLineTwoSeriesCountTotal: p,
8631
+ maxLineThreePlusSeriesCountPerSeries: F,
8650
8632
  maxLineThreePlusSeriesCountTotal: b,
8651
8633
  maxRadarChartSeriesCount: T,
8652
8634
  maxRadarUniqueSeriesCountTotal: C,
@@ -8679,7 +8661,7 @@ function Oe(t) {
8679
8661
  case h.LineSeries:
8680
8662
  {
8681
8663
  const Y = e / i;
8682
- i <= (m ?? q) ? i === 0 ? s = !0 : i === 1 ? s = e <= (g ?? U) : i === 2 ? s = e <= (y ?? U) && Y <= p : i > 2 && (s = e <= (b ?? U) && Y <= S) : s = !1;
8664
+ i <= (m ?? q) ? i === 0 ? s = !0 : i === 1 ? s = e <= (g ?? U) : i === 2 ? s = e <= (p ?? U) && Y <= y : i > 2 && (s = e <= (b ?? U) && Y <= F) : s = !1;
8683
8665
  }
8684
8666
  break;
8685
8667
  case h.RadarSeries:
@@ -8877,7 +8859,7 @@ function eu(t) {
8877
8859
  return t.orderOptions?.orderByFields?.map((e) => Kc(e).fieldToSort) ?? [];
8878
8860
  }
8879
8861
  function qa(t) {
8880
- return t === F.BarAndLineSplitBy || t === F.BarAndLineSplitByNoAggregation || t === F.BoxPlotC5MonoFieldAndSplitBy || t === F.BoxPlotC6MultiFieldsAndSplitBy || t === F.BoxPlotC7MonoFieldAndCategoryAndSplitBy;
8862
+ return t === S.BarAndLineSplitBy || t === S.BarAndLineSplitByNoAggregation || t === S.BoxPlotC5MonoFieldAndSplitBy || t === S.BoxPlotC6MultiFieldsAndSplitBy || t === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy;
8881
8863
  }
8882
8864
  function Pm(t, e) {
8883
8865
  let { selectionItems: i } = t ?? {};
@@ -8927,7 +8909,7 @@ function tu(t = {
8927
8909
  }), o;
8928
8910
  }
8929
8911
  function Im(t, e) {
8930
- return (t === F.BarAndLineNoAggregation || t === F.BarAndLineSplitByNoAggregation) && e !== void 0 ? e.x : B.xAxisField;
8912
+ return (t === S.BarAndLineNoAggregation || t === S.BarAndLineSplitByNoAggregation) && e !== void 0 ? e.x : B.xAxisField;
8931
8913
  }
8932
8914
  function Om(t) {
8933
8915
  const { r: e, g: i, b: r, a = 1 } = t, n = Math.round((1 - a) * 255 + a * e), s = Math.round((1 - a) * 255 + a * i), o = Math.round((1 - a) * 255 + a * r);
@@ -8997,22 +8979,22 @@ function ri(t) {
8997
8979
  dateField: s,
8998
8980
  useViewTimeZone: o,
8999
8981
  returnStatisticsAggregatedIds: l
9000
- } = t, { where: u, outStatistics: c, geometry: d, distance: f, units: m, timeExtent: g, returnDistinctValues: p } = r ?? {}, y = j(i), S = pe(y);
9001
- let b = S?.createQuery() ?? new Gi(), T;
9002
- const C = ai(y).idFields;
8982
+ } = t, { where: u, outStatistics: c, geometry: d, distance: f, units: m, timeExtent: g, returnDistinctValues: y } = r ?? {}, p = j(i), F = pe(p);
8983
+ let b = F?.createQuery() ?? new Gi(), T;
8984
+ const C = ai(p).idFields;
9003
8985
  if (e === "AttributeBinsQuery" && r?.objectIds?.[0] !== void 0 && C && (T = `${C} IN (${r.objectIds.join(",")})`), e === "AttributeBinsQuery" && (b = new vn(b.toJSON()), Te(i).find((N) => N.name === s)?.type !== Z.DateOnly)) {
9004
8986
  const N = Intl.DateTimeFormat().resolvedOptions().timeZone, L = o && a && "timeZone" in a ? a.timeZone : void 0;
9005
8987
  let M = n ?? L ?? N;
9006
8988
  M === "unknown" ? M = "Etc/UTC" : M === "system" && (M = N), b.outTimeZone = M;
9007
8989
  }
9008
- if (b.where = J([b.where, u, T]), "returnDistinctValues" in b && S?.capabilities?.query?.supportsDistinct && (b.returnDistinctValues = p ?? !1), c !== void 0 && S?.capabilities?.query?.supportsStatistics) {
9009
- const v = as(y);
8990
+ if (b.where = J([b.where, u, T]), "returnDistinctValues" in b && F?.capabilities?.query?.supportsDistinct && (b.returnDistinctValues = y ?? !1), c !== void 0 && F?.capabilities?.query?.supportsStatistics) {
8991
+ const v = as(p);
9010
8992
  b.outStatistics = c.filter(
9011
8993
  (A) => A.statisticType !== O.EnvelopeAggregate || v
9012
8994
  ).map((A) => Tn.fromJSON(A));
9013
8995
  }
9014
8996
  const x = it(d);
9015
- return x !== void 0 && (b.geometry = x, r?.spatialRelationship && (b.spatialRelationship = r.spatialRelationship), kr(y) && (f !== void 0 && (b.distance = f), m !== void 0 && (b.units = m))), g && (b.timeExtent = new Mr({
8997
+ return x !== void 0 && (b.geometry = x, r?.spatialRelationship && (b.spatialRelationship = r.spatialRelationship), kr(p) && (f !== void 0 && (b.distance = f), m !== void 0 && (b.units = m))), g && (b.timeExtent = new Mr({
9016
8998
  start: g?.[0],
9017
8999
  end: g?.[1]
9018
9000
  })), iu(b) && (b.cacheHint = !0), l && (b instanceof Gi ? b.returnStatisticsAggregatedIds = !0 : b.returnAggregateIds = !0), b;
@@ -9040,12 +9022,12 @@ function su(t) {
9040
9022
  view: o,
9041
9023
  syncViewTimeZone: l,
9042
9024
  returnStatisticsAggregatedIds: u
9043
- } = t, { unit: c, size: d, timeAggregationType: f, start: m, end: g, offset: p, outTimeZone: y, firstDayOfWeek: S } = r, b = j(e), T = ri({
9025
+ } = t, { unit: c, size: d, timeAggregationType: f, start: m, end: g, offset: y, outTimeZone: p, firstDayOfWeek: F } = r, b = j(e), T = ri({
9044
9026
  queryType: "AttributeBinsQuery",
9045
9027
  queryObject: e,
9046
9028
  queryConfig: i,
9047
9029
  // we look first into the outTimeZone defined at the series level (deprecated), then the tz coming from the axis config
9048
- configTimeZone: y ?? s,
9030
+ configTimeZone: p ?? s,
9049
9031
  view: o,
9050
9032
  dateField: a,
9051
9033
  useViewTimeZone: l ?? !1,
@@ -9057,8 +9039,8 @@ function su(t) {
9057
9039
  interval: { unit: c, value: d },
9058
9040
  start: m,
9059
9041
  end: g,
9060
- offset: p ? { unit: p.unit, value: p.size } : null
9061
- }, S !== void 0 && (T.binParameters.firstDayOfWeek = S), T.binParameters.type === "date" && (b?.capabilities?.queryAttributeBins?.supportsSnapToData && (T.binParameters.snapToData = nu(f)), b?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (T.binParameters.returnFullIntervalBin = !0)), !ie(n)) {
9042
+ offset: y ? { unit: y.unit, value: y.size } : null
9043
+ }, F !== void 0 && (T.binParameters.firstDayOfWeek = F), T.binParameters.type === "date" && (b?.capabilities?.queryAttributeBins?.supportsSnapToData && (T.binParameters.snapToData = nu(f)), b?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (T.binParameters.returnFullIntervalBin = !0)), !ie(n)) {
9062
9044
  const v = pe(b)?.fields.find((A) => A.name === n)?.type;
9063
9045
  (!v || v === "string" || v === "integer" || v === "small-integer" || v === "big-integer" || v === "double") && (T.binParameters.stackBy = {
9064
9046
  type: "field",
@@ -9163,7 +9145,7 @@ function lu(t) {
9163
9145
  view: c,
9164
9146
  syncViewTimeZone: d,
9165
9147
  returnStatisticsAggregatedIds: f
9166
- } = t, m = Te(e), g = m.find((A) => A.name === r)?.type, p = m.find((A) => A.name === a)?.type, y = ri({
9148
+ } = t, m = Te(e), g = m.find((A) => A.name === r)?.type, y = m.find((A) => A.name === a)?.type, p = ri({
9167
9149
  queryType: "AttributeBinsQuery",
9168
9150
  queryObject: e,
9169
9151
  queryConfig: i,
@@ -9173,31 +9155,31 @@ function lu(t) {
9173
9155
  useViewTimeZone: d ?? !1,
9174
9156
  returnStatisticsAggregatedIds: f
9175
9157
  });
9176
- y.binParameters = {
9158
+ p.binParameters = {
9177
9159
  type: "fixed-interval",
9178
9160
  interval: 1
9179
- }, y.lowerBoundaryAlias = _.heatChartLowerBoundaryAlias, y.upperBoundaryAlias = _.heatChartUpperBoundaryAlias, o !== void 0 && (y.binParameters.firstDayOfWeek = o);
9180
- const S = br({
9161
+ }, p.lowerBoundaryAlias = _.heatChartLowerBoundaryAlias, p.upperBoundaryAlias = _.heatChartUpperBoundaryAlias, o !== void 0 && (p.binParameters.firstDayOfWeek = o);
9162
+ const F = br({
9181
9163
  temporalBinning: n,
9182
9164
  xOrY: r,
9183
9165
  xOrYFieldType: g,
9184
9166
  addIntervalStatement: !1,
9185
9167
  includeLeapDay: l
9186
- }), { field: b, expression: T, start: C, end: x } = S;
9187
- b ? y.binParameters.field = b : T && (y.binParameters.expression = T, y.binParameters.expressionValueType = "integer", y.binParameters.type === "fixed-interval" && (C !== void 0 && (y.binParameters.start = C), x !== void 0 && (y.binParameters.end = x)));
9168
+ }), { field: b, expression: T, start: C, end: x } = F;
9169
+ b ? p.binParameters.field = b : T && (p.binParameters.expression = T, p.binParameters.expressionValueType = "integer", p.binParameters.type === "fixed-interval" && (C !== void 0 && (p.binParameters.start = C), x !== void 0 && (p.binParameters.end = x)));
9188
9170
  const v = br({
9189
9171
  temporalBinning: s,
9190
9172
  xOrY: a,
9191
- xOrYFieldType: p,
9173
+ xOrYFieldType: y,
9192
9174
  addIntervalStatement: !1,
9193
9175
  includeLeapDay: l
9194
9176
  });
9195
- return v.field ? y.binParameters.stackBy = { type: "field", value: v.field } : v.expression && (y.binParameters.stackBy = {
9177
+ return v.field ? p.binParameters.stackBy = { type: "field", value: v.field } : v.expression && (p.binParameters.stackBy = {
9196
9178
  type: "expression",
9197
9179
  value: v.expression,
9198
9180
  valueType: "integer",
9199
9181
  alias: a
9200
- }), y;
9182
+ }), p;
9201
9183
  }
9202
9184
  function cu(t) {
9203
9185
  const { queryObject: e, queryConfig: i, xStep: r, xMin: a, xMax: n, x: s, y: o, yStep: l, returnStatisticsAggregatedIds: u } = t, c = ri({
@@ -9447,10 +9429,10 @@ function Wa(t) {
9447
9429
  geometry: f,
9448
9430
  distance: m,
9449
9431
  units: g,
9450
- objectIds: p,
9451
- spatialRelationship: y
9432
+ objectIds: y,
9433
+ spatialRelationship: p
9452
9434
  } = l ?? {}, {
9453
- where: S,
9435
+ where: F,
9454
9436
  gdbVersion: b,
9455
9437
  timeExtent: T,
9456
9438
  geometry: C,
@@ -9459,7 +9441,7 @@ function Wa(t) {
9459
9441
  objectIds: A,
9460
9442
  spatialRelationship: N
9461
9443
  } = r ?? {}, L = o[0], { query: M } = L, { where: w } = M ?? {}, D = G(o), I = { ...M };
9462
- return I.where = J([u, S]), D !== F.BarAndLineSplitBy && D !== F.BoxPlotC5MonoFieldAndSplitBy && D !== F.BoxPlotC7MonoFieldAndCategoryAndSplitBy && D !== F.BoxPlotC6MultiFieldsAndSplitBy && D !== F.BarAndLineSplitByNoAggregation && (I.where = J([I.where, w])), i.orderOptions?.orderByFields !== void 0 && (I.orderByFields = i.orderOptions.orderByFields), I.gdbVersion = b ?? c, I.timeExtent = ru(s?.timeExtent, T ?? d), I.geometry = ee(e) ? Zs({
9444
+ return I.where = J([u, F]), D !== S.BarAndLineSplitBy && D !== S.BoxPlotC5MonoFieldAndSplitBy && D !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && D !== S.BoxPlotC6MultiFieldsAndSplitBy && D !== S.BarAndLineSplitByNoAggregation && (I.where = J([I.where, w])), i.orderOptions?.orderByFields !== void 0 && (I.orderByFields = i.orderOptions.orderByFields), I.gdbVersion = b ?? c, I.timeExtent = ru(s?.timeExtent, T ?? d), I.geometry = ee(e) ? Zs({
9463
9445
  queryObject: e,
9464
9446
  defaultGeometry: C ?? f,
9465
9447
  filterByViewExtent: a,
@@ -9468,7 +9450,7 @@ function Wa(t) {
9468
9450
  queryObject: e,
9469
9451
  defaultGeometry: C ?? f,
9470
9452
  ignoreViewExtent: n
9471
- }), I.distance = x ?? m, I.units = v ?? g, I.objectIds = A ?? p, I.spatialRelationship = N ?? y, M?.outStatistics?.[0]?.statisticType === O.Count && (I.returnDistinctValues = M?.returnDistinctValues ?? !1), I?.outStatistics?.forEach((P) => {
9453
+ }), I.distance = x ?? m, I.units = v ?? g, I.objectIds = A ?? y, I.spatialRelationship = N ?? p, M?.outStatistics?.[0]?.statisticType === O.Count && (I.returnDistinctValues = M?.returnDistinctValues ?? !1), I?.outStatistics?.forEach((P) => {
9472
9454
  $i(P) && !("statisticParameters" in P) && (P.statisticParameters = {
9473
9455
  value: _.defaultStatParameterValue
9474
9456
  });
@@ -9574,7 +9556,7 @@ function Au(t) {
9574
9556
  splitByField: l
9575
9557
  } = t, u = _.outStatistics;
9576
9558
  if (e.outStatistics?.[0] !== void 0) {
9577
- n !== F.PieFromFields && n !== F.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = r ? u.outStatisticFieldName : [i].flat()[0]);
9559
+ n !== S.PieFromFields && n !== S.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = r ? u.outStatisticFieldName : [i].flat()[0]);
9578
9560
  const { outStatistics: c } = e;
9579
9561
  for (let d = 0; d < c.length; d += 1) {
9580
9562
  const f = c[d];
@@ -9651,7 +9633,7 @@ function wu(t) {
9651
9633
  unit: a,
9652
9634
  runsOnClientQueryEngine: o
9653
9635
  });
9654
- e.orderByFields = l, e.groupByFieldsForStatistics = l, n === F.BarAndLineSplitBy && !ie(r) ? e.groupByFieldsForStatistics.push(r) : n === F.BarAndLineNoAggregation && (e.groupByFieldsForStatistics = s, e.outStatistics = [
9636
+ e.orderByFields = l, e.groupByFieldsForStatistics = l, n === S.BarAndLineSplitBy && !ie(r) ? e.groupByFieldsForStatistics.push(r) : n === S.BarAndLineNoAggregation && (e.groupByFieldsForStatistics = s, e.outStatistics = [
9655
9637
  {
9656
9638
  onStatisticField: s.length > 1 ? "*" : s[0],
9657
9639
  outStatisticFieldName: `COUNT_${s[0]}`,
@@ -9666,7 +9648,7 @@ function Ha(t) {
9666
9648
  const a = Ni(e, r);
9667
9649
  if (a !== void 0) {
9668
9650
  const n = G(e.series);
9669
- if (n === F.PieFromFields || n === F.BarAndLineFromFields) {
9651
+ if (n === S.PieFromFields || n === S.BarAndLineFromFields) {
9670
9652
  if (i.outStatistics?.[0] !== void 0) {
9671
9653
  const s = (u, c) => u.statisticType === O.EnvelopeAggregate === c, o = i.outStatistics.filter((u) => s(u, !0)), l = i.outStatistics.filter((u) => s(u, !1));
9672
9654
  l.splice(a), i.outStatistics = [...l, ...o];
@@ -9686,62 +9668,62 @@ function _i(t) {
9686
9668
  fetchFullBoxPlotData: s,
9687
9669
  returnFeaturesExtent: o,
9688
9670
  chartLimits: l
9689
- } = t, u = e.series, c = G(u), d = He(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, p = Re({
9671
+ } = t, u = e.series, c = G(u), d = He(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = Re({
9690
9672
  xAxisValueFormatType: ve(e),
9691
9673
  setTimeBinningInfoWhenNotProvided: n,
9692
9674
  seriesConfig: d,
9693
9675
  queryObject: r
9694
9676
  });
9695
- let y = /* @__PURE__ */ new Map(), S = !1, b = !1, T = !1, C = !1, x = !1, v = {};
9677
+ let p = /* @__PURE__ */ new Map(), F = !1, b = !1, T = !1, C = !1, x = !1, v = {};
9696
9678
  if (f !== void 0) {
9697
9679
  v = Ve(f);
9698
9680
  const E = re(f.where);
9699
9681
  let z = "";
9700
9682
  switch (i.fetchNullValues !== !0 && (m !== B.boxPlot.boxPlotCategory && (z = `${m} IS NOT NULL`), E.trim() !== "" && E !== m && !De(f.where) && (z = J([z, `${E} IS NOT NULL`]))), c) {
9701
- case F.BarAndLineSplitBy: {
9702
- y = vu(u), C = !0, S = !0, b = !0;
9683
+ case S.BarAndLineSplitBy: {
9684
+ p = vu(u), C = !0, F = !0, b = !0;
9703
9685
  break;
9704
9686
  }
9705
- case F.BarAndLineMultiFields:
9687
+ case S.BarAndLineMultiFields:
9706
9688
  Lu(v, u), b = !0;
9707
9689
  break;
9708
- case F.PieFromFields:
9709
- case F.BarAndLineFromFields:
9690
+ case S.PieFromFields:
9691
+ case S.BarAndLineFromFields:
9710
9692
  z = "", T = !0, b = !0;
9711
9693
  break;
9712
- case F.BarAndLineMonoField:
9713
- case F.PieFromCategory:
9694
+ case S.BarAndLineMonoField:
9695
+ case S.PieFromCategory:
9714
9696
  b = !0;
9715
9697
  break;
9716
- case F.BoxPlotC1MonoField:
9717
- case F.BoxPlotC2MultiFields:
9698
+ case S.BoxPlotC1MonoField:
9699
+ case S.BoxPlotC2MultiFields:
9718
9700
  T = !0, x = !0;
9719
9701
  break;
9720
- case F.BoxPlotC3MonoFieldAndCategory:
9721
- case F.BoxPlotC4MultiFieldsAndCategory:
9722
- case F.BoxPlotC5MonoFieldAndSplitBy:
9723
- case F.BoxPlotC6MultiFieldsAndSplitBy:
9724
- case F.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
9702
+ case S.BoxPlotC3MonoFieldAndCategory:
9703
+ case S.BoxPlotC4MultiFieldsAndCategory:
9704
+ case S.BoxPlotC5MonoFieldAndSplitBy:
9705
+ case S.BoxPlotC6MultiFieldsAndSplitBy:
9706
+ case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
9725
9707
  x = !0, C = !0, T = !0;
9726
9708
  break;
9727
9709
  }
9728
- case F.PieNoAggregation:
9729
- case F.BarAndLineNoAggregation:
9730
- case F.BarAndLineSplitByNoAggregation:
9710
+ case S.PieNoAggregation:
9711
+ case S.BarAndLineNoAggregation:
9712
+ case S.BarAndLineSplitByNoAggregation:
9731
9713
  }
9732
9714
  if (b && Au({
9733
9715
  uniqueQuery: v,
9734
9716
  y: g,
9735
- useGenericOutStatFieldName: S,
9717
+ useGenericOutStatFieldName: F,
9736
9718
  queryObject: r,
9737
9719
  chartSubType: c,
9738
- isTimeBinningSeries: p,
9720
+ isTimeBinningSeries: y,
9739
9721
  returnFeaturesExtent: o,
9740
9722
  splitByField: E
9741
9723
  }), C && Tu({ uniqueQuery: v, splitByField: E, x: m }), me(e) && x && (v.outStatistics = Nu({ chartConfig: e, fetchFullBoxPlotData: s })), T ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((Q) => {
9742
9724
  const q = Q.split(" ");
9743
9725
  return !ie(q[0]);
9744
- })), p && Be(u[0])) {
9726
+ })), y && Be(u[0])) {
9745
9727
  const Q = j(r), { idFields: q } = ai(Q);
9746
9728
  Te(r).find((K) => K.name === m)?.type !== Z.DateOnly && q && wu({
9747
9729
  uniqueQuery: v,
@@ -9757,7 +9739,7 @@ function _i(t) {
9757
9739
  }
9758
9740
  Ha({ chartConfig: e, uniqueQuery: v, chartLimits: l });
9759
9741
  const { gdbVersion: A, geometry: N, distance: L, units: M, timeExtent: w, where: D, objectIds: I, spatialRelationship: P } = i;
9760
- return A !== void 0 && (v.gdbVersion = A), N !== void 0 && (v.geometry = N), L !== void 0 && (v.distance = L), M !== void 0 && (v.units = M), w !== void 0 && (v.timeExtent = w), I !== void 0 && (v.objectIds = I), P !== void 0 && (v.spatialRelationship = P), D !== void 0 && (v.where = J([v.where, D])), { uniqueQuery: v, mapToStatField: y };
9742
+ return A !== void 0 && (v.gdbVersion = A), N !== void 0 && (v.geometry = N), L !== void 0 && (v.distance = L), M !== void 0 && (v.units = M), w !== void 0 && (v.timeExtent = w), I !== void 0 && (v.objectIds = I), P !== void 0 && (v.spatialRelationship = P), D !== void 0 && (v.where = J([v.where, D])), { uniqueQuery: v, mapToStatField: p };
9761
9743
  }
9762
9744
  const rt = {
9763
9745
  LegendItemVisibilityChange: "arcgisChartsJSLegendItemVisibilityChange",
@@ -9987,21 +9969,21 @@ function Ee(t) {
9987
9969
  return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
9988
9970
  }
9989
9971
  function Ga(t) {
9990
- let e = F.PieFromCategory;
9991
- return t[0].query?.outStatistics === void 0 ? e = F.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = F.PieFromFields), e;
9972
+ let e = S.PieFromCategory;
9973
+ return t[0].query?.outStatistics === void 0 ? e = S.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = S.PieFromFields), e;
9992
9974
  }
9993
9975
  function Ua(t) {
9994
- let e = F.BarAndLineMonoField;
9976
+ let e = S.BarAndLineMonoField;
9995
9977
  const i = t[0].query?.where;
9996
- return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e = F.BarAndLineFromFields : i === void 0 && t[0].query?.outStatistics === void 0 ? e = F.BarAndLineNoAggregation : De(i) ? t.length > 1 && (e = F.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? F.BarAndLineSplitByNoAggregation : F.BarAndLineSplitBy, e;
9978
+ return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e = S.BarAndLineFromFields : i === void 0 && t[0].query?.outStatistics === void 0 ? e = S.BarAndLineNoAggregation : De(i) ? t.length > 1 && (e = S.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? S.BarAndLineSplitByNoAggregation : S.BarAndLineSplitBy, e;
9997
9979
  }
9998
9980
  function Eu(t) {
9999
- let e = F.BoxPlotC1MonoField;
9981
+ let e = S.BoxPlotC1MonoField;
10000
9982
  const i = t.length === 1, r = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: a } = r, n = "y" in r ? r.y : "", s = r.query?.where;
10001
- return a === Zt ? typeof n == "object" && n.length > 1 ? De(s) ? i && (e = F.BoxPlotC2MultiFields) : e = F.BoxPlotC6MultiFieldsAndSplitBy : i ? e = F.BoxPlotC1MonoField : De(s) || (e = F.BoxPlotC5MonoFieldAndSplitBy) : i ? e = F.BoxPlotC3MonoFieldAndCategory : De(s) ? e = F.BoxPlotC4MultiFieldsAndCategory : e = F.BoxPlotC7MonoFieldAndCategoryAndSplitBy, e;
9983
+ return a === Zt ? typeof n == "object" && n.length > 1 ? De(s) ? i && (e = S.BoxPlotC2MultiFields) : e = S.BoxPlotC6MultiFieldsAndSplitBy : i ? e = S.BoxPlotC1MonoField : De(s) || (e = S.BoxPlotC5MonoFieldAndSplitBy) : i ? e = S.BoxPlotC3MonoFieldAndCategory : De(s) ? e = S.BoxPlotC4MultiFieldsAndCategory : e = S.BoxPlotC7MonoFieldAndCategoryAndSplitBy, e;
10002
9984
  }
10003
9985
  function G(t) {
10004
- let e = F.NonSpecific;
9986
+ let e = S.NonSpecific;
10005
9987
  if (t?.[0] !== void 0)
10006
9988
  switch (V(t)) {
10007
9989
  case h.PieSeries:
@@ -10020,14 +10002,14 @@ function G(t) {
10020
10002
  return e;
10021
10003
  }
10022
10004
  function Ru(t) {
10023
- return G(t.series) !== F.PieNoAggregation;
10005
+ return G(t.series) !== S.PieNoAggregation;
10024
10006
  }
10025
10007
  function qu(t) {
10026
10008
  let e = !0;
10027
10009
  const i = V(t.series);
10028
10010
  if (i === h.BarSeries || i === h.LineSeries || i === h.ComboLineAndBarSeries) {
10029
10011
  const r = G(t.series);
10030
- e = r !== F.BarAndLineNoAggregation && r !== F.BarAndLineSplitByNoAggregation;
10012
+ e = r !== S.BarAndLineNoAggregation && r !== S.BarAndLineSplitByNoAggregation;
10031
10013
  }
10032
10014
  return e;
10033
10015
  }
@@ -10067,7 +10049,7 @@ function Re(t) {
10067
10049
  let n = !1;
10068
10050
  if (!ee(a) && Be(e) && e.binTemporalData !== !1 && i === h.DateAxisFormat) {
10069
10051
  const s = G([e]);
10070
- if (e.temporalBinning && s !== F.BarAndLineNoAggregation && s !== F.BarAndLineSplitByNoAggregation) {
10052
+ if (e.temporalBinning && s !== S.BarAndLineNoAggregation && s !== S.BarAndLineSplitByNoAggregation) {
10071
10053
  const { unit: o, size: l } = e.temporalBinning;
10072
10054
  n = r === !0 || l !== void 0 && l > 0 && o !== void 0;
10073
10055
  }
@@ -10122,7 +10104,7 @@ function Za(t, e) {
10122
10104
  return Be(t.series[0]) && Be(e.series[0]) && (t.series[0].binTemporalData ?? B.binTemporalData) !== (e.series[0].binTemporalData ?? B.binTemporalData);
10123
10105
  }
10124
10106
  function Ja(t, e) {
10125
- const i = t.axes?.[0].valueFormat.type, r = e.axes?.[0].valueFormat.type, a = G(e.series), n = a === F.BarAndLineNoAggregation || a === F.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && r === h.NumberAxisFormat, o = i === h.NumberAxisFormat && r === h.DateAxisFormat;
10107
+ const i = t.axes?.[0].valueFormat.type, r = e.axes?.[0].valueFormat.type, a = G(e.series), n = a === S.BarAndLineNoAggregation || a === S.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && r === h.NumberAxisFormat, o = i === h.NumberAxisFormat && r === h.DateAxisFormat;
10126
10108
  return i !== r && (n || s || o);
10127
10109
  }
10128
10110
  function _u(t) {
@@ -10202,14 +10184,14 @@ function sg(t) {
10202
10184
  let r = !1;
10203
10185
  const a = e?.series[0], n = i.series[0], s = V(e?.series), o = V(i.series);
10204
10186
  if (s === h.PieSeries && o === h.PieSeries) {
10205
- const { slices: l, sliceGrouping: u } = a, { slices: c, sliceGrouping: d } = n, f = l?.map((y) => ({
10206
- sliceId: y.sliceId,
10207
- label: y.label
10208
- })), m = c?.map((y) => ({
10209
- sliceId: y.sliceId,
10210
- label: y.label
10211
- })), g = u?.label, p = d?.label;
10212
- r = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(g) !== JSON.stringify(p);
10187
+ const { slices: l, sliceGrouping: u } = a, { slices: c, sliceGrouping: d } = n, f = l?.map((p) => ({
10188
+ sliceId: p.sliceId,
10189
+ label: p.label
10190
+ })), m = c?.map((p) => ({
10191
+ sliceId: p.sliceId,
10192
+ label: p.label
10193
+ })), g = u?.label, y = d?.label;
10194
+ r = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(g) !== JSON.stringify(y);
10213
10195
  }
10214
10196
  return r;
10215
10197
  }
@@ -10295,8 +10277,8 @@ function xg(t) {
10295
10277
  setTimeBinningInfoWhenNotProvided: u,
10296
10278
  chartLimits: c
10297
10279
  } = t, { series: d } = i, { series: f } = e, m = V(d);
10298
- let g = !1, p = !1, y = !1;
10299
- const S = {
10280
+ let g = !1, y = !1, p = !1;
10281
+ const F = {
10300
10282
  common: {
10301
10283
  layerChanged: !1,
10302
10284
  queryChanged: !1,
@@ -10326,22 +10308,22 @@ function xg(t) {
10326
10308
  imageryAoiChanged: !1
10327
10309
  }
10328
10310
  };
10329
- switch (S.common.queryChanged = Xa({
10311
+ switch (F.common.queryChanged = Xa({
10330
10312
  previousConfig: e,
10331
10313
  newConfig: i,
10332
10314
  behaviorAfterLimit: c?.behaviorAfterLimit
10333
- }), S.common.configFiltersChanged = Vu(e, i), S.common.xOrYChanged = $u(f, d), S.common.filterBySelectionChanged = Ya(
10315
+ }), F.common.configFiltersChanged = Vu(e, i), F.common.xOrYChanged = $u(f, d), F.common.filterBySelectionChanged = Ya(
10334
10316
  r,
10335
10317
  o
10336
- ), S.common.dataForFilterBySelectionChanged = Hu({
10318
+ ), F.common.dataForFilterBySelectionChanged = Hu({
10337
10319
  previousSelectionOIDs: a,
10338
10320
  selectionData: l,
10339
10321
  filterBySelection: o
10340
- }), S.common.binTemporalDataChanged = Za(e, i), S.common.valueFormatChangeRequiresNewData = Ja(
10322
+ }), F.common.binTemporalDataChanged = Za(e, i), F.common.valueFormatChangeRequiresNewData = Ja(
10341
10323
  e,
10342
10324
  i
10343
- ), S.common = {
10344
- ...S.common,
10325
+ ), F.common = {
10326
+ ...F.common,
10345
10327
  ..._u({
10346
10328
  previousSeries: f,
10347
10329
  newConfig: i,
@@ -10350,7 +10332,7 @@ function xg(t) {
10350
10332
  })
10351
10333
  }, m) {
10352
10334
  case h.HistogramSeries:
10353
- S.histogram.dataPropsChanged = vs(f, d) || Bs(
10335
+ F.histogram.dataPropsChanged = vs(f, d) || Bs(
10354
10336
  f,
10355
10337
  d
10356
10338
  );
@@ -10358,32 +10340,32 @@ function xg(t) {
10358
10340
  case h.LineSeries:
10359
10341
  case h.BarSeries:
10360
10342
  case h.ComboLineAndBarSeries:
10361
- S.common.numberOfSeriesChanged = xr(f, d);
10343
+ F.common.numberOfSeriesChanged = xr(f, d);
10362
10344
  break;
10363
10345
  case h.BoxPlotSeries:
10364
- me(e) && me(i) && (S.common.numberOfSeriesChanged = xr(f, d), S.boxPlot.showMeanChanged = Ka(e, i));
10346
+ me(e) && me(i) && (F.common.numberOfSeriesChanged = xr(f, d), F.boxPlot.showMeanChanged = Ka(e, i));
10365
10347
  break;
10366
10348
  case h.GaugeSeries:
10367
- S.gauge.valueConversionChanged = en(e, i), S.gauge.minMaxFromFieldsChanged = tn(
10349
+ F.gauge.valueConversionChanged = en(e, i), F.gauge.minMaxFromFieldsChanged = tn(
10368
10350
  e,
10369
10351
  i
10370
10352
  );
10371
10353
  break;
10372
10354
  case h.HeatSeries:
10373
- Je(e) && Je(i) && (S.heatChart.binningChanged = rn(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = zu(
10355
+ Je(e) && Je(i) && (F.heatChart.binningChanged = rn(e, i), F.heatChart.hideEmptyRowsAndColumnsChanged = zu(
10374
10356
  e,
10375
10357
  i
10376
- ), S.heatChart.includeLeapDay = Qu(e, i));
10358
+ ), F.heatChart.includeLeapDay = Qu(e, i));
10377
10359
  break;
10378
10360
  case h.ScatterSeries:
10379
- S.scatterPlot.tooltipFieldsChanged = Wu({
10361
+ F.scatterPlot.tooltipFieldsChanged = Wu({
10380
10362
  previousConfig: e,
10381
10363
  newConfig: i,
10382
10364
  fieldList: n
10383
- }), ee(s) && (S.scatterPlot.imageryAoiChanged = ku(e, i));
10365
+ }), ee(s) && (F.scatterPlot.imageryAoiChanged = ku(e, i));
10384
10366
  break;
10385
10367
  }
10386
- return p = Object.values(S.common).some((b) => b), (S.gauge.valueConversionChanged || S.gauge.minMaxFromFieldsChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged || S.scatterPlot.imageryAoiChanged) && (y = !0), g = p || y, { dataUpdateNeeded: g, dataUpdateDetails: S };
10368
+ return y = Object.values(F.common).some((b) => b), (F.gauge.valueConversionChanged || F.gauge.minMaxFromFieldsChanged || F.histogram.dataPropsChanged || F.boxPlot.showMeanChanged || F.heatChart.binningChanged || F.heatChart.hideEmptyRowsAndColumnsChanged || F.heatChart.includeLeapDay || F.scatterPlot.tooltipFieldsChanged || F.scatterPlot.imageryAoiChanged) && (p = !0), g = y || p, { dataUpdateNeeded: g, dataUpdateDetails: F };
10387
10369
  }
10388
10370
  function Cg(t, e) {
10389
10371
  const i = Ve(t);
@@ -10438,7 +10420,7 @@ function an(t) {
10438
10420
  r = t.series[0].x;
10439
10421
  else {
10440
10422
  r === je.Mean ? r = R.Average : r === je.Median && (r = R.Median);
10441
- const n = e === F.BoxPlotC4MultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = re(t.series[0].query?.where), o = ce({
10423
+ const n = e === S.BoxPlotC4MultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = re(t.series[0].query?.where), o = ce({
10442
10424
  where: t.series[0].query?.where
10443
10425
  });
10444
10426
  r = se({
@@ -10454,7 +10436,7 @@ function an(t) {
10454
10436
  orderBy: a ?? oe.Ascending,
10455
10437
  preferLabel: t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel ?? !0 : !0
10456
10438
  };
10457
- } else if (e === F.BoxPlotC2MultiFields && t.series[0].y) {
10439
+ } else if (e === S.BoxPlotC2MultiFields && t.series[0].y) {
10458
10440
  const r = [t.series[0].y].flat();
10459
10441
  r.length > 1 && (i = {
10460
10442
  sortingField: B.boxPlot.boxPlotCategory,
@@ -10465,7 +10447,7 @@ function an(t) {
10465
10447
  return i;
10466
10448
  }
10467
10449
  function nn(t) {
10468
- const e = t.series[0], { x: i, y: r } = e, a = G(t.series) === F.PieFromFields, n = G(t.series) === F.BarAndLineFromFields;
10450
+ const e = t.series[0], { x: i, y: r } = e, a = G(t.series) === S.PieFromFields, n = G(t.series) === S.BarAndLineFromFields;
10469
10451
  let s, o = "", l;
10470
10452
  if (t.orderOptions?.data !== void 0) {
10471
10453
  const u = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
@@ -10526,7 +10508,7 @@ function Bg(t) {
10526
10508
  const { oldConfig: e, newConfig: i, dataWasUpdated: r } = t, a = V(i.series), n = G(i.series);
10527
10509
  let s = !1, o = !1;
10528
10510
  const l = Xt(i);
10529
- if (n !== F.BoxPlotC1MonoField && n !== F.BoxPlotC5MonoFieldAndSplitBy && (i.orderOptions?.data !== void 0 || l !== void 0)) {
10511
+ if (n !== S.BoxPlotC1MonoField && n !== S.BoxPlotC5MonoFieldAndSplitBy && (i.orderOptions?.data !== void 0 || l !== void 0)) {
10530
10512
  const u = Xt(e);
10531
10513
  if (a === h.HeatSeries) {
10532
10514
  const c = u ? u[0] : void 0, d = l ? l[0] : void 0, f = u ? u[1] : void 0, m = l ? l[1] : void 0;
@@ -10938,6 +10920,6 @@ export {
10938
10920
  Te as v,
10939
10921
  Ia as w,
10940
10922
  bi as x,
10941
- F as y,
10923
+ S as y,
10942
10924
  Dc as z
10943
10925
  };