@arcgis/charts-components 5.2.0-next.135 → 5.2.0-next.136

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 (262) hide show
  1. package/dist/cdn/{237DFICJ.js → 2HRUBGST.js} +1 -1
  2. package/dist/cdn/{ZF7Q5ICW.js → 35PBCGSN.js} +1 -1
  3. package/dist/cdn/{J7FI5MUJ.js → 367L3LQO.js} +1 -1
  4. package/dist/cdn/{3RHIIHYK.js → 3GKRNMRV.js} +1 -1
  5. package/dist/cdn/{2WMXFFGK.js → 3OER7BU2.js} +1 -1
  6. package/dist/cdn/{YVLG5MT3.js → 3SCHRJRU.js} +1 -1
  7. package/dist/cdn/{AXYWDXEL.js → 4CZ42XEO.js} +1 -1
  8. package/dist/cdn/{FJNF77FI.js → 4O2KDCKM.js} +1 -1
  9. package/dist/cdn/{XOUPCPXQ.js → 4W7SCR55.js} +1 -1
  10. package/dist/cdn/{7V464FLT.js → 4ZLCIBER.js} +1 -1
  11. package/dist/cdn/{LYAWKYBD.js → 5B3ABOG3.js} +1 -1
  12. package/dist/cdn/5L7BAEX5.js +2 -0
  13. package/dist/cdn/{LQLS3XBM.js → 6EDLAC52.js} +1 -1
  14. package/dist/cdn/{54MARFOX.js → 6RUBYJSF.js} +1 -1
  15. package/dist/cdn/{NSEM52TJ.js → 7UVQYW4Q.js} +1 -1
  16. package/dist/cdn/{4HRC4N36.js → AJLZM4IQ.js} +1 -1
  17. package/dist/cdn/{JM3JDVI3.js → AYMLPZBF.js} +1 -1
  18. package/dist/cdn/{5FLFQNR7.js → B5TTRVJI.js} +1 -1
  19. package/dist/cdn/{2TH2NLKH.js → BIN4ZNTH.js} +1 -1
  20. package/dist/cdn/{JRO7TCEJ.js → CIAJ52ML.js} +1 -1
  21. package/dist/cdn/{7V56LIEQ.js → CPHTAVGQ.js} +1 -1
  22. package/dist/cdn/{MVMW7ICK.js → D7RKUPNX.js} +1 -1
  23. package/dist/cdn/{Z4LTOPMQ.js → DBOWNSG5.js} +1 -1
  24. package/dist/cdn/DKIBLRSR.js +3 -0
  25. package/dist/cdn/{U62CTMLS.js → E2D4QDWN.js} +1 -1
  26. package/dist/cdn/{VBJ6455L.js → E3FKZBYQ.js} +1 -1
  27. package/dist/cdn/{6XU3HVJF.js → EHQJJN7C.js} +1 -1
  28. package/dist/cdn/{Q7W6SXYC.js → EIA2JM3O.js} +1 -1
  29. package/dist/cdn/{D6AJNGRK.js → ENYTXX6O.js} +1 -1
  30. package/dist/cdn/{GDMO4GD3.js → EP5MHPGF.js} +1 -1
  31. package/dist/cdn/{5J4YCXT7.js → FN4N6E4Z.js} +1 -1
  32. package/dist/cdn/{EHWOAZN7.js → FNNNRYPK.js} +1 -1
  33. package/dist/cdn/{E4E2WV6B.js → G4BWHPA3.js} +1 -1
  34. package/dist/cdn/{ZWDYQ77Q.js → GUDVONR6.js} +1 -1
  35. package/dist/cdn/{V5MTKOJP.js → GZJZ5V7Q.js} +1 -1
  36. package/dist/cdn/{SZZ5ARZP.js → HDBY2GFV.js} +1 -1
  37. package/dist/cdn/{BWHTYMQB.js → HHXJ7N5R.js} +1 -1
  38. package/dist/cdn/{FPYTBEV3.js → HPXU7UB6.js} +1 -1
  39. package/dist/cdn/{QDALL6M3.js → HYMJRAL3.js} +1 -1
  40. package/dist/cdn/{B2L54U6A.js → I46I6KOY.js} +1 -1
  41. package/dist/cdn/{JRBXQRR3.js → I46OAPO7.js} +1 -1
  42. package/dist/cdn/{W5EEE7AO.js → IA5OR4WK.js} +1 -1
  43. package/dist/cdn/{WT5EQBFC.js → IFGLNWRZ.js} +1 -1
  44. package/dist/cdn/{KG5S3UIQ.js → IGQE3GKE.js} +1 -1
  45. package/dist/cdn/{VVXOD6FU.js → IP75JGZY.js} +1 -1
  46. package/dist/cdn/{PB5EMF72.js → IV6R3TUP.js} +1 -1
  47. package/dist/cdn/{LPQNRUNB.js → IXW7366K.js} +2 -2
  48. package/dist/cdn/{BEMMMLF7.js → JEAGQZ6U.js} +1 -1
  49. package/dist/cdn/{R6IRQAQX.js → JMTJXHWM.js} +1 -1
  50. package/dist/cdn/{F347H3VP.js → K6M6N5Y4.js} +1 -1
  51. package/dist/cdn/{CIHQXJ22.js → KYLV3VYF.js} +1 -1
  52. package/dist/cdn/{O32HVT23.js → M3XUZXNC.js} +1 -1
  53. package/dist/cdn/{UMM6WL6A.js → MRB4SVH7.js} +1 -1
  54. package/dist/cdn/{BZFXEB67.js → MT4UZZHO.js} +1 -1
  55. package/dist/cdn/{SCGAGWRM.js → MTIRF2JT.js} +1 -1
  56. package/dist/cdn/{T5MBXDFL.js → MWVAPA6R.js} +1 -1
  57. package/dist/cdn/{35Z5G5XD.js → N64ZNSEI.js} +1 -1
  58. package/dist/cdn/{QAYSFUD7.js → NFNY5YEZ.js} +1 -1
  59. package/dist/cdn/{NSOVRPRE.js → NFZIKRWX.js} +1 -1
  60. package/dist/cdn/{IAZC7AQD.js → NTTEKGFE.js} +1 -1
  61. package/dist/cdn/{F7AX7464.js → O6OCB5IT.js} +1 -1
  62. package/dist/cdn/{CQFH2M2V.js → PNFPQKYB.js} +2 -2
  63. package/dist/cdn/{F2NO4I6W.js → PQPHTXNR.js} +1 -1
  64. package/dist/cdn/{LWTFQAHK.js → PSCLY3DM.js} +19 -20
  65. package/dist/cdn/{RLWLROKT.js → QHM4EVYR.js} +1 -1
  66. package/dist/cdn/{QWH37V5U.js → QKGSVBTA.js} +1 -1
  67. package/dist/cdn/{TG6R3HGR.js → R43SLOWX.js} +1 -1
  68. package/dist/cdn/{FWSQ6ZIW.js → RFSLZQXB.js} +1 -1
  69. package/dist/cdn/RKCOLO2T.js +2 -0
  70. package/dist/cdn/{MHTOZK7U.js → SADF3HXI.js} +1 -1
  71. package/dist/cdn/{AEKQA723.js → SDFAZNSE.js} +1 -1
  72. package/dist/cdn/{3EZTPHQL.js → SO5USEBM.js} +1 -1
  73. package/dist/cdn/{TAXYRFNW.js → TNOEBWC6.js} +1 -1
  74. package/dist/cdn/{FF5R6NM4.js → TOQ5LNA2.js} +1 -1
  75. package/dist/cdn/{THOUIYL5.js → TXG73R7I.js} +1 -1
  76. package/dist/cdn/{BGRTZDUX.js → W6CVNIZI.js} +1 -1
  77. package/dist/cdn/{7ZIK7CXK.js → WDWEALIE.js} +1 -1
  78. package/dist/cdn/{YZVWDBRN.js → WOXI3AZO.js} +1 -1
  79. package/dist/cdn/{DLX6VFTM.js → WVAWR5QJ.js} +1 -1
  80. package/dist/cdn/{IRHBAPVI.js → WZQU3ETT.js} +1 -1
  81. package/dist/cdn/{2MMQK7WY.js → X7JF37XY.js} +1 -1
  82. package/dist/cdn/{XGVPNZ4W.js → XID55HFP.js} +1 -1
  83. package/dist/cdn/{NWB2XYFC.js → XKUVYPZZ.js} +1 -1
  84. package/dist/cdn/{RRLXLHLQ.js → XVOJWRDP.js} +1 -1
  85. package/dist/cdn/{TXLZGJBS.js → Y7BPMJVM.js} +1 -1
  86. package/dist/cdn/{XL73XJKZ.js → YG3RPQLN.js} +1 -1
  87. package/dist/cdn/{HKJALKXI.js → ZAYWPPRC.js} +1 -1
  88. package/dist/cdn/ZOIPJDWO.js +2 -0
  89. package/dist/cdn/{FBSOJYSL.js → ZUCZVZTB.js} +1 -1
  90. package/dist/cdn/assets/charts-action-bar/t9n/messages.ar.json +1 -1
  91. package/dist/cdn/assets/charts-action-bar/t9n/messages.bg.json +1 -1
  92. package/dist/cdn/assets/charts-action-bar/t9n/messages.bs.json +1 -1
  93. package/dist/cdn/assets/charts-action-bar/t9n/messages.ca.json +1 -1
  94. package/dist/cdn/assets/charts-action-bar/t9n/messages.cs.json +1 -1
  95. package/dist/cdn/assets/charts-action-bar/t9n/messages.da.json +1 -1
  96. package/dist/cdn/assets/charts-action-bar/t9n/messages.de.json +1 -1
  97. package/dist/cdn/assets/charts-action-bar/t9n/messages.el.json +1 -1
  98. package/dist/cdn/assets/charts-action-bar/t9n/messages.es.json +1 -1
  99. package/dist/cdn/assets/charts-action-bar/t9n/messages.et.json +1 -1
  100. package/dist/cdn/assets/charts-action-bar/t9n/messages.fi.json +1 -1
  101. package/dist/cdn/assets/charts-action-bar/t9n/messages.fr.json +1 -1
  102. package/dist/cdn/assets/charts-action-bar/t9n/messages.he.json +1 -1
  103. package/dist/cdn/assets/charts-action-bar/t9n/messages.hr.json +1 -1
  104. package/dist/cdn/assets/charts-action-bar/t9n/messages.hu.json +1 -1
  105. package/dist/cdn/assets/charts-action-bar/t9n/messages.id.json +1 -1
  106. package/dist/cdn/assets/charts-action-bar/t9n/messages.it.json +1 -1
  107. package/dist/cdn/assets/charts-action-bar/t9n/messages.ja.json +1 -1
  108. package/dist/cdn/assets/charts-action-bar/t9n/messages.ko.json +1 -1
  109. package/dist/cdn/assets/charts-action-bar/t9n/messages.lt.json +1 -1
  110. package/dist/cdn/assets/charts-action-bar/t9n/messages.lv.json +1 -1
  111. package/dist/cdn/assets/charts-action-bar/t9n/messages.nl.json +1 -1
  112. package/dist/cdn/assets/charts-action-bar/t9n/messages.no.json +1 -1
  113. package/dist/cdn/assets/charts-action-bar/t9n/messages.pl.json +1 -1
  114. package/dist/cdn/assets/charts-action-bar/t9n/messages.pt-BR.json +1 -1
  115. package/dist/cdn/assets/charts-action-bar/t9n/messages.pt-PT.json +1 -1
  116. package/dist/cdn/assets/charts-action-bar/t9n/messages.ro.json +1 -1
  117. package/dist/cdn/assets/charts-action-bar/t9n/messages.ru.json +1 -1
  118. package/dist/cdn/assets/charts-action-bar/t9n/messages.sk.json +1 -1
  119. package/dist/cdn/assets/charts-action-bar/t9n/messages.sl.json +1 -1
  120. package/dist/cdn/assets/charts-action-bar/t9n/messages.sr.json +1 -1
  121. package/dist/cdn/assets/charts-action-bar/t9n/messages.sv.json +1 -1
  122. package/dist/cdn/assets/charts-action-bar/t9n/messages.th.json +1 -1
  123. package/dist/cdn/assets/charts-action-bar/t9n/messages.tr.json +1 -1
  124. package/dist/cdn/assets/charts-action-bar/t9n/messages.uk.json +1 -1
  125. package/dist/cdn/assets/charts-action-bar/t9n/messages.vi.json +1 -1
  126. package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-CN.json +1 -1
  127. package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-HK.json +1 -1
  128. package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-TW.json +1 -1
  129. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ar.json +1 -1
  130. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.bg.json +1 -1
  131. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.bs.json +1 -1
  132. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ca.json +1 -1
  133. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.cs.json +1 -1
  134. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.da.json +1 -1
  135. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.de.json +1 -1
  136. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.el.json +1 -1
  137. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.es.json +1 -1
  138. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.et.json +1 -1
  139. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.fi.json +1 -1
  140. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.fr.json +1 -1
  141. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.he.json +1 -1
  142. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.hr.json +1 -1
  143. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.hu.json +1 -1
  144. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.id.json +1 -1
  145. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.it.json +1 -1
  146. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ja.json +1 -1
  147. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ko.json +1 -1
  148. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.lt.json +1 -1
  149. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.lv.json +1 -1
  150. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.nl.json +1 -1
  151. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.no.json +1 -1
  152. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.pl.json +1 -1
  153. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.pt-BR.json +1 -1
  154. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.pt-PT.json +1 -1
  155. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ro.json +1 -1
  156. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ru.json +1 -1
  157. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sk.json +1 -1
  158. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sl.json +1 -1
  159. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sr.json +1 -1
  160. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sv.json +1 -1
  161. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.th.json +1 -1
  162. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.tr.json +1 -1
  163. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.uk.json +1 -1
  164. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.vi.json +1 -1
  165. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-CN.json +1 -1
  166. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-HK.json +1 -1
  167. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-TW.json +1 -1
  168. package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
  169. package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
  170. package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
  171. package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
  172. package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
  173. package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
  174. package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
  175. package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
  176. package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
  177. package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
  178. package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
  179. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  180. package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
  181. package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
  182. package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
  183. package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
  184. package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
  185. package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
  186. package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
  187. package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
  188. package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
  189. package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
  190. package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
  191. package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
  192. package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
  193. package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
  194. package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
  196. package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
  197. package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
  198. package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
  199. package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
  200. package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
  201. package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
  202. package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
  203. package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
  204. package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
  205. package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
  206. package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
  207. package/dist/cdn/index.js +1 -1
  208. package/dist/cdn/model/shared/setup-utils.js +1 -1
  209. package/dist/chunks/axis-lines-symbol.js +1 -1
  210. package/dist/chunks/bar-chart-model.js +1 -1
  211. package/dist/chunks/box-plot-data.js +16 -16
  212. package/dist/chunks/box-plot-model.js +6 -6
  213. package/dist/chunks/chart-model.js +1 -1
  214. package/dist/chunks/combo-bar-line-chart-model.js +7 -7
  215. package/dist/chunks/data-labels-symbol.js +1 -1
  216. package/dist/chunks/data-labels-visibility.js +1 -1
  217. package/dist/chunks/gauge-model.js +8 -8
  218. package/dist/chunks/heat-chart-model.js +1 -1
  219. package/dist/chunks/histogram-data.js +1 -1
  220. package/dist/chunks/histogram-model.js +1 -1
  221. package/dist/chunks/index.js +419 -405
  222. package/dist/chunks/index2.js +1 -4
  223. package/dist/chunks/index3.js +105 -104
  224. package/dist/chunks/line-chart-model.js +1 -1
  225. package/dist/chunks/model-setter.js +1 -1
  226. package/dist/chunks/model-with-y-guides.js +4 -4
  227. package/dist/chunks/pie-chart-data.js +5 -5
  228. package/dist/chunks/pie-chart-model.js +8 -8
  229. package/dist/chunks/radar-chart-model.js +4 -4
  230. package/dist/chunks/rounded-corners.js +1 -1
  231. package/dist/chunks/scatterplot-model.js +10 -10
  232. package/dist/chunks/serial-chart-data.js +299 -299
  233. package/dist/chunks/serial-chart-model.js +1 -1
  234. package/dist/chunks/series-length.js +1 -1
  235. package/dist/chunks/utils.js +18 -18
  236. package/dist/chunks/utils2.js +1 -1
  237. package/dist/chunks/web-component-utils.js +1 -1
  238. package/dist/chunks/x-bounds.js +14 -14
  239. package/dist/components/arcgis-chart/customElement.js +3310 -3305
  240. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +5 -5
  241. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
  242. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  243. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +37 -37
  244. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  245. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +11 -11
  246. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +4 -4
  248. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  249. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  250. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  252. package/dist/docs/api.json +1 -1
  253. package/dist/docs/docs.json +1 -1
  254. package/dist/docs/web-types.json +1 -1
  255. package/dist/index.js +418 -417
  256. package/dist/utils/chart-config/converter/index.js +1 -1
  257. package/dist/utils/defaults/index.d.ts +5 -0
  258. package/package.json +4 -4
  259. package/dist/cdn/NHMG5ROX.js +0 -2
  260. package/dist/cdn/O5YAEMTL.js +0 -3
  261. package/dist/cdn/P5HRXBWY.js +0 -2
  262. package/dist/cdn/QBWCTB6A.js +0 -2
@@ -2,12 +2,12 @@
2
2
  import { cloneDeep as Re, isEqual as Ue, isArray as hi, isNil as Wa, isEmpty as ja, memoize as Qe, sortBy as Ei } from "es-toolkit/compat";
3
3
  import { C, i as ne, a as S, b as ai, t as Xa, g as yr, f as Si, v as ni, w as Pe, x as Kt, y as Ut, z as pr, r as Ya, B as Za, e as qi, n as hr } from "./index2.js";
4
4
  import { a as si, b as xe, d as X, e as at, c as ce } from "./rest-js-object-literals.js";
5
- import { a as h, f as Ja, e as U, d as D, b as ie, l as he, g as ye, s as ee, G as Sr, c as Ce, t as Ee, h as Se, S as Fr, o as nt } from "./chart-object-literals.js";
5
+ import { a as h, f as Ja, e as U, d as D, b as re, l as he, g as ye, s as ee, G as Sr, c as Ce, t as Ee, h as Se, S as Fr, o as nt } from "./chart-object-literals.js";
6
6
  import br from "@arcgis/core/Graphic.js";
7
7
  import * as Gt from "@arcgis/core/renderers/support/jsonUtils.js";
8
8
  import * as ei from "@arcgis/core/symbols/support/symbolUtils.js";
9
9
  import { g as $, s as Ka } from "./series-types.js";
10
- import { q as Q, p as oi, S as qe, H as ft, g as xr, T as en, l as zt, i as H, U as Wt, V as tn, L as Ze, a as Ri, C as Cr, N as rn, O as an, r as Br } from "./index3.js";
10
+ import { q as Q, p as oi, T as qe, H as ft, g as xr, U as en, l as zt, i as H, V as Wt, W as tn, L as Ze, a as Ri, C as Cr, O as rn, P as an, r as Br } from "./index3.js";
11
11
  import { i as te, c as Ge, d as vr, e as nn, a as pt, f as sn, g as on } from "./type-guards.js";
12
12
  import Vi from "@arcgis/core/layers/support/FeatureFilter.js";
13
13
  import ln from "@arcgis/core/smartMapping/statistics/histogram.js";
@@ -277,7 +277,7 @@ function $n(t) {
277
277
  return t?.capabilities?.queryAttributeBins?.supportsFixedInterval === !0 && t?.capabilities?.queryAttributeBins?.supportsStackBy;
278
278
  }
