@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.13

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 (120) hide show
  1. package/dist/cdn/{KPWHYSA5.js → 2A24D2CL.js} +1 -1
  2. package/dist/cdn/{KZQFX7LH.js → 2D43CHPT.js} +1 -1
  3. package/dist/cdn/{PMIWXHTG.js → 2JXQPKO5.js} +1 -1
  4. package/dist/cdn/{NZXQ5BWP.js → 2TWHFFC4.js} +1 -1
  5. package/dist/cdn/{WHJU66P4.js → 3MDFLGUF.js} +1 -1
  6. package/dist/cdn/{SX6SDBU7.js → 3MKY6UCO.js} +1 -1
  7. package/dist/cdn/{TTBRUBXY.js → 3SBYV6BW.js} +1 -1
  8. package/dist/cdn/{O4LKWTBY.js → 4KW327JN.js} +1 -1
  9. package/dist/cdn/4NYV2JV3.js +3 -0
  10. package/dist/cdn/4PUPQ4ZW.js +2 -0
  11. package/dist/cdn/{DFKVPDMJ.js → 64LHZA6T.js} +1 -1
  12. package/dist/cdn/{7JIHGRTB.js → 6OEWH6DU.js} +1 -1
  13. package/dist/cdn/{5IIF22XN.js → 6QPY3WVJ.js} +1 -1
  14. package/dist/cdn/{CTBQ5Y4Z.js → 7QSJHT6K.js} +1 -1
  15. package/dist/cdn/{VIY3BCJZ.js → A5TGCD54.js} +1 -1
  16. package/dist/cdn/{77A4T4FJ.js → A636YSNA.js} +1 -1
  17. package/dist/cdn/{E2DO2HQ6.js → A6ZKJNCI.js} +1 -1
  18. package/dist/cdn/{UIRKQREJ.js → AGIHYXGK.js} +1 -1
  19. package/dist/cdn/{FEKSPYHM.js → AIPJCK34.js} +1 -1
  20. package/dist/cdn/AQIB3VEP.js +2 -0
  21. package/dist/cdn/{P56ROGSK.js → AZY72Q7D.js} +1 -1
  22. package/dist/cdn/{ZJHV3UVG.js → BBPUHC7W.js} +1 -1
  23. package/dist/cdn/{567CLBG4.js → BES3KNGY.js} +1 -1
  24. package/dist/cdn/{XNWSVHA3.js → CAYUSURH.js} +1 -1
  25. package/dist/cdn/{RJCJ3F5C.js → CMH6WLB4.js} +1 -1
  26. package/dist/cdn/{6R7VSDDU.js → CPQGJVLJ.js} +1 -1
  27. package/dist/cdn/{FWRMJQXY.js → CRCAJAFA.js} +1 -1
  28. package/dist/cdn/{5YEADAVZ.js → CW44UMK6.js} +1 -1
  29. package/dist/cdn/{IE3GLZJZ.js → D6IGHHX3.js} +1 -1
  30. package/dist/cdn/E3AWZQWL.js +2 -0
  31. package/dist/cdn/EH3OIMGC.js +2 -0
  32. package/dist/cdn/ESYY65PY.js +2 -0
  33. package/dist/cdn/FMF37DQF.js +2 -0
  34. package/dist/cdn/{UNTIPIBS.js → FZDYLJRV.js} +1 -1
  35. package/dist/cdn/{YALB4GSA.js → GKRMQS5Q.js} +1 -1
  36. package/dist/cdn/{OW2DLJGU.js → GN4O3BCI.js} +1 -1
  37. package/dist/cdn/{AHYYQWKY.js → GNVJXOOV.js} +1 -1
  38. package/dist/cdn/{F6QRLYSF.js → GRNKGPDQ.js} +1 -1
  39. package/dist/cdn/{XOM6LSIW.js → H4CCTXTD.js} +1 -1
  40. package/dist/cdn/{WWO326JE.js → IHHPUKGG.js} +1 -1
  41. package/dist/cdn/IKBGE4XH.js +2 -0
  42. package/dist/cdn/{4PHYDOBF.js → INCK5AFZ.js} +1 -1
  43. package/dist/cdn/{24AOJE7B.js → IVM77SOL.js} +1 -1
  44. package/dist/cdn/{MVGAATR7.js → J2HYDDIW.js} +1 -1
  45. package/dist/cdn/{ZQ2WG55W.js → JCWTD6DG.js} +1 -1
  46. package/dist/cdn/{JBPYGZPJ.js → JFMBYHTG.js} +1 -1
  47. package/dist/cdn/{I5T7JUDH.js → JHANH4UG.js} +1 -1
  48. package/dist/cdn/{HZFHTWL6.js → JK7I63SC.js} +1 -1
  49. package/dist/cdn/{SJVVFOAX.js → JMACRJOV.js} +1 -1
  50. package/dist/cdn/{SOKKWGPA.js → K2JOJV52.js} +1 -1
  51. package/dist/cdn/{MBSMC77K.js → KPXVJR6S.js} +1 -1
  52. package/dist/cdn/{ETSB7KD3.js → KR22STZN.js} +1 -1
  53. package/dist/cdn/{AXS3UMQJ.js → L4OHTO6S.js} +1 -1
  54. package/dist/cdn/{KXUQJ6GE.js → LRNKTAWO.js} +1 -1
  55. package/dist/cdn/{O4HUYRYL.js → LU5S2VRK.js} +1 -1
  56. package/dist/cdn/{U5IM4KAQ.js → LZMT7YW7.js} +1 -1
  57. package/dist/cdn/{FUAA6IFR.js → M4S67KAQ.js} +1 -1
  58. package/dist/cdn/{EE3KEIAT.js → MB36GVIV.js} +1 -1
  59. package/dist/cdn/{DJGEQ42V.js → MFGMIXHS.js} +1 -1
  60. package/dist/cdn/{GQPOEX7B.js → MNX2OQM7.js} +18 -18
  61. package/dist/cdn/{YUF4ZSA5.js → O533LNDP.js} +1 -1
  62. package/dist/cdn/{R7HW5WVG.js → O6JHQR4V.js} +1 -1
  63. package/dist/cdn/{DL43NPDO.js → O6X4UVEJ.js} +1 -1
  64. package/dist/cdn/{FBMA7FW4.js → OBEDC3OT.js} +1 -1
  65. package/dist/cdn/{ASI7RDYV.js → OFXDO3EK.js} +1 -1
  66. package/dist/cdn/{LL7NH3VV.js → OWO3NDGM.js} +1 -1
  67. package/dist/cdn/{RKB6QZNW.js → OZIAUW3A.js} +1 -1
  68. package/dist/cdn/{PXIAM4CZ.js → PBOTADC5.js} +1 -1
  69. package/dist/cdn/{WJ2VDT6B.js → PQGX64RE.js} +1 -1
  70. package/dist/cdn/{76MOP26H.js → QBKIVOUQ.js} +1 -1
  71. package/dist/cdn/{P2F2O6MH.js → QNT6HTFC.js} +1 -1
  72. package/dist/cdn/{7YXTWBT4.js → RIM4HLHN.js} +1 -1
  73. package/dist/cdn/RMJKQIQM.js +2 -0
  74. package/dist/cdn/{5IN5WK2R.js → RWRGGCHV.js} +1 -1
  75. package/dist/cdn/S7Z4HRW7.js +2 -0
  76. package/dist/cdn/{G5FULTB5.js → SKG5NCDS.js} +1 -1
  77. package/dist/cdn/{LYJFZA2M.js → TCS4HOSG.js} +1 -1
  78. package/dist/cdn/{XP4S2M7F.js → TFXFKPTU.js} +1 -1
  79. package/dist/cdn/{425PZ2QJ.js → TR7YC7GX.js} +1 -1
  80. package/dist/cdn/{LUMOL7ZP.js → TRRB6DUE.js} +1 -1
  81. package/dist/cdn/{I2EERAZ3.js → U2CTDP7X.js} +1 -1
  82. package/dist/cdn/{H45LPCQ2.js → U2GTLQKQ.js} +1 -1
  83. package/dist/cdn/{SVGAVKBQ.js → ULUPQFHW.js} +1 -1
  84. package/dist/cdn/{JEOBO5JM.js → US4WU5ZB.js} +1 -1
  85. package/dist/cdn/{L5DROI2A.js → VETKGJXJ.js} +1 -1
  86. package/dist/cdn/{EJCGZPIV.js → VNIK56MD.js} +1 -1
  87. package/dist/cdn/{P4UJJCPG.js → VS6T5RFW.js} +1 -1
  88. package/dist/cdn/{UE5VX2RL.js → W4XWIKEA.js} +1 -1
  89. package/dist/cdn/{GISGGO3Z.js → WL5E6TAV.js} +1 -1
  90. package/dist/cdn/{S6LH7YS6.js → WM36AOX7.js} +1 -1
  91. package/dist/cdn/{SQYOFBS6.js → X3UPL6NZ.js} +1 -1
  92. package/dist/cdn/{WU3C7BQU.js → XRLVJJBT.js} +1 -1
  93. package/dist/cdn/{5LXX2PUM.js → YG5HX7O4.js} +1 -1
  94. package/dist/cdn/{E4LJWBRC.js → YXQHE47P.js} +1 -1
  95. package/dist/cdn/{UIY2PSG4.js → ZN73TUTH.js} +1 -1
  96. package/dist/cdn/{CVK7KFEC.js → ZNXBQWBM.js} +1 -1
  97. package/dist/cdn/ZW4PF3UK.js +2 -0
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/cdn/model/shared/setup-utils.js +1 -1
  100. package/dist/chunks/index2.js +1006 -998
  101. package/dist/chunks/pie-chart-data.js +42 -36
  102. package/dist/chunks/pie-chart-model.js +175 -162
  103. package/dist/components/arcgis-chart/customElement.js +2391 -2362
  104. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +29 -36
  105. package/dist/docs/api.json +1 -1
  106. package/dist/docs/docs.json +1 -1
  107. package/dist/docs/web-types.json +1 -1
  108. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  109. package/package.json +3 -3
  110. package/dist/cdn/3KRPCKJZ.js +0 -2
  111. package/dist/cdn/5NTIKQP4.js +0 -2
  112. package/dist/cdn/BHUFE4DA.js +0 -2
  113. package/dist/cdn/CEWH3LQO.js +0 -2
  114. package/dist/cdn/GYXK3DV7.js +0 -2
  115. package/dist/cdn/HW6MJJSX.js +0 -2
  116. package/dist/cdn/IL2FG26D.js +0 -2
  117. package/dist/cdn/NNZCIR7W.js +0 -2
  118. package/dist/cdn/QPSJ6XOX.js +0 -2
  119. package/dist/cdn/S74GCXXK.js +0 -3
  120. package/dist/cdn/SA22QZNW.js +0 -2
@@ -1,41 +1,41 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as at, sortBy as Ni, cloneDeep as He, memoize as It, isArray as li, isNil as hr, isEmpty as Sr } from "lodash-es";
3
- import { u as S, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Ui, G as xr } from "./chart-object-literals.js";
2
+ import { isEqual as at, sortBy as Ni, cloneDeep as He, memoize as It, isArray as li, isNil as pr, isEmpty as hr } from "lodash-es";
3
+ import { u as h, k as Sr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as Fr, s as R, t as ee, d as he, a as Ui, G as br } from "./chart-object-literals.js";
4
4
  import Ti from "@arcgis/core/layers/support/FeatureFilter.js";
5
- import Cr from "@arcgis/core/smartMapping/statistics/histogram.js";
5
+ import xr from "@arcgis/core/smartMapping/statistics/histogram.js";
6
6
  import Ai from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
7
7
  import * as Yi from "@arcgis/core/geometry/support/jsonUtils.js";
8
- import vr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
9
- import Br from "@arcgis/core/rest/support/Query.js";
10
- import Nr from "@arcgis/core/rest/support/StatisticDefinition.js";
8
+ import Cr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
9
+ import vr from "@arcgis/core/rest/support/Query.js";
10
+ import Br from "@arcgis/core/rest/support/StatisticDefinition.js";
11
11
  import Zi from "@arcgis/core/time/TimeExtent.js";
12
- import Tr from "@arcgis/core/layers/FeatureLayer.js";
13
- import Ar from "@arcgis/core/layers/support/CodedValueDomain.js";
14
- import wr from "@arcgis/core/layers/support/Field.js";
15
- import * as Lr from "@arcgis/core/layers/support/fieldUtils.js";
16
- import Pr from "@arcgis/core/portal/Portal.js";
12
+ import Nr from "@arcgis/core/layers/FeatureLayer.js";
13
+ import Tr from "@arcgis/core/layers/support/CodedValueDomain.js";
14
+ import Ar from "@arcgis/core/layers/support/Field.js";
15
+ import * as wr from "@arcgis/core/layers/support/fieldUtils.js";
16
+ import Lr from "@arcgis/core/portal/Portal.js";
17
17
  import * as Xi from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import wt from "@arcgis/core/request.js";
19
19
  import Ji from "@arcgis/core/rest/support/FeatureSet.js";
20
20
  import { g as _ } from "./series-types.js";
21
- import { F as C, q as oe, C as F, e as Zt, z as Ki, l as ui, o as wi, v as ea, d as Xt, x as Mr, g as ta, s as zt, w as Dr, i as Or, r as Ae, t as Et } from "./index3.js";
22
- import Ir from "@arcgis/core/Graphic.js";
21
+ import { F as C, q as oe, C as F, e as Zt, z as Ki, l as ui, o as wi, v as ea, d as Xt, x as Pr, g as ta, s as zt, w as Mr, i as Dr, r as Ae, t as Et } from "./index3.js";
22
+ import Or from "@arcgis/core/Graphic.js";
23
23
  import * as Wt from "@arcgis/core/symbols/support/symbolUtils.js";
24
24
  import { f as Jt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
25
- import Er from "@arcgis/core/AttributeBinsGraphic.js";
25
+ import Ir from "@arcgis/core/AttributeBinsGraphic.js";
26
26
  import { substitute as Be } from "@arcgis/core/intl.js";
27
- import { g as qt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ia, aB as aa, aq as qr, s as Vt, ay as Vr, b as Rr, a as $r } from "./index.js";
28
- import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
27
+ import { g as qt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ia, aB as aa, aq as Er, s as Vt, ay as qr, b as Vr, a as Rr } from "./index.js";
28
+ import { unsafeGetElementDirection as $r } from "@arcgis/toolkit/dom";
29
29
  import { fetchT9nStringsBundle as ft, getElementLocale as ze, supportedLocales as ra } from "@arcgis/toolkit/intl";
30
- import { i as na, b as sa, c as ie, a as mt, f as Qr, e as _r } from "./type-guards.js";
30
+ import { i as na, b as sa, c as ie, a as mt, f as kr, e as Qr } from "./type-guards.js";
31
31
  import * as oa from "@arcgis/core/core/promiseUtils.js";
32
32
  import { g as yt } from "./runtime.js";
33
- import { linearRegression as jr, linearRegressionLine as Hr, rSquared as zr } from "simple-statistics";
34
- import { sqlLiteral as Wr } from "@arcgis/core/core/sql.js";
33
+ import { linearRegression as _r, linearRegressionLine as jr, rSquared as Hr } from "simple-statistics";
34
+ import { sqlLiteral as zr } from "@arcgis/core/core/sql.js";
35
35
  import { DateTime as me } from "luxon";
36
- import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as Rt, fetchPixelFeatureSet as Yr } from "@arcgis/core/applications/Components/imageryUtils.js";
37
- import la from "@arcgis/core/geometry/Extent.js";
38
- import ua from "@arcgis/core/geometry/Point.js";
36
+ import { computeStatisticsHistograms as Wr, computeRasterAttributeTable as Gr, getCurrentRasterInfo as Rt, fetchPixelFeatureSet as Ur } from "@arcgis/core/applications/Components/imageryUtils.js";
37
+ import Yr from "@arcgis/core/geometry/Extent.js";
38
+ import la from "@arcgis/core/geometry/Point.js";
39
39
  import Zr from "@arcgis/core/layers/ImageryLayer.js";
40
40
  import Xr from "@arcgis/core/layers/ImageryTileLayer.js";
41
41
  import Jr from "@arcgis/core/layers/WCSLayer.js";
@@ -62,16 +62,16 @@ function nc(t) {
62
62
  return t.intlOptions;
63
63
  }
64
64
  function ne(t) {
65
- return t?.type === S.NumberAxisFormat;
65
+ return t?.type === h.NumberAxisFormat;
66
66
  }
67
67
  function sc(t) {
68
68
  return ne(t) && t.intlOptions?.style === "percent";
69
69
  }
70
70
  function we(t) {
71
- return t?.type === S.CategoryAxisFormat;
71
+ return t?.type === h.CategoryAxisFormat;
72
72
  }
73
73
  function je(t) {
74
- return t?.type === S.DateAxisFormat;
74
+ return t?.type === h.DateAxisFormat;
75
75
  }