279
279
  function pd(t) {
280
- const { chartConfig: e, queryObject: i, options: r } = t, a = $(e?.series), n = re(e?.series[0]?.query?.where);
280
+ const { chartConfig: e, queryObject: i, options: r } = t, a = $(e?.series), n = ie(e?.series[0]?.query?.where);
281
281
  return !(a === h.HeatSeries || e && De({
282
282
  xAxisValueFormatType: ve(e),
283
283
  setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
@@ -365,22 +365,22 @@ async function Hn(t) {
365
365
  let m;
366
366
  const g = W(e), p = pe(g);
367
367
  if (p) {
368
- const F = { where: Y([l, p.definitionExpression]) }, x = { query: F, signal: o }, A = Ke(c)?.extent?.toJSON();
368
+ const F = { where: Y([l, p.definitionExpression]) }, b = { query: F, signal: o }, A = Ke(c)?.extent?.toJSON();
369
369
  if (A !== void 0) {
370
- const b = _n(d), { xmin: v, ymin: T, xmax: N, ymax: L } = A;
371
- F.geometryType = "esriGeometryEnvelope", F.geometry = `${v},${T},${N},${L}`, u !== void 0 && (F.distance = u.toString()), b !== void 0 && (F.units = b, c?.spatialReference?.wkid != null && (F.inSR = c.spatialReference.wkid.toString()));
370
+ const x = _n(d), { xmin: v, ymin: T, xmax: N, ymax: L } = A;
371
+ F.geometryType = "esriGeometryEnvelope", F.geometry = `${v},${T},${N},${L}`, u !== void 0 && (F.distance = u.toString()), x !== void 0 && (F.units = x, c?.spatialReference?.wkid != null && (F.inSR = c.spatialReference.wkid.toString()));
372
372
  }
373
373
  f && (F.time = `${f[0]},${f[1]}`);
374
374
  const B = `${p.url}/${p.layerId}/queryAnalytic?f=${r}&dataFormat=${a}&outAnalytics=${n}`;
375
375
  try {
376
- m = (await Ot(B, x)).data?.features?.[0]?.attributes;
377
- } catch (b) {
376
+ m = (await Ot(B, b)).data?.features?.[0]?.attributes;
377
+ } catch (x) {
378
378
  const v = s ?? (await ht(
379
379
  ze(document.documentElement).t9nLocale,
380
380
  St("./assets/common/t9n"),
381
381
  "messages."
382
382
  )).errorStrings;
383
- throw new oe(le.QueryFeaturesError, v.errors.queryError, b);
383
+ throw new oe(le.QueryFeaturesError, v.errors.queryError, x);
384
384
  }
385
385
  }
386
386
  return m;
@@ -406,7 +406,7 @@ async function Un(t) {
406
406
  let c;
407
407
  const u = W(i), d = $n(u);
408
408
  if (d && i && "queryAttributeBins" in i && i.queryAttributeBins) {
409
- const { x: f, y: m, xTemporalBinning: g, yTemporalBinning: p } = e.series[0], { outTimeZone: y, firstDayOfWeek: F, includeLeapDay: x } = e, A = as({
409
+ const { x: f, y: m, xTemporalBinning: g, yTemporalBinning: p } = e.series[0], { outTimeZone: y, firstDayOfWeek: F, includeLeapDay: b } = e, A = as({
410
410
  queryObject: i,
411
411
  queryConfig: r,
412
412
  x: f,
@@ -415,7 +415,7 @@ async function Un(t) {
415
415
  yTemporalBinning: p,
416
416
  configTimeZone: y,
417
417
  firstDayOfWeek: F,
418
- includeLeapDay: x,
418
+ includeLeapDay: b,
419
419
  view: a,
420
420
  syncViewTimeZone: n,
421
421
  returnStatisticsAggregatedIds: s
@@ -620,7 +620,7 @@ async function Fe(t) {
620
620
  const d = W(e), f = a ?? 1, m = Rr(d);
621
621
  if (n !== !0 && f > m && d?.capabilities?.query.supportsPagination) {
622
622
  let g = 0, p = 0;
623
- const y = Math.ceil(f / m), F = Math.ceil(y / Q.maxParallelRequests), x = [];
623
+ const y = Math.ceil(f / m), F = Math.ceil(y / Q.maxParallelRequests), b = [];
624
624
  for (; p < F; ) {
625
625
  g = p * Q.maxParallelRequests * m;
626
626
  const B = jn({
@@ -634,9 +634,9 @@ async function Fe(t) {
634
634
  abortKey: l,
635
635
  abortSignal: c
636
636
  });
637
- x.push(B), p += 1;
637
+ b.push(B), p += 1;
638
638
  }
639
- u = (await Promise.all(x)).flat();
639
+ u = (await Promise.all(b)).flat();
640
640
  } else (Number.isNaN(f) || f >= 0) && (u = await Er({
641
641
  queryObject: e,
642
642
  queryConfig: i,
@@ -788,32 +788,32 @@ function jt(t) {
788
788
  useViewTimeZone: o,
789
789
  returnStatisticsAggregatedIds: l
790
790
  } = t, { where: c, outStatistics: u, geometry: d, distance: f, units: m, timeExtent: g, returnDistinctValues: p } = r ?? {}, y = W(i);
791
- let x = pe(y)?.createQuery() ?? new ki(), A;
791
+ let b = pe(y)?.createQuery() ?? new ki(), A;
792
792
  const B = Zt(y).idFields;
793
- if (e === "AttributeBinsQuery" && r?.objectIds?.[0] !== void 0 && B && (A = `${B} IN (${r.objectIds.join(",")})`), e === "AttributeBinsQuery" && (x = new fn(x.toJSON()), Ae(i).find((N) => N.name === s)?.type !== X.DateOnly)) {
793
+ if (e === "AttributeBinsQuery" && r?.objectIds?.[0] !== void 0 && B && (A = `${B} IN (${r.objectIds.join(",")})`), e === "AttributeBinsQuery" && (b = new fn(b.toJSON()), Ae(i).find((N) => N.name === s)?.type !== X.DateOnly)) {
794
794
  const N = Intl.DateTimeFormat().resolvedOptions().timeZone, L = o && a && "timeZone" in a ? a.timeZone : void 0;
795
795
  let P = n ?? L ?? N;
796
- P === "unknown" ? P = "Etc/UTC" : P === "system" && (P = N), x.outTimeZone = P;
796
+ P === "unknown" ? P = "Etc/UTC" : P === "system" && (P = N), b.outTimeZone = P;
797
797
  }
798
- if (x.where = Y([x.where, c, A]), "returnDistinctValues" in x && (x.returnDistinctValues = p ?? !1), u !== void 0) {
798
+ if (b.where = Y([b.where, c, A]), "returnDistinctValues" in b && (b.returnDistinctValues = p ?? !1), u !== void 0) {
799
799
  const v = Qn(y);
800
- x.outStatistics = u.filter(
800
+ b.outStatistics = u.filter(
801
801
  (T) => T.statisticType !== D.EnvelopeAggregate || v
802
802
  ).map((T) => mn.fromJSON(T));
803
803
  }
804
- const b = Ke(d);
805
- return b !== void 0 && (x.geometry = b, r?.spatialRelationship && (x.spatialRelationship = r.spatialRelationship), Dr(y) && (f !== void 0 && (x.distance = f), m !== void 0 && (x.units = m))), g && (x.timeExtent = new Nr({
804
+ const x = Ke(d);
805
+ return x !== void 0 && (b.geometry = x, r?.spatialRelationship && (b.spatialRelationship = r.spatialRelationship), Dr(y) && (f !== void 0 && (b.distance = f), m !== void 0 && (b.units = m))), g && (b.timeExtent = new Nr({
806
806
  start: g?.[0],
807
807
  end: g?.[1]
808
- })), Jn(x) && (x.cacheHint = !0), l && (x instanceof ki ? x.returnStatisticsAggregatedIds = !0 : x.returnAggregateIds = !0), x;
808
+ })), Jn(b) && (b.cacheHint = !0), l && (b instanceof ki ? b.returnStatisticsAggregatedIds = !0 : b.returnAggregateIds = !0), b;
809
809
  }
810
810
  function ts(t) {
811
811
  let e;
812
812
  switch (t) {
813
- case ie.Start:
813
+ case re.Start:
814
814
  e = "first";
815
815
  break;
816
- case ie.End:
816
+ case re.End:
817
817
  e = "last";
818
818
  break;
819
819
  }
@@ -830,7 +830,7 @@ function is(t) {
830
830
  view: o,
831
831
  syncViewTimeZone: l,
832
832
  returnStatisticsAggregatedIds: c
833
- } = t, { unit: u, size: d, timeAggregationType: f, start: m, end: g, offset: p, outTimeZone: y } = r, F = W(e), x = jt({
833
+ } = t, { unit: u, size: d, timeAggregationType: f, start: m, end: g, offset: p, outTimeZone: y } = r, F = W(e), b = jt({
834
834
  queryType: "AttributeBinsQuery",
835
835
  queryObject: e,
836
836
  queryConfig: i,
@@ -841,22 +841,22 @@ function is(t) {
841
841
  useViewTimeZone: l ?? !1,
842
842
  returnStatisticsAggregatedIds: c
843
843
  }), A = qr(a);
844
- if (x.lowerBoundaryAlias = A.lowerBoundaryAlias, x.upperBoundaryAlias = A.upperBoundaryAlias, x.binParameters = {
844
+ if (b.lowerBoundaryAlias = A.lowerBoundaryAlias, b.upperBoundaryAlias = A.upperBoundaryAlias, b.binParameters = {
845
845
  type: "date",
846
846
  field: a,
847
847
  interval: { unit: u, value: d },
848
848
  start: m,
849
849
  end: g,
850
850
  offset: p ? { unit: p.unit, value: p.size } : null
851
- }, x.binParameters.type === "date" && (F?.capabilities?.queryAttributeBins?.supportsSnapToData && (x.binParameters.snapToData = ts(f)), F?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (x.binParameters.returnFullIntervalBin = !0)), !ne(n)) {
852
- const b = pe(F)?.fields.find((v) => v.name === n)?.type;
853
- (!b || b === "string" || b === "integer" || b === "small-integer" || b === "big-integer" || b === "double") && (x.binParameters.stackBy = {
851
+ }, b.binParameters.type === "date" && (F?.capabilities?.queryAttributeBins?.supportsSnapToData && (b.binParameters.snapToData = ts(f)), F?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (b.binParameters.returnFullIntervalBin = !0)), !ne(n)) {
852
+ const x = pe(F)?.fields.find((v) => v.name === n)?.type;
853
+ (!x || x === "string" || x === "integer" || x === "small-integer" || x === "big-integer" || x === "double") && (b.binParameters.stackBy = {
854
854
  type: "field",
855
855
  value: n,
856
- valueType: b === "string" ? "string" : "integer"
856
+ valueType: x === "string" ? "string" : "integer"
857
857
  });
858
858
  }
859
- return x;
859
+ return b;
860
860
  }
861
861
  function bi(t) {
862
862
  const {
@@ -973,8 +973,8 @@ function as(t) {
973
973
  xOrYFieldType: g,
974
974
  addIntervalStatement: !1,
975
975
  includeLeapDay: l
976
- }), { field: x, expression: A, start: B, end: b } = F;
977
- x ? y.binParameters.field = x : A && (y.binParameters.expression = A, y.binParameters.expressionValueType = "integer", y.binParameters.type === "fixed-interval" && (B !== void 0 && (y.binParameters.start = B), b !== void 0 && (y.binParameters.end = b)));
976
+ }), { field: b, expression: A, start: B, end: x } = F;
977
+ b ? y.binParameters.field = b : A && (y.binParameters.expression = A, y.binParameters.expressionValueType = "integer", y.binParameters.type === "fixed-interval" && (B !== void 0 && (y.binParameters.start = B), x !== void 0 && (y.binParameters.end = x)));
978
978
  const v = _i({
979
979
  temporalBinning: s,
980
980
  xOrY: a,
@@ -1021,7 +1021,7 @@ function xi(t) {
1021
1021
  });
1022
1022
  d.returnGeometry = !1;
1023
1023
  const f = W(e);
1024
- return d.outFields = Vr(u), d.groupByFieldsForStatistics = n ?? d.groupByFieldsForStatistics, d.orderByFields = s ?? [], d.objectIds = i?.objectIds, r !== void 0 && (d.maxRecordCountFactor = r), o !== void 0 && o !== "" && (d.gdbVersion = o), c !== void 0 && (d.num = c), l !== void 0 && (d.start = l, d.num = d.num ?? Rr(f)), d;
1024
+ return d.outFields = Vr(u), d.outStatistics?.[0] && (d.groupByFieldsForStatistics = n ?? d.groupByFieldsForStatistics), d.orderByFields = s ?? [], d.objectIds = i?.objectIds, r !== void 0 && (d.maxRecordCountFactor = r), o !== void 0 && o !== "" && (d.gdbVersion = o), c !== void 0 && (d.num = c), l !== void 0 && (d.start = l, d.num = d.num ?? Rr(f)), d;
1025
1025
  }
1026
1026
  function ss(t) {
1027
1027
  return t && "sourceJSON" in t && t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor === !0 ? Q.maxRecordCountFactor : void 0;
@@ -1102,25 +1102,32 @@ function bt(t) {
1102
1102
  isNonAggregated: n,
1103
1103
  sortByCategory: s,
1104
1104
  preferLabel: o,
1105
- isPieOrByFieldsChart: l
1105
+ isPieOrByFieldsChart: l,
1106
+ chartConfig: c
1106
1107
  } = t;
1107
1108
  if (e !== void 0 && e.length > 1) {
1108
- const c = i === ye.Descending && a !== !0;
1109
- e.sort((u, d) => {
1110
- let f = 0, m = u[r];
1111
- s === !0 && !l && (m = Hi({
1112
- value: `${u[r]?.toString()}`,
1113
- dataContext: u,
1109
+ const u = i === ye.Descending && a !== !0, d = G(c.series) === S.BarAndLineSplitByNoAggregation, f = c.series?.[0], m = d ? ie(f?.query?.where) : "", g = d && f !== void 0 && "y" in f && typeof f.y == "string" ? f.y : "";
1110
+ e.sort((p, y) => {
1111
+ let F = 0, b = m !== "" && g !== "" ? (
1112
+ // using String(dataItems[splitByField]) to preserve both null and undefined values like y_null and y_undefined
1113
+ p[`${g}_${String(p[m])}`]
1114
+ ) : p[r];
1115
+ s === !0 && !l && (b = Hi({
1116
+ value: `${p[r]?.toString()}`,
1117
+ dataContext: p,
1114
1118
  specificField: o ? C.xAxisField : C.originalXValue
1115
1119
  }));
1116
- let g = d[r];
1117
- s === !0 && !l && (g = Hi({
1118
- value: `${d[r]?.toString()}`,
1119
- dataContext: d,
1120
+ let A = m !== "" && g !== "" ? (
1121
+ // using String(dataItems[splitByField]) to preserve both null and undefined values like y_null and y_undefined
1122
+ y[`${g}_${String(y[m])}`]
1123
+ ) : y[r];
1124
+ s === !0 && !l && (A = Hi({
1125
+ value: `${y[r]?.toString()}`,
1126
+ dataContext: y,
1120
1127
  specificField: o ? C.xAxisField : C.originalXValue
1121
- })), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), g = Number.isNaN(Number.parseFloat(`${g?.toString()}`)) ? g : Number.parseFloat(g));
1122
- const p = u[C.originalXValue] === null || u[oi.defaultGroupOfSlicesId] === !0, y = d[C.originalXValue] === null || d[oi.defaultGroupOfSlicesId] === !0;
1123
- return p && !y ? f = 1 : !p && y ? f = -1 : typeof m == "string" && typeof g == "string" ? (f = m.localeCompare(g, void 0, { numeric: !0 }), c && (f *= -1)) : m === void 0 ? f = c ? -1 : 1 : g === void 0 ? f = c ? 1 : -1 : m !== null && g !== null && (m > g ? f = c ? -1 : 1 : m < g && (f = c ? 1 : -1)), f;
1128
+ })), n === !0 && u && s === !0 && (b = Number.isNaN(Number.parseFloat(`${b?.toString()}`)) ? b : Number.parseFloat(b), A = Number.isNaN(Number.parseFloat(`${A?.toString()}`)) ? A : Number.parseFloat(A));
1129
+ const B = p[C.originalXValue] === null || p[oi.defaultGroupOfSlicesId] === !0, x = y[C.originalXValue] === null || y[oi.defaultGroupOfSlicesId] === !0;
1130
+ return B && !x ? F = 1 : !B && x ? F = -1 : typeof b == "string" && typeof A == "string" ? (F = b.localeCompare(A, void 0, { numeric: !0 }), u && (F *= -1)) : b === void 0 ? F = u ? -1 : 1 : A === void 0 ? F = u ? 1 : -1 : b !== null && A !== null && (b > A ? F = u ? -1 : 1 : b < A && (F = u ? 1 : -1)), F;
1124
1131
  });
1125
1132
  }
1126
1133
  }
@@ -1206,10 +1213,10 @@ function Bi(t, e) {
1206
1213
  maxPieChartSliceCountTotal: p,
1207
1214
  maxGaugeByFeaturesLimit: y,
1208
1215
  maxRadarChartSeriesCount: F,
1209
- maxRadarUniqueSeriesCountTotal: x,
1216
+ maxRadarUniqueSeriesCountTotal: b,
1210
1217
  maxRadarTwoSeriesCountPerSeries: A,
1211
1218
  maxRadarTwoSeriesCountTotal: B,
1212
- maxRadarThreePlusSeriesCountPerSeries: b,
1219
+ maxRadarThreePlusSeriesCountPerSeries: x,
1213
1220
  maxRadarThreePlusSeriesCountTotal: v,
1214
1221
  maxHeatChartCellLimit: T,
1215
1222
  serialChart: { series: N, elements: L },
@@ -1242,13 +1249,13 @@ function Bi(t, e) {
1242
1249
  })));
1243
1250
  break;
1244
1251
  case h.RadarSeries:
1245
- M <= (F ?? N) && (M === 1 ? i = x ?? L : M === 2 ? i = st({
1252
+ M <= (F ?? N) && (M === 1 ? i = b ?? L : M === 2 ? i = st({
1246
1253
  countTotal: B ?? L,
1247
1254
  countPerSeries: A,
1248
1255
  numberOfSeries: M
1249
1256
  }) : M > 2 && (i = st({
1250
1257
  countTotal: v ?? L,
1251
- countPerSeries: b,
1258
+ countPerSeries: x,
1252
1259
  numberOfSeries: M
1253
1260
  })));
1254
1261
  break;
@@ -1464,13 +1471,13 @@ async function xs(t) {
1464
1471
  const y = Qt(m, u);
1465
1472
  if (y < 0)
1466
1473
  throw new Error("Band ID not found for `${x}`.");
1467
- let F, x;
1474
+ let F, b;
1468
1475
  if (!a && (d === void 0 || d === ee.None) && !(Ge(m) && Bt(m)) && f && Array.isArray(g.histograms) && g.histograms.length > y && g.histograms[y].size % f === 0 && Array.isArray(g.statistics) && g?.statistics?.length > y)
1469
- F = g.histograms[y], x = g.statistics[y];
1476
+ F = g.histograms[y], b = g.statistics[y];
1470
1477
  else {
1471
- let A, B, b;
1478
+ let A, B, x;
1472
1479
  if (a && n)
1473
- A = n.resolution, B = n.resolution, b = n.spatialReference;
1480
+ A = n.resolution, B = n.resolution, x = n.spatialReference;
1474
1481
  else {
1475
1482
  const T = Fs, N = 2;
1476
1483
  let L = g.width, P = g.height;
@@ -1484,12 +1491,12 @@ async function xs(t) {
1484
1491
  0,
1485
1492
  Math.ceil(Math.log(Math.max(L, P) / T) / Math.log(N))
1486
1493
  ), O = N ** w;
1487
- A = g.pixelSize.x * O, B = g.pixelSize.y * O, b = m.spatialReference;
1494
+ A = g.pixelSize.x * O, B = g.pixelSize.y * O, x = m.spatialReference;
1488
1495
  }
1489
1496
  const v = new Ar({
1490
1497
  x: A,
1491
1498
  y: B,
1492
- spatialReference: b
1499
+ spatialReference: x
1493
1500
  });
1494
1501
  try {
1495
1502
  const T = bs(d), N = await un(
@@ -1504,13 +1511,13 @@ async function xs(t) {
1504
1511
  },
1505
1512
  { signal: l }
1506
1513
  );
1507
- x = N.statistics[0], F = N.histograms[0];
1514
+ b = N.statistics[0], F = N.histograms[0];
1508
1515
  } catch (T) {
1509
1516
  if (!Fi.isAbortError(T))
1510
1517
  throw new oe(le.Default, "Failed to compute raster histogram.", T);
1511
1518
  }
1512
1519
  }
1513
- return { histogram: F, statistics: x };
1520
+ return { histogram: F, statistics: b };
1514
1521
  }
1515
1522
  function Cs(t, e) {
1516
1523
  const i = [], r = (t.max - t.min) / t.size;
@@ -1700,8 +1707,8 @@ async function ws(t) {
1700
1707
  errorStrings: a,
1701
1708
  abortKey: n,
1702
1709
  abortSignal: s
1703
- }), F = y.get(d) ?? Number.NaN, x = y.get(f) ?? Number.NaN, A = y.get(m) ?? Number.NaN, B = y.get(g) ?? Number.NaN;
1704
- return { countExcludingNulls: x, countIncludingNulls: F, min: A, max: B };
1710
+ }), F = y.get(d) ?? Number.NaN, b = y.get(f) ?? Number.NaN, A = y.get(m) ?? Number.NaN, B = y.get(g) ?? Number.NaN;
1711
+ return { countExcludingNulls: b, countIncludingNulls: F, min: A, max: B };
1705
1712
  }
1706
1713
  async function Ps(t) {
1707
1714
  const { queryConfig: e, chartConfig: i, queryObject: r, errorStrings: a, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: l, dataTransformationType: c } = o;
@@ -1828,7 +1835,7 @@ async function qs(t) {
1828
1835
  } catch {
1829
1836
  }
1830
1837
  F = Is(F);
1831
- const { avg: x, count: A, stddev: B, min: b, max: v, sum: T, median: N } = F;
1838
+ const { avg: b, count: A, stddev: B, min: x, max: v, sum: T, median: N } = F;
1832
1839
  if (A === 0)
1833
1840
  f = {
1834
1841
  ..._r(d)
@@ -1839,7 +1846,7 @@ async function qs(t) {
1839
1846
  layer: m,
1840
1847
  view: s,
1841
1848
  useFeaturesInView: g,
1842
- minValue: Ls(b),
1849
+ minValue: Ls(x),
1843
1850
  maxValue: v,
1844
1851
  valueExpression: y.valueExpression,
1845
1852
  featureFilter: p,
@@ -1862,9 +1869,9 @@ async function qs(t) {
1862
1869
  return "aggregateIds" in E && (Array.isArray(E.aggregateIds) && E.aggregateIds.length !== Tt && (E.arcgisChartsUniqueIds = E.aggregateIds), delete E.aggregateIds), E;
1863
1870
  }), O = Os(n, a);
1864
1871
  f.data = {
1865
- mean: x,
1872
+ mean: b,
1866
1873
  stddev: B,
1867
- min: b,
1874
+ min: x,
1868
1875
  max: v,
1869
1876
  median: Number(N),
1870
1877
  bins: w,
@@ -1969,9 +1976,9 @@ async function ti(t) {
1969
1976
  });
1970
1977
  return Array.from(
1971
1978
  new Set(
1972
- y.map((x) => x.attributes[c ? a : r])
1979
+ y.map((b) => b.attributes[c ? a : r])
1973
1980
  )
1974
- ).sort((x, A) => typeof x == "string" && typeof A == "string" ? x.localeCompare(A) : Number(x) - Number(A));
1981
+ ).sort((b, A) => typeof b == "string" && typeof A == "string" ? b.localeCompare(A) : Number(b) - Number(A));
1975
1982
  }
1976
1983
  function Gr(t) {
1977
1984
  const { input: e, x: i, splitByField: r } = t;
@@ -2225,14 +2232,14 @@ function hf(t) {
2225
2232
  maxCategoryCount: y,
2226
2233
  serialChart: { categories: F }
2227
2234
  } = p;
2228
- let x = u.modalHeaders.invalidChart;
2235
+ let b = u.modalHeaders.invalidChart;
2229
2236
  switch (e) {
2230
2237
  case k.BarElementExceedsLimit:
2231
2238
  {
2232
- x = u.modalHeaders.tooManyFeatures;
2233
- let B = Number.NaN, b = Number.NaN, v = "";
2234
- a !== void 0 && (a <= (p.maxBarChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = u.errors.uniqueSeriesBarCountCannotExceedLimit, B = p.maxBarUniqueSeriesCountTotal ?? p.serialChart?.elements) : a === 2 ? (v = u.errors.twoSeriesBarCountCannotExceedLimit, B = p.maxBarTwoSeriesCountTotal ?? p.serialChart?.elements, b = p.maxBarTwoSeriesCountPerSeries) : a > 2 && (v = u.errors.threePlusSeriesBarCountCannotExceedLimit, B = p.maxBarThreePlusSeriesCountTotal ?? p.serialChart?.elements, b = p.maxBarThreePlusSeriesCountPerSeries) : (v = u.errors.barSeriesCountCannotExceedLimit, b = p.maxBarChartSeriesCount ?? p.serialChart?.series));
2235
- const T = g.format(B), N = g.format(b), L = r !== void 0 ? g.format(r) : "";
2239
+ b = u.modalHeaders.tooManyFeatures;
2240
+ let B = Number.NaN, x = Number.NaN, v = "";
2241
+ a !== void 0 && (a <= (p.maxBarChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = u.errors.uniqueSeriesBarCountCannotExceedLimit, B = p.maxBarUniqueSeriesCountTotal ?? p.serialChart?.elements) : a === 2 ? (v = u.errors.twoSeriesBarCountCannotExceedLimit, B = p.maxBarTwoSeriesCountTotal ?? p.serialChart?.elements, x = p.maxBarTwoSeriesCountPerSeries) : a > 2 && (v = u.errors.threePlusSeriesBarCountCannotExceedLimit, B = p.maxBarThreePlusSeriesCountTotal ?? p.serialChart?.elements, x = p.maxBarThreePlusSeriesCountPerSeries) : (v = u.errors.barSeriesCountCannotExceedLimit, x = p.maxBarChartSeriesCount ?? p.serialChart?.series));
2242
+ const T = g.format(B), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
2236
2243
  f = be(v, {
2237
2244
  totalLimit: T,
2238
2245
  seriesLimit: N,
@@ -2240,16 +2247,16 @@ function hf(t) {
2240
2247
  }), m = {
2241
2248
  actualCount: r ?? Number.NaN,
2242
2249
  totalLimit: B,
2243
- seriesLimit: b
2250
+ seriesLimit: x
2244
2251
  };
2245
2252
  }
2246
2253
  break;
2247
2254
  case k.LineChartExceedsLimit:
2248
2255
  {
2249
- x = u.modalHeaders.tooManyFeatures;
2250
- let B = Number.NaN, b = Number.NaN, v = "";
2251
- a !== void 0 && (a <= (p.maxLineChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = l ? u.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : u.errors.uniqueSeriesLineCountCannotExceedLimit, B = p.maxLineUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = l ? u.errors.twoTemporalSeriesLineCountCannotExceedLimit : u.errors.twoSeriesLineCountCannotExceedLimit, B = p.maxLineTwoSeriesCountTotal ?? p.serialChart.elements, b = p.maxLineTwoSeriesCountPerSeries) : a > 2 && (v = l ? u.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : u.errors.threePlusSeriesLineCountCannotExceedLimit, B = p.maxLineThreePlusSeriesCountTotal ?? p.serialChart.elements, b = p.maxLineThreePlusSeriesCountPerSeries) : (v = u.errors.lineSeriesCountCannotExceedLimit, b = p.maxLineChartSeriesCount ?? p.serialChart?.series));
2252
- const T = g.format(B), N = g.format(b), L = r !== void 0 ? g.format(r) : "";
2256
+ b = u.modalHeaders.tooManyFeatures;
2257
+ let B = Number.NaN, x = Number.NaN, v = "";
2258
+ a !== void 0 && (a <= (p.maxLineChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = l ? u.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : u.errors.uniqueSeriesLineCountCannotExceedLimit, B = p.maxLineUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = l ? u.errors.twoTemporalSeriesLineCountCannotExceedLimit : u.errors.twoSeriesLineCountCannotExceedLimit, B = p.maxLineTwoSeriesCountTotal ?? p.serialChart.elements, x = p.maxLineTwoSeriesCountPerSeries) : a > 2 && (v = l ? u.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : u.errors.threePlusSeriesLineCountCannotExceedLimit, B = p.maxLineThreePlusSeriesCountTotal ?? p.serialChart.elements, x = p.maxLineThreePlusSeriesCountPerSeries) : (v = u.errors.lineSeriesCountCannotExceedLimit, x = p.maxLineChartSeriesCount ?? p.serialChart?.series));
2259
+ const T = g.format(B), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
2253
2260
  f = be(v, {
2254
2261
  elementCount: L,
2255
2262
  seriesLimit: N,
@@ -2257,16 +2264,16 @@ function hf(t) {
2257
2264
  }), m = {
2258
2265
  actualCount: r ?? Number.NaN,
2259
2266
  totalLimit: B,
2260
- seriesLimit: b
2267
+ seriesLimit: x
2261
2268
  };
2262
2269
  }
2263
2270
  break;
2264
2271
  case k.RadarChartExceedsLimit:
2265
2272
  {
2266
- x = u.modalHeaders.tooManyFeatures;
2267
- let B = Number.NaN, b = Number.NaN, v = "";
2268
- a !== void 0 && (a <= (p.maxRadarChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = u.errors.uniqueSeriesRadarCountCannotExceedLimit, B = p.maxRadarUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = u.errors.twoSeriesRadarCountCannotExceedLimit, B = p.maxRadarTwoSeriesCountTotal ?? p.serialChart.elements, b = p.maxRadarTwoSeriesCountPerSeries) : a > 2 && (v = u.errors.threePlusSeriesRadarCountCannotExceedLimit, B = p.maxRadarThreePlusSeriesCountTotal ?? p.serialChart.elements, b = p.maxRadarThreePlusSeriesCountPerSeries) : (v = u.errors.radarSeriesCountCannotExceedLimit, b = p.maxRadarChartSeriesCount ?? p.serialChart?.series));
2269
- const T = g.format(B), N = g.format(b), L = r !== void 0 ? g.format(r) : "";
2273
+ b = u.modalHeaders.tooManyFeatures;
2274
+ let B = Number.NaN, x = Number.NaN, v = "";
2275
+ a !== void 0 && (a <= (p.maxRadarChartSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = u.errors.uniqueSeriesRadarCountCannotExceedLimit, B = p.maxRadarUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = u.errors.twoSeriesRadarCountCannotExceedLimit, B = p.maxRadarTwoSeriesCountTotal ?? p.serialChart.elements, x = p.maxRadarTwoSeriesCountPerSeries) : a > 2 && (v = u.errors.threePlusSeriesRadarCountCannotExceedLimit, B = p.maxRadarThreePlusSeriesCountTotal ?? p.serialChart.elements, x = p.maxRadarThreePlusSeriesCountPerSeries) : (v = u.errors.radarSeriesCountCannotExceedLimit, x = p.maxRadarChartSeriesCount ?? p.serialChart?.series));
2276
+ const T = g.format(B), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
2270
2277
  f = be(v, {
2271
2278
  elementCount: L,
2272
2279
  seriesLimit: N,
@@ -2274,16 +2281,16 @@ function hf(t) {
2274
2281
  }), m = {
2275
2282
  actualCount: r ?? Number.NaN,
2276
2283
  totalLimit: B,
2277
- seriesLimit: b
2284
+ seriesLimit: x
2278
2285
  };
2279
2286
  }
2280
2287
  break;
2281
2288
  case k.BoxPlotExceedsLimit:
2282
2289
  {
2283
- x = u.modalHeaders.tooManyFeatures;
2284
- let B = Number.NaN, b = Number.NaN, v = "";
2285
- a !== void 0 && (a <= (p.maxBoxPlotSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = u.errors.uniqueSeriesBoxCountCannotExceedLimit, B = p.maxBoxUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = u.errors.twoSeriesBoxCountCannotExceedLimit, B = p.maxBoxTwoSeriesCountTotal ?? p.serialChart.elements, b = p.maxBoxTwoSeriesCountPerSeries) : a > 2 && (v = u.errors.threePlusBoxLineCountCannotExceedLimit, B = p.maxBoxThreePlusSeriesCountTotal ?? p.serialChart.elements, b = p.maxBoxThreePlusSeriesCountPerSeries) : (v = u.errors.boxSeriesCountCannotExceedLimit, b = p.maxBoxPlotSeriesCount ?? p.serialChart.series));
2286
- const T = g.format(B), N = g.format(b), L = r !== void 0 ? g.format(r) : "";
2290
+ b = u.modalHeaders.tooManyFeatures;
2291
+ let B = Number.NaN, x = Number.NaN, v = "";
2292
+ a !== void 0 && (a <= (p.maxBoxPlotSeriesCount ?? p.serialChart?.series) ? a === 1 ? (v = u.errors.uniqueSeriesBoxCountCannotExceedLimit, B = p.maxBoxUniqueSeriesCountTotal ?? p.serialChart.elements) : a === 2 ? (v = u.errors.twoSeriesBoxCountCannotExceedLimit, B = p.maxBoxTwoSeriesCountTotal ?? p.serialChart.elements, x = p.maxBoxTwoSeriesCountPerSeries) : a > 2 && (v = u.errors.threePlusBoxLineCountCannotExceedLimit, B = p.maxBoxThreePlusSeriesCountTotal ?? p.serialChart.elements, x = p.maxBoxThreePlusSeriesCountPerSeries) : (v = u.errors.boxSeriesCountCannotExceedLimit, x = p.maxBoxPlotSeriesCount ?? p.serialChart.series));
2293
+ const T = g.format(B), N = g.format(x), L = r !== void 0 ? g.format(r) : "";
2287
2294
  f = be(v, {
2288
2295
  elementCount: L,
2289
2296
  seriesLimit: N,
@@ -2291,75 +2298,75 @@ function hf(t) {
2291
2298
  }), m = {
2292
2299
  actualCount: r ?? Number.NaN,
2293
2300
  totalLimit: B,
2294
- seriesLimit: b
2301
+ seriesLimit: x
2295
2302
  };
2296
2303
  }
2297
2304
  break;
2298
2305
  case k.BoxPlotOutliersExceedsLimit:
2299
2306
  {
2300
- x = u.modalHeaders.tooManyFeatures;
2301
- const B = u.errors.boxSeriesOutlierCannotExceedLimit, b = p.maxBoxPlotOutlierLimit ?? p.boxPlot?.outliers, v = g.format(b);
2307
+ b = u.modalHeaders.tooManyFeatures;
2308
+ const B = u.errors.boxSeriesOutlierCannotExceedLimit, x = p.maxBoxPlotOutlierLimit ?? p.boxPlot?.outliers, v = g.format(x);
2302
2309
  f = be(B, {
2303
2310
  totalLimit: v
2304
- }), m = { actualCount: r ?? Number.NaN, totalLimit: b };
2311
+ }), m = { actualCount: r ?? Number.NaN, totalLimit: x };
2305
2312
  }
2306
2313
  break;
2307
2314
  case k.HeatChartExceedsLimit:
2308
2315
  {
2309
- x = u.modalHeaders.tooManyFeatures;
2310
- const B = u.errors.heatChartCannotExceedLimit, b = p.maxHeatChartCellLimit ?? p.heatChart?.cells, v = g.format(b), T = r !== void 0 ? g.format(r) : "";
2316
+ b = u.modalHeaders.tooManyFeatures;
2317
+ const B = u.errors.heatChartCannotExceedLimit, x = p.maxHeatChartCellLimit ?? p.heatChart?.cells, v = g.format(x), T = r !== void 0 ? g.format(r) : "";
2311
2318
  f = be(B, {
2312
2319
  featureCount: T,
2313
2320
  totalLimit: v
2314
2321
  }), m = {
2315
2322
  actualCount: r ?? Number.NaN,
2316
- totalLimit: b
2323
+ totalLimit: x
2317
2324
  };
2318
2325
  }
2319
2326
  break;
2320
2327
  case k.PieChartExceedsLimit:
2321
2328
  {
2322
- x = u.modalHeaders.tooManyFeatures;
2323
- const B = u.errors.pieChartSlicesCannotExceedLimit, b = p.maxPieChartSliceCountTotal ?? p.pieChart?.slices, v = g.format(b), T = r !== void 0 ? g.format(r) : "";
2329
+ b = u.modalHeaders.tooManyFeatures;
2330
+ const B = u.errors.pieChartSlicesCannotExceedLimit, x = p.maxPieChartSliceCountTotal ?? p.pieChart?.slices, v = g.format(x), T = r !== void 0 ? g.format(r) : "";
2324
2331
  f = be(B, {
2325
2332
  sliceCount: T,
2326
2333
  totalLimit: v
2327
2334
  }), m = {
2328
2335
  actualCount: r ?? Number.NaN,
2329
- totalLimit: b
2336
+ totalLimit: x
2330
2337
  };
2331
2338
  }
2332
2339
  break;
2333
2340
  case k.GaugeExceedsLimit:
2334
2341
  {
2335
- x = u.modalHeaders.tooManyFeatures;
2336
- const B = u.errors.gaugeCannotExceedLimit, b = p.maxGaugeByFeaturesLimit ?? p.gauge?.features, v = g.format(b), T = r !== void 0 ? g.format(r) : "";
2342
+ b = u.modalHeaders.tooManyFeatures;
2343
+ const B = u.errors.gaugeCannotExceedLimit, x = p.maxGaugeByFeaturesLimit ?? p.gauge?.features, v = g.format(x), T = r !== void 0 ? g.format(r) : "";
2337
2344
  f = be(B, {
2338
2345
  featureCount: T,
2339
2346
  totalLimit: v
2340
2347
  }), m = {
2341
2348
  actualCount: r ?? Number.NaN,
2342
- totalLimit: b
2349
+ totalLimit: x
2343
2350
  };
2344
2351
  }
2345
2352
  break;
2346
2353
  case k.PieChartMixOfNegativePositiveSlices:
2347
- x = u.modalHeaders.cannotCombineNegativeAndPositiveSlices, f = u.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
2354
+ b = u.modalHeaders.cannotCombineNegativeAndPositiveSlices, f = u.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
2348
2355
  break;
2349
2356
  case k.NegativeValueInSqrtCalculation:
2350
- x = u.modalHeaders.invalidData, f = u.errors.negativeValueInDataForSqrtTransformation;
2357
+ b = u.modalHeaders.invalidData, f = u.errors.negativeValueInDataForSqrtTransformation;
2351
2358
  break;
2352
2359
  case k.NegativeValueInLogCalculation:
2353
- x = u.modalHeaders.invalidData, f = u.errors.negativeValueInDataForLogTransformation;
2360
+ b = u.modalHeaders.invalidData, f = u.errors.negativeValueInDataForLogTransformation;
2354
2361
  break;
2355
2362
  case k.HistogramEmptyField:
2356
- s === !0 ? (x = u.modalHeaders.noDataAvailable, f = u.errors.noDataFBSMessage) : Ve(n) ? (x = u.modalHeaders.noDataAvailable, f = u.errors.noDataFBEMessage) : (x = u.modalHeaders.invalidChart, f = u.errors.histogramEmptyField);
2363
+ s === !0 ? (b = u.modalHeaders.noDataAvailable, f = u.errors.noDataFBSMessage) : Ve(n) ? (b = u.modalHeaders.noDataAvailable, f = u.errors.noDataFBEMessage) : (b = u.modalHeaders.invalidChart, f = u.errors.histogramEmptyField);
2357
2364
  break;
2358
2365
  case k.EmptyDataSet:
2359
- x = u.modalHeaders.noDataAvailable, s === !0 ? f = u.errors.noDataFBSMessage : Ve(n) ? f = u.errors.noDataFBEMessage : f = u.errors.noDataMessage;
2366
+ b = u.modalHeaders.noDataAvailable, s === !0 ? f = u.errors.noDataFBSMessage : Ve(n) ? f = u.errors.noDataFBEMessage : f = u.errors.noDataMessage;
2360
2367
  break;
2361
2368
  case k.NoValue:
2362
- c && r ? (x = void 0, f = u.errors.noValue) : d && (x = u.modalHeaders.noDataAvailable, f = u.errors.noDataMessage);
2369
+ c && r ? (b = void 0, f = u.errors.noValue) : d && (b = u.modalHeaders.noDataAvailable, f = u.errors.noDataMessage);
2363
2370
  break;
2364
2371
  case k.NegativeValueInXAxisLogScale:
2365
2372
  f = u.errors.logarithmicXAxisNotPossible;
@@ -2378,7 +2385,7 @@ function hf(t) {
2378
2385
  }
2379
2386
  return {
2380
2387
  keyword: e ?? k.BadData,
2381
- header: x,
2388
+ header: b,
2382
2389
  message: f,
2383
2390
  params: m
2384
2391
  };
@@ -2432,8 +2439,8 @@ function vi(t) {
2432
2439
  standardizeValues: !1,
2433
2440
  splitByValue: a
2434
2441
  };
2435
- const x = ae(l);
2436
- y = Number(e[x]), Number.isFinite(y) && (o[F] = ci({
2442
+ const b = ae(l);
2443
+ y = Number(e[b]), Number.isFinite(y) && (o[F] = ci({
2437
2444
  mean: d,
2438
2445
  stdDev: f,
2439
2446
  value: y
@@ -2592,19 +2599,19 @@ function jr(t) {
2592
2599
  return e.forEach((g, p) => {
2593
2600
  const { outlierMinThreshold: y, outlierMaxThreshold: F } = eo(g, o);
2594
2601
  if (typeof y == "number" && typeof F == "number") {
2595
- const x = {
2602
+ const b = {
2596
2603
  yField: i,
2597
2604
  outlierMinThreshold: y,
2598
2605
  outlierMaxThreshold: F
2599
2606
  };
2600
- if ((a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC4MultiFieldsAndCategory || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (x.xField = r, x.xValue = Ci({
2607
+ if ((a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC4MultiFieldsAndCategory || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (b.xField = r, b.xValue = Ci({
2601
2608
  value: g[r],
2602
2609
  dataContext: g
2603
2610
  })), (a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC6MultiFieldsAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in g) {
2604
2611
  const A = g[n];
2605
- (typeof A == "string" || typeof A == "number" || A instanceof Date || A === null) && (x.splitByField = n, x.splitByValue = A);
2612
+ (typeof A == "string" || typeof A == "number" || A instanceof Date || A === null) && (b.splitByField = n, b.splitByValue = A);
2606
2613
  }
2607
- d.push(ji({ ...x, target: "outliers" })), f.push(ji({ ...x, target: "alternativeData" })), (m % u === 0 || p === e.length - 1) && (l.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
2614
+ d.push(ji({ ...b, target: "outliers" })), f.push(ji({ ...b, target: "alternativeData" })), (m % u === 0 || p === e.length - 1) && (l.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
2608
2615
  }
2609
2616
  m += 1;
2610
2617
  }), { outliersFilterBatches: l, dataWithoutOutliersFilterBatches: c };
@@ -2639,17 +2646,17 @@ function to(t) {
2639
2646
  return { mean: l, stdDev: c };
2640
2647
  }
2641
2648
  async function io(t) {
2642
- const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: a, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: l } = t, c = G(e), u = e[0], { x: d } = u, f = re(u.query?.where), m = W(a), g = Le(m).idField, p = se(e), y = [];
2649
+ const { seriesConfig: e, data: i, uniqueQuery: r, queryObject: a, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: l } = t, c = G(e), u = e[0], { x: d } = u, f = ie(u.query?.where), m = W(a), g = Le(m).idField, p = se(e), y = [];
2643
2650
  for (let A = 0; A < p.length; A += 1) {
2644
- const B = p[A], { outliersFilterBatches: b } = jr({
2651
+ const B = p[A], { outliersFilterBatches: x } = jr({
2645
2652
  data: i,
2646
2653
  yField: B,
2647
2654
  x: d,
2648
2655
  chartSubType: c,
2649
2656
  splitByField: f
2650
2657
  });
2651
- for (let v = 0; v < b.length; v += 1) {
2652
- const T = b[v];
2658
+ for (let v = 0; v < x.length; v += 1) {
2659
+ const T = x[v];
2653
2660
  if (T !== "") {
2654
2661
  const N = [];
2655
2662
  d !== C.boxPlot.boxPlotCategory && N.push(d), N.push(B), f !== "" && N.push(f), N.push(g);
@@ -2677,13 +2684,13 @@ async function io(t) {
2677
2684
  }
2678
2685
  }
2679
2686
  }
2680
- const F = await Promise.all(y), x = /* @__PURE__ */ new Map();
2687
+ const F = await Promise.all(y), b = /* @__PURE__ */ new Map();
2681
2688
  for (let A = 0; A < F.length; A += 1) {
2682
- const B = F[A], b = p[A];
2689
+ const B = F[A], x = p[A];
2683
2690
  B.forEach((v) => {
2684
2691
  const T = { ...v.attributes };
2685
- if (T[b] !== void 0) {
2686
- d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = b), d !== C.boxPlot.boxPlotCategory && T[d] === null && (T[C.originalXValue] = null, T[d] = C.nullValue);
2692
+ if (T[x] !== void 0) {
2693
+ d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = x), d !== C.boxPlot.boxPlotCategory && T[d] === null && (T[C.originalXValue] = null, T[d] = C.nullValue);
2687
2694
  let N = {
2688
2695
  key: q.Outlier,
2689
2696
  chartSubType: c
@@ -2700,13 +2707,13 @@ async function io(t) {
2700
2707
  case S.BoxPlotC4MultiFieldsAndCategory:
2701
2708
  N = {
2702
2709
  ...N,
2703
- y: b
2710
+ y: x
2704
2711
  };
2705
2712
  break;
2706
2713
  }
2707
- const L = ae(N), P = T[b];
2714
+ const L = ae(N), P = T[x];
2708
2715
  T[L] = P;
2709
- const w = `${T[d]}-${T[f]}-${P}`, O = x.get(w);
2716
+ const w = `${T[d]}-${T[f]}-${P}`, O = b.get(w);
2710
2717
  if (T[Q.uniqueIds] = [
2711
2718
  ...O?.[Q.uniqueIds] ?? [],
2712
2719
  T[g]
@@ -2719,7 +2726,7 @@ async function io(t) {
2719
2726
  outlierDataItem: T,
2720
2727
  chartSubType: c,
2721
2728
  x: d,
2722
- y: b,
2729
+ y: x,
2723
2730
  splitByField: f,
2724
2731
  meanAndStdDevPerField: n
2725
2732
  });
@@ -2729,11 +2736,11 @@ async function io(t) {
2729
2736
  stdDev: E
2730
2737
  }));
2731
2738
  }
2732
- delete T[b], T[C.boxPlot.boxPlotY] = b, T[C.boxPlot.boxPlotOutlierId] = !0, x.set(w, T);
2739
+ delete T[x], T[C.boxPlot.boxPlotY] = x, T[C.boxPlot.boxPlotOutlierId] = !0, b.set(w, T);
2733
2740
  }
2734
2741
  });
2735
2742
  }
2736
- return Array.from(x.values());
2743
+ return Array.from(b.values());
2737
2744
  }
2738
2745
  async function ro(t) {
2739
2746
  const {
@@ -2748,11 +2755,11 @@ async function ro(t) {
2748
2755
  abortSignal: c
2749
2756
  } = t;
2750
2757
  let u = [];
2751
- const { series: d, showMean: f } = n, m = Pi({ showMean: f, seriesConfig: d }), g = G(d), p = _e(n), { x: y } = p, F = re(p.query?.where), x = [];
2758
+ const { series: d, showMean: f } = n, m = Pi({ showMean: f, seriesConfig: d }), g = G(d), p = _e(n), { x: y } = p, F = ie(p.query?.where), b = [];
2752
2759
  for (let B = 0; B < m.length; B += 1) {
2753
- const b = m[B], { dataWithoutOutliersFilterBatches: v } = jr({
2760
+ const x = m[B], { dataWithoutOutliersFilterBatches: v } = jr({
2754
2761
  data: e,
2755
- yField: b,
2762
+ yField: x,
2756
2763
  x: y,
2757
2764
  chartSubType: g,
2758
2765
  splitByField: F
@@ -2763,11 +2770,11 @@ async function ro(t) {
2763
2770
  where: Y([r.where, N])
2764
2771
  };
2765
2772
  L.outStatistics !== void 0 && (L.outStatistics = L.outStatistics?.filter(
2766
- (P) => (P.statisticType === D.Minimum || P.statisticType === D.Maximum) && P.onStatisticField === b
2773
+ (P) => (P.statisticType === D.Minimum || P.statisticType === D.Maximum) && P.onStatisticField === x
2767
2774
  ).map((P) => ({
2768
2775
  ...P,
2769
2776
  outStatisticFieldName: `${P.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
2770
- }))), x.push(
2777
+ }))), b.push(
2771
2778
  Yt({
2772
2779
  queryObject: i,
2773
2780
  uniqueQuery: L,
@@ -2783,7 +2790,7 @@ async function ro(t) {
2783
2790
  );
2784
2791
  }
2785
2792
  }
2786
- const A = await Promise.all(x);
2793
+ const A = await Promise.all(b);
2787
2794
  for (let B = 0; B < A.length; B += 1)
2788
2795
  u.push(...A[B]);
2789
2796
  return g !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && g !== S.BoxPlotC1MonoField && (u = xt({
@@ -2831,7 +2838,7 @@ async function ao(t) {
2831
2838
  return o;
2832
2839
  }
2833
2840
  function no(t) {
2834
- const { data: e, additionalData: i, chartConfig: r } = t, a = r.series[0], { x: n } = a, s = re(a.query?.where);
2841
+ const { data: e, additionalData: i, chartConfig: r } = t, a = r.series[0], { x: n } = a, s = ie(a.query?.where);
2835
2842
  return e.map((o) => {
2836
2843
  let l = o;
2837
2844
  const c = i.find(
@@ -2844,7 +2851,7 @@ function Xr(t) {
2844
2851
  const { chartConfig: e, data: i, calculateZScore: r = !1, meanAndStdDevPerField: a } = t, { series: n, showMean: s } = e, o = _e(e), l = G(e.series), { x: c } = o, u = Pi({ showMean: s, seriesConfig: n });
2845
2852
  let d = i;
2846
2853
  if (i?.[0] !== void 0) {
2847
- const f = re(o.query?.where);
2854
+ const f = ie(o.query?.where);
2848
2855
  switch (l) {
2849
2856
  case S.BoxPlotC1MonoField:
2850
2857
  d[0][C.boxPlot.boxPlotCategory] = u[0];
@@ -2955,7 +2962,7 @@ async function so(t) {
2955
2962
  function Sf(t) {
2956
2963
  const { chartConfig: e, data: i, seriesConfig: r, seriesType: a } = t;
2957
2964
  let n = [];
2958
- const s = ue({ where: r.query?.where }), o = re(r.query?.where), l = a === "outliers" && e.series.length > 1 && "y" in r && (!Array.isArray(r.y) || r.y.length === 1), c = a === "outliers" && e.series.length > 1 && !ne(o);
2965
+ const s = ue({ where: r.query?.where }), o = ie(r.query?.where), l = a === "outliers" && e.series.length > 1 && "y" in r && (!Array.isArray(r.y) || r.y.length === 1), c = a === "outliers" && e.series.length > 1 && !ne(o);
2959
2966
  if (i)
2960
2967
  switch (a) {
2961
2968
  case "outliers":
@@ -3044,6 +3051,7 @@ function $t(t) {
3044
3051
  bt({
3045
3052
  arrayToSort: e,
3046
3053
  orderBy: u,
3054
+ chartConfig: i,
3047
3055
  sortingField: d,
3048
3056
  forceAscendingOrder: F,
3049
3057
  isNonAggregated: y,
@@ -3092,12 +3100,12 @@ async function bf(t) {
3092
3100
  const g = uu(c, d?.renderer), p = gu({
3093
3101
  chartRenderer: l,
3094
3102
  queryObject: i
3095
- }), y = $(o), F = G(o), x = _e(r), A = re(x.query?.where);
3103
+ }), y = $(o), F = G(o), b = _e(r), A = ie(b.query?.where);
3096
3104
  m = /* @__PURE__ */ new Map();
3097
3105
  for (let B = 0; B < (y === h.HistogramSeries && e.length > 0 ? 1 : e.length); B += 1) {
3098
- const b = e[B], v = await yu({
3106
+ const x = e[B], v = await yu({
3099
3107
  seriesConfig: r.series,
3100
- dataItem: b,
3108
+ dataItem: x,
3101
3109
  renderer: f,
3102
3110
  rendererType: g,
3103
3111
  rendererOrigin: u,
@@ -3136,8 +3144,8 @@ function co(t) {
3136
3144
  ], d = (p, y) => {
3137
3145
  const F = y[C.originalXValue];
3138
3146
  F !== void 0 && a && (y[a] = F);
3139
- const x = y[C.originalYCategoryValue];
3140
- x !== void 0 && n && (y[n] = x), a && y[H.xField] !== void 0 && (y[a] = y[C.originalXValue] !== void 0 ? y[C.originalXValue] : y[H.xField], delete y[H.xField]), n && y[H.yField] !== void 0 && (y[n] = y[C.originalYCategoryValue] !== void 0 ? y[C.originalYCategoryValue] : y[H.yField], delete y[H.yField]), s && y[H.valueField] !== void 0 && (y[s] = y[H.valueField], delete y[H.valueField]);
3147
+ const b = y[C.originalYCategoryValue];
3148
+ b !== void 0 && n && (y[n] = b), a && y[H.xField] !== void 0 && (y[a] = y[C.originalXValue] !== void 0 ? y[C.originalXValue] : y[H.xField], delete y[H.xField]), n && y[H.yField] !== void 0 && (y[n] = y[C.originalYCategoryValue] !== void 0 ? y[C.originalYCategoryValue] : y[H.yField], delete y[H.yField]), s && y[H.valueField] !== void 0 && (y[s] = y[H.valueField], delete y[H.valueField]);
3141
3149
  const A = {};
3142
3150
  return Object.keys(y).forEach((B) => {
3143
3151
  !u.includes(B) && !B.includes(C.rendererSymbolField) && !B.includes(Q.uniqueIds) && (A[B] = y[B]);
@@ -3161,7 +3169,7 @@ function fo(t) {
3161
3169
  y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
3162
3170
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
3163
3171
  }) ? a = o : a = i ?? [], n.length > 1 && s !== S.BarAndLineNoAggregation && s !== S.BarAndLineSplitByNoAggregation) {
3164
- const l = re(n[0].query?.where);
3172
+ const l = ie(n[0].query?.where);
3165
3173
  a = xt({ data: a, x: n[0].x, splitByField: l });
3166
3174
  }
3167
3175
  $t({
@@ -3228,7 +3236,7 @@ async function go(t) {
3228
3236
  errorStrings: n,
3229
3237
  abortKey: s,
3230
3238
  abortSignal: o
3231
- }), { calculatedAxisMinimum: F, calculatedAxisMaximum: x, gaugeValue: A } = await ho({
3239
+ }), { calculatedAxisMinimum: F, calculatedAxisMaximum: b, gaugeValue: A } = await ho({
3232
3240
  chartConfig: i,
3233
3241
  queryConfig: r,
3234
3242
  chartData: y,
@@ -3239,7 +3247,7 @@ async function go(t) {
3239
3247
  l.data = {
3240
3248
  dataItems: y,
3241
3249
  calculatedAxisMinimum: F,
3242
- calculatedAxisMaximum: x,
3250
+ calculatedAxisMaximum: b,
3243
3251
  gaugeValue: A
3244
3252
  }, l.count = y.length, Number.isNaN(A) && y.length > 0 && (l.valid = !1, l.invalidType = k.NoValue);
3245
3253
  } else
@@ -3425,9 +3433,9 @@ async function vo(t) {
3425
3433
  typeValue: p,
3426
3434
  fieldValue: y,
3427
3435
  slopePropertyList: F,
3428
- interceptPropertyList: x,
3436
+ interceptPropertyList: b,
3429
3437
  r2PropertyList: A
3430
- } = bo, B = `[{"${g}": "${p}", "${y}":"${l},${c}"}]`, b = await Hn({
3438
+ } = bo, B = `[{"${g}": "${p}", "${y}":"${l},${c}"}]`, x = await Hn({
3431
3439
  queryObject: i,
3432
3440
  queryConfig: a,
3433
3441
  outputFormat: m,
@@ -3436,10 +3444,10 @@ async function vo(t) {
3436
3444
  errorStrings: n,
3437
3445
  abortSignal: s
3438
3446
  });
3439
- if (b !== void 0) {
3447
+ if (x !== void 0) {
3440
3448
  let v = Number.NaN, T = Number.NaN;
3441
- const { expr: N } = Kt(b, F), { expr: L } = Kt(b, x), { expr: P } = Kt(b, A);
3442
- N !== void 0 && Number.isFinite(b[N]) && (v = b[N]), L !== void 0 && Number.isFinite(b[L]) && (T = b[L]), P !== void 0 && Number.isFinite(b[P]) && (u = b[P]);
3449
+ const { expr: N } = Kt(x, F), { expr: L } = Kt(x, b), { expr: P } = Kt(x, A);
3450
+ N !== void 0 && Number.isFinite(x[N]) && (v = x[N]), L !== void 0 && Number.isFinite(x[L]) && (T = x[L]), P !== void 0 && Number.isFinite(x[P]) && (u = x[P]);
3443
3451
  const { dataContextXMinField: w, dataContextXMaxField: O, dataContextYMinField: I, dataContextYMaxField: M } = C.scatterplotAggregationFields, E = e.get(w) ?? Number.NaN, z = e.get(O) ?? Number.NaN, _ = e.get(I) ?? Number.NaN, R = e.get(M) ?? Number.NaN, j = (z - E) / 100;
3444
3452
  let J = E - j, V = Number.NaN;
3445
3453
  for (; !(V >= _ && V <= R) && J <= z; )
@@ -3514,7 +3522,7 @@ function ea(t) {
3514
3522
  const {
3515
3523
  xAxisField: e,
3516
3524
  xAxisFieldType: i,
3517
- timeAggregationType: r = ie.Start,
3525
+ timeAggregationType: r = re.Start,
3518
3526
  // default value in sync with the spec
3519
3527
  dataContext: a,
3520
3528
  queryObject: n
@@ -3532,7 +3540,7 @@ function ea(t) {
3532
3540
  if (u) {
3533
3541
  const f = d ? "" : "'";
3534
3542
  let m = "", g = "";
3535
- r === ie.Start ? (g = ">=", m = a[C.lastTemporalBin] === !0 ? "<=" : "<") : (g = a[C.firstTemporalBin] === !0 ? ">=" : ">", m = "<="), s = `${e}${g}${f}${l}${f} AND ${e}${m}${f}${c}${f}`;
3543
+ r === re.Start ? (g = ">=", m = a[C.lastTemporalBin] === !0 ? "<=" : "<") : (g = a[C.firstTemporalBin] === !0 ? ">=" : ">", m = "<="), s = `${e}${g}${f}${l}${f} AND ${e}${m}${f}${c}${f}`;
3536
3544
  }
3537
3545
  }
3538
3546
  return s;
@@ -3731,7 +3739,7 @@ async function Po(t) {
3731
3739
  } = t, y = G(r.series);
3732
3740
  let F = { valid: !0, data: { dataItems: [] } };
3733
3741
  if (a !== void 0 && a.length > 0) {
3734
- const x = _e(r), { x: A } = x, B = "y" in x ? x.y : "", v = Ae(e).find((O) => O.name === A)?.type, T = [], N = a.reduce(
3742
+ const b = _e(r), { x: A } = b, B = "y" in b ? b.y : "", v = Ae(e).find((O) => O.name === A)?.type, T = [], N = a.reduce(
3735
3743
  (O, I) => {
3736
3744
  const M = [];
3737
3745
  if (Q.uniqueIds in I)
@@ -3741,7 +3749,7 @@ async function Po(t) {
3741
3749
  case S.BoxPlotC5MonoFieldAndSplitBy:
3742
3750
  case S.BoxPlotC6MultiFieldsAndSplitBy:
3743
3751
  case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
3744
- const _ = re(x.query?.where ?? ""), R = `_${q.Average}`;
3752
+ const _ = ie(b.query?.where ?? ""), R = `_${q.Average}`;
3745
3753
  Object.keys(I).forEach((Z) => {
3746
3754
  if (Z.includes(R)) {
3747
3755
  const j = Z.replace(R, "");
@@ -3818,26 +3826,26 @@ async function Io(t) {
3818
3826
  abortSignal: F
3819
3827
  } = t;
3820
3828
  pt(e);
3821
- const { series: x } = r, A = $(x), B = ve(r);
3822
- let b = { valid: !0 }, v = s?.selectionItems ?? [];
3829
+ const { series: b } = r, A = $(b), B = ve(r);
3830
+ let x = { valid: !0 }, v = s?.selectionItems ?? [];
3823
3831
  n || (v = fo({ chartConfig: r, currentSelectionItems: a, selectionData: s }));
3824
3832
  let T = !1;
3825
3833
  switch (A) {
3826
3834
  case h.HeatSeries:
3827
- b.data = { dataItems: v };
3835
+ x.data = { dataItems: v };
3828
3836
  break;
3829
3837
  case h.PieSeries:
3830
3838
  if (G(r.series) === S.PieFromFields) {
3831
3839
  const { x: N, y: L } = r.series[0], P = Re(v);
3832
3840
  P.forEach((w) => {
3833
3841
  N in w && (w[me] = w[N], delete w[N]), L in w && (w[Ne] = w[L], delete w[L]);
3834
- }), b.data = { dataItems: P };
3842
+ }), x.data = { dataItems: P };
3835
3843
  } else
3836
- b.data = { dataItems: v };
3837
- b.count = v.length, T = !0;
3844
+ x.data = { dataItems: v };
3845
+ x.count = v.length, T = !0;
3838
3846
  break;
3839
3847
  case h.BoxPlotSeries:
3840
- de(r) && (b = await Po({
3848
+ de(r) && (x = await Po({
3841
3849
  queryObject: e,
3842
3850
  queryConfig: i,
3843
3851
  chartConfig: r,
@@ -3862,16 +3870,16 @@ async function Io(t) {
3862
3870
  if (v.length === 0 || !De({
3863
3871
  xAxisValueFormatType: B,
3864
3872
  setTimeBinningInfoWhenNotProvided: o,
3865
- seriesConfig: x[0],
3873
+ seriesConfig: b[0],
3866
3874
  queryObject: e
3867
3875
  }))
3868
- b.data = { dataItems: v }, b.count = v.length * x.length, T = !0;
3876
+ x.data = { dataItems: v }, x.count = v.length * b.length, T = !0;
3869
3877
  else {
3870
3878
  const N = { ...i };
3871
3879
  if (a !== void 0 && a.length > 0) {
3872
3880
  const P = kr(r), w = a.map(
3873
3881
  (I) => ea({
3874
- xAxisField: x[0].x,
3882
+ xAxisField: b[0].x,
3875
3883
  dataContext: I,
3876
3884
  timeAggregationType: P,
3877
3885
  queryObject: e
@@ -3879,7 +3887,7 @@ async function Io(t) {
3879
3887
  ), O = Y(w, "OR");
3880
3888
  N.where = Y([N.where, O]);
3881
3889
  }
3882
- b = await Ni({
3890
+ x = await Ni({
3883
3891
  queryObject: e,
3884
3892
  queryConfig: N,
3885
3893
  chartConfig: r,
@@ -3896,20 +3904,20 @@ async function Io(t) {
3896
3904
  break;
3897
3905
  case h.HistogramSeries: {
3898
3906
  if (v.length === 0)
3899
- b.data = {
3907
+ x.data = {
3900
3908
  mean: Number.NaN,
3901
3909
  median: Number.NaN,
3902
3910
  stddev: Number.NaN,
3903
3911
  max: Number.NaN,
3904
3912
  min: Number.NaN,
3905
3913
  bins: []
3906
- }, b.count = 0;
3914
+ }, x.count = 0;
3907
3915
  else {
3908
- const { x: N } = x[0], L = v.map((O, I) => {
3916
+ const { x: N } = b[0], L = v.map((O, I) => {
3909
3917
  const { minValue: M, maxValue: E } = O, z = I === v.length - 1 ? "<=" : "<";
3910
3918
  return `${N} >= ${M} AND ${N} ${z} ${E}`;
3911
3919
  }), P = Y(L, "OR"), w = { ...i };
3912
- w.where = Y([w.where, P]), b = await Ur({
3920
+ w.where = Y([w.where, P]), x = await Ur({
3913
3921
  queryObject: e,
3914
3922
  chartConfig: r,
3915
3923
  queryConfig: w,
@@ -3924,21 +3932,21 @@ async function Io(t) {
3924
3932
  case h.ScatterSeries: {
3925
3933
  if (v.length === 0) {
3926
3934
  const { r2: N, trendLinePoints: L } = C.scatterplotSeries;
3927
- b.data = { dataItems: [], r2: N, trendLinePoints: L, count: 0 }, b.count = 0;
3935
+ x.data = { dataItems: [], r2: N, trendLinePoints: L, count: 0 }, x.count = 0;
3928
3936
  } else {
3929
3937
  const { r2: N, trendLinePoints: L } = Jr({
3930
3938
  data: v,
3931
3939
  chartConfig: r
3932
3940
  });
3933
- b.data = { dataItems: v, r2: N, trendLinePoints: L }, b.count = v.length;
3941
+ x.data = { dataItems: v, r2: N, trendLinePoints: L }, x.count = v.length;
3934
3942
  }
3935
3943
  break;
3936
3944
  }
3937
3945
  }
3938
- return T && b.data !== void 0 && $t({
3939
- arrayToSort: "dataItems" in b.data ? b.data.dataItems : b.data,
3946
+ return T && x.data !== void 0 && $t({
3947
+ arrayToSort: "dataItems" in x.data ? x.data.dataItems : x.data,
3940
3948
  chartConfig: r
3941
- }), b;
3949
+ }), x;
3942
3950
  }
3943
3951
  async function Ai(t) {
3944
3952
  const {
@@ -3978,8 +3986,8 @@ async function Ai(t) {
3978
3986
  if (!y)
3979
3987
  p = F;
3980
3988
  else {
3981
- const x = { dataItems: [] };
3982
- x.meanLines = F.data.dataItems;
3989
+ const b = { dataItems: [] };
3990
+ b.meanLines = F.data.dataItems;
3983
3991
  const A = Hs(i), B = (await di({
3984
3992
  queryObject: e,
3985
3993
  queryConfig: r,
@@ -3997,7 +4005,7 @@ async function Ai(t) {
3997
4005
  abortKey: n,
3998
4006
  abortSignal: s
3999
4007
  })).data;
4000
- x.dataItems = B.dataItems, x.outliers = B.outliers, p.data = x;
4008
+ b.dataItems = B.dataItems, b.outliers = B.outliers, p.data = b;
4001
4009
  }
4002
4010
  return p;
4003
4011
  }
@@ -4020,10 +4028,10 @@ async function vf(t) {
4020
4028
  chartLimits: p,
4021
4029
  popupTemplateFieldInfosEnabled: y,
4022
4030
  hideZeroCountCategories: F,
4023
- replaceNoValueCategoryWithZero: x,
4031
+ replaceNoValueCategoryWithZero: b,
4024
4032
  view: A,
4025
4033
  syncViewTimeZone: B,
4026
- errorStrings: b,
4034
+ errorStrings: x,
4027
4035
  fieldList: v,
4028
4036
  preFetchedQueryResponse: T
4029
4037
  } = t, { series: N } = i;
@@ -4050,9 +4058,9 @@ async function vf(t) {
4050
4058
  chartLimits: p,
4051
4059
  popupTemplateFieldInfosEnabled: y,
4052
4060
  hideZeroCountCategories: F,
4053
- replaceNoValueCategoryWithZero: x,
4061
+ replaceNoValueCategoryWithZero: b,
4054
4062
  view: A,
4055
- errorStrings: b,
4063
+ errorStrings: x,
4056
4064
  abortKey: r,
4057
4065
  abortSignal: a
4058
4066
  });
@@ -4063,7 +4071,7 @@ async function vf(t) {
4063
4071
  chartConfig: i,
4064
4072
  queryConfig: w,
4065
4073
  queryObject: e,
4066
- errorStrings: b,
4074
+ errorStrings: x,
4067
4075
  returnFeaturesExtent: m,
4068
4076
  returnStatisticsAggregatedIds: g,
4069
4077
  chartLimits: p,
@@ -4086,9 +4094,9 @@ async function vf(t) {
4086
4094
  chartLimits: p,
4087
4095
  popupTemplateFieldInfosEnabled: y,
4088
4096
  hideZeroCountCategories: F,
4089
- replaceNoValueCategoryWithZero: x,
4097
+ replaceNoValueCategoryWithZero: b,
4090
4098
  view: A,
4091
- errorStrings: b,
4099
+ errorStrings: x,
4092
4100
  abortKey: r,
4093
4101
  abortSignal: a
4094
4102
  }));
@@ -4104,14 +4112,14 @@ async function vf(t) {
4104
4112
  queryConfig: w,
4105
4113
  chartConfig: i,
4106
4114
  filterByViewExtent: o,
4107
- errorStrings: b,
4115
+ errorStrings: x,
4108
4116
  setTimeBinningInfoWhenNotProvided: f,
4109
4117
  returnFeaturesExtent: m,
4110
4118
  returnStatisticsAggregatedIds: g,
4111
4119
  chartLimits: p,
4112
4120
  popupTemplateFieldInfosEnabled: y,
4113
4121
  hideZeroCountCategories: F,
4114
- replaceNoValueCategoryWithZero: x,
4122
+ replaceNoValueCategoryWithZero: b,
4115
4123
  view: A,
4116
4124
  abortKey: r,
4117
4125
  abortSignal: a,
@@ -4137,10 +4145,10 @@ async function vf(t) {
4137
4145
  chartLimits: p,
4138
4146
  popupTemplateFieldInfosEnabled: y,
4139
4147
  hideZeroCountCategories: F,
4140
- replaceNoValueCategoryWithZero: x,
4148
+ replaceNoValueCategoryWithZero: b,
4141
4149
  view: A,
4142
4150
  chartConfig: i,
4143
- errorStrings: b,
4151
+ errorStrings: x,
4144
4152
  abortKey: r,
4145
4153
  abortSignal: a
4146
4154
  });
@@ -4155,7 +4163,7 @@ async function vf(t) {
4155
4163
  view: A,
4156
4164
  abortKey: r,
4157
4165
  abortSignal: a,
4158
- errorStrings: b
4166
+ errorStrings: x
4159
4167
  });
4160
4168
  break;
4161
4169
  case h.GaugeSeries:
@@ -4164,7 +4172,7 @@ async function vf(t) {
4164
4172
  chartConfig: i,
4165
4173
  queryConfig: w,
4166
4174
  chartLimits: p,
4167
- errorStrings: b,
4175
+ errorStrings: x,
4168
4176
  abortKey: r,
4169
4177
  abortSignal: a
4170
4178
  });
@@ -4213,7 +4221,7 @@ async function Do(t) {
4213
4221
  errorStrings: o,
4214
4222
  abortKey: l,
4215
4223
  abortSignal: c
4216
- })).map((x) => x.attributes[g]).filter((x) => x != null);
4224
+ })).map((b) => b.attributes[g]).filter((b) => b != null);
4217
4225
  F.length > e.length && (d = Mo(F, e, g));
4218
4226
  }
4219
4227
  return d;
@@ -4392,8 +4400,8 @@ function $o(t) {
4392
4400
  let d, f;
4393
4401
  if (Be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), l > 1 || o === U.Week || o === U.Month || o === U.Year) {
4394
4402
  const { query: m } = i[0], g = se(i), { statisticType: p } = m?.outStatistics?.[0] ?? Fr;
4395
- let y = !1, F = d === ie.End ? e.length - 1 : 0;
4396
- const x = {
4403
+ let y = !1, F = d === re.End ? e.length - 1 : 0;
4404
+ const b = {
4397
4405
  binFirstOrLastIndex: F,
4398
4406
  data: e,
4399
4407
  x: u,
@@ -4401,24 +4409,24 @@ function $o(t) {
4401
4409
  };
4402
4410
  for (; !y; ) {
4403
4411
  let A = {};
4404
- const { binStartDate: B, binEndDate: b, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: N, sliceEndIndex: L } = d === ie.End ? (
4412
+ const { binStartDate: B, binEndDate: x, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: N, sliceEndIndex: L } = d === re.End ? (
4405
4413
  // When grouping from the end we'll start from the last date and move backward to create the bins
4406
- Ro(x)
4414
+ Ro(b)
4407
4415
  ) : (
4408
4416
  // When grouping from the start we'll start from the first date and move forward to create the bins
4409
- qo(x)
4417
+ qo(b)
4410
4418
  );
4411
- if (y = v, A = d === ie.End ? A = e[L - 1] : A = e[F], b > n && B < n || B < a && b > a || B >= a && b <= n) {
4419
+ if (y = v, A = d === re.End ? A = e[L - 1] : A = e[F], x > n && B < n || B < a && x > a || B >= a && x <= n) {
4412
4420
  const P = e.slice(N, L).filter((I) => !(C.dateBinModel in I));
4413
4421
  g.forEach((I) => {
4414
4422
  A[I] = Vo({ binsToRegroup: P, statisticType: p, y: I, nullPolicy: f });
4415
4423
  });
4416
4424
  const w = P.map((I) => I[qe]).filter((I) => I !== void 0), O = ls(w);
4417
- O !== void 0 && (A[qe] = O), A[u] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, b], delete A[C.dateBinModel], s.push(A);
4418
- } else v && d !== ie.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
4419
- F = T, x.binFirstOrLastIndex = T;
4425
+ O !== void 0 && (A[qe] = O), A[u] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, x], delete A[C.dateBinModel], s.push(A);
4426
+ } else v && d !== re.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
4427
+ F = T, b.binFirstOrLastIndex = T;
4420
4428
  }
4421
- d === ie.End && (s = s.reverse());
4429
+ d === re.End && (s = s.reverse());
4422
4430
  } else l === 1 ? s = e.map((m, g) => {
4423
4431
  const p = m[u];
4424
4432
  let y = e[g + 1]?.[u];
@@ -4488,7 +4496,7 @@ function ko(t) {
4488
4496
  let g = Math.ceil(r / i) * i - r;
4489
4497
  l === U.Week && (g *= 7);
4490
4498
  const p = na(n);
4491
- if (u === ie.End) {
4499
+ if (u === re.End) {
4492
4500
  let y = a[0][c];
4493
4501
  for (let F = 0; F < g; F += 1)
4494
4502
  y = ke({
@@ -4572,17 +4580,17 @@ function Ho(t) {
4572
4580
  unit: l
4573
4581
  })) {
4574
4582
  const { x: d } = r[0], f = r[0].temporalBinning?.timeAggregationType, m = na(r);
4575
- let p = f === ie.End ? i : e, y = f === ie.End ? a.length - 1 : 0;
4576
- for (; y < a.length && (f === ie.End && p > e || f !== ie.End && p < i); )
4583
+ let p = f === re.End ? i : e, y = f === re.End ? a.length - 1 : 0;
4584
+ for (; y < a.length && (f === re.End && p > e || f !== re.End && p < i); )
4577
4585
  p !== a[y][d] ? c.push({
4578
4586
  ...m,
4579
4587
  [d]: p,
4580
4588
  [C.xAxisField]: p
4581
- }) : y = f === ie.End ? y - 1 : y + 1, p = ke({
4589
+ }) : y = f === re.End ? y - 1 : y + 1, p = ke({
4582
4590
  date: p,
4583
4591
  unit: l === U.Month || l === U.Year ? U.Day : l,
4584
4592
  size: 1,
4585
- nextOrPrevious: f === ie.End ? "previous" : "next"
4593
+ nextOrPrevious: f === re.End ? "previous" : "next"
4586
4594
  });
4587
4595
  }
4588
4596
  return c;
@@ -4591,8 +4599,8 @@ function Uo(t) {
4591
4599
  const { data: e, seriesConfig: i, dateMinTimestamp: r, dateMaxTimestamp: a } = t, n = e;
4592
4600
  if (i[0].temporalBinning?.trimIncompleteTimeInterval !== !1) {
4593
4601
  const { timeAggregationType: s } = i[0].temporalBinning ?? {}, o = e[0]?.[C.dateBinningRange]?.[0], l = e[e.length - 1]?.[C.dateBinningRange]?.[1];
4594
- if (s === ie.End ? o < r : l > a)
4595
- if (s === ie.End) {
4602
+ if (s === re.End ? o < r : l > a)
4603
+ if (s === re.End) {
4596
4604
  let u = o;
4597
4605
  for (; u < r && e.length > 0; )
4598
4606
  e.shift(), e.length > 0 && (u = e[0][C.dateBinningRange]?.[0]);
@@ -4631,11 +4639,11 @@ function* zo(t) {
4631
4639
  ];
4632
4640
  let g = Ye.groupByCaseBegin;
4633
4641
  for (let y = 0; y < a.length; y += 1) {
4634
- const F = a[y], [x, A] = F[C.dateBinningRange], B = ct(x), b = ct(A);
4642
+ const F = a[y], [b, A] = F[C.dateBinningRange], B = ct(b), x = ct(A);
4635
4643
  g = Go({
4636
4644
  groupByFieldsForStatistics: g,
4637
4645
  queryStartDate: B,
4638
- queryEndDate: b,
4646
+ queryEndDate: x,
4639
4647
  dateField: u,
4640
4648
  y: [d].flat()[0],
4641
4649
  binIndex: y,
@@ -4722,16 +4730,16 @@ function tr(t, e) {
4722
4730
  function jo(t) {
4723
4731
  const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: a, x: n, y: s, nullPolicy: o, queryObject: l } = t, c = qr(n), d = Ae(l).find((F) => F.name === n)?.type, f = [], m = e.series[0], g = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4724
4732
  let y = !1;
4725
- return i.forEach((F, x) => {
4726
- if (g && (x === 0 && p === ie.End || x === i.length - 1 && p === ie.Start))
4733
+ return i.forEach((F, b) => {
4734
+ if (g && (b === 0 && p === re.End || b === i.length - 1 && p === re.Start))
4727
4735
  y = !0;
4728
4736
  else {
4729
- const { attributes: B, stackedAttributes: b, statisticsAggregatedIds: v } = F;
4737
+ const { attributes: B, stackedAttributes: x, statisticsAggregatedIds: v } = F;
4730
4738
  let T = B[c.lowerBoundaryAlias], N = B[c.upperBoundaryAlias];
4731
4739
  const L = T, P = N;
4732
4740
  if (T = tr(T, d), N = tr(N, d), typeof T == "number" && typeof N == "number") {
4733
4741
  const w = { ...B };
4734
- w[C.originalServerBinningRange] = [L, P], w[n] = T, w[C.xAxisField] = T, w[C.dateBinningRange] = [T, N], v && v.length !== Tt && (w[Q.uniqueIds] = v), delete w[c.lowerBoundaryAlias], delete w[c.upperBoundaryAlias], b && a && !ne(a) && r ? b.forEach((M) => {
4742
+ w[C.originalServerBinningRange] = [L, P], w[n] = T, w[C.xAxisField] = T, w[C.dateBinningRange] = [T, N], v && v.length !== Tt && (w[Q.uniqueIds] = v), delete w[c.lowerBoundaryAlias], delete w[c.upperBoundaryAlias], x && a && !ne(a) && r ? x.forEach((M) => {
4735
4743
  const E = M[a];
4736
4744
  if (E === null || typeof E == "string" || typeof E == "number") {
4737
4745
  const z = r?.get(E);
@@ -4751,67 +4759,70 @@ async function Xo(t) {
4751
4759
  const {
4752
4760
  queryObject: e,
4753
4761
  queryResults: i,
4754
- x: r,
4755
- queryConfig: a,
4756
- seriesConfig: n,
4757
- dateRange: s,
4758
- timeIntervalInfo: o,
4759
- errorStrings: l,
4760
- abortSignal: c
4762
+ chartConfig: r,
4763
+ x: a,
4764
+ queryConfig: n,
4765
+ seriesConfig: s,
4766
+ dateRange: o,
4767
+ timeIntervalInfo: l,
4768
+ errorStrings: c,
4769
+ abortSignal: u
4761
4770
  } = t;
4762
- let u = i;
4763
- const { dateMinTimestamp: d, dateMaxTimestamp: f } = s;
4764
- if (d && f) {
4765
- const m = i.length;
4771
+ let d = i;
4772
+ const { dateMinTimestamp: f, dateMaxTimestamp: m } = o;
4773
+ if (f && m) {
4774
+ const g = i.length;
4766
4775
  if (bt({
4767
- arrayToSort: u,
4768
- sortingField: r
4769
- }), m > 1) {
4770
- const { numberOfFinalBinsWithinDataRange: g, numberOfSingleBinsWithinDataRange: p } = aa({
4771
- dateMinTimestamp: d,
4772
- dateMaxTimestamp: f,
4773
- timeIntervalInfo: o
4774
- }), { newDateMin: y, newDateMax: F } = ko({
4775
- dateMaxTimestamp: f,
4776
- data: u,
4777
- numberOfFinalBinsWithinDataRange: g,
4778
- numberOfSingleBinsWithinDataRange: p,
4779
- seriesConfig: n,
4780
- timeIntervalInfo: o
4776
+ arrayToSort: d,
4777
+ sortingField: a,
4778
+ chartConfig: r
4779
+ }), g > 1) {
4780
+ const { numberOfFinalBinsWithinDataRange: p, numberOfSingleBinsWithinDataRange: y } = aa({
4781
+ dateMinTimestamp: f,
4782
+ dateMaxTimestamp: m,
4783
+ timeIntervalInfo: l
4784
+ }), { newDateMin: F, newDateMax: b } = ko({
4785
+ dateMaxTimestamp: m,
4786
+ data: d,
4787
+ numberOfFinalBinsWithinDataRange: p,
4788
+ numberOfSingleBinsWithinDataRange: y,
4789
+ seriesConfig: s,
4790
+ timeIntervalInfo: l
4781
4791
  });
4782
- u = Ho({
4783
- newDateMin: y,
4784
- newDateMax: F,
4785
- seriesConfig: n,
4786
- data: u,
4787
- initialNumberOfBins: m,
4788
- numberOfSingleBinsWithinDataRange: p,
4789
- timeIntervalInfo: o
4792
+ d = Ho({
4793
+ newDateMin: F,
4794
+ newDateMax: b,
4795
+ seriesConfig: s,
4796
+ data: d,
4797
+ initialNumberOfBins: g,
4798
+ numberOfSingleBinsWithinDataRange: y,
4799
+ timeIntervalInfo: l
4790
4800
  }), bt({
4791
- arrayToSort: u,
4792
- sortingField: r
4793
- }), u = $o({
4794
- data: u,
4795
- seriesConfig: n,
4796
- dateMinTimestamp: d,
4797
- dateMaxTimestamp: f,
4798
- timeIntervalInfo: o
4799
- }), u = Uo({
4800
- data: u,
4801
- seriesConfig: n,
4802
- dateMinTimestamp: d,
4803
- dateMaxTimestamp: f
4804
- }), e && (u = await Wo({
4801
+ arrayToSort: d,
4802
+ sortingField: a,
4803
+ chartConfig: r
4804
+ }), d = $o({
4805
+ data: d,
4806
+ seriesConfig: s,
4807
+ dateMinTimestamp: f,
4808
+ dateMaxTimestamp: m,
4809
+ timeIntervalInfo: l
4810
+ }), d = Uo({
4811
+ data: d,
4812
+ seriesConfig: s,
4813
+ dateMinTimestamp: f,
4814
+ dateMaxTimestamp: m
4815
+ }), e && (d = await Wo({
4805
4816
  queryObject: e,
4806
- data: u,
4807
- seriesConfig: n,
4808
- queryConfig: a,
4809
- errorStrings: l,
4810
- abortSignal: c
4817
+ data: d,
4818
+ seriesConfig: s,
4819
+ queryConfig: n,
4820
+ errorStrings: c,
4821
+ abortSignal: u
4811
4822
  }));
4812
4823
  }
4813
4824
  }
4814
- return u;
4825
+ return d;
4815
4826
  }
4816
4827
  function Yo(t) {
4817
4828
  return Math.floor(Math.min(Math.max(8, Math.sqrt(t ?? 8)), 128) + 0.5);
@@ -5072,7 +5083,7 @@ function la(t) {
5072
5083
  resultLimit: o,
5073
5084
  chartLimits: l,
5074
5085
  fieldList: c
5075
- } = t, { series: u } = r, d = G(u), f = $(u), { x: m } = u[0], g = "y" in u[0] ? u[0].y : void 0, p = u[0].query?.outStatistics ?? [], y = qt(r?.axes?.[0]?.valueFormat), F = yi(e, m), x = typeof g == "string" ? yi(e, g) : void 0, B = Qu(c ?? []).includes(m), b = Xe(r), v = [];
5086
+ } = t, { series: u } = r, d = G(u), f = $(u), { x: m } = u[0], g = "y" in u[0] ? u[0].y : void 0, p = u[0].query?.outStatistics ?? [], y = qt(r?.axes?.[0]?.valueFormat), F = yi(e, m), b = typeof g == "string" ? yi(e, g) : void 0, B = Qu(c ?? []).includes(m), x = Xe(r), v = [];
5076
5087
  let T = 0;
5077
5088
  const N = /* @__PURE__ */ new Set(), {
5078
5089
  maxCategoryCount: L,
@@ -5091,7 +5102,7 @@ function la(t) {
5091
5102
  chartSubType: d,
5092
5103
  attributes: E,
5093
5104
  y: typeof g == "string" ? g : g?.[0]
5094
- }), gl({ attributes: E, showMean: b, chartSubType: d }), al({ attributes: E, x: m, categoryValueFormat: y, isDateField: B, isTimeBinningSeries: s }), il({
5105
+ }), gl({ attributes: E, showMean: x, chartSubType: d }), al({ attributes: E, x: m, categoryValueFormat: y, isDateField: B, isTimeBinningSeries: s }), il({
5095
5106
  x: m,
5096
5107
  fieldList: c,
5097
5108
  attributes: E
@@ -5109,7 +5120,7 @@ function la(t) {
5109
5120
  x: m,
5110
5121
  y: g,
5111
5122
  xFieldDomain: F,
5112
- yFieldDomain: x,
5123
+ yFieldDomain: b,
5113
5124
  chartType: f,
5114
5125
  chartSubType: d,
5115
5126
  xAxisValueFormat: r.axes?.[0].valueFormat,
@@ -5149,7 +5160,7 @@ async function Yt(t) {
5149
5160
  abortSignal: m
5150
5161
  } = t, { series: g } = r, p = G(g);
5151
5162
  let y = [];
5152
- const F = p === S.BarAndLineSplitBy || p === S.BarAndLineSplitByNoAggregation ? re(g[0].query?.where) : "", x = u ?? await Fe({
5163
+ const F = p === S.BarAndLineSplitBy || p === S.BarAndLineSplitByNoAggregation ? ie(g[0].query?.where) : "", b = u ?? await Fe({
5153
5164
  queryObject: e,
5154
5165
  queryConfig: i,
5155
5166
  featureCount: n,
@@ -5160,7 +5171,7 @@ async function Yt(t) {
5160
5171
  }), A = Ae(e, l), { x: B } = g[0];
5161
5172
  return y = la({
5162
5173
  queryObject: e,
5163
- queryResponse: x,
5174
+ queryResponse: b,
5164
5175
  chartConfig: r,
5165
5176
  mapToStatField: a,
5166
5177
  splitByField: F,
@@ -5218,10 +5229,10 @@ async function di(t) {
5218
5229
  hideZeroCountCategories: p
5219
5230
  } = t;
5220
5231
  Xe(e);
5221
- const y = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, F = !(p ?? !y), { behaviorAfterLimit: x } = m ?? {};
5232
+ const y = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, F = !(p ?? !y), { behaviorAfterLimit: b } = m ?? {};
5222
5233
  let A;
5223
5234
  const B = { valid: !0 };
5224
- let b, v = !1;
5235
+ let x, v = !1;
5225
5236
  const T = e.series, N = T[0], L = G(e.series);
5226
5237
  if (te(a))
5227
5238
  A = $(T) === h.BarSeries ? await Au(t) : B;
@@ -5240,7 +5251,7 @@ async function di(t) {
5240
5251
  chartConfig: e,
5241
5252
  queryObject: a,
5242
5253
  queryConfig: i,
5243
- behaviorAfterLimit: x,
5254
+ behaviorAfterLimit: b,
5244
5255
  numberMaxOfFeaturesToFetch: w.num,
5245
5256
  abortSignal: c
5246
5257
  });
@@ -5252,7 +5263,7 @@ async function di(t) {
5252
5263
  chartLimits: m
5253
5264
  });
5254
5265
  if (_) {
5255
- if (b = await Yt({
5266
+ if (x = await Yt({
5256
5267
  queryObject: a,
5257
5268
  uniqueQuery: w,
5258
5269
  chartConfig: e,
@@ -5266,9 +5277,9 @@ async function di(t) {
5266
5277
  errorStrings: l,
5267
5278
  abortKey: n,
5268
5279
  abortSignal: c
5269
- }), de(e) && b !== void 0) {
5280
+ }), de(e) && x !== void 0) {
5270
5281
  B.data = await so({
5271
- data: b,
5282
+ data: x,
5272
5283
  queryObject: a,
5273
5284
  fetchFullBoxPlotData: r,
5274
5285
  uniqueQuery: w,
@@ -5282,49 +5293,49 @@ async function di(t) {
5282
5293
  const R = m?.maxBoxPlotOutlierLimit ?? m?.boxPlot?.outliers;
5283
5294
  R !== void 0 && (_ = (B.data.outliers ?? []).length <= R, v = !_);
5284
5295
  }
5285
- if (z && (I = b.length, M = ui(L) ? I * T.length : I, _ = Pe({
5296
+ if (z && (I = x.length, M = ui(L) ? I * T.length : I, _ = Pe({
5286
5297
  count: M,
5287
5298
  seriesCount: T.length,
5288
5299
  chartType: P,
5289
5300
  chartLimits: m
5290
5301
  })), _) {
5291
5302
  if (P === h.PieSeries) {
5292
- L === S.PieFromFields && (b = Rt({
5293
- dataToConvert: b[0],
5303
+ L === S.PieFromFields && (x = Rt({
5304
+ dataToConvert: x[0],
5294
5305
  x: me,
5295
5306
  y: Ne,
5296
5307
  fieldList: s
5297
5308
  }));
5298
5309
  let R = "";
5299
- L === S.PieFromFields ? R = Ne : "y" in N && typeof N.y == "string" && (R = N.y), fs(b, R) ? B.data = { dataItems: b } : Ws(B, k.PieChartMixOfNegativePositiveSlices);
5300
- } else if ((P === h.RadarSeries || P === h.BarSeries || P === h.LineSeries || P === h.ComboLineAndBarSeries) && (L === S.BarAndLineFromFields && "y" in N && typeof N.y == "string" ? b = Rt({
5301
- dataToConvert: b[0],
5310
+ L === S.PieFromFields ? R = Ne : "y" in N && typeof N.y == "string" && (R = N.y), fs(x, R) ? B.data = { dataItems: x } : Ws(B, k.PieChartMixOfNegativePositiveSlices);
5311
+ } else if ((P === h.RadarSeries || P === h.BarSeries || P === h.LineSeries || P === h.ComboLineAndBarSeries) && (L === S.BarAndLineFromFields && "y" in N && typeof N.y == "string" ? x = Rt({
5312
+ dataToConvert: x[0],
5302
5313
  x: N.x,
5303
5314
  y: N.y,
5304
5315
  fieldList: s
5305
- }) : b = await Do({
5316
+ }) : x = await Do({
5306
5317
  queryObject: a,
5307
- seriesData: b,
5318
+ seriesData: x,
5308
5319
  chartConfig: e,
5309
5320
  queryConfig: i,
5310
5321
  categoryOrDateCount: I,
5311
- behaviorAfterLimit: x,
5322
+ behaviorAfterLimit: b,
5312
5323
  errorStrings: l,
5313
5324
  abortKey: n,
5314
5325
  abortSignal: c
5315
- }), M = ui(L) ? b.length * T.length : b.length, _ = Pe({
5326
+ }), M = ui(L) ? x.length * T.length : x.length, _ = Pe({
5316
5327
  count: M,
5317
5328
  seriesCount: T.length,
5318
5329
  chartType: P,
5319
5330
  chartLimits: m
5320
5331
  }), _)) {
5321
- F && (b = Oo(b, e));
5332
+ F && (x = Oo(x, e));
5322
5333
  let R = {};
5323
5334
  if (Be(N)) {
5324
5335
  const { size: Z, unit: j } = N.temporalBinning ?? {};
5325
5336
  Z !== void 0 && j !== void 0 && (R = { size: Z, unit: j });
5326
5337
  }
5327
- B.data = { dataItems: b, timeIntervalInfo: R, chartLimitsReached: E };
5338
+ B.data = { dataItems: x, timeIntervalInfo: R, chartLimitsReached: E };
5328
5339
  }
5329
5340
  }
5330
5341
  }
@@ -5446,7 +5457,7 @@ async function ca(t) {
5446
5457
  } = t, p = { valid: !0 };
5447
5458
  let y;
5448
5459
  if (je(e)) {
5449
- const { nullPolicy: F } = e, x = e.series[0], { x: A, y: B, query: b, xTemporalBinning: v, yTemporalBinning: T } = x, N = b?.outStatistics?.[0]?.outStatisticFieldName ?? "", L = b?.outStatistics?.[0]?.statisticType ?? D.Count, P = Cl(e), w = H.valueField, O = F === Se.Zero ? 0 : null;
5460
+ const { nullPolicy: F } = e, b = e.series[0], { x: A, y: B, query: x, xTemporalBinning: v, yTemporalBinning: T } = b, N = x?.outStatistics?.[0]?.outStatisticFieldName ?? "", L = x?.outStatistics?.[0]?.statisticType ?? D.Count, P = Cl(e), w = H.valueField, O = F === Se.Zero ? 0 : null;
5450
5461
  if (Us(e)) {
5451
5462
  const I = n ? await ti({
5452
5463
  queryObject: r,
@@ -5617,18 +5628,18 @@ async function Ni(t) {
5617
5628
  popupTemplateFieldInfosEnabled: f,
5618
5629
  view: m,
5619
5630
  syncViewTimeZone: g
5620
- } = t, { behaviorAfterLimit: p } = d ?? {}, y = e.series, F = y[0], { x } = F, A = re(F.query?.where), B = { valid: !0 };
5621
- let b;
5631
+ } = t, { behaviorAfterLimit: p } = d ?? {}, y = e.series, F = y[0], { x: b } = F, A = ie(F.query?.where), B = { valid: !0 };
5632
+ let x;
5622
5633
  if (Be(F)) {
5623
5634
  const { temporalBinning: v } = F;
5624
5635
  if (r && v) {
5625
- const { unit: T, size: N } = v, w = Ae(r).find((fe) => fe.name === x)?.type;
5636
+ const { unit: T, size: N } = v, w = Ae(r).find((fe) => fe.name === b)?.type;
5626
5637
  let O = 1, I = { unit: T, size: N }, M = !1, E = !1, z = !1;
5627
5638
  const _ = Jo({
5628
5639
  series: F,
5629
5640
  isTimeBinningSeries: !0,
5630
5641
  setTimeBinningInfoWhenNotProvided: l
5631
- }), R = !ut(A, r) || _ ? await _o({ queryObject: r, queryConfig: i, x, xFieldType: w, errorStrings: o, abortSignal: n }) : void 0;
5642
+ }), R = !ut(A, r) || _ ? await _o({ queryObject: r, queryConfig: i, x: b, xFieldType: w, errorStrings: o, abortSignal: n }) : void 0;
5632
5643
  _ && R && R.numberOfFeatures > 0 && R.dateRange.dateMaxTimestamp !== void 0 && R.dateRange.dateMinTimestamp !== void 0 && (I = Zo(R), w === X.DateOnly && I.unit !== void 0 && [
5633
5644
  U.Hour,
5634
5645
  U.Minute,
@@ -5655,7 +5666,7 @@ async function Ni(t) {
5655
5666
  if (ut(A, r)) {
5656
5667
  const fe = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, gt = s?.[0] instanceof Pn ? s : await Zn({
5657
5668
  queryObject: r,
5658
- dateField: x,
5669
+ dateField: b,
5659
5670
  splitByField: A,
5660
5671
  queryConfig: Z,
5661
5672
  axisTimeZone: fe,
@@ -5666,22 +5677,22 @@ async function Ni(t) {
5666
5677
  returnStatisticsAggregatedIds: u,
5667
5678
  abortSignal: n
5668
5679
  }), it = "y" in F && typeof F.y == "string" ? F.y : void 0;
5669
- if ({ data: b, firstOrLastWasSkipped: z } = jo({
5680
+ if ({ data: x, firstOrLastWasSkipped: z } = jo({
5670
5681
  chartConfig: e,
5671
5682
  queryResults: gt,
5672
5683
  mapToStatField: j,
5673
5684
  splitByField: A,
5674
- x,
5685
+ x: b,
5675
5686
  y: it,
5676
5687
  nullPolicy: v.nullPolicy,
5677
5688
  queryObject: r
5678
5689
  }), !Pe({
5679
- count: b.length,
5690
+ count: x.length,
5680
5691
  seriesCount: y.length,
5681
5692
  chartType: J,
5682
5693
  chartLimits: d
5683
5694
  })) {
5684
- const Nt = se(y), yt = b.filter(
5695
+ const Nt = se(y), yt = x.filter(
5685
5696
  (we) => Nt.some((Te) => Te in we && Number.isFinite(we[Te]))
5686
5697
  ).length;
5687
5698
  Pe({
@@ -5697,7 +5708,7 @@ async function Ni(t) {
5697
5708
  dateMaxTimestamp: R.dateRange.dateMaxTimestamp,
5698
5709
  timeIntervalInfo: I
5699
5710
  });
5700
- O = fe * y.length, O = ra(O, I.unit), b = await Yt({
5711
+ O = fe * y.length, O = ra(O, I.unit), x = await Yt({
5701
5712
  queryObject: r,
5702
5713
  uniqueQuery: Z,
5703
5714
  chartConfig: e,
@@ -5710,11 +5721,12 @@ async function Ni(t) {
5710
5721
  errorStrings: o,
5711
5722
  abortKey: a,
5712
5723
  abortSignal: n
5713
- }), b = await Xo({
5724
+ }), x = await Xo({
5714
5725
  queryObject: r,
5715
5726
  queryConfig: i,
5716
- queryResults: b,
5717
- x,
5727
+ chartConfig: e,
5728
+ queryResults: x,
5729
+ x: b,
5718
5730
  seriesConfig: y,
5719
5731
  dateRange: R.dateRange,
5720
5732
  timeIntervalInfo: I,
@@ -5722,10 +5734,10 @@ async function Ni(t) {
5722
5734
  abortSignal: n
5723
5735
  });
5724
5736
  }
5725
- qn(r) && b && (b?.length + 1 === Gi && z || b.length === Gi) && (M = !0), p === Ze.RenderUpToTheLimit && b && ({ trimmedData: b, chartLimitsReached: E } = Tl({ chartConfig: e, chartLimits: d, data: b }));
5737
+ qn(r) && x && (x?.length + 1 === Gi && z || x.length === Gi) && (M = !0), p === Ze.RenderUpToTheLimit && x && ({ trimmedData: x, chartLimitsReached: E } = Tl({ chartConfig: e, chartLimits: d, data: x }));
5726
5738
  }
5727
5739
  K || (B.valid = !1, B.invalidType = V), B.data = {
5728
- dataItems: b,
5740
+ dataItems: x,
5729
5741
  timeIntervalInfo: I,
5730
5742
  serverLimitReached: M,
5731
5743
  chartLimitsReached: E
@@ -5849,9 +5861,9 @@ async function Il(t) {
5849
5861
  dataContextCountDistinctX: m,
5850
5862
  dataContextCountDistinctY: g
5851
5863
  } = C.scatterplotAggregationFields;
5852
- let p, y, F, x, A;
5853
- const B = e.get(c), b = e.get(u), v = e.get(d), T = e.get(f);
5854
- if (B != null && v !== void 0 && v !== null && b !== void 0 && b !== null && T !== void 0 && T !== null && !Number.isNaN(B + b + v + T)) {
5864
+ let p, y, F, b, A;
5865
+ const B = e.get(c), x = e.get(u), v = e.get(d), T = e.get(f);
5866
+ if (B != null && v !== void 0 && v !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(B + x + v + T)) {
5855
5867
  const {
5856
5868
  maxScatterPointsAfterAggregation: N,
5857
5869
  scatterplot: { markersAfterAggregation: L }
@@ -5863,7 +5875,7 @@ async function Il(t) {
5863
5875
  abortKey: o,
5864
5876
  abortSignal: l
5865
5877
  });
5866
- F = Math.min(O.get(g) ?? Number.NaN, w), x = Math.min(O.get(m) ?? Number.NaN, w), A = x * F, p = b === B ? 0 : (b - B) / (x - 1), y = T === v ? 0 : (T - v) / (F - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, y), e.set(C.scatterplotAggregationFields.rowCount, F), e.set(C.scatterplotAggregationFields.columnCount, x), e.set(C.scatterplotAggregationFields.realGridSize, A);
5878
+ F = Math.min(O.get(g) ?? Number.NaN, w), b = Math.min(O.get(m) ?? Number.NaN, w), A = b * F, p = x === B ? 0 : (x - B) / (b - 1), y = T === v ? 0 : (T - v) / (F - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, y), e.set(C.scatterplotAggregationFields.rowCount, F), e.set(C.scatterplotAggregationFields.columnCount, b), e.set(C.scatterplotAggregationFields.realGridSize, A);
5867
5879
  }
5868
5880
  }
5869
5881
  function Ml(t) {
@@ -5918,11 +5930,11 @@ async function Ol(t) {
5918
5930
  dataContextYMinField: p,
5919
5931
  dataContextYMaxField: y,
5920
5932
  queryNumberOfFeatures: F,
5921
- queryNumberOfAggregatedFeatures: x
5933
+ queryNumberOfAggregatedFeatures: b
5922
5934
  } = C.scatterplotAggregationFields;
5923
5935
  let A;
5924
- const B = e?.get(m) ?? Number.NaN, b = e?.get(g) ?? Number.NaN, v = e?.get(F) ?? Number.NaN, T = e?.get(p) ?? B, N = e?.get(y) ?? b;
5925
- if (B != null && T !== void 0 && T !== null && b !== void 0 && b !== null && N !== void 0 && N !== null && !Number.isNaN(B + b + T + N)) {
5936
+ const B = e?.get(m) ?? Number.NaN, x = e?.get(g) ?? Number.NaN, v = e?.get(F) ?? Number.NaN, T = e?.get(p) ?? B, N = e?.get(y) ?? x;
5937
+ if (B != null && T !== void 0 && T !== null && x !== void 0 && x !== null && N !== void 0 && N !== null && !Number.isNaN(B + x + T + N)) {
5926
5938
  const L = W(r), { idField: P, isTraditionalTypeOID: w } = Le(L), O = w ? P : "*", I = e?.get(C.scatterplotAggregationFields.xStep), M = e?.get(C.scatterplotAggregationFields.yStep), E = e?.get(C.scatterplotAggregationFields.realGridSize), z = e?.get(C.scatterplotAggregationFields.rowCount), _ = e?.get(C.scatterplotAggregationFields.columnCount), R = /* @__PURE__ */ new Map(), Z = Ae(r);
5927
5939
  if (Z?.forEach((V) => {
5928
5940
  vt(V) && R.set(V.name, {
@@ -5944,7 +5956,7 @@ async function Ol(t) {
5944
5956
  });
5945
5957
  }), P !== "" && R.set(P, {
5946
5958
  onStatisticField: O,
5947
- outStatisticFieldName: x,
5959
+ outStatisticFieldName: b,
5948
5960
  statisticType: D.Count
5949
5961
  }), R.set(d, {
5950
5962
  onStatisticField: d,
@@ -5965,7 +5977,7 @@ async function Ol(t) {
5965
5977
  queryConfig: V,
5966
5978
  xStep: I,
5967
5979
  xMin: B,
5968
- xMax: b,
5980
+ xMax: x,
5969
5981
  x: d,
5970
5982
  y: f,
5971
5983
  yStep: M,
@@ -6092,6 +6104,7 @@ async function Vl(t) {
6092
6104
  n !== !1 && bt({
6093
6105
  arrayToSort: m,
6094
6106
  sortingField: e.series[0].x,
6107
+ chartConfig: e,
6095
6108
  orderBy: ye.Ascending
6096
6109
  });
6097
6110
  const g = /* @__PURE__ */ new Map(), { r2: p, trendLinePoints: y } = s !== !1 ? await Kr({
@@ -6198,10 +6211,10 @@ async function Hl(t) {
6198
6211
  dataContextYMinField: m,
6199
6212
  dataContextYMaxField: g,
6200
6213
  queryNumberOfFeatures: p
6201
- } = C.scatterplotAggregationFields, { idField: y, isTraditionalTypeOID: F } = Le(W(r)), x = F ? y : "*", A = [
6214
+ } = C.scatterplotAggregationFields, { idField: y, isTraditionalTypeOID: F } = Le(W(r)), b = F ? y : "*", A = [
6202
6215
  {
6203
6216
  statisticType: D.Count,
6204
- onStatisticField: x,
6217
+ onStatisticField: b,
6205
6218
  outStatisticFieldName: p
6206
6219
  },
6207
6220
  {
@@ -6248,11 +6261,11 @@ function Ul(t) {
6248
6261
  i.stackedAttributes.forEach((p) => {
6249
6262
  let y = p[f.stackAlias], F;
6250
6263
  typeof y == "number" && typeof n == "number" && (y *= n), typeof y == "number" && typeof n == "number" && (F = y + n);
6251
- const x = p[r], A = p[a];
6252
- if (typeof y == "number" && typeof F == "number" && typeof x == "number" && typeof A == "number") {
6264
+ const b = p[r], A = p[a];
6265
+ if (typeof y == "number" && typeof F == "number" && typeof b == "number" && typeof A == "number") {
6253
6266
  const B = {
6254
6267
  ...p,
6255
- [r]: Dt({ value: x, valueMin: m, valueMax: g }),
6268
+ [r]: Dt({ value: b, valueMin: m, valueMax: g }),
6256
6269
  [a]: Dt({ value: A, valueMin: y, valueMax: F }),
6257
6270
  [o]: Math.min(m, g),
6258
6271
  [l]: Math.max(m, g),
@@ -6267,22 +6280,22 @@ function Ul(t) {
6267
6280
  if (m && f && i.attributes[f] !== s) {
6268
6281
  let [g, p, y, F] = i.attributes[f].split("|");
6269
6282
  g = Math.min(g, p), p = Math.max(g, p), y = Math.min(y, F), F = Math.max(y, F);
6270
- const x = {
6283
+ const b = {
6271
6284
  ...i.attributes,
6272
6285
  [o]: g,
6273
6286
  [l]: p,
6274
6287
  [c]: y,
6275
6288
  [u]: F
6276
6289
  };
6277
- x[r] = Dt({
6278
- value: x[r],
6290
+ b[r] = Dt({
6291
+ value: b[r],
6279
6292
  valueMin: g,
6280
6293
  valueMax: p
6281
- }), x[a] = Dt({
6282
- value: x[a],
6294
+ }), b[a] = Dt({
6295
+ value: b[a],
6283
6296
  valueMin: y,
6284
6297
  valueMax: F
6285
- }), d = [x];
6298
+ }), d = [b];
6286
6299
  }
6287
6300
  }
6288
6301
  return d;
@@ -6311,10 +6324,10 @@ async function zl(t) {
6311
6324
  (B) => B.name
6312
6325
  ) ?? [], y = l?.additionalTooltipFields ?? [], F = Array.from(
6313
6326
  /* @__PURE__ */ new Set([c, u, ...g ?? [], ...p, ...y])
6314
- ), x = pe(d);
6315
- if (x && !x.isTable) {
6316
- const { rendererField: B, rendererNormalizationField: b } = $u(d?.renderer ?? void 0);
6317
- ne(B) || F.push(B), ne(b) || F.push(b);
6327
+ ), b = pe(d);
6328
+ if (b && !b.isTable) {
6329
+ const { rendererField: B, rendererNormalizationField: x } = $u(d?.renderer ?? void 0);
6330
+ ne(B) || F.push(B), ne(x) || F.push(x);
6318
6331
  }
6319
6332
  const A = {
6320
6333
  ...i,
@@ -6396,7 +6409,7 @@ async function ga(t) {
6396
6409
  }), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, {
6397
6410
  maxScatterPointsBeforeAggregation: g,
6398
6411
  scatterplot: { aggregationThreshold: p }
6399
- } = ft(s), y = d?.get(f) ?? Number.NaN, F = y >= (g ?? p), x = kn(r);
6412
+ } = ft(s), y = d?.get(f) ?? Number.NaN, F = y >= (g ?? p), b = kn(r);
6400
6413
  F && await Il({
6401
6414
  statsMap: d,
6402
6415
  chartConfig: e,
@@ -6413,20 +6426,21 @@ async function ga(t) {
6413
6426
  statsMap: d,
6414
6427
  numberOfFeatures: y,
6415
6428
  isAggregationMode: F,
6416
- useQueryAttributeBins: x
6429
+ useQueryAttributeBins: b
6417
6430
  }), B = Gl({
6418
6431
  chartConfig: e,
6419
6432
  rawData: A,
6420
6433
  isAggregationMode: F,
6421
6434
  yStep: d.get(m),
6422
- useQueryAttributeBins: x
6435
+ useQueryAttributeBins: b
6423
6436
  });
6424
6437
  a !== !1 && bt({
6425
6438
  arrayToSort: B,
6426
6439
  sortingField: e.series[0].x,
6440
+ chartConfig: e,
6427
6441
  orderBy: ye.Ascending
6428
6442
  });
6429
- const { r2: b, trendLinePoints: v } = n !== !1 ? await Kr({
6443
+ const { r2: x, trendLinePoints: v } = n !== !1 ? await Kr({
6430
6444
  data: B,
6431
6445
  statsMap: d,
6432
6446
  queryConfig: i,
@@ -6435,7 +6449,7 @@ async function ga(t) {
6435
6449
  errorStrings: o,
6436
6450
  abortSignal: c
6437
6451
  }) : C.scatterplotSeries;
6438
- u = { dataItems: B, r2: b, trendLinePoints: v, aggregated: F };
6452
+ u = { dataItems: B, r2: x, trendLinePoints: v, aggregated: F };
6439
6453
  }
6440
6454
  return u;
6441
6455
  }
@@ -6711,17 +6725,17 @@ function Kl(t) {
6711
6725
  u.forEach((m, g) => {
6712
6726
  const p = d !== h.ComboLineAndBarSeries || g === h.BarSeries;
6713
6727
  if (n) {
6714
- let y = 0, F = 0, x = !1, A = !1;
6728
+ let y = 0, F = 0, b = !1, A = !1;
6715
6729
  for (let B = 0; B < m.length; B += 1) {
6716
- const b = f[m[B]];
6717
- Number.isFinite(b) && (b < 0 ? (F += b, A = !0, p && (l = !0)) : (y += b, x = !0));
6730
+ const x = f[m[B]];
6731
+ Number.isFinite(x) && (x < 0 ? (F += x, A = !0, p && (l = !0)) : (y += x, b = !0));
6718
6732
  }
6719
- s = x ? Math.max(s, y) : s, o = A ? Math.min(o, F) : o, x && !A && (o = Math.min(o, y)), !x && A && (s = Math.max(s, F)), p && x && y <= 0 && (l = !0);
6733
+ s = b ? Math.max(s, y) : s, o = A ? Math.min(o, F) : o, b && !A && (o = Math.min(o, y)), !b && A && (s = Math.max(s, F)), p && b && y <= 0 && (l = !0);
6720
6734
  } else {
6721
6735
  let y = 0;
6722
6736
  for (let F = 0; F < m.length; F += 1) {
6723
- const x = f[m[F]];
6724
- y += x, s = Math.max(s, y), o = Math.min(o, y);
6737
+ const b = f[m[F]];
6738
+ y += b, s = Math.max(s, y), o = Math.min(o, y);
6725
6739
  }
6726
6740
  p && (s <= 0 || o <= 0) && (l = !0);
6727
6741
  }
@@ -6756,10 +6770,10 @@ function sr(t) {
6756
6770
  (F) => F.visible !== !1 ? ue({ where: F.query?.where }) : ""
6757
6771
  );
6758
6772
  y.length === 0 && y.push(" "), d.forEach((F) => {
6759
- m.forEach((x) => {
6760
- const A = g === S.BoxPlotC4MultiFieldsAndCategory ? x : void 0;
6773
+ m.forEach((b) => {
6774
+ const A = g === S.BoxPlotC4MultiFieldsAndCategory ? b : void 0;
6761
6775
  y.forEach((B) => {
6762
- const { min: b, max: v } = eu({
6776
+ const { min: x, max: v } = eu({
6763
6777
  y: A,
6764
6778
  splitByValue: B,
6765
6779
  chartSubType: g,
@@ -6767,7 +6781,7 @@ function sr(t) {
6767
6781
  standardizeValues: p,
6768
6782
  dataItem: F
6769
6783
  });
6770
- b != null && b < e && (e = b), v != null && v > i && (i = v);
6784
+ x != null && x < e && (e = x), v != null && v > i && (i = v);
6771
6785
  });
6772
6786
  });
6773
6787
  });
@@ -6791,7 +6805,7 @@ function sr(t) {
6791
6805
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, se(l, o).forEach((p) => {
6792
6806
  const { min: y, max: F } = Ct(
6793
6807
  d,
6794
- (x) => x[p]
6808
+ (b) => b[p]
6795
6809
  );
6796
6810
  y !== void 0 && y < e && (e = y), F !== void 0 && F > i && (i = F);
6797
6811
  });
@@ -6987,7 +7001,7 @@ async function su(t) {
6987
7001
  returnStatisticsAggregatedIds: m,
6988
7002
  popupTemplateFieldInfosEnabled: g,
6989
7003
  view: p
6990
- } = t, { series: y } = r, F = $(y), x = [], { maxOIDsPerSelectionQuery: A, maxElementsPerSelectionQuery: B } = Wt(), b = i && i.length > 0 ? Math.ceil(i.length / B) : void 0, v = Math.ceil(e.length / A), T = b ? b <= v : !1, N = (T ? b : v) ?? 1;
7004
+ } = t, { series: y } = r, F = $(y), b = [], { maxOIDsPerSelectionQuery: A, maxElementsPerSelectionQuery: B } = Wt(), x = i && i.length > 0 ? Math.ceil(i.length / B) : void 0, v = Math.ceil(e.length / A), T = x ? x <= v : !1, N = (T ? x : v) ?? 1;
6991
7005
  for (let P = 0; P < N; P += 1) {
6992
7006
  const w = { ...a };
6993
7007
  if (T && i) {
@@ -7007,7 +7021,7 @@ async function su(t) {
7007
7021
  }
7008
7022
  switch (F) {
7009
7023
  case h.HeatSeries:
7010
- x.push(
7024
+ b.push(
7011
7025
  ca({
7012
7026
  completeHeatChartDataset: !1,
7013
7027
  // we do not want the empty bins to be added for the selection
@@ -7036,7 +7050,7 @@ async function su(t) {
7036
7050
  queryObject: s
7037
7051
  })) {
7038
7052
  const O = Re(r);
7039
- "temporalBinning" in O.series[0] && O.series[0].temporalBinning && (O.series[0].temporalBinning.trimIncompleteTimeInterval = !1, ut(o, s) && (delete O.series[0].temporalBinning.start, delete O.series[0].temporalBinning.end)), x.push(
7053
+ "temporalBinning" in O.series[0] && O.series[0].temporalBinning && (O.series[0].temporalBinning.trimIncompleteTimeInterval = !1, ut(o, s) && (delete O.series[0].temporalBinning.start, delete O.series[0].temporalBinning.end)), b.push(
7040
7054
  Ni({
7041
7055
  chartConfig: O,
7042
7056
  queryConfig: w,
@@ -7051,7 +7065,7 @@ async function su(t) {
7051
7065
  })
7052
7066
  );
7053
7067
  } else
7054
- x.push(
7068
+ b.push(
7055
7069
  Nl({
7056
7070
  queryObject: s,
7057
7071
  chartConfig: r,
@@ -7066,7 +7080,7 @@ async function su(t) {
7066
7080
  );
7067
7081
  break;
7068
7082
  case h.BoxPlotSeries:
7069
- x.push(
7083
+ b.push(
7070
7084
  Ll({
7071
7085
  queryObject: s,
7072
7086
  chartConfig: r,
@@ -7084,7 +7098,7 @@ async function su(t) {
7084
7098
  );
7085
7099
  break;
7086
7100
  case h.ScatterSeries:
7087
- x.push(
7101
+ b.push(
7088
7102
  ga({
7089
7103
  queryObject: s,
7090
7104
  chartConfig: r,
@@ -7106,7 +7120,7 @@ async function su(t) {
7106
7120
  );
7107
7121
  break;
7108
7122
  case h.HistogramSeries:
7109
- x.push(
7123
+ b.push(
7110
7124
  Rs({
7111
7125
  queryObject: s,
7112
7126
  queryConfig: w,
@@ -7118,7 +7132,7 @@ async function su(t) {
7118
7132
  break;
7119
7133
  }
7120
7134
  }
7121
- return await Promise.all(x);
7135
+ return await Promise.all(b);
7122
7136
  }
7123
7137
  async function Of(t) {
7124
7138
  const {
@@ -7139,25 +7153,25 @@ async function Of(t) {
7139
7153
  viewExtentUpdated: p,
7140
7154
  runtimeDataFilters: y,
7141
7155
  ignoreViewExtent: F,
7142
- selectionData: x
7143
- } = t, { series: A } = e, { selectionItems: B, selectionOIDs: b } = x ?? {};
7156
+ selectionData: b
7157
+ } = t, { series: A } = e, { selectionItems: B, selectionOIDs: x } = b ?? {};
7144
7158
  let v;
7145
7159
  const T = $(A), N = W(s), L = T !== h.HistogramSeries && T !== h.HeatSeries && B !== void 0 && B.length > 0 && !(A[0].x in B[0]) && !(me in B[0]) && !(C.boxPlot.boxPlotCategory in B[0]);
7146
- if (p !== !0 && f !== !1 && b !== void 0 && b.length > 0 && (r === !0 || L || l)) {
7160
+ if (p !== !0 && f !== !1 && x !== void 0 && x.length > 0 && (r === !0 || L || l)) {
7147
7161
  const w = Li(i), O = Ia({
7148
7162
  queryObject: s,
7149
7163
  chartConfig: e,
7150
7164
  runtimeDataFilters: y,
7151
7165
  ignoreViewExtent: F,
7152
7166
  view: g
7153
- }), I = re(e.series[0]?.query?.where), M = se(e.series), E = Ie(e.series[0].query?.where);
7167
+ }), I = ie(e.series[0]?.query?.where), M = se(e.series), E = Ie(e.series[0].query?.where);
7154
7168
  if (w && !ou(w) && w.some((z) => N.objectIdField in z))
7155
7169
  v = w.filter((z) => {
7156
7170
  const _ = z[N.objectIdField];
7157
- return (typeof _ == "number" || typeof _ == "string") && b.includes(_);
7171
+ return (typeof _ == "number" || typeof _ == "string") && x.includes(_);
7158
7172
  });
7159
7173
  else if (w) {
7160
- const z = new Set(b), _ = /* @__PURE__ */ new Set();
7174
+ const z = new Set(x), _ = /* @__PURE__ */ new Set();
7161
7175
  w?.some(
7162
7176
  (j) => Object.keys(j).some((J) => {
7163
7177
  let V = !1;
@@ -7182,11 +7196,11 @@ async function Of(t) {
7182
7196
  V.includes(K) || (delete j[K], delete j[`${Q.uniqueIds}_${K}`], delete j[`${C.rendererSymbolField}_${K}`]);
7183
7197
  }), J;
7184
7198
  }));
7185
- const Z = b.filter((j) => !_.has(j));
7186
- if (Z?.[0] !== void 0 && O && v?.length !== w.length) {
7199
+ const Z = x.filter((j) => !_.has(j));
7200
+ if (Z?.[0] !== void 0 && O) {
7187
7201
  const j = await su({
7188
7202
  selectionOIDs: Z,
7189
- selectionFilters: x?.selectionFilters,
7203
+ selectionFilters: b?.selectionFilters,
7190
7204
  queryConfig: O,
7191
7205
  queryObject: s,
7192
7206
  replaceNoValueCategoryWithZero: a,
@@ -7237,7 +7251,7 @@ function lu(t) {
7237
7251
  break;
7238
7252
  case ce.UniqueValue:
7239
7253
  {
7240
- const f = u?.field, m = re(o.query?.where), { x: g } = o;
7254
+ const f = u?.field, m = ie(o.query?.where), { x: g } = o;
7241
7255
  r = (s === S.BoxPlotC5MonoFieldAndSplitBy || s === S.BoxPlotC6MultiFieldsAndSplitBy || s === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy || s === S.BarAndLineSplitByNoAggregation || s === S.BarAndLineSplitBy) && f === m || (s === S.BoxPlotC3MonoFieldAndCategory || s === S.PieFromCategory || s === S.BarAndLineMonoField) && f === g || s === S.BarAndLineNoAggregation || s === S.PieNoAggregation || n === h.ScatterSeries;
7242
7256
  }
7243
7257
  break;
@@ -7304,8 +7318,8 @@ function fu(t) {
7304
7318
  case h.ComboLineAndBarSeries:
7305
7319
  case h.RadarSeries:
7306
7320
  if (r !== S.BarAndLineFromFields) {
7307
- const x = i.find((A) => A.query?.outStatistics?.[0]?.onStatisticField === f);
7308
- x !== void 0 && "y" in x ? f = [x.y].flat()[0] : f = "";
7321
+ const b = i.find((A) => A.query?.outStatistics?.[0]?.onStatisticField === f);
7322
+ b !== void 0 && "y" in b ? f = [b.y].flat()[0] : f = "";
7309
7323
  }
7310
7324
  y = r !== S.BarAndLineFromFields || f === a[C.originalXValue];
7311
7325
  break;
@@ -7432,8 +7446,8 @@ async function yu(t) {
7432
7446
  const p = Array.from(g.entries()), y = l.clone();
7433
7447
  y.layer = l.layer;
7434
7448
  const F = r?.uniqueValueInfos;
7435
- for (let x = 0; x < p.length; x += 1) {
7436
- const [A, B] = p[x];
7449
+ for (let b = 0; b < p.length; b += 1) {
7450
+ const [A, B] = p[b];
7437
7451
  if (lr({
7438
7452
  mode: "encode",
7439
7453
  x: m,
@@ -7758,42 +7772,42 @@ async function Au(t) {
7758
7772
  // for #17296
7759
7773
  };
7760
7774
  else {
7761
- const g = i.groupByFieldsForStatistics?.[0] ?? "", p = e.colorMatch === !0 && lu({ chartConfig: e, queryObject: r }), y = m.some((b) => b.query?.fetchNullValues), F = /* @__PURE__ */ new Map();
7762
- for (const b of f) {
7763
- const { groupKey: v } = cr(b.attributes[g], y);
7764
- v === C.nullValue && !y || (F.has(v) || F.set(v, []), F.get(v).push(b.attributes));
7775
+ const g = i.groupByFieldsForStatistics?.[0] ?? "", p = e.colorMatch === !0 && lu({ chartConfig: e, queryObject: r }), y = m.some((x) => x.query?.fetchNullValues), F = /* @__PURE__ */ new Map();
7776
+ for (const x of f) {
7777
+ const { groupKey: v } = cr(x.attributes[g], y);
7778
+ v === C.nullValue && !y || (F.has(v) || F.set(v, []), F.get(v).push(x.attributes));
7765
7779
  }
7766
- const x = u.fields.find(({ name: b }) => b.toLowerCase() === "value")?.name, A = bu(
7780
+ const b = u.fields.find(({ name: x }) => x.toLowerCase() === "value")?.name, A = bu(
7767
7781
  F,
7768
- x
7782
+ b
7769
7783
  ), B = [];
7770
- F.forEach((b) => {
7771
- const v = {}, T = b[0][g], { display: N, original: L } = cr(T, y);
7784
+ F.forEach((x) => {
7785
+ const v = {}, T = x[0][g], { display: N, original: L } = cr(T, y);
7772
7786
  if (v[g] = N, v[C.xAxisField] = N, v[C.originalXValue] = L, p) {
7773
7787
  const P = ur({
7774
7788
  layer: c,
7775
7789
  chartRenderer: e.chartRenderer,
7776
7790
  categoryField: g,
7777
7791
  categoryValue: L,
7778
- categoryAttributes: b[0],
7792
+ categoryAttributes: x[0],
7779
7793
  hasColormap: d,
7780
7794
  canUseRasterAttributeTableColors: A
7781
7795
  });
7782
7796
  P && (v[C.rendererSymbolField] = P);
7783
7797
  }
7784
7798
  m.forEach((P) => {
7785
- const w = re(P.query?.where), O = ue({
7799
+ const w = ie(P.query?.where), O = ue({
7786
7800
  where: P.query?.where,
7787
7801
  keepSurroundingQuotes: !1,
7788
7802
  escape: !1
7789
7803
  });
7790
7804
  if (p && w && O !== void 0 && "y" in P) {
7791
- const Z = w.toLowerCase() === x?.toLowerCase(), j = ur({
7805
+ const Z = w.toLowerCase() === b?.toLowerCase(), j = ur({
7792
7806
  layer: c,
7793
7807
  chartRenderer: e.chartRenderer,
7794
7808
  categoryField: w,
7795
7809
  categoryValue: O,
7796
- categoryAttributes: b[0],
7810
+ categoryAttributes: x[0],
7797
7811
  hasColormap: d,
7798
7812
  canUseRasterAttributeTableColors: Z
7799
7813
  });
@@ -7804,12 +7818,12 @@ async function Au(t) {
7804
7818
  const Z = "y" in P && typeof P.y == "string" ? P.y : P.name;
7805
7819
  if (typeof Z != "string")
7806
7820
  return;
7807
- v[Z] = b[0][Z];
7821
+ v[Z] = x[0][Z];
7808
7822
  return;
7809
7823
  }
7810
- let M = b;
7824
+ let M = x;
7811
7825
  const E = P.query?.where;
7812
- E && (M = b.filter((Z) => Cu(Z, E)));
7826
+ E && (M = x.filter((Z) => Cu(Z, E)));
7813
7827
  const z = I.statisticType, _ = I.onStatisticField, R = I.outStatisticFieldName;
7814
7828
  v[R] = Bu({
7815
7829
  features: M,
@@ -8331,15 +8345,15 @@ function Ia(t) {
8331
8345
  spatialRelationship: y
8332
8346
  } = l ?? {}, {
8333
8347
  where: F,
8334
- gdbVersion: x,
8348
+ gdbVersion: b,
8335
8349
  timeExtent: A,
8336
8350
  geometry: B,
8337
- distance: b,
8351
+ distance: x,
8338
8352
  units: v,
8339
8353
  objectIds: T,
8340
8354
  spatialRelationship: N
8341
8355
  } = r ?? {}, L = o[0], { query: P } = L, { where: w } = P ?? {}, O = G(o), I = { ...P };
8342
- return I.where = Y([c, F]), O !== S.BarAndLineSplitBy && O !== S.BoxPlotC5MonoFieldAndSplitBy && O !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && O !== S.BoxPlotC6MultiFieldsAndSplitBy && O !== S.BarAndLineSplitByNoAggregation && (I.where = Y([I.where, w])), i.orderOptions?.orderByFields !== void 0 && (I.orderByFields = i.orderOptions.orderByFields), I.gdbVersion = x ?? u, I.timeExtent = Kn(s?.timeExtent, A ?? d), I.geometry = te(e) ? Vu({
8356
+ return I.where = Y([c, F]), O !== S.BarAndLineSplitBy && O !== S.BoxPlotC5MonoFieldAndSplitBy && O !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && O !== S.BoxPlotC6MultiFieldsAndSplitBy && O !== S.BarAndLineSplitByNoAggregation && (I.where = Y([I.where, w])), i.orderOptions?.orderByFields !== void 0 && (I.orderByFields = i.orderOptions.orderByFields), I.gdbVersion = b ?? u, I.timeExtent = Kn(s?.timeExtent, A ?? d), I.geometry = te(e) ? Vu({
8343
8357
  queryObject: e,
8344
8358
  defaultGeometry: B ?? f,
8345
8359
  filterByViewExtent: a,
@@ -8348,7 +8362,7 @@ function Ia(t) {
8348
8362
  queryObject: e,
8349
8363
  defaultGeometry: B ?? f,
8350
8364
  ignoreViewExtent: n
8351
- }), I.distance = b ?? m, I.units = v ?? g, I.objectIds = T ?? p, I.spatialRelationship = N ?? y, P?.outStatistics?.[0]?.statisticType === D.Count && (I.returnDistinctValues = P?.returnDistinctValues ?? !1), I?.outStatistics?.forEach((M) => {
8365
+ }), I.distance = x ?? m, I.units = v ?? g, I.objectIds = T ?? p, I.spatialRelationship = N ?? y, P?.outStatistics?.[0]?.statisticType === D.Count && (I.returnDistinctValues = P?.returnDistinctValues ?? !1), I?.outStatistics?.forEach((M) => {
8352
8366
  Mi(M) && !("statisticParameters" in M) && (M.statisticParameters = {
8353
8367
  value: Q.defaultStatParameterValue
8354
8368
  });
@@ -8364,7 +8378,7 @@ async function zu(t, e) {
8364
8378
  const a = t.series;
8365
8379
  let n = e;
8366
8380
  if (t.iLayer?.layerType === "ArcGISFeatureLayer" && (n = await La(t.iLayer)), n !== void 0) {
8367
- const s = a[0].x ?? "", o = a.map((f) => "y" in f ? f.y : "").flat(), l = re(t.series[0].query?.where), c = Za(t), u = t?.series.map((f) => {
8381
+ const s = a[0].x ?? "", o = a.map((f) => "y" in f ? f.y : "").flat(), l = ie(t.series[0].query?.where), c = Za(t), u = t?.series.map((f) => {
8368
8382
  const m = f.query?.outStatistics?.map((g) => g.onStatisticField) ?? [];
8369
8383
  return m?.length > 0 ? m : "";
8370
8384
  }).flat();
@@ -8572,44 +8586,44 @@ function Di(t) {
8572
8586
  seriesConfig: d,
8573
8587
  queryObject: r
8574
8588
  });
8575
- let y = /* @__PURE__ */ new Map(), F = !1, x = !1, A = !1, B = !1, b = !1, v = {};
8589
+ let y = /* @__PURE__ */ new Map(), F = !1, b = !1, A = !1, B = !1, x = !1, v = {};
8576
8590
  if (f !== void 0) {
8577
8591
  v = Re(f);
8578
- const E = re(f.where);
8592
+ const E = ie(f.where);
8579
8593
  let z = "";
8580
8594
  switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (z = `${m} IS NOT NULL`), E.trim() !== "" && E !== m && !Ie(f.where) && (z = Y([z, `${E} IS NOT NULL`]))), u) {
8581
8595
  case S.BarAndLineSplitBy: {
8582
- y = Zu(c), B = !0, F = !0, x = !0;
8596
+ y = Zu(c), B = !0, F = !0, b = !0;
8583
8597
  break;
8584
8598
  }
8585
8599
  case S.BarAndLineMultiFields:
8586
- tc(v, c), x = !0;
8600
+ tc(v, c), b = !0;
8587
8601
  break;
8588
8602
  case S.PieFromFields:
8589
8603
  case S.BarAndLineFromFields:
8590
- z = "", A = !0, x = !0;
8604
+ z = "", A = !0, b = !0;
8591
8605
  break;
8592
8606
  case S.BarAndLineMonoField:
8593
8607
  case S.PieFromCategory:
8594
- x = !0;
8608
+ b = !0;
8595
8609
  break;
8596
8610
  case S.BoxPlotC1MonoField:
8597
8611
  case S.BoxPlotC2MultiFields:
8598
- A = !0, b = !0;
8612
+ A = !0, x = !0;
8599
8613
  break;
8600
8614
  case S.BoxPlotC3MonoFieldAndCategory:
8601
8615
  case S.BoxPlotC4MultiFieldsAndCategory:
8602
8616
  case S.BoxPlotC5MonoFieldAndSplitBy:
8603
8617
  case S.BoxPlotC6MultiFieldsAndSplitBy:
8604
8618
  case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
8605
- b = !0, B = !0, A = !0;
8619
+ x = !0, B = !0, A = !0;
8606
8620
  break;
8607
8621
  }
8608
8622
  case S.PieNoAggregation:
8609
8623
  case S.BarAndLineNoAggregation:
8610
8624
  case S.BarAndLineSplitByNoAggregation:
8611
8625
  }
8612
- if (x && Ku({
8626
+ if (b && Ku({
8613
8627
  uniqueQuery: v,
8614
8628
  y: g,
8615
8629
  useGenericOutStatFieldName: F,
@@ -8618,7 +8632,7 @@ function Di(t) {
8618
8632
  isTimeBinningSeries: p,
8619
8633
  returnFeaturesExtent: o,
8620
8634
  splitByField: E
8621
- }), B && Ju({ uniqueQuery: v, splitByField: E, x: m }), de(e) && b && (v.outStatistics = ec({ chartConfig: e, fetchFullBoxPlotData: s })), A ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((_) => {
8635
+ }), B && Ju({ uniqueQuery: v, splitByField: E, x: m }), de(e) && x && (v.outStatistics = ec({ chartConfig: e, fetchFullBoxPlotData: s })), A ? delete v.orderByFields : i.orderByFields !== void 0 && (v.orderByFields = i.orderByFields.filter((_) => {
8622
8636
  const R = _.split(" ");
8623
8637
  return !ne(R[0]);
8624
8638
  })), p && Be(c[0])) {
@@ -8626,7 +8640,7 @@ function Di(t) {
8626
8640
  Ae(r).find((J) => J.name === m)?.type !== X.DateOnly && R && ic({
8627
8641
  uniqueQuery: v,
8628
8642
  x: m,
8629
- splitByField: re(f.where),
8643
+ splitByField: ie(f.where),
8630
8644
  unit: a?.unit ?? c[0].temporalBinning?.unit,
8631
8645
  chartSubType: u,
8632
8646
  objectIdFields: R,
@@ -8837,7 +8851,7 @@ function am(t, e) {
8837
8851
  const i = t !== null ? t.toString() : null, r = e != null ? e.toString() : null;
8838
8852
  return r !== null && r !== i ? xe.SFS : xe.SLS;
8839
8853
  }
8840
- function re(t, e) {
8854
+ function ie(t, e) {
8841
8855
  let i = "";
8842
8856
  return t?.includes("=") && (i = e !== !1 ? hr({ value: t.split("=")[0], escape: !1 }) : t.split("=")[0].trim()), i;
8843
8857
  }
@@ -8851,13 +8865,13 @@ function Ie(t) {
8851
8865
  if (t === void 0 || t === "")
8852
8866
  e = !0;
8853
8867
  else if (typeof t == "string" && t.includes("=")) {
8854
- const i = re(t, !1), r = ue({ where: t, normalize: !1 });
8868
+ const i = ie(t, !1), r = ue({ where: t, normalize: !1 });
8855
8869
  e = i === `${r}`;
8856
8870
  }
8857
8871
  return e;
8858
8872
  }
8859
8873
  function Me(t) {
8860
- const { where: e, normalize: i, escape: r } = t, a = i === void 0 ? !0 : i, n = re(e), s = ue({
8874
+ const { where: e, normalize: i, escape: r } = t, a = i === void 0 ? !0 : i, n = ie(e), s = ue({
8861
8875
  where: e,
8862
8876
  normalize: a,
8863
8877
  keepSurroundingQuotes: !0,
@@ -9263,7 +9277,7 @@ function Nm(t) {
9263
9277
  }), te(s) && (F.scatterPlot.imageryAoiChanged = fc(e, i));
9264
9278
  break;
9265
9279
  }
9266
- return p = Object.values(F.common).some((x) => x), (F.gauge.valueConversionChanged || F.gauge.minMaxFromFieldsChanged || F.histogram.dataPropsChanged || F.boxPlot.showMeanChanged || F.heatChart.binningChanged || F.heatChart.hideEmptyRowsAndColumnsChanged || F.heatChart.includeLeapDay || F.scatterPlot.tooltipFieldsChanged || F.scatterPlot.imageryAoiChanged) && (y = !0), g = p || y, { dataUpdateNeeded: g, dataUpdateDetails: F };
9280
+ return p = Object.values(F.common).some((b) => b), (F.gauge.valueConversionChanged || F.gauge.minMaxFromFieldsChanged || F.histogram.dataPropsChanged || F.boxPlot.showMeanChanged || F.heatChart.binningChanged || F.heatChart.hideEmptyRowsAndColumnsChanged || F.heatChart.includeLeapDay || F.scatterPlot.tooltipFieldsChanged || F.scatterPlot.imageryAoiChanged) && (y = !0), g = p || y, { dataUpdateNeeded: g, dataUpdateDetails: F };
9267
9281
  }
9268
9282
  function Lm(t, e) {
9269
9283
  const i = Re(t);
@@ -9315,7 +9329,7 @@ function Ua(t) {
9315
9329
  r = t.series[0].x;
9316
9330
  else {
9317
9331
  r === Ee.Mean ? r = q.Average : r === Ee.Median && (r = q.Median);
9318
- const n = e === S.BoxPlotC4MultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = re(t.series[0].query?.where), o = ue({
9332
+ const n = e === S.BoxPlotC4MultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = ie(t.series[0].query?.where), o = ue({
9319
9333
  where: t.series[0].query?.where
9320
9334
  });
9321
9335
  r = ae({
@@ -9446,7 +9460,7 @@ export {
9446
9460
  pf as L,
9447
9461
  Xe as M,
9448
9462
  Ie as N,
9449
- re as O,
9463
+ ie as O,
9450
9464
  ue as P,
9451
9465
  q as Q,
9452
9466
  ae as R,