76
76
  function oc(t) {
77
77
  const { oldConfig: e, newConfig: i, rotationChanged: a } = t;
@@ -108,28 +108,28 @@ function lc(t) {
108
108
  const { chartType: e, axesConfig: i, errorStrings: a } = t;
109
109
  let r, n;
110
110
  switch (e) {
111
- case S.GaugeSeries:
111
+ case h.GaugeSeries:
112
112
  r = ln, n = "invalidValueFormatForGauge";
113
113
  break;
114
- case S.ScatterSeries:
114
+ case h.ScatterSeries:
115
115
  r = sn, n = "invalidValueFormatForScatterplot";
116
116
  break;
117
- case S.HistogramSeries:
117
+ case h.HistogramSeries:
118
118
  r = on, n = "invalidValueFormatForHistogram";
119
119
  break;
120
- case S.LineSeries:
120
+ case h.LineSeries:
121
121
  r = en, n = "invalidValueFormatForLineChart";
122
122
  break;
123
- case S.BarSeries:
123
+ case h.BarSeries:
124
124
  r = tn, n = "invalidValueFormatForBarChart";
125
125
  break;
126
- case S.ComboLineAndBarSeries:
126
+ case h.ComboLineAndBarSeries:
127
127
  r = nn, n = "invalidValueFormatForComboBarLineChart";
128
128
  break;
129
- case S.BoxPlotSeries:
129
+ case h.BoxPlotSeries:
130
130
  r = an, n = "invalidValueFormatForBoxPlot";
131
131
  break;
132
- case S.HeatSeries:
132
+ case h.HeatSeries:
133
133
  r = rn, n = "invalidValueFormatForHeatChart";
134
134
  break;
135
135
  }
@@ -137,16 +137,16 @@ function lc(t) {
137
137
  }
138
138
  function un(t) {
139
139
  const { isXAxis: e, chartType: i, valueFormat: a, isAxisForHistogramOverlaySeries: r } = t;
140
- return e && (we(a) || i === S.HistogramSeries && !r || i === S.BarSeries && ne(a));
140
+ return e && (we(a) || i === h.HistogramSeries && !r || i === h.BarSeries && ne(a));
141
141
  }
142
142
  function We(t) {
143
- return _(t?.series) === S.HeatSeries;
143
+ return _(t?.series) === h.HeatSeries;
144
144
  }
145
145
  function de(t) {
146
- return _(t?.series) === S.BoxPlotSeries;
146
+ return _(t?.series) === h.BoxPlotSeries;
147
147
  }
148
148
  function uc(t) {
149
- return _(t?.series) === S.ComboLineAndBarSeries;
149
+ return _(t?.series) === h.ComboLineAndBarSeries;
150
150
  }
151
151
  function cn(t) {
152
152
  return t !== void 0 && t !== Jt.Solid && t !== Jt.Null;
@@ -237,7 +237,7 @@ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fi
237
237
  // blue
238
238
  },
239
239
  legend: {
240
- position: Fr.Bottom,
240
+ position: Sr.Bottom,
241
241
  chartPadding: 40,
242
242
  legendPadding: 20,
243
243
  width: 70,
@@ -335,22 +335,22 @@ function Fc(t) {
335
335
  function Ee(t) {
336
336
  return t !== void 0 && "view" in t && "layer" in t && t.layer.type === "feature";
337
337
  }
338
- function ca(t) {
338
+ function ua(t) {
339
339
  return t !== void 0 && "type" in t && t.type === "feature";
340
340
  }
341
341
  function bc(t) {
342
342
  return t !== void 0 && "type" in t && t.type === "subtype-group";
343
343
  }
344
- function da(t) {
344
+ function ca(t) {
345
345
  return t !== void 0 && "type" in t && t.type === "subtype-sublayer";
346
346
  }
347
347
  function fn(t) {
348
- return ca(t) || da(t);
348
+ return ua(t) || ca(t);
349
349
  }
350
350
  function ge(t) {
351
- return da(t) ? t.parent ?? void 0 : t;
351
+ return ca(t) ? t.parent ?? void 0 : t;
352
352
  }
353
- function fa(t) {
353
+ function da(t) {
354
354
  return t?.capabilities?.query?.supportsDistance || ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance === !0;
355
355
  }
356
356
  function mn(t) {
@@ -358,7 +358,7 @@ function mn(t) {
358
358
  }
359
359
  function xc(t) {
360
360
  const { chartConfig: e, queryObject: i, options: a } = t, r = _(e?.series), n = te(e?.series[0]?.query?.where);
361
- return !(r === S.HeatSeries || e && Pe({
361
+ return !(r === h.HeatSeries || e && Pe({
362
362
  xAxisValueFormatType: xe(e),
363
363
  setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
364
364
  seriesConfig: e.series[0],
@@ -506,10 +506,10 @@ const Qe = [
506
506
  "25.0.0",
507
507
  "25.1.0"
508
508
  ], pn = "1.0.0", hn = "unrecognized.version", Sn = [
509
- S.LineSeries,
510
- S.BarSeries,
511
- S.ComboLineAndBarSeries,
512
- S.RadarSeries
509
+ h.LineSeries,
510
+ h.BarSeries,
511
+ h.ComboLineAndBarSeries,
512
+ h.RadarSeries
513
513
  ];
514
514
  function Gt(t, e) {
515
515
  let i = 0;
@@ -553,7 +553,7 @@ function Nc(t) {
553
553
  }
554
554
  function Re(t) {
555
555
  const { series: e } = t;
556
- let a = ("showMean" in t ? t.showMean : !1) === !0 ? e.find((r) => r.type === S.LineSeries) : e[0];
556
+ let a = ("showMean" in t ? t.showMean : !1) === !0 ? e.find((r) => r.type === h.LineSeries) : e[0];
557
557
  return a ??= e[0], a;
558
558
  }
559
559
  function Tc(t, e) {
@@ -589,34 +589,34 @@ function Le(t) {
589
589
  let o = e;
590
590
  return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
591
591
  }
592
- function ma(t) {
592
+ function fa(t) {
593
593
  let e = F.PieFromCategory;
594
594
  return t[0].query?.outStatistics === void 0 ? e = F.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = F.PieFromFields), e;
595
595
  }
596
- function ya(t) {
596
+ function ma(t) {
597
597
  let e = F.BarAndLineMonoField;
598
598
  const i = t[0].query?.where;
599
599
  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 : Ie(i) ? t.length > 1 && (e = F.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? F.BarAndLineSplitByNoAggregation : F.BarAndLineSplitBy, e;
600
600
  }
601
601
  function bn(t) {
602
602
  let e = F.BoxPlotMonoField;
603
- const i = t.length === 1, a = t.find((o) => o.type === S.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
603
+ const i = t.length === 1, a = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
604
604
  return r === qt ? typeof n == "object" && n.length > 1 ? Ie(s) ? i && (e = F.BoxPlotMultiFields) : e = F.BoxPlotMultiFieldsAndSplitBy : i ? e = F.BoxPlotMonoField : Ie(s) || (e = F.BoxPlotMonoFieldAndSplitBy) : i ? e = F.BoxPlotMonoFieldAndCategory : Ie(s) ? e = F.BoxPlotMultiFieldsAndCategory : e = F.BoxPlotMonoFieldAndCategoryAndSplitBy, e;
605
605
  }
606
606
  function k(t) {
607
607
  let e = F.NonSpecific;
608
608
  if (t?.[0] !== void 0)
609
609
  switch (_(t)) {
610
- case S.PieSeries:
611
- e = ma(t);
610
+ case h.PieSeries:
611
+ e = fa(t);
612
612
  break;
613
- case S.RadarSeries:
614
- case S.BarSeries:
615
- case S.LineSeries:
616
- case S.ComboLineAndBarSeries:
617
- e = ya(t);
613
+ case h.RadarSeries:
614
+ case h.BarSeries:
615
+ case h.LineSeries:
616
+ case h.ComboLineAndBarSeries:
617
+ e = ma(t);
618
618
  break;
619
- case S.BoxPlotSeries:
619
+ case h.BoxPlotSeries:
620
620
  e = bn(t);
621
621
  break;
622
622
  }
@@ -628,13 +628,13 @@ function xn(t) {
628
628
  function Cn(t) {
629
629
  let e = !0;
630
630
  const i = _(t.series);
631
- if (i === S.BarSeries || i === S.LineSeries || i === S.ComboLineAndBarSeries) {
631
+ if (i === h.BarSeries || i === h.LineSeries || i === h.ComboLineAndBarSeries) {
632
632
  const a = k(t.series);
633
633
  e = a !== F.BarAndLineNoAggregation && a !== F.BarAndLineSplitByNoAggregation;
634
634
  }
635
635
  return e;
636
636
  }
637
- function ga(t) {
637
+ function ya(t) {
638
638
  const { statsMap: e, dataContext: i, chartLimits: a } = t;
639
639
  let r = !1;
640
640
  if (e !== void 0) {
@@ -648,15 +648,15 @@ function vn(t) {
648
648
  let r = !0;
649
649
  if (i !== void 0)
650
650
  switch (_(i.series)) {
651
- case S.BarSeries:
652
- case S.LineSeries:
653
- case S.ComboLineAndBarSeries:
651
+ case h.BarSeries:
652
+ case h.LineSeries:
653
+ case h.ComboLineAndBarSeries:
654
654
  r = Cn(i);
655
655
  break;
656
- case S.ScatterSeries:
657
- r = ga({ dataContext: e, chartLimits: a });
656
+ case h.ScatterSeries:
657
+ r = ya({ dataContext: e, chartLimits: a });
658
658
  break;
659
- case S.PieSeries:
659
+ case h.PieSeries:
660
660
  r = xn(i);
661
661
  break;
662
662
  }
@@ -665,7 +665,7 @@ function vn(t) {
665
665
  function Pe(t) {
666
666
  const { seriesConfig: e, xAxisValueFormatType: i, setTimeBinningInfoWhenNotProvided: a, queryObject: r } = t;
667
667
  let n = !1;
668
- if (!ie(r) && !(z(r)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && be(e) && e.binTemporalData !== !1 && i === S.DateAxisFormat) {
668
+ if (!ie(r) && !(z(r)?.fields?.find((o) => o.name === e.x)?.type === "time-only") && be(e) && e.binTemporalData !== !1 && i === h.DateAxisFormat) {
669
669
  const o = k([e]);
670
670
  if (e.temporalBinning && o !== F.BarAndLineNoAggregation && o !== F.BarAndLineSplitByNoAggregation) {
671
671
  const { unit: u, size: c } = e.temporalBinning;
@@ -677,7 +677,7 @@ function Pe(t) {
677
677
  function be(t) {
678
678
  return Sn.includes(t?.type);
679
679
  }
680
- function pa(t) {
680
+ function ga(t) {
681
681
  const { previousConfig: e, newConfig: i, behaviorAfterLimit: a } = t, r = e.series, n = i.series;
682
682
  let s = !1, o = !1;
683
683
  (a === lt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !at(
@@ -704,21 +704,21 @@ function Nn(t, e) {
704
704
  i = !0;
705
705
  else {
706
706
  const a = _(t);
707
- if (a !== S.HistogramSeries && a !== S.GaugeSeries) {
707
+ if (a !== h.HistogramSeries && a !== h.GaugeSeries) {
708
708
  const r = ue(t).sort(), n = ue(e).sort();
709
709
  i = JSON.stringify(r) !== JSON.stringify(n);
710
710
  }
711
711
  }
712
712
  return i;
713
713
  }
714
- function ha(t, e) {
714
+ function pa(t, e) {
715
715
  return (t ?? !1) !== (e ?? !1);
716
716
  }
717
- function Sa(t, e) {
717
+ function ha(t, e) {
718
718
  return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? C.binTemporalData) !== (e.series[0].binTemporalData ?? C.binTemporalData);
719
719
  }
720
- function Fa(t, e) {
721
- const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === S.DateAxisFormat && a === S.NumberAxisFormat, o = i === S.NumberAxisFormat && a === S.DateAxisFormat;
720
+ function Sa(t, e) {
721
+ const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && a === h.NumberAxisFormat, o = i === h.NumberAxisFormat && a === h.DateAxisFormat;
722
722
  return i !== a && (n || s || o);
723
723
  }
724
724
  function Tn(t) {
@@ -738,13 +738,13 @@ function Tn(t) {
738
738
  function Li(t, e) {
739
739
  return e.length !== t.length;
740
740
  }
741
- function ba(t, e) {
741
+ function Fa(t, e) {
742
742
  return st(t) !== st(e);
743
743
  }
744
- function xa(t, e) {
744
+ function ba(t, e) {
745
745
  return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
746
746
  }
747
- function Ca(t, e) {
747
+ function xa(t, e) {
748
748
  return JSON.stringify(t.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(t.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (t.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || t.outTimeZone !== e.outTimeZone || (t.nullPolicy ?? Se.Null) !== (e.nullPolicy ?? Se.Null);
749
749
  }
750
750
  function An(t, e) {
@@ -756,7 +756,7 @@ function wn(t, e) {
756
756
  function Ln(t) {
757
757
  const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
758
758
  let s = !1;
759
- if (r.type === S.ScatterSeries && n.type === S.ScatterSeries && a && a.length > 0) {
759
+ if (r.type === h.ScatterSeries && n.type === h.ScatterSeries && a && a.length > 0) {
760
760
  const o = new Set(r.additionalTooltipFields || []), u = new Set(n.additionalTooltipFields || []);
761
761
  if (!at(o, u)) {
762
762
  const c = Array.from(u).filter((l) => !o.has(l));
@@ -776,11 +776,11 @@ function Lt(t) {
776
776
  return e.position === void 0 && (e.position = gt.heatChart.legend.position), e;
777
777
  }
778
778
  function Lc(t, e) {
779
- const i = t.legend ?? { type: S.Legend }, a = e.legend ?? { type: S.Legend }, r = Lt(i), n = Lt(a);
779
+ const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Lt(i), n = Lt(a);
780
780
  return !at(r, n);
781
781
  }
782
782
  function Pc(t, e) {
783
- const i = t.legend ?? { type: S.Legend }, a = e.legend ?? { type: S.Legend }, r = Lt(i), n = Lt(a);
783
+ const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Lt(i), n = Lt(a);
784
784
  return r.position !== n.position;
785
785
  }
786
786
  function Mc(t, e) {
@@ -793,7 +793,7 @@ function Oc(t) {
793
793
  const { oldConfig: e, newConfig: i } = t;
794
794
  let a = !1;
795
795
  const r = e?.series[0], n = i.series[0], s = _(e?.series), o = _(i.series);
796
- if (s === S.PieSeries && o === S.PieSeries) {
796
+ if (s === h.PieSeries && o === h.PieSeries) {
797
797
  const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((g) => ({
798
798
  sliceId: g.sliceId,
799
799
  label: g.label
@@ -847,13 +847,13 @@ function jc(t, e) {
847
847
  return JSON.stringify(t?.chartRenderer) !== JSON.stringify(e?.chartRenderer);
848
848
  }
849
849
  function Hc(t, e) {
850
- const i = t.axes?.[0].valueFormat.type === S.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
850
+ const i = t.axes?.[0].valueFormat.type === h.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0, a = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0;
851
851
  return i !== a;
852
852
  }
853
853
  function zc(t, e) {
854
854
  let i = !1;
855
855
  const a = t.series[0], r = e.series[0];
856
- if (a.type === S.ScatterSeries && r.type === S.ScatterSeries) {
856
+ if (a.type === h.ScatterSeries && r.type === h.ScatterSeries) {
857
857
  const { sizePolicy: n } = a, { sizePolicy: s } = r;
858
858
  i = JSON.stringify(n) !== JSON.stringify(s);
859
859
  }
@@ -862,7 +862,7 @@ function zc(t, e) {
862
862
  function Wc(t, e) {
863
863
  let i = !1;
864
864
  const a = t.series[0], r = e.series[0];
865
- if (a.type === S.ScatterSeries && r.type === S.ScatterSeries) {
865
+ if (a.type === h.ScatterSeries && r.type === h.ScatterSeries) {
866
866
  const { sizePolicy: n } = a, { sizePolicy: s } = r;
867
867
  i = n === void 0 && s !== void 0 || n !== void 0 && s === void 0 || n?.field !== s?.field;
868
868
  }
@@ -882,7 +882,7 @@ function Gc(t) {
882
882
  chartLimits: l
883
883
  } = t, { series: d } = i, { series: f } = e, m = _(d);
884
884
  let y = !1, p = !1, g = !1;
885
- const h = {
885
+ const S = {
886
886
  common: {
887
887
  layerChanged: !1,
888
888
  queryChanged: !1,
@@ -908,22 +908,22 @@ function Gc(t) {
908
908
  tooltipFieldsChanged: !1
909
909
  }
910
910
  };
911
- switch (h.common.queryChanged = pa({
911
+ switch (S.common.queryChanged = ga({
912
912
  previousConfig: e,
913
913
  newConfig: i,
914
914
  behaviorAfterLimit: l?.behaviorAfterLimit
915
- }), h.common.configFiltersChanged = Bn(e, i), h.common.xOrYChanged = Nn(f, d), h.common.filterBySelectionChanged = ha(
915
+ }), S.common.configFiltersChanged = Bn(e, i), S.common.xOrYChanged = Nn(f, d), S.common.filterBySelectionChanged = pa(
916
916
  a,
917
917
  o
918
- ), h.common.dataForFilterBySelectionChanged = Pn({
918
+ ), S.common.dataForFilterBySelectionChanged = Pn({
919
919
  previousSelectionOIDs: r,
920
920
  selectionData: u,
921
921
  filterBySelection: o
922
- }), h.common.binTemporalDataChanged = Sa(e, i), h.common.valueFormatChangeRequiresNewData = Fa(
922
+ }), S.common.binTemporalDataChanged = ha(e, i), S.common.valueFormatChangeRequiresNewData = Sa(
923
923
  e,
924
924
  i
925
- ), h.common = {
926
- ...h.common,
925
+ ), S.common = {
926
+ ...S.common,
927
927
  ...Tn({
928
928
  previousSeries: f,
929
929
  newConfig: i,
@@ -931,38 +931,38 @@ function Gc(t) {
931
931
  queryObject: s
932
932
  })
933
933
  }, m) {
934
- case S.HistogramSeries:
935
- h.histogram.dataPropsChanged = Kn(f, d) || Jn(
934
+ case h.HistogramSeries:
935
+ S.histogram.dataPropsChanged = Kn(f, d) || Jn(
936
936
  f,
937
937
  d
938
938
  );
939
939
  break;
940
- case S.LineSeries:
941
- case S.BarSeries:
942
- case S.ComboLineAndBarSeries:
943
- h.common.numberOfSeriesChanged = Li(f, d);
940
+ case h.LineSeries:
941
+ case h.BarSeries:
942
+ case h.ComboLineAndBarSeries:
943
+ S.common.numberOfSeriesChanged = Li(f, d);
944
944
  break;
945
- case S.BoxPlotSeries:
946
- de(e) && de(i) && (h.common.numberOfSeriesChanged = Li(f, d), h.boxPlot.showMeanChanged = ba(e, i));
945
+ case h.BoxPlotSeries:
946
+ de(e) && de(i) && (S.common.numberOfSeriesChanged = Li(f, d), S.boxPlot.showMeanChanged = Fa(e, i));
947
947
  break;
948
- case S.GaugeSeries:
949
- h.gauge.valueConversionChanged = xa(e, i);
948
+ case h.GaugeSeries:
949
+ S.gauge.valueConversionChanged = ba(e, i);
950
950
  break;
951
- case S.HeatSeries:
952
- We(e) && We(i) && (h.heatChart.binningChanged = Ca(e, i), h.heatChart.hideEmptyRowsAndColumnsChanged = An(
951
+ case h.HeatSeries:
952
+ We(e) && We(i) && (S.heatChart.binningChanged = xa(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = An(
953
953
  e,
954
954
  i
955
- ), h.heatChart.includeLeapDay = wn(e, i));
955
+ ), S.heatChart.includeLeapDay = wn(e, i));
956
956
  break;
957
- case S.ScatterSeries:
958
- h.scatterPlot.tooltipFieldsChanged = Ln({
957
+ case h.ScatterSeries:
958
+ S.scatterPlot.tooltipFieldsChanged = Ln({
959
959
  previousConfig: e,
960
960
  newConfig: i,
961
961
  fieldList: n
962
962
  });
963
963
  break;
964
964
  }
965
- return p = Object.values(h.common).some((x) => x), (h.gauge.valueConversionChanged || h.histogram.dataPropsChanged || h.boxPlot.showMeanChanged || h.heatChart.binningChanged || h.heatChart.hideEmptyRowsAndColumnsChanged || h.heatChart.includeLeapDay || h.scatterPlot.tooltipFieldsChanged) && (g = !0), y = p || g, { dataUpdateNeeded: y, dataUpdateDetails: h };
965
+ return p = Object.values(S.common).some((b) => b), (S.gauge.valueConversionChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged) && (g = !0), y = p || g, { dataUpdateNeeded: y, dataUpdateDetails: S };
966
966
  }
967
967
  function Uc(t, e) {
968
968
  const i = He(t);
@@ -1005,7 +1005,7 @@ function Mn(t) {
1005
1005
  const r = ci(e);
1006
1006
  return r?.length === 2 && (a = i === Q.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
1007
1007
  }
1008
- function va(t) {
1008
+ function Ca(t) {
1009
1009
  const e = k(t.series);
1010
1010
  let i;
1011
1011
  if (t.orderOptions?.data !== void 0) {
@@ -1033,14 +1033,14 @@ function va(t) {
1033
1033
  }
1034
1034
  return i;
1035
1035
  }
1036
- function Ba(t) {
1036
+ function va(t) {
1037
1037
  const e = t.series[0], { x: i, y: a } = e, r = k(t.series) === F.PieFromFields, n = k(t.series) === F.BarAndLineFromFields;
1038
1038
  let s, o = "", u;
1039
1039
  if (t.orderOptions?.data !== void 0) {
1040
1040
  const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
1041
1041
  if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = ce : o = c ? i : gt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
1042
1042
  const l = ui(t);
1043
- if (_(t.series) !== S.PieSeries && o !== i && t.series?.length > 1)
1043
+ if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
1044
1044
  switch (l) {
1045
1045
  case Te.Stacked:
1046
1046
  o = C.technicalSortingFieldBySum;
@@ -1071,17 +1071,17 @@ function Pt(t) {
1071
1071
  if (t?.series && t.series.length > 0) {
1072
1072
  let a;
1073
1073
  switch (i) {
1074
- case S.HeatSeries:
1074
+ case h.HeatSeries:
1075
1075
  We(t) && (e = ci(t));
1076
1076
  break;
1077
- case S.BoxPlotSeries:
1078
- de(t) && (a = va(t));
1077
+ case h.BoxPlotSeries:
1078
+ de(t) && (a = Ca(t));
1079
1079
  break;
1080
- case S.LineSeries:
1081
- case S.BarSeries:
1082
- case S.RadarSeries:
1083
- case S.PieSeries:
1084
- a = Ba(t);
1080
+ case h.LineSeries:
1081
+ case h.BarSeries:
1082
+ case h.RadarSeries:
1083
+ case h.PieSeries:
1084
+ a = va(t);
1085
1085
  break;
1086
1086
  }
1087
1087
  !e && a && (e = [], e.push(a));
@@ -1093,7 +1093,7 @@ function Yc(t) {
1093
1093
  let s = !1, o = !1;
1094
1094
  if (n !== F.BoxPlotMonoField && n !== F.BoxPlotMonoFieldAndSplitBy && i.orderOptions?.data !== void 0) {
1095
1095
  const u = Pt(e), c = Pt(i);
1096
- if (r === S.HeatSeries) {
1096
+ if (r === h.HeatSeries) {
1097
1097
  const l = u ? u[0] : void 0, d = c ? c[0] : void 0, f = u ? u[1] : void 0, m = c ? c[1] : void 0;
1098
1098
  o = e?.orderOptions?.data?.orderType !== i.orderOptions?.data?.orderType || l?.sortingField !== d?.sortingField || l?.orderBy !== d?.orderBy || f?.sortingField !== m?.sortingField || f?.orderBy !== m?.orderBy, s = o || a;
1099
1099
  } else {
@@ -1104,17 +1104,17 @@ function Yc(t) {
1104
1104
  return s;
1105
1105
  }
1106
1106
  const Zc = {
1107
- getPieChartChartSubType: ma,
1108
- getBarLineChartSubType: ya,
1109
- hasQueryChanged: pa,
1110
- hasFilterBySelectionChanged: ha,
1111
- hasBinTemporalDataChanged: Sa,
1112
- hasGaugeValueConversionChanged: xa,
1113
- isNewDataRequiredForValueFormatChange: Fa,
1114
- hasShowMeanChanged: ba,
1115
- hasHeatChartBinningChanged: Ca,
1116
- getDataOrderParametersForBoxPlot: va,
1117
- getDataOrderParametersForCommonChart: Ba,
1107
+ getPieChartChartSubType: fa,
1108
+ getBarLineChartSubType: ma,
1109
+ hasQueryChanged: ga,
1110
+ hasFilterBySelectionChanged: pa,
1111
+ hasBinTemporalDataChanged: ha,
1112
+ hasGaugeValueConversionChanged: ba,
1113
+ isNewDataRequiredForValueFormatChange: Sa,
1114
+ hasShowMeanChanged: Fa,
1115
+ hasHeatChartBinningChanged: xa,
1116
+ getDataOrderParametersForBoxPlot: Ca,
1117
+ getDataOrderParametersForCommonChart: va,
1118
1118
  getDataOrderParametersForHeatChart: ci
1119
1119
  };
1120
1120
  function Dn(t) {
@@ -1136,7 +1136,7 @@ function Pi(t) {
1136
1136
  const { originalCategoryValue: u, originalDateValue: c } = C;
1137
1137
  if (i !== void 0) {
1138
1138
  const l = n ? jn(i) : void 0;
1139
- a !== void 0 && i[a] !== void 0 ? o = i[a] : l !== void 0 ? o = l : i[C.xAxisDisplayField] !== void 0 ? o = i[C.xAxisDisplayField] : i[C.xAxisField] !== void 0 ? o = i[C.xAxisField] : i[C.boxPlot.boxPlotCategory] !== void 0 ? o = i[C.boxPlot.boxPlotCategory] : i[c] !== void 0 ? o = i[c] : i[u] !== void 0 ? o = i[u] : i[ce] !== void 0 && (o = i[ce]), !r && (o === null || o === C.nullValue) && (s?.series?.[0].type === S.BarSeries || s?.series?.[0].type === S.LineSeries ? o = s.series?.[0]?.nullCategory?.text ?? C.nullCategory?.text ?? "null" : o = "null");
1139
+ a !== void 0 && i[a] !== void 0 ? o = i[a] : l !== void 0 ? o = l : i[C.xAxisDisplayField] !== void 0 ? o = i[C.xAxisDisplayField] : i[C.xAxisField] !== void 0 ? o = i[C.xAxisField] : i[C.boxPlot.boxPlotCategory] !== void 0 ? o = i[C.boxPlot.boxPlotCategory] : i[c] !== void 0 ? o = i[c] : i[u] !== void 0 ? o = i[u] : i[ce] !== void 0 && (o = i[ce]), !r && (o === null || o === C.nullValue) && (s?.series?.[0].type === h.BarSeries || s?.series?.[0].type === h.LineSeries ? o = s.series?.[0]?.nullCategory?.text ?? C.nullCategory?.text ?? "null" : o = "null");
1140
1140
  }
1141
1141
  return o;
1142
1142
  }
@@ -1231,7 +1231,7 @@ function qn(t, e) {
1231
1231
  let a = 0, r = 0, n = 0;
1232
1232
  t.forEach((s) => {
1233
1233
  const o = s[e];
1234
- !Mr(o) || o === 0 ? n += 1 : o > 0 ? a += 1 : r += 1;
1234
+ !Pr(o) || o === 0 ? n += 1 : o > 0 ? a += 1 : r += 1;
1235
1235
  }), i = n === t.length || a >= 0 && r === 0 || a === 0 && r >= 0;
1236
1236
  }
1237
1237
  return i;
@@ -1242,7 +1242,7 @@ function Tt(t) {
1242
1242
  const n = [];
1243
1243
  return typeof e == "number" && Number.isFinite(e) && n.push(e), typeof i == "number" && Number.isFinite(i) && n.push(i * a), n.length > 0 && (r = Math.min(...n)), r;
1244
1244
  }
1245
- function Na(t, e) {
1245
+ function Ba(t, e) {
1246
1246
  let i;
1247
1247
  const {
1248
1248
  maxBarChartSeriesCount: a,
@@ -1259,44 +1259,44 @@ function Na(t, e) {
1259
1259
  maxLineThreePlusSeriesCountTotal: y,
1260
1260
  maxPieChartSliceCountTotal: p,
1261
1261
  maxGaugeByFeaturesLimit: g
1262
- } = ut(e), h = _(t.series), x = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
1263
- switch (h) {
1264
- case S.ComboLineAndBarSeries:
1265
- case S.BarSeries:
1266
- x <= a && (x === 1 ? i = r : x === 2 ? i = Tt({
1262
+ } = ut(e), S = _(t.series), b = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
1263
+ switch (S) {
1264
+ case h.ComboLineAndBarSeries:
1265
+ case h.BarSeries:
1266
+ b <= a && (b === 1 ? i = r : b === 2 ? i = Tt({
1267
1267
  countTotal: s,
1268
1268
  countPerSeries: n,
1269
- numberOfSeries: x
1270
- }) : x > 2 && (i = Tt({
1269
+ numberOfSeries: b
1270
+ }) : b > 2 && (i = Tt({
1271
1271
  countTotal: u,
1272
1272
  countPerSeries: o,
1273
- numberOfSeries: x
1273
+ numberOfSeries: b
1274
1274
  })));
1275
1275
  break;
1276
- case S.LineSeries:
1277
- x <= c && (x === 1 ? i = l : x === 2 ? i = Tt({
1276
+ case h.LineSeries:
1277
+ b <= c && (b === 1 ? i = l : b === 2 ? i = Tt({
1278
1278
  countTotal: f,
1279
1279
  countPerSeries: d,
1280
- numberOfSeries: x
1281
- }) : x > 2 && (i = Tt({
1280
+ numberOfSeries: b
1281
+ }) : b > 2 && (i = Tt({
1282
1282
  countTotal: y,
1283
1283
  countPerSeries: m,
1284
- numberOfSeries: x
1284
+ numberOfSeries: b
1285
1285
  })));
1286
1286
  break;
1287
- case S.PieSeries:
1287
+ case h.PieSeries:
1288
1288
  i = p;
1289
1289
  break;
1290
- case S.GaugeSeries:
1290
+ case h.GaugeSeries:
1291
1291
  i = g;
1292
1292
  break;
1293
- case S.ScatterSeries:
1293
+ case h.ScatterSeries:
1294
1294
  // handled through the aggregation feature
1295
- case S.HistogramSeries:
1295
+ case h.HistogramSeries:
1296
1296
  // handled through the number of bins
1297
- case S.BoxPlotSeries:
1297
+ case h.BoxPlotSeries:
1298
1298
  }
1299
- return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / x)), i;
1299
+ return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / b)), i;
1300
1300
  }
1301
1301
  function Mi(t, e) {
1302
1302
  let i = t;
@@ -1322,7 +1322,7 @@ function Xc(t) {
1322
1322
  }
1323
1323
  return e;
1324
1324
  }
1325
- function Ta(t) {
1325
+ function Na(t) {
1326
1326
  const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
1327
1327
  let r = e;
1328
1328
  return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
@@ -1333,7 +1333,7 @@ function Jc(t) {
1333
1333
  if (i > 0 && e.length > i) {
1334
1334
  const r = e.lastIndexOf(" ", i), n = e.lastIndexOf("-", i), s = Math.max(r, n), o = s === n && n > 0, u = s > 0 ? s + (o ? 1 : 0) : i, c = Math.min(i, u), l = e.slice(0, c).trimEnd();
1335
1335
  let d = e.slice(c).trimStart();
1336
- d.length > i && (d = Ta({
1336
+ d.length > i && (d = Na({
1337
1337
  stringToTruncate: d,
1338
1338
  characterLimit: Math.max(1, i - 1)
1339
1339
  })), a = `${l}
@@ -1347,7 +1347,7 @@ function Kc(t, e = ":") {
1347
1347
  function ed(t) {
1348
1348
  return (i) => {
1349
1349
  let a = typeof i != "string" ? i?.toString() ?? "" : i;
1350
- return !oe(a) && a !== C.htmlEmptyContent && (a = Ta({
1350
+ return !oe(a) && a !== C.htmlEmptyContent && (a = Na({
1351
1351
  stringToTruncate: a,
1352
1352
  characterLimit: t
1353
1353
  })), a;
@@ -1370,7 +1370,7 @@ function td(t) {
1370
1370
  let u = i ?? e?.text ?? "";
1371
1371
  if (a === "html") {
1372
1372
  let { wrap: c, maxWidth: l } = n ?? {};
1373
- r === br.Wrap && (c = !0, l = l ?? C.xAxisLabelMaxWidth);
1373
+ r === Fr.Wrap && (c = !0, l = l ?? C.xAxisLabelMaxWidth);
1374
1374
  const d = c === !0 && Number.isFinite(l) ? `max-width: ${l}px; word-break: break-word;` : "";
1375
1375
  u = `<p style="margin:0;${s}${o}${d}">${u}</p>`;
1376
1376
  } else
@@ -1381,12 +1381,12 @@ function Qn(t) {
1381
1381
  return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
1382
1382
  }
1383
1383
  const id = [
1384
- S.BarSeries,
1385
- S.BoxPlotSeries,
1386
- S.LineSeries,
1387
- S.PieSeries,
1388
- S.HistogramSeries,
1389
- S.ScatterSeries
1384
+ h.BarSeries,
1385
+ h.BoxPlotSeries,
1386
+ h.LineSeries,
1387
+ h.PieSeries,
1388
+ h.HistogramSeries,
1389
+ h.ScatterSeries
1390
1390
  ], ad = 1, rd = { PNG: "png" }, tt = {
1391
1391
  ChartRenderer: 1,
1392
1392
  LayerRenderer: 2
@@ -1403,19 +1403,19 @@ function nd(t) {
1403
1403
  }), l = z(i)?.renderer;
1404
1404
  switch (l?.type) {
1405
1405
  case se.Simple:
1406
- a = n === S.HistogramSeries || n === S.ScatterSeries || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BarAndLineNoAggregation && r.length === 1 && !u;
1406
+ a = n === h.HistogramSeries || n === h.ScatterSeries || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BarAndLineNoAggregation && r.length === 1 && !u;
1407
1407
  break;
1408
1408
  case se.UniqueValue:
1409
1409
  {
1410
1410
  const f = l?.field, m = te(o.query?.where), { x: y } = o;
1411
- a = (s === F.BoxPlotMonoFieldAndSplitBy || s === F.BoxPlotMultiFieldsAndSplitBy || s === F.BoxPlotMonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotMonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === y || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n === S.ScatterSeries;
1411
+ a = (s === F.BoxPlotMonoFieldAndSplitBy || s === F.BoxPlotMultiFieldsAndSplitBy || s === F.BoxPlotMonoFieldAndCategoryAndSplitBy || s === F.BarAndLineSplitByNoAggregation || s === F.BarAndLineSplitBy) && f === m || (s === F.BoxPlotMonoFieldAndCategory || s === F.PieFromCategory || s === F.BarAndLineMonoField) && f === y || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation || n === h.ScatterSeries;
1412
1412
  }
1413
1413
  break;
1414
1414
  case se.PieChart:
1415
1415
  a = s === F.PieFromFields || s === F.BarAndLineFromFields || s === F.BarAndLineMultiFields || s === F.BarAndLineMonoField || s === F.BoxPlotMonoField || s === F.BoxPlotMultiFields || s === F.BoxPlotMonoFieldAndCategory || s === F.BoxPlotMultiFieldsAndCategory;
1416
1416
  break;
1417
1417
  case se.ClassBreaks:
1418
- a = n === S.HeatSeries || n === S.ScatterSeries || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation;
1418
+ a = n === h.HeatSeries || n === h.ScatterSeries || s === F.BarAndLineNoAggregation || s === F.PieNoAggregation;
1419
1419
  break;
1420
1420
  case se.Dictionary:
1421
1421
  case se.DotDensity:
@@ -1443,7 +1443,7 @@ function jn(t) {
1443
1443
  function Hn(t) {
1444
1444
  return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
1445
1445
  }
1446
- function Aa(t) {
1446
+ function Ta(t) {
1447
1447
  const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: r } = t;
1448
1448
  let n = !1;
1449
1449
  if (!Hn(a))
@@ -1464,30 +1464,30 @@ function zn(t) {
1464
1464
  const { color: m, label: y } = d;
1465
1465
  let p;
1466
1466
  Array.isArray(m) && m?.length === 4 ? p = m : m && "toRgba" in m && (p = m.toRgba());
1467
- let g = !1, h = !0;
1467
+ let g = !1, S = !0;
1468
1468
  switch (u) {
1469
- case S.BarSeries:
1470
- case S.LineSeries:
1471
- case S.ComboLineAndBarSeries:
1472
- case S.RadarSeries:
1469
+ case h.BarSeries:
1470
+ case h.LineSeries:
1471
+ case h.ComboLineAndBarSeries:
1472
+ case h.RadarSeries:
1473
1473
  if (a !== F.BarAndLineFromFields) {
1474
- const x = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
1475
- x !== void 0 && "y" in x ? f = [x.y].flat()[0] : f = "";
1474
+ const b = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
1475
+ b !== void 0 && "y" in b ? f = [b.y].flat()[0] : f = "";
1476
1476
  }
1477
1477
  g = a !== F.BarAndLineFromFields || f === r[C.originalCategoryValue];
1478
1478
  break;
1479
- case S.PieSeries:
1479
+ case h.PieSeries:
1480
1480
  g = a === F.PieFromFields && f === r[C.originalCategoryValue];
1481
1481
  break;
1482
- case S.BoxPlotSeries:
1483
- a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? g = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (g = i.map((v) => v.y).flat().includes(f)), h = !1;
1482
+ case h.BoxPlotSeries:
1483
+ a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? g = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (g = i.map((v) => v.y).flat().includes(f)), S = !1;
1484
1484
  break;
1485
1485
  }
1486
1486
  g && p && (s = {
1487
1487
  type: _e.SMS,
1488
1488
  color: p,
1489
- label: h && y ? y : void 0
1490
- }, c != null && (s.outline = c), Aa({
1489
+ label: S && y ? y : void 0
1490
+ }, c != null && (s.outline = c), Ta({
1491
1491
  dataItem: r,
1492
1492
  symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
1493
1493
  rendererSymbol: s,
@@ -1523,14 +1523,14 @@ function Wn(t) {
1523
1523
  }
1524
1524
  return n;
1525
1525
  }
1526
- function wa(t) {
1526
+ function Aa(t) {
1527
1527
  const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: r } = t;
1528
1528
  let n = Wn({
1529
1529
  seriesConfig: e,
1530
1530
  chartSubType: i,
1531
1531
  rendererType: a
1532
1532
  });
1533
- return n instanceof Array && e.type === S.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[qt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
1533
+ return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[qt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
1534
1534
  }
1535
1535
  function Gn(t) {
1536
1536
  const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
@@ -1539,7 +1539,7 @@ function Gn(t) {
1539
1539
  ...z(i),
1540
1540
  renderer: Xi.fromJSON(e)
1541
1541
  } : z(i);
1542
- return new Ir({
1542
+ return new Or({
1543
1543
  layer: a
1544
1544
  });
1545
1545
  }
@@ -1569,13 +1569,13 @@ async function Un(t) {
1569
1569
  } else if (i?.[Kt.defaultGroupOfSlicesId] !== !0) {
1570
1570
  const { x: m } = e[0], y = /* @__PURE__ */ new Map();
1571
1571
  o && o.trim() !== "" ? e.forEach((p) => {
1572
- if (p.type === S.BarSeries || p.type === S.LineSeries || p.type === S.BoxPlotSeries || p.type === S.RadarSeries) {
1573
- const g = wa({
1572
+ if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
1573
+ const g = Aa({
1574
1574
  seriesConfig: p,
1575
1575
  chartSubType: s,
1576
1576
  rendererType: r,
1577
1577
  dataItem: i
1578
- }), h = fe({
1578
+ }), S = fe({
1579
1579
  where: p.query?.where,
1580
1580
  normalize: !0,
1581
1581
  keepSurroundingQuotes: !1,
@@ -1583,13 +1583,13 @@ async function Un(t) {
1583
1583
  });
1584
1584
  y.set(g, {
1585
1585
  ...i,
1586
- [o]: h
1586
+ [o]: S
1587
1587
  });
1588
1588
  }
1589
- }) : e[0].type === S.HeatSeries && r === se.ClassBreaks ? y.set(C.rendererSymbolField, {
1589
+ }) : e[0].type === h.HeatSeries && r === se.ClassBreaks ? y.set(C.rendererSymbolField, {
1590
1590
  [Q.valueField]: i[Q.valueField]
1591
1591
  }) : y.set(
1592
- _(e) === S.HistogramSeries ? C.rendererSymbolFieldForHistogram : C.rendererSymbolField,
1592
+ _(e) === h.HistogramSeries ? C.rendererSymbolFieldForHistogram : C.rendererSymbolField,
1593
1593
  {
1594
1594
  ...i,
1595
1595
  [m]: On(i)
@@ -1598,18 +1598,18 @@ async function Un(t) {
1598
1598
  try {
1599
1599
  const p = Array.from(y.entries()), g = u.clone();
1600
1600
  g.layer = u.layer;
1601
- const h = a?.uniqueValueInfos;
1602
- for (let x = 0; x < p.length; x += 1) {
1603
- const [v, b] = p[x];
1601
+ const S = a?.uniqueValueInfos;
1602
+ for (let b = 0; b < p.length; b += 1) {
1603
+ const [v, x] = p[b];
1604
1604
  if (Di({
1605
1605
  mode: "encode",
1606
1606
  x: m,
1607
1607
  splitByField: o,
1608
- attributes: b
1609
- }), c && c.length > 0 && Object.keys(b).forEach((N) => {
1610
- c.includes(N) || delete b[N];
1611
- }), g.attributes = b, l?.has(JSON.stringify(b)))
1612
- d = l.get(JSON.stringify(b));
1608
+ attributes: x
1609
+ }), c && c.length > 0 && Object.keys(x).forEach((N) => {
1610
+ c.includes(N) || delete x[N];
1611
+ }), g.attributes = x, l?.has(JSON.stringify(x)))
1612
+ d = l.get(JSON.stringify(x));
1613
1613
  else {
1614
1614
  if (d = (await Wt.getDisplayedSymbol(g))?.toJSON(), d != null) {
1615
1615
  if (d.color === void 0) {
@@ -1617,16 +1617,16 @@ async function Un(t) {
1617
1617
  T && (d.color = T.length === 4 ? T : [...T, 255]);
1618
1618
  }
1619
1619
  const N = await Wt.getLegendLabel(g);
1620
- N != null && N !== "" && (d.label = N, d.uniqueValue = h?.find((T) => T.label === N)?.value ?? void 0);
1620
+ N != null && N !== "" && (d.label = N, d.uniqueValue = S?.find((T) => T.label === N)?.value ?? void 0);
1621
1621
  }
1622
- l?.set(JSON.stringify(b), d);
1622
+ l?.set(JSON.stringify(x), d);
1623
1623
  }
1624
1624
  Di({
1625
1625
  mode: "revert",
1626
1626
  x: m,
1627
1627
  splitByField: o,
1628
1628
  attributes: i
1629
- }), Aa({
1629
+ }), Ta({
1630
1630
  dataItem: i,
1631
1631
  symbolField: v,
1632
1632
  rendererSymbol: d,
@@ -1648,7 +1648,7 @@ function Yn(t) {
1648
1648
  const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: r, rendererType: n } = t;
1649
1649
  let s;
1650
1650
  if (r && e !== void 0) {
1651
- const o = wa({
1651
+ const o = Aa({
1652
1652
  seriesConfig: i,
1653
1653
  chartSubType: a,
1654
1654
  rendererType: n,
@@ -1713,7 +1713,7 @@ function Kn(t, e) {
1713
1713
  function ld(t, e) {
1714
1714
  let i = !0;
1715
1715
  const a = _(t?.series), r = _(e?.series);
1716
- return a && a !== r && (i = a === S.ComboLineAndBarSeries && (r === S.BarSeries || r === S.LineSeries) || r === S.ComboLineAndBarSeries && (a === S.BarSeries || a === S.LineSeries) || a === S.BarSeries && r === S.LineSeries || a === S.LineSeries && r === S.BarSeries), i;
1716
+ return a && a !== r && (i = a === h.ComboLineAndBarSeries && (r === h.BarSeries || r === h.LineSeries) || r === h.ComboLineAndBarSeries && (a === h.BarSeries || a === h.LineSeries) || a === h.BarSeries && r === h.LineSeries || a === h.LineSeries && r === h.BarSeries), i;
1717
1717
  }
1718
1718
  function ei(t, e) {
1719
1719
  return t !== void 0 && e !== void 0 && e > 0;
@@ -1725,7 +1725,7 @@ function ud(t) {
1725
1725
  return r = e.series.map((c, l) => {
1726
1726
  const d = _([c]);
1727
1727
  let f;
1728
- return (d === S.BarSeries || d === S.LineSeries || d === S.RadarSeries) && (c.type === S.BarSeries ? f = c.fillSymbol?.color : (c.type === S.RadarSeries || c.type === S.LineSeries) && (f = c.lineSymbol?.color), s ? f = Yn({
1728
+ return (d === h.BarSeries || d === h.LineSeries || d === h.RadarSeries) && (c.type === h.BarSeries ? f = c.fillSymbol?.color : (c.type === h.RadarSeries || c.type === h.LineSeries) && (f = c.lineSymbol?.color), s ? f = Yn({
1729
1729
  dataItem: a[0],
1730
1730
  seriesConfig: c,
1731
1731
  chartSubType: n,
@@ -1754,7 +1754,7 @@ function is(t, e) {
1754
1754
  const i = me.now().offset / 60, a = me.now().setZone(t) ?? i, r = a.offset / 60, n = e ? a.setZone(e).offset / 60 : 0;
1755
1755
  return r - n;
1756
1756
  }
1757
- function La(t) {
1757
+ function wa(t) {
1758
1758
  const {
1759
1759
  outTimeZone: e = Intl.DateTimeFormat().resolvedOptions().timeZone,
1760
1760
  dataTimeZone: i = "UTC",
@@ -1771,7 +1771,7 @@ function La(t) {
1771
1771
  return r;
1772
1772
  }
1773
1773
  function as(t) {
1774
- const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = La({ runsOnClientQueryEngine: a, outTimeZone: r }), s = `EXTRACT(YEAR FROM ${e} ${n})`, o = `EXTRACT(MONTH FROM ${e} ${n})`, u = `EXTRACT(DAY FROM ${e} ${n})`, c = `EXTRACT(HOUR FROM ${e} ${n})`, l = `EXTRACT(MINUTE FROM ${e} ${n})`, d = `EXTRACT(SECOND FROM ${e} ${n})`;
1774
+ const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = wa({ runsOnClientQueryEngine: a, outTimeZone: r }), s = `EXTRACT(YEAR FROM ${e} ${n})`, o = `EXTRACT(MONTH FROM ${e} ${n})`, u = `EXTRACT(DAY FROM ${e} ${n})`, c = `EXTRACT(HOUR FROM ${e} ${n})`, l = `EXTRACT(MINUTE FROM ${e} ${n})`, d = `EXTRACT(SECOND FROM ${e} ${n})`;
1775
1775
  let f = [];
1776
1776
  switch (i) {
1777
1777
  case R.Second:
@@ -1922,10 +1922,10 @@ function cs(t) {
1922
1922
  ]);
1923
1923
  }
1924
1924
  }
1925
- function Pa(t) {
1925
+ function La(t) {
1926
1926
  const { chartConfig: e, uniqueQuery: i, chartLimits: a } = t;
1927
1927
  if (a?.behaviorAfterLimit === lt.RenderUpToTheLimit) {
1928
- const r = Na(e, a);
1928
+ const r = Ba(e, a);
1929
1929
  if (r !== void 0) {
1930
1930
  const n = k(e.series);
1931
1931
  if (n === F.PieFromFields || n === F.BarAndLineFromFields) {
@@ -1954,26 +1954,26 @@ function mi(t) {
1954
1954
  seriesConfig: d,
1955
1955
  queryObject: a
1956
1956
  });
1957
- let g = /* @__PURE__ */ new Map(), h = !1, x = !1, v = !1, b = !1, B = !1, N = {};
1957
+ let g = /* @__PURE__ */ new Map(), S = !1, b = !1, v = !1, x = !1, B = !1, N = {};
1958
1958
  if (f !== void 0) {
1959
1959
  N = He(f);
1960
1960
  const $ = te(f.where);
1961
1961
  let M = "";
1962
1962
  switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ie(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
1963
1963
  case F.BarAndLineSplitBy: {
1964
- g = ns(c), b = !0, h = !0, x = !0;
1964
+ g = ns(c), x = !0, S = !0, b = !0;
1965
1965
  break;
1966
1966
  }
1967
1967
  case F.BarAndLineMultiFields:
1968
- us(N, c), x = !0;
1968
+ us(N, c), b = !0;
1969
1969
  break;
1970
1970
  case F.PieFromFields:
1971
1971
  case F.BarAndLineFromFields:
1972
- M = "", v = !0, x = !0;
1972
+ M = "", v = !0, b = !0;
1973
1973
  break;
1974
1974
  case F.BarAndLineMonoField:
1975
1975
  case F.PieFromCategory:
1976
- x = !0;
1976
+ b = !0;
1977
1977
  break;
1978
1978
  case F.BoxPlotMonoField:
1979
1979
  case F.BoxPlotMultiFields:
@@ -1984,23 +1984,23 @@ function mi(t) {
1984
1984
  case F.BoxPlotMonoFieldAndSplitBy:
1985
1985
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
1986
1986
  case F.BoxPlotMultiFieldsAndSplitBy: {
1987
- B = !0, b = !0, v = !0;
1987
+ B = !0, x = !0, v = !0;
1988
1988
  break;
1989
1989
  }
1990
1990
  case F.PieNoAggregation:
1991
1991
  case F.BarAndLineNoAggregation:
1992
1992
  case F.BarAndLineSplitByNoAggregation:
1993
1993
  }
1994
- if (x && os({
1994
+ if (b && os({
1995
1995
  uniqueQuery: N,
1996
1996
  y,
1997
- useGenericOutStatFieldName: h,
1997
+ useGenericOutStatFieldName: S,
1998
1998
  queryObject: a,
1999
1999
  chartSubType: l,
2000
2000
  isTimeBinningSeries: p,
2001
2001
  returnFeaturesExtent: o,
2002
2002
  splitByField: $
2003
- }), b && ss({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = ls({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
2003
+ }), x && ss({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = ls({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
2004
2004
  const G = q.split(" ");
2005
2005
  return !oe(G[0]);
2006
2006
  })), p && be(c[0])) {
@@ -2017,9 +2017,9 @@ function mi(t) {
2017
2017
  }
2018
2018
  N.where = M;
2019
2019
  }
2020
- Pa({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2021
- const { gdbVersion: T, geometry: w, distance: P, units: A, timeExtent: I, where: L, objectIds: O, spatialRelationship: V } = i;
2022
- return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), P !== void 0 && (N.distance = P), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), L !== void 0 && (N.where = Y([N.where, L])), { uniqueQuery: N, mapToStatField: g };
2020
+ La({ chartConfig: e, uniqueQuery: N, chartLimits: u });
2021
+ const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
2022
+ return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: g };
2023
2023
  }
2024
2024
  const le = {
2025
2025
  Default: "defaultError",
@@ -2076,48 +2076,49 @@ function fs(t) {
2076
2076
  return e;
2077
2077
  }
2078
2078
  async function ms(t) {
2079
- const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: r, abortSignal: n, view: s } = t, o = i.series[0], { x: u, dataTransformationType: c, binCount: l } = o, d = z(a);
2080
- if (!ie(d))
2079
+ const { queryConfig: e, chartConfig: i, queryObject: a, abortKey: r, abortSignal: n, filterByViewExtent: s, view: o } = t, u = i.series[0], { x: c, dataTransformationType: l, binCount: d } = u, f = z(a);
2080
+ if (!ie(f))
2081
2081
  throw new re(le.LayerNotSupported);
2082
- d.loaded || await d.load({ signal: n });
2083
- const f = await ct(d, n);
2084
- if (!f)
2082
+ f.loaded || await f.load({ signal: n });
2083
+ const m = await ct(f, n);
2084
+ if (!m)
2085
2085
  throw new Error("Raster info is not available for the layer.");
2086
- const m = dt(e.geometry) ?? d.fullExtent, y = f.bandCount === 1 ? 0 : f.bandInfos.findIndex((h) => h.name === u);
2087
- let p, g;
2088
- if (s === void 0 && (c === void 0 || c === Z.None) && l && Array.isArray(f.histograms) && f.histograms.length > y && f.histograms[y].size % l === 0 && Array.isArray(f.statistics) && f?.statistics?.length > y)
2089
- p = f.histograms[y], g = f.statistics[y];
2086
+ const y = dt(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
2087
+ let g, S;
2088
+ if (s !== !0 && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > p && m.histograms[p].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > p)
2089
+ g = m.histograms[p], S = m.statistics[p];
2090
2090
  else {
2091
- let h, x, v;
2092
- if (s)
2093
- h = s.resolution, x = s.resolution, v = s.spatialReference;
2091
+ let b, v, x;
2092
+ if (o)
2093
+ b = o.resolution, v = o.resolution, x = o.spatialReference;
2094
2094
  else {
2095
- const T = ds, w = 2, P = f.width, A = f.height, I = Math.max(
2095
+ const w = ds, L = 2, A = m.width, I = m.height, P = Math.max(
2096
2096
  0,
2097
- Math.ceil(Math.log(Math.max(P, A) / T) / Math.log(w))
2098
- ), L = w ** I;
2099
- h = f.pixelSize.x * L, x = f.pixelSize.y * L, v = d.spatialReference;
2097
+ Math.ceil(Math.log(Math.max(A, I) / w) / Math.log(L))
2098
+ ), O = L ** P;
2099
+ b = m.pixelSize.x * O, v = m.pixelSize.y * O, x = f.spatialReference;
2100
2100
  }
2101
- const b = new ua({
2102
- x: h,
2103
- y: x,
2104
- spatialReference: v
2105
- }), B = fs(c), N = await Gr(
2106
- d,
2101
+ const B = new la({
2102
+ x: b,
2103
+ y: v,
2104
+ spatialReference: x
2105
+ }), N = fs(l), T = await Wr(
2106
+ f,
2107
2107
  {
2108
- bandIds: [y],
2109
- geometry: m,
2110
- histogramSize: l ?? void 0,
2111
- pixelSize: b,
2112
- transformType: B
2108
+ bandIds: [p],
2109
+ geometry: y,
2110
+ histogramSize: d ?? void 0,
2111
+ pixelSize: B,
2112
+ transformType: N,
2113
+ downsampleOnly: !0
2113
2114
  },
2114
2115
  {
2115
2116
  signal: n ?? (r !== void 0 ? Ge.get(r)?.signal : void 0)
2116
2117
  }
2117
2118
  );
2118
- g = N.statistics[0], p = N.histograms[0];
2119
+ S = T.statistics[0], g = T.histograms[0];
2119
2120
  }
2120
- return { histogram: p, statistics: g };
2121
+ return { histogram: g, statistics: S };
2121
2122
  }
2122
2123
  function ys(t, e) {
2123
2124
  const i = [], a = (t.max - t.min) / t.size;
@@ -2292,15 +2293,15 @@ async function Cs(t) {
2292
2293
  let m;
2293
2294
  const y = z(e), p = ge(y);
2294
2295
  if (p) {
2295
- const h = { where: Y([u, p.definitionExpression]) }, x = { query: h, signal: o }, v = dt(c)?.extent?.toJSON();
2296
+ const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = dt(c)?.extent?.toJSON();
2296
2297
  if (v !== void 0) {
2297
- const B = xs(d), { xmin: N, ymin: T, xmax: w, ymax: P } = v;
2298
- h.geometryType = "esriGeometryEnvelope", h.geometry = `${N},${T},${w},${P}`, l !== void 0 && (h.distance = l.toString()), B !== void 0 && (h.units = B, c?.spatialReference?.wkid != null && (h.inSR = c.spatialReference.wkid.toString()));
2298
+ const B = xs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
2299
+ S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
2299
2300
  }
2300
- f && (h.time = `${f[0]},${f[1]}`);
2301
- const b = `${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
2301
+ f && (S.time = `${f[0]},${f[1]}`);
2302
+ const x = `${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
2302
2303
  try {
2303
- m = (await wt(b, x)).data?.features?.[0]?.attributes;
2304
+ m = (await wt(x, b)).data?.features?.[0]?.attributes;
2304
2305
  } catch (B) {
2305
2306
  const N = s ?? (await ft(
2306
2307
  ze(document.documentElement).t9nLocale,
@@ -2312,7 +2313,7 @@ async function Cs(t) {
2312
2313
  }
2313
2314
  return m;
2314
2315
  }
2315
- function Ma(t, e) {
2316
+ function Pa(t, e) {
2316
2317
  return {
2317
2318
  lowerBoundaryAlias: `charts_lower_boundary_${t}`,
2318
2319
  upperBoundaryAlias: `charts_upper_boundary_${t}`,
@@ -2324,7 +2325,7 @@ async function vs(t) {
2324
2325
  let u;
2325
2326
  const c = z(i), l = mn(c);
2326
2327
  if (l && i && "queryAttributeBins" in i) {
2327
- const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: p, firstDayOfWeek: g, includeLeapDay: h } = e, x = So({
2328
+ const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: p, firstDayOfWeek: g, includeLeapDay: S } = e, b = So({
2328
2329
  queryObject: i,
2329
2330
  queryConfig: a,
2330
2331
  x: d,
@@ -2333,12 +2334,12 @@ async function vs(t) {
2333
2334
  yTemporalBinning: y,
2334
2335
  configTimeZone: p,
2335
2336
  firstDayOfWeek: g,
2336
- includeLeapDay: h,
2337
+ includeLeapDay: S,
2337
2338
  view: r,
2338
2339
  syncViewTimeZone: n
2339
2340
  });
2340
2341
  try {
2341
- u = await i.queryAttributeBins(x, { signal: o });
2342
+ u = await i.queryAttributeBins(b, { signal: o });
2342
2343
  } catch (v) {
2343
2344
  throw new re(le.QueryFeaturesError, s.errors.queryError, v);
2344
2345
  }
@@ -2443,7 +2444,7 @@ async function bt(t) {
2443
2444
  }
2444
2445
  return o;
2445
2446
  }
2446
- async function Da(t) {
2447
+ async function Ma(t) {
2447
2448
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, abortKey: r, errorStrings: n, abortSignal: s } = t;
2448
2449
  let o = [];
2449
2450
  const u = z(e), c = s || (r !== void 0 ? Ge.get(r)?.signal : void 0), l = bo(u), d = pi({
@@ -2484,17 +2485,17 @@ async function As(t) {
2484
2485
  ...r,
2485
2486
  start: u,
2486
2487
  num: Math.min(a, i - u)
2487
- }, e.push(Da({ ...l, abortSignal: n })), u += a, o += 1;
2488
+ }, e.push(Ma({ ...l, abortSignal: n })), u += a, o += 1;
2488
2489
  }
2489
2490
  return s = (await Promise.all(e)).flat(), s;
2490
2491
  }
2491
2492
  async function Fe(t) {
2492
2493
  const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, featureCount: r, noBatch: n, errorStrings: s, abortKey: o, abortSignal: u } = t;
2493
2494
  let c = [];
2494
- const l = z(e), d = r ?? 1, f = Ha(l);
2495
+ const l = z(e), d = r ?? 1, f = ja(l);
2495
2496
  if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
2496
2497
  let m = 0, y = 0;
2497
- const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), h = [];
2498
+ const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), S = [];
2498
2499
  for (; y < g; ) {
2499
2500
  m = y * W.maxParallelRequests * f;
2500
2501
  const v = As({
@@ -2507,10 +2508,10 @@ async function Fe(t) {
2507
2508
  abortKey: o,
2508
2509
  abortSignal: u
2509
2510
  });
2510
- h.push(v), y += 1;
2511
+ S.push(v), y += 1;
2511
2512
  }
2512
- c = (await Promise.all(h)).flat();
2513
- } else (Number.isNaN(d) || d >= 0) && (c = await Da({
2513
+ c = (await Promise.all(S)).flat();
2514
+ } else (Number.isNaN(d) || d >= 0) && (c = await Ma({
2514
2515
  queryObject: e,
2515
2516
  queryConfig: i,
2516
2517
  returnUniqueIdsOnly: a,
@@ -2538,7 +2539,7 @@ function ws(t) {
2538
2539
  e !== void 0 && e.abort(), Ge.set(t, new AbortController());
2539
2540
  }
2540
2541
  }
2541
- function Oa(t) {
2542
+ function Da(t) {
2542
2543
  return {
2543
2544
  lowerBoundaryAlias: `charts_lower_boundary_${t}`,
2544
2545
  upperBoundaryAlias: `charts_upper_boundary_${t}`
@@ -2639,23 +2640,23 @@ async function Os(t) {
2639
2640
  typeKey: y,
2640
2641
  typeValue: p,
2641
2642
  fieldValue: g,
2642
- slopePropertyList: h,
2643
- interceptPropertyList: x,
2643
+ slopePropertyList: S,
2644
+ interceptPropertyList: b,
2644
2645
  r2PropertyList: v
2645
- } = bs, b = `[{"${y}": "${p}", "${g}":"${u},${c}"}]`, B = await Cs({
2646
+ } = bs, x = `[{"${y}": "${p}", "${g}":"${u},${c}"}]`, B = await Cs({
2646
2647
  queryObject: i,
2647
2648
  queryConfig: r,
2648
2649
  outputFormat: m,
2649
2650
  dataFormat: f,
2650
- outAnalytics: b,
2651
+ outAnalytics: x,
2651
2652
  errorStrings: n,
2652
2653
  abortSignal: s
2653
2654
  });
2654
2655
  if (B !== void 0) {
2655
2656
  let N = Number.NaN, T = Number.NaN;
2656
- const { expr: w } = zt(B, h), { expr: P } = zt(B, x), { expr: A } = zt(B, v);
2657
- w !== void 0 && Number.isFinite(B[w]) && (N = B[w]), P !== void 0 && Number.isFinite(B[P]) && (T = B[P]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
2658
- const { dataContextXMinField: I, dataContextXMaxField: L, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(L) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
2657
+ const { expr: w } = zt(B, S), { expr: L } = zt(B, b), { expr: A } = zt(B, v);
2658
+ w !== void 0 && Number.isFinite(B[w]) && (N = B[w]), L !== void 0 && Number.isFinite(B[L]) && (T = B[L]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
2659
+ const { dataContextXMinField: I, dataContextXMaxField: P, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(P) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
2659
2660
  let H = $ - X, ae = Number.NaN;
2660
2661
  for (; !(ae >= q && ae <= G) && H <= M; )
2661
2662
  H += X, ae = N * H + T;
@@ -2669,17 +2670,17 @@ async function Os(t) {
2669
2670
  }
2670
2671
  return { r2: l, trendLinePoints: d };
2671
2672
  }
2672
- function Ia(t) {
2673
+ function Oa(t) {
2673
2674
  const { data: e, chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a;
2674
2675
  let { r2: s, trendLinePoints: o } = C.scatterplotSeries;
2675
2676
  const u = Ds({ data: e, x: r, y: n });
2676
2677
  if (u !== void 0) {
2677
- const c = jr(u), l = Hr(c);
2678
- s = c.m === 0 ? 0 : zr(u, l), o = Ms({ x: r, y: n, trendlineXToY: l, data: e });
2678
+ const c = _r(u), l = jr(c);
2679
+ s = c.m === 0 ? 0 : Hr(u, l), o = Ms({ x: r, y: n, trendlineXToY: l, data: e });
2679
2680
  }
2680
2681
  return { r2: s, trendLinePoints: o };
2681
2682
  }
2682
- async function Ea(t) {
2683
+ async function Ia(t) {
2683
2684
  const e = await Ps(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = C.scatterplotSeries, o = [
2684
2685
  { [r]: Number.NaN, [n]: Number.NaN },
2685
2686
  { [r]: Number.NaN, [n]: Number.NaN }
@@ -2691,7 +2692,7 @@ async function Ea(t) {
2691
2692
  } catch {
2692
2693
  c = !0;
2693
2694
  }
2694
- return (!e || c) && (u = Ia(t)), u;
2695
+ return (!e || c) && (u = Oa(t)), u;
2695
2696
  }
2696
2697
  const Is = 50, Es = 4194304;
2697
2698
  async function qs(t) {
@@ -2741,7 +2742,7 @@ async function Rs(t) {
2741
2742
  sortingField: e.series[0].x,
2742
2743
  orderBy: ye.Ascending
2743
2744
  });
2744
- const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Ea({
2745
+ const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Ia({
2745
2746
  data: c,
2746
2747
  statsMap: l,
2747
2748
  queryConfig: i,
@@ -2768,7 +2769,7 @@ function ks(t) {
2768
2769
  }), c !== Number.MAX_SAFE_INTEGER && l !== Number.MIN_SAFE_INTEGER && d !== Number.MAX_SAFE_INTEGER && f !== Number.MIN_SAFE_INTEGER && (r = {
2769
2770
  xBandId: o,
2770
2771
  yBandId: u,
2771
- pixelRanges: new la({ xmin: c, xmax: l, ymin: d, ymax: f })
2772
+ pixelRanges: new Yr({ xmin: c, xmax: l, ymin: d, ymax: f })
2772
2773
  });
2773
2774
  } else if (o !== void 0 && o === u) {
2774
2775
  let c = Number.MAX_SAFE_INTEGER, l = Number.MIN_SAFE_INTEGER;
@@ -2885,90 +2886,92 @@ function Oi(t, e) {
2885
2886
  } : i = { groupKey: t, display: t, original: t }, i;
2886
2887
  }
2887
2888
  async function js(t) {
2888
- const { layer: e, geometry: i, view: a, abortKey: r, abortSignal: n } = t;
2889
- e.loaded || await e.load({ signal: n });
2890
- const s = await ct(e, n), o = dt(i) ?? e.fullExtent;
2891
- let u = s?.attributeTable;
2892
- if (!(o instanceof la && o.equals(e.fullExtent))) {
2893
- const l = a ? new ua({
2894
- x: a.resolution,
2895
- y: a.resolution,
2896
- spatialReference: a.spatialReference
2889
+ const { layer: e, geometry: i, filterByViewExtent: a, view: r, abortKey: n, abortSignal: s } = t;
2890
+ e.loaded || await e.load({ signal: s });
2891
+ const o = await ct(e, s), u = dt(i) ?? e.fullExtent;
2892
+ let c = o?.attributeTable;
2893
+ if (a) {
2894
+ const l = r ? new la({
2895
+ x: r.resolution,
2896
+ y: r.resolution,
2897
+ spatialReference: r.spatialReference
2897
2898
  }) : void 0;
2898
- u = await Ur(
2899
+ c = await Gr(
2899
2900
  e,
2900
2901
  {
2901
- geometry: o,
2902
- pixelSize: l
2902
+ geometry: u,
2903
+ pixelSize: l,
2904
+ downsampleOnly: !0
2903
2905
  },
2904
2906
  {
2905
- signal: n ?? (r !== void 0 ? Ge.get(r)?.signal : void 0)
2907
+ signal: s ?? (n !== void 0 ? Ge.get(n)?.signal : void 0)
2906
2908
  }
2907
2909
  );
2908
2910
  }
2909
- return u;
2911
+ return c;
2910
2912
  }
2911
2913
  async function Hs(t) {
2912
- const { chartConfig: e, queryConfig: i, queryObject: a, view: r, abortKey: n, abortSignal: s } = t;
2913
- let o;
2914
+ const { chartConfig: e, queryConfig: i, queryObject: a, filterByViewExtent: r, view: n, abortKey: s, abortSignal: o } = t;
2915
+ let u;
2914
2916
  if (a === void 0)
2915
2917
  throw new Error("QueryObject is undefined!");
2916
- const u = z(a);
2917
- if (!ie(u))
2918
+ const c = z(a);
2919
+ if (!ie(c))
2918
2920
  throw new re(le.LayerNotSupported);
2919
- const c = await js({
2920
- layer: u,
2921
+ const l = await js({
2922
+ layer: c,
2921
2923
  geometry: i.geometry,
2922
- view: r,
2923
- abortKey: n,
2924
- abortSignal: s
2925
- }), l = c?.features;
2926
- if (!c || !l)
2927
- o = {
2924
+ filterByViewExtent: r,
2925
+ view: n,
2926
+ abortKey: s,
2927
+ abortSignal: o
2928
+ }), d = l?.features;
2929
+ if (!l || !d)
2930
+ u = {
2928
2931
  valid: !1,
2929
2932
  invalidType: j.BadData
2930
2933
  };
2931
2934
  else {
2932
- const d = e.series;
2933
- if (!d || d.length === 0 || l.length === 0)
2934
- o = {
2935
+ const f = e.series;
2936
+ if (!f || f.length === 0 || d.length === 0)
2937
+ u = {
2935
2938
  valid: !0
2936
2939
  };
2937
2940
  else {
2938
- const f = i.groupByFieldsForStatistics?.[0] ?? "", m = d.some((g) => g.query?.fetchNullValues), y = /* @__PURE__ */ new Map();
2939
- for (const g of l) {
2940
- const { groupKey: h } = Oi(g.attributes[f], m);
2941
- h === C.nullValue && !m || (y.has(h) || y.set(h, []), y.get(h).push(g.attributes));
2941
+ const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), p = /* @__PURE__ */ new Map();
2942
+ for (const S of d) {
2943
+ const { groupKey: b } = Oi(S.attributes[m], y);
2944
+ b === C.nullValue && !y || (p.has(b) || p.set(b, []), p.get(b).push(S.attributes));
2942
2945
  }
2943
- const p = [];
2944
- y.forEach((g) => {
2945
- const h = {}, x = g[0][f], { display: v, original: b } = Oi(x, m);
2946
- h[f] = v, h[C.xAxisField] = v, h[C.originalCategoryValue] = b, d.forEach((B) => {
2947
- const N = B.query?.outStatistics?.[0];
2948
- if (!N) {
2949
- const { name: L } = B;
2950
- h[L] = g[0][L];
2946
+ const g = [];
2947
+ p.forEach((S) => {
2948
+ const b = {}, v = S[0][m], { display: x, original: B } = Oi(v, y);
2949
+ b[m] = x, b[C.xAxisField] = x, b[C.originalCategoryValue] = B, f.forEach((N) => {
2950
+ const T = N.query?.outStatistics?.[0];
2951
+ if (!T) {
2952
+ const { name: O } = N;
2953
+ b[O] = S[0][O];
2951
2954
  return;
2952
2955
  }
2953
- let T = g;
2954
- const w = B.query?.where;
2955
- w && (T = g.filter((L) => Qs(L, w)));
2956
- const P = N.statisticType, A = N.onStatisticField, I = N.outStatisticFieldName;
2957
- h[I] = _s({
2958
- features: T,
2959
- aggregationType: P,
2960
- onField: A
2956
+ let w = S;
2957
+ const L = N.query?.where;
2958
+ L && (w = S.filter((O) => Qs(O, L)));
2959
+ const A = T.statisticType, I = T.onStatisticField, P = T.outStatisticFieldName;
2960
+ b[P] = _s({
2961
+ features: w,
2962
+ aggregationType: A,
2963
+ onField: I
2961
2964
  });
2962
- }), p.push(h);
2963
- }), o = {
2965
+ }), g.push(b);
2966
+ }), u = {
2964
2967
  valid: !0,
2965
2968
  data: {
2966
- dataItems: p
2969
+ dataItems: g
2967
2970
  }
2968
2971
  };
2969
2972
  }
2970
2973
  }
2971
- return o;
2974
+ return u;
2972
2975
  }
2973
2976
  async function gd(t) {
2974
2977
  const { layer: e, category: i, splitByField: a } = t, s = (await ct(e))?.attributeTable?.features, o = a !== void 0;
@@ -3023,21 +3026,21 @@ function Gs(t) {
3023
3026
  }
3024
3027
  return r;
3025
3028
  }
3026
- const qa = "PixelID", Us = "Pixel ID", Ys = [
3027
- S.BarSeries,
3028
- S.HistogramSeries,
3029
- S.ScatterSeries
3029
+ const Ea = "PixelID", Us = "Pixel ID", Ys = [
3030
+ h.BarSeries,
3031
+ h.HistogramSeries,
3032
+ h.ScatterSeries
3030
3033
  ];
3031
3034
  async function pd(t) {
3032
3035
  let e = !1;
3033
3036
  const { config: i, layer: a, abortSignal: r } = t;
3034
- if (Dr(Ys, i))
3037
+ if (Mr(Ys, i))
3035
3038
  switch (_(i?.series)) {
3036
- case S.BarSeries:
3039
+ case h.BarSeries:
3037
3040
  a.loaded || await a.load({ signal: r }), e = !!(await ct(a, r))?.attributeTable;
3038
3041
  break;
3039
- case S.HistogramSeries:
3040
- case S.ScatterSeries:
3042
+ case h.HistogramSeries:
3043
+ case h.ScatterSeries:
3041
3044
  e = !0;
3042
3045
  break;
3043
3046
  }
@@ -3046,7 +3049,7 @@ async function pd(t) {
3046
3049
  async function Zs(t) {
3047
3050
  const { layer: e, chartConfig: i } = t;
3048
3051
  let a;
3049
- return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await $a(i.iLayer) : i?.iLayer?.layerType === "ArcGISTiledImageServiceLayer" && (a = await ka(i.iLayer)), a;
3052
+ return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await Ra(i.iLayer) : i?.iLayer?.layerType === "ArcGISTiledImageServiceLayer" && (a = await $a(i.iLayer)), a;
3050
3053
  }
3051
3054
  function Xs(t) {
3052
3055
  let e;
@@ -3063,13 +3066,13 @@ function Xs(t) {
3063
3066
  }
3064
3067
  return e;
3065
3068
  }
3066
- function Va(t) {
3069
+ function qa(t) {
3067
3070
  if (!t.loaded)
3068
3071
  throw new Error("Raster layer must be loaded to get its ID field name");
3069
3072
  const i = Rt(t)?.attributeTable?.fields.find((a) => a.type === "oid");
3070
- return i ? i.name : qa;
3073
+ return i ? i.name : Ea;
3071
3074
  }
3072
- function Ra(t) {
3075
+ function Va(t) {
3073
3076
  const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
3074
3077
  if (!e.loaded)
3075
3078
  throw new Error("Raster layer must be loaded to get its fields info");
@@ -3092,7 +3095,7 @@ function Ra(t) {
3092
3095
  )?.label;
3093
3096
  return d && d !== l.name && (l.alias = d), l;
3094
3097
  }), n = [{
3095
- name: qa,
3098
+ name: Ea,
3096
3099
  alias: Us,
3097
3100
  type: U.OID
3098
3101
  }, ...o];
@@ -3103,14 +3106,14 @@ function Ra(t) {
3103
3106
  return n;
3104
3107
  }
3105
3108
  async function ct(t, e) {
3106
- return t.loaded || await t.load({ signal: e }), Qr(t) ? Rt(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
3109
+ return t.loaded || await t.load({ signal: e }), kr(t) ? Rt(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
3107
3110
  }
3108
3111
  async function hd(t, e) {
3109
3112
  t.loaded || await t.load();
3110
3113
  const i = await ct(t);
3111
- return Ra({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
3114
+ return Va({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
3112
3115
  }
3113
- const $a = It(
3116
+ const Ra = It(
3114
3117
  async (t, e) => {
3115
3118
  const i = {}, a = t.layerDefinition;
3116
3119
  i.definitionExpression = a?.definitionExpression, i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && t.layerDefinition?.id !== void 0 && (i.portalItem = { id: t.itemId });
@@ -3119,7 +3122,7 @@ const $a = It(
3119
3122
  },
3120
3123
  (t) => JSON.stringify(t, Object.keys(t).sort())
3121
3124
  // stringify with sorted keys
3122
- ), ka = It(
3125
+ ), $a = It(
3123
3126
  async (t, e) => {
3124
3127
  const i = {};
3125
3128
  i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
@@ -3153,21 +3156,21 @@ const $a = It(
3153
3156
  const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = _(e.series);
3154
3157
  let n;
3155
3158
  switch (r) {
3156
- case S.BarSeries:
3159
+ case h.BarSeries:
3157
3160
  n = Gs({
3158
3161
  chartConfig: e,
3159
3162
  layer: i,
3160
3163
  selectionDataItems: a
3161
3164
  });
3162
3165
  break;
3163
- case S.HistogramSeries:
3166
+ case h.HistogramSeries:
3164
3167
  n = hs({
3165
3168
  chartConfig: e,
3166
3169
  layer: i,
3167
3170
  selectionDataItems: a
3168
3171
  });
3169
3172
  break;
3170
- case S.ScatterSeries:
3173
+ case h.ScatterSeries:
3171
3174
  n = ks({
3172
3175
  chartConfig: e,
3173
3176
  layer: i,
@@ -3192,7 +3195,7 @@ async function Ks(t) {
3192
3195
  autoResample: !0,
3193
3196
  maxPixelCount: r,
3194
3197
  skipFactor: a
3195
- }, d = await Yr(u, l, { signal: o });
3198
+ }, d = await Ur(u, l, { signal: o });
3196
3199
  s = Ji.fromJSON(d.featureSet).features;
3197
3200
  } catch {
3198
3201
  s = [];
@@ -3242,7 +3245,7 @@ const yi = It(
3242
3245
  r = t.layerDefinition;
3243
3246
  const n = {};
3244
3247
  if (a !== void 0) {
3245
- if (n.source = Ji.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => wr.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
3248
+ if (n.source = Ji.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => Ar.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
3246
3249
  const o = Yi.fromJSON({
3247
3250
  geometryType: r.geometryType
3248
3251
  });
@@ -3255,7 +3258,7 @@ const yi = It(
3255
3258
  const o = r.drawingInfo;
3256
3259
  o?.renderer !== void 0 && (n.renderer = Xi.fromJSON(o.renderer));
3257
3260
  }
3258
- const s = new Tr(n);
3261
+ const s = new Nr(n);
3259
3262
  return await s.load({ signal: e }), s;
3260
3263
  },
3261
3264
  (t) => JSON.stringify(t)
@@ -3268,10 +3271,10 @@ async function Fd(t, e) {
3268
3271
  i = await yi(t, e);
3269
3272
  break;
3270
3273
  case "ArcGISImageServiceLayer":
3271
- i = await $a(t, e);
3274
+ i = await Ra(t, e);
3272
3275
  break;
3273
3276
  case "ArcGISTiledImageServiceLayer":
3274
- i = await ka(t, e);
3277
+ i = await $a(t, e);
3275
3278
  break;
3276
3279
  case "WCS":
3277
3280
  i = await Js(t, e);
@@ -3282,7 +3285,7 @@ async function Fd(t, e) {
3282
3285
  return i;
3283
3286
  }
3284
3287
  async function bd(t) {
3285
- const { layer: e, view: i, chartConfig: a, filterByViewExtent: r, abortSignal: n } = t, s = ie(e) || _r(a);
3288
+ const { layer: e, view: i, chartConfig: a, filterByViewExtent: r, abortSignal: n } = t, s = ie(e) || Qr(a);
3286
3289
  let o;
3287
3290
  if (s)
3288
3291
  o = await Zs(t);
@@ -3297,7 +3300,7 @@ function Ce(t, e) {
3297
3300
  let a = [];
3298
3301
  if (i !== void 0) {
3299
3302
  const r = e === !0 && i?.popupTemplate?.fieldInfos !== void 0;
3300
- ie(i) ? a = Ra({ layer: i, popupTemplateFieldInfosEnabled: e }) : a = i.fields.map((n) => {
3303
+ ie(i) ? a = Va({ layer: i, popupTemplateFieldInfosEnabled: e }) : a = i.fields.map((n) => {
3301
3304
  const s = n.toJSON();
3302
3305
  if (r) {
3303
3306
  const o = i.popupTemplate?.fieldInfos?.find(
@@ -3316,7 +3319,7 @@ function xd(t, e = []) {
3316
3319
  function $t(t) {
3317
3320
  let e, i = !1;
3318
3321
  if (ie(t))
3319
- e = [Va(t)];
3322
+ e = [qa(t)];
3320
3323
  else {
3321
3324
  const a = ge(t);
3322
3325
  a && ("uniqueIdFields" in a && a.uniqueIdFields && a.uniqueIdFields.length > 0 ? e = a.uniqueIdFields : (e = [a.objectIdField], i = !0));
@@ -3326,7 +3329,7 @@ function $t(t) {
3326
3329
  function ve(t) {
3327
3330
  let e = "", i = !1;
3328
3331
  if (ie(t))
3329
- e = Va(t);
3332
+ e = qa(t);
3330
3333
  else if (t) {
3331
3334
  const a = $t(t);
3332
3335
  i = a.isTraditionalTypeOID, a.idFields && (e = a.idFields[0]);
@@ -3370,7 +3373,7 @@ function ai(t, e) {
3370
3373
  let i;
3371
3374
  if (e) {
3372
3375
  const r = z(t).getFieldDomain(e);
3373
- r instanceof Ar && (i = r);
3376
+ r instanceof Tr && (i = r);
3374
3377
  }
3375
3378
  return i;
3376
3379
  }
@@ -3382,11 +3385,11 @@ function Ii(t) {
3382
3385
  const { queryObject: e, fieldName: i, fieldValue: a } = t;
3383
3386
  return ie(e) ? void 0 : ri(a, ai(e, i));
3384
3387
  }
3385
- async function Qa(t) {
3388
+ async function ka(t) {
3386
3389
  let e = [];
3387
- return t && !ge(t)?.isTable && t.fieldsIndex && (e = await Lr.getRendererFields(t.renderer, t.fieldsIndex)), e;
3390
+ return t && !ge(t)?.isTable && t.fieldsIndex && (e = await wr.getRendererFields(t.renderer, t.fieldsIndex)), e;
3388
3391
  }
3389
- function _a(t) {
3392
+ function Qa(t) {
3390
3393
  const e = "/rest/services";
3391
3394
  let i = t.toLowerCase();
3392
3395
  const a = i.indexOf(e);
@@ -3396,7 +3399,7 @@ async function ro(t, e) {
3396
3399
  let i = !0;
3397
3400
  const a = ".arcgis.com/", r = t?.url, n = r?.includes(a);
3398
3401
  if (r && n && ge(t)?.sourceJSON?.serviceItemId !== void 0) {
3399
- const s = _a(r);
3402
+ const s = Qa(r);
3400
3403
  try {
3401
3404
  const o = (await wt(s, { query: { f: "json" }, signal: e })).data;
3402
3405
  if (o.owningTenant !== void 0 && o.owningSystemUrl !== void 0) {
@@ -3404,7 +3407,7 @@ async function ro(t, e) {
3404
3407
  authMode: "auto",
3405
3408
  query: { f: "json" },
3406
3409
  signal: e
3407
- })).data, l = new Pr({ sourceJSON: c });
3410
+ })).data, l = new Lr({ sourceJSON: c });
3408
3411
  await l.load({ signal: e }), i = l?.sourceJSON?.subscriptionInfo?.dataStoreLevel === void 0;
3409
3412
  }
3410
3413
  } catch {
@@ -3427,7 +3430,7 @@ function oo(t) {
3427
3430
  (n) => no({ queryObject: i, fieldToMatch: n, returnUndefinedIfNotFound: a })
3428
3431
  )), r;
3429
3432
  }
3430
- function ja(t) {
3433
+ function _a(t) {
3431
3434
  const { queryObject: e, chartConfig: i, runtimeDataFilters: a, ignoreViewExtent: r, view: n } = t, { series: s, dataFilters: o } = i, {
3432
3435
  where: u,
3433
3436
  gdbVersion: c,
@@ -3439,15 +3442,15 @@ function ja(t) {
3439
3442
  spatialRelationship: p
3440
3443
  } = o ?? {}, {
3441
3444
  where: g,
3442
- gdbVersion: h,
3443
- timeExtent: x,
3445
+ gdbVersion: S,
3446
+ timeExtent: b,
3444
3447
  geometry: v,
3445
- distance: b,
3448
+ distance: x,
3446
3449
  units: B,
3447
3450
  objectIds: N,
3448
3451
  spatialRelationship: T
3449
- } = a ?? {}, w = s[0], { query: P } = w, { where: A } = P ?? {}, I = k(s), L = { ...P };
3450
- return L.where = Y([u, g]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (L.where = Y([L.where, A])), i.orderOptions?.orderByFields !== void 0 && (L.orderByFields = i.orderOptions.orderByFields), L.gdbVersion = h ?? c, L.timeExtent = mo(n?.timeExtent, x ?? l), L.geometry = ie(e) ? eo({
3452
+ } = a ?? {}, w = s[0], { query: L } = w, { where: A } = L ?? {}, I = k(s), P = { ...L };
3453
+ return P.where = Y([u, g]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = S ?? c, P.timeExtent = mo(n?.timeExtent, b ?? l), P.geometry = ie(e) ? eo({
3451
3454
  queryObject: e,
3452
3455
  defaultGeometry: v ?? d,
3453
3456
  ignoreViewExtent: r,
@@ -3456,11 +3459,11 @@ function ja(t) {
3456
3459
  queryObject: e,
3457
3460
  defaultGeometry: v ?? d,
3458
3461
  ignoreViewExtent: r
3459
- }), L.distance = b ?? f, L.units = B ?? m, L.objectIds = N ?? y, L.spatialRelationship = T ?? p, P?.outStatistics?.[0]?.statisticType === D.Count && (L.returnDistinctValues = P?.returnDistinctValues ?? !1), L?.outStatistics?.forEach((O) => {
3462
+ }), P.distance = x ?? f, P.units = B ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? p, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
3460
3463
  fi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
3461
3464
  value: W.defaultStatParameterValue
3462
3465
  });
3463
- }), L;
3466
+ }), P;
3464
3467
  }
3465
3468
  async function Td(t) {
3466
3469
  let e = [];
@@ -3472,7 +3475,7 @@ async function lo(t, e) {
3472
3475
  const r = t.series;
3473
3476
  let n = e;
3474
3477
  if (t.iLayer?.layerType === "ArcGISFeatureLayer" && (n = await yi(t.iLayer)), n !== void 0) {
3475
- const s = r[0].x ?? "", o = r.map((f) => "y" in f ? f.y : "").flat(), u = te(t.series[0].query?.where), c = Or(t), l = t?.series.map((f) => {
3478
+ const s = r[0].x ?? "", o = r.map((f) => "y" in f ? f.y : "").flat(), u = te(t.series[0].query?.where), c = Dr(t), l = t?.series.map((f) => {
3476
3479
  const m = f.query?.outStatistics?.map((y) => y.onStatisticField) ?? [];
3477
3480
  return m?.length > 0 ? m : "";
3478
3481
  }).flat();
@@ -3511,7 +3514,7 @@ function Ad(t) {
3511
3514
  return a;
3512
3515
  }
3513
3516
  const wd = {
3514
- getServerRestInfo: _a
3517
+ getServerRestInfo: Qa
3515
3518
  };
3516
3519
  async function kt(t, e) {
3517
3520
  await t.load({ signal: e }), (na(t) || sa(t)) && await t.generateRasterInfo(t.rasterFunction, {
@@ -3522,7 +3525,7 @@ function fo(t) {
3522
3525
  const e = !t.geometry || t.geometry.type === "extent", i = (t.where ?? "").toUpperCase(), a = !i.includes("CURRENT_TIMESTAMP") && !i.includes("CURRENT_DATE") && !i.includes("CURRENT_TIME");
3523
3526
  return e && a;
3524
3527
  }
3525
- function Ha(t) {
3528
+ function ja(t) {
3526
3529
  let e = W.maxRecords;
3527
3530
  if (t && "sourceJSON" in t && t.sourceJSON?.maxRecordCount) {
3528
3531
  const { sourceJSON: i } = t;
@@ -3563,29 +3566,29 @@ function dt(t) {
3563
3566
  let e;
3564
3567
  return t !== void 0 && (e = Yi.fromJSON(t)), e;
3565
3568
  }
3566
- function za(t) {
3569
+ function Ha(t) {
3567
3570
  return t === void 0 ? ["*"] : Array.from(new Set(t));
3568
3571
  }
3569
3572
  function Qt(t) {
3570
3573
  const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {}, p = z(i);
3571
- let h = ge(p)?.createQuery() ?? new Br(), x;
3574
+ let S = ge(p)?.createQuery() ?? new vr(), b;
3572
3575
  const v = $t(p).idFields;
3573
- if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (x = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (h = new vr(h.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
3576
+ if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (b = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (S = new Cr(S.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
3574
3577
  const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = o && r && "timeZone" in r ? r.timeZone : void 0;
3575
- let P = n ?? w ?? T;
3576
- P === "unknown" ? P = "Etc/UTC" : P === "system" && (P = T), h.outTimeZone = P;
3578
+ let L = n ?? w ?? T;
3579
+ L === "unknown" ? L = "Etc/UTC" : L === "system" && (L = T), S.outTimeZone = L;
3577
3580
  }
3578
- if (h.where = Y([h.where, u, x]), "returnDistinctValues" in h && (h.returnDistinctValues = y ?? !1), c !== void 0) {
3581
+ if (S.where = Y([S.where, u, b]), "returnDistinctValues" in S && (S.returnDistinctValues = y ?? !1), c !== void 0) {
3579
3582
  const B = gn(p);
3580
- h.outStatistics = c.filter(
3583
+ S.outStatistics = c.filter(
3581
3584
  (N) => N.statisticType !== D.EnvelopeAggregate || B
3582
- ).map((N) => Nr.fromJSON(N));
3585
+ ).map((N) => Br.fromJSON(N));
3583
3586
  }
3584
- const b = dt(l);
3585
- return b !== void 0 && (h.geometry = b, a?.spatialRelationship && (h.spatialRelationship = a.spatialRelationship), fa(p) && (d !== void 0 && (h.distance = d), f !== void 0 && (h.units = f))), m && (h.timeExtent = new Zi({
3587
+ const x = dt(l);
3588
+ return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), da(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Zi({
3586
3589
  start: m?.[0],
3587
3590
  end: m?.[1]
3588
- })), fo(h) && (h.cacheHint = !0), h;
3591
+ })), fo(S) && (S.cacheHint = !0), S;
3589
3592
  }
3590
3593
  function go(t) {
3591
3594
  let e;
@@ -3600,7 +3603,7 @@ function go(t) {
3600
3603
  return e;
3601
3604
  }
3602
3605
  function po(t) {
3603
- const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: p } = a, g = z(e), h = Qt({
3606
+ const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: p } = a, g = z(e), S = Qt({
3604
3607
  queryType: "AttributeBinsQuery",
3605
3608
  queryObject: e,
3606
3609
  queryConfig: i,
@@ -3609,23 +3612,23 @@ function po(t) {
3609
3612
  view: o,
3610
3613
  dateField: r,
3611
3614
  useViewTimeZone: u ?? !1
3612
- }), x = Oa(r);
3613
- if (h.lowerBoundaryAlias = x.lowerBoundaryAlias, h.upperBoundaryAlias = x.upperBoundaryAlias, h.binParameters = {
3615
+ }), b = Da(r);
3616
+ if (S.lowerBoundaryAlias = b.lowerBoundaryAlias, S.upperBoundaryAlias = b.upperBoundaryAlias, S.binParameters = {
3614
3617
  type: "date",
3615
3618
  field: r,
3616
3619
  interval: { unit: c, value: l },
3617
3620
  start: f,
3618
3621
  end: m,
3619
3622
  offset: y ? { unit: y.unit, value: y.size } : null
3620
- }, h.binParameters.type === "date" && (g?.capabilities?.queryAttributeBins?.supportsSnapToData && (h.binParameters.snapToData = go(d)), g?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (h.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
3621
- const b = ge(g)?.fields.find((B) => B.name === n)?.type;
3622
- (!b || b === "string" || b === "integer" || b === "small-integer" || b === "big-integer" || b === "double") && (h.binParameters.stackBy = {
3623
+ }, S.binParameters.type === "date" && (g?.capabilities?.queryAttributeBins?.supportsSnapToData && (S.binParameters.snapToData = go(d)), g?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (S.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
3624
+ const x = ge(g)?.fields.find((B) => B.name === n)?.type;
3625
+ (!x || x === "string" || x === "integer" || x === "small-integer" || x === "big-integer" || x === "double") && (S.binParameters.stackBy = {
3623
3626
  type: "field",
3624
3627
  value: n,
3625
- valueType: b === "string" ? "string" : "integer"
3628
+ valueType: x === "string" ? "string" : "integer"
3626
3629
  });
3627
3630
  }
3628
- return h;
3631
+ return S;
3629
3632
  }
3630
3633
  function gi(t) {
3631
3634
  const {
@@ -3666,7 +3669,7 @@ function gi(t) {
3666
3669
  break;
3667
3670
  }
3668
3671
  if (l) {
3669
- const m = o ? ` ${La({
3672
+ const m = o ? ` ${wa({
3670
3673
  dataTimeZone: n,
3671
3674
  runsOnClientQueryEngine: s,
3672
3675
  outTimeZone: r
@@ -3740,8 +3743,8 @@ function So(t) {
3740
3743
  xOrYFieldType: m,
3741
3744
  addIntervalStatement: !1,
3742
3745
  includeLeapDay: u
3743
- }), { field: h, expression: x, start: v, end: b } = g;
3744
- h ? p.binParameters.field = h : x && (p.binParameters.expression = x, p.binParameters.expressionValueType = "integer", p.binParameters.type === "fixed-interval" && (v !== void 0 && (p.binParameters.start = v), b !== void 0 && (p.binParameters.end = b)));
3746
+ }), { field: S, expression: b, start: v, end: x } = g;
3747
+ S ? p.binParameters.field = S : b && (p.binParameters.expression = b, p.binParameters.expressionValueType = "integer", p.binParameters.type === "fixed-interval" && (v !== void 0 && (p.binParameters.start = v), x !== void 0 && (p.binParameters.end = x)));
3745
3748
  const B = Ei({
3746
3749
  temporalBinning: s,
3747
3750
  xOrY: r,
@@ -3762,7 +3765,7 @@ function Fo(t) {
3762
3765
  queryObject: e,
3763
3766
  queryConfig: i,
3764
3767
  useViewTimeZone: !1
3765
- }), l = Ma(s, o);
3768
+ }), l = Pa(s, o);
3766
3769
  return c.lowerBoundaryAlias = l.lowerBoundaryAlias, c.upperBoundaryAlias = l.upperBoundaryAlias, c.binParameters = {
3767
3770
  type: "fixed-interval",
3768
3771
  field: s,
@@ -3786,18 +3789,18 @@ function pi(t) {
3786
3789
  });
3787
3790
  l.returnGeometry = !1;
3788
3791
  const d = z(e);
3789
- return l.outFields = za(c), l.groupByFieldsForStatistics = r ?? l.groupByFieldsForStatistics, l.orderByFields = n ?? [], l.objectIds = i?.objectIds, a !== void 0 && (l.maxRecordCountFactor = a), s !== void 0 && s !== "" && (l.gdbVersion = s), u !== void 0 && (l.num = u), o !== void 0 && (l.start = o, l.num = l.num ?? Ha(d)), l;
3792
+ return l.outFields = Ha(c), l.groupByFieldsForStatistics = r ?? l.groupByFieldsForStatistics, l.orderByFields = n ?? [], l.objectIds = i?.objectIds, a !== void 0 && (l.maxRecordCountFactor = a), s !== void 0 && s !== "" && (l.gdbVersion = s), u !== void 0 && (l.num = u), o !== void 0 && (l.start = o, l.num = l.num ?? ja(d)), l;
3790
3793
  }
3791
3794
  function bo(t) {
3792
3795
  return t && "sourceJSON" in t && t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor === !0 ? W.maxRecordCountFactor : void 0;
3793
3796
  }
3794
3797
  const Pd = {
3795
- sanitizeOutFields: za
3798
+ sanitizeOutFields: Ha
3796
3799
  };
3797
3800
  function xo(t = Z.None, e) {
3798
3801
  return t === Z.None || t === Z.Log && e > 0 || t === Z.Sqrt && e >= 0;
3799
3802
  }
3800
- function Wa(t, e) {
3803
+ function za(t, e) {
3801
3804
  const i = { valid: !1 };
3802
3805
  return e === !0 ? i.invalidType = j.HistogramEmptyField : t === Z.Log ? i.invalidType = j.NegativeValueInLogCalculation : t === Z.Sqrt && (i.invalidType = j.NegativeValueInSqrtCalculation), i;
3803
3806
  }
@@ -3824,7 +3827,7 @@ function vo(t) {
3824
3827
  }
3825
3828
  return e;
3826
3829
  }
3827
- function Ga(t) {
3830
+ function Wa(t) {
3828
3831
  let e = "field";
3829
3832
  switch (t) {
3830
3833
  case Z.Log:
@@ -3868,8 +3871,8 @@ async function Bo(t) {
3868
3871
  errorStrings: r,
3869
3872
  abortKey: n,
3870
3873
  abortSignal: s
3871
- }), h = g.get(d) ?? Number.NaN, x = g.get(f) ?? Number.NaN, v = g.get(m) ?? Number.NaN, b = g.get(y) ?? Number.NaN;
3872
- return { countExcludingNulls: x, countIncludingNulls: h, min: v, max: b };
3874
+ }), S = g.get(d) ?? Number.NaN, b = g.get(f) ?? Number.NaN, v = g.get(m) ?? Number.NaN, x = g.get(y) ?? Number.NaN;
3875
+ return { countExcludingNulls: b, countIncludingNulls: S, min: v, max: x };
3873
3876
  }
3874
3877
  async function No(t) {
3875
3878
  const { queryConfig: e, chartConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: u, dataTransformationType: c } = o;
@@ -3881,8 +3884,8 @@ async function No(t) {
3881
3884
  errorStrings: r,
3882
3885
  abortKey: n,
3883
3886
  abortSignal: s
3884
- }), p = xo(c, m), g = f < 2 || m === y, h = { ...e };
3885
- return h.where = Y([h.where, `${u} is not null`]), {
3887
+ }), p = xo(c, m), g = f < 2 || m === y, S = { ...e };
3888
+ return S.where = Y([S.where, `${u} is not null`]), {
3886
3889
  rawData: l,
3887
3890
  dataCompatibleWithTransformation: p,
3888
3891
  dataCountIncompatible: g,
@@ -3907,7 +3910,7 @@ function Ao(t) {
3907
3910
  };
3908
3911
  return u !== Z.None && (c = {
3909
3912
  ...c,
3910
- normalizationType: Ga(u)
3913
+ normalizationType: Wa(u)
3911
3914
  }), c;
3912
3915
  }
3913
3916
  function wo(t) {
@@ -3927,7 +3930,7 @@ function wo(t) {
3927
3930
  field: c,
3928
3931
  minValue: n,
3929
3932
  maxValue: s,
3930
- numBins: l ?? qr,
3933
+ numBins: l ?? Er,
3931
3934
  classificationMethod: "equal-interval",
3932
3935
  // excluding the filters like 1=tionMethod: "equal-interval",1 from the sqlWhere. It's causing query failures (see https://devtopia.esri.com/WebGIS/arcgis-charts/issues/6677)
3933
3936
  sqlWhere: Ie(o.where) ? void 0 : o.where,
@@ -3936,7 +3939,7 @@ function wo(t) {
3936
3939
  };
3937
3940
  return d !== Z.None && (f = {
3938
3941
  ...f,
3939
- normalizationType: Ga(d)
3942
+ normalizationType: Wa(d)
3940
3943
  }), f;
3941
3944
  }
3942
3945
  function Lo(t, e) {
@@ -3963,36 +3966,36 @@ async function Po(t) {
3963
3966
  queryConfig: i,
3964
3967
  abortSignal: u
3965
3968
  });
3966
- let h;
3967
- if (p !== void 0 && (h = new Ti({
3969
+ let S;
3970
+ if (p !== void 0 && (S = new Ti({
3968
3971
  geometry: p.extent
3969
- }), p.extent !== void 0 && fa(f))) {
3972
+ }), p.extent !== void 0 && da(f))) {
3970
3973
  const { distance: A, units: I } = i;
3971
- A !== void 0 && (h.distance = A), I !== void 0 && (h.units = I);
3974
+ A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
3972
3975
  }
3973
3976
  if (i.timeExtent) {
3974
3977
  const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
3975
- h === void 0 ? h = new Ti({ timeExtent: A }) : h.timeExtent = A;
3978
+ S === void 0 ? S = new Ti({ timeExtent: A }) : S.timeExtent = A;
3976
3979
  }
3977
- g.filter = h;
3978
- let x;
3980
+ g.filter = S;
3981
+ let b;
3979
3982
  g.outStatisticTypes = { exclude: ["median"] };
3980
3983
  try {
3981
- x = await Ai(g);
3984
+ b = await Ai(g);
3982
3985
  } catch (A) {
3983
3986
  throw new re(le.QueryFeaturesError, o.errors.queryError, A);
3984
3987
  }
3985
3988
  g.outStatisticTypes = { include: ["median"] };
3986
3989
  try {
3987
3990
  const A = await Ai(g);
3988
- A?.median && (x.median = A.median);
3991
+ A?.median && (b.median = A.median);
3989
3992
  } catch {
3990
3993
  }
3991
- x = To(x);
3992
- const { avg: v, count: b, stddev: B, min: N, max: T, sum: w, median: P } = x;
3993
- if (b === 0)
3994
+ b = To(b);
3995
+ const { avg: v, count: x, stddev: B, min: N, max: T, sum: w, median: L } = b;
3996
+ if (x === 0)
3994
3997
  d = {
3995
- ...Wa(l)
3998
+ ...za(l)
3996
3999
  };
3997
4000
  else {
3998
4001
  const A = wo({
@@ -4006,29 +4009,29 @@ async function Po(t) {
4006
4009
  queryConfig: i,
4007
4010
  abortSignal: u
4008
4011
  });
4009
- A.filter = h;
4012
+ A.filter = S;
4010
4013
  let I;
4011
4014
  try {
4012
- I = await Cr(A);
4015
+ I = await xr(A);
4013
4016
  } catch (O) {
4014
4017
  throw new re(le.QueryFeaturesError, o.errors.queryError, O);
4015
4018
  }
4016
- const L = Lo(n, r);
4019
+ const P = Lo(n, r);
4017
4020
  d.data = {
4018
4021
  mean: v,
4019
4022
  stddev: B,
4020
4023
  min: N,
4021
4024
  max: T,
4022
- median: Number(P),
4025
+ median: Number(L),
4023
4026
  bins: I?.bins,
4024
4027
  count: r,
4025
- nulls: L,
4028
+ nulls: P,
4026
4029
  sum: w ?? void 0
4027
4030
  }, d.data.bins.length > 0 && (d.data.bins[d.data.bins.length - 1].isLastBin = !0);
4028
4031
  }
4029
4032
  return d;
4030
4033
  }
4031
- async function Ua(t) {
4034
+ async function Ga(t) {
4032
4035
  const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: r, abortSignal: n, errorStrings: s, view: o } = t, { series: u } = e, c = u[0];
4033
4036
  let l;
4034
4037
  if (ie(a))
@@ -4048,7 +4051,7 @@ async function Ua(t) {
4048
4051
  abortKey: r,
4049
4052
  abortSignal: n
4050
4053
  });
4051
- l = { valid: !0 }, !f || m ? l = Wa(c.dataTransformationType, m) : l = await Po({
4054
+ l = { valid: !0 }, !f || m ? l = za(c.dataTransformationType, m) : l = await Po({
4052
4055
  chartConfig: e,
4053
4056
  queryObject: a,
4054
4057
  queryConfig: i,
@@ -4088,7 +4091,7 @@ const qi = {
4088
4091
  groupByCaseEnd: "ELSE 'OUT' END"
4089
4092
  };
4090
4093
  function Md(t) {
4091
- return _(t.series) !== S.BoxPlotSeries ? C.xAxisField : t.series[0].x;
4094
+ return _(t.series) !== h.BoxPlotSeries ? C.xAxisField : t.series[0].x;
4092
4095
  }
4093
4096
  function Dd(t) {
4094
4097
  const e = ui(t);
@@ -4128,7 +4131,7 @@ const Io = [
4128
4131
  "it-IT"
4129
4132
  ];
4130
4133
  function Id(t) {
4131
- const { t9nLocale: e } = ze(t ?? document.documentElement), i = Ya(t ?? document.documentElement), a = kr(t ?? document.documentElement) === "rtl";
4134
+ const { t9nLocale: e } = ze(t ?? document.documentElement), i = Ua(t ?? document.documentElement), a = $r(t ?? document.documentElement) === "rtl";
4132
4135
  return { locale: e, formatLocale: i, rtl: a };
4133
4136
  }
4134
4137
  function Ed(t) {
@@ -4161,30 +4164,30 @@ function Eo(t) {
4161
4164
  const e = Array.from(ra);
4162
4165
  return Io.includes(t) && !e.includes(t);
4163
4166
  }
4164
- function Ya(t) {
4167
+ function Ua(t) {
4165
4168
  const { lang: e, t9nLocale: i } = ze(t);
4166
4169
  return Eo(e) ? e : i;
4167
4170
  }
4168
4171
  function Dt(t) {
4169
4172
  const { dataInfo: e, chartType: i, subError: a } = t;
4170
4173
  switch (e.valid = !1, i) {
4171
- case S.BarSeries:
4172
- case S.ComboLineAndBarSeries:
4174
+ case h.BarSeries:
4175
+ case h.ComboLineAndBarSeries:
4173
4176
  e.invalidType = j.BarElementExceedsLimit;
4174
4177
  break;
4175
- case S.LineSeries:
4178
+ case h.LineSeries:
4176
4179
  e.invalidType = j.LineChartExceedsLimit;
4177
4180
  break;
4178
- case S.PieSeries:
4181
+ case h.PieSeries:
4179
4182
  e.invalidType = j.PieChartExceedsLimit;
4180
4183
  break;
4181
- case S.GaugeSeries:
4184
+ case h.GaugeSeries:
4182
4185
  e.invalidType = j.GaugeExceedsLimit;
4183
4186
  break;
4184
- case S.BoxPlotSeries:
4187
+ case h.BoxPlotSeries:
4185
4188
  a?.outlierLimit === !0 ? e.invalidType = j.BoxPlotOutliersExceedsLimit : e.invalidType = j.BoxPlotExceedsLimit;
4186
4189
  break;
4187
- case S.HeatSeries:
4190
+ case h.HeatSeries:
4188
4191
  e.invalidType = j.HeatChartExceedsLimit;
4189
4192
  break;
4190
4193
  }
@@ -4200,7 +4203,7 @@ function $d(t) {
4200
4203
  seriesCount: r,
4201
4204
  queryObject: n,
4202
4205
  filterBySelection: s,
4203
- formatLocale: o = Ya(document.documentElement),
4206
+ formatLocale: o = Ua(document.documentElement),
4204
4207
  isTemporalChart: u,
4205
4208
  isGaugeChartByFeature: c,
4206
4209
  errorStrings: l
@@ -4211,16 +4214,16 @@ function $d(t) {
4211
4214
  switch (e) {
4212
4215
  case j.BarElementExceedsLimit: {
4213
4216
  g = l.modalHeaders.tooManyFeatures;
4214
- let x = Number.NaN, v = Number.NaN, b = "";
4215
- r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBarCountCannotExceedLimit, x = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (b = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
4216
- const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4217
- d = Be(b, {
4217
+ let b = Number.NaN, v = Number.NaN, x = "";
4218
+ r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (x = l.errors.uniqueSeriesBarCountCannotExceedLimit, b = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (x = l.errors.twoSeriesBarCountCannotExceedLimit, b = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (x = l.errors.threePlusSeriesBarCountCannotExceedLimit, b = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (x = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
4219
+ const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4220
+ d = Be(x, {
4218
4221
  totalLimit: B,
4219
4222
  seriesLimit: N,
4220
4223
  elementCount: T
4221
4224
  }), f = {
4222
4225
  actualCount: a ?? Number.NaN,
4223
- totalLimit: x,
4226
+ totalLimit: b,
4224
4227
  seriesLimit: v
4225
4228
  };
4226
4229
  break;
@@ -4228,16 +4231,16 @@ function $d(t) {
4228
4231
  case j.LineChartExceedsLimit:
4229
4232
  {
4230
4233
  g = l.modalHeaders.tooManyFeatures;
4231
- let x = Number.NaN, v = Number.NaN, b = "";
4232
- r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (b = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, x = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (b = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, x = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (b = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, x = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (b = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
4233
- const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4234
- d = Be(b, {
4234
+ let b = Number.NaN, v = Number.NaN, x = "";
4235
+ r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (x = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, b = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (x = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, b = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (x = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, b = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (x = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
4236
+ const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4237
+ d = Be(x, {
4235
4238
  elementCount: T,
4236
4239
  seriesLimit: N,
4237
4240
  totalLimit: B
4238
4241
  }), f = {
4239
4242
  actualCount: a ?? Number.NaN,
4240
- totalLimit: x,
4243
+ totalLimit: b,
4241
4244
  seriesLimit: v
4242
4245
  };
4243
4246
  }
@@ -4245,16 +4248,16 @@ function $d(t) {
4245
4248
  case j.BoxPlotExceedsLimit:
4246
4249
  {
4247
4250
  g = l.modalHeaders.tooManyFeatures;
4248
- let x = Number.NaN, v = Number.NaN, b = "";
4249
- r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBoxCountCannotExceedLimit, x = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBoxCountCannotExceedLimit, x = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusBoxLineCountCannotExceedLimit, x = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (b = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
4250
- const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4251
- d = Be(b, {
4251
+ let b = Number.NaN, v = Number.NaN, x = "";
4252
+ r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (x = l.errors.uniqueSeriesBoxCountCannotExceedLimit, b = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (x = l.errors.twoSeriesBoxCountCannotExceedLimit, b = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (x = l.errors.threePlusBoxLineCountCannotExceedLimit, b = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (x = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
4253
+ const B = m.format(b), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
4254
+ d = Be(x, {
4252
4255
  elementCount: T,
4253
4256
  seriesLimit: N,
4254
4257
  totalLimit: B
4255
4258
  }), f = {
4256
4259
  actualCount: a ?? Number.NaN,
4257
- totalLimit: x,
4260
+ totalLimit: b,
4258
4261
  seriesLimit: v
4259
4262
  };
4260
4263
  }
@@ -4262,19 +4265,19 @@ function $d(t) {
4262
4265
  case j.BoxPlotOutliersExceedsLimit:
4263
4266
  {
4264
4267
  g = l.modalHeaders.tooManyFeatures;
4265
- const x = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, b = m.format(v);
4266
- d = Be(x, {
4267
- totalLimit: b
4268
+ const b = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, x = m.format(v);
4269
+ d = Be(b, {
4270
+ totalLimit: x
4268
4271
  }), f = { actualCount: a ?? Number.NaN, totalLimit: v };
4269
4272
  }
4270
4273
  break;
4271
4274
  case j.HeatChartExceedsLimit:
4272
4275
  {
4273
4276
  g = l.modalHeaders.tooManyFeatures;
4274
- const x = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4275
- d = Be(x, {
4277
+ const b = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
4278
+ d = Be(b, {
4276
4279
  featureCount: B,
4277
- totalLimit: b
4280
+ totalLimit: x
4278
4281
  }), f = {
4279
4282
  actualCount: a ?? Number.NaN,
4280
4283
  totalLimit: v
@@ -4284,10 +4287,10 @@ function $d(t) {
4284
4287
  case j.PieChartExceedsLimit:
4285
4288
  {
4286
4289
  g = l.modalHeaders.tooManyFeatures;
4287
- const x = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4288
- d = Be(x, {
4290
+ const b = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
4291
+ d = Be(b, {
4289
4292
  sliceCount: B,
4290
- totalLimit: b
4293
+ totalLimit: x
4291
4294
  }), f = {
4292
4295
  actualCount: a ?? Number.NaN,
4293
4296
  totalLimit: v
@@ -4297,10 +4300,10 @@ function $d(t) {
4297
4300
  case j.GaugeExceedsLimit:
4298
4301
  {
4299
4302
  g = l.modalHeaders.tooManyFeatures;
4300
- const x = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
4301
- d = Be(x, {
4303
+ const b = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, x = m.format(v), B = a !== void 0 ? m.format(a) : "";
4304
+ d = Be(b, {
4302
4305
  featureCount: B,
4303
- totalLimit: b
4306
+ totalLimit: x
4304
4307
  }), f = {
4305
4308
  actualCount: a ?? Number.NaN,
4306
4309
  totalLimit: v
@@ -4334,9 +4337,9 @@ function $d(t) {
4334
4337
  case j.BadData:
4335
4338
  }
4336
4339
  if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > p) {
4337
- const x = a / r;
4340
+ const b = a / r;
4338
4341
  d = Be(l.errors.categoryCountCannotExceedLimit, {
4339
- categoryCount: m.format(x),
4342
+ categoryCount: m.format(b),
4340
4343
  maxCategoryCount: m.format(p)
4341
4344
  });
4342
4345
  }
@@ -4384,20 +4387,20 @@ function hi(t) {
4384
4387
  showOutliers: !1,
4385
4388
  standardizeValues: !0
4386
4389
  };
4387
- let h = K(u);
4388
- if (o[h] = ni({ mean: d, stdDev: f, value: g }), m === E.Min || m === E.Max) {
4390
+ let S = K(u);
4391
+ if (o[S] = ni({ mean: d, stdDev: f, value: g }), m === E.Min || m === E.Max) {
4389
4392
  u = {
4390
4393
  ...u,
4391
4394
  key: m,
4392
4395
  showOutliers: !0,
4393
4396
  standardizeValues: !0
4394
- }, h = K(u), u = {
4397
+ }, S = K(u), u = {
4395
4398
  ...u,
4396
4399
  standardizeValues: !1,
4397
4400
  splitByValue: r
4398
4401
  };
4399
- const x = K(u);
4400
- g = Number(e[x]), Number.isFinite(g) && (o[h] = ni({
4402
+ const b = K(u);
4403
+ g = Number(e[b]), Number.isFinite(g) && (o[S] = ni({
4401
4404
  mean: d,
4402
4405
  stdDev: f,
4403
4406
  value: g
@@ -4542,21 +4545,21 @@ function Vi(t) {
4542
4545
  let d;
4543
4546
  return u === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : u === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [c, l, d].filter((m) => m !== void 0).join(" AND ");
4544
4547
  }
4545
- function Za(t) {
4548
+ function Ya(t) {
4546
4549
  const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = Vt();
4547
4550
  let d = [], f = [], m = 1;
4548
4551
  return e.forEach((y, p) => {
4549
- const { outlierMinThreshold: g, outlierMaxThreshold: h } = jo(y, o);
4550
- if (typeof g == "number" && typeof h == "number") {
4551
- const x = {
4552
+ const { outlierMinThreshold: g, outlierMaxThreshold: S } = jo(y, o);
4553
+ if (typeof g == "number" && typeof S == "number") {
4554
+ const b = {
4552
4555
  yField: i,
4553
4556
  outlierMinThreshold: g,
4554
- outlierMaxThreshold: h
4557
+ outlierMaxThreshold: S
4555
4558
  };
4556
- (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (x.xField = a, x.xValue = di({
4559
+ (r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = di({
4557
4560
  value: y[a],
4558
4561
  dataContext: y
4559
- })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (x.splitByField = n, x.splitByValue = y[n]), d.push(Vi({ ...x, target: "outliers" })), f.push(Vi({ ...x, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4562
+ })), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(Vi({ ...b, target: "outliers" })), f.push(Vi({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
4560
4563
  }
4561
4564
  m += 1;
4562
4565
  }), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
@@ -4593,9 +4596,9 @@ function Ho(t) {
4593
4596
  async function zo(t) {
4594
4597
  const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, p = ue(e), g = [];
4595
4598
  for (let v = 0; v < p.length; v += 1) {
4596
- const b = p[v], { outliersFilterBatches: B } = Za({
4599
+ const x = p[v], { outliersFilterBatches: B } = Ya({
4597
4600
  data: i,
4598
- yField: b,
4601
+ yField: x,
4599
4602
  x: d,
4600
4603
  chartSubType: c,
4601
4604
  splitByField: f
@@ -4604,8 +4607,8 @@ async function zo(t) {
4604
4607
  const T = B[N];
4605
4608
  if (T !== "") {
4606
4609
  const w = [];
4607
- d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(b), f !== "" && w.push(f), w.push(y);
4608
- const P = {
4610
+ d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(x), f !== "" && w.push(f), w.push(y);
4611
+ const L = {
4609
4612
  ...a,
4610
4613
  where: Y([a.where, T]),
4611
4614
  groupByFieldsForStatistics: void 0,
@@ -4617,7 +4620,7 @@ async function zo(t) {
4617
4620
  g.push(
4618
4621
  Fe({
4619
4622
  queryObject: r,
4620
- queryConfig: P,
4623
+ queryConfig: L,
4621
4624
  featureCount: 1,
4622
4625
  // TODO: pre-count to trigger batching
4623
4626
  errorStrings: s,
@@ -4628,10 +4631,10 @@ async function zo(t) {
4628
4631
  }
4629
4632
  }
4630
4633
  }
4631
- const h = await Promise.all(g), x = /* @__PURE__ */ new Map();
4632
- for (let v = 0; v < h.length; v += 1) {
4633
- const b = h[v], B = p[v];
4634
- b.forEach((N) => {
4634
+ const S = await Promise.all(g), b = /* @__PURE__ */ new Map();
4635
+ for (let v = 0; v < S.length; v += 1) {
4636
+ const x = S[v], B = p[v];
4637
+ x.forEach((N) => {
4635
4638
  const T = { ...N.attributes };
4636
4639
  if (T[B] !== void 0) {
4637
4640
  d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = B);
@@ -4655,13 +4658,13 @@ async function zo(t) {
4655
4658
  };
4656
4659
  break;
4657
4660
  }
4658
- const P = K(w), A = T[B];
4659
- T[P] = A;
4660
- const I = `${T[d]}-${T[f]}-${A}`, L = x.get(I);
4661
+ const L = K(w), A = T[B];
4662
+ T[L] = A;
4663
+ const I = `${T[d]}-${T[f]}-${A}`, P = b.get(I);
4661
4664
  if (T[W.uniqueIdsName] = [
4662
- ...L?.[W.uniqueIdsName] ?? [],
4665
+ ...P?.[W.uniqueIdsName] ?? [],
4663
4666
  T[y]
4664
- ], delete T[y], fr(c)) {
4667
+ ], delete T[y], dr(c)) {
4665
4668
  const O = K({
4666
4669
  ...w,
4667
4670
  standardizeValues: !0
@@ -4680,11 +4683,11 @@ async function zo(t) {
4680
4683
  stdDev: $
4681
4684
  }));
4682
4685
  }
4683
- delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, x.set(I, T);
4686
+ delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, b.set(I, T);
4684
4687
  }
4685
4688
  });
4686
4689
  }
4687
- return Array.from(x.values());
4690
+ return Array.from(b.values());
4688
4691
  }
4689
4692
  async function Wo(t) {
4690
4693
  const {
@@ -4699,29 +4702,29 @@ async function Wo(t) {
4699
4702
  abortSignal: c
4700
4703
  } = t;
4701
4704
  let l = [];
4702
- const { series: d, showMean: f } = n, m = Ci({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, h = te(p.query?.where), x = [];
4703
- for (let b = 0; b < m.length; b += 1) {
4704
- const B = m[b], { dataWithoutOutliersFilterBatches: N } = Za({
4705
+ const { series: d, showMean: f } = n, m = Ci({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
4706
+ for (let x = 0; x < m.length; x += 1) {
4707
+ const B = m[x], { dataWithoutOutliersFilterBatches: N } = Ya({
4705
4708
  data: e,
4706
4709
  yField: B,
4707
4710
  x: g,
4708
4711
  chartSubType: y,
4709
- splitByField: h
4712
+ splitByField: S
4710
4713
  });
4711
4714
  for (let T = 0; T < N.length; T += 1) {
4712
- const w = N[T], P = {
4715
+ const w = N[T], L = {
4713
4716
  ...a,
4714
4717
  where: Y([a.where, w])
4715
4718
  };
4716
- P.outStatistics !== void 0 && (P.outStatistics = P.outStatistics?.filter(
4719
+ L.outStatistics !== void 0 && (L.outStatistics = L.outStatistics?.filter(
4717
4720
  (A) => (A.statisticType === D.Minimum || A.statisticType === D.Maximum) && A.onStatisticField === B
4718
4721
  ).map((A) => ({
4719
4722
  ...A,
4720
4723
  outStatisticFieldName: `${A.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
4721
- }))), x.push(
4724
+ }))), b.push(
4722
4725
  _t({
4723
4726
  queryObject: i,
4724
- uniqueQuery: P,
4727
+ uniqueQuery: L,
4725
4728
  chartConfig: n,
4726
4729
  elementCount: r,
4727
4730
  isTimeBinningSeries: !1,
@@ -4734,12 +4737,12 @@ async function Wo(t) {
4734
4737
  );
4735
4738
  }
4736
4739
  }
4737
- const v = await Promise.all(x);
4738
- for (let b = 0; b < v.length; b += 1)
4739
- l.push(...v[b]);
4740
+ const v = await Promise.all(b);
4741
+ for (let x = 0; x < v.length; x += 1)
4742
+ l.push(...v[x]);
4740
4743
  return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = Ft({
4741
4744
  data: l,
4742
- x: h !== void 0 && h !== "" ? h : g
4745
+ x: S !== void 0 && S !== "" ? S : g
4743
4746
  })), l;
4744
4747
  }
4745
4748
  async function Go(t) {
@@ -4790,7 +4793,7 @@ function Uo(t) {
4790
4793
  return c !== void 0 && (u = { ...o, ...c }), u;
4791
4794
  });
4792
4795
  }
4793
- function Xa(t) {
4796
+ function Za(t) {
4794
4797
  const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, { series: n, showMean: s } = e, o = Re(e), u = k(e.series), { x: c } = o, l = Ci({ showMean: s, seriesConfig: n });
4795
4798
  let d = i;
4796
4799
  if (i?.[0] !== void 0) {
@@ -4893,7 +4896,7 @@ async function Yo(t) {
4893
4896
  chartConfig: n
4894
4897
  });
4895
4898
  }
4896
- d = Xa({
4899
+ d = Za({
4897
4900
  chartConfig: n,
4898
4901
  data: d,
4899
4902
  meanAndStdDevPerField: y,
@@ -4917,7 +4920,7 @@ function Ri(t) {
4917
4920
  );
4918
4921
  return r && n.length > 1 && n.sort((s, o) => Zo(s, o, r)), n.map((s) => ({ [i]: s }));
4919
4922
  }
4920
- function Ja(t) {
4923
+ function Xa(t) {
4921
4924
  const { chartConfig: e, chartData: i } = t;
4922
4925
  return {
4923
4926
  xAxisData: Ri({
@@ -4934,7 +4937,7 @@ function Ja(t) {
4934
4937
  }
4935
4938
  function $i(t) {
4936
4939
  const { orderBy: e, axisFormatOptions: i } = t;
4937
- return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === S.CategoryAxisFormat);
4940
+ return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === h.CategoryAxisFormat);
4938
4941
  }
4939
4942
  function ki(t, e, i) {
4940
4943
  let a = 0;
@@ -4969,7 +4972,7 @@ function Xo(t) {
4969
4972
  }
4970
4973
  function Jo(t) {
4971
4974
  const { chartConfig: e, chartData: i } = t;
4972
- i.heatChartAxesData = Ja({
4975
+ i.heatChartAxesData = Xa({
4973
4976
  chartConfig: e,
4974
4977
  chartData: i.dataItems
4975
4978
  });
@@ -4987,8 +4990,8 @@ function Ot(t) {
4987
4990
  else if (c?.[0] !== void 0 && e !== void 0 && e.length > 1) {
4988
4991
  const { orderBy: l } = c[0];
4989
4992
  let { sortingField: d } = c[0];
4990
- const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, p = y || o === S.PieSeries, g = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
4991
- if (f && p && (!m || (o === S.LineSeries || o === S.RadarSeries) && u === S.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
4993
+ const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, p = y || o === h.PieSeries, g = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
4994
+ if (f && p && (!m || (o === h.LineSeries || o === h.RadarSeries) && u === h.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
4992
4995
  In({
4993
4996
  arrayToSort: e,
4994
4997
  orderBy: l,
@@ -4998,12 +5001,12 @@ function Ot(t) {
4998
5001
  preferLabel: m
4999
5002
  });
5000
5003
  else {
5001
- const h = u === S.DateAxisFormat && f;
5004
+ const S = u === h.DateAxisFormat && f;
5002
5005
  pt({
5003
5006
  arrayToSort: e,
5004
5007
  orderBy: l,
5005
5008
  sortingField: d,
5006
- forceAscendingOrder: h,
5009
+ forceAscendingOrder: S,
5007
5010
  isNonAggregated: g,
5008
5011
  sortByCategory: f,
5009
5012
  preferLabel: m,
@@ -5046,20 +5049,20 @@ async function Qd(t) {
5046
5049
  if (r && !ie(i)) {
5047
5050
  const { series: o, chartRenderer: u } = a, c = Ko(u), l = c ? tt.ChartRenderer : tt.LayerRenderer, d = i ? z(i) : void 0, f = c ?? d?.renderer;
5048
5051
  let m;
5049
- d && l === tt.LayerRenderer ? s = await Qa(d) : l === tt.ChartRenderer && (s = Xn(f));
5052
+ d && l === tt.LayerRenderer ? s = await ka(d) : l === tt.ChartRenderer && (s = Xn(f));
5050
5053
  const y = _n(c, d?.renderer), p = Gn({
5051
5054
  chartRenderer: u,
5052
5055
  queryObject: i
5053
- }), g = _(o), h = k(o), x = Re(a), v = te(x.query?.where);
5056
+ }), g = _(o), S = k(o), b = Re(a), v = te(b.query?.where);
5054
5057
  m = /* @__PURE__ */ new Map();
5055
- for (let b = 0; b < (g === S.HistogramSeries && e.length > 0 ? 1 : e.length); b += 1) {
5056
- const B = e[b], N = await Un({
5058
+ for (let x = 0; x < (g === h.HistogramSeries && e.length > 0 ? 1 : e.length); x += 1) {
5059
+ const B = e[x], N = await Un({
5057
5060
  seriesConfig: a.series,
5058
5061
  dataItem: B,
5059
5062
  renderer: f,
5060
5063
  rendererType: y,
5061
5064
  rendererOrigin: l,
5062
- chartSubType: h,
5065
+ chartSubType: S,
5063
5066
  splitByField: v,
5064
5067
  graphicTemplate: p,
5065
5068
  mapAttributesToSymbol: m,
@@ -5071,7 +5074,7 @@ async function Qd(t) {
5071
5074
  return { dataItems: e, colorMatchApplied: n, rendererFieldNames: s };
5072
5075
  }
5073
5076
  async function el(t) {
5074
- const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l = dr(a), d = await Fe({
5077
+ const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l = cr(a), d = await Fe({
5075
5078
  queryObject: e,
5076
5079
  queryConfig: i,
5077
5080
  featureCount: i.num ?? 1,
@@ -5094,9 +5097,9 @@ async function el(t) {
5094
5097
  return f;
5095
5098
  }
5096
5099
  async function tl(t) {
5097
- const { queryObject: e, chartConfig: i, queryConfig: a, chartLimits: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = { valid: !0 }, { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = r ?? {}, d = dr(i);
5100
+ const { queryObject: e, chartConfig: i, queryConfig: a, chartLimits: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = { valid: !0 }, { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = r ?? {}, d = cr(i);
5098
5101
  let f = !0, m;
5099
- if (d && (m = (await lr({
5102
+ if (d && (m = (await or({
5100
5103
  chartConfig: i,
5101
5104
  queryObject: e,
5102
5105
  queryConfig: a,
@@ -5107,7 +5110,7 @@ async function tl(t) {
5107
5110
  })).elementCount, r?.behaviorAfterLimit !== lt.RenderUpToTheLimit && (f = Ae({
5108
5111
  count: m ?? 0,
5109
5112
  seriesCount: i.series.length,
5110
- chartType: S.GaugeSeries,
5113
+ chartType: h.GaugeSeries,
5111
5114
  chartLimits: r
5112
5115
  })), r && (Number.isFinite(l) || Number.isFinite(m)))) {
5113
5116
  const y = Math.min(l ?? Number.NaN, m ?? Number.NaN);
@@ -5115,7 +5118,7 @@ async function tl(t) {
5115
5118
  Number.isFinite(y) && (p = {
5116
5119
  ...r,
5117
5120
  maxGaugeByFeaturesLimit: y
5118
- }), Pa({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5121
+ }), La({ chartConfig: i, chartLimits: p, uniqueQuery: a });
5119
5122
  }
5120
5123
  if (Number.isNaN(f) || f) {
5121
5124
  const y = await el({
@@ -5130,7 +5133,7 @@ async function tl(t) {
5130
5133
  } else
5131
5134
  u.count = m, Dt({
5132
5135
  dataInfo: u,
5133
- chartType: S.GaugeSeries
5136
+ chartType: h.GaugeSeries
5134
5137
  });
5135
5138
  return u;
5136
5139
  }
@@ -5190,15 +5193,15 @@ function il(t) {
5190
5193
  C.technicalFieldSplitByField,
5191
5194
  W.uniqueIdsName,
5192
5195
  Q.valueField,
5193
- ...Vr
5196
+ ...qr
5194
5197
  ], d = (p, g) => {
5195
- const h = g[C.originalCategoryValue];
5196
- h !== void 0 && r && (g[r] = h);
5197
- const x = g[C.originalYCategoryValue];
5198
- x !== void 0 && n && (g[n] = x), r && g[Q.xField] !== void 0 && (g[r] = g[C.originalCategoryValue] !== void 0 ? g[C.originalCategoryValue] : g[Q.xField], delete g[Q.xField]), n && g[Q.yField] !== void 0 && (g[n] = g[C.originalYCategoryValue] !== void 0 ? g[C.originalYCategoryValue] : g[Q.yField], delete g[Q.yField]), s && g[Q.valueField] !== void 0 && (g[s] = g[Q.valueField], delete g[Q.valueField]);
5198
+ const S = g[C.originalCategoryValue];
5199
+ S !== void 0 && r && (g[r] = S);
5200
+ const b = g[C.originalYCategoryValue];
5201
+ b !== void 0 && n && (g[n] = b), r && g[Q.xField] !== void 0 && (g[r] = g[C.originalCategoryValue] !== void 0 ? g[C.originalCategoryValue] : g[Q.xField], delete g[Q.xField]), n && g[Q.yField] !== void 0 && (g[n] = g[C.originalYCategoryValue] !== void 0 ? g[C.originalYCategoryValue] : g[Q.yField], delete g[Q.yField]), s && g[Q.valueField] !== void 0 && (g[s] = g[Q.valueField], delete g[Q.valueField]);
5199
5202
  const v = {};
5200
- return Object.keys(g).forEach((b) => {
5201
- !l.includes(b) && !b.includes(C.rendererSymbolField) && (v[b] = g[b]);
5203
+ return Object.keys(g).forEach((x) => {
5204
+ !l.includes(x) && !x.includes(C.rendererSymbolField) && (v[x] = g[x]);
5202
5205
  }), p.push(v), p;
5203
5206
  }, f = (p, g) => JSON.stringify(p).localeCompare(JSON.stringify(g));
5204
5207
  let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
@@ -5244,7 +5247,7 @@ function rl(t) {
5244
5247
  const { dataContext: e, xAxisField: i, yAxisField: a, options: r } = t;
5245
5248
  let n = "";
5246
5249
  const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = C.scatterplotAggregationFields;
5247
- if (ga({ dataContext: e, chartLimits: r?.chartLimits })) {
5250
+ if (ya({ dataContext: e, chartLimits: r?.chartLimits })) {
5248
5251
  const { [s]: l, [o]: d } = e, f = i !== a ? e[u] : l, m = i !== a ? e[c] : d;
5249
5252
  if (!Number.isNaN(l) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
5250
5253
  const y = [];
@@ -5259,9 +5262,9 @@ function rl(t) {
5259
5262
  }
5260
5263
  function Qi(t) {
5261
5264
  const { fieldsIndex: e, fieldName: i, inputDate: a } = t, r = e.get(i), n = e.getTimeZone(i);
5262
- return Wr(new Date(a), { type: "date" }, { type: r, timeZone: n });
5265
+ return zr(new Date(a), { type: "date" }, { type: r, timeZone: n });
5263
5266
  }
5264
- function Ka(t) {
5267
+ function Ja(t) {
5265
5268
  const { xAxisField: e, dataContext: i, queryObject: a } = t;
5266
5269
  let r = "";
5267
5270
  const n = i[C.originalServerBinningRange] ?? i[C.dateBinningRange];
@@ -5280,7 +5283,7 @@ function Ka(t) {
5280
5283
  }
5281
5284
  return r;
5282
5285
  }
5283
- function er(t, e) {
5286
+ function Ka(t, e) {
5284
5287
  let i = "";
5285
5288
  if (Number.isFinite(t)) {
5286
5289
  const a = 1 / 10 ** C.queryMaxFloatPrecision;
@@ -5288,7 +5291,7 @@ function er(t, e) {
5288
5291
  }
5289
5292
  return i;
5290
5293
  }
5291
- function tr(t) {
5294
+ function er(t) {
5292
5295
  const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: r, xAxisFieldType: n, chartConfig: s } = t;
5293
5296
  let o = "";
5294
5297
  if (e !== void 0 && e !== C.boxPlot.boxPlotCategory) {
@@ -5296,7 +5299,7 @@ function tr(t) {
5296
5299
  value: r[e],
5297
5300
  dataContext: r
5298
5301
  });
5299
- n === U.Double ? o = er(d, e) : (je(s.axes?.[0].valueFormat) && (d = nt(d)), o = Le({
5302
+ n === U.Double ? o = Ka(d, e) : (je(s.axes?.[0].valueFormat) && (d = nt(d)), o = Le({
5300
5303
  where: qe(e, d),
5301
5304
  normalize: !1,
5302
5305
  escape: !0
@@ -5327,13 +5330,13 @@ function nl(t) {
5327
5330
  const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: r, chartConfig: n, queryObject: s } = t;
5328
5331
  let o = "";
5329
5332
  if (C.dateBinningRange in a)
5330
- o = Ka({ xAxisField: e, dataContext: a, queryObject: s });
5333
+ o = Ja({ xAxisField: e, dataContext: a, queryObject: s });
5331
5334
  else if (k(n.series) !== F.BarAndLineFromFields) {
5332
5335
  let l = di({
5333
5336
  value: a[e],
5334
5337
  dataContext: a
5335
5338
  });
5336
- r === U.Double ? o = er(l, e) : (je(n.axes?.[0].valueFormat) && r !== U.TimeOnly && (l = nt(l)), o = Le({
5339
+ r === U.Double ? o = Ka(l, e) : (je(n.axes?.[0].valueFormat) && r !== U.TimeOnly && (l = nt(l)), o = Le({
5337
5340
  where: qe(e, l),
5338
5341
  normalize: !1,
5339
5342
  escape: !0
@@ -5376,10 +5379,10 @@ function ol(t) {
5376
5379
  runsOnClientQueryEngine: o
5377
5380
  } = t, u = r.series[0];
5378
5381
  let c = "";
5379
- if (u.type === S.HeatSeries) {
5382
+ if (u.type === h.HeatSeries) {
5380
5383
  let l, d;
5381
- const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], p = a[C.originalYCategoryValue], g = r.axes?.[0]?.valueFormat?.type, h = r.axes?.[1]?.valueFormat?.type;
5382
- g === S.CategoryAxisFormat ? l = Le({
5384
+ const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], p = a[C.originalYCategoryValue], g = r.axes?.[0]?.valueFormat?.type, S = r.axes?.[1]?.valueFormat?.type;
5385
+ g === h.CategoryAxisFormat ? l = Le({
5383
5386
  where: qe(u.x, m ?? f),
5384
5387
  normalize: !1,
5385
5388
  escape: !0
@@ -5391,7 +5394,7 @@ function ol(t) {
5391
5394
  outTimeZone: n,
5392
5395
  dataTimeZone: s,
5393
5396
  runsOnClientQueryEngine: o
5394
- }), h === S.CategoryAxisFormat ? d = Le({
5397
+ }), S === h.CategoryAxisFormat ? d = Le({
5395
5398
  where: qe(u.y, p ?? y),
5396
5399
  normalize: !1,
5397
5400
  escape: !0
@@ -5411,7 +5414,7 @@ function ll(t) {
5411
5414
  const { xAxisField: e, dataContext: i, chartConfig: a } = t;
5412
5415
  let r = "";
5413
5416
  const n = a.series[0], { minValue: s, maxValue: o } = i;
5414
- if (Number.isFinite(s) && Number.isFinite(o) && n.type === S.HistogramSeries) {
5417
+ if (Number.isFinite(s) && Number.isFinite(o) && n.type === h.HistogramSeries) {
5415
5418
  const u = En(e, n.dataTransformationType), c = i.isLastBin ? "<=" : "<";
5416
5419
  r = Y([
5417
5420
  `${u}>=${s?.toString()}`,
@@ -5424,25 +5427,25 @@ function jd(t) {
5424
5427
  const { chartConfig: e } = t, i = _(e.series);
5425
5428
  let a = "";
5426
5429
  switch (i) {
5427
- case S.ScatterSeries:
5430
+ case h.ScatterSeries:
5428
5431
  a = rl(t);
5429
5432
  break;
5430
- case S.HeatSeries:
5433
+ case h.HeatSeries:
5431
5434
  a = ol(t);
5432
5435
  break;
5433
- case S.RadarSeries:
5434
- case S.BarSeries:
5435
- case S.LineSeries:
5436
- case S.ComboLineAndBarSeries:
5436
+ case h.RadarSeries:
5437
+ case h.BarSeries:
5438
+ case h.LineSeries:
5439
+ case h.ComboLineAndBarSeries:
5437
5440
  a = nl(t);
5438
5441
  break;
5439
- case S.BoxPlotSeries:
5440
- a = tr(t);
5442
+ case h.BoxPlotSeries:
5443
+ a = er(t);
5441
5444
  break;
5442
- case S.HistogramSeries:
5445
+ case h.HistogramSeries:
5443
5446
  a = ll(t);
5444
5447
  break;
5445
- case S.PieSeries:
5448
+ case h.PieSeries:
5446
5449
  a = sl(t);
5447
5450
  break;
5448
5451
  }
@@ -5467,18 +5470,18 @@ async function ul(t) {
5467
5470
  } = t, p = k(a.series);
5468
5471
  let g = { valid: !0, data: { dataItems: [] } };
5469
5472
  if (r !== void 0 && r.length > 0) {
5470
- const h = Re(a), { x } = h, v = "y" in h ? h.y : "", B = Ce(e).find((I) => I.name === x)?.type, N = [], T = r.reduce(
5471
- (I, L) => {
5473
+ const S = Re(a), { x: b } = S, v = "y" in S ? S.y : "", B = Ce(e).find((I) => I.name === b)?.type, N = [], T = r.reduce(
5474
+ (I, P) => {
5472
5475
  const O = [];
5473
- if (W.uniqueIdsName in L)
5474
- N.push(L[W.uniqueIdsName]);
5476
+ if (W.uniqueIdsName in P)
5477
+ N.push(P[W.uniqueIdsName]);
5475
5478
  else {
5476
5479
  switch (p) {
5477
5480
  case F.BoxPlotMonoFieldAndSplitBy:
5478
5481
  case F.BoxPlotMultiFieldsAndSplitBy:
5479
5482
  case F.BoxPlotMonoFieldAndCategoryAndSplitBy: {
5480
- const M = te(h.query?.where ?? ""), q = `_${E.Average}`;
5481
- Object.keys(L).forEach((G) => {
5483
+ const M = te(S.query?.where ?? ""), q = `_${E.Average}`;
5484
+ Object.keys(P).forEach((G) => {
5482
5485
  if (G.includes(q)) {
5483
5486
  const J = G.replace(q, "");
5484
5487
  J.trim() !== "" && O.push(qe(M, J));
@@ -5490,16 +5493,16 @@ async function ul(t) {
5490
5493
  const V = [v].flat();
5491
5494
  let $ = V.length === 1 ? V[0] : "";
5492
5495
  if (p === F.BoxPlotMultiFieldsAndCategory) {
5493
- const M = `_${E.FirstQuartile}`, q = Object.keys(L).find((G) => G.includes(M));
5496
+ const M = `_${E.FirstQuartile}`, q = Object.keys(P).find((G) => G.includes(M));
5494
5497
  q !== void 0 && ($ = q.replace(M, ""));
5495
5498
  }
5496
5499
  O.length === 0 && O.push(""), O.forEach((M) => {
5497
- const q = tr({
5500
+ const q = er({
5498
5501
  chartConfig: a,
5499
- xAxisField: x,
5502
+ xAxisField: b,
5500
5503
  yAxisField: $,
5501
5504
  splitBy: M,
5502
- dataContext: L,
5505
+ dataContext: P,
5503
5506
  xAxisFieldType: B
5504
5507
  });
5505
5508
  I.push(q);
@@ -5513,8 +5516,8 @@ async function ul(t) {
5513
5516
  const I = ve(w).idField;
5514
5517
  T.push(`${I} IN (${N.join(",")})`);
5515
5518
  }
5516
- const P = T.join(" OR "), A = { ...i };
5517
- A.where = Y([A.where, P]), g = await Si({
5519
+ const L = T.join(" OR "), A = { ...i };
5520
+ A.where = Y([A.where, L]), g = await Si({
5518
5521
  queryObject: e,
5519
5522
  chartConfig: a,
5520
5523
  queryConfig: A,
@@ -5552,26 +5555,26 @@ async function cl(t) {
5552
5555
  abortSignal: g
5553
5556
  } = t;
5554
5557
  mt(e);
5555
- const { series: h } = a, x = _(h), v = xe(a);
5556
- let b = { valid: !0 }, B = s?.selectionItems ?? [];
5558
+ const { series: S } = a, b = _(S), v = xe(a);
5559
+ let x = { valid: !0 }, B = s?.selectionItems ?? [];
5557
5560
  n || (B = al({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
5558
5561
  let N = !1;
5559
- switch (x) {
5560
- case S.HeatSeries:
5561
- b.data = { dataItems: B };
5562
+ switch (b) {
5563
+ case h.HeatSeries:
5564
+ x.data = { dataItems: B };
5562
5565
  break;
5563
- case S.PieSeries:
5566
+ case h.PieSeries:
5564
5567
  if (k(a.series) === F.PieFromFields) {
5565
- const { x: T, y: w } = a.series[0], P = He(B);
5566
- P.forEach((A) => {
5568
+ const { x: T, y: w } = a.series[0], L = He(B);
5569
+ L.forEach((A) => {
5567
5570
  T in A && (A[ce] = A[T], delete A[T]), w in A && (A[Ne] = A[w], delete A[w]);
5568
- }), b.data = { dataItems: P };
5571
+ }), x.data = { dataItems: L };
5569
5572
  } else
5570
- b.data = { dataItems: B };
5571
- b.count = B.length, N = !0;
5573
+ x.data = { dataItems: B };
5574
+ x.count = B.length, N = !0;
5572
5575
  break;
5573
- case S.BoxPlotSeries:
5574
- de(a) && (b = await ul({
5576
+ case h.BoxPlotSeries:
5577
+ de(a) && (x = await ul({
5575
5578
  queryObject: e,
5576
5579
  queryConfig: i,
5577
5580
  chartConfig: a,
@@ -5588,30 +5591,30 @@ async function cl(t) {
5588
5591
  abortSignal: g
5589
5592
  }));
5590
5593
  break;
5591
- case S.BarSeries:
5592
- case S.ComboLineAndBarSeries:
5593
- case S.RadarSeries:
5594
- case S.LineSeries:
5594
+ case h.BarSeries:
5595
+ case h.ComboLineAndBarSeries:
5596
+ case h.RadarSeries:
5597
+ case h.LineSeries:
5595
5598
  if (B.length === 0 || !Pe({
5596
5599
  xAxisValueFormatType: v,
5597
5600
  setTimeBinningInfoWhenNotProvided: o,
5598
- seriesConfig: h[0],
5601
+ seriesConfig: S[0],
5599
5602
  queryObject: e
5600
5603
  }))
5601
- b.data = { dataItems: B }, b.count = B.length * h.length, N = !0;
5604
+ x.data = { dataItems: B }, x.count = B.length * S.length, N = !0;
5602
5605
  else {
5603
5606
  const T = { ...i };
5604
5607
  if (r !== void 0 && r.length > 0) {
5605
- const P = r.map(
5606
- (I) => Ka({
5607
- xAxisField: h[0].x,
5608
+ const L = r.map(
5609
+ (I) => Ja({
5610
+ xAxisField: S[0].x,
5608
5611
  dataContext: I,
5609
5612
  queryObject: e
5610
5613
  })
5611
- ), A = Y(P, "OR");
5614
+ ), A = Y(L, "OR");
5612
5615
  T.where = Y([T.where, A]);
5613
5616
  }
5614
- b = await bi({
5617
+ x = await bi({
5615
5618
  queryObject: e,
5616
5619
  queryConfig: T,
5617
5620
  chartConfig: a,
@@ -5625,22 +5628,22 @@ async function cl(t) {
5625
5628
  });
5626
5629
  }
5627
5630
  break;
5628
- case S.HistogramSeries: {
5631
+ case h.HistogramSeries: {
5629
5632
  if (B.length === 0)
5630
- b.data = {
5633
+ x.data = {
5631
5634
  mean: Number.NaN,
5632
5635
  median: Number.NaN,
5633
5636
  stddev: Number.NaN,
5634
5637
  max: Number.NaN,
5635
5638
  min: Number.NaN,
5636
5639
  bins: []
5637
- }, b.count = 0;
5640
+ }, x.count = 0;
5638
5641
  else {
5639
- const { x: T } = h[0], w = B.map((I, L) => {
5640
- const { minValue: O, maxValue: V } = I, $ = L === B.length - 1 ? "<=" : "<";
5642
+ const { x: T } = S[0], w = B.map((I, P) => {
5643
+ const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
5641
5644
  return `${T} >= ${O} AND ${T} ${$} ${V}`;
5642
- }), P = Y(w, "OR"), A = { ...i };
5643
- A.where = Y([A.where, P]), b = await Ua({
5645
+ }), L = Y(w, "OR"), A = { ...i };
5646
+ A.where = Y([A.where, L]), x = await Ga({
5644
5647
  queryObject: e,
5645
5648
  chartConfig: a,
5646
5649
  queryConfig: A,
@@ -5652,24 +5655,24 @@ async function cl(t) {
5652
5655
  }
5653
5656
  break;
5654
5657
  }
5655
- case S.ScatterSeries: {
5658
+ case h.ScatterSeries: {
5656
5659
  if (B.length === 0) {
5657
5660
  const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
5658
- b.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, b.count = 0;
5661
+ x.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, x.count = 0;
5659
5662
  } else {
5660
- const { r2: T, trendLinePoints: w } = Ia({
5663
+ const { r2: T, trendLinePoints: w } = Oa({
5661
5664
  data: B,
5662
5665
  chartConfig: a
5663
5666
  });
5664
- b.data = { dataItems: B, r2: T, trendLinePoints: w }, b.count = B.length;
5667
+ x.data = { dataItems: B, r2: T, trendLinePoints: w }, x.count = B.length;
5665
5668
  }
5666
5669
  break;
5667
5670
  }
5668
5671
  }
5669
- return N && b.data !== void 0 && Ot({
5670
- arrayToSort: "dataItems" in b.data ? b.data.dataItems : b.data,
5672
+ return N && x.data !== void 0 && Ot({
5673
+ arrayToSort: "dataItems" in x.data ? x.data.dataItems : x.data,
5671
5674
  chartConfig: a
5672
- }), b;
5675
+ }), x;
5673
5676
  }
5674
5677
  async function Si(t) {
5675
5678
  const {
@@ -5707,9 +5710,9 @@ async function Si(t) {
5707
5710
  if (!p)
5708
5711
  y = g;
5709
5712
  else {
5710
- const h = { dataItems: [] };
5711
- h.meanLines = g.data.dataItems;
5712
- const x = Do(i), v = (await si({
5713
+ const S = { dataItems: [] };
5714
+ S.meanLines = g.data.dataItems;
5715
+ const b = Do(i), v = (await si({
5713
5716
  queryObject: e,
5714
5717
  queryConfig: a,
5715
5718
  fetchFullBoxPlotData: !0,
@@ -5721,11 +5724,11 @@ async function Si(t) {
5721
5724
  replaceNoValueCategoryWithZero: f,
5722
5725
  view: m,
5723
5726
  errorStrings: r,
5724
- chartConfig: x,
5727
+ chartConfig: b,
5725
5728
  abortKey: n,
5726
5729
  abortSignal: s
5727
5730
  })).data;
5728
- h.dataItems = v.dataItems, h.outliers = v.outliers, y.data = h;
5731
+ S.dataItems = v.dataItems, S.outliers = v.outliers, y.data = S;
5729
5732
  }
5730
5733
  return y;
5731
5734
  }
@@ -5747,18 +5750,19 @@ async function dl(t) {
5747
5750
  errorStrings: y,
5748
5751
  abortKey: p,
5749
5752
  abortSignal: g,
5750
- fieldList: h,
5751
- currentSelectionDataItems: x,
5753
+ fieldList: S,
5754
+ currentSelectionDataItems: b,
5752
5755
  dataForFilterBySelectionChanged: v,
5753
- preFetchedQueryResponse: b
5754
- } = t, { series: B } = i, N = _(B);
5755
- let T = { valid: !0 };
5756
+ filterByViewExtent: x,
5757
+ preFetchedQueryResponse: B
5758
+ } = t, { series: N } = i, T = _(N);
5759
+ let w = { valid: !0 };
5756
5760
  if (r)
5757
- T = await cl({
5761
+ w = await cl({
5758
5762
  queryObject: e,
5759
5763
  queryConfig: a,
5760
5764
  chartConfig: i,
5761
- currentSelectionDataItems: x,
5765
+ currentSelectionDataItems: b,
5762
5766
  dataForFilterBySelectionChanged: v,
5763
5767
  selectionData: n,
5764
5768
  setTimeBinningInfoWhenNotProvided: s,
@@ -5773,9 +5777,9 @@ async function dl(t) {
5773
5777
  abortSignal: g
5774
5778
  });
5775
5779
  else
5776
- switch (N) {
5777
- case S.HeatSeries:
5778
- mt(e), T = await ur({
5780
+ switch (T) {
5781
+ case h.HeatSeries:
5782
+ mt(e), w = await lr({
5779
5783
  chartConfig: i,
5780
5784
  queryConfig: a,
5781
5785
  queryObject: e,
@@ -5789,8 +5793,8 @@ async function dl(t) {
5789
5793
  abortSignal: g
5790
5794
  });
5791
5795
  break;
5792
- case S.BoxPlotSeries:
5793
- de(i) && (T = await Si({
5796
+ case h.BoxPlotSeries:
5797
+ de(i) && (w = await Si({
5794
5798
  queryObject: e,
5795
5799
  // @REV: temporary
5796
5800
  chartConfig: i,
@@ -5807,16 +5811,17 @@ async function dl(t) {
5807
5811
  abortSignal: g
5808
5812
  }));
5809
5813
  break;
5810
- case S.BarSeries:
5811
- case S.ComboLineAndBarSeries:
5812
- case S.PieSeries:
5813
- case S.RadarSeries:
5814
- case S.LineSeries: {
5815
- const w = {
5814
+ case h.BarSeries:
5815
+ case h.ComboLineAndBarSeries:
5816
+ case h.PieSeries:
5817
+ case h.RadarSeries:
5818
+ case h.LineSeries: {
5819
+ const L = {
5816
5820
  queryObject: e,
5817
5821
  // @REV: temporary
5818
5822
  queryConfig: a,
5819
5823
  chartConfig: i,
5824
+ filterByViewExtent: x,
5820
5825
  errorStrings: y,
5821
5826
  setTimeBinningInfoWhenNotProvided: s,
5822
5827
  returnFeaturesExtent: o,
@@ -5827,21 +5832,22 @@ async function dl(t) {
5827
5832
  view: f,
5828
5833
  abortKey: p,
5829
5834
  abortSignal: g,
5830
- fieldList: h,
5831
- preFetchedQueryResponse: b
5835
+ fieldList: S,
5836
+ preFetchedQueryResponse: B
5832
5837
  };
5833
5838
  Pe({
5834
5839
  xAxisValueFormatType: xe(i),
5835
5840
  setTimeBinningInfoWhenNotProvided: s,
5836
- seriesConfig: B[0],
5841
+ seriesConfig: N[0],
5837
5842
  queryObject: e
5838
- }) ? T = await bi(w) : T = await si(w);
5843
+ }) ? w = await bi(L) : w = await si(L);
5839
5844
  break;
5840
5845
  }
5841
- case S.ScatterSeries:
5842
- T.data = await cr({
5846
+ case h.ScatterSeries:
5847
+ w.data = await ur({
5843
5848
  queryObject: e,
5844
5849
  queryConfig: a,
5850
+ filterByViewExtent: x,
5845
5851
  setTimeBinningInfoWhenNotProvided: s,
5846
5852
  returnFeaturesExtent: o,
5847
5853
  chartLimits: u,
@@ -5855,8 +5861,8 @@ async function dl(t) {
5855
5861
  abortSignal: g
5856
5862
  });
5857
5863
  break;
5858
- case S.HistogramSeries:
5859
- T = await Ua({
5864
+ case h.HistogramSeries:
5865
+ w = await Ga({
5860
5866
  queryObject: e,
5861
5867
  queryConfig: a,
5862
5868
  chartConfig: i,
@@ -5866,8 +5872,8 @@ async function dl(t) {
5866
5872
  errorStrings: y
5867
5873
  });
5868
5874
  break;
5869
- case S.GaugeSeries:
5870
- mt(e), T = await tl({
5875
+ case h.GaugeSeries:
5876
+ mt(e), w = await tl({
5871
5877
  queryObject: e,
5872
5878
  chartConfig: i,
5873
5879
  queryConfig: a,
@@ -5878,7 +5884,7 @@ async function dl(t) {
5878
5884
  });
5879
5885
  break;
5880
5886
  }
5881
- return T;
5887
+ return w;
5882
5888
  }
5883
5889
  async function Hd(t) {
5884
5890
  const {
@@ -5888,52 +5894,54 @@ async function Hd(t) {
5888
5894
  abortSignal: r,
5889
5895
  currentSelectionDataItems: n,
5890
5896
  dataForFilterBySelectionChanged: s,
5891
- runtimeDataFilters: o,
5892
- ignoreViewExtent: u,
5893
- filterBySelection: c,
5894
- selectionData: l,
5895
- setTimeBinningInfoWhenNotProvided: d,
5896
- returnFeaturesExtent: f,
5897
- chartLimits: m,
5898
- popupTemplateFieldInfosEnabled: y,
5899
- hideZeroCountCategories: p,
5900
- replaceNoValueCategoryWithZero: g,
5901
- view: h,
5902
- syncViewTimeZone: x,
5903
- errorStrings: v,
5904
- fieldList: b,
5905
- preFetchedQueryResponse: B
5897
+ filterByViewExtent: o,
5898
+ runtimeDataFilters: u,
5899
+ ignoreViewExtent: c,
5900
+ filterBySelection: l,
5901
+ selectionData: d,
5902
+ setTimeBinningInfoWhenNotProvided: f,
5903
+ returnFeaturesExtent: m,
5904
+ chartLimits: y,
5905
+ popupTemplateFieldInfosEnabled: p,
5906
+ hideZeroCountCategories: g,
5907
+ replaceNoValueCategoryWithZero: S,
5908
+ view: b,
5909
+ syncViewTimeZone: v,
5910
+ errorStrings: x,
5911
+ fieldList: B,
5912
+ preFetchedQueryResponse: N
5906
5913
  } = t;
5907
- let N = { valid: !0 };
5908
- const T = ja({
5914
+ let T = { valid: !0 };
5915
+ const w = _a({
5909
5916
  queryObject: e,
5910
5917
  chartConfig: i,
5911
- runtimeDataFilters: o,
5912
- ignoreViewExtent: u,
5913
- view: h
5918
+ runtimeDataFilters: u,
5919
+ ignoreViewExtent: c,
5920
+ view: b
5914
5921
  });
5915
- return ws(a), N = await dl({
5922
+ return ws(a), T = await dl({
5916
5923
  chartConfig: i,
5917
5924
  queryObject: e,
5918
- queryConfig: T,
5925
+ queryConfig: w,
5919
5926
  currentSelectionDataItems: n,
5920
5927
  dataForFilterBySelectionChanged: s,
5921
- filterBySelection: c,
5922
- selectionData: l,
5923
- setTimeBinningInfoWhenNotProvided: d,
5924
- returnFeaturesExtent: f,
5925
- chartLimits: m,
5926
- popupTemplateFieldInfosEnabled: y,
5927
- hideZeroCountCategories: p,
5928
- replaceNoValueCategoryWithZero: g,
5929
- view: h,
5930
- syncViewTimeZone: x,
5928
+ filterByViewExtent: o,
5929
+ filterBySelection: l,
5930
+ selectionData: d,
5931
+ setTimeBinningInfoWhenNotProvided: f,
5932
+ returnFeaturesExtent: m,
5933
+ chartLimits: y,
5934
+ popupTemplateFieldInfosEnabled: p,
5935
+ hideZeroCountCategories: g,
5936
+ replaceNoValueCategoryWithZero: S,
5937
+ view: b,
5938
+ syncViewTimeZone: v,
5931
5939
  abortKey: a,
5932
5940
  abortSignal: r,
5933
- errorStrings: v,
5934
- fieldList: b,
5935
- preFetchedQueryResponse: B
5936
- }), N.queryConfig = T, N;
5941
+ errorStrings: x,
5942
+ fieldList: B,
5943
+ preFetchedQueryResponse: N
5944
+ }), T.queryConfig = w, T;
5937
5945
  }
5938
5946
  function fl(t, e, i) {
5939
5947
  const a = /* @__PURE__ */ new Map();
@@ -5961,28 +5969,28 @@ async function ml(t) {
5961
5969
  } = t, { series: l } = i;
5962
5970
  let d = e;
5963
5971
  const f = k(l), m = xe(i);
5964
- if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === S.CategoryAxisFormat) {
5972
+ if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === h.CategoryAxisFormat) {
5965
5973
  const { x: y } = l[0], p = {
5966
5974
  ...a,
5967
5975
  returnDistinctValues: !0,
5968
5976
  outFields: [y]
5969
5977
  };
5970
5978
  delete p.outStatistics, delete p.orderByFields, delete p.groupByFieldsForStatistics;
5971
- const h = (await Fe({
5979
+ const S = (await Fe({
5972
5980
  queryObject: r,
5973
5981
  queryConfig: p,
5974
5982
  featureCount: n,
5975
5983
  errorStrings: o,
5976
5984
  abortKey: u,
5977
5985
  abortSignal: c
5978
- })).map((x) => x.attributes[y]).filter((x) => x != null);
5979
- h.length > e.length && (d = fl(h, e, y));
5986
+ })).map((b) => b.attributes[y]).filter((b) => b != null);
5987
+ S.length > e.length && (d = fl(S, e, y));
5980
5988
  }
5981
5989
  return d;
5982
5990
  }
5983
5991
  function yl(t, e) {
5984
5992
  const i = t, { series: a } = e;
5985
- if (xe(e) === S.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === D.Count) {
5993
+ if (xe(e) === h.CategoryAxisFormat && a[0].query?.outStatistics?.[0].statisticType === D.Count) {
5986
5994
  const r = a.reduce(
5987
5995
  (n, s) => {
5988
5996
  const o = s.query?.outStatistics?.[0].outStatisticFieldName ?? [s.y].flat()[0];
@@ -5995,7 +6003,7 @@ function yl(t, e) {
5995
6003
  }
5996
6004
  return i;
5997
6005
  }
5998
- const ir = [
6006
+ const tr = [
5999
6007
  F.BarAndLineMonoField,
6000
6008
  F.BarAndLineMultiFields,
6001
6009
  F.PieNoAggregation,
@@ -6047,7 +6055,7 @@ const ir = [
6047
6055
  preferredIntervalSize: [1, 2, 4, 5, 10, 25, 50, 100]
6048
6056
  }
6049
6057
  ], pl = "{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";
6050
- function ar(t, e) {
6058
+ function ir(t, e) {
6051
6059
  let i = t;
6052
6060
  return e === R.Week ? i /= 7 : e === R.Month ? i /= 30 : e === R.Year && (i /= 365), i = Math.ceil(i), i;
6053
6061
  }
@@ -6162,31 +6170,31 @@ function bl(t) {
6162
6170
  let d, f;
6163
6171
  if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
6164
6172
  const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Ui;
6165
- let g = !1, h = d === ee.End ? e.length - 1 : 0;
6166
- const x = {
6167
- binFirstOrLastIndex: h,
6173
+ let g = !1, S = d === ee.End ? e.length - 1 : 0;
6174
+ const b = {
6175
+ binFirstOrLastIndex: S,
6168
6176
  data: e,
6169
6177
  x: l,
6170
6178
  timeIntervalInfo: a
6171
6179
  };
6172
6180
  for (; !g; ) {
6173
6181
  let v = {};
6174
- const { binStartDate: b, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: P } = d === ee.End ? (
6182
+ const { binStartDate: x, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
6175
6183
  // When grouping from the end we'll start from the last date and move backward to create the bins
6176
- Sl(x)
6184
+ Sl(b)
6177
6185
  ) : (
6178
6186
  // When grouping from the start we'll start from the first date and move forward to create the bins
6179
- hl(x)
6187
+ hl(b)
6180
6188
  );
6181
- if (g = N, v = d === ee.End ? v = e[P - 1] : v = e[h], B > n && b < n || b < r && B > r || b >= r && B <= n) {
6182
- const A = e.slice(w, P).filter((O) => !(C.dateBinModel in O));
6189
+ if (g = N, v = d === ee.End ? v = e[L - 1] : v = e[S], B > n && x < n || x < r && B > r || x >= r && B <= n) {
6190
+ const A = e.slice(w, L).filter((O) => !(C.dateBinModel in O));
6183
6191
  y.forEach((O) => {
6184
6192
  v[O] = Fl({ binsToRegroup: A, statisticType: p, y: O, nullPolicy: f });
6185
6193
  });
6186
- const I = A.map((O) => O[Oe]).filter((O) => O !== void 0), L = Dn(I);
6187
- L !== void 0 && (v[Oe] = L), v[l] = b, v[C.xAxisField] = b, v[C.dateBinningRange] = [b, B], delete v[C.dateBinModel], s.push(v);
6194
+ const I = A.map((O) => O[Oe]).filter((O) => O !== void 0), P = Dn(I);
6195
+ P !== void 0 && (v[Oe] = P), v[l] = x, v[C.xAxisField] = x, v[C.dateBinningRange] = [x, B], delete v[C.dateBinModel], s.push(v);
6188
6196
  } else N && d !== ee.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
6189
- h = T, x.binFirstOrLastIndex = T;
6197
+ S = T, b.binFirstOrLastIndex = T;
6190
6198
  }
6191
6199
  d === ee.End && (s = s.reverse());
6192
6200
  } else u === 1 ? s = e.map((m, y) => {
@@ -6204,7 +6212,7 @@ function bl(t) {
6204
6212
  }) : s = e;
6205
6213
  return s;
6206
6214
  }
6207
- function rr(t) {
6215
+ function ar(t) {
6208
6216
  const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: r, unit: n } = a;
6209
6217
  let s = 0, o = 0;
6210
6218
  if (r !== void 0 && Number.isFinite(r) && Number.isFinite(e) && Number.isFinite(i)) {
@@ -6233,7 +6241,7 @@ function rr(t) {
6233
6241
  }
6234
6242
  return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
6235
6243
  }
6236
- function nr(t) {
6244
+ function rr(t) {
6237
6245
  const e = t[0].temporalBinning?.nullPolicy;
6238
6246
  return t.reduce(
6239
6247
  (a, r) => {
@@ -6257,10 +6265,10 @@ function xl(t) {
6257
6265
  if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
6258
6266
  let y = Math.ceil(a / i) * i - a;
6259
6267
  u === R.Week && (y *= 7);
6260
- const p = nr(n);
6268
+ const p = rr(n);
6261
6269
  if (l === ee.End) {
6262
6270
  let g = r[0][c];
6263
- for (let h = 0; h < y; h += 1)
6271
+ for (let S = 0; S < y; S += 1)
6264
6272
  g = Ve({
6265
6273
  date: g,
6266
6274
  unit: u,
@@ -6274,7 +6282,7 @@ function xl(t) {
6274
6282
  y > 0 && (d = r[r.length - 1][c]);
6275
6283
  } else {
6276
6284
  let g = r[r.length - 1][c];
6277
- for (let h = 0; h < y; h += 1)
6285
+ for (let S = 0; S < y; S += 1)
6278
6286
  g = Ve({
6279
6287
  date: g,
6280
6288
  unit: u,
@@ -6292,7 +6300,7 @@ function xl(t) {
6292
6300
  }
6293
6301
  function Cl(t) {
6294
6302
  const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
6295
- return ar(i, a) >= e;
6303
+ return ir(i, a) >= e;
6296
6304
  }
6297
6305
  async function vl(t) {
6298
6306
  const { queryObject: e, queryConfig: i, x: a, errorStrings: r, abortSignal: n } = t, s = `MIN_${a}`, o = `MAX_${a}`, u = `COUNT_${a}`, c = {
@@ -6341,7 +6349,7 @@ function Bl(t) {
6341
6349
  dataLength: s,
6342
6350
  unit: u
6343
6351
  })) {
6344
- const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = nr(a);
6352
+ const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = rr(a);
6345
6353
  let p = f === ee.End ? i : e, g = f === ee.End ? r.length - 1 : 0;
6346
6354
  for (; g < r.length && (f === ee.End && p > e || f !== ee.End && p < i); )
6347
6355
  p !== r[g][d] ? c.push({
@@ -6401,10 +6409,10 @@ function* Al(t) {
6401
6409
  ];
6402
6410
  let y = Ue.groupByCaseBegin;
6403
6411
  for (let g = 0; g < r.length; g += 1) {
6404
- const h = r[g], [x, v] = h[C.dateBinningRange], b = nt(x), B = nt(v);
6412
+ const S = r[g], [b, v] = S[C.dateBinningRange], x = nt(b), B = nt(v);
6405
6413
  y = Tl({
6406
6414
  groupByFieldsForStatistics: y,
6407
- queryStartDate: b,
6415
+ queryStartDate: x,
6408
6416
  queryEndDate: B,
6409
6417
  dateField: l,
6410
6418
  y: [d].flat()[0],
@@ -6446,8 +6454,8 @@ async function wl(t) {
6446
6454
  if (y !== void 0) {
6447
6455
  const [p, g] = y.split("|");
6448
6456
  if (g !== void 0) {
6449
- const h = m.attributes[D.ContinuousPercentile];
6450
- o[g][`${p}`] = h;
6457
+ const S = m.attributes[D.ContinuousPercentile];
6458
+ o[g][`${p}`] = S;
6451
6459
  }
6452
6460
  }
6453
6461
  });
@@ -6474,38 +6482,38 @@ function Hi(t) {
6474
6482
  }
6475
6483
  }
6476
6484
  function Ll(t) {
6477
- const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Oa(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6478
- return i.forEach((g, h) => {
6479
- if (!(y && (h === 0 && p === ee.End || h === i.length - 1 && p === ee.Start))) {
6480
- const { attributes: v, stackedAttributes: b } = g;
6485
+ const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Da(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
6486
+ return i.forEach((g, S) => {
6487
+ if (!(y && (S === 0 && p === ee.End || S === i.length - 1 && p === ee.Start))) {
6488
+ const { attributes: v, stackedAttributes: x } = g;
6481
6489
  let B = v[c.lowerBoundaryAlias], N = v[c.upperBoundaryAlias];
6482
- const T = B, w = N, P = (A, I) => {
6483
- let L = A;
6490
+ const T = B, w = N, L = (A, I) => {
6491
+ let P = A;
6484
6492
  if (I === U.DateOnly && (typeof A == "string" && A.length === 10 || typeof A == "number"))
6485
6493
  if (typeof A == "string") {
6486
6494
  const O = A.split("-");
6487
- O.length === 3 && (L = me.local(Number(O[0]), Number(O[1]), Number(O[2])).valueOf());
6495
+ O.length === 3 && (P = me.local(Number(O[0]), Number(O[1]), Number(O[2])).valueOf());
6488
6496
  } else
6489
- L = new Date(A), L = new Date(L.valueOf() + L.getTimezoneOffset() * 6e4), L = me.local(L.getFullYear(), L.getMonth() + 1, L.getDate()).valueOf();
6497
+ P = new Date(A), P = new Date(P.valueOf() + P.getTimezoneOffset() * 6e4), P = me.local(P.getFullYear(), P.getMonth() + 1, P.getDate()).valueOf();
6490
6498
  else typeof A == "string" && ["+", "-"].forEach((O) => {
6491
- O && A.lastIndexOf(O) === A.length - 6 && (L = new Date(A.slice(0, A.lastIndexOf(O))).valueOf());
6499
+ O && A.lastIndexOf(O) === A.length - 6 && (P = new Date(A.slice(0, A.lastIndexOf(O))).valueOf());
6492
6500
  });
6493
- return L;
6501
+ return P;
6494
6502
  };
6495
- if (B = P(B, d), N = P(N, d), typeof B == "number" && typeof N == "number") {
6503
+ if (B = L(B, d), N = L(N, d), typeof B == "number" && typeof N == "number") {
6496
6504
  const A = { ...v };
6497
- A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], b && r && !oe(r) && a ? b.forEach((O) => {
6505
+ A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], x && r && !oe(r) && a ? x.forEach((O) => {
6498
6506
  const V = O[r];
6499
6507
  if (V === null || typeof V == "string" || typeof V == "number") {
6500
6508
  const $ = a?.get(V);
6501
6509
  $ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], Hi({ dataItem: A, statField: $, nullPolicy: o }));
6502
6510
  }
6503
6511
  }) : typeof s == "string" && Hi({ dataItem: A, statField: s, nullPolicy: o });
6504
- const { featureExtent: I, featureExtentKey: L } = sr({
6512
+ const { featureExtent: I, featureExtentKey: P } = nr({
6505
6513
  feature: g,
6506
6514
  splitByField: r
6507
6515
  });
6508
- I && (A[L] = I), f.push(A);
6516
+ I && (A[P] = I), f.push(A);
6509
6517
  }
6510
6518
  }
6511
6519
  }), f;
@@ -6530,11 +6538,11 @@ async function Pl(t) {
6530
6538
  arrayToSort: l,
6531
6539
  sortingField: a
6532
6540
  }), m > 1) {
6533
- const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = rr({
6541
+ const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = ar({
6534
6542
  dateMinTimestamp: d,
6535
6543
  dateMaxTimestamp: f,
6536
6544
  timeIntervalInfo: o
6537
- }), { newDateMin: g, newDateMax: h } = xl({
6545
+ }), { newDateMin: g, newDateMax: S } = xl({
6538
6546
  dateMaxTimestamp: f,
6539
6547
  data: l,
6540
6548
  numberOfFinalBinsWithinDataRange: y,
@@ -6544,7 +6552,7 @@ async function Pl(t) {
6544
6552
  });
6545
6553
  l = Bl({
6546
6554
  newDateMin: g,
6547
- newDateMax: h,
6555
+ newDateMax: S,
6548
6556
  seriesConfig: n,
6549
6557
  data: l,
6550
6558
  initialNumberOfBins: m,
@@ -6584,10 +6592,10 @@ function Dl(t) {
6584
6592
  let a, r, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
6585
6593
  if (n && s) {
6586
6594
  typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
6587
- const o = Ml(i), u = (s - n) / o, c = ji.findIndex((h) => h.threshold > u), l = ji[c], { unitMs: d, preferredIntervalSize: f } = l;
6595
+ const o = Ml(i), u = (s - n) / o, c = ji.findIndex((S) => S.threshold > u), l = ji[c], { unitMs: d, preferredIntervalSize: f } = l;
6588
6596
  ({ unit: a } = l);
6589
6597
  const m = u / d, y = f.findIndex(
6590
- (h) => h >= m
6598
+ (S) => S >= m
6591
6599
  ), p = f[y], g = y === 0 ? f[0] : f[y - 1];
6592
6600
  r = p - m < m - g ? p : g;
6593
6601
  }
@@ -6649,11 +6657,11 @@ async function Ut(t) {
6649
6657
  });
6650
6658
  return Array.from(
6651
6659
  new Set(
6652
- g.map((x) => x.attributes[c ? r : a])
6660
+ g.map((b) => b.attributes[c ? r : a])
6653
6661
  )
6654
- ).sort((x, v) => typeof x == "string" && typeof v == "string" ? x.localeCompare(v) : Number(x) - Number(v));
6662
+ ).sort((b, v) => typeof b == "string" && typeof v == "string" ? b.localeCompare(v) : Number(b) - Number(v));
6655
6663
  }
6656
- function sr(t) {
6664
+ function nr(t) {
6657
6665
  const { feature: e, splitByField: i, chartSubType: a } = t;
6658
6666
  let r;
6659
6667
  if (e.aggregateGeometries && "Extent" in e.aggregateGeometries)
@@ -6685,7 +6693,7 @@ function Ft(t) {
6685
6693
  }
6686
6694
  function ql(t, e) {
6687
6695
  const i = t, a = _(e);
6688
- if (a !== S.PieSeries && a !== S.BoxPlotSeries) {
6696
+ if (a !== h.PieSeries && a !== h.BoxPlotSeries) {
6689
6697
  const r = ue(e), n = e[0].y;
6690
6698
  t.forEach((s) => {
6691
6699
  let o = 0;
@@ -6712,7 +6720,7 @@ function Vl(t, e) {
6712
6720
  }
6713
6721
  function Rl(t, e) {
6714
6722
  const i = e.series[0], a = t;
6715
- if (i.type === S.HeatSeries) {
6723
+ if (i.type === h.HeatSeries) {
6716
6724
  const { x: r, y: n } = i;
6717
6725
  a[Q.xField] = a[r]?.toString(), delete a[r], a[Q.yField] = a[n]?.toString(), delete a[n];
6718
6726
  const s = i.query?.outStatistics?.[0]?.outStatisticFieldName;
@@ -6790,12 +6798,12 @@ function Hl(t) {
6790
6798
  }
6791
6799
  function zl(t) {
6792
6800
  const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, r = k(i.series);
6793
- return a && Number.isFinite(a) && a < e.length && ir.includes(r) ? e.slice(0, a) : e;
6801
+ return a && Number.isFinite(a) && a < e.length && tr.includes(r) ? e.slice(0, a) : e;
6794
6802
  }
6795
6803
  function Wl(t) {
6796
6804
  const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: r, chartSubType: n } = t;
6797
6805
  let s = !1;
6798
- if (r && a && Number.isFinite(a) && !ir.includes(n))
6806
+ if (r && a && Number.isFinite(a) && !tr.includes(n))
6799
6807
  if ((n === F.BarAndLineFromFields || n === F.PieFromFields) && Object.keys(e).length > a)
6800
6808
  Object.keys(e).filter((o) => o !== D.EnvelopeAggregate).forEach((o, u) => {
6801
6809
  u >= a && delete e[o];
@@ -6821,14 +6829,14 @@ function Gl(t) {
6821
6829
  yAxisValueFormat: d
6822
6830
  } = t;
6823
6831
  let f, m;
6824
- c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ri(i, s)), o && u === S.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ri(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[C.originalCategoryValue] = e[r], e[r] = f, e[C.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[C.originalYCategoryValue] = e[n], e[n] = m));
6832
+ c !== F.PieFromFields && (s && (typeof i == "string" || typeof i == "number") && (f = ri(i, s)), o && u === h.HeatSeries && typeof n == "string" && (typeof a == "string" || typeof a == "number") && (m = ri(a, o)), f !== void 0 && f !== i && (typeof f != "string" || !ne(l)) && (e[C.originalCategoryValue] = e[r], e[r] = f, e[C.xAxisDisplayField] = f), typeof n == "string" && !ne(d) && m !== void 0 && m !== a && (e[C.originalYCategoryValue] = e[n], e[n] = m));
6825
6833
  }
6826
6834
  function Ul(t) {
6827
6835
  let e;
6828
6836
  const [i, a, r] = t.split(":");
6829
6837
  return Number.isFinite(Number(i)) && Number.isFinite(Number(a)) && Number.isFinite(Number(r)) && (e = new Date(2e3, 0, 1, Number(i), Number(a), Number(r)).valueOf()), e;
6830
6838
  }
6831
- function or(t) {
6839
+ function sr(t) {
6832
6840
  const {
6833
6841
  queryObject: e,
6834
6842
  queryResponse: i,
@@ -6840,14 +6848,14 @@ function or(t) {
6840
6848
  showMean: u,
6841
6849
  chartLimits: c,
6842
6850
  fieldList: l
6843
- } = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [], h = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: b } = C, B = ai(e, y), N = typeof p == "string" ? ai(e, p) : void 0, w = ao(l ?? []).includes(y), P = [];
6851
+ } = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [], S = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: b, originalCategoryValue: v, originalDateValue: x } = C, B = ai(e, y), N = typeof p == "string" ? ai(e, p) : void 0, w = ao(l ?? []).includes(y), L = [];
6844
6852
  let A = 0;
6845
- const I = /* @__PURE__ */ new Set(), { maxCategoryCount: L } = ut(c), O = zl({ queryResponse: i, chartConfig: a, maxCategoryCount: L });
6853
+ const I = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(c), O = zl({ queryResponse: i, chartConfig: a, maxCategoryCount: P });
6846
6854
  for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
6847
6855
  A += jl(f, a);
6848
6856
  const $ = O[V];
6849
6857
  let M = { ...$.attributes };
6850
- if (Wl({ attributes: M, uniqueCategoryList: I, maxCategoryCount: L, x: y, chartSubType: f }))
6858
+ if (Wl({ attributes: M, uniqueCategoryList: I, maxCategoryCount: P, x: y, chartSubType: f }))
6851
6859
  continue;
6852
6860
  if ($l(M, d), f === F.PieFromFields || f === F.BarAndLineFromFields)
6853
6861
  M = kl(M, g);
@@ -6861,13 +6869,13 @@ function or(t) {
6861
6869
  Hl({ attributes: M, showMean: u, chartSubType: f });
6862
6870
  let q = M[y];
6863
6871
  const G = typeof p == "string" ? M[p] : void 0;
6864
- q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), h || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = Il(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Ul(q));
6865
- const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = sr({ feature: $, splitByField: n, chartSubType: f });
6872
+ q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), S || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = Il(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Ul(q));
6873
+ const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = nr({ feature: $, splitByField: n, chartSubType: f });
6866
6874
  if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
6867
6875
  const ae = M[n], pe = r?.get(ae);
6868
6876
  pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
6869
- } else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[b] = q : q !== C.nullValue && (M[v] = q), un({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
6870
- m === S.BoxPlotSeries && (M = Vl(d, M)), m === S.PieSeries && typeof q == "number" && (M[v] === void 0 && (M[v] = M[y]), q = `${q}`), q !== void 0 && (M[v] === void 0 && (M[v] = M[y]), M[y] === null ? M[y] = m === S.HeatSeries ? "null" : C.nullValue : M[y] = q, Gl({
6877
+ } else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[x] = q : q !== C.nullValue && (M[v] = q), un({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
6878
+ m === h.BoxPlotSeries && (M = Vl(d, M)), m === h.PieSeries && typeof q == "number" && (M[v] === void 0 && (M[v] = M[y]), q = `${q}`), q !== void 0 && (M[v] === void 0 && (M[v] = M[y]), M[y] === null ? M[y] = m === h.HeatSeries ? "null" : C.nullValue : M[y] = q, Gl({
6871
6879
  attributes: M,
6872
6880
  xValue: q,
6873
6881
  yValue: G,
@@ -6879,9 +6887,9 @@ function or(t) {
6879
6887
  chartSubType: f,
6880
6888
  xAxisValueFormat: a.axes?.[0].valueFormat,
6881
6889
  yAxisValueFormat: a.axes?.[1]?.valueFormat
6882
- }), m === S.HeatSeries && typeof p == "string" && M[p] === null && (M[p] = "null", M[x] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = Rl(M, a), P.push(M);
6890
+ }), m === h.HeatSeries && typeof p == "string" && M[p] === null && (M[p] = "null", M[b] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = Rl(M, a), L.push(M);
6883
6891
  }
6884
- return P;
6892
+ return L;
6885
6893
  }
6886
6894
  async function _t(t) {
6887
6895
  const {
@@ -6900,31 +6908,31 @@ async function _t(t) {
6900
6908
  errorStrings: m
6901
6909
  } = t, { series: y } = a, p = k(y);
6902
6910
  let g = [];
6903
- const h = p === F.BarAndLineSplitBy || p === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", x = f ?? await Fe({
6911
+ const S = p === F.BarAndLineSplitBy || p === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", b = f ?? await Fe({
6904
6912
  queryObject: e,
6905
6913
  queryConfig: i,
6906
6914
  featureCount: o,
6907
6915
  abortKey: n,
6908
6916
  errorStrings: m,
6909
6917
  abortSignal: s
6910
- }), v = Ce(e, d), { x: b } = y[0];
6911
- return g = or({
6918
+ }), v = Ce(e, d), { x } = y[0];
6919
+ return g = sr({
6912
6920
  queryObject: e,
6913
- queryResponse: x,
6921
+ queryResponse: b,
6914
6922
  chartConfig: a,
6915
6923
  mapToStatField: r,
6916
- splitByField: h,
6924
+ splitByField: S,
6917
6925
  isTimeBinningSeries: u,
6918
6926
  fieldList: v,
6919
6927
  resultLimit: i.num,
6920
6928
  showMean: c,
6921
6929
  chartLimits: l
6922
- }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (h !== "" && (g = Ft({ data: g, x: b, splitByField: h })), g = ql(
6930
+ }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = Ft({ data: g, x, splitByField: S })), g = ql(
6923
6931
  g,
6924
6932
  y
6925
6933
  )), g;
6926
6934
  }
6927
- async function lr(t) {
6935
+ async function or(t) {
6928
6936
  const {
6929
6937
  chartConfig: e,
6930
6938
  queryObject: i,
@@ -6966,16 +6974,16 @@ async function si(t) {
6966
6974
  chartLimits: f,
6967
6975
  popupTemplateFieldInfosEnabled: m,
6968
6976
  hideZeroCountCategories: y
6969
- } = t, p = st(e), g = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, h = !(y ?? !g), { behaviorAfterLimit: x } = f ?? {};
6977
+ } = t, p = st(e), g = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, S = !(y ?? !g), { behaviorAfterLimit: b } = f ?? {};
6970
6978
  let v;
6971
- const b = { valid: !0 };
6979
+ const x = { valid: !0 };
6972
6980
  let B, N = !1;
6973
- const T = e.series, w = T[0], P = k(e.series);
6981
+ const T = e.series, w = T[0], L = k(e.series);
6974
6982
  if (ie(r))
6975
- v = _(T) === S.BarSeries ? await Hs(t) : b;
6983
+ v = _(T) === h.BarSeries ? await Hs(t) : x;
6976
6984
  else {
6977
6985
  if (w !== void 0) {
6978
- const A = _(T), { uniqueQuery: I, mapToStatField: L } = mi({
6986
+ const A = _(T), { uniqueQuery: I, mapToStatField: P } = mi({
6979
6987
  chartConfig: e,
6980
6988
  queryObject: r,
6981
6989
  queryConfig: i,
@@ -6984,11 +6992,11 @@ async function si(t) {
6984
6992
  returnFeaturesExtent: d,
6985
6993
  chartLimits: f
6986
6994
  });
6987
- let { categoryOrDateCount: O, elementCount: V } = await lr({
6995
+ let { categoryOrDateCount: O, elementCount: V } = await or({
6988
6996
  chartConfig: e,
6989
6997
  queryObject: r,
6990
6998
  queryConfig: i,
6991
- behaviorAfterLimit: x,
6999
+ behaviorAfterLimit: b,
6992
7000
  numberMaxOfFeaturesToFetch: I.num,
6993
7001
  abortSignal: c
6994
7002
  });
@@ -7004,7 +7012,7 @@ async function si(t) {
7004
7012
  uniqueQuery: I,
7005
7013
  chartConfig: e,
7006
7014
  preFetchedQueryResponse: o,
7007
- mapToStatField: L,
7015
+ mapToStatField: P,
7008
7016
  elementCount: V,
7009
7017
  isTimeBinningSeries: !1,
7010
7018
  showMean: p,
@@ -7013,7 +7021,7 @@ async function si(t) {
7013
7021
  errorStrings: u,
7014
7022
  abortKey: n,
7015
7023
  abortSignal: c
7016
- }), de(e) && B !== void 0 && (b.data = await Yo({
7024
+ }), de(e) && B !== void 0 && (x.data = await Yo({
7017
7025
  data: B,
7018
7026
  queryObject: r,
7019
7027
  fetchFullBoxPlotData: a,
@@ -7024,22 +7032,22 @@ async function si(t) {
7024
7032
  errorStrings: u,
7025
7033
  abortKey: n,
7026
7034
  abortSignal: c
7027
- }), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ti(P) ? O * T.length : O, M = Ae({
7035
+ }), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (x.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ti(L) ? O * T.length : O, M = Ae({
7028
7036
  count: V,
7029
7037
  seriesCount: T.length,
7030
7038
  chartType: A,
7031
7039
  chartLimits: f
7032
7040
  })), M)) {
7033
- if (A === S.PieSeries) {
7034
- P === F.PieFromFields && (B = Mt({
7041
+ if (A === h.PieSeries) {
7042
+ L === F.PieFromFields && (B = Mt({
7035
7043
  dataToConvert: B[0],
7036
7044
  x: ce,
7037
7045
  y: Ne,
7038
7046
  fieldList: s
7039
7047
  }));
7040
7048
  let q = "";
7041
- P === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), qn(B, q) ? b.data = { dataItems: B } : qo(b, j.PieChartMixOfNegativePositiveSlices);
7042
- } else if ((A === S.RadarSeries || A === S.BarSeries || A === S.LineSeries || A === S.ComboLineAndBarSeries) && (P === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Mt({
7049
+ L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), qn(B, q) ? x.data = { dataItems: B } : qo(x, j.PieChartMixOfNegativePositiveSlices);
7050
+ } else if ((A === h.RadarSeries || A === h.BarSeries || A === h.LineSeries || A === h.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Mt({
7043
7051
  dataToConvert: B[0],
7044
7052
  x: w.x,
7045
7053
  y: w.y,
@@ -7050,32 +7058,32 @@ async function si(t) {
7050
7058
  chartConfig: e,
7051
7059
  queryConfig: i,
7052
7060
  categoryOrDateCount: O,
7053
- behaviorAfterLimit: x,
7061
+ behaviorAfterLimit: b,
7054
7062
  errorStrings: u,
7055
7063
  abortKey: n,
7056
7064
  abortSignal: c
7057
- }), V = ti(P) ? B.length * T.length : B.length, M = Ae({
7065
+ }), V = ti(L) ? B.length * T.length : B.length, M = Ae({
7058
7066
  count: V,
7059
7067
  seriesCount: T.length,
7060
7068
  chartType: A,
7061
7069
  chartLimits: f
7062
7070
  }), M)) {
7063
- h && (B = yl(B, e));
7071
+ S && (B = yl(B, e));
7064
7072
  let q = {};
7065
7073
  if (be(w)) {
7066
7074
  const { size: G, unit: J } = w.temporalBinning ?? {};
7067
7075
  G !== void 0 && J !== void 0 && (q = { size: G, unit: J });
7068
7076
  }
7069
- b.data = { dataItems: B, timeIntervalInfo: q };
7077
+ x.data = { dataItems: B, timeIntervalInfo: q };
7070
7078
  }
7071
7079
  }
7072
7080
  M || Dt({
7073
- dataInfo: b,
7081
+ dataInfo: x,
7074
7082
  chartType: A,
7075
7083
  subError: { outlierLimit: N }
7076
- }), b.count = V;
7084
+ }), x.count = V;
7077
7085
  }
7078
- v = b;
7086
+ v = x;
7079
7087
  }
7080
7088
  return v;
7081
7089
  }
@@ -7139,7 +7147,7 @@ function zi(t) {
7139
7147
  const { day: e, month: i, includeLeapDay: a } = t;
7140
7148
  return i === 2 && e > (a ? 29 : 28) || [4, 6, 9, 11].includes(i) && e > 30;
7141
7149
  }
7142
- async function ur(t) {
7150
+ async function lr(t) {
7143
7151
  const {
7144
7152
  chartConfig: e,
7145
7153
  queryConfig: i,
@@ -7156,7 +7164,7 @@ async function ur(t) {
7156
7164
  } = t, m = { valid: !0 };
7157
7165
  let y;
7158
7166
  if (We(e)) {
7159
- const { nullPolicy: p } = e, g = e.series[0], { x: h, y: x, query: v, xTemporalBinning: b, yTemporalBinning: B } = g, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Zl(e), P = Q.valueField, A = p === Se.Zero ? 0 : null;
7167
+ const { nullPolicy: p } = e, g = e.series[0], { x: S, y: b, query: v, xTemporalBinning: x, yTemporalBinning: B } = g, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Zl(e), L = Q.valueField, A = p === Se.Zero ? 0 : null;
7160
7168
  if (Oo(e)) {
7161
7169
  const I = await Bs({
7162
7170
  chartConfig: e,
@@ -7170,13 +7178,13 @@ async function ur(t) {
7170
7178
  if (!Ae({
7171
7179
  count: I?.length ?? 0,
7172
7180
  seriesCount: 1,
7173
- chartType: S.HeatSeries,
7181
+ chartType: h.HeatSeries,
7174
7182
  chartLimits: o
7175
7183
  }))
7176
- Dt({ dataInfo: m, chartType: S.HeatSeries });
7184
+ Dt({ dataInfo: m, chartType: h.HeatSeries });
7177
7185
  else if (typeof I?.[0] == "object") {
7178
- const L = Ce(a, u);
7179
- y = or({
7186
+ const P = Ce(a, u);
7187
+ y = sr({
7180
7188
  queryObject: a,
7181
7189
  queryResponse: I,
7182
7190
  chartConfig: e,
@@ -7184,19 +7192,19 @@ async function ur(t) {
7184
7192
  isTimeBinningSeries: !1,
7185
7193
  chartLimits: o,
7186
7194
  resultLimit: i.num,
7187
- fieldList: L
7195
+ fieldList: P
7188
7196
  });
7189
7197
  const O = await Ut({
7190
7198
  queryObject: a,
7191
7199
  queryConfig: i,
7192
- category: h,
7200
+ category: S,
7193
7201
  errorStrings: n,
7194
7202
  abortKey: d,
7195
7203
  abortSignal: f
7196
7204
  }), V = await Ut({
7197
7205
  queryObject: a,
7198
7206
  queryConfig: i,
7199
- category: x,
7207
+ category: b,
7200
7208
  errorStrings: n,
7201
7209
  abortKey: d,
7202
7210
  abortSignal: f
@@ -7207,15 +7215,15 @@ async function ur(t) {
7207
7215
  dataItems: y,
7208
7216
  xUniqueValues: O,
7209
7217
  yUniqueValues: V,
7210
- valueField: P,
7218
+ valueField: L,
7211
7219
  emptyCellValue: A,
7212
- x: h,
7213
- y: x,
7220
+ x: S,
7221
+ y: b,
7214
7222
  queryObject: a
7215
7223
  })
7216
7224
  ], w && (y = Xl({
7217
7225
  dataItems: y,
7218
- valueField: P,
7226
+ valueField: L,
7219
7227
  filterOutZero: T === D.Count
7220
7228
  })));
7221
7229
  }
@@ -7228,32 +7236,32 @@ async function ur(t) {
7228
7236
  syncViewTimeZone: l,
7229
7237
  errorStrings: n,
7230
7238
  abortSignal: f
7231
- }), L = B ? Yl(B.unit) : await Ut({ queryObject: a, queryConfig: i, category: x, errorStrings: n, abortKey: d, abortSignal: f });
7239
+ }), P = B ? Yl(B.unit) : await Ut({ queryObject: a, queryConfig: i, category: b, errorStrings: n, abortKey: d, abortSignal: f });
7232
7240
  let O = 0;
7233
7241
  y = I?.features.flatMap((V) => {
7234
7242
  const $ = [], { attributes: M, stackedAttributes: q } = V, G = [];
7235
7243
  if (q?.forEach((J) => {
7236
- const X = `${J[x]}`;
7244
+ const X = `${J[b]}`;
7237
7245
  G.push(X), $.push({
7238
7246
  [Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7239
7247
  [Q.yField]: X,
7240
- [P]: J[N]
7248
+ [L]: J[N]
7241
7249
  });
7242
- }), r && L && G.length !== L?.length) {
7243
- const J = L.filter((X) => !G.includes(X.toString()));
7244
- w && (J.length !== L.length || G.length === 0) || J.forEach((X) => {
7245
- Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (b?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && zi({
7250
+ }), r && P && G.length !== P?.length) {
7251
+ const J = P.filter((X) => !G.includes(X.toString()));
7252
+ w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
7253
+ Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && zi({
7246
7254
  day: Number(M[W.heatChartLowerBoundaryAlias]),
7247
7255
  month: Number(X),
7248
7256
  includeLeapDay: e.includeLeapDay
7249
- }) || B?.unit === he.DayOfMonth && b?.unit === he.MonthOfYear && zi({
7257
+ }) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && zi({
7250
7258
  day: Number(X),
7251
7259
  month: Number(M[W.heatChartLowerBoundaryAlias]),
7252
7260
  includeLeapDay: e.includeLeapDay
7253
7261
  })) || $.push({
7254
7262
  [Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
7255
7263
  [Q.yField]: X,
7256
- [P]: p === Se.Zero ? 0 : null
7264
+ [L]: p === Se.Zero ? 0 : null
7257
7265
  });
7258
7266
  });
7259
7267
  }
@@ -7261,13 +7269,13 @@ async function ur(t) {
7261
7269
  }), Ae({
7262
7270
  count: O,
7263
7271
  seriesCount: 1,
7264
- chartType: S.HeatSeries,
7272
+ chartType: h.HeatSeries,
7265
7273
  chartLimits: o
7266
- }) || Dt({ dataInfo: m, chartType: S.HeatSeries });
7274
+ }) || Dt({ dataInfo: m, chartType: h.HeatSeries });
7267
7275
  }
7268
7276
  y && (m.data = {
7269
7277
  dataItems: y,
7270
- heatChartAxesData: Ja({ chartConfig: e, chartData: y })
7278
+ heatChartAxesData: Xa({ chartConfig: e, chartData: y })
7271
7279
  });
7272
7280
  }
7273
7281
  return m;
@@ -7275,7 +7283,7 @@ async function ur(t) {
7275
7283
  function Kl(t) {
7276
7284
  const { chartConfig: e, data: i, chartLimits: a } = t, r = e.series;
7277
7285
  let n = i;
7278
- const s = Na(e, a);
7286
+ const s = Ba(e, a);
7279
7287
  if (s !== void 0) {
7280
7288
  const o = ue(r);
7281
7289
  if (o.length === 1)
@@ -7314,28 +7322,28 @@ async function bi(t) {
7314
7322
  popupTemplateFieldInfosEnabled: d,
7315
7323
  view: f,
7316
7324
  syncViewTimeZone: m
7317
- } = t, { behaviorAfterLimit: y } = l ?? {}, p = e.series, g = p[0], { x: h } = g, x = te(g.query?.where), v = { valid: !0 };
7318
- let b;
7325
+ } = t, { behaviorAfterLimit: y } = l ?? {}, p = e.series, g = p[0], { x: S } = g, b = te(g.query?.where), v = { valid: !0 };
7326
+ let x;
7319
7327
  if (be(g)) {
7320
7328
  const { temporalBinning: B } = g;
7321
7329
  if (a && B) {
7322
7330
  const { unit: N, size: T } = B;
7323
- let w = 1, P = { unit: N, size: T }, A = !1;
7331
+ let w = 1, L = { unit: N, size: T }, A = !1;
7324
7332
  const I = Ol({
7325
7333
  series: g,
7326
7334
  isTimeBinningSeries: !0,
7327
7335
  setTimeBinningInfoWhenNotProvided: u
7328
- }), L = !rt(x, a) || I ? await vl({ queryObject: a, queryConfig: i, x: h, errorStrings: o, abortSignal: n }) : void 0;
7329
- I && L && L.numberOfFeatures > 0 && L.dateRange.dateMaxTimestamp !== void 0 && L.dateRange.dateMinTimestamp !== void 0 && (P = Dl(L), Ce(a).find((G) => G.name === h)?.type === U.DateOnly && P.unit !== void 0 && [
7336
+ }), P = !rt(b, a) || I ? await vl({ queryObject: a, queryConfig: i, x: S, errorStrings: o, abortSignal: n }) : void 0;
7337
+ I && P && P.numberOfFeatures > 0 && P.dateRange.dateMaxTimestamp !== void 0 && P.dateRange.dateMinTimestamp !== void 0 && (L = Dl(P), Ce(a).find((G) => G.name === S)?.type === U.DateOnly && L.unit !== void 0 && [
7330
7338
  R.Hour,
7331
7339
  R.Minute,
7332
7340
  R.Second
7333
- ].includes(P.unit) && (P.unit = R.Day, P.size = 1), B.size = P.size, B.unit = P.unit);
7341
+ ].includes(L.unit) && (L.unit = R.Day, L.size = 1), B.size = L.size, B.unit = L.unit);
7334
7342
  const { uniqueQuery: O, mapToStatField: V } = mi({
7335
7343
  chartConfig: e,
7336
7344
  queryConfig: i,
7337
7345
  queryObject: a,
7338
- timeIntervalInfo: P,
7346
+ timeIntervalInfo: L,
7339
7347
  setTimeBinningInfoWhenNotProvided: u,
7340
7348
  returnFeaturesExtent: c,
7341
7349
  chartLimits: l
@@ -7343,15 +7351,15 @@ async function bi(t) {
7343
7351
  let $ = Ae({
7344
7352
  count: w ?? 0,
7345
7353
  seriesCount: p.length,
7346
- chartType: S.LineSeries,
7354
+ chartType: h.LineSeries,
7347
7355
  chartLimits: l
7348
7356
  });
7349
7357
  if ($) {
7350
- if (rt(x, a)) {
7351
- const M = e.axes?.[0].valueFormat.type === S.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Er ? s : await Ls({
7358
+ if (rt(b, a)) {
7359
+ const M = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Ir ? s : await Ls({
7352
7360
  queryObject: a,
7353
- dateField: h,
7354
- splitByField: x,
7361
+ dateField: S,
7362
+ splitByField: b,
7355
7363
  queryConfig: O,
7356
7364
  axisTimeZone: M,
7357
7365
  temporalBinning: B,
@@ -7360,38 +7368,38 @@ async function bi(t) {
7360
7368
  syncViewTimeZone: m,
7361
7369
  abortSignal: n
7362
7370
  }), G = "y" in g && typeof g.y == "string" ? g.y : void 0;
7363
- if (b = Ll({
7371
+ if (x = Ll({
7364
7372
  chartConfig: e,
7365
7373
  queryResults: q,
7366
7374
  mapToStatField: V,
7367
- splitByField: x,
7368
- x: h,
7375
+ splitByField: b,
7376
+ x: S,
7369
7377
  y: G,
7370
7378
  nullPolicy: B.nullPolicy,
7371
7379
  queryObject: a
7372
7380
  }), !Ae({
7373
- count: b.length,
7381
+ count: x.length,
7374
7382
  seriesCount: p.length,
7375
- chartType: S.LineSeries,
7383
+ chartType: h.LineSeries,
7376
7384
  chartLimits: l
7377
7385
  })) {
7378
- const J = ue(p), X = b.filter(
7386
+ const J = ue(p), X = x.filter(
7379
7387
  (H) => J.some((ae) => ae in H && Number.isFinite(H[ae]))
7380
7388
  ).length;
7381
7389
  Ae({
7382
7390
  count: X,
7383
7391
  seriesCount: p.length,
7384
- chartType: S.LineSeries,
7392
+ chartType: h.LineSeries,
7385
7393
  chartLimits: l
7386
7394
  }) || ($ = !1);
7387
7395
  }
7388
- } else if (L?.dateRange.dateMinTimestamp && L.dateRange.dateMaxTimestamp) {
7389
- const { numberOfFinalBinsWithinDataRange: M } = rr({
7390
- dateMinTimestamp: L.dateRange.dateMinTimestamp,
7391
- dateMaxTimestamp: L.dateRange.dateMaxTimestamp,
7392
- timeIntervalInfo: P
7396
+ } else if (P?.dateRange.dateMinTimestamp && P.dateRange.dateMaxTimestamp) {
7397
+ const { numberOfFinalBinsWithinDataRange: M } = ar({
7398
+ dateMinTimestamp: P.dateRange.dateMinTimestamp,
7399
+ dateMaxTimestamp: P.dateRange.dateMaxTimestamp,
7400
+ timeIntervalInfo: L
7393
7401
  });
7394
- w = M * p.length, w = ar(w, P.unit), b = await _t({
7402
+ w = M * p.length, w = ir(w, L.unit), x = await _t({
7395
7403
  queryObject: a,
7396
7404
  uniqueQuery: O,
7397
7405
  chartConfig: e,
@@ -7403,21 +7411,21 @@ async function bi(t) {
7403
7411
  errorStrings: o,
7404
7412
  abortKey: r,
7405
7413
  abortSignal: n
7406
- }), b = await Pl({
7414
+ }), x = await Pl({
7407
7415
  queryObject: a,
7408
7416
  queryConfig: i,
7409
- queryResults: b,
7410
- x: h,
7417
+ queryResults: x,
7418
+ x: S,
7411
7419
  seriesConfig: p,
7412
- dateRange: L.dateRange,
7413
- timeIntervalInfo: P,
7420
+ dateRange: P.dateRange,
7421
+ timeIntervalInfo: L,
7414
7422
  errorStrings: o,
7415
7423
  abortSignal: n
7416
7424
  });
7417
7425
  }
7418
- ca(a) && b && b?.length === gl && (A = !0), y === lt.RenderUpToTheLimit && b && (b = Kl({ chartConfig: e, chartLimits: l, data: b }));
7426
+ ua(a) && x && x?.length === gl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = Kl({ chartConfig: e, chartLimits: l, data: x }));
7419
7427
  }
7420
- $ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), b && b.length > 0 && (b[b.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: b, timeIntervalInfo: P, serverLimitReached: A }, v.count = w;
7428
+ $ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), x && x.length > 0 && (x[x.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: x, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
7421
7429
  }
7422
7430
  }
7423
7431
  return v;
@@ -7461,7 +7469,7 @@ async function eu(t) {
7461
7469
  errorStrings: c,
7462
7470
  abortKey: r
7463
7471
  });
7464
- return de(e) && (g = Xa({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
7472
+ return de(e) && (g = Za({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
7465
7473
  }
7466
7474
  async function tu(t) {
7467
7475
  const {
@@ -7534,9 +7542,9 @@ async function ru(t) {
7534
7542
  dataContextCountDistinctX: m,
7535
7543
  dataContextCountDistinctY: y
7536
7544
  } = C.scatterplotAggregationFields;
7537
- let p, g, h, x, v;
7538
- const b = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
7539
- if (b != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(b + B + N + T)) {
7545
+ let p, g, S, b, v;
7546
+ const x = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
7547
+ if (x != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(x + B + N + T)) {
7540
7548
  const { maxScatterPointsAfterAggregation: w } = ut(r), A = Math.floor(Math.sqrt(w)), I = await au({
7541
7549
  queryObject: a,
7542
7550
  chartConfig: i,
@@ -7545,7 +7553,7 @@ async function ru(t) {
7545
7553
  abortKey: o,
7546
7554
  abortSignal: u
7547
7555
  });
7548
- h = Math.min(I.get(y) ?? Number.NaN, A), x = Math.min(I.get(m) ?? Number.NaN, A), v = x * h, p = B === b ? 0 : (B - b) / (x - 1), g = T === N ? 0 : (T - N) / (h - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, g), e.set(C.scatterplotAggregationFields.rowCount, h), e.set(C.scatterplotAggregationFields.columnCount, x), e.set(C.scatterplotAggregationFields.realGridSize, v);
7556
+ S = Math.min(I.get(y) ?? Number.NaN, A), b = Math.min(I.get(m) ?? Number.NaN, A), v = b * S, p = B === x ? 0 : (B - x) / (b - 1), g = T === N ? 0 : (T - N) / (S - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, g), e.set(C.scatterplotAggregationFields.rowCount, S), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, v);
7549
7557
  }
7550
7558
  }
7551
7559
  function nu(t) {
@@ -7598,12 +7606,12 @@ async function ou(t) {
7598
7606
  dataContextYMinField: y,
7599
7607
  dataContextYMaxField: p,
7600
7608
  queryNumberOfFeatures: g,
7601
- queryNumberOfAggregatedFeatures: h
7609
+ queryNumberOfAggregatedFeatures: S
7602
7610
  } = C.scatterplotAggregationFields;
7603
- let x;
7604
- const v = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, B = e?.get(g) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(p) ?? b;
7605
- if (v != null && N !== void 0 && N !== null && b !== void 0 && b !== null && T !== void 0 && T !== null && !Number.isNaN(v + b + N + T)) {
7606
- const w = z(a), { idField: P, isTraditionalTypeOID: A } = ve(w), I = A ? P : "*", L = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7611
+ let b;
7612
+ const v = e?.get(f) ?? Number.NaN, x = e?.get(m) ?? Number.NaN, B = e?.get(g) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(p) ?? x;
7613
+ if (v != null && N !== void 0 && N !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(v + x + N + T)) {
7614
+ const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7607
7615
  if (G?.forEach((H) => {
7608
7616
  St(H) && q.set(H.name, {
7609
7617
  onStatisticField: H.name,
@@ -7616,15 +7624,15 @@ async function ou(t) {
7616
7624
  outStatisticFieldName: H.name,
7617
7625
  statisticType: D.Maximum
7618
7626
  });
7619
- }), (await Qa(w)).forEach((H) => {
7627
+ }), (await ka(w)).forEach((H) => {
7620
7628
  q.set(H, {
7621
7629
  onStatisticField: H,
7622
7630
  outStatisticFieldName: H,
7623
7631
  statisticType: D.Maximum
7624
7632
  });
7625
- }), P !== "" && q.set(P, {
7633
+ }), L !== "" && q.set(L, {
7626
7634
  onStatisticField: I,
7627
- outStatisticFieldName: h,
7635
+ outStatisticFieldName: S,
7628
7636
  statisticType: D.Count
7629
7637
  }), q.set(l, {
7630
7638
  onStatisticField: l,
@@ -7634,18 +7642,18 @@ async function ou(t) {
7634
7642
  onStatisticField: d,
7635
7643
  outStatisticFieldName: d,
7636
7644
  statisticType: D.Maximum
7637
- }), L !== void 0 && O !== void 0) {
7645
+ }), P !== void 0 && O !== void 0) {
7638
7646
  if (n) {
7639
7647
  const H = {
7640
7648
  ...r,
7641
7649
  outStatistics: [...q.values()]
7642
7650
  };
7643
- x = await Ns({
7651
+ b = await Ns({
7644
7652
  queryObject: a,
7645
7653
  queryConfig: H,
7646
- xStep: L,
7654
+ xStep: P,
7647
7655
  xMin: v,
7648
- xMax: b,
7656
+ xMax: x,
7649
7657
  x: l,
7650
7658
  y: d,
7651
7659
  yStep: O,
@@ -7664,13 +7672,13 @@ async function ou(t) {
7664
7672
  y: d,
7665
7673
  xValue: Xe,
7666
7674
  yValue: ke,
7667
- xStep: L,
7675
+ xStep: P,
7668
7676
  yStep: O,
7669
7677
  endOfRow: xt === $,
7670
7678
  endOfColumn: Ht === M
7671
- }), Xe < Ct && (Ct = Xe), Xe + L > vt && (vt = Xe + L), ke < Bt && (Bt = ke), ke + L > Nt && (Nt = ke + O), H += 1, H % vi === 0 || H === V || H === B) {
7679
+ }), Xe < Ct && (Ct = Xe), Xe + P > vt && (vt = Xe + P), ke < Bt && (Bt = ke), ke + P > Nt && (Nt = ke + O), H += 1, H % vi === 0 || H === V || H === B) {
7672
7680
  Je = `${Je} ${Ue.groupByCaseEnd}`;
7673
- const pr = {
7681
+ const gr = {
7674
7682
  ...r,
7675
7683
  groupByFieldsForStatistics: [Je],
7676
7684
  outStatistics: [...q.values()]
@@ -7678,7 +7686,7 @@ async function ou(t) {
7678
7686
  Bi.push(
7679
7687
  su({
7680
7688
  chartConfig: i,
7681
- queryConfig: pr,
7689
+ queryConfig: gr,
7682
7690
  queryObject: a,
7683
7691
  xMin: Ct,
7684
7692
  xMax: vt,
@@ -7692,13 +7700,13 @@ async function ou(t) {
7692
7700
  }
7693
7701
  ke += O, xt += 1;
7694
7702
  }
7695
- Xe += L, Ht += 1;
7703
+ Xe += P, Ht += 1;
7696
7704
  }
7697
- x = (await Promise.all(Bi)).flat();
7705
+ b = (await Promise.all(Bi)).flat();
7698
7706
  }
7699
7707
  }
7700
7708
  }
7701
- return x;
7709
+ return b;
7702
7710
  }
7703
7711
  async function lu(t) {
7704
7712
  const { chartConfig: e, queryConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o;
@@ -7709,10 +7717,10 @@ async function lu(t) {
7709
7717
  dataContextYMinField: m,
7710
7718
  dataContextYMaxField: y,
7711
7719
  queryNumberOfFeatures: p
7712
- } = C.scatterplotAggregationFields, { idField: g, isTraditionalTypeOID: h } = ve(z(a)), x = h ? g : "*", v = [
7720
+ } = C.scatterplotAggregationFields, { idField: g, isTraditionalTypeOID: S } = ve(z(a)), b = S ? g : "*", v = [
7713
7721
  {
7714
7722
  statisticType: D.Count,
7715
- onStatisticField: x,
7723
+ onStatisticField: b,
7716
7724
  outStatisticFieldName: p
7717
7725
  },
7718
7726
  {
@@ -7738,10 +7746,10 @@ async function lu(t) {
7738
7746
  onStatisticField: c
7739
7747
  }
7740
7748
  );
7741
- const b = { ...i };
7742
- return b.outStatistics = v, l = await bt({
7749
+ const x = { ...i };
7750
+ return x.outStatistics = v, l = await bt({
7743
7751
  queryObject: a,
7744
- queryConfig: b,
7752
+ queryConfig: x,
7745
7753
  errorStrings: r,
7746
7754
  abortKey: n,
7747
7755
  abortSignal: s
@@ -7755,42 +7763,42 @@ function uu(t) {
7755
7763
  const { useQueryAttributeBins: e, graphic: i, x: a, y: r, yStep: n } = t, { groupByOutKeyword: s } = Ue, { dataContextXMinField: o, dataContextXMaxField: u, dataContextYMinField: c, dataContextYMaxField: l } = C.scatterplotAggregationFields;
7756
7764
  let d = [];
7757
7765
  if (e && "stackedAttributes" in i && i.stackedAttributes) {
7758
- const f = Ma(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7766
+ const f = Pa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
7759
7767
  i.stackedAttributes.forEach((p) => {
7760
- let g = p[f.stackAlias], h;
7761
- typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (h = g + n);
7762
- const x = p[a], v = p[r];
7763
- typeof g == "number" && typeof h == "number" && typeof x == "number" && typeof v == "number" && d.push({
7768
+ let g = p[f.stackAlias], S;
7769
+ typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (S = g + n);
7770
+ const b = p[a], v = p[r];
7771
+ typeof g == "number" && typeof S == "number" && typeof b == "number" && typeof v == "number" && d.push({
7764
7772
  ...p,
7765
- [a]: At({ value: x, valueMin: m, valueMax: y }),
7766
- [r]: At({ value: v, valueMin: g, valueMax: h }),
7773
+ [a]: At({ value: b, valueMin: m, valueMax: y }),
7774
+ [r]: At({ value: v, valueMin: g, valueMax: S }),
7767
7775
  [o]: Math.min(m, y),
7768
7776
  [u]: Math.max(m, y),
7769
7777
  [c]: g,
7770
- [l]: h
7778
+ [l]: S
7771
7779
  });
7772
7780
  });
7773
7781
  } else {
7774
7782
  const { expr: f, isInItem: m } = Et(i.attributes);
7775
7783
  if (m && f && i.attributes[f] !== s) {
7776
- let [y, p, g, h] = i.attributes[f].split("|");
7777
- y = Math.min(y, p), p = Math.max(y, p), g = Math.min(g, h), h = Math.max(g, h);
7778
- const x = {
7784
+ let [y, p, g, S] = i.attributes[f].split("|");
7785
+ y = Math.min(y, p), p = Math.max(y, p), g = Math.min(g, S), S = Math.max(g, S);
7786
+ const b = {
7779
7787
  ...i.attributes,
7780
7788
  [o]: y,
7781
7789
  [u]: p,
7782
7790
  [c]: g,
7783
- [l]: h
7791
+ [l]: S
7784
7792
  };
7785
- x[a] = At({
7786
- value: x[a],
7793
+ b[a] = At({
7794
+ value: b[a],
7787
7795
  valueMin: y,
7788
7796
  valueMax: p
7789
- }), x[r] = At({
7790
- value: x[r],
7797
+ }), b[r] = At({
7798
+ value: b[r],
7791
7799
  valueMin: g,
7792
- valueMax: h
7793
- }), d = [x];
7800
+ valueMax: S
7801
+ }), d = [b];
7794
7802
  }
7795
7803
  }
7796
7804
  return d;
@@ -7815,19 +7823,19 @@ function cu(t) {
7815
7823
  async function du(t) {
7816
7824
  const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = a.series[0], { x: c, y: l } = u, d = z(e);
7817
7825
  let f = [];
7818
- const m = Ce(e), y = $t(d).idFields, p = (m?.filter((b) => St(b) && b.name !== c && b.name !== l) ?? []).map(
7819
- (b) => b.name
7820
- ) ?? [], g = u?.additionalTooltipFields ?? [], h = Array.from(
7826
+ const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => St(x) && x.name !== c && x.name !== l) ?? []).map(
7827
+ (x) => x.name
7828
+ ) ?? [], g = u?.additionalTooltipFields ?? [], S = Array.from(
7821
7829
  /* @__PURE__ */ new Set([c, l, ...y ?? [], ...p, ...g])
7822
- ), x = ge(d);
7823
- if (x && !x.isTable) {
7824
- const { rendererField: b, rendererNormalizationField: B } = to(d?.renderer ?? void 0);
7825
- oe(b) || h.push(b), oe(B) || h.push(B);
7830
+ ), b = ge(d);
7831
+ if (b && !b.isTable) {
7832
+ const { rendererField: x, rendererNormalizationField: B } = to(d?.renderer ?? void 0);
7833
+ oe(x) || S.push(x), oe(B) || S.push(B);
7826
7834
  }
7827
7835
  const v = {
7828
7836
  ...i,
7829
7837
  orderByFields: [`${c} ${ye.Ascending}`],
7830
- outFields: h
7838
+ outFields: S
7831
7839
  };
7832
7840
  return f = await Fe({
7833
7841
  queryObject: e,
@@ -7875,7 +7883,7 @@ async function fu(t) {
7875
7883
  }
7876
7884
  return e;
7877
7885
  }
7878
- async function cr(t) {
7886
+ async function ur(t) {
7879
7887
  const {
7880
7888
  chartConfig: e,
7881
7889
  queryConfig: i,
@@ -7898,7 +7906,7 @@ async function cr(t) {
7898
7906
  errorStrings: o,
7899
7907
  abortKey: u,
7900
7908
  abortSignal: c
7901
- }), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), p = d?.get(f) ?? Number.NaN, g = p >= y, h = yn(a);
7909
+ }), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), p = d?.get(f) ?? Number.NaN, g = p >= y, S = yn(a);
7902
7910
  g && await ru({
7903
7911
  statsMap: d,
7904
7912
  chartConfig: e,
@@ -7909,26 +7917,26 @@ async function cr(t) {
7909
7917
  abortKey: u,
7910
7918
  abortSignal: c
7911
7919
  });
7912
- const x = await fu({
7920
+ const b = await fu({
7913
7921
  ...t,
7914
7922
  queryObject: a,
7915
7923
  statsMap: d,
7916
7924
  numberOfFeatures: p,
7917
7925
  isAggregationMode: g,
7918
- useQueryAttributeBins: h
7926
+ useQueryAttributeBins: S
7919
7927
  }), v = cu({
7920
7928
  chartConfig: e,
7921
- rawData: x,
7929
+ rawData: b,
7922
7930
  isAggregationMode: g,
7923
7931
  yStep: d.get(m),
7924
- useQueryAttributeBins: h
7932
+ useQueryAttributeBins: S
7925
7933
  });
7926
7934
  r !== !1 && pt({
7927
7935
  arrayToSort: v,
7928
7936
  sortingField: e.series[0].x,
7929
7937
  orderBy: ye.Ascending
7930
7938
  });
7931
- const { r2: b, trendLinePoints: B } = n !== !1 ? await Ea({
7939
+ const { r2: x, trendLinePoints: B } = n !== !1 ? await Ia({
7932
7940
  data: v,
7933
7941
  statsMap: d,
7934
7942
  queryConfig: i,
@@ -7937,7 +7945,7 @@ async function cr(t) {
7937
7945
  errorStrings: o,
7938
7946
  abortSignal: c
7939
7947
  }) : C.scatterplotSeries;
7940
- l = { dataItems: v, r2: b, trendLinePoints: B, aggregated: g };
7948
+ l = { dataItems: v, r2: x, trendLinePoints: B, aggregated: g };
7941
7949
  }
7942
7950
  return l;
7943
7951
  }
@@ -7955,20 +7963,20 @@ function it(t) {
7955
7963
  [E.StandardDeviation]: `${e ? "" : `${t}_`}${E.StandardDeviation}`
7956
7964
  };
7957
7965
  }
7958
- function dr(t) {
7959
- return "subType" in t && t.subType === xr.FeatureGauge;
7966
+ function cr(t) {
7967
+ return "subType" in t && t.subType === br.FeatureGauge;
7960
7968
  }
7961
7969
  function xi(t) {
7962
7970
  let e;
7963
7971
  return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
7964
7972
  }
7965
- function fr(t) {
7973
+ function dr(t) {
7966
7974
  return t === F.BoxPlotMultiFields || t === F.BoxPlotMultiFieldsAndCategory || t === F.BoxPlotMultiFieldsAndSplitBy;
7967
7975
  }
7968
7976
  function K(t) {
7969
7977
  const { key: e, y: i, chartSubType: a, splitBy: r, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
7970
7978
  let u = n, l = it(i)[e];
7971
- return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (fr(a) || e === E.Outlier) && (l = `${l}${$r}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
7979
+ return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Vr}`), o === !0 && (dr(a) || e === E.Outlier) && (l = `${l}${Rr}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
7972
7980
  }
7973
7981
  function Yt(t) {
7974
7982
  const { dataItem: e, y: i, splitBy: a, showOutliers: r } = t, n = K({ key: E.FirstQuartile, y: i, splitBy: a, showOutliers: r }), s = K({ key: E.ThirdQuartile, y: i, splitBy: a, showOutliers: r });
@@ -8005,12 +8013,12 @@ function mu(t) {
8005
8013
  }
8006
8014
  return s;
8007
8015
  }
8008
- function mr(t) {
8016
+ function fr(t) {
8009
8017
  return t.map((e) => e.id).filter((e) => e !== void 0);
8010
8018
  }
8011
8019
  function ue(t, e) {
8012
8020
  let i = [];
8013
- const a = e ?? mr(t), r = k(t);
8021
+ const a = e ?? fr(t), r = k(t);
8014
8022
  return i = t.filter((n) => a.includes(n.id)).map((n) => {
8015
8023
  let s = "y" in n ? n.y : void 0;
8016
8024
  return s !== void 0 && r === F.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${fe({ where: n.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
@@ -8020,7 +8028,7 @@ function Ci(t) {
8020
8028
  const { seriesConfig: e, filteredSeriesIds: i, showMean: a } = t;
8021
8029
  let r = [];
8022
8030
  if (a === !0) {
8023
- const n = e.find((s) => s.type === S.BoxPlotSeries);
8031
+ const n = e.find((s) => s.type === h.BoxPlotSeries);
8024
8032
  n !== void 0 && "y" in n && (r = [n.y].flat());
8025
8033
  } else
8026
8034
  r = ue(e, i);
@@ -8045,22 +8053,22 @@ function zd(t) {
8045
8053
  r = !a.some((o) => {
8046
8054
  let u = !1;
8047
8055
  switch (n) {
8048
- case S.HistogramSeries:
8056
+ case h.HistogramSeries:
8049
8057
  {
8050
8058
  const c = o;
8051
8059
  u = Me(c.minValue, i) && Me(c.maxValue, i);
8052
8060
  }
8053
8061
  break;
8054
- case S.ScatterSeries:
8062
+ case h.ScatterSeries:
8055
8063
  {
8056
8064
  const c = o, { x: l, y: d } = e.series[0];
8057
8065
  u = Me(c[l], i) && Me(c[d], i);
8058
8066
  }
8059
8067
  break;
8060
- case S.ComboLineAndBarSeries:
8061
- case S.RadarSeries:
8062
- case S.LineSeries:
8063
- case S.BarSeries: {
8068
+ case h.ComboLineAndBarSeries:
8069
+ case h.RadarSeries:
8070
+ case h.LineSeries:
8071
+ case h.BarSeries: {
8064
8072
  const c = o, { x: l } = e.series[0];
8065
8073
  u = s.some(
8066
8074
  (d) => yu({
@@ -8073,7 +8081,7 @@ function zd(t) {
8073
8081
  );
8074
8082
  break;
8075
8083
  }
8076
- case S.BoxPlotSeries: {
8084
+ case h.BoxPlotSeries: {
8077
8085
  if (de(e)) {
8078
8086
  const c = e.series;
8079
8087
  u = mu({
@@ -8085,22 +8093,22 @@ function zd(t) {
8085
8093
  }
8086
8094
  break;
8087
8095
  }
8088
- case S.PieSeries:
8096
+ case h.PieSeries:
8089
8097
  {
8090
8098
  const c = o;
8091
8099
  let { x: l, y: d } = e.series[0];
8092
8100
  k(e.series) === F.PieFromFields && (l = ce, d = Ne);
8093
8101
  const f = c[d];
8094
- u = c[l] !== void 0 && c[l] !== null && !hr(f) && Me(Number(f), i);
8102
+ u = c[l] !== void 0 && c[l] !== null && !pr(f) && Me(Number(f), i);
8095
8103
  }
8096
8104
  break;
8097
- case S.GaugeSeries:
8105
+ case h.GaugeSeries:
8098
8106
  {
8099
8107
  const { x: c } = e.series[0];
8100
8108
  u = Me(o[c], i);
8101
8109
  }
8102
8110
  break;
8103
- case S.HeatSeries:
8111
+ case h.HeatSeries:
8104
8112
  u = a.some(
8105
8113
  (c) => Me(c[Q.valueField], i)
8106
8114
  );
@@ -8113,7 +8121,7 @@ function zd(t) {
8113
8121
  return r;
8114
8122
  }
8115
8123
  function gu(t, e) {
8116
- const i = /* @__PURE__ */ new Map(), a = e ?? mr(t);
8124
+ const i = /* @__PURE__ */ new Map(), a = e ?? fr(t);
8117
8125
  return t.forEach((r) => {
8118
8126
  if (a.includes(r.id) && "y" in r) {
8119
8127
  const n = i.get(r.type) ?? [];
@@ -8123,7 +8131,7 @@ function gu(t, e) {
8123
8131
  }
8124
8132
  function pu(t) {
8125
8133
  const { seriesConfig: e, filteredSeriesIds: i, filteredData: a } = t, r = gu(e, i), n = e.find(
8126
- (c) => c.type === S.LineSeries || c.type === S.RadarSeries
8134
+ (c) => c.type === h.LineSeries || c.type === h.RadarSeries
8127
8135
  )?.stackNegativeValuesToBaseline ?? !0;
8128
8136
  let s = Number.MIN_SAFE_INTEGER, o = Number.MAX_SAFE_INTEGER, u = !1;
8129
8137
  return a.forEach((c) => {
@@ -8155,27 +8163,27 @@ function Wi(t) {
8155
8163
  const { chartConfig: n, chartData: s, filteredSeriesIds: o } = t, { series: u } = n;
8156
8164
  if (u?.length > 0) {
8157
8165
  const { x: c } = u[0], l = _(n.series);
8158
- if (l === S.HistogramSeries && s.length > 0) {
8166
+ if (l === h.HistogramSeries && s.length > 0) {
8159
8167
  const d = s[0]?.[qi.Start], f = s[s.length - 1]?.[qi.End];
8160
8168
  a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
8161
8169
  } else {
8162
8170
  const d = s.filter((m) => m[c] !== null);
8163
- if ({ min: a, max: r } = ht(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === S.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === S.BoxPlotSeries) {
8171
+ if ({ min: a, max: r } = ht(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8164
8172
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
8165
8173
  const m = ue(u, o), y = k(u), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, g = n.series.map(
8166
- (h) => h.visible !== !1 ? fe({ where: h.query?.where }) : ""
8174
+ (S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
8167
8175
  );
8168
- g.length === 0 && g.push(" "), d.forEach((h) => {
8169
- m.forEach((x) => {
8170
- const v = y === F.BoxPlotMultiFieldsAndCategory ? x : void 0;
8171
- g.forEach((b) => {
8176
+ g.length === 0 && g.push(" "), d.forEach((S) => {
8177
+ m.forEach((b) => {
8178
+ const v = y === F.BoxPlotMultiFieldsAndCategory ? b : void 0;
8179
+ g.forEach((x) => {
8172
8180
  const { min: B, max: N } = hu({
8173
8181
  y: v,
8174
- splitByValue: b,
8182
+ splitByValue: x,
8175
8183
  chartSubType: y,
8176
8184
  showOutliers: !1,
8177
8185
  standardizeValues: p,
8178
- dataItem: h
8186
+ dataItem: S
8179
8187
  });
8180
8188
  B != null && B < e && (e = B), N != null && N > i && (i = N);
8181
8189
  });
@@ -8197,11 +8205,11 @@ function Wi(t) {
8197
8205
  case Te.Side:
8198
8206
  default: {
8199
8207
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
8200
- const { min: g, max: h } = ht(
8208
+ const { min: g, max: S } = ht(
8201
8209
  d,
8202
- (x) => x[p]
8210
+ (b) => b[p]
8203
8211
  );
8204
- g !== void 0 && g < e && (e = g), h !== void 0 && h > i && (i = h);
8212
+ g !== void 0 && g < e && (e = g), S !== void 0 && S > i && (i = S);
8205
8213
  });
8206
8214
  break;
8207
8215
  }
@@ -8218,11 +8226,11 @@ function Su(t) {
8218
8226
  return (a === void 0 || a.includes(n.id)) && (i === !0 && "assignToSecondValueAxis" in n && n.assignToSecondValueAxis === !0 || i !== !0 && (!("assignToSecondValueAxis" in n) || n.assignToSecondValueAxis !== !0)) && ({ id: s } = n), s;
8219
8227
  }).filter((n) => n !== "")), r;
8220
8228
  }
8221
- function yr(t) {
8229
+ function mr(t) {
8222
8230
  let e = !1;
8223
8231
  if (t) {
8224
8232
  const i = t.axes?.[0], a = i?.isLogarithmic === !0, r = i?.valueFormat?.type;
8225
- e = (r === S.NumberAxisFormat || r === S.DateAxisFormat) && a;
8233
+ e = (r === h.NumberAxisFormat || r === h.DateAxisFormat) && a;
8226
8234
  }
8227
8235
  return e;
8228
8236
  }
@@ -8230,11 +8238,11 @@ function oi(t, e) {
8230
8238
  let i = !1;
8231
8239
  return Number.isFinite(t) && t !== Number.MAX_SAFE_INTEGER && Number.isFinite(e) && e !== Number.MIN_SAFE_INTEGER && (i = t <= 0 || e <= 0), i;
8232
8240
  }
8233
- function gr(t) {
8241
+ function yr(t) {
8234
8242
  const { chartConfig: e, chartData: i, axisConfigIndex: a } = t;
8235
8243
  let r = !1;
8236
8244
  if (a === 0) {
8237
- if (yr(e)) {
8245
+ if (mr(e)) {
8238
8246
  const { minX: n, maxX: s } = Wi({
8239
8247
  chartConfig: e,
8240
8248
  chartData: i
@@ -8258,7 +8266,7 @@ function Wd(t) {
8258
8266
  const { chartConfig: e, axisConfigIndex: i, chartData: a } = t;
8259
8267
  let r = !0;
8260
8268
  const n = e?.axes?.[i];
8261
- return e && a && n?.isLogarithmic === !0 && (r = !gr({ chartConfig: e, chartData: a, axisConfigIndex: i })), r;
8269
+ return e && a && n?.isLogarithmic === !0 && (r = !yr({ chartConfig: e, chartData: a, axisConfigIndex: i })), r;
8262
8270
  }
8263
8271
  function Fu(t, e) {
8264
8272
  const i = t;
@@ -8272,11 +8280,11 @@ function bu(t, e) {
8272
8280
  const i = _(e);
8273
8281
  let a = t;
8274
8282
  const r = e?.[0];
8275
- if ((i === S.PieSeries || i === S.BoxPlotSeries || i === S.LineSeries || i === S.RadarSeries || i === S.BarSeries || i === S.HeatSeries || i === S.ComboLineAndBarSeries) && r !== void 0) {
8283
+ if ((i === h.PieSeries || i === h.BoxPlotSeries || i === h.LineSeries || i === h.RadarSeries || i === h.BarSeries || i === h.HeatSeries || i === h.ComboLineAndBarSeries) && r !== void 0) {
8276
8284
  const n = li(t);
8277
8285
  let s = n ? t : t.dataItems;
8278
8286
  if (t !== void 0) {
8279
- const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = C, d = i === S.HeatSeries ? Q.xField : r.x, f = i === S.HeatSeries ? Q.yField : void 0;
8287
+ const { originalCategoryValue: o, originalYCategoryValue: u, originalDateValue: c, xAxisField: l } = C, d = i === h.HeatSeries ? Q.xField : r.x, f = i === h.HeatSeries ? Q.yField : void 0;
8280
8288
  s = s.map((m) => {
8281
8289
  let y = m[d];
8282
8290
  m[c] !== void 0 ? y = m[c] : m[o] !== void 0 && (y = m[o]);
@@ -8305,18 +8313,18 @@ function xu(t, e) {
8305
8313
  let r = xi(i);
8306
8314
  if (r !== void 0)
8307
8315
  switch (a) {
8308
- case S.ComboLineAndBarSeries:
8309
- case S.BarSeries:
8310
- case S.LineSeries:
8311
- case S.RadarSeries:
8312
- case S.PieSeries:
8316
+ case h.ComboLineAndBarSeries:
8317
+ case h.BarSeries:
8318
+ case h.LineSeries:
8319
+ case h.RadarSeries:
8320
+ case h.PieSeries:
8313
8321
  {
8314
8322
  r = r.map(Gi), i = { dataItems: r };
8315
8323
  const { timeIntervalInfo: n, serverLimitReached: s } = t ?? {};
8316
- Sr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
8324
+ hr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
8317
8325
  }
8318
8326
  break;
8319
- case S.ScatterSeries:
8327
+ case h.ScatterSeries:
8320
8328
  i = {
8321
8329
  ...i,
8322
8330
  dataItems: r.map(Gi)
@@ -8342,21 +8350,21 @@ function Cu(t) {
8342
8350
  const c = e[u];
8343
8351
  if (c !== void 0) {
8344
8352
  let l;
8345
- if (r === S.ScatterSeries)
8353
+ if (r === h.ScatterSeries)
8346
8354
  l = c.dataItems;
8347
8355
  else if ("data" in c && c.data) {
8348
8356
  const d = c.data;
8349
8357
  "dataItems" in d && (l = d.dataItems), "outliers" in d && d.outliers && s.push(...d.outliers), "meanLines" in d && d.meanLines && s.push(...d.meanLines);
8350
8358
  }
8351
8359
  if (l)
8352
- if (a[0].type === S.HeatSeries)
8360
+ if (a[0].type === h.HeatSeries)
8353
8361
  i > 0 && l.forEach((d) => {
8354
8362
  o.set(
8355
8363
  `${d[Q.xField]}-${d[Q.yField]}`,
8356
8364
  d
8357
8365
  );
8358
8366
  });
8359
- else if (a[0].type === S.ScatterSeries) {
8367
+ else if (a[0].type === h.ScatterSeries) {
8360
8368
  const { x: d, y: f } = a[0];
8361
8369
  s.push(
8362
8370
  ...l.map((m) => ({
@@ -8393,13 +8401,13 @@ async function vu(t) {
8393
8401
  returnFeaturesExtent: f,
8394
8402
  popupTemplateFieldInfosEnabled: m,
8395
8403
  view: y
8396
- } = t, { series: p } = a, g = _(p), h = [], { maxOIDsPerSelectionQuery: x } = Vt();
8397
- for (let b = 0; b < e; b += 1) {
8398
- const B = b * x, N = (b + 1) * x - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
8404
+ } = t, { series: p } = a, g = _(p), S = [], { maxOIDsPerSelectionQuery: b } = Vt();
8405
+ for (let x = 0; x < e; x += 1) {
8406
+ const B = x * b, N = (x + 1) * b - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
8399
8407
  switch (w.objectIds = T, g) {
8400
- case S.HeatSeries:
8401
- h.push(
8402
- ur({
8408
+ case h.HeatSeries:
8409
+ S.push(
8410
+ lr({
8403
8411
  completeHeatChartDataset: !1,
8404
8412
  // we do not want the empty bins to be added for the selection
8405
8413
  chartConfig: a,
@@ -8413,21 +8421,21 @@ async function vu(t) {
8413
8421
  })
8414
8422
  );
8415
8423
  break;
8416
- case S.PieSeries:
8417
- case S.BarSeries:
8418
- case S.LineSeries:
8419
- case S.RadarSeries:
8420
- case S.ComboLineAndBarSeries:
8424
+ case h.PieSeries:
8425
+ case h.BarSeries:
8426
+ case h.LineSeries:
8427
+ case h.RadarSeries:
8428
+ case h.ComboLineAndBarSeries:
8421
8429
  if (Pe({
8422
8430
  xAxisValueFormatType: xe(a),
8423
8431
  setTimeBinningInfoWhenNotProvided: d,
8424
8432
  seriesConfig: p[0],
8425
8433
  queryObject: s
8426
8434
  })) {
8427
- const P = He(a);
8428
- "temporalBinning" in P.series[0] && P.series[0].temporalBinning && (P.series[0].temporalBinning.trimIncompleteTimeInterval = !1, rt(o, s) && (delete P.series[0].temporalBinning.start, delete P.series[0].temporalBinning.end)), h.push(
8435
+ const L = He(a);
8436
+ "temporalBinning" in L.series[0] && L.series[0].temporalBinning && (L.series[0].temporalBinning.trimIncompleteTimeInterval = !1, rt(o, s) && (delete L.series[0].temporalBinning.start, delete L.series[0].temporalBinning.end)), S.push(
8429
8437
  bi({
8430
- chartConfig: P,
8438
+ chartConfig: L,
8431
8439
  queryConfig: w,
8432
8440
  queryObject: s,
8433
8441
  chartLimits: l,
@@ -8439,7 +8447,7 @@ async function vu(t) {
8439
8447
  })
8440
8448
  );
8441
8449
  } else
8442
- h.push(
8450
+ S.push(
8443
8451
  eu({
8444
8452
  queryObject: s,
8445
8453
  chartConfig: a,
@@ -8452,8 +8460,8 @@ async function vu(t) {
8452
8460
  })
8453
8461
  );
8454
8462
  break;
8455
- case S.BoxPlotSeries:
8456
- h.push(
8463
+ case h.BoxPlotSeries:
8464
+ S.push(
8457
8465
  tu({
8458
8466
  queryObject: s,
8459
8467
  chartConfig: a,
@@ -8469,9 +8477,9 @@ async function vu(t) {
8469
8477
  })
8470
8478
  );
8471
8479
  break;
8472
- case S.ScatterSeries:
8473
- h.push(
8474
- cr({
8480
+ case h.ScatterSeries:
8481
+ S.push(
8482
+ ur({
8475
8483
  queryObject: s,
8476
8484
  chartConfig: a,
8477
8485
  queryConfig: w,
@@ -8490,8 +8498,8 @@ async function vu(t) {
8490
8498
  })
8491
8499
  );
8492
8500
  break;
8493
- case S.HistogramSeries:
8494
- h.push(
8501
+ case h.HistogramSeries:
8502
+ S.push(
8495
8503
  Mo({
8496
8504
  queryObject: s,
8497
8505
  queryConfig: w,
@@ -8503,7 +8511,7 @@ async function vu(t) {
8503
8511
  break;
8504
8512
  }
8505
8513
  }
8506
- return await Promise.all(h);
8514
+ return await Promise.all(S);
8507
8515
  }
8508
8516
  async function Yd(t) {
8509
8517
  const {
@@ -8523,13 +8531,13 @@ async function Yd(t) {
8523
8531
  viewExtentUpdated: y,
8524
8532
  runtimeDataFilters: p,
8525
8533
  ignoreViewExtent: g,
8526
- returnSelectionOIDs: h,
8527
- selectionData: x
8528
- } = t, { series: v } = e, { selectionItems: b, selectionOIDs: B } = x ?? {};
8534
+ returnSelectionOIDs: S,
8535
+ selectionData: b
8536
+ } = t, { series: v } = e, { selectionItems: x, selectionOIDs: B } = b ?? {};
8529
8537
  let N;
8530
- const T = _(v), w = T !== S.HistogramSeries && T !== S.HeatSeries && b !== void 0 && b.length > 0 && !(v[0].x in b[0]) && !(ce in b[0]) && !(C.boxPlot.boxPlotCategory in b[0]);
8531
- if (y !== !0 && h !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
8532
- const A = xi(i), I = ja({
8538
+ const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && x !== void 0 && x.length > 0 && !(v[0].x in x[0]) && !(ce in x[0]) && !(C.boxPlot.boxPlotCategory in x[0]);
8539
+ if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
8540
+ const A = xi(i), I = _a({
8533
8541
  queryObject: s,
8534
8542
  chartConfig: e,
8535
8543
  runtimeDataFilters: p,
@@ -8537,12 +8545,12 @@ async function Yd(t) {
8537
8545
  view: m
8538
8546
  });
8539
8547
  if (A !== void 0 && !vn({ dataContext: A[0], chartConfig: e, chartLimits: c }))
8540
- N = A.filter((L) => {
8541
- const O = L[W.uniqueIdsName];
8548
+ N = A.filter((P) => {
8549
+ const O = P[W.uniqueIdsName];
8542
8550
  return typeof O == "number" || typeof O == "string" ? B?.includes(O) : !1;
8543
8551
  });
8544
8552
  else if (B?.[0] !== void 0 && I !== void 0) {
8545
- const { maxOIDsPerSelectionQuery: L } = Vt(), O = Math.ceil(B.length / L), V = te(e.series[0]?.query?.where), $ = await vu({
8553
+ const { maxOIDsPerSelectionQuery: P } = Vt(), O = Math.ceil(B.length / P), V = te(e.series[0]?.query?.where), $ = await vu({
8546
8554
  numberOfQueries: O,
8547
8555
  selectionOIDs: B,
8548
8556
  queryConfig: I,
@@ -8568,9 +8576,9 @@ async function Yd(t) {
8568
8576
  return N;
8569
8577
  }
8570
8578
  const Zd = {
8571
- shouldCheckDataMinMaxForLogScaleOnXAxis: yr,
8579
+ shouldCheckDataMinMaxForLogScaleOnXAxis: mr,
8572
8580
  minMaxHasZeroOrNegativeValues: oi,
8573
- isChartWithZeroOrNegativeValues: gr
8581
+ isChartWithZeroOrNegativeValues: yr
8574
8582
  };
8575
8583
  export {
8576
8584
  pu as $,
@@ -8605,7 +8613,7 @@ export {
8605
8613
  Ec as a$,
8606
8614
  Pt as a0,
8607
8615
  qd as a1,
8608
- Ya as a2,
8616
+ Ua as a2,
8609
8617
  yi as a3,
8610
8618
  ai as a4,
8611
8619
  ri as a5,
@@ -8615,7 +8623,7 @@ export {
8615
8623
  Mn as a9,
8616
8624
  Zs as aA,
8617
8625
  ks as aB,
8618
- Qa as aC,
8626
+ ka as aC,
8619
8627
  to as aD,
8620
8628
  Yd as aE,
8621
8629
  Re as aF,
@@ -8640,8 +8648,8 @@ export {
8640
8648
  Dc as aY,
8641
8649
  Hc as aZ,
8642
8650
  Li as a_,
8643
- $a as aa,
8644
- ka as ab,
8651
+ Ra as aa,
8652
+ $a as ab,
8645
8653
  Fd as ac,
8646
8654
  ao as ad,
8647
8655
  vc as ae,
@@ -8652,18 +8660,18 @@ export {
8652
8660
  Id as aj,
8653
8661
  ge as ak,
8654
8662
  bo as al,
8655
- Ha as am,
8663
+ ja as am,
8656
8664
  ve as an,
8657
- Ma as ao,
8658
- Oa as ap,
8665
+ Pa as ao,
8666
+ Da as ap,
8659
8667
  yo as aq,
8660
8668
  bd as ar,
8661
8669
  mo as as,
8662
8670
  ii as at,
8663
8671
  Gs as au,
8664
8672
  hs as av,
8665
- Ra as aw,
8666
- Va as ax,
8673
+ Va as aw,
8674
+ qa as ax,
8667
8675
  Sd as ay,
8668
8676
  eo as az,
8669
8677
  Ge as b,
@@ -8709,21 +8717,21 @@ export {
8709
8717
  io as bb,
8710
8718
  zd as bc,
8711
8719
  Fc as bd,
8712
- ca as be,
8720
+ ua as be,
8713
8721
  Ee as bf,
8714
- dr as bg,
8722
+ cr as bg,
8715
8723
  Bd as bh,
8716
- fr as bi,
8724
+ dr as bi,
8717
8725
  Yc as bj,
8718
8726
  St as bk,
8719
8727
  fo as bl,
8720
8728
  pd as bm,
8721
- ga as bn,
8729
+ ya as bn,
8722
8730
  Pe as bo,
8723
8731
  ro as bp,
8724
8732
  Cd as bq,
8725
8733
  bc as br,
8726
- da as bs,
8734
+ ca as bs,
8727
8735
  fn as bt,
8728
8736
  vd as bu,
8729
8737
  wd as bv,
@@ -8763,7 +8771,7 @@ export {
8763
8771
  md as cR,
8764
8772
  We as cS,
8765
8773
  qi as cT,
8766
- Ta as cU,
8774
+ Na as cU,
8767
8775
  Dd as cV,
8768
8776
  ad as cW,
8769
8777
  Hd as cX,
@@ -8803,8 +8811,8 @@ export {
8803
8811
  id as d3,
8804
8812
  jn as d4,
8805
8813
  mi as d5,
8806
- lr as d6,
8807
- ja as e,
8814
+ or as d6,
8815
+ _a as e,
8808
8816
  Zc as f,
8809
8817
  Qe as g,
8810
8818
  Y as h,
@@ -8817,7 +8825,7 @@ export {
8817
8825
  Wc as o,
8818
8826
  Yt as p,
8819
8827
  Gc as q,
8820
- fa as r,
8828
+ da as r,
8821
8829
  Cc as s,
8822
8830
  mn as t,
8823
8831
  yn as u,