@arcgis/charts-components 4.34.0-next.157 → 4.34.0-next.159

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 (300) hide show
  1. package/dist/cdn/{CMQCYQIH.js → 2D3V3L6M.js} +2 -2
  2. package/dist/cdn/{IJ2O4TN7.js → 2EXR7F24.js} +2 -2
  3. package/dist/cdn/{Y2Z5WDYM.js → 2QFT34MA.js} +2 -2
  4. package/dist/cdn/{2V4H2FEO.js → 2QSPDOZJ.js} +2 -2
  5. package/dist/cdn/{2ID2RVKZ.js → 2YDZZKQO.js} +2 -2
  6. package/dist/cdn/{EQSDLQZG.js → 356THV4C.js} +2 -2
  7. package/dist/cdn/{RWKZEXWL.js → 3B25G2NB.js} +2 -2
  8. package/dist/cdn/{WYXUJPL2.js → 3D2SHU6O.js} +2 -2
  9. package/dist/cdn/{YEB5PHHQ.js → 3EOZQLLU.js} +2 -2
  10. package/dist/cdn/{S2PT5VT7.js → 3FJXV4JV.js} +2 -2
  11. package/dist/cdn/{GDQA4AAQ.js → 3JAKNXDH.js} +18 -18
  12. package/dist/cdn/{CE3VTPDT.js → 3JQ7Z5B7.js} +2 -2
  13. package/dist/cdn/{JO7B74MP.js → 3PPVQT2T.js} +2 -2
  14. package/dist/cdn/{2WHBE4ZT.js → 3RKLHDJZ.js} +2 -2
  15. package/dist/cdn/{34Z7BI45.js → 3SB6DML5.js} +2 -2
  16. package/dist/cdn/{JL2G6CWI.js → 3UP5IG2T.js} +2 -2
  17. package/dist/cdn/{3QVLRXIQ.js → 3V2R6EZK.js} +2 -2
  18. package/dist/cdn/{IFNX67DK.js → 45MWA3UP.js} +2 -2
  19. package/dist/cdn/{VWR7W2CM.js → 4CKR3NH7.js} +2 -2
  20. package/dist/cdn/{RI74MZIA.js → 4KZ7VC3Q.js} +2 -2
  21. package/dist/cdn/{P2YOTHYJ.js → 4ZM7XKDN.js} +2 -2
  22. package/dist/cdn/{4JFSPH5E.js → 57I6EWU2.js} +2 -2
  23. package/dist/cdn/{ZFY3C4FV.js → 5GY7WFCN.js} +2 -2
  24. package/dist/cdn/{WYMOYDMS.js → 5OAETCF6.js} +2 -2
  25. package/dist/cdn/{PMJ5GFAU.js → 5OND4NQY.js} +2 -2
  26. package/dist/cdn/5PIWA3BP.js +4 -0
  27. package/dist/cdn/{POS343J3.js → 5VDLCC7Z.js} +2 -2
  28. package/dist/cdn/5XVL7AIA.js +4 -0
  29. package/dist/cdn/{DGPPE6UN.js → 5ZQTL4VR.js} +2 -2
  30. package/dist/cdn/{QDILZWDI.js → 623NVQYV.js} +2 -2
  31. package/dist/cdn/{NFXCTCVB.js → 62O4YCG7.js} +2 -2
  32. package/dist/cdn/{4HAXGFGL.js → 66VOXKLE.js} +2 -2
  33. package/dist/cdn/{YYLTLQIB.js → 6BUJZDQN.js} +2 -2
  34. package/dist/cdn/{ZPVBLE5H.js → 6FND2ACJ.js} +2 -2
  35. package/dist/cdn/{UIZVBNW7.js → 6GRATQK4.js} +2 -2
  36. package/dist/cdn/{4VTWINB5.js → 6HVUDY2G.js} +2 -2
  37. package/dist/cdn/{BZ63HLWU.js → 6KUYN5Z3.js} +2 -2
  38. package/dist/cdn/{DKCKLMVU.js → 7673LHE3.js} +2 -2
  39. package/dist/cdn/{IHHXZRC2.js → 7HOH4P2Q.js} +2 -2
  40. package/dist/cdn/{TQWEHKLP.js → 7IBYRMKK.js} +2 -2
  41. package/dist/cdn/{EFO3AFCZ.js → 7LURIZNH.js} +2 -2
  42. package/dist/cdn/{5BVRWUUE.js → 7MLDA2UH.js} +2 -2
  43. package/dist/cdn/{3JDEYC6D.js → 7XT2FDZ2.js} +2 -2
  44. package/dist/cdn/{C3CEWZEF.js → AFIK4X6C.js} +2 -2
  45. package/dist/cdn/{YS5IY7K6.js → AGPEZHAP.js} +2 -2
  46. package/dist/cdn/{RPH6NPVZ.js → AI7IIVI4.js} +2 -2
  47. package/dist/cdn/{MDEUILI3.js → ANDCTY22.js} +2 -2
  48. package/dist/cdn/{FK7Z4HT6.js → ANUADGCU.js} +1 -1
  49. package/dist/cdn/{UFAG7KV3.js → AORNJXSL.js} +2 -2
  50. package/dist/cdn/{WUMUIXXP.js → AU3WYF4Y.js} +2 -2
  51. package/dist/cdn/{PYCWJFX4.js → AWE7LJ6P.js} +2 -2
  52. package/dist/cdn/{YJECHQY3.js → AYHKLKR3.js} +2 -2
  53. package/dist/cdn/{WXLE6RPM.js → AZ2DCAY3.js} +2 -2
  54. package/dist/cdn/{NQVHTTEI.js → B2WED4W7.js} +2 -2
  55. package/dist/cdn/{JF5UZREZ.js → BAOLMK3U.js} +2 -2
  56. package/dist/cdn/{N4LJXSOB.js → BES2DCKY.js} +2 -2
  57. package/dist/cdn/{SL36NZFI.js → BGRUTPS6.js} +2 -2
  58. package/dist/cdn/{CRIFUIIP.js → BNL7SF7P.js} +2 -2
  59. package/dist/cdn/{5XNSZ52Z.js → BNWOG3TS.js} +2 -2
  60. package/dist/cdn/{NM5FGAFC.js → BQ4JP3YU.js} +2 -2
  61. package/dist/cdn/{3VCBOP4Q.js → C3JXXA4J.js} +2 -2
  62. package/dist/cdn/{F2SI2CEG.js → C7H36HHI.js} +2 -2
  63. package/dist/cdn/{NFN6PZ63.js → CIPWOI3V.js} +2 -2
  64. package/dist/cdn/{FDHANGKE.js → CWQHXOBK.js} +2 -2
  65. package/dist/cdn/{DA7RF2SI.js → DEEKFKVB.js} +2 -2
  66. package/dist/cdn/{CVWVJ3A6.js → DFQAQ4R6.js} +1 -1
  67. package/dist/cdn/{I6BKJIFL.js → DRDUNOKD.js} +2 -2
  68. package/dist/cdn/{BYQQB7BN.js → DWP6LQBS.js} +2 -2
  69. package/dist/cdn/{MHMQD6AM.js → EFCZPR3D.js} +1 -1
  70. package/dist/cdn/{743CXVWQ.js → EGZO6OPF.js} +2 -2
  71. package/dist/cdn/{VTXXXHHS.js → ERFDJARP.js} +2 -2
  72. package/dist/cdn/{WBZAWBNB.js → ERRVG6EX.js} +2 -2
  73. package/dist/cdn/{7RCFDA6Q.js → ESO3JA6N.js} +2 -2
  74. package/dist/cdn/{CGHTCMWZ.js → EW3DJZ5E.js} +2 -2
  75. package/dist/cdn/{SZFZEOOB.js → FDUSXU4K.js} +2 -2
  76. package/dist/cdn/{ZTBNEDCQ.js → FHQW2NQZ.js} +2 -2
  77. package/dist/cdn/{TRXJLZQ6.js → FOFLG5VG.js} +2 -2
  78. package/dist/cdn/{BWDGH2ZQ.js → FTZEPDYB.js} +2 -2
  79. package/dist/cdn/{PVT7I76U.js → FYSAFFXD.js} +2 -2
  80. package/dist/cdn/{XDKHANF4.js → G5U6CZLS.js} +2 -2
  81. package/dist/cdn/{5N6BABDX.js → GDYHWCBL.js} +2 -2
  82. package/dist/cdn/{4ZP5FMTA.js → GEDKTZTQ.js} +2 -2
  83. package/dist/cdn/{CXOKRYRR.js → GONTDHBD.js} +2 -2
  84. package/dist/cdn/{2YFRRJTY.js → GRYE3FBI.js} +2 -2
  85. package/dist/cdn/{67MXDGB4.js → GU6TGOYS.js} +2 -2
  86. package/dist/cdn/{T34T5EN5.js → GWTVPGNV.js} +2 -2
  87. package/dist/cdn/{HB6XGBH4.js → H6OTKDK3.js} +2 -2
  88. package/dist/cdn/{P35BC6AN.js → HF7ZAGEM.js} +2 -2
  89. package/dist/cdn/{IVGLUBUX.js → HNKSMAHA.js} +1 -1
  90. package/dist/cdn/{3YT4EFYT.js → I2OQB7W4.js} +2 -2
  91. package/dist/cdn/{IFJLWRBP.js → ITCG6WR4.js} +2 -2
  92. package/dist/cdn/{3VFIS56Y.js → ITQYXEKE.js} +1 -1
  93. package/dist/cdn/{TIESJRLD.js → JG64JWYI.js} +2 -2
  94. package/dist/cdn/{5MGLNDES.js → JWI7JIGN.js} +2 -2
  95. package/dist/cdn/{5DBXNRFX.js → JY75NP75.js} +1 -1
  96. package/dist/cdn/{QGHMTH5F.js → K53FHV6E.js} +2 -2
  97. package/dist/cdn/{TFTQGFWP.js → KIRB5KJA.js} +2 -2
  98. package/dist/cdn/{66ZOY6E4.js → KLDIK6ZB.js} +1 -1
  99. package/dist/cdn/{6RLWZIUN.js → KLLWAXU6.js} +2 -2
  100. package/dist/cdn/{SJQZRFAO.js → KRSERDTB.js} +2 -2
  101. package/dist/cdn/{TELZKVS5.js → KZSXI6P7.js} +2 -2
  102. package/dist/cdn/{LOT3TP4X.js → L4E6B5LU.js} +2 -2
  103. package/dist/cdn/{ZDZZHYUM.js → LQ62XAT7.js} +2 -2
  104. package/dist/cdn/{6ZR7L4DJ.js → LTZJVZSF.js} +2 -2
  105. package/dist/cdn/{4GG4BXXX.js → LXZ4EAKW.js} +2 -2
  106. package/dist/cdn/{T4SJ35XR.js → M7PBGEV3.js} +2 -2
  107. package/dist/cdn/{HKEDP6T3.js → MF5SZ73F.js} +1 -1
  108. package/dist/cdn/{XLZVVJLI.js → MR52RKJH.js} +1 -1
  109. package/dist/cdn/{TNLN4IG4.js → MR7SM3QA.js} +2 -2
  110. package/dist/cdn/{537QIJO2.js → MS73ZUNL.js} +2 -2
  111. package/dist/cdn/{BWKNLQZ2.js → MVVEBM6T.js} +2 -2
  112. package/dist/cdn/{T34LMOEJ.js → MY45HOMW.js} +2 -2
  113. package/dist/cdn/{YILS2F7H.js → MZCHU744.js} +2 -2
  114. package/dist/cdn/{S6OCLJPJ.js → N3QREAD2.js} +2 -2
  115. package/dist/cdn/{S3H7X4PZ.js → N7MODF4Y.js} +2 -2
  116. package/dist/cdn/{ZXVA5VQH.js → NB32L24K.js} +2 -2
  117. package/dist/cdn/{RI2LJM2L.js → NCE47T3A.js} +2 -2
  118. package/dist/cdn/{PWBWFRSW.js → O6KL3S42.js} +2 -2
  119. package/dist/cdn/{FTSBUAGN.js → OFK4KQQH.js} +2 -2
  120. package/dist/cdn/{6WUFNOEN.js → OHAX3I5X.js} +2 -2
  121. package/dist/cdn/OIIVTYPG.js +6 -0
  122. package/dist/cdn/{3NXJIAFU.js → OO6SDRMR.js} +2 -2
  123. package/dist/cdn/{QPNPATSP.js → OQNKPXVY.js} +2 -2
  124. package/dist/cdn/{N5UJ2UOL.js → OX7PYCKM.js} +2 -2
  125. package/dist/cdn/{JGUXGI46.js → OYWKXFOM.js} +2 -2
  126. package/dist/cdn/{SB4FJYOO.js → P4ILFZ22.js} +2 -2
  127. package/dist/cdn/{G6QDXLEK.js → PFLSLYB7.js} +2 -2
  128. package/dist/cdn/{5AUZQ7XT.js → PGV4T3BS.js} +2 -2
  129. package/dist/cdn/{MDZ5CAHP.js → PIXC57CQ.js} +2 -2
  130. package/dist/cdn/{K3ZWWCHK.js → PJYLT6DT.js} +2 -2
  131. package/dist/cdn/{6ZJCEO34.js → PQBZHV4S.js} +2 -2
  132. package/dist/cdn/{2PWORPUQ.js → PUSFUMJN.js} +2 -2
  133. package/dist/cdn/QD55357L.js +4 -0
  134. package/dist/cdn/{ULGUXHQJ.js → QJBQYXKL.js} +2 -2
  135. package/dist/cdn/{GB4YYWYW.js → QKNJABFT.js} +2 -2
  136. package/dist/cdn/{SOPGZEQZ.js → QPAYCI35.js} +2 -2
  137. package/dist/cdn/{XN2FXAAC.js → QQRAA2PK.js} +2 -2
  138. package/dist/cdn/{HZK43NE2.js → R2UY5FBL.js} +2 -2
  139. package/dist/cdn/{R3C63OAM.js → RAWENHB4.js} +2 -2
  140. package/dist/cdn/{N67I6WNT.js → RE6DRV5W.js} +2 -2
  141. package/dist/cdn/{L6ZUMZWQ.js → RUHHLRKK.js} +2 -2
  142. package/dist/cdn/{2QLCP7ZF.js → RX6H2W7A.js} +2 -2
  143. package/dist/cdn/{KA5RMBAW.js → S4NRH7PF.js} +2 -2
  144. package/dist/cdn/{3YSINQ2F.js → S6EAOZ2S.js} +2 -2
  145. package/dist/cdn/{43LZP3QJ.js → S76ATLII.js} +2 -2
  146. package/dist/cdn/{PA5WAOHS.js → SD7TNXB5.js} +2 -2
  147. package/dist/cdn/{BEF2F5UZ.js → SOX2ELBY.js} +2 -2
  148. package/dist/cdn/{PESWCLQ3.js → SS3BZLXI.js} +2 -2
  149. package/dist/cdn/{VBQI72IW.js → SYKEFP3T.js} +2 -2
  150. package/dist/cdn/{YI6FQSBY.js → T2JQMNJJ.js} +2 -2
  151. package/dist/cdn/{ECNWD2N3.js → T2QYIP7P.js} +2 -2
  152. package/dist/cdn/{V2LALXOK.js → T6SOQIJD.js} +2 -2
  153. package/dist/cdn/{X5AG4BVK.js → TBZWKUBV.js} +2 -2
  154. package/dist/cdn/{OGFYS43X.js → TKFU4VPO.js} +2 -2
  155. package/dist/cdn/{FMNTFDFE.js → TMY3QHAH.js} +2 -2
  156. package/dist/cdn/{BG7NIL5F.js → TN5WAN2H.js} +2 -2
  157. package/dist/cdn/{CZOZHMTD.js → UDTTWW3B.js} +2 -2
  158. package/dist/cdn/{P6NTSYFQ.js → UDXK7TVS.js} +4 -4
  159. package/dist/cdn/{MVVENE5N.js → UI6WZYYU.js} +2 -2
  160. package/dist/cdn/{BDK75S3J.js → V4F7Q5DN.js} +2 -2
  161. package/dist/cdn/{GC7LRVFW.js → V5C64RIB.js} +2 -2
  162. package/dist/cdn/{PD3Y4HY2.js → VA3RBCTF.js} +2 -2
  163. package/dist/cdn/{J3MQV5O6.js → VBTMTJOM.js} +2 -2
  164. package/dist/cdn/{AE3Y4FDR.js → VFIP5WMA.js} +2 -2
  165. package/dist/cdn/{3QQ4DV5E.js → VKE7U2XW.js} +2 -2
  166. package/dist/cdn/{DSY274EO.js → VN3U6YSG.js} +2 -2
  167. package/dist/cdn/{JRDYNYHL.js → VRMUB72M.js} +2 -2
  168. package/dist/cdn/{7KZJLWEV.js → VSUTELWY.js} +2 -2
  169. package/dist/cdn/{K74GMLB6.js → W4NEW2DG.js} +2 -2
  170. package/dist/cdn/{GBOILEQL.js → WHM6EBNZ.js} +2 -2
  171. package/dist/cdn/{RWYOP4PZ.js → WWE3GZAL.js} +2 -2
  172. package/dist/cdn/{2SVP6RDG.js → XHAFQY5U.js} +2 -2
  173. package/dist/cdn/{DWR2THH7.js → XKVDJWUB.js} +2 -2
  174. package/dist/cdn/{BE2EA5WA.js → Y44VFHBM.js} +2 -2
  175. package/dist/cdn/{IBZ5YXVA.js → Y4PQRMQK.js} +2 -2
  176. package/dist/cdn/{UXY4UYU4.js → YHEUTP7J.js} +2 -2
  177. package/dist/cdn/{PC2CIW55.js → YT5SO6MM.js} +2 -2
  178. package/dist/cdn/{QVYPT635.js → YWH5NP4W.js} +2 -2
  179. package/dist/cdn/{VUGG62A5.js → ZG7N3N76.js} +2 -2
  180. package/dist/cdn/{UGYFJZCP.js → ZI5YHBXQ.js} +2 -2
  181. package/dist/cdn/{7ASELTOG.js → ZNTYQGY2.js} +1 -1
  182. package/dist/cdn/ZSORK6H6.js +4 -0
  183. package/dist/cdn/index.js +2 -2
  184. package/dist/chart-rendering/common/data/utils/misc/index.d.ts +0 -8
  185. package/dist/chunks/action-bar-utils.js +9 -9
  186. package/dist/chunks/axis-model-wrapper.js +1 -1
  187. package/dist/chunks/bar-chart-model.js +2 -2
  188. package/dist/chunks/bar-chart-series.js +1 -1
  189. package/dist/chunks/baseline-stacking.js +2 -2
  190. package/dist/chunks/bg_BG.js +1 -1
  191. package/dist/chunks/bg_BG2.js +1 -1
  192. package/dist/chunks/box-plot-data.js +6 -6
  193. package/dist/chunks/box-plot-model.js +15 -15
  194. package/dist/chunks/chart-ui-utils.js +1 -1
  195. package/dist/chunks/chart-ui-utils2.js +12 -12
  196. package/dist/chunks/combo-bar-line-chart-model.js +2 -2
  197. package/dist/chunks/common.js +1 -1
  198. package/dist/chunks/config-update.js +694 -695
  199. package/dist/chunks/data.js +328 -328
  200. package/dist/chunks/default.js +1 -1
  201. package/dist/chunks/gauge-model.js +11 -11
  202. package/dist/chunks/heat-chart-model.js +47 -35
  203. package/dist/chunks/histogram-data.js +9 -9
  204. package/dist/chunks/histogram-model.js +2 -2
  205. package/dist/chunks/index.js +35 -35
  206. package/dist/chunks/index2.js +2 -2
  207. package/dist/chunks/index3.js +2 -2
  208. package/dist/chunks/index4.js +1 -1
  209. package/dist/chunks/index5.js +1 -1
  210. package/dist/chunks/interfaces.js +225 -221
  211. package/dist/chunks/interfaces2.js +1 -1
  212. package/dist/chunks/interfaces3.js +1 -1
  213. package/dist/chunks/interfaces4.js +2 -2
  214. package/dist/chunks/line-chart-model.js +6 -6
  215. package/dist/chunks/model-with-baseline-stacking.js +1 -1
  216. package/dist/chunks/model-with-data-labels.js +2 -2
  217. package/dist/chunks/model-with-multi-axes.js +2 -2
  218. package/dist/chunks/model-with-rotation.js +2 -2
  219. package/dist/chunks/pie-chart-data.js +33 -33
  220. package/dist/chunks/pie-chart-model.js +25 -25
  221. package/dist/chunks/popover-ui-utils.js +1 -1
  222. package/dist/chunks/radar-chart-model.js +6 -6
  223. package/dist/chunks/resource.js +1 -1
  224. package/dist/chunks/rest-js-object-literals.js +1 -1
  225. package/dist/chunks/runtime.js +1 -1
  226. package/dist/chunks/scatterplot-model.js +2 -2
  227. package/dist/chunks/serial-chart-model.js +21 -19
  228. package/dist/chunks/series-types.js +1 -1
  229. package/dist/chunks/series.js +2 -2
  230. package/dist/chunks/sk_SK.js +1 -1
  231. package/dist/chunks/store.js +1 -1
  232. package/dist/chunks/type-guards.js +1 -1
  233. package/dist/chunks/useT9n.js +1 -1
  234. package/dist/chunks/web-component-utils.js +98 -98
  235. package/dist/components/arcgis-chart/customElement.d.ts +0 -2
  236. package/dist/components/arcgis-chart/customElement.js +1760 -1761
  237. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  238. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  239. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  240. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  241. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -2
  242. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +2 -2
  243. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
  244. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
  245. package/dist/components/arcgis-charts-config-box-plot/customElement.js +2 -2
  246. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +2 -2
  247. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
  248. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  249. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +2 -2
  250. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  252. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  254. package/dist/components/arcgis-charts-config-create-flow/customElement.js +5 -5
  255. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
  257. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  259. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  260. package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
  261. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  265. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +2 -2
  266. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
  267. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  268. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  269. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
  270. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
  271. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
  272. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +2 -2
  273. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  274. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +2 -2
  276. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +5 -5
  277. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +10 -10
  278. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
  279. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +2 -2
  280. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  281. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
  282. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +2 -2
  283. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  284. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  285. package/dist/docs/api.json +5 -9
  286. package/dist/docs/docs.json +6 -10
  287. package/dist/docs/vscode.html-custom-data.json +1 -1
  288. package/dist/docs/web-types.json +2 -2
  289. package/dist/index.js +206 -205
  290. package/dist/loader.js +1 -1
  291. package/dist/model/heat-chart-model/heat-chart-model.d.ts +14 -13
  292. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +9 -4
  293. package/dist/model.js +1 -1
  294. package/dist/utils/chart-config/utils/index.d.ts +7 -0
  295. package/package.json +4 -4
  296. package/dist/cdn/4DS3OI5Z.js +0 -4
  297. package/dist/cdn/64HL7VGS.js +0 -4
  298. package/dist/cdn/BSCL2IL6.js +0 -6
  299. package/dist/cdn/LNDVNPKY.js +0 -4
  300. package/dist/cdn/ZUH3YHWE.js +0 -4
@@ -1,35 +1,35 @@
1
1
  import { W as S, d as Ii, u as W, m as re, b as _, g as me, t as be, e as ke, a as P, n as G, i as j, S as zt, o as $i } from "./series-types.js";
2
2
  import "@arcgis/toolkit/intl";
3
- import { cloneDeep as Ie, isArray as vt, isEmpty as Ri, isEqual as Pe, sortBy as Ot } from "lodash-es";
3
+ import { cloneDeep as Ce, isArray as vt, isEmpty as Ri, isEqual as Le, sortBy as Ot } from "lodash-es";
4
4
  import { extent as ki, mean as ji, max as Wi, min as Qi, sum as Hi, rollup as zi } from "d3-array";
5
- import { b5 as pt, cz as p, p as V, c8 as Gt, c4 as z, a5 as Ut, B as _t, d as ne, a as he, T as Y, cl as lt, b3 as $e, H as se, r as oe, q as ve, bc as We, aU as Re, a1 as nt, S as xe, cf as ht, cj as ee, l as ge, cq as Gi, c9 as qt, cb as Yt, N as I, k as K, F as U, a3 as k, cu as Kt, D as R, bU as Ui, I as Nt, bz as ye, bH as Q, E as _i, i as Me, z as je, cc as Vt, aV as Ue, m as Tt, b9 as Ne, c0 as Qe, a2 as Jt, cC as Yi, A as Xt, ce as Se, by as _e, bL as Ki, b_ as Ji, b6 as Et, R as Xi, bj as Zt, bw as Zi, bk as ea, bY as ta, bZ as ei, bs as ia, ck as mt, c2 as aa, b7 as na, bt as ra, U as sa, n as Fe, bN as ti, bA as oa, bn as ii, bB as la, bC as ca, cB as ae, Q as ua, P as It, bD as ai, bV as da, bv as fa, bh as ni, bu as ma, bx as ga, bf as ya, bi as pa, X as ri, b8 as ha } from "./interfaces.js";
5
+ import { b6 as pt, cA as h, p as E, c9 as Gt, c5 as z, a6 as Ut, s as Gi, E as _t, d as ne, a as he, U as Y, cm as lt, b4 as $e, I as se, r as oe, q as Ne, bd as We, aV as Re, a2 as nt, T as xe, cg as ht, ck as ee, l as ge, cr as Ui, ca as qt, cc as Yt, P as V, k as K, G as U, a4 as k, cv as Kt, D as $, bV as _i, J as Nt, bA as ye, bI as Q, F as Yi, i as we, A as je, cd as Et, aW as Ue, m as Tt, ba as Te, c1 as Qe, a3 as Jt, cD as Ki, B as Xt, cf as Se, bz as _e, bM as Ji, b$ as Xi, b7 as Vt, S as Zi, bk as Zt, bx as ea, bl as ta, bZ as ia, b_ as ei, bt as aa, cl as mt, c3 as na, b8 as ra, bu as sa, V as oa, n as Fe, bO as ti, bB as la, bo as ii, bC as ca, bD as ua, cC as ae, R as da, Q as It, bE as ai, bW as fa, bw as ma, bi as ni, bv as ga, by as ya, bg as pa, bj as ha, Y as ri, b9 as Sa } from "./interfaces.js";
6
6
  import "@arcgis/core/geometry/support/jsonUtils.js";
7
7
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
8
8
  import "@arcgis/core/rest/support/Query.js";
9
9
  import "@arcgis/core/rest/support/StatisticDefinition.js";
10
10
  import "@arcgis/core/time/TimeExtent.js";
11
11
  import "@arcgis/core/core/promiseUtils.js";
12
- import Sa from "@arcgis/core/request.js";
12
+ import Fa from "@arcgis/core/request.js";
13
13
  import "./runtime.js";
14
14
  import "@arcgis/toolkit/dom";
15
- import { b as Fa, R as rt, a as Ye, j as ie } from "./rest-js-object-literals.js";
15
+ import { b as ba, R as rt, a as Ye, j as ie } from "./rest-js-object-literals.js";
16
16
  import { C as b } from "./interfaces4.js";
17
- import * as ba from "@arcgis/core/renderers/support/jsonUtils.js";
17
+ import * as xa from "@arcgis/core/renderers/support/jsonUtils.js";
18
18
  import * as gt from "@arcgis/core/symbols/support/symbolUtils.js";
19
- import xa from "@arcgis/core/Graphic.js";
19
+ import Ca from "@arcgis/core/Graphic.js";
20
20
  import { u as yt } from "./index2.js";
21
21
  import { substitute as de } from "@arcgis/core/intl.js";
22
- import { d as Ca } from "./index3.js";
22
+ import { d as Ba } from "./index3.js";
23
23
  import $t from "@arcgis/core/layers/support/FeatureFilter.js";
24
- import Ba from "@arcgis/core/smartMapping/statistics/histogram.js";
24
+ import va from "@arcgis/core/smartMapping/statistics/histogram.js";
25
25
  import Rt from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
26
- import { linearRegression as va, linearRegressionLine as Na, rSquared as Ta } from "simple-statistics";
27
- import { c as Aa } from "./index.js";
28
- import { h as Pa } from "./index4.js";
26
+ import { linearRegression as Na, linearRegressionLine as Ta, rSquared as Aa } from "simple-statistics";
27
+ import { c as Pa } from "./index.js";
28
+ import { h as La } from "./index4.js";
29
29
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
30
30
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
31
- v4.34.0-next.157 */
32
- async function La(i, e) {
31
+ v4.34.0-next.159 */
32
+ async function Ma(i, e) {
33
33
  const t = e.errors[i];
34
34
  throw new pt(e.modalHeaders.error, t ?? e.errors.simpleError);
35
35
  }
@@ -48,7 +48,7 @@ function lo(i) {
48
48
  function fe(i) {
49
49
  return i?.type === S.CategoryAxisFormat;
50
50
  }
51
- function Ae(i) {
51
+ function Pe(i) {
52
52
  return i?.type === S.DateAxisFormat;
53
53
  }
54
54
  function co(i) {
@@ -58,28 +58,28 @@ function co(i) {
58
58
  e.verticalAxisLabelsBehavior !== t.verticalAxisLabelsBehavior
59
59
  ];
60
60
  }
61
- function Ma(i) {
62
- return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
63
- }
64
61
  function wa(i) {
65
62
  return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
66
63
  }
67
64
  function Da(i) {
68
- return (fe(i?.[0]?.valueFormat) || Ae(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
65
+ return J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
69
66
  }
70
67
  function Oa(i) {
71
- return fe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Ae(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Ae(i?.[0]?.valueFormat) && Ae(i?.[1]?.valueFormat);
68
+ return (fe(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat) && (i?.[2]?.valueFormat === void 0 || J(i[2].valueFormat));
72
69
  }
73
70
  function qa(i) {
74
- return (fe(i?.[0]?.valueFormat) || Ae(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat);
71
+ return fe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && fe(i?.[1]?.valueFormat) || Pe(i?.[0]?.valueFormat) && Pe(i?.[1]?.valueFormat);
72
+ }
73
+ function Ea(i) {
74
+ return (fe(i?.[0]?.valueFormat) || Pe(i?.[0]?.valueFormat)) && J(i?.[1]?.valueFormat);
75
75
  }
76
76
  function Va(i) {
77
77
  return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
78
78
  }
79
- function Ea(i) {
79
+ function Ia(i) {
80
80
  return J(i?.[0]?.valueFormat) && J(i?.[1]?.valueFormat);
81
81
  }
82
- function Ia(i) {
82
+ function $a(i) {
83
83
  return J(i?.[0]?.valueFormat);
84
84
  }
85
85
  async function uo(i) {
@@ -87,33 +87,33 @@ async function uo(i) {
87
87
  let n, r;
88
88
  switch (e) {
89
89
  case S.GaugeSeries:
90
- n = Ia, r = "invalidValueFormatForGauge";
90
+ n = $a, r = "invalidValueFormatForGauge";
91
91
  break;
92
92
  case S.ScatterSeries:
93
93
  n = Va, r = "invalidValueFormatForScatterplot";
94
94
  break;
95
95
  case S.HistogramSeries:
96
- n = Ea, r = "invalidValueFormatForHistogram";
96
+ n = Ia, r = "invalidValueFormatForHistogram";
97
97
  break;
98
98
  case S.LineSeries:
99
- n = Ma, r = "invalidValueFormatForLineChart";
99
+ n = wa, r = "invalidValueFormatForLineChart";
100
100
  break;
101
101
  case S.BarSeries:
102
- n = wa, r = "invalidValueFormatForBarChart";
102
+ n = Da, r = "invalidValueFormatForBarChart";
103
103
  break;
104
104
  case S.ComboLineAndBarSeries:
105
- n = qa, r = "invalidValueFormatForComboBarLineChart";
105
+ n = Ea, r = "invalidValueFormatForComboBarLineChart";
106
106
  break;
107
107
  case S.BoxPlotSeries:
108
- n = Da, r = "invalidValueFormatForBoxPlot";
108
+ n = Oa, r = "invalidValueFormatForBoxPlot";
109
109
  break;
110
110
  case S.HeatSeries:
111
- n = Oa, r = "invalidValueFormatForHeatChart";
111
+ n = qa, r = "invalidValueFormatForHeatChart";
112
112
  break;
113
113
  }
114
- n !== void 0 && r !== void 0 && (n(t) || await La(r, a));
114
+ n !== void 0 && r !== void 0 && (n(t) || await Ma(r, a));
115
115
  }
116
- function $a(i) {
116
+ function Ra(i) {
117
117
  const { isXAxis: e, chartType: t, valueFormat: a, isAxisForHistogramOverlaySeries: n } = i;
118
118
  return e && (fe(a) || t === S.HistogramSeries && !n || t === S.BarSeries && J(a));
119
119
  }
@@ -189,7 +189,7 @@ const si = {
189
189
  emptyCells: {
190
190
  symbol: {
191
191
  type: rt.SFS,
192
- style: Fa.Solid,
192
+ style: ba.Solid,
193
193
  color: b.grayColor
194
194
  },
195
195
  text: "null"
@@ -200,10 +200,10 @@ const si = {
200
200
  },
201
201
  heatChartFirstDayOfWeek: 7
202
202
  };
203
- function Ra(i, e) {
203
+ function ka(i, e) {
204
204
  return i[0].dataTransformationType !== e[0].dataTransformationType;
205
205
  }
206
- function ka(i, e) {
206
+ function ja(i, e) {
207
207
  return i[0].binCount !== e[0].binCount;
208
208
  }
209
209
  function mo(i, e) {
@@ -217,7 +217,7 @@ function St(i, e) {
217
217
  function go(i) {
218
218
  const { chartConfig: e, queryObject: t, chartData: a } = i;
219
219
  let n = [];
220
- const r = V(e.series), s = Gt(e), o = z(t), c = e.chartRenderer ?? o?.renderer?.toJSON();
220
+ const r = E(e.series), s = Gt(e), o = z(t), c = e.chartRenderer ?? o?.renderer?.toJSON();
221
221
  return n = e.series.map((l, u) => {
222
222
  const d = W([l]);
223
223
  let f;
@@ -231,22 +231,22 @@ function go(i) {
231
231
  }).filter((l) => l !== void 0), n;
232
232
  }
233
233
  function Ft(i) {
234
- return i !== p.PieNoAggregation && i !== p.BarAndLineNoAggregation && i !== p.BarAndLineSplitByNoAggregation;
234
+ return i !== h.PieNoAggregation && i !== h.BarAndLineNoAggregation && i !== h.BarAndLineSplitByNoAggregation;
235
235
  }
236
- function ja(i) {
237
- const e = V(i.series);
238
- return e === p.BarAndLineFromFields || e === p.PieFromFields || e === p.BoxPlotMonoField || e === p.BoxPlotMultiFields || e === p.BoxPlotMonoFieldAndSplitBy || e === p.BoxPlotMultiFieldsAndSplitBy;
236
+ function Wa(i) {
237
+ const e = E(i.series);
238
+ return e === h.BarAndLineFromFields || e === h.PieFromFields || e === h.BoxPlotMonoField || e === h.BoxPlotMultiFields || e === h.BoxPlotMonoFieldAndSplitBy || e === h.BoxPlotMultiFieldsAndSplitBy;
239
239
  }
240
240
  function He(i) {
241
241
  return i && "showMean" in i && typeof i.showMean == "boolean" ? i.showMean : !1;
242
242
  }
243
- function Wa(i) {
243
+ function Qa(i) {
244
244
  return i && "showOutliers" in i && typeof i.showOutliers == "boolean" ? i.showOutliers : void 0;
245
245
  }
246
246
  function yo() {
247
247
  return `{name} {${b.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
248
248
  }
249
- function Qa(i) {
249
+ function Ha(i) {
250
250
  let e;
251
251
  return i?.[0] !== void 0 && (e = i.reduce(
252
252
  (t, a) => ({
@@ -277,7 +277,7 @@ function ze(i) {
277
277
  }
278
278
  return c;
279
279
  }
280
- function Ha(i) {
280
+ function za(i) {
281
281
  return i?.[b.typeOrDomainIdValue] !== void 0 ? i?.[b.typeOrDomainIdValue] : i?.[b.originalCategoryValue];
282
282
  }
283
283
  function Ge(i) {
@@ -309,7 +309,7 @@ function Ge(i) {
309
309
  });
310
310
  }
311
311
  }
312
- function za(i) {
312
+ function Ga(i) {
313
313
  const { arrayToSort: e, orderBy: t, sortingField: a, fieldList: n, isByFieldsChart: r, preferLabel: s } = i;
314
314
  e !== void 0 && e.length > 1 && !ee(a) && t !== void 0 && t.length > 0 && e.sort((o, c) => {
315
315
  let l = o[a];
@@ -324,7 +324,7 @@ function za(i) {
324
324
  }
325
325
  function oi(i, e) {
326
326
  const t = i;
327
- if (e?.[0] !== void 0 && V(e) === p.PieFromFields) {
327
+ if (e?.[0] !== void 0 && E(e) === h.PieFromFields) {
328
328
  const { x: a, y: n } = e[0];
329
329
  (vt(i) ? t : t.dataItems).forEach((o) => (ne in o && a !== ne && (o[a] = o[a] !== void 0 ? o[a] : o[ne], delete o[ne]), he in o && n !== he && (o[n] = o[n] !== void 0 ? o[n] : o[he], delete o[he]), o));
330
330
  }
@@ -357,7 +357,7 @@ function bt(i) {
357
357
  const a = lt(e);
358
358
  return a.isInItem && delete e[a.expr ?? ""], e;
359
359
  }
360
- function Ga(i, e) {
360
+ function Ua(i, e) {
361
361
  let t = i;
362
362
  const a = W(e);
363
363
  let n = _t(t);
@@ -385,8 +385,8 @@ function Ga(i, e) {
385
385
  }
386
386
  function ci(i) {
387
387
  const { data: e, seriesConfig: t } = i;
388
- let a = Ie(e);
389
- return a !== void 0 && (a = li(a, t), a = Ga(a, t), a = oi(a, t)), a;
388
+ let a = Ce(e);
389
+ return a !== void 0 && (a = li(a, t), a = Ua(a, t), a = oi(a, t)), a;
390
390
  }
391
391
  function ui(i) {
392
392
  const { statsMap: e, dataContext: t, chartLimits: a } = i;
@@ -397,19 +397,19 @@ function ui(i) {
397
397
  } else t !== void 0 && (n = b.scatterplotAggregationFields.dataContextXMinField in t);
398
398
  return n;
399
399
  }
400
- function Ua(i) {
400
+ function _a(i) {
401
401
  let e = !0;
402
402
  const t = W(i.series);
403
403
  if (t === S.BarSeries || t === S.LineSeries || t === S.ComboLineAndBarSeries) {
404
- const a = V(i.series);
405
- e = a !== p.BarAndLineNoAggregation && a !== p.BarAndLineSplitByNoAggregation;
404
+ const a = E(i.series);
405
+ e = a !== h.BarAndLineNoAggregation && a !== h.BarAndLineSplitByNoAggregation;
406
406
  }
407
407
  return e;
408
408
  }
409
- function _a(i) {
410
- return V(i.series) !== p.PieNoAggregation;
411
- }
412
409
  function Ya(i) {
410
+ return E(i.series) !== h.PieNoAggregation;
411
+ }
412
+ function Ka(i) {
413
413
  const { dataContext: e, chartConfig: t, chartLimits: a } = i;
414
414
  let n = !0;
415
415
  if (t !== void 0)
@@ -417,18 +417,18 @@ function Ya(i) {
417
417
  case S.BarSeries:
418
418
  case S.LineSeries:
419
419
  case S.ComboLineAndBarSeries:
420
- n = Ua(t);
420
+ n = _a(t);
421
421
  break;
422
422
  case S.ScatterSeries:
423
423
  n = ui({ dataContext: e, chartLimits: a });
424
424
  break;
425
425
  case S.PieSeries:
426
- n = _a(t);
426
+ n = Ya(t);
427
427
  break;
428
428
  }
429
429
  return n;
430
430
  }
431
- function Ka(i, e) {
431
+ function Ja(i, e) {
432
432
  let t = i;
433
433
  switch (e) {
434
434
  case _.Log:
@@ -458,18 +458,18 @@ function st(i) {
458
458
  }
459
459
  }), r;
460
460
  }
461
- function Ja(i, e) {
461
+ function Xa(i, e) {
462
462
  return JSON.stringify(i.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
463
463
  }
464
- function Xa(i, e) {
464
+ function Za(i, e) {
465
465
  return JSON.stringify(i.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(i.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (i.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || i.outTimeZone !== e.outTimeZone || (i.nullPolicy ?? re.Null) !== (e.nullPolicy ?? re.Null);
466
466
  }
467
- function Za(i) {
467
+ function en(i) {
468
468
  const { oldConfig: e, newConfig: t, fieldList: a } = i, n = e.series[0], r = t.series[0];
469
469
  let s = !1;
470
470
  if (n.type === S.ScatterSeries && r.type === S.ScatterSeries && a && a.length > 0) {
471
471
  const o = new Set(n.additionalTooltipFields || []), c = new Set(r.additionalTooltipFields || []);
472
- if (!Pe(o, c)) {
472
+ if (!Le(o, c)) {
473
473
  const l = Array.from(c).filter((u) => !o.has(u));
474
474
  l.length > 0 && (s = a?.some((u) => l.includes(u.name) && !We(u)));
475
475
  }
@@ -490,12 +490,12 @@ function Fo(i) {
490
490
  let a = !1;
491
491
  const n = e.series[0], r = t.series[0], s = W(e.series), o = W(t.series);
492
492
  if (s === S.PieSeries && o === S.PieSeries) {
493
- const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((h) => ({
494
- sliceId: h.sliceId,
495
- label: h.label
496
- })), m = u?.map((h) => ({
497
- sliceId: h.sliceId,
498
- label: h.label
493
+ const { slices: c, sliceGrouping: l } = n, { slices: u, sliceGrouping: d } = r, f = c?.map((p) => ({
494
+ sliceId: p.sliceId,
495
+ label: p.label
496
+ })), m = u?.map((p) => ({
497
+ sliceId: p.sliceId,
498
+ label: p.label
499
499
  })), g = l?.label, y = d?.label;
500
500
  a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(g) !== JSON.stringify(y);
501
501
  }
@@ -504,10 +504,10 @@ function Fo(i) {
504
504
  function kt(i, e) {
505
505
  return e.length !== i.length;
506
506
  }
507
- function en(i) {
507
+ function tn(i) {
508
508
  const { oldSeries: e, newConfig: t, oldTimeIntervalInfo: a, setTimeBinningInfoWhenNotProvided: n } = i, r = t.series?.[0];
509
509
  let s = !1, o = !1, c = !1;
510
- if (oe(r) && ve({
510
+ if (oe(r) && Ne({
511
511
  seriesConfig: r,
512
512
  xAxisValueFormatType: pe(t),
513
513
  setTimeBinningInfoWhenNotProvided: n
@@ -517,10 +517,10 @@ function en(i) {
517
517
  }
518
518
  return { timeBinningChanged: s, timeIntervalUnitChanged: o, newTimeBinningWillBeCalculated: c };
519
519
  }
520
- function tn(i) {
520
+ function an(i) {
521
521
  const { oldConfig: e, newConfig: t, behaviorAfterLimit: a } = i, n = e.series, r = t.series;
522
522
  let s = !1, o = !1;
523
- (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !Pe(e.orderOptions?.orderByFields, t.orderOptions?.orderByFields));
523
+ (a === $e.RenderUpToTheLimit || e.orderOptions?.data === void 0 || t.orderOptions?.data === void 0) && (o = !Le(e.orderOptions?.orderByFields, t.orderOptions?.orderByFields));
524
524
  const c = Ot(
525
525
  n.map((u) => u.query),
526
526
  ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
@@ -528,9 +528,9 @@ function tn(i) {
528
528
  r.map((u) => u.query),
529
529
  ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"]
530
530
  );
531
- return s = !Pe(c, l), s || o;
531
+ return s = !Le(c, l), s || o;
532
532
  }
533
- function an(i, e) {
533
+ function nn(i, e) {
534
534
  let t = !1;
535
535
  if (e[0].x !== i[0].x)
536
536
  t = !0;
@@ -543,16 +543,13 @@ function an(i, e) {
543
543
  }
544
544
  return t;
545
545
  }
546
- function nn(i, e) {
546
+ function rn(i, e) {
547
547
  return (i ?? !1) !== (e?.filterBySelection ?? !1);
548
548
  }
549
549
  function di(i) {
550
550
  const { currentSelectionOIDs: e, options: t } = i;
551
551
  let a = !1;
552
- return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !Pe(e, t?.selectionData?.selectionOIDs)), a;
553
- }
554
- function rn(i, e) {
555
- return JSON.stringify(i.dataFilters) !== JSON.stringify(e.dataFilters);
552
+ return t?.filterBySelection === !0 && (a = e?.length !== t?.selectionData?.selectionOIDs?.length || !Le(e, t?.selectionData?.selectionOIDs)), a;
556
553
  }
557
554
  function sn(i, e) {
558
555
  return oe(i.series[0]) && oe(e.series[0]) && (i.series[0].binTemporalData ?? b.binTemporalData) !== (e.series[0].binTemporalData ?? b.binTemporalData);
@@ -571,7 +568,7 @@ function on(i, e) {
571
568
  return He(i) !== He(e);
572
569
  }
573
570
  function ln(i, e) {
574
- const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = V(e.series), r = n === p.BarAndLineNoAggregation || n === p.BarAndLineSplitByNoAggregation, s = t === S.DateAxisFormat && a === S.NumberAxisFormat, o = t === S.NumberAxisFormat && a === S.DateAxisFormat;
571
+ const t = i.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, n = E(e.series), r = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation, s = t === S.DateAxisFormat && a === S.NumberAxisFormat, o = t === S.NumberAxisFormat && a === S.DateAxisFormat;
575
572
  return t !== a && (r || s || o);
576
573
  }
577
574
  function Co(i) {
@@ -610,11 +607,11 @@ function Co(i) {
610
607
  tooltipFieldsChanged: !1
611
608
  }
612
609
  };
613
- switch (y.common.queryChanged = tn({
610
+ switch (y.common.queryChanged = an({
614
611
  oldConfig: t,
615
612
  newConfig: a,
616
613
  behaviorAfterLimit: n?.chartLimits?.behaviorAfterLimit
617
- }), y.common.configFiltersChanged = rn(t, a), y.common.xOrYChanged = an(u, l), y.common.filterBySelectionChanged = nn(r, n), y.common.dataForFilterBySelectionChanged = di({
614
+ }), y.common.configFiltersChanged = Gi(t, a), y.common.xOrYChanged = nn(u, l), y.common.filterBySelectionChanged = rn(r, n), y.common.dataForFilterBySelectionChanged = di({
618
615
  currentSelectionOIDs: o,
619
616
  options: n
620
617
  }), y.common.binTemporalDataChanged = sn(t, a), y.common.valueFormatChangeRequiresNewData = ln(
@@ -622,15 +619,15 @@ function Co(i) {
622
619
  a
623
620
  ), y.common = {
624
621
  ...y.common,
625
- ...en({
622
+ ...tn({
626
623
  oldSeries: u,
627
624
  newConfig: a,
628
625
  oldTimeIntervalInfo: s,
629
626
  setTimeBinningInfoWhenNotProvided: n?.setTimeBinningInfoWhenNotProvided
630
627
  })
631
- }, m = Object.values(y.common).some((h) => h), d) {
628
+ }, m = Object.values(y.common).some((p) => p), d) {
632
629
  case S.HistogramSeries:
633
- y.histogram.dataPropsChanged = ka(u, l) || Ra(u, l);
630
+ y.histogram.dataPropsChanged = ja(u, l) || ka(u, l);
634
631
  break;
635
632
  case S.LineSeries:
636
633
  case S.BarSeries:
@@ -641,13 +638,13 @@ function Co(i) {
641
638
  y.common.numberOfSeriesChanged = kt(u, l), y.boxPlot.showMeanChanged = on(t, a);
642
639
  break;
643
640
  case S.GaugeSeries:
644
- y.gauge.valueConversionChanged = Ja(t, a);
641
+ y.gauge.valueConversionChanged = Xa(t, a);
645
642
  break;
646
643
  case S.HeatSeries:
647
- y.heatChart.binningChanged = Xa(t, a);
644
+ y.heatChart.binningChanged = Za(t, a);
648
645
  break;
649
646
  case S.ScatterSeries:
650
- y.scatterPlot.tooltipFieldsChanged = Za({
647
+ y.scatterPlot.tooltipFieldsChanged = en({
651
648
  oldConfig: t,
652
649
  newConfig: a,
653
650
  fieldList: c
@@ -665,7 +662,7 @@ function cn(i, e) {
665
662
  let a = 0, n = 0, r = 0;
666
663
  i.forEach((s) => {
667
664
  const o = s[e];
668
- !Gi(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
665
+ !Ui(o) || o === 0 ? r += 1 : o > 0 ? a += 1 : n += 1;
669
666
  }), t = r === i.length || a >= 0 && n === 0 || a === 0 && n >= 0;
670
667
  }
671
668
  return t;
@@ -692,8 +689,8 @@ function fi(i, e) {
692
689
  maxLineThreePlusSeriesCountPerSeries: m,
693
690
  maxLineThreePlusSeriesCountTotal: g,
694
691
  maxPieChartSliceCountTotal: y,
695
- maxGaugeByFeaturesLimit: h
696
- } = Re(e), x = W(i.series), F = i.series.length === 0 ? 1 : i.series.length, C = V(i.series);
692
+ maxGaugeByFeaturesLimit: p
693
+ } = Re(e), x = W(i.series), F = i.series.length === 0 ? 1 : i.series.length, C = E(i.series);
697
694
  switch (x) {
698
695
  case S.ComboLineAndBarSeries:
699
696
  case S.BarSeries:
@@ -722,7 +719,7 @@ function fi(i, e) {
722
719
  t = y;
723
720
  break;
724
721
  case S.GaugeSeries:
725
- t = h;
722
+ t = p;
726
723
  break;
727
724
  case S.ScatterSeries:
728
725
  // handled through the aggregation feature
@@ -730,7 +727,7 @@ function fi(i, e) {
730
727
  // handled through the number of bins
731
728
  case S.BoxPlotSeries:
732
729
  }
733
- return (C === p.BarAndLineNoAggregation || C === p.BarAndLineMultiFields) && t !== void 0 && (t = Math.ceil(t / F)), t;
730
+ return (C === h.BarAndLineNoAggregation || C === h.BarAndLineMultiFields) && t !== void 0 && (t = Math.ceil(t / F)), t;
734
731
  }
735
732
  function jt(i, e) {
736
733
  let t = i;
@@ -808,7 +805,7 @@ function Mo(i) {
808
805
  const { data: e, seriesConfig: t, htmlContainer: a } = i;
809
806
  if (a) {
810
807
  const n = e;
811
- let r = Ie(e.selectionItems);
808
+ let r = Ce(e.selectionItems);
812
809
  r && (r = li(r, t), r = r.map(bt), r = oi(r, t), n.selectionItems = r), a.dispatchEvent(new window.CustomEvent(le.SelectionComplete, ce(n)));
813
810
  }
814
811
  }
@@ -838,11 +835,11 @@ function dn(i) {
838
835
  const { data: e, htmlContainer: t } = i;
839
836
  t && e && t.dispatchEvent(new window.CustomEvent(le.SeriesOrder, ce(e)));
840
837
  }
841
- function Vo(i, e) {
838
+ function Eo(i, e) {
842
839
  let t, a, n, r;
843
840
  return oe(i.series[0]) && (t = i.series[0].temporalBinning?.unit, n = i.series[0].temporalBinning?.size), oe(e.series[0]) && (a = e.series[0].temporalBinning?.unit, r = e.series[0].temporalBinning?.size), St(t, n) && !St(a, r);
844
841
  }
845
- function Eo(i, e) {
842
+ function Vo(i, e) {
846
843
  return i.axes?.length === 3 && e.axes?.length === 2 || i.axes?.length === 2 && e.axes?.length === 3;
847
844
  }
848
845
  function Io(i, e) {
@@ -886,15 +883,15 @@ function Go(i, e) {
886
883
  return mn(i, e) || fn(i, e);
887
884
  }
888
885
  function gn(i) {
889
- const e = V(i.series);
886
+ const e = E(i.series);
890
887
  let t;
891
888
  if (i.orderOptions?.data !== void 0) {
892
889
  let a = i.orderOptions?.data?.orderType ?? be.Category, n = i.orderOptions?.data?.orderBy;
893
890
  if (a === be.Category)
894
891
  a = i.series[0].x;
895
892
  else {
896
- a === be.Mean ? a = I.Average : a === be.Median && (a = I.Median);
897
- const r = e === p.BoxPlotMultiFieldsAndCategory && typeof i.series[0].y == "string" ? i.series[0].y : void 0, s = K(i.series[0].query?.where), o = ge({
893
+ a === be.Mean ? a = V.Average : a === be.Median && (a = V.Median);
894
+ const r = e === h.BoxPlotMultiFieldsAndCategory && typeof i.series[0].y == "string" ? i.series[0].y : void 0, s = K(i.series[0].query?.where), o = ge({
898
895
  where: i.series[0].query?.where
899
896
  });
900
897
  a = U({
@@ -925,7 +922,7 @@ function yn(i) {
925
922
  return e;
926
923
  }
927
924
  function pn(i) {
928
- const e = i.series[0], { x: t, y: a } = e, n = V(i.series) === p.PieFromFields, r = V(i.series) === p.BarAndLineFromFields;
925
+ const e = i.series[0], { x: t, y: a } = e, n = E(i.series) === h.PieFromFields, r = E(i.series) === h.BarAndLineFromFields;
929
926
  let s, o = "", c;
930
927
  if (i.orderOptions?.data !== void 0) {
931
928
  if (o = i.orderOptions?.data?.orderType ?? be.Category, c = i.orderOptions?.data?.orderBy, o === be.Category ? o = n ? ne : t : o = n ? he : [a].flat()[0], o !== void 0 && o !== "") {
@@ -974,9 +971,9 @@ function xt(i) {
974
971
  return e;
975
972
  }
976
973
  function Uo(i) {
977
- const { oldConfig: e, newConfig: t, dataUpdateNeeded: a } = i, n = V(t.series);
974
+ const { oldConfig: e, newConfig: t, dataUpdateNeeded: a } = i, n = E(t.series);
978
975
  let r = !1, s = !1;
979
- if (n !== p.BoxPlotMonoField && n !== p.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
976
+ if (n !== h.BoxPlotMonoField && n !== h.BoxPlotMonoFieldAndSplitBy && t.orderOptions?.data !== void 0) {
980
977
  const o = xt(e), c = xt(t);
981
978
  s = e.orderOptions?.data?.orderType !== t.orderOptions?.data?.orderType || o?.sortingField !== c?.sortingField || o?.orderBy !== c?.orderBy || (o?.preferLabel ?? !0) !== (c?.preferLabel ?? !0), r = s || a;
982
979
  }
@@ -995,13 +992,13 @@ function _o(i, e) {
995
992
  }), t;
996
993
  }
997
994
  function Yo(i, e) {
998
- const t = Ie(i);
995
+ const t = Ce(i);
999
996
  if (t && t.series.length > 1) {
1000
997
  const { preferLabel: a, orderBy: n } = t.orderOptions?.series ?? {};
1001
998
  if (n !== void 0) {
1002
999
  let r;
1003
1000
  if (a === !1) {
1004
- const s = V(t.series);
1001
+ const s = E(t.series);
1005
1002
  r = Kt(s) ? "splitByValue" : "name";
1006
1003
  } else
1007
1004
  r = "name";
@@ -1031,22 +1028,22 @@ function ot(i) {
1031
1028
  switch (e.valid = !1, t) {
1032
1029
  case S.BarSeries:
1033
1030
  case S.ComboLineAndBarSeries:
1034
- e.invalidType = R.BarElementExceedsLimit;
1031
+ e.invalidType = $.BarElementExceedsLimit;
1035
1032
  break;
1036
1033
  case S.LineSeries:
1037
- e.invalidType = R.LineChartExceedsLimit;
1034
+ e.invalidType = $.LineChartExceedsLimit;
1038
1035
  break;
1039
1036
  case S.PieSeries:
1040
- e.invalidType = R.PieChartExceedsLimit;
1037
+ e.invalidType = $.PieChartExceedsLimit;
1041
1038
  break;
1042
1039
  case S.GaugeSeries:
1043
- e.invalidType = R.GaugeExceedsLimit;
1040
+ e.invalidType = $.GaugeExceedsLimit;
1044
1041
  break;
1045
1042
  case S.BoxPlotSeries:
1046
- a?.outlierLimit === !0 ? e.invalidType = R.BoxPlotOutliersExceedsLimit : e.invalidType = R.BoxPlotExceedsLimit;
1043
+ a?.outlierLimit === !0 ? e.invalidType = $.BoxPlotOutliersExceedsLimit : e.invalidType = $.BoxPlotExceedsLimit;
1047
1044
  break;
1048
1045
  case S.HeatSeries:
1049
- e.invalidType = R.HeatChartExceedsLimit;
1046
+ e.invalidType = $.HeatChartExceedsLimit;
1050
1047
  break;
1051
1048
  }
1052
1049
  }
@@ -1061,7 +1058,7 @@ async function Ko(i) {
1061
1058
  seriesCount: n,
1062
1059
  queryObject: r,
1063
1060
  filterBySelection: s,
1064
- formatLocale: o = Ca(document.documentElement),
1061
+ formatLocale: o = Ba(document.documentElement),
1065
1062
  isTemporalLineChart: c,
1066
1063
  errorStrings: l
1067
1064
  } = i;
@@ -1069,7 +1066,7 @@ async function Ko(i) {
1069
1066
  const f = new Intl.NumberFormat(o), m = Re(t), { maxCategoryCount: g } = m;
1070
1067
  let y = l.modalHeaders.invalidChart;
1071
1068
  switch (e) {
1072
- case R.BarElementExceedsLimit: {
1069
+ case $.BarElementExceedsLimit: {
1073
1070
  y = l.modalHeaders.tooManyFeatures;
1074
1071
  let x = Number.NaN, F = Number.NaN, C = "";
1075
1072
  n !== void 0 && (n <= m.maxBarChartSeriesCount ? n === 1 ? (C = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = m.maxBarUniqueSeriesCountTotal) : n === 2 ? (C = l.errors.twoSeriesBarCountCannotExceedLimit, x = m.maxBarTwoSeriesCountTotal, F = m.maxBarTwoSeriesCountPerSeries) : n > 2 && (C = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = m.maxBarThreePlusSeriesCountTotal, F = m.maxBarThreePlusSeriesCountPerSeries) : (C = l.errors.barSeriesCountCannotExceedLimit, F = m.maxBarChartSeriesCount));
@@ -1085,7 +1082,7 @@ async function Ko(i) {
1085
1082
  };
1086
1083
  break;
1087
1084
  }
1088
- case R.LineChartExceedsLimit:
1085
+ case $.LineChartExceedsLimit:
1089
1086
  {
1090
1087
  y = l.modalHeaders.tooManyFeatures;
1091
1088
  let x = Number.NaN, F = Number.NaN, C = "";
@@ -1102,7 +1099,7 @@ async function Ko(i) {
1102
1099
  };
1103
1100
  }
1104
1101
  break;
1105
- case R.BoxPlotExceedsLimit:
1102
+ case $.BoxPlotExceedsLimit:
1106
1103
  {
1107
1104
  y = l.modalHeaders.tooManyFeatures;
1108
1105
  let x = Number.NaN, F = Number.NaN, C = "";
@@ -1119,7 +1116,7 @@ async function Ko(i) {
1119
1116
  };
1120
1117
  }
1121
1118
  break;
1122
- case R.BoxPlotOutliersExceedsLimit:
1119
+ case $.BoxPlotOutliersExceedsLimit:
1123
1120
  {
1124
1121
  y = l.modalHeaders.tooManyFeatures;
1125
1122
  const x = l.errors.boxSeriesOutlierCannotExceedLimit, F = m.maxBoxPlotOutlierLimit, C = f.format(F);
@@ -1128,7 +1125,7 @@ async function Ko(i) {
1128
1125
  }), d = { actualCount: a ?? Number.NaN, totalLimit: F };
1129
1126
  }
1130
1127
  break;
1131
- case R.HeatChartExceedsLimit:
1128
+ case $.HeatChartExceedsLimit:
1132
1129
  {
1133
1130
  y = l.modalHeaders.tooManyFeatures;
1134
1131
  const x = l.errors.heatChartCannotExceedLimit, F = m.maxHeatChartCellLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
@@ -1141,7 +1138,7 @@ async function Ko(i) {
1141
1138
  };
1142
1139
  }
1143
1140
  break;
1144
- case R.PieChartExceedsLimit:
1141
+ case $.PieChartExceedsLimit:
1145
1142
  {
1146
1143
  y = l.modalHeaders.tooManyFeatures;
1147
1144
  const x = l.errors.pieChartSlicesCannotExceedLimit, F = m.maxPieChartSliceCountTotal, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
@@ -1154,7 +1151,7 @@ async function Ko(i) {
1154
1151
  };
1155
1152
  }
1156
1153
  break;
1157
- case R.GaugeExceedsLimit:
1154
+ case $.GaugeExceedsLimit:
1158
1155
  {
1159
1156
  y = l.modalHeaders.tooManyFeatures;
1160
1157
  const x = l.errors.gaugeCannotExceedLimit, F = m.maxGaugeByFeaturesLimit, C = f.format(F), B = a !== void 0 ? f.format(a) : "";
@@ -1167,30 +1164,30 @@ async function Ko(i) {
1167
1164
  };
1168
1165
  }
1169
1166
  break;
1170
- case R.PieChartMixOfNegativePositiveSlices:
1167
+ case $.PieChartMixOfNegativePositiveSlices:
1171
1168
  y = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, u = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
1172
1169
  break;
1173
- case R.NegativeValueInSqrtCalculation:
1170
+ case $.NegativeValueInSqrtCalculation:
1174
1171
  y = l.modalHeaders.invalidData, u = l.errors.negativeValueInDataForSqrtTransformation;
1175
1172
  break;
1176
- case R.NegativeValueInLogCalculation:
1173
+ case $.NegativeValueInLogCalculation:
1177
1174
  y = l.modalHeaders.invalidData, u = l.errors.negativeValueInDataForLogTransformation;
1178
1175
  break;
1179
- case R.HistogramEmptyField:
1176
+ case $.HistogramEmptyField:
1180
1177
  u = l.errors.histogramEmptyField;
1181
1178
  break;
1182
- case R.EmptyDataSet:
1183
- y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : Ui(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
1179
+ case $.EmptyDataSet:
1180
+ y = l.modalHeaders.noDataAvailable, s === !0 ? u = l.errors.noDataFBSMessage : _i(r) ? u = l.errors.noDataFBEMessage : u = l.errors.noDataMessage;
1184
1181
  break;
1185
- case R.NegativeValueInXAxisLogScale:
1182
+ case $.NegativeValueInXAxisLogScale:
1186
1183
  u = l.errors.logarithmicXAxisNotPossible;
1187
1184
  break;
1188
- case R.NegativeValueInYAxisLogScale:
1185
+ case $.NegativeValueInYAxisLogScale:
1189
1186
  u = l.errors.logarithmicYAxisNotPossible;
1190
1187
  break;
1191
- case R.BadData:
1188
+ case $.BadData:
1192
1189
  }
1193
- if (u === l.errors.defaultInvalidChart && (e === R.BarElementExceedsLimit || e === R.LineChartExceedsLimit || e === R.HeatChartExceedsLimit || e === R.PieChartExceedsLimit || e === R.GaugeExceedsLimit || e === R.BoxPlotExceedsLimit) && typeof a == "number" && typeof n == "number" && a / n > g) {
1190
+ if (u === l.errors.defaultInvalidChart && (e === $.BarElementExceedsLimit || e === $.LineChartExceedsLimit || e === $.HeatChartExceedsLimit || e === $.PieChartExceedsLimit || e === $.GaugeExceedsLimit || e === $.BoxPlotExceedsLimit) && typeof a == "number" && typeof n == "number" && a / n > g) {
1194
1191
  const x = a / n;
1195
1192
  u = de(l.errors.categoryCountCannotExceedLimit, {
1196
1193
  categoryCount: f.format(x),
@@ -1198,13 +1195,13 @@ async function Ko(i) {
1198
1195
  });
1199
1196
  }
1200
1197
  return {
1201
- keyword: e ?? R.BadData,
1198
+ keyword: e ?? $.BadData,
1202
1199
  header: y,
1203
1200
  message: u,
1204
1201
  params: d
1205
1202
  };
1206
1203
  }
1207
- function Ee(i, e) {
1204
+ function Ie(i, e) {
1208
1205
  return `${e}_${i}`;
1209
1206
  }
1210
1207
  function Ct(i) {
@@ -1220,12 +1217,12 @@ function At(i) {
1220
1217
  };
1221
1218
  const l = U({
1222
1219
  ...c,
1223
- key: I.Average
1220
+ key: V.Average
1224
1221
  }), u = U({
1225
1222
  ...c,
1226
- key: I.StandardDeviation
1223
+ key: V.StandardDeviation
1227
1224
  }), d = r ?? Number(e[l]), f = s ?? Number(e[u]);
1228
- return Number.isFinite(d) && Number.isFinite(f) && Object.values(I).forEach((m) => {
1225
+ return Number.isFinite(d) && Number.isFinite(f) && Object.values(V).forEach((m) => {
1229
1226
  const g = U({
1230
1227
  key: m,
1231
1228
  y: a,
@@ -1233,8 +1230,8 @@ function At(i) {
1233
1230
  splitByValue: n
1234
1231
  }), y = e[g];
1235
1232
  if (y != null) {
1236
- let h = Number(y);
1237
- if (Number.isFinite(h)) {
1233
+ let p = Number(y);
1234
+ if (Number.isFinite(p)) {
1238
1235
  c = {
1239
1236
  ...c,
1240
1237
  key: m,
@@ -1242,7 +1239,7 @@ function At(i) {
1242
1239
  standardizeValues: !0
1243
1240
  };
1244
1241
  let x = U(c);
1245
- if (o[x] = Ct({ mean: d, stdDev: f, value: h }), m === I.Min || m === I.Max) {
1242
+ if (o[x] = Ct({ mean: d, stdDev: f, value: p }), m === V.Min || m === V.Max) {
1246
1243
  c = {
1247
1244
  ...c,
1248
1245
  key: m,
@@ -1254,10 +1251,10 @@ function At(i) {
1254
1251
  splitByValue: n
1255
1252
  };
1256
1253
  const F = U(c);
1257
- h = Number(e[F]), Number.isFinite(h) && (o[x] = Ct({
1254
+ p = Number(e[F]), Number.isFinite(p) && (o[x] = Ct({
1258
1255
  mean: d,
1259
1256
  stdDev: f,
1260
- value: h
1257
+ value: p
1261
1258
  }));
1262
1259
  }
1263
1260
  }
@@ -1271,7 +1268,7 @@ function Fn(i) {
1271
1268
  Object.keys(n).forEach((l) => {
1272
1269
  l.startsWith(o) ? c[l.replace(`${o}_`, "")] = n[l] : l.includes(b.rendererSymbolField) && (c[l] = n[l]), c[b.boxPlot.boxPlotCategory] = o, a && (c = At({
1273
1270
  dataItem: c,
1274
- chartSubType: p.BoxPlotMultiFields
1271
+ chartSubType: h.BoxPlotMultiFields
1275
1272
  }));
1276
1273
  }), r.set(o, c);
1277
1274
  }), Array.from(r.values());
@@ -1299,10 +1296,10 @@ function xn(i) {
1299
1296
  f.startsWith(`${u}_`) ? d[`${l}_${f.replace(`${u}_`, "")}`] = m : f.includes(b.rendererSymbolField) ? d[`${f}_${l}`] = m : f === b.boxPlot.boxPlotMeanLineMarkerId && (d[f] = c[f]);
1300
1297
  }), n && (d = At({
1301
1298
  dataItem: d,
1302
- chartSubType: p.BoxPlotMultiFieldsAndSplitBy,
1299
+ chartSubType: h.BoxPlotMultiFieldsAndSplitBy,
1303
1300
  splitByValue: l,
1304
- meanPerField: r?.[Ee(u, P.Average)],
1305
- stdDevPerField: r?.[Ee(u, P.StandardDeviation)]
1301
+ meanPerField: r?.[Ie(u, P.Average)],
1302
+ stdDevPerField: r?.[Ie(u, P.StandardDeviation)]
1306
1303
  })), s.set(u, {
1307
1304
  ...s.get(u) ?? {},
1308
1305
  ...d
@@ -1316,10 +1313,10 @@ function Cn(i) {
1316
1313
  t.forEach((o) => {
1317
1314
  At({
1318
1315
  dataItem: s,
1319
- chartSubType: p.BoxPlotMultiFieldsAndCategory,
1316
+ chartSubType: h.BoxPlotMultiFieldsAndCategory,
1320
1317
  y: o,
1321
- meanPerField: n?.[Ee(o, P.Average)],
1322
- stdDevPerField: n?.[Ee(o, P.StandardDeviation)]
1318
+ meanPerField: n?.[Ie(o, P.Average)],
1319
+ stdDevPerField: n?.[Ie(o, P.StandardDeviation)]
1323
1320
  });
1324
1321
  });
1325
1322
  }), r;
@@ -1344,8 +1341,8 @@ function Bn(i) {
1344
1341
  }), Array.from(n.values());
1345
1342
  }
1346
1343
  function vn(i, e) {
1347
- const { series: t } = i, a = t[0], { y: n } = a, r = V(i.series), s = {
1348
- y: r === p.BoxPlotMultiFieldsAndCategory ? n : void 0,
1344
+ const { series: t } = i, a = t[0], { y: n } = a, r = E(i.series), s = {
1345
+ y: r === h.BoxPlotMultiFieldsAndCategory ? n : void 0,
1349
1346
  chartSubType: r
1350
1347
  }, o = i.series.map((c) => {
1351
1348
  let l = ge({
@@ -1360,19 +1357,19 @@ function vn(i, e) {
1360
1357
  s.splitByValue = l;
1361
1358
  const u = U({
1362
1359
  ...s,
1363
- key: I.Min,
1360
+ key: V.Min,
1364
1361
  showOutliers: !0
1365
1362
  }), d = U({
1366
1363
  ...s,
1367
- key: I.Min,
1364
+ key: V.Min,
1368
1365
  showOutliers: !1
1369
1366
  }), f = U({
1370
1367
  ...s,
1371
- key: I.Max,
1368
+ key: V.Max,
1372
1369
  showOutliers: !0
1373
1370
  }), m = U({
1374
1371
  ...s,
1375
- key: I.Max,
1372
+ key: V.Max,
1376
1373
  showOutliers: !1
1377
1374
  });
1378
1375
  c[f] === void 0 && c[m] !== void 0 && (c[f] = c[m]), c[u] === void 0 && c[d] !== void 0 && (c[u] = c[d]);
@@ -1381,68 +1378,68 @@ function vn(i, e) {
1381
1378
  }
1382
1379
  function Nn(i, e) {
1383
1380
  let t, a;
1384
- const n = i[e[I.IQR]], r = i[e[I.FirstQuartile]], s = i[e[I.ThirdQuartile]];
1381
+ const n = i[e[V.IQR]], r = i[e[V.FirstQuartile]], s = i[e[V.ThirdQuartile]];
1385
1382
  return Number.isFinite(n) && Number.isFinite(r) && Number.isFinite(s) && (t = r - n * 1.5, a = s + n * 1.5), { outlierMinThreshold: t, outlierMaxThreshold: a };
1386
1383
  }
1387
1384
  function Wt(i) {
1388
1385
  const { yField: e, xField: t, xValue: a, splitByField: n, splitByValue: r, outlierMaxThreshold: s, outlierMinThreshold: o, target: c } = i;
1389
1386
  let l;
1390
1387
  if (t !== void 0 && a !== void 0) {
1391
- const m = typeof a != "string" ? a : `'${Vt(a)}'`;
1388
+ const m = typeof a != "string" ? a : `'${Et(a)}'`;
1392
1389
  l = `${t}=${m.toString()}`;
1393
1390
  }
1394
1391
  let u;
1395
1392
  if (n !== void 0 && r !== void 0) {
1396
- const m = typeof r != "string" ? r : `'${Vt(r)}'`;
1393
+ const m = typeof r != "string" ? r : `'${Et(r)}'`;
1397
1394
  u = `${n}=${m.toString()}`;
1398
1395
  }
1399
1396
  let d;
1400
1397
  return c === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : c === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [l, u, d].filter((m) => m !== void 0).join(" AND ");
1401
1398
  }
1402
1399
  function gi(i) {
1403
- const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n === p.BoxPlotMonoField || n === p.BoxPlotMonoFieldAndCategory || n === p.BoxPlotMonoFieldAndSplitBy || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : t, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
1400
+ const { data: e, yField: t, x: a, chartSubType: n, splitByField: r } = i, s = n === h.BoxPlotMonoField || n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : t, o = je(s), c = [], l = [], { maxOperandsPerWhereClause: u } = Ue();
1404
1401
  let d = [], f = [], m = 1;
1405
1402
  return e.forEach((g, y) => {
1406
- const { outlierMinThreshold: h, outlierMaxThreshold: x } = Nn(g, o);
1407
- if (typeof h == "number" && typeof x == "number") {
1403
+ const { outlierMinThreshold: p, outlierMaxThreshold: x } = Nn(g, o);
1404
+ if (typeof p == "number" && typeof x == "number") {
1408
1405
  const F = {
1409
1406
  yField: t,
1410
- outlierMinThreshold: h,
1407
+ outlierMinThreshold: p,
1411
1408
  outlierMaxThreshold: x
1412
1409
  };
1413
- (n === p.BoxPlotMonoFieldAndCategory || n === p.BoxPlotMultiFieldsAndCategory || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in g && (F.xField = a, F.xValue = ze({
1410
+ (n === h.BoxPlotMonoFieldAndCategory || n === h.BoxPlotMultiFieldsAndCategory || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in g && (F.xField = a, F.xValue = ze({
1414
1411
  value: g[a],
1415
1412
  dataContext: g,
1416
1413
  keepNullValues: !0,
1417
1414
  specificField: b.typeOrDomainIdValue
1418
- })), (n === p.BoxPlotMonoFieldAndSplitBy || n === p.BoxPlotMultiFieldsAndSplitBy || n === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (F.splitByField = r, F.splitByValue = g[r]), d.push(Wt({ ...F, target: "outliers" })), f.push(Wt({ ...F, target: "alternativeData" })), (m % u === 0 || y === e.length - 1) && (c.push(Q(d, "OR")), l.push(Q(f, "OR")), d = [], f = []);
1415
+ })), (n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMultiFieldsAndSplitBy || n === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (F.splitByField = r, F.splitByValue = g[r]), d.push(Wt({ ...F, target: "outliers" })), f.push(Wt({ ...F, target: "alternativeData" })), (m % u === 0 || y === e.length - 1) && (c.push(Q(d, "OR")), l.push(Q(f, "OR")), d = [], f = []);
1419
1416
  }
1420
1417
  m += 1;
1421
1418
  }), { outliersFilterBatches: c, dataWithoutOutliersFilterBatches: l };
1422
1419
  }
1423
1420
  function Tn(i) {
1424
1421
  const { data: e, outlierDataItem: t, chartSubType: a, x: n, y: r, meanAndStdDevPerField: s, splitByField: o } = i;
1425
- let c = s?.[Ee(r, P.Average)], l = s?.[Ee(r, P.StandardDeviation)];
1422
+ let c = s?.[Ie(r, P.Average)], l = s?.[Ie(r, P.StandardDeviation)];
1426
1423
  if (c === void 0 && l === void 0)
1427
1424
  switch (a) {
1428
- case p.BoxPlotMultiFields: {
1425
+ case h.BoxPlotMultiFields: {
1429
1426
  const u = je(r), d = e[0];
1430
- c = Number(d[u[I.Average]]), l = Number(d[u[I.StandardDeviation]]);
1427
+ c = Number(d[u[V.Average]]), l = Number(d[u[V.StandardDeviation]]);
1431
1428
  break;
1432
1429
  }
1433
- case p.BoxPlotMultiFieldsAndCategory: {
1430
+ case h.BoxPlotMultiFieldsAndCategory: {
1434
1431
  const u = e.find((d) => d[n] === t[n]);
1435
1432
  if (u !== void 0) {
1436
1433
  const d = je(r);
1437
- c = Number(u[d[I.Average]]), l = Number(u[d[I.StandardDeviation]]);
1434
+ c = Number(u[d[V.Average]]), l = Number(u[d[V.StandardDeviation]]);
1438
1435
  }
1439
1436
  break;
1440
1437
  }
1441
- case p.BoxPlotMultiFieldsAndSplitBy: {
1438
+ case h.BoxPlotMultiFieldsAndSplitBy: {
1442
1439
  const u = e.find((d) => d[o] === t[o]);
1443
1440
  if (u !== void 0) {
1444
1441
  const d = je(r);
1445
- c = Number(u[d[I.Average]]), l = Number(u[d[I.StandardDeviation]]);
1442
+ c = Number(u[d[V.Average]]), l = Number(u[d[V.StandardDeviation]]);
1446
1443
  }
1447
1444
  break;
1448
1445
  }
@@ -1450,9 +1447,9 @@ function Tn(i) {
1450
1447
  return { mean: c, stdDev: l };
1451
1448
  }
1452
1449
  async function An(i) {
1453
- const { seriesConfig: e, data: t, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = i, o = V(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = se(e), m = [];
1454
- for (let h = 0; h < f.length; h += 1) {
1455
- const x = f[h], { outliersFilterBatches: F } = gi({
1450
+ const { seriesConfig: e, data: t, uniqueQuery: a, queryObject: n, meanAndStdDevPerField: r, abortKey: s } = i, o = E(e), c = e[0], { x: l } = c, u = K(c.query?.where), d = z(n), f = se(e), m = [];
1451
+ for (let p = 0; p < f.length; p += 1) {
1452
+ const x = f[p], { outliersFilterBatches: F } = gi({
1456
1453
  data: t,
1457
1454
  yField: x,
1458
1455
  x: l,
@@ -1486,26 +1483,26 @@ async function An(i) {
1486
1483
  }
1487
1484
  }
1488
1485
  const g = await Promise.all(m), y = /* @__PURE__ */ new Map();
1489
- for (let h = 0; h < g.length; h += 1) {
1490
- const x = g[h], F = f[h];
1486
+ for (let p = 0; p < g.length; p += 1) {
1487
+ const x = g[p], F = f[p];
1491
1488
  x.forEach((C) => {
1492
1489
  const B = { ...C.attributes };
1493
1490
  if (B[F] !== void 0) {
1494
1491
  l === b.boxPlot.boxPlotCategory && (B[b.boxPlot.boxPlotCategory] = F);
1495
1492
  let N = {
1496
- key: I.Outlier,
1493
+ key: V.Outlier,
1497
1494
  chartSubType: o
1498
1495
  };
1499
1496
  switch (o) {
1500
- case p.BoxPlotMonoFieldAndSplitBy:
1501
- case p.BoxPlotMultiFieldsAndSplitBy:
1502
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1497
+ case h.BoxPlotMonoFieldAndSplitBy:
1498
+ case h.BoxPlotMultiFieldsAndSplitBy:
1499
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
1503
1500
  N = {
1504
1501
  ...N,
1505
1502
  splitByValue: B[u]
1506
1503
  };
1507
1504
  break;
1508
- case p.BoxPlotMultiFieldsAndCategory:
1505
+ case h.BoxPlotMultiFieldsAndCategory:
1509
1506
  N = {
1510
1507
  ...N,
1511
1508
  y: F
@@ -1514,15 +1511,15 @@ async function An(i) {
1514
1511
  }
1515
1512
  const v = U(N), T = B[F];
1516
1513
  B[v] = T;
1517
- const D = `${B[l]}-${B[u]}-${T}`, M = y.get(D);
1514
+ const w = `${B[l]}-${B[u]}-${T}`, L = y.get(w);
1518
1515
  if (B[Y.uniqueIdsName] = [
1519
- ...M?.[Y.uniqueIdsName] ?? [],
1516
+ ...L?.[Y.uniqueIdsName] ?? [],
1520
1517
  B[d.objectIdField]
1521
- ], delete B[d.objectIdField], _i(o)) {
1522
- const w = U({
1518
+ ], delete B[d.objectIdField], Yi(o)) {
1519
+ const D = U({
1523
1520
  ...N,
1524
1521
  standardizeValues: !0
1525
- }), { mean: E, stdDev: L } = Tn({
1522
+ }), { mean: R, stdDev: M } = Tn({
1526
1523
  data: t,
1527
1524
  outlierDataItem: B,
1528
1525
  chartSubType: o,
@@ -1531,13 +1528,13 @@ async function An(i) {
1531
1528
  splitByField: u,
1532
1529
  meanAndStdDevPerField: r
1533
1530
  });
1534
- E !== void 0 && L !== void 0 && (B[w] = Ct({
1531
+ R !== void 0 && M !== void 0 && (B[D] = Ct({
1535
1532
  value: T,
1536
- mean: E,
1537
- stdDev: L
1533
+ mean: R,
1534
+ stdDev: M
1538
1535
  }));
1539
1536
  }
1540
- delete B[F], B[b.boxPlot.boxPlotOutlierId] = !0, y.set(D, B);
1537
+ delete B[F], B[b.boxPlot.boxPlotOutlierId] = !0, y.set(w, B);
1541
1538
  }
1542
1539
  });
1543
1540
  }
@@ -1546,7 +1543,7 @@ async function An(i) {
1546
1543
  async function Pn(i) {
1547
1544
  const { data: e, queryObject: t, uniqueQuery: a, elementCount: n, chartConfig: r, chartLimits: s, abortKey: o } = i;
1548
1545
  let c = [];
1549
- const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = V(l), m = Me(r), { x: g } = m, y = K(m.query?.where), h = [];
1546
+ const { series: l, showMean: u } = r, d = Nt({ showMean: u, seriesConfig: l }), f = E(l), m = we(r), { x: g } = m, y = K(m.query?.where), p = [];
1550
1547
  for (let F = 0; F < d.length; F += 1) {
1551
1548
  const C = d[F], { dataWithoutOutliersFilterBatches: B } = gi({
1552
1549
  data: e,
@@ -1561,11 +1558,11 @@ async function Pn(i) {
1561
1558
  where: Q([a.where, v])
1562
1559
  };
1563
1560
  T.outStatistics !== void 0 && (T.outStatistics = T.outStatistics?.filter(
1564
- (D) => (D.statisticType === P.Minimum || D.statisticType === P.Maximum) && D.onStatisticField === C
1565
- ).map((D) => ({
1566
- ...D,
1567
- outStatisticFieldName: `${D.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
1568
- }))), h.push(
1561
+ (w) => (w.statisticType === P.Minimum || w.statisticType === P.Maximum) && w.onStatisticField === C
1562
+ ).map((w) => ({
1563
+ ...w,
1564
+ outStatisticFieldName: `${w.outStatisticFieldName}${b.boxPlot.boxPlotOutliersSuffix}`
1565
+ }))), p.push(
1569
1566
  ut({
1570
1567
  queryObject: t,
1571
1568
  uniqueQuery: T,
@@ -1579,10 +1576,10 @@ async function Pn(i) {
1579
1576
  );
1580
1577
  }
1581
1578
  }
1582
- const x = await Promise.all(h);
1579
+ const x = await Promise.all(p);
1583
1580
  for (let F = 0; F < x.length; F += 1)
1584
1581
  c.push(...x[F]);
1585
- return f !== p.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = Lt({
1582
+ return f !== h.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = Lt({
1586
1583
  data: c,
1587
1584
  x: y !== void 0 && y !== "" ? y : g
1588
1585
  })), c;
@@ -1590,8 +1587,8 @@ async function Pn(i) {
1590
1587
  async function Ln(i) {
1591
1588
  const { queryObject: e, uniqueQuery: t, chartConfig: a, abortKey: n } = i;
1592
1589
  let r;
1593
- const { series: s, showMean: o } = a, c = V(s);
1594
- if (c === p.BoxPlotMultiFieldsAndCategory || c === p.BoxPlotMultiFieldsAndSplitBy) {
1590
+ const { series: s, showMean: o } = a, c = E(s);
1591
+ if (c === h.BoxPlotMultiFieldsAndCategory || c === h.BoxPlotMultiFieldsAndSplitBy) {
1595
1592
  const l = Nt({ showMean: o, seriesConfig: s }), u = {
1596
1593
  ...t
1597
1594
  };
@@ -1634,22 +1631,22 @@ function Mn(i) {
1634
1631
  });
1635
1632
  }
1636
1633
  function yi(i) {
1637
- const { chartConfig: e, data: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, { series: r, showMean: s } = e, o = Me(e), c = V(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
1634
+ const { chartConfig: e, data: t, calculateZScore: a = !1, meanAndStdDevPerField: n } = i, { series: r, showMean: s } = e, o = we(e), c = E(e.series), { x: l } = o, u = Nt({ showMean: s, seriesConfig: r });
1638
1635
  let d = t;
1639
1636
  if ((o.type === S.LineSeries || o.type === S.BoxPlotSeries) && t?.[0] !== void 0) {
1640
1637
  const f = K(o.query?.where);
1641
1638
  switch (c) {
1642
- case p.BoxPlotMonoField:
1639
+ case h.BoxPlotMonoField:
1643
1640
  d[0][b.boxPlot.boxPlotCategory] = u[0];
1644
1641
  break;
1645
- case p.BoxPlotMultiFields:
1642
+ case h.BoxPlotMultiFields:
1646
1643
  d = Fn({
1647
1644
  data: t,
1648
1645
  yList: u,
1649
1646
  calculateZScore: a
1650
1647
  });
1651
1648
  break;
1652
- case p.BoxPlotMonoFieldAndSplitBy:
1649
+ case h.BoxPlotMonoFieldAndSplitBy:
1653
1650
  d = bn({
1654
1651
  data: t,
1655
1652
  splitByField: f,
@@ -1657,7 +1654,7 @@ function yi(i) {
1657
1654
  // there's only one `y` value for that query type
1658
1655
  });
1659
1656
  break;
1660
- case p.BoxPlotMultiFieldsAndSplitBy:
1657
+ case h.BoxPlotMultiFieldsAndSplitBy:
1661
1658
  d = xn({
1662
1659
  splitByField: f,
1663
1660
  data: t,
@@ -1666,7 +1663,7 @@ function yi(i) {
1666
1663
  calculateZScore: a
1667
1664
  });
1668
1665
  break;
1669
- case p.BoxPlotMultiFieldsAndCategory:
1666
+ case h.BoxPlotMultiFieldsAndCategory:
1670
1667
  d = Cn({
1671
1668
  data: t,
1672
1669
  yList: u,
@@ -1674,14 +1671,14 @@ function yi(i) {
1674
1671
  calculateZScore: a
1675
1672
  });
1676
1673
  break;
1677
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1674
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
1678
1675
  d = Bn({
1679
1676
  splitByField: f,
1680
1677
  x: l,
1681
1678
  data: t
1682
1679
  });
1683
1680
  break;
1684
- case p.BoxPlotMonoFieldAndCategory:
1681
+ case h.BoxPlotMonoFieldAndCategory:
1685
1682
  }
1686
1683
  }
1687
1684
  return vn(e, d), d;
@@ -1757,10 +1754,10 @@ function qn(i) {
1757
1754
  );
1758
1755
  e.groupByFieldsForStatistics = Array.from(new Set(n));
1759
1756
  }
1760
- function Vn(i) {
1757
+ function En(i) {
1761
1758
  return i.statisticType === P.ContinuousPercentile || i.statisticType === P.DiscretePercentile;
1762
1759
  }
1763
- function En(i) {
1760
+ function Vn(i) {
1764
1761
  const {
1765
1762
  uniqueQuery: e,
1766
1763
  y: t,
@@ -1772,11 +1769,11 @@ function En(i) {
1772
1769
  splitByField: c
1773
1770
  } = i, l = Y.outStatistics;
1774
1771
  if (e.outStatistics?.[0] !== void 0) {
1775
- r !== p.PieFromFields && r !== p.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
1772
+ r !== h.PieFromFields && r !== h.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = a ? l.outStatisticFieldName : [t].flat()[0]);
1776
1773
  const { outStatistics: u } = e;
1777
1774
  for (let d = 0; d < u.length; d += 1) {
1778
1775
  const f = e.outStatistics[d];
1779
- f !== void 0 && Vn(f) && (s && !Qe(n) ? (u[d].statisticType = P.Count, delete u[d].statisticParameters) : u[d] = {
1776
+ f !== void 0 && En(f) && (s && !Qe(n) ? (u[d].statisticType = P.Count, delete u[d].statisticParameters) : u[d] = {
1780
1777
  ...u[d],
1781
1778
  statisticParameters: u[d].statisticParameters ?? {
1782
1779
  value: b.defaultStatParameterValue
@@ -1798,28 +1795,28 @@ function En(i) {
1798
1795
  function In(i) {
1799
1796
  const { chartConfig: e, fetchFullBoxPlotData: t } = i, { series: a } = e, n = He(e);
1800
1797
  let r = [
1801
- { statisticType: P.Average, suffix: I.Average }
1798
+ { statisticType: P.Average, suffix: V.Average }
1802
1799
  ];
1803
1800
  t === !0 && (r = [
1804
1801
  ...r,
1805
- { statisticType: P.Minimum, suffix: I.Min },
1802
+ { statisticType: P.Minimum, suffix: V.Min },
1806
1803
  {
1807
1804
  statisticType: P.ContinuousPercentile,
1808
1805
  statisticParameters: { value: 0.25 },
1809
- suffix: I.FirstQuartile
1806
+ suffix: V.FirstQuartile
1810
1807
  },
1811
1808
  {
1812
1809
  statisticType: P.ContinuousPercentile,
1813
1810
  statisticParameters: { value: 0.5 },
1814
- suffix: I.Median
1811
+ suffix: V.Median
1815
1812
  },
1816
1813
  {
1817
1814
  statisticType: P.ContinuousPercentile,
1818
1815
  statisticParameters: { value: 0.75 },
1819
- suffix: I.ThirdQuartile
1816
+ suffix: V.ThirdQuartile
1820
1817
  },
1821
- { statisticType: P.Maximum, suffix: I.Max },
1822
- { statisticType: P.StandardDeviation, suffix: I.StandardDeviation }
1818
+ { statisticType: P.Maximum, suffix: V.Max },
1819
+ { statisticType: P.StandardDeviation, suffix: V.StandardDeviation }
1823
1820
  ]);
1824
1821
  const s = /* @__PURE__ */ new Set();
1825
1822
  return n && "y" in a[0] ? [a[0].y].flat().forEach((c) => s.add(c)) : a.forEach((c) => {
@@ -1844,8 +1841,8 @@ function $n(i, e) {
1844
1841
  function Rn(i) {
1845
1842
  const { uniqueQuery: e, x: t, splitByField: a, unit: n, chartSubType: r, objectIdField: s } = i;
1846
1843
  if (n !== void 0) {
1847
- const o = Yi(t, n);
1848
- e.orderByFields = o, e.groupByFieldsForStatistics = o, r === p.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === p.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
1844
+ const o = Ki(t, n);
1845
+ e.orderByFields = o, e.groupByFieldsForStatistics = o, r === h.BarAndLineSplitBy && !ee(a) ? e.groupByFieldsForStatistics.push(a) : r === h.BarAndLineNoAggregation && (e.groupByFieldsForStatistics.push(s), e.outStatistics = [
1849
1846
  {
1850
1847
  onStatisticField: s,
1851
1848
  outStatisticFieldName: `COUNT_${s}`,
@@ -1859,8 +1856,8 @@ function pi(i) {
1859
1856
  if (t?.chartLimits?.behaviorAfterLimit === $e.RenderUpToTheLimit) {
1860
1857
  const n = fi(e, t?.chartLimits);
1861
1858
  if (n !== void 0) {
1862
- const r = V(e.series);
1863
- if (r === p.PieFromFields || r === p.BarAndLineFromFields) {
1859
+ const r = E(e.series);
1860
+ if (r === h.PieFromFields || r === h.BarAndLineFromFields) {
1864
1861
  if (a.outStatistics?.[0] !== void 0) {
1865
1862
  const s = (l, u) => l.statisticType === P.EnvelopeAggregate === u, o = a.outStatistics.filter((l) => s(l, !0)), c = a.outStatistics.filter((l) => s(l, !1));
1866
1863
  c.splice(n), a.outStatistics = [...c, ...o];
@@ -1871,49 +1868,49 @@ function pi(i) {
1871
1868
  }
1872
1869
  }
1873
1870
  async function ct(i) {
1874
- const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = V(l), d = Me(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = ve({
1871
+ const { chartConfig: e, queryConfig: t, options: a, queryObject: n, timeIntervalInfo: r, fetchFullBoxPlotData: s } = i, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: c } = a ?? {}, l = e.series, u = E(l), d = we(e), { query: f, x: m } = d, g = "y" in d ? d.y : void 0, y = Ne({
1875
1872
  xAxisValueFormatType: pe(e),
1876
1873
  setTimeBinningInfoWhenNotProvided: o,
1877
1874
  seriesConfig: d
1878
1875
  });
1879
- let h = /* @__PURE__ */ new Map(), x = !1, F = !1, C = !1, B = !1, N = !1, v = {};
1876
+ let p = /* @__PURE__ */ new Map(), x = !1, F = !1, C = !1, B = !1, N = !1, v = {};
1880
1877
  if (f !== void 0) {
1881
- v = Ie(f);
1878
+ v = Ce(f);
1882
1879
  const O = K(f.where);
1883
1880
  let H = "";
1884
1881
  switch (t.fetchNullValues !== !0 && (m !== b.boxPlot.boxPlotCategory && (H = `${m} IS NOT NULL`), O.trim() !== "" && O !== m && !Tt(f.where) && (H = Q([H, `${O} IS NOT NULL`]))), u) {
1885
- case p.BarAndLineSplitBy: {
1886
- h = On(l), B = !0, x = !0, F = !0;
1882
+ case h.BarAndLineSplitBy: {
1883
+ p = On(l), B = !0, x = !0, F = !0;
1887
1884
  break;
1888
1885
  }
1889
- case p.BarAndLineMultiFields:
1886
+ case h.BarAndLineMultiFields:
1890
1887
  $n(v, l), F = !0;
1891
1888
  break;
1892
- case p.PieFromFields:
1893
- case p.BarAndLineFromFields:
1889
+ case h.PieFromFields:
1890
+ case h.BarAndLineFromFields:
1894
1891
  H = "", C = !0, F = !0;
1895
1892
  break;
1896
- case p.BarAndLineMonoField:
1897
- case p.PieFromCategory:
1893
+ case h.BarAndLineMonoField:
1894
+ case h.PieFromCategory:
1898
1895
  F = !0;
1899
1896
  break;
1900
- case p.BoxPlotMonoField:
1901
- case p.BoxPlotMultiFields:
1897
+ case h.BoxPlotMonoField:
1898
+ case h.BoxPlotMultiFields:
1902
1899
  C = !0, N = !0;
1903
1900
  break;
1904
- case p.BoxPlotMonoFieldAndCategory:
1905
- case p.BoxPlotMultiFieldsAndCategory:
1906
- case p.BoxPlotMonoFieldAndSplitBy:
1907
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
1908
- case p.BoxPlotMultiFieldsAndSplitBy: {
1901
+ case h.BoxPlotMonoFieldAndCategory:
1902
+ case h.BoxPlotMultiFieldsAndCategory:
1903
+ case h.BoxPlotMonoFieldAndSplitBy:
1904
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
1905
+ case h.BoxPlotMultiFieldsAndSplitBy: {
1909
1906
  N = !0, B = !0, C = !0;
1910
1907
  break;
1911
1908
  }
1912
- case p.PieNoAggregation:
1913
- case p.BarAndLineNoAggregation:
1914
- case p.BarAndLineSplitByNoAggregation:
1909
+ case h.PieNoAggregation:
1910
+ case h.BarAndLineNoAggregation:
1911
+ case h.BarAndLineSplitByNoAggregation:
1915
1912
  }
1916
- if (F && En({
1913
+ if (F && Vn({
1917
1914
  uniqueQuery: v,
1918
1915
  y: g,
1919
1916
  useGenericOutStatFieldName: x,
@@ -1923,24 +1920,24 @@ async function ct(i) {
1923
1920
  returnFeaturesExtent: c,
1924
1921
  splitByField: O
1925
1922
  }), B && qn({ uniqueQuery: v, splitByField: O, x: m }), N && (v.outStatistics = In({ chartConfig: e, fetchFullBoxPlotData: s })), C ? delete v.orderByFields : t.orderByFields !== void 0 && (v.orderByFields = t.orderByFields.filter((X) => {
1926
- const $ = X.split(" ");
1927
- return !ee($[0]);
1923
+ const I = X.split(" ");
1924
+ return !ee(I[0]);
1928
1925
  })), y && oe(l[0])) {
1929
- const X = z(n), { objectIdField: $ } = X;
1930
- (await Ne(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && Rn({
1926
+ const X = z(n), { objectIdField: I } = X;
1927
+ (await Te(n)).find((te) => te.name === m)?.type !== Ye.DateOnly && Rn({
1931
1928
  uniqueQuery: v,
1932
1929
  x: m,
1933
1930
  splitByField: K(f.where),
1934
1931
  unit: r?.unit ?? l[0].temporalBinning?.unit,
1935
1932
  chartSubType: u,
1936
- objectIdField: $
1933
+ objectIdField: I
1937
1934
  });
1938
1935
  }
1939
1936
  v.where = H;
1940
1937
  }
1941
1938
  pi({ chartConfig: e, options: a, uniqueQuery: v });
1942
- const { gdbVersion: T, geometry: D, distance: M, units: w, timeExtent: E, where: L, objectIds: q, spatialRelationship: A } = t;
1943
- return T !== void 0 && (v.gdbVersion = T), D !== void 0 && (v.geometry = D), M !== void 0 && (v.distance = M), w !== void 0 && (v.units = w), E !== void 0 && (v.timeExtent = E), q !== void 0 && (v.objectIds = q), A !== void 0 && (v.spatialRelationship = A), L !== void 0 && (v.where = Q([v.where, L])), { uniqueQuery: v, mapToStatField: h };
1939
+ const { gdbVersion: T, geometry: w, distance: L, units: D, timeExtent: R, where: M, objectIds: q, spatialRelationship: A } = t;
1940
+ return T !== void 0 && (v.gdbVersion = T), w !== void 0 && (v.geometry = w), L !== void 0 && (v.distance = L), D !== void 0 && (v.units = D), R !== void 0 && (v.timeExtent = R), q !== void 0 && (v.objectIds = q), A !== void 0 && (v.spatialRelationship = A), M !== void 0 && (v.where = Q([v.where, M])), { uniqueQuery: v, mapToStatField: p };
1944
1941
  }
1945
1942
  async function kn(i) {
1946
1943
  const { queryObject: e, queryConfig: t, chartConfig: a, abortKey: n } = i, r = a.series[0], { x: s, valueConversion: o } = r, c = Xt(a), l = await ye({
@@ -2040,7 +2037,7 @@ function Wn(i = _.None, e) {
2040
2037
  }
2041
2038
  function hi(i, e) {
2042
2039
  const t = { valid: !1 };
2043
- return e === !0 ? t.invalidType = R.HistogramEmptyField : i === _.Log ? t.invalidType = R.NegativeValueInLogCalculation : i === _.Sqrt && (t.invalidType = R.NegativeValueInSqrtCalculation), t;
2040
+ return e === !0 ? t.invalidType = $.HistogramEmptyField : i === _.Log ? t.invalidType = $.NegativeValueInLogCalculation : i === _.Sqrt && (t.invalidType = $.NegativeValueInSqrtCalculation), t;
2044
2041
  }
2045
2042
  function Qn(i, e) {
2046
2043
  let t = i;
@@ -2105,8 +2102,8 @@ async function zn(i) {
2105
2102
  queryObject: e,
2106
2103
  queryConfig: d,
2107
2104
  abortKey: n
2108
- }), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, h = f.get(u) ?? Number.NaN;
2109
- return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: h };
2105
+ }), m = f.get(o) ?? Number.NaN, g = f.get(c) ?? Number.NaN, y = f.get(l) ?? Number.NaN, p = f.get(u) ?? Number.NaN;
2106
+ return { countExcludingNulls: g, countIncludingNulls: m, min: y, max: p };
2110
2107
  }
2111
2108
  async function Gn(i) {
2112
2109
  const { queryConfig: e, chartConfig: t, queryObject: a, abortKey: n } = i, r = t.series[0], { x: s, dataTransformationType: o } = r;
@@ -2152,7 +2149,7 @@ function Yn(i) {
2152
2149
  field: c,
2153
2150
  minValue: r,
2154
2151
  maxValue: s,
2155
- numBins: l ?? Xi,
2152
+ numBins: l ?? Zi,
2156
2153
  classificationMethod: "equal-interval",
2157
2154
  // excluding the filters like 1=tionMethod: "equal-interval",1 from the sqlWhere. It's causing query failures (see https://devtopia.esri.com/WebGIS/arcgis-charts/issues/6677)
2158
2155
  sqlWhere: Tt(o.where) ? void 0 : o.where,
@@ -2179,46 +2176,46 @@ async function Jn(i) {
2179
2176
  } = i, c = e.series[0], { dataTransformationType: l } = c;
2180
2177
  let u = { valid: !0 };
2181
2178
  if (a !== void 0) {
2182
- const d = z(a), m = Ki(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
2179
+ const d = z(a), m = Ji(t?.geometry)?.extent?.toJSON() !== void 0, g = s?.view, y = _n({
2183
2180
  seriesConfig: c,
2184
2181
  layer: d,
2185
2182
  view: g,
2186
2183
  useFeaturesInView: m,
2187
2184
  queryConfig: t
2188
2185
  });
2189
- let h;
2190
- if (g !== void 0 && (h = new $t({
2186
+ let p;
2187
+ if (g !== void 0 && (p = new $t({
2191
2188
  geometry: g.extent
2192
- }), g.extent !== void 0 && Ji(d))) {
2193
- const { distance: M, units: w } = t;
2194
- M !== void 0 && (h.distance = M), w !== void 0 && (h.units = w);
2189
+ }), g.extent !== void 0 && Xi(d))) {
2190
+ const { distance: L, units: D } = t;
2191
+ L !== void 0 && (p.distance = L), D !== void 0 && (p.units = D);
2195
2192
  }
2196
2193
  if (t.timeExtent) {
2197
- const M = { start: t.timeExtent[0], end: t.timeExtent[1] };
2198
- h === void 0 ? h = new $t({ timeExtent: M }) : h.timeExtent = M;
2194
+ const L = { start: t.timeExtent[0], end: t.timeExtent[1] };
2195
+ p === void 0 ? p = new $t({ timeExtent: L }) : p.timeExtent = L;
2199
2196
  }
2200
- y.filter = h;
2197
+ y.filter = p;
2201
2198
  let x;
2202
2199
  y.outStatisticTypes = { exclude: ["median"] };
2203
2200
  try {
2204
2201
  x = await Rt(y);
2205
- } catch (M) {
2206
- throw new pt(Et.QueryFeaturesError, o.errors.queryError, M);
2202
+ } catch (L) {
2203
+ throw new pt(Vt.QueryFeaturesError, o.errors.queryError, L);
2207
2204
  }
2208
2205
  y.outStatisticTypes = { include: ["median"] };
2209
2206
  try {
2210
- const M = await Rt(y);
2211
- M?.median && (x.median = M.median);
2207
+ const L = await Rt(y);
2208
+ L?.median && (x.median = L.median);
2212
2209
  } catch {
2213
2210
  }
2214
2211
  x = Un(x);
2215
- const { avg: F, count: C, stddev: B, min: N, max: v, sum: T, median: D } = x;
2212
+ const { avg: F, count: C, stddev: B, min: N, max: v, sum: T, median: w } = x;
2216
2213
  if (C === 0)
2217
2214
  u = {
2218
2215
  ...hi(l)
2219
2216
  };
2220
2217
  else {
2221
- const M = Yn({
2218
+ const L = Yn({
2222
2219
  seriesConfig: c,
2223
2220
  layer: d,
2224
2221
  view: g,
@@ -2228,23 +2225,23 @@ async function Jn(i) {
2228
2225
  valueExpression: y.valueExpression,
2229
2226
  queryConfig: t
2230
2227
  });
2231
- M.filter = h;
2232
- let w;
2228
+ L.filter = p;
2229
+ let D;
2233
2230
  try {
2234
- w = await Ba(M);
2235
- } catch (L) {
2236
- throw new pt(Et.QueryFeaturesError, o.errors.queryError, L);
2231
+ D = await va(L);
2232
+ } catch (M) {
2233
+ throw new pt(Vt.QueryFeaturesError, o.errors.queryError, M);
2237
2234
  }
2238
- const E = Kn(r, n);
2235
+ const R = Kn(r, n);
2239
2236
  u.data = {
2240
2237
  mean: F,
2241
2238
  stddev: B,
2242
2239
  min: N,
2243
2240
  max: v,
2244
- median: Number(D),
2245
- bins: w?.bins,
2241
+ median: Number(w),
2242
+ bins: D?.bins,
2246
2243
  count: n,
2247
- nulls: E,
2244
+ nulls: R,
2248
2245
  sum: T ?? void 0
2249
2246
  }, u.data.bins.length > 0 && (u.data.bins[u.data.bins.length - 1].isLastBin = !0);
2250
2247
  }
@@ -2285,7 +2282,7 @@ async function Xn(i) {
2285
2282
  })) }
2286
2283
  };
2287
2284
  }
2288
- const Le = {
2285
+ const Me = {
2289
2286
  groupByCaseBegin: "CASE",
2290
2287
  groupByOutKeyword: "OUT",
2291
2288
  groupByCaseEnd: "ELSE 'OUT' END"
@@ -2323,21 +2320,21 @@ async function tr(i) {
2323
2320
  dataContextCountDistinctX: d,
2324
2321
  dataContextCountDistinctY: f
2325
2322
  } = b.scatterplotAggregationFields;
2326
- let m, g, y, h, x;
2323
+ let m, g, y, p, x;
2327
2324
  const F = e.get(o), C = e.get(c), B = e.get(l), N = e.get(u);
2328
2325
  if (F != null && B !== void 0 && B !== null && C !== void 0 && C !== null && N !== void 0 && N !== null && !Number.isNaN(F + C + B + N)) {
2329
- const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), D = Math.floor(Math.sqrt(v)), M = await er({
2326
+ const { maxScatterPointsAfterAggregation: v } = Re(n?.chartLimits), w = Math.floor(Math.sqrt(v)), L = await er({
2330
2327
  queryObject: a,
2331
2328
  chartConfig: t,
2332
2329
  queryConfig: r,
2333
2330
  abortKey: s
2334
2331
  });
2335
- y = Math.min(M.get(f) ?? Number.NaN, D), h = Math.min(M.get(d) ?? Number.NaN, D), x = h * y, m = C === F ? 0 : (C - F) / (h - 1), g = N === B ? 0 : (N - B) / (y - 1), e.set(b.scatterplotAggregationFields.xStep, m), e.set(b.scatterplotAggregationFields.yStep, g), e.set(b.scatterplotAggregationFields.rowCount, y), e.set(b.scatterplotAggregationFields.columnCount, h), e.set(b.scatterplotAggregationFields.realGridSize, x);
2332
+ y = Math.min(L.get(f) ?? Number.NaN, w), p = Math.min(L.get(d) ?? Number.NaN, w), x = p * y, m = C === F ? 0 : (C - F) / (p - 1), g = N === B ? 0 : (N - B) / (y - 1), e.set(b.scatterplotAggregationFields.xStep, m), e.set(b.scatterplotAggregationFields.yStep, g), e.set(b.scatterplotAggregationFields.rowCount, y), e.set(b.scatterplotAggregationFields.columnCount, p), e.set(b.scatterplotAggregationFields.realGridSize, x);
2336
2333
  }
2337
2334
  }
2338
2335
  function ir(i) {
2339
2336
  const { groupByFieldsForStatistics: e, x: t, y: a, xValue: n, yValue: r, xStep: s, yStep: o, endOfRow: c, endOfColumn: l } = i;
2340
- let u = e === "" ? Le.groupByCaseBegin : e;
2337
+ let u = e === "" ? Me.groupByCaseBegin : e;
2341
2338
  return u = de(Zn, {
2342
2339
  groupByFieldsForStatistics: u,
2343
2340
  x: t,
@@ -2374,33 +2371,33 @@ async function nr(i) {
2374
2371
  dataContextYMinField: m,
2375
2372
  dataContextYMaxField: g,
2376
2373
  queryNumberOfFeatures: y,
2377
- queryNumberOfAggregatedFeatures: h
2374
+ queryNumberOfAggregatedFeatures: p
2378
2375
  } = b.scatterplotAggregationFields;
2379
2376
  let x;
2380
2377
  const F = e?.get(d) ?? Number.NaN, C = e?.get(f) ?? Number.NaN, B = e?.get(y) ?? Number.NaN, N = e?.get(m) ?? F, v = e?.get(g) ?? C;
2381
2378
  if (F != null && N !== void 0 && N !== null && C !== void 0 && C !== null && v !== void 0 && v !== null && !Number.isNaN(F + C + N + v)) {
2382
- const T = z(a), { objectIdField: D } = T, M = e?.get(b.scatterplotAggregationFields.xStep), w = e?.get(b.scatterplotAggregationFields.yStep), E = e?.get(b.scatterplotAggregationFields.realGridSize), L = e?.get(b.scatterplotAggregationFields.rowCount), q = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), O = await Ne(a);
2383
- if (O?.forEach(($) => {
2384
- We($) && A.set($.name, {
2385
- onStatisticField: $.name,
2386
- outStatisticFieldName: $.name,
2379
+ const T = z(a), { objectIdField: w } = T, L = e?.get(b.scatterplotAggregationFields.xStep), D = e?.get(b.scatterplotAggregationFields.yStep), R = e?.get(b.scatterplotAggregationFields.realGridSize), M = e?.get(b.scatterplotAggregationFields.rowCount), q = e?.get(b.scatterplotAggregationFields.columnCount), A = /* @__PURE__ */ new Map(), O = await Te(a);
2380
+ if (O?.forEach((I) => {
2381
+ We(I) && A.set(I.name, {
2382
+ onStatisticField: I.name,
2383
+ outStatisticFieldName: I.name,
2387
2384
  statisticType: P.Maximum
2388
2385
  });
2389
- }), (O.filter(($) => c?.additionalTooltipFields?.includes($.name)) ?? [])?.forEach(($) => {
2390
- We($) || A.set($.name, {
2391
- onStatisticField: $.name,
2392
- outStatisticFieldName: $.name,
2386
+ }), (O.filter((I) => c?.additionalTooltipFields?.includes(I.name)) ?? [])?.forEach((I) => {
2387
+ We(I) || A.set(I.name, {
2388
+ onStatisticField: I.name,
2389
+ outStatisticFieldName: I.name,
2393
2390
  statisticType: P.Maximum
2394
2391
  });
2395
- }), (await Zt(T)).forEach(($) => {
2396
- A.set($, {
2397
- onStatisticField: $,
2398
- outStatisticFieldName: $,
2392
+ }), (await Zt(T)).forEach((I) => {
2393
+ A.set(I, {
2394
+ onStatisticField: I,
2395
+ outStatisticFieldName: I,
2399
2396
  statisticType: P.Maximum
2400
2397
  });
2401
- }), A.set(D, {
2402
- onStatisticField: D,
2403
- outStatisticFieldName: h,
2398
+ }), A.set(w, {
2399
+ onStatisticField: w,
2400
+ outStatisticFieldName: p,
2404
2401
  statisticType: P.Count
2405
2402
  }).set(l, {
2406
2403
  onStatisticField: l,
@@ -2410,50 +2407,50 @@ async function nr(i) {
2410
2407
  onStatisticField: u,
2411
2408
  outStatisticFieldName: u,
2412
2409
  statisticType: P.Maximum
2413
- }), M !== void 0 && w !== void 0) {
2410
+ }), L !== void 0 && D !== void 0) {
2414
2411
  if (r) {
2415
- const $ = {
2412
+ const I = {
2416
2413
  ...n,
2417
2414
  outStatistics: [...A.values()]
2418
2415
  };
2419
- x = await Zi({
2416
+ x = await ea({
2420
2417
  queryObject: a,
2421
- queryConfig: $,
2422
- xStep: M,
2418
+ queryConfig: I,
2419
+ xStep: L,
2423
2420
  xMin: F,
2424
2421
  xMax: C,
2425
2422
  x: l,
2426
2423
  y: u,
2427
- yStep: w,
2424
+ yStep: D,
2428
2425
  errorStrings: s
2429
2426
  });
2430
- } else if (L !== void 0 && q !== void 0) {
2431
- let $ = 0;
2432
- const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), we = await ea(T) ? ue : Z, Dt = [];
2433
- let dt = !0, De = F, Te = N, Oe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
2427
+ } else if (M !== void 0 && q !== void 0) {
2428
+ let I = 0;
2429
+ const { maxScatterCellsPerQuery: Z, maxScatterCellsPerQueryForStandard: ue } = Ue(), De = await ta(T) ? ue : Z, Dt = [];
2430
+ let dt = !0, Oe = F, Ae = N, qe = "", Je = 1, ft = 1, Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER;
2434
2431
  for (; ft <= q && dt; ) {
2435
- for (Te = N, Je = 1; Je <= L && dt; ) {
2436
- if (Oe = ir({
2437
- groupByFieldsForStatistics: Oe,
2432
+ for (Ae = N, Je = 1; Je <= M && dt; ) {
2433
+ if (qe = ir({
2434
+ groupByFieldsForStatistics: qe,
2438
2435
  x: l,
2439
2436
  y: u,
2440
- xValue: De,
2441
- yValue: Te,
2442
- xStep: M,
2443
- yStep: w,
2444
- endOfRow: Je === L,
2437
+ xValue: Oe,
2438
+ yValue: Ae,
2439
+ xStep: L,
2440
+ yStep: D,
2441
+ endOfRow: Je === M,
2445
2442
  endOfColumn: ft === q
2446
- }), De < Xe && (Xe = De), De + M > Ze && (Ze = De + M), Te < et && (et = Te), Te + M > tt && (tt = Te + w), $ += 1, $ % we === 0 || $ === E || $ === B) {
2447
- Oe = `${Oe} ${Le.groupByCaseEnd}`;
2448
- const Ei = {
2443
+ }), Oe < Xe && (Xe = Oe), Oe + L > Ze && (Ze = Oe + L), Ae < et && (et = Ae), Ae + L > tt && (tt = Ae + D), I += 1, I % De === 0 || I === R || I === B) {
2444
+ qe = `${qe} ${Me.groupByCaseEnd}`;
2445
+ const Vi = {
2449
2446
  ...n,
2450
- groupByFieldsForStatistics: [Oe],
2447
+ groupByFieldsForStatistics: [qe],
2451
2448
  outStatistics: [...A.values()]
2452
2449
  };
2453
2450
  Dt.push(
2454
2451
  ar({
2455
2452
  chartConfig: t,
2456
- queryConfig: Ei,
2453
+ queryConfig: Vi,
2457
2454
  queryObject: a,
2458
2455
  xMin: Xe,
2459
2456
  xMax: Ze,
@@ -2461,11 +2458,11 @@ async function nr(i) {
2461
2458
  yMax: tt,
2462
2459
  abortKey: o
2463
2460
  })
2464
- ), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, Oe = "", $ === E && (dt = !1);
2461
+ ), Xe = Number.MAX_SAFE_INTEGER, Ze = Number.MIN_SAFE_INTEGER, et = Number.MAX_SAFE_INTEGER, tt = Number.MIN_SAFE_INTEGER, qe = "", I === R && (dt = !1);
2465
2462
  }
2466
- Te += w, Je += 1;
2463
+ Ae += D, Je += 1;
2467
2464
  }
2468
- De += M, ft += 1;
2465
+ Oe += L, ft += 1;
2469
2466
  }
2470
2467
  x = (await Promise.all(Dt)).flat();
2471
2468
  }
@@ -2486,11 +2483,11 @@ const rr = {
2486
2483
  async function sr(i) {
2487
2484
  const { queryObject: e } = i;
2488
2485
  let t = !1;
2489
- const a = ta(e), n = z(e), r = ei(n);
2486
+ const a = ia(e), n = z(e), r = ei(n);
2490
2487
  if (a && r.url !== void 0 && r.url !== null) {
2491
2488
  const s = `${r.url}/${r.layerId}?f=json`;
2492
2489
  try {
2493
- const o = (await Sa(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
2490
+ const o = (await Fa(s)).data, c = o?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, l = o?.sqlParserVersion === void 0 || r.version != null && r.version >= 10.91;
2494
2491
  t = c && l;
2495
2492
  } catch {
2496
2493
  }
@@ -2522,9 +2519,9 @@ async function cr(i) {
2522
2519
  typeValue: m,
2523
2520
  fieldValue: g,
2524
2521
  slopePropertyList: y,
2525
- interceptPropertyList: h,
2522
+ interceptPropertyList: p,
2526
2523
  r2PropertyList: x
2527
- } = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await ia({
2524
+ } = rr, F = `[{"${f}": "${m}", "${g}":"${s},${o}"}]`, C = await aa({
2528
2525
  queryObject: t,
2529
2526
  queryConfig: n,
2530
2527
  outputFormat: d,
@@ -2533,18 +2530,18 @@ async function cr(i) {
2533
2530
  });
2534
2531
  if (C !== void 0) {
2535
2532
  let B = Number.NaN, N = Number.NaN;
2536
- const { expr: v } = mt(C, y), { expr: T } = mt(C, h), { expr: D } = mt(C, x);
2537
- v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), T !== void 0 && Number.isFinite(C[T]) && (N = C[T]), D !== void 0 && Number.isFinite(C[D]) && (c = C[D]);
2538
- const { dataContextXMinField: M, dataContextXMaxField: w, dataContextYMinField: E, dataContextYMaxField: L } = b.scatterplotAggregationFields, q = e.get(M) ?? Number.NaN, A = e.get(w) ?? Number.NaN, O = e.get(E) ?? Number.NaN, H = e.get(L) ?? Number.NaN, $ = (A - q) / 100;
2539
- let Z = q - $, ue = Number.NaN;
2533
+ const { expr: v } = mt(C, y), { expr: T } = mt(C, p), { expr: w } = mt(C, x);
2534
+ v !== void 0 && Number.isFinite(C[v]) && (B = C[v]), T !== void 0 && Number.isFinite(C[T]) && (N = C[T]), w !== void 0 && Number.isFinite(C[w]) && (c = C[w]);
2535
+ const { dataContextXMinField: L, dataContextXMaxField: D, dataContextYMinField: R, dataContextYMaxField: M } = b.scatterplotAggregationFields, q = e.get(L) ?? Number.NaN, A = e.get(D) ?? Number.NaN, O = e.get(R) ?? Number.NaN, H = e.get(M) ?? Number.NaN, I = (A - q) / 100;
2536
+ let Z = q - I, ue = Number.NaN;
2540
2537
  for (; !(ue >= O && ue <= H) && Z <= A; )
2541
- Z += $, ue = B * Z + N;
2542
- let te = A + $, we = Number.NaN;
2543
- for (; !(we >= O && we <= H) && te >= q; )
2544
- te -= $, we = B * te + N;
2538
+ Z += I, ue = B * Z + N;
2539
+ let te = A + I, De = Number.NaN;
2540
+ for (; !(De >= O && De <= H) && te >= q; )
2541
+ te -= I, De = B * te + N;
2545
2542
  l = [
2546
2543
  { [s]: Z, [o]: ue },
2547
- { [s]: te, [o]: we }
2544
+ { [s]: te, [o]: De }
2548
2545
  ];
2549
2546
  }
2550
2547
  return { r2: c, trendLinePoints: l };
@@ -2554,8 +2551,8 @@ function bi(i) {
2554
2551
  let { r2: s, trendLinePoints: o } = b.scatterplotSeries;
2555
2552
  const c = lr({ data: e, x: n, y: r });
2556
2553
  if (c !== void 0) {
2557
- const l = va(c), u = Na(l);
2558
- s = Ta(c, u), o = or({ x: n, y: r, trendlineXToY: u, data: e });
2554
+ const l = Na(c), u = Ta(l);
2555
+ s = Aa(c, u), o = or({ x: n, y: r, trendlineXToY: u, data: e });
2559
2556
  }
2560
2557
  return { r2: s, trendLinePoints: o };
2561
2558
  }
@@ -2611,10 +2608,10 @@ async function dr(i) {
2611
2608
  onStatisticField: o
2612
2609
  }
2613
2610
  );
2614
- const h = { ...t };
2615
- return h.outStatistics = y, c = await _e({
2611
+ const p = { ...t };
2612
+ return p.outStatistics = y, c = await _e({
2616
2613
  queryObject: a,
2617
- queryConfig: h,
2614
+ queryConfig: p,
2618
2615
  abortKey: n
2619
2616
  }), s === o && (c.set(d, c.get(l) ?? Number.NaN), c.set(f, c.get(u) ?? Number.NaN)), c;
2620
2617
  }
@@ -2623,34 +2620,34 @@ function at(i) {
2623
2620
  return e === t || e === a ? e : Math.random() * (a - t) + t;
2624
2621
  }
2625
2622
  function fr(i) {
2626
- const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } = Le, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2623
+ const { useQueryAttributeBins: e, graphic: t, x: a, y: n, yStep: r } = i, { groupByOutKeyword: s } = Me, { dataContextXMinField: o, dataContextXMaxField: c, dataContextYMinField: l, dataContextYMaxField: u } = b.scatterplotAggregationFields;
2627
2624
  let d = [];
2628
2625
  if (e && "stackedAttributes" in t && t.stackedAttributes) {
2629
- const f = ra(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
2626
+ const f = sa(a, n), m = t.attributes[f.lowerBoundaryAlias], g = t.attributes[f.upperBoundaryAlias];
2630
2627
  t.stackedAttributes.forEach((y) => {
2631
- let h = y[f.stackAlias], x;
2632
- typeof h == "number" && typeof r == "number" && (h *= r), typeof h == "number" && typeof r == "number" && (x = h + r);
2628
+ let p = y[f.stackAlias], x;
2629
+ typeof p == "number" && typeof r == "number" && (p *= r), typeof p == "number" && typeof r == "number" && (x = p + r);
2633
2630
  const F = y[a], C = y[n];
2634
- typeof h == "number" && typeof x == "number" && typeof F == "number" && typeof C == "number" && d.push({
2631
+ typeof p == "number" && typeof x == "number" && typeof F == "number" && typeof C == "number" && d.push({
2635
2632
  ...y,
2636
2633
  [a]: at({ value: F, valueMin: m, valueMax: g }),
2637
- [n]: at({ value: C, valueMin: h, valueMax: x }),
2634
+ [n]: at({ value: C, valueMin: p, valueMax: x }),
2638
2635
  [o]: Math.min(m, g),
2639
2636
  [c]: Math.max(m, g),
2640
- [l]: h,
2637
+ [l]: p,
2641
2638
  [u]: x
2642
2639
  });
2643
2640
  });
2644
2641
  } else {
2645
2642
  const { expr: f, isInItem: m } = lt(t.attributes);
2646
2643
  if (m && f && t.attributes[f] !== s) {
2647
- let [g, y, h, x] = t.attributes[f].split("|");
2648
- g = Math.min(g, y), y = Math.max(g, y), h = Math.min(h, x), x = Math.max(h, x);
2644
+ let [g, y, p, x] = t.attributes[f].split("|");
2645
+ g = Math.min(g, y), y = Math.max(g, y), p = Math.min(p, x), x = Math.max(p, x);
2649
2646
  const F = {
2650
2647
  ...t.attributes,
2651
2648
  [o]: g,
2652
2649
  [c]: y,
2653
- [l]: h,
2650
+ [l]: p,
2654
2651
  [u]: x
2655
2652
  };
2656
2653
  F[a] = at({
@@ -2659,7 +2656,7 @@ function fr(i) {
2659
2656
  valueMax: y
2660
2657
  }), F[n] = at({
2661
2658
  value: F[n],
2662
- valueMin: h,
2659
+ valueMin: p,
2663
2660
  valueMax: x
2664
2661
  }), d = [F];
2665
2662
  }
@@ -2680,20 +2677,20 @@ async function mr(i) {
2680
2677
  });
2681
2678
  return m = m?.filter((g) => {
2682
2679
  const { expr: y } = lt(g);
2683
- return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Le.groupByOutKeyword);
2680
+ return Number.isFinite(g[c]) && Number.isFinite(g[l]) && (y === void 0 || g[y] !== Me.groupByOutKeyword);
2684
2681
  }), m ?? [];
2685
2682
  }
2686
2683
  async function gr(i) {
2687
2684
  const { queryObject: e, queryConfig: t, chartConfig: a, featureCount: n, abortKey: r } = i, s = a.series[0], { x: o, y: c } = s, l = z(e);
2688
2685
  let u = [];
2689
- const f = ((await Ne(e))?.filter((h) => We(h) && h.name !== o && h.name !== c) ?? []).map(
2690
- (h) => h.name
2686
+ const f = ((await Te(e))?.filter((p) => We(p) && p.name !== o && p.name !== c) ?? []).map(
2687
+ (p) => p.name
2691
2688
  ) ?? [], m = s?.additionalTooltipFields ?? [], g = Array.from(
2692
2689
  /* @__PURE__ */ new Set([o, c, l.objectIdField, ...f, ...m])
2693
2690
  );
2694
2691
  if (!ei(l).isTable) {
2695
- const { rendererField: h, rendererNormalizationField: x } = na(l?.renderer ?? void 0);
2696
- ee(h) || g.push(h), ee(x) || g.push(x);
2692
+ const { rendererField: p, rendererNormalizationField: x } = ra(l?.renderer ?? void 0);
2693
+ ee(p) || g.push(p), ee(x) || g.push(x);
2697
2694
  }
2698
2695
  const y = {
2699
2696
  ...t,
@@ -2746,7 +2743,7 @@ async function xi(i) {
2746
2743
  queryConfig: t,
2747
2744
  queryObject: a,
2748
2745
  abortKey: o
2749
- }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = aa(a);
2746
+ }), { queryNumberOfFeatures: l, yStep: u } = b.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: d } = Re(s?.chartLimits), f = c?.get(l) ?? Number.NaN, m = f >= d, g = na(a);
2750
2747
  m && await tr({
2751
2748
  statsMap: c,
2752
2749
  chartConfig: e,
@@ -2761,7 +2758,7 @@ async function xi(i) {
2761
2758
  numberOfFeatures: f,
2762
2759
  isAggregationMode: m,
2763
2760
  useQueryAttributeBins: g
2764
- }), h = await mr({
2761
+ }), p = await mr({
2765
2762
  queryObject: a,
2766
2763
  chartConfig: e,
2767
2764
  rawData: y,
@@ -2770,27 +2767,27 @@ async function xi(i) {
2770
2767
  useQueryAttributeBins: g
2771
2768
  });
2772
2769
  n !== !1 && Ge({
2773
- arrayToSort: h,
2770
+ arrayToSort: p,
2774
2771
  sortingField: e.series[0].x,
2775
2772
  orderBy: me.Ascending
2776
2773
  });
2777
2774
  const { r2: x, trendLinePoints: F } = r !== !1 ? await ur({
2778
- data: h,
2775
+ data: p,
2779
2776
  statsMap: c,
2780
2777
  queryConfig: t,
2781
2778
  options: s,
2782
2779
  queryObject: a,
2783
2780
  chartConfig: e
2784
2781
  }) : b.scatterplotSeries;
2785
- return { dataItems: h, r2: x, trendLinePoints: F, aggregated: m };
2782
+ return { dataItems: p, r2: x, trendLinePoints: F, aggregated: m };
2786
2783
  }
2787
2784
  function pr(i) {
2788
- const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i;
2789
- let o = !1;
2790
- if (e === void 0 && t !== void 0 || e !== void 0 && t === void 0)
2791
- o = !0;
2785
+ const { itemsA: e, itemsB: t, isPieFromFields: a, x: n, y: r, outStatisticFieldName: s } = i, o = Ce(e), c = Ce(t);
2786
+ let l = !1;
2787
+ if (o === void 0 && c !== void 0 || o !== void 0 && c === void 0)
2788
+ l = !0;
2792
2789
  else if (!a) {
2793
- const c = [
2790
+ const u = [
2794
2791
  b.originalCategoryValue,
2795
2792
  b.originalDateValue,
2796
2793
  b.xAxisField,
@@ -2806,32 +2803,32 @@ function pr(i) {
2806
2803
  b.technicalFieldSplitByField,
2807
2804
  Y.uniqueIdsName,
2808
2805
  k.valueField,
2809
- ...sa
2810
- ], l = (m, g) => {
2811
- const y = g[b.typeOrDomainFieldName];
2812
- typeof y == "string" && g[y] !== void 0 && (g[y] = g[b.typeOrDomainIdValue]), n && g[k.xField] !== void 0 && (g[n] = g[k.xField], delete g[k.xField]), r && g[k.yField] !== void 0 && (g[r] = g[k.yField], delete g[k.yField]), s && g[k.valueField] !== void 0 && (g[s] = g[k.valueField], delete g[k.valueField]);
2813
- const h = {};
2814
- return Object.keys(g).forEach((x) => {
2815
- !c.includes(x) && !x.includes(b.rendererSymbolField) && (h[x] = g[x]);
2816
- }), m.push(h), m;
2817
- }, u = (m, g) => JSON.stringify(m).localeCompare(JSON.stringify(g)), d = e?.reduce(l, [])?.sort(u), f = t?.reduce(l, [])?.sort(u);
2818
- o = d?.length !== f?.length || !Pe(d, f);
2806
+ ...oa
2807
+ ], d = (y, p) => {
2808
+ const x = p[b.typeOrDomainFieldName];
2809
+ typeof x == "string" && p[x] !== void 0 && (p[x] = p[b.typeOrDomainIdValue]), n && p[k.xField] !== void 0 && (p[n] = p[k.xField], delete p[k.xField]), r && p[k.yField] !== void 0 && (p[r] = p[k.yField], delete p[k.yField]), s && p[k.valueField] !== void 0 && (p[s] = p[k.valueField], delete p[k.valueField]);
2810
+ const F = {};
2811
+ return Object.keys(p).forEach((C) => {
2812
+ !u.includes(C) && !C.includes(b.rendererSymbolField) && (F[C] = p[C]);
2813
+ }), y.push(F), y;
2814
+ }, f = (y, p) => JSON.stringify(y).localeCompare(JSON.stringify(p)), m = o?.reduce(d, [])?.sort(f), g = c?.reduce(d, [])?.sort(f);
2815
+ l = m?.length !== g?.length || !Le(m, g);
2819
2816
  }
2820
- return o;
2817
+ return l;
2821
2818
  }
2822
2819
  function hr(i) {
2823
2820
  const { chartConfig: e, currentSelectionDataItems: t, options: a } = i, { selectionData: n } = a ?? {};
2824
2821
  let r = [];
2825
2822
  if (e !== void 0) {
2826
- const s = e.series, o = V(s), { selectionItems: c } = n ?? {};
2823
+ const s = e.series, o = E(s), { selectionItems: c } = n ?? {};
2827
2824
  if (c !== void 0 && pr({
2828
2825
  itemsA: c,
2829
2826
  itemsB: t,
2830
- isPieFromFields: V(e.series) === p.PieFromFields,
2827
+ isPieFromFields: E(e.series) === h.PieFromFields,
2831
2828
  x: e.series[0].x,
2832
2829
  y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
2833
2830
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
2834
- }) ? r = c : r = t ?? [], s.length > 1 && o !== p.BarAndLineNoAggregation && o !== p.BarAndLineSplitByNoAggregation) {
2831
+ }) ? r = c : r = t ?? [], s.length > 1 && o !== h.BarAndLineNoAggregation && o !== h.BarAndLineSplitByNoAggregation) {
2835
2832
  const l = K(s[0].query?.where);
2836
2833
  r = Lt({ data: r, x: s[0].x, splitByField: l });
2837
2834
  }
@@ -2842,7 +2839,7 @@ function hr(i) {
2842
2839
  }
2843
2840
  return r ?? [];
2844
2841
  }
2845
- function Ce(i, e) {
2842
+ function Be(i, e) {
2846
2843
  let t = "";
2847
2844
  if (i.trim() !== "" && e !== void 0)
2848
2845
  if (e === null)
@@ -2865,8 +2862,8 @@ function Sr(i) {
2865
2862
  }
2866
2863
  } else
2867
2864
  r = Q([
2868
- Fe({ where: Ce(t, e[t]) }),
2869
- a !== void 0 ? Fe({ where: Ce(a, e[a]) }) : ""
2865
+ Fe({ where: Be(t, e[t]) }),
2866
+ a !== void 0 ? Fe({ where: Be(a, e[a]) }) : ""
2870
2867
  ]);
2871
2868
  return r;
2872
2869
  }
@@ -2899,29 +2896,29 @@ function vi(i) {
2899
2896
  keepNullValues: !0,
2900
2897
  specificField: b.typeOrDomainIdValue
2901
2898
  });
2902
- r === Ye.Double ? o = Bi(d, e) : (Ae(s.axes?.[0].valueFormat) && (d = Ve(d)), o = Fe({
2903
- where: Ce(e, d),
2899
+ r === Ye.Double ? o = Bi(d, e) : (Pe(s.axes?.[0].valueFormat) && (d = Ve(d)), o = Fe({
2900
+ where: Be(e, d),
2904
2901
  normalize: !1,
2905
2902
  escape: !0
2906
2903
  }));
2907
2904
  }
2908
2905
  const c = Fe({ where: a ?? "", normalize: !1, escape: !0 });
2909
2906
  let l = "";
2910
- if (Wa(s) === !0) {
2911
- const d = V(s.series) === p.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
2912
- key: I.Min,
2907
+ if (Qa(s) === !0) {
2908
+ const d = E(s.series) === h.BoxPlotMultiFieldsAndCategory ? t : void 0, f = U({
2909
+ key: V.Min,
2913
2910
  showOutliers: !0,
2914
2911
  splitBy: a,
2915
2912
  y: d
2916
2913
  }), m = U({
2917
- key: I.Max,
2914
+ key: V.Max,
2918
2915
  showOutliers: !0,
2919
2916
  splitBy: a,
2920
2917
  y: d
2921
2918
  }), g = e === b.boxPlot.boxPlotCategory ? n[e] : t;
2922
2919
  if (!ee(g)) {
2923
- const y = n[f], h = n[m];
2924
- Number.isFinite(y) && Number.isFinite(h) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${h?.toString()}`);
2920
+ const y = n[f], p = n[m];
2921
+ Number.isFinite(y) && Number.isFinite(p) && (l = `${g?.toString()}>=${y?.toString()} AND ${g?.toString()}<=${p?.toString()}`);
2925
2922
  }
2926
2923
  }
2927
2924
  return Q([o, c, l]);
@@ -2931,15 +2928,15 @@ function Fr(i) {
2931
2928
  let s = "";
2932
2929
  if (b.dateBinningRange in a)
2933
2930
  s = Ci(e, a);
2934
- else if (V(r.series) !== p.BarAndLineFromFields) {
2931
+ else if (E(r.series) !== h.BarAndLineFromFields) {
2935
2932
  let l = ze({
2936
2933
  value: a[e],
2937
2934
  dataContext: a,
2938
2935
  keepNullValues: !0,
2939
2936
  specificField: b.typeOrDomainIdValue
2940
2937
  });
2941
- n === Ye.Double ? s = Bi(l, e) : (Ae(r.axes?.[0].valueFormat) && (l = Ve(l)), s = Fe({
2942
- where: Ce(e, l),
2938
+ n === Ye.Double ? s = Bi(l, e) : (Pe(r.axes?.[0].valueFormat) && (l = Ve(l)), s = Fe({
2939
+ where: Be(e, l),
2943
2940
  normalize: !1,
2944
2941
  escape: !0
2945
2942
  }));
@@ -2950,8 +2947,8 @@ function Fr(i) {
2950
2947
  function br(i) {
2951
2948
  const { xAxisField: e, dataContext: t, chartConfig: a } = i;
2952
2949
  let n = b.typeOrDomainIdValue in t ? t[b.typeOrDomainIdValue] : t[b.originalCategoryValue];
2953
- return n === void 0 && (n = t[e]), V(a.series) === p.PieFromFields ? "" : Fe({
2954
- where: Ce(e, n),
2950
+ return n === void 0 && (n = t[e]), E(a.series) === h.PieFromFields ? "" : Fe({
2951
+ where: Be(e, n),
2955
2952
  normalize: !1,
2956
2953
  escape: !0
2957
2954
  });
@@ -2985,7 +2982,7 @@ function xr(i) {
2985
2982
  let u, d;
2986
2983
  const f = a[k.xField], m = a[k.yField], g = n.axes?.[0]?.valueFormat?.type, y = n.axes?.[1]?.valueFormat?.type;
2987
2984
  g === S.CategoryAxisFormat ? u = Fe({
2988
- where: Ce(c.x, f),
2985
+ where: Be(c.x, f),
2989
2986
  normalize: !1,
2990
2987
  escape: !0
2991
2988
  }) : u = Qt({
@@ -2997,7 +2994,7 @@ function xr(i) {
2997
2994
  dataTimeZone: s,
2998
2995
  runsOnClientQueryEngine: o
2999
2996
  }), y === S.CategoryAxisFormat ? d = Fe({
3000
- where: Ce(c.y, m),
2997
+ where: Be(c.y, m),
3001
2998
  normalize: !1,
3002
2999
  escape: !0
3003
3000
  }) : d = Qt({
@@ -3014,7 +3011,7 @@ function Cr(i) {
3014
3011
  let n = "";
3015
3012
  const r = a.series[0], { minValue: s, maxValue: o } = t;
3016
3013
  if (Number.isFinite(s) && Number.isFinite(o) && r.type === S.HistogramSeries) {
3017
- const c = Ka(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
3014
+ const c = Ja(e, r.dataTransformationType), l = t.isLastBin ? "<=" : "<";
3018
3015
  n = Q([
3019
3016
  `${c}>=${s?.toString()}`,
3020
3017
  `${c}${l}${o?.toString()}`
@@ -3053,7 +3050,7 @@ function Xo(i) {
3053
3050
  async function Br(i) {
3054
3051
  const { numberOfQueries: e, selectionOIDs: t, chartConfig: a, queryConfig: n, options: r, errorStrings: s, queryObject: o } = i, { setTimeBinningInfoWhenNotProvided: c } = r ?? {}, { series: l } = a, u = W(l), d = [], { maxOIDsPerSelectionQuery: f } = Ue();
3055
3052
  for (let g = 0; g < e; g += 1) {
3056
- const y = g * f, h = (g + 1) * f - 1, x = t.slice(y === 0 ? 0 : y - 1, h), F = { ...n };
3053
+ const y = g * f, p = (g + 1) * f - 1, x = t.slice(y === 0 ? 0 : y - 1, p), F = { ...n };
3057
3054
  switch (F.objectIds = x, u) {
3058
3055
  case S.HeatSeries:
3059
3056
  d.push(
@@ -3073,7 +3070,7 @@ async function Br(i) {
3073
3070
  case S.LineSeries:
3074
3071
  case S.RadarSeries:
3075
3072
  case S.ComboLineAndBarSeries:
3076
- if (ve({
3073
+ if (Ne({
3077
3074
  xAxisValueFormatType: pe(a),
3078
3075
  setTimeBinningInfoWhenNotProvided: c,
3079
3076
  seriesConfig: l[0]
@@ -3138,7 +3135,7 @@ async function Br(i) {
3138
3135
  return await Promise.all(d);
3139
3136
  }
3140
3137
  function vr(i) {
3141
- const { dataFetchingResults: e, numberOfQueries: t, series: a } = i, n = W(a), r = V(a);
3138
+ const { dataFetchingResults: e, numberOfQueries: t, series: a } = i, n = W(a), r = E(a);
3142
3139
  let s = [];
3143
3140
  const o = /* @__PURE__ */ new Map();
3144
3141
  for (let c = 0; c < t; c += 1) {
@@ -3167,11 +3164,11 @@ function vr(i) {
3167
3164
  [f]: m[f]
3168
3165
  }))
3169
3166
  );
3170
- } else l.valid && (r === p.PieFromFields ? s = st({
3167
+ } else l.valid && (r === h.PieFromFields ? s = st({
3171
3168
  dataToConvert: u[0],
3172
3169
  x: ne,
3173
3170
  y: he
3174
- }) : r === p.BarAndLineFromFields ? s = st({
3171
+ }) : r === h.BarAndLineFromFields ? s = st({
3175
3172
  dataToConvert: u[0],
3176
3173
  x: a[0].x,
3177
3174
  y: a[0].y
@@ -3191,12 +3188,12 @@ async function Nr(i) {
3191
3188
  options: o,
3192
3189
  errorStrings: c
3193
3190
  } = i, { series: l } = e, { selectionData: u, viewExtentUpdated: d, returnSelectionOIDs: f, chartLimits: m } = o ?? {}, { selectionItems: g, selectionOIDs: y } = u ?? {};
3194
- let h;
3191
+ let p;
3195
3192
  const x = W(l), F = x !== S.HistogramSeries && x !== S.HeatSeries && g !== void 0 && g.length > 0 && !(l[0].x in g[0]) && !(ne in g[0]) && !(b.boxPlot.boxPlotCategory in g[0]);
3196
- if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Pe(y, n))) {
3193
+ if (d !== !0 && f !== !1 && y !== void 0 && y.length > 0 && (r === !0 || F || y.length !== n?.length || !Le(y, n))) {
3197
3194
  const B = _t(a);
3198
- if (B !== void 0 && !Ya({ dataContext: B[0], chartConfig: e, chartLimits: m }))
3199
- h = B.filter((N) => {
3195
+ if (B !== void 0 && !Ka({ dataContext: B[0], chartConfig: e, chartLimits: m }))
3196
+ p = B.filter((N) => {
3200
3197
  const v = N[Y.uniqueIdsName];
3201
3198
  return typeof v == "number" ? y?.includes(v) : !1;
3202
3199
  });
@@ -3210,20 +3207,20 @@ async function Nr(i) {
3210
3207
  errorStrings: c,
3211
3208
  chartConfig: e
3212
3209
  });
3213
- h = vr({
3210
+ p = vr({
3214
3211
  dataFetchingResults: T,
3215
3212
  numberOfQueries: v,
3216
3213
  series: l
3217
3214
  });
3218
3215
  }
3219
3216
  }
3220
- return h;
3217
+ return p;
3221
3218
  }
3222
3219
  function* Tr(i) {
3223
3220
  const { filterList: e, queryObject: t, queryConfig: a } = i;
3224
3221
  for (let n = 0; n < e.length; n += 1) {
3225
3222
  const r = { ...a };
3226
- r.where = Q([r.where, e[n]]), yield oa({
3223
+ r.where = Q([r.where, e[n]]), yield la({
3227
3224
  queryObject: t,
3228
3225
  queryConfig: r,
3229
3226
  uniqueFeature: !0
@@ -3250,54 +3247,56 @@ async function Zo(i) {
3250
3247
  return r;
3251
3248
  }
3252
3249
  async function Ar(i) {
3253
- const { queryObject: e, queryConfig: t, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = i, c = V(a.series);
3250
+ const { queryObject: e, queryConfig: t, chartConfig: a, currentSelectionDataItems: n, options: r, errorStrings: s, abortKey: o } = i, c = E(a.series);
3254
3251
  let l = { valid: !0, data: { dataItems: [] } };
3255
3252
  if (n !== void 0 && n.length > 0) {
3256
- const u = Me(a), { x: d } = u, f = "y" in u ? u.y : "";
3253
+ const u = we(a), { x: d } = u, f = "y" in u ? u.y : "";
3257
3254
  let m;
3258
- e !== void 0 && (m = (await Ne(e)).find((B) => B.name === d)?.type);
3255
+ e !== void 0 && (m = (await Te(e)).find((B) => B.name === d)?.type);
3259
3256
  const g = [], y = n.reduce(
3260
3257
  (C, B) => {
3261
- let N = "";
3258
+ const N = [];
3262
3259
  if (Y.uniqueIdsName in B)
3263
3260
  g.push(B[Y.uniqueIdsName]);
3264
3261
  else {
3265
3262
  switch (c) {
3266
- case p.BoxPlotMonoFieldAndSplitBy:
3267
- case p.BoxPlotMultiFieldsAndSplitBy:
3268
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy: {
3269
- N = u.query?.where ?? "";
3270
- const M = K(N);
3271
- let w = "";
3272
- const E = `_${I.Average}`;
3273
- Object.keys(B).forEach((L) => {
3274
- L.includes(E) && (w = L.replace(E, ""));
3275
- }), w.trim() !== "" && (N = Ce(M, w));
3263
+ case h.BoxPlotMonoFieldAndSplitBy:
3264
+ case h.BoxPlotMultiFieldsAndSplitBy:
3265
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy: {
3266
+ const w = K(u.query?.where ?? ""), L = `_${V.Average}`;
3267
+ Object.keys(B).forEach((D) => {
3268
+ if (D.includes(L)) {
3269
+ const R = D.replace(L, "");
3270
+ R.trim() !== "" && N.push(Be(w, R));
3271
+ }
3272
+ });
3276
3273
  break;
3277
3274
  }
3278
3275
  }
3279
3276
  const v = [f].flat();
3280
3277
  let T = v.length === 1 ? v[0] : "";
3281
- if (c === p.BoxPlotMultiFieldsAndCategory) {
3282
- const M = `_${I.FirstQuartile}`, w = Object.keys(B).find((E) => E.includes(M));
3283
- w !== void 0 && (T = w.replace(M, ""));
3278
+ if (c === h.BoxPlotMultiFieldsAndCategory) {
3279
+ const w = `_${V.FirstQuartile}`, L = Object.keys(B).find((D) => D.includes(w));
3280
+ L !== void 0 && (T = L.replace(w, ""));
3284
3281
  }
3285
- const D = vi({
3286
- chartConfig: a,
3287
- xAxisField: d,
3288
- yAxisField: T,
3289
- splitBy: N,
3290
- dataContext: B,
3291
- xAxisFieldType: m
3282
+ N.length === 0 && N.push(""), N.forEach((w) => {
3283
+ const L = vi({
3284
+ chartConfig: a,
3285
+ xAxisField: d,
3286
+ yAxisField: T,
3287
+ splitBy: w,
3288
+ dataContext: B,
3289
+ xAxisFieldType: m
3290
+ });
3291
+ C.push(L);
3292
3292
  });
3293
- C.push(D);
3294
3293
  }
3295
3294
  return C;
3296
3295
  },
3297
3296
  []
3298
- ), h = z(e);
3299
- if (h !== void 0 && g.length > 0) {
3300
- const { objectIdField: C } = h;
3297
+ ), p = z(e);
3298
+ if (p !== void 0 && g.length > 0) {
3299
+ const { objectIdField: C } = p;
3301
3300
  y.push(`${C} IN (${g.join(",")})`);
3302
3301
  }
3303
3302
  const x = y.join(" OR "), F = { ...t };
@@ -3341,10 +3340,10 @@ async function Pr(i) {
3341
3340
  m.data = { dataItems: g };
3342
3341
  break;
3343
3342
  case S.PieSeries:
3344
- if (V(a.series) === p.PieFromFields) {
3345
- const { x: h, y: x } = a.series[0], F = Ie(g);
3343
+ if (E(a.series) === h.PieFromFields) {
3344
+ const { x: p, y: x } = a.series[0], F = Ce(g);
3346
3345
  F.forEach((C) => {
3347
- h in C && (C[ne] = C[h], delete C[h]), x in C && (C[he] = C[x], delete C[x]);
3346
+ p in C && (C[ne] = C[p], delete C[p]), x in C && (C[he] = C[x], delete C[x]);
3348
3347
  }), m.data = { dataItems: F };
3349
3348
  } else
3350
3349
  m.data = { dataItems: g };
@@ -3357,23 +3356,23 @@ async function Pr(i) {
3357
3356
  case S.ComboLineAndBarSeries:
3358
3357
  case S.RadarSeries:
3359
3358
  case S.LineSeries:
3360
- if (g.length === 0 || !ve({
3359
+ if (g.length === 0 || !Ne({
3361
3360
  xAxisValueFormatType: f,
3362
3361
  setTimeBinningInfoWhenNotProvided: o?.setTimeBinningInfoWhenNotProvided,
3363
3362
  seriesConfig: u[0]
3364
3363
  }))
3365
3364
  m.data = { dataItems: g }, m.count = g.length * u.length, y = !0;
3366
3365
  else {
3367
- const h = { ...t };
3366
+ const p = { ...t };
3368
3367
  if (n !== void 0 && n.length > 0) {
3369
3368
  const F = n.map(
3370
3369
  (B) => Ci(u[0].x, B)
3371
3370
  ), C = Q(F, "OR");
3372
- h.where = Q([h.where, C]);
3371
+ p.where = Q([p.where, C]);
3373
3372
  }
3374
3373
  m = await wt({
3375
3374
  queryObject: e,
3376
- queryConfig: h,
3375
+ queryConfig: p,
3377
3376
  chartConfig: a,
3378
3377
  options: o
3379
3378
  });
@@ -3390,9 +3389,9 @@ async function Pr(i) {
3390
3389
  bins: []
3391
3390
  }, m.count = 0;
3392
3391
  else {
3393
- const { x: h } = u[0], x = g.map((B, N) => {
3394
- const { minValue: v, maxValue: T } = B, D = N === g.length - 1 ? "<=" : "<";
3395
- return `${h} >= ${v} AND ${h} ${D} ${T}`;
3392
+ const { x: p } = u[0], x = g.map((B, N) => {
3393
+ const { minValue: v, maxValue: T } = B, w = N === g.length - 1 ? "<=" : "<";
3394
+ return `${p} >= ${v} AND ${p} ${w} ${T}`;
3396
3395
  }), F = Q(x, "OR"), C = { ...t };
3397
3396
  C.where = Q([C.where, F]), m = await Fi({
3398
3397
  queryObject: e,
@@ -3407,14 +3406,14 @@ async function Pr(i) {
3407
3406
  }
3408
3407
  case S.ScatterSeries: {
3409
3408
  if (g.length === 0) {
3410
- const { r2: h, trendLinePoints: x } = b.scatterplotSeries;
3411
- m.data = { dataItems: [], r2: h, trendLinePoints: x, count: 0 }, m.count = 0;
3409
+ const { r2: p, trendLinePoints: x } = b.scatterplotSeries;
3410
+ m.data = { dataItems: [], r2: p, trendLinePoints: x, count: 0 }, m.count = 0;
3412
3411
  } else {
3413
- const { r2: h, trendLinePoints: x } = bi({
3412
+ const { r2: p, trendLinePoints: x } = bi({
3414
3413
  data: g,
3415
3414
  chartConfig: a
3416
3415
  });
3417
- m.data = { dataItems: g, r2: h, trendLinePoints: x }, m.count = g.length;
3416
+ m.data = { dataItems: g, r2: p, trendLinePoints: x }, m.count = g.length;
3418
3417
  }
3419
3418
  break;
3420
3419
  }
@@ -3478,7 +3477,7 @@ async function Lr(i) {
3478
3477
  abortKey: o,
3479
3478
  fieldList: c
3480
3479
  };
3481
- ve({
3480
+ Ne({
3482
3481
  xAxisValueFormatType: pe(t),
3483
3482
  setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
3484
3483
  seriesConfig: l[0]
@@ -3537,7 +3536,7 @@ async function el(i) {
3537
3536
  runtimeDataFilters: c?.runtimeDataFilters,
3538
3537
  ignoreViewExtent: c?.ignoreViewExtent
3539
3538
  });
3540
- return la(a), d = await Lr({
3539
+ return ca(a), d = await Lr({
3541
3540
  chartConfig: t,
3542
3541
  queryObject: e,
3543
3542
  queryConfig: f,
@@ -3564,8 +3563,8 @@ function Mr(i, e, t) {
3564
3563
  async function wr(i) {
3565
3564
  const { seriesData: e, chartConfig: t, queryConfig: a, queryObject: n, categoryOrDateCount: r, behaviorAfterLimit: s, abortKey: o } = i, { series: c } = t;
3566
3565
  let l = e;
3567
- const u = V(c), d = pe(t);
3568
- if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !== p.BarAndLineFromFields && u !== p.BarAndLineNoAggregation && u !== p.PieNoAggregation && d === S.CategoryAxisFormat) {
3566
+ const u = E(c), d = pe(t);
3567
+ if (s !== $e.RenderUpToTheLimit && n !== void 0 && r !== void 0 && r > e.length && u !== h.BarAndLineFromFields && u !== h.BarAndLineNoAggregation && u !== h.PieNoAggregation && d === S.CategoryAxisFormat) {
3569
3568
  const { x: f } = c[0], m = {
3570
3569
  ...a,
3571
3570
  returnDistinctValues: !0,
@@ -3577,7 +3576,7 @@ async function wr(i) {
3577
3576
  queryConfig: m,
3578
3577
  featureCount: r,
3579
3578
  abortKey: o
3580
- })).map((h) => h.attributes[f]).filter((h) => h != null);
3579
+ })).map((p) => p.attributes[f]).filter((p) => p != null);
3581
3580
  y.length > e.length && (l = Mr(y, e, f));
3582
3581
  }
3583
3582
  return l;
@@ -3598,19 +3597,19 @@ function Dr(i, e) {
3598
3597
  return t;
3599
3598
  }
3600
3599
  const Ni = [
3601
- p.BarAndLineMonoField,
3602
- p.BarAndLineMultiFields,
3603
- p.PieNoAggregation,
3604
- p.PieFromCategory,
3605
- p.BoxPlotMonoFieldAndCategory,
3606
- p.BoxPlotMultiFieldsAndCategory,
3607
- p.BoxPlotMonoFieldAndCategoryAndSplitBy
3600
+ h.BarAndLineMonoField,
3601
+ h.BarAndLineMultiFields,
3602
+ h.PieNoAggregation,
3603
+ h.PieFromCategory,
3604
+ h.BoxPlotMonoFieldAndCategory,
3605
+ h.BoxPlotMultiFieldsAndCategory,
3606
+ h.BoxPlotMonoFieldAndCategoryAndSplitBy
3608
3607
  ], Or = 8e3;
3609
3608
  function Ti(i, e) {
3610
3609
  let t = i;
3611
3610
  return e === j.Week ? t /= 7 : e === j.Month ? t /= 30 : e === j.Year && (t /= 365), t = Math.ceil(t), t;
3612
3611
  }
3613
- function Be(i) {
3612
+ function ve(i) {
3614
3613
  const { date: e, unit: t, nextOrPrevious: a, size: n } = i;
3615
3614
  if (n !== void 0 && Number.isFinite(n)) {
3616
3615
  const r = a === "next" ? n : -n;
@@ -3635,7 +3634,7 @@ function Be(i) {
3635
3634
  function qr(i) {
3636
3635
  const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
3637
3636
  let l = e;
3638
- const u = Be({
3637
+ const u = ve({
3639
3638
  date: c,
3640
3639
  unit: r,
3641
3640
  size: o,
@@ -3647,7 +3646,7 @@ function qr(i) {
3647
3646
  const f = l + 1 >= t.length;
3648
3647
  let m = l;
3649
3648
  f && t[m] !== void 0 && (m += 1);
3650
- const g = f ? Be({
3649
+ const g = f ? ve({
3651
3650
  date: c,
3652
3651
  unit: r,
3653
3652
  size: o,
@@ -3662,10 +3661,10 @@ function qr(i) {
3662
3661
  sliceEndIndex: m
3663
3662
  };
3664
3663
  }
3665
- function Vr(i) {
3664
+ function Er(i) {
3666
3665
  const { binFirstOrLastIndex: e, data: t, x: a, timeIntervalInfo: n } = i, { unit: r, size: s } = n, o = r === j.Week ? (s ?? 1) * 7 : s, c = t[e][a];
3667
3666
  let l = e;
3668
- const u = Be({
3667
+ const u = ve({
3669
3668
  date: c,
3670
3669
  unit: r,
3671
3670
  size: o,
@@ -3677,7 +3676,7 @@ function Vr(i) {
3677
3676
  const f = l - 1 <= 0;
3678
3677
  let m = e;
3679
3678
  return f && t[m] !== void 0 && (m -= 1), f && (l = 0), {
3680
- binStartDate: f ? Be({
3679
+ binStartDate: f ? ve({
3681
3680
  date: c,
3682
3681
  unit: r,
3683
3682
  size: o,
@@ -3690,7 +3689,7 @@ function Vr(i) {
3690
3689
  last: f
3691
3690
  };
3692
3691
  }
3693
- function Er(i) {
3692
+ function Vr(i) {
3694
3693
  const { binsToRegroup: e, statisticType: t, y: a, nullPolicy: n } = i;
3695
3694
  let r;
3696
3695
  n !== re.Interpolate && (r = n === re.Zero ? 0 : null);
@@ -3721,44 +3720,44 @@ function Ir(i) {
3721
3720
  let d, f;
3722
3721
  if (oe(l) && (f = l.temporalBinning?.nullPolicy, d = l.temporalBinning?.timeAggregationType), c > 1 || o === j.Week || o === j.Month || o === j.Year) {
3723
3722
  const { query: m } = t[0], g = se(t), { statisticType: y } = m?.outStatistics?.[0] ?? zt;
3724
- let h = !1, x = d === G.End ? e.length - 1 : 0;
3723
+ let p = !1, x = d === G.End ? e.length - 1 : 0;
3725
3724
  const F = {
3726
3725
  binFirstOrLastIndex: x,
3727
3726
  data: e,
3728
3727
  x: u,
3729
3728
  timeIntervalInfo: a
3730
3729
  };
3731
- for (; !h; ) {
3730
+ for (; !p; ) {
3732
3731
  let C = {};
3733
- const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: D, sliceEndIndex: M } = d === G.End ? (
3732
+ const { binStartDate: B, binEndDate: N, last: v, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === G.End ? (
3734
3733
  // When grouping from the end we'll start from the last date and move backward to create the bins
3735
- Vr(F)
3734
+ Er(F)
3736
3735
  ) : (
3737
3736
  // When grouping from the start we'll start from the first date and move forward to create the bins
3738
3737
  qr(F)
3739
3738
  );
3740
- if (h = v, C = d === G.End ? C = e[M - 1] : C = e[x], N > r && B < r || B < n && N > n || B >= n && N <= r) {
3741
- const w = e.slice(D, M).filter((q) => !(b.dateBinModel in q));
3739
+ if (p = v, C = d === G.End ? C = e[L - 1] : C = e[x], N > r && B < r || B < n && N > n || B >= n && N <= r) {
3740
+ const D = e.slice(w, L).filter((q) => !(b.dateBinModel in q));
3742
3741
  g.forEach((q) => {
3743
- C[q] = Er({ binsToRegroup: w, statisticType: y, y: q, nullPolicy: f });
3742
+ C[q] = Vr({ binsToRegroup: D, statisticType: y, y: q, nullPolicy: f });
3744
3743
  });
3745
- const E = w.map((q) => q[xe]).filter((q) => q !== void 0), L = Qa(E);
3746
- L !== void 0 && (C[xe] = L), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
3744
+ const R = D.map((q) => q[xe]).filter((q) => q !== void 0), M = Ha(R);
3745
+ M !== void 0 && (C[xe] = M), C[u] = B, C[b.xAxisField] = B, C[b.dateBinningRange] = [B, N], delete C[b.dateBinModel], s.push(C);
3747
3746
  } else v && d !== G.End && s.length > 0 && (s[s.length - 1][b.dateBinningRange][1] = s[s.length - 1][b.dateBinningRange][1] + 1);
3748
3747
  x = T, F.binFirstOrLastIndex = T;
3749
3748
  }
3750
3749
  d === G.End && (s = s.reverse());
3751
3750
  } else c === 1 ? s = e.map((m, g) => {
3752
3751
  const y = m[u];
3753
- let h = e[g + 1]?.[u];
3754
- return h = typeof h == "number" ? h - 1 : Be({
3752
+ let p = e[g + 1]?.[u];
3753
+ return p = typeof p == "number" ? p - 1 : ve({
3755
3754
  date: y,
3756
3755
  unit: o,
3757
3756
  size: c,
3758
3757
  nextOrPrevious: "next"
3759
3758
  }), {
3760
3759
  ...m,
3761
- [b.dateBinningRange]: [y, h]
3760
+ [b.dateBinningRange]: [y, p]
3762
3761
  };
3763
3762
  }) : s = e;
3764
3763
  return s;
@@ -3818,31 +3817,31 @@ function $r(i) {
3818
3817
  c === j.Week && (g *= 7);
3819
3818
  const y = Pi(r);
3820
3819
  if (u === G.End) {
3821
- let h = n[0][l];
3820
+ let p = n[0][l];
3822
3821
  for (let x = 0; x < g; x += 1)
3823
- h = Be({
3824
- date: h,
3822
+ p = ve({
3823
+ date: p,
3825
3824
  unit: c,
3826
3825
  size: 1,
3827
3826
  nextOrPrevious: "previous"
3828
3827
  }), n.push({
3829
3828
  ...y,
3830
- [l]: h,
3831
- [b.xAxisField]: h
3829
+ [l]: p,
3830
+ [b.xAxisField]: p
3832
3831
  });
3833
3832
  g > 0 && (d = n[n.length - 1][l]);
3834
3833
  } else {
3835
- let h = n[n.length - 1][l];
3834
+ let p = n[n.length - 1][l];
3836
3835
  for (let x = 0; x < g; x += 1)
3837
- h = Be({
3838
- date: h,
3836
+ p = ve({
3837
+ date: p,
3839
3838
  unit: c,
3840
3839
  size: 1,
3841
3840
  nextOrPrevious: "next"
3842
3841
  }), n.push({
3843
3842
  ...y,
3844
- [l]: h,
3845
- [b.xAxisField]: h
3843
+ [l]: p,
3844
+ [b.xAxisField]: p
3846
3845
  });
3847
3846
  f = n[n.length - 1][l];
3848
3847
  }
@@ -3899,13 +3898,13 @@ function jr(i) {
3899
3898
  unit: c
3900
3899
  })) {
3901
3900
  const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = Pi(a);
3902
- let y = f === G.End ? t : e, h = f === G.End ? n.length - 1 : 0;
3903
- for (; h < n.length && (f === G.End && y > e || f !== G.End && y < t); )
3904
- y !== n[h][d] ? l.push({
3901
+ let y = f === G.End ? t : e, p = f === G.End ? n.length - 1 : 0;
3902
+ for (; p < n.length && (f === G.End && y > e || f !== G.End && y < t); )
3903
+ y !== n[p][d] ? l.push({
3905
3904
  ...m,
3906
3905
  [d]: y,
3907
3906
  [b.xAxisField]: y
3908
- }) : h = f === G.End ? h - 1 : h + 1, y = Be({
3907
+ }) : p = f === G.End ? p - 1 : p + 1, y = ve({
3909
3908
  date: y,
3910
3909
  unit: c === j.Month || c === j.Year ? j.Day : c,
3911
3910
  size: 1,
@@ -3933,8 +3932,8 @@ function Wr(i) {
3933
3932
  }
3934
3933
  function Qr(i) {
3935
3934
  const { groupByFieldsForStatistics: e, dateField: t, queryStartDate: a, queryEndDate: n, y: r, binIndex: s, lastBin: o } = i;
3936
- let c = e === "" ? Le.groupByCaseBegin : e;
3937
- return c = de(ua, {
3935
+ let c = e === "" ? Me.groupByCaseBegin : e;
3936
+ return c = de(da, {
3938
3937
  groupByFieldsForStatistics: c,
3939
3938
  dateField: t,
3940
3939
  startDate: `${a}`,
@@ -3956,9 +3955,9 @@ function* Hr(i) {
3956
3955
  statisticParameters: { value: 0.5 }
3957
3956
  }
3958
3957
  ];
3959
- let f = Le.groupByCaseBegin;
3958
+ let f = Me.groupByCaseBegin;
3960
3959
  for (let g = 0; g < n.length; g += 1) {
3961
- const y = n[g], [h, x] = y[b.dateBinningRange], F = Ve(h), C = Ve(x);
3960
+ const y = n[g], [p, x] = y[b.dateBinningRange], F = Ve(p), C = Ve(x);
3962
3961
  f = Qr({
3963
3962
  groupByFieldsForStatistics: f,
3964
3963
  queryStartDate: F,
@@ -3969,7 +3968,7 @@ function* Hr(i) {
3969
3968
  lastBin: g === n.length - 1
3970
3969
  });
3971
3970
  }
3972
- f = `${f} ${Le.groupByCaseEnd}`;
3971
+ f = `${f} ${Me.groupByCaseEnd}`;
3973
3972
  const m = {
3974
3973
  ...a,
3975
3974
  groupByFieldsForStatistics: [f],
@@ -4009,53 +4008,53 @@ async function zr(i) {
4009
4008
  return r;
4010
4009
  }
4011
4010
  async function Gr(i) {
4012
- const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l = ca(r), d = (await Ne(c)).find((x) => x.name === r)?.type, f = [], m = e.series[0], g = m.query?.outStatistics?.[0]?.statisticType, y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, h = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4011
+ const { chartConfig: e, queryResults: t, mapToStatField: a, splitByField: n, x: r, y: s, nullPolicy: o, queryObject: c } = i, l = ua(r), d = (await Te(c)).find((x) => x.name === r)?.type, f = [], m = e.series[0], g = m.query?.outStatistics?.[0]?.statisticType, y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
4013
4012
  return t.forEach((x, F) => {
4014
- if (!(y && (F === 0 && h === G.End || F === t.length - 1 && h === G.Start))) {
4013
+ if (!(y && (F === 0 && p === G.End || F === t.length - 1 && p === G.Start))) {
4015
4014
  const { attributes: B, stackedAttributes: N } = x;
4016
4015
  let v = B[l.lowerBoundaryAlias], T = B[l.upperBoundaryAlias];
4017
- const D = v, M = T, w = (L, q) => {
4018
- let A = L;
4019
- if (q === Ye.DateOnly && (typeof L == "string" && L.length === 10 || typeof L == "number"))
4020
- if (typeof L == "string") {
4021
- const O = L.split("-");
4016
+ const w = v, L = T, D = (M, q) => {
4017
+ let A = M;
4018
+ if (q === Ye.DateOnly && (typeof M == "string" && M.length === 10 || typeof M == "number"))
4019
+ if (typeof M == "string") {
4020
+ const O = M.split("-");
4022
4021
  O.length === 3 && (A = ae.local(Number(O[0]), Number(O[1]), Number(O[2])).valueOf());
4023
4022
  } else
4024
- A = new Date(L), A = new Date(A.valueOf() + A.getTimezoneOffset() * 6e4), A = ae.local(A.getFullYear(), A.getMonth() + 1, A.getDate()).valueOf();
4025
- else typeof L == "string" && ["+", "-"].forEach((O) => {
4026
- O && L.lastIndexOf(O) === L.length - 6 && (A = new Date(L.slice(0, L.lastIndexOf(O))).valueOf());
4023
+ A = new Date(M), A = new Date(A.valueOf() + A.getTimezoneOffset() * 6e4), A = ae.local(A.getFullYear(), A.getMonth() + 1, A.getDate()).valueOf();
4024
+ else typeof M == "string" && ["+", "-"].forEach((O) => {
4025
+ O && M.lastIndexOf(O) === M.length - 6 && (A = new Date(M.slice(0, M.lastIndexOf(O))).valueOf());
4027
4026
  });
4028
4027
  return A;
4029
4028
  };
4030
- v = w(v, d), T = w(T, d);
4031
- const E = (L, q) => {
4029
+ v = D(v, d), T = D(T, d);
4030
+ const R = (M, q) => {
4032
4031
  if (q)
4033
4032
  switch (!0) {
4034
- case (o === re.Zero && (L[q] === void 0 || L[q] === null)):
4035
- L[q] = 0;
4033
+ case (o === re.Zero && (M[q] === void 0 || M[q] === null)):
4034
+ M[q] = 0;
4036
4035
  break;
4037
- case (o === re.Null && L[q] === 0 && g === P.Count):
4038
- L[q] = null;
4036
+ case (o === re.Null && M[q] === 0 && g === P.Count):
4037
+ M[q] = null;
4039
4038
  break;
4040
- case (o === re.Interpolate && (L[q] === 0 || L[q] === void 0 || L[q] === null)):
4041
- delete L[q];
4039
+ case (o === re.Interpolate && (M[q] === 0 || M[q] === void 0 || M[q] === null)):
4040
+ delete M[q];
4042
4041
  break;
4043
4042
  }
4044
4043
  };
4045
4044
  if (typeof v == "number" && typeof T == "number") {
4046
- const L = { ...B };
4047
- L[b.originalServerBinningRange] = [D, M], L[r] = v, L[b.xAxisField] = v, L[b.dateBinningRange] = [v, T], delete L[l.lowerBoundaryAlias], delete L[l.upperBoundaryAlias], N && n && !ee(n) && a ? N.forEach((O) => {
4045
+ const M = { ...B };
4046
+ M[b.originalServerBinningRange] = [w, L], M[r] = v, M[b.xAxisField] = v, M[b.dateBinningRange] = [v, T], delete M[l.lowerBoundaryAlias], delete M[l.upperBoundaryAlias], N && n && !ee(n) && a ? N.forEach((O) => {
4048
4047
  const H = O[n];
4049
4048
  if (H === null || typeof H == "string" || typeof H == "number") {
4050
4049
  const X = a?.get(H);
4051
- X !== void 0 && (L[X] = O[Y.outStatistics?.outStatisticFieldName ?? ""], E(L, X));
4050
+ X !== void 0 && (M[X] = O[Y.outStatistics?.outStatisticFieldName ?? ""], R(M, X));
4052
4051
  }
4053
- }) : E(L, s);
4052
+ }) : R(M, s);
4054
4053
  const { featureExtent: q, featureExtentKey: A } = Li({
4055
4054
  feature: x,
4056
4055
  splitByField: n
4057
4056
  });
4058
- q && (L[A] = q), f.push(L);
4057
+ q && (M[A] = q), f.push(M);
4059
4058
  }
4060
4059
  }
4061
4060
  }), f;
@@ -4121,8 +4120,8 @@ function Yr(i) {
4121
4120
  ({ unit: a } = u);
4122
4121
  const m = c / d, g = f.findIndex(
4123
4122
  (x) => x >= m
4124
- ), y = f[g], h = g === 0 ? f[0] : f[g - 1];
4125
- n = y - m < m - h ? y : h;
4123
+ ), y = f[g], p = g === 0 ? f[0] : f[g - 1];
4124
+ n = y - m < m - p ? y : p;
4126
4125
  }
4127
4126
  return { size: n, unit: a };
4128
4127
  }
@@ -4156,7 +4155,7 @@ function Li(i) {
4156
4155
  e.aggregateGeometries && "Extent" in e.aggregateGeometries ? n = e.aggregateGeometries.Extent : { extent: n } = e.aggregateGeometries ?? e.geometry ?? {};
4157
4156
  const r = n?.toJSON();
4158
4157
  let s = xe;
4159
- return r !== void 0 && t !== void 0 && a !== void 0 && a === p.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${xe}_${e.attributes[t]}` : xe), { featureExtent: r, featureExtentKey: s };
4158
+ return r !== void 0 && t !== void 0 && a !== void 0 && a === h.BarAndLineSplitBy && (s = e.attributes[t] !== void 0 ? `${xe}_${e.attributes[t]}` : xe), { featureExtent: r, featureExtentKey: s };
4160
4159
  }
4161
4160
  function Xr(i) {
4162
4161
  const { input: e, x: t, splitByField: a } = i;
@@ -4195,8 +4194,8 @@ function Zr(i, e) {
4195
4194
  function es(i, e) {
4196
4195
  const t = e, a = se(i), n = a.length === 1;
4197
4196
  return a.forEach((r) => {
4198
- const s = je(n ? void 0 : r), o = t[s[I.FirstQuartile]], c = t[s[I.ThirdQuartile]];
4199
- Number.isFinite(o) && Number.isFinite(c) && c >= o && (t[s[I.IQR]] = c - o);
4197
+ const s = je(n ? void 0 : r), o = t[s[V.FirstQuartile]], c = t[s[V.ThirdQuartile]];
4198
+ Number.isFinite(o) && Number.isFinite(c) && c >= o && (t[s[V.IQR]] = c - o);
4200
4199
  }), t;
4201
4200
  }
4202
4201
  function ts(i, e) {
@@ -4249,43 +4248,43 @@ function rs(i, e) {
4249
4248
  function ss(i, e) {
4250
4249
  let t = 1;
4251
4250
  switch (i) {
4252
- case p.BarAndLineFromFields:
4253
- case p.PieFromFields:
4251
+ case h.BarAndLineFromFields:
4252
+ case h.PieFromFields:
4254
4253
  t = e.series[0].query?.outStatistics?.length ?? 1;
4255
4254
  break;
4256
- case p.BoxPlotMultiFields:
4257
- case p.BoxPlotMultiFieldsAndSplitBy:
4255
+ case h.BoxPlotMultiFields:
4256
+ case h.BoxPlotMultiFieldsAndSplitBy:
4258
4257
  t = e.series[0].y.length;
4259
4258
  break;
4260
- case p.BarAndLineNoAggregation:
4261
- case p.BoxPlotMonoField:
4262
- case p.BoxPlotMonoFieldAndCategory:
4263
- case p.BoxPlotMultiFieldsAndCategory:
4264
- case p.BoxPlotMonoFieldAndSplitBy:
4265
- case p.BoxPlotMonoFieldAndCategoryAndSplitBy:
4266
- case p.PieFromCategory:
4267
- case p.BarAndLineSplitByNoAggregation:
4268
- case p.PieNoAggregation:
4269
- case p.BarAndLineSplitBy:
4270
- case p.BarAndLineMonoField:
4271
- case p.BarAndLineMultiFields:
4272
- case p.NonSpecific:
4259
+ case h.BarAndLineNoAggregation:
4260
+ case h.BoxPlotMonoField:
4261
+ case h.BoxPlotMonoFieldAndCategory:
4262
+ case h.BoxPlotMultiFieldsAndCategory:
4263
+ case h.BoxPlotMonoFieldAndSplitBy:
4264
+ case h.BoxPlotMonoFieldAndCategoryAndSplitBy:
4265
+ case h.PieFromCategory:
4266
+ case h.BarAndLineSplitByNoAggregation:
4267
+ case h.PieNoAggregation:
4268
+ case h.BarAndLineSplitBy:
4269
+ case h.BarAndLineMonoField:
4270
+ case h.BarAndLineMultiFields:
4271
+ case h.NonSpecific:
4273
4272
  }
4274
4273
  return t;
4275
4274
  }
4276
4275
  function os(i) {
4277
4276
  const { attributes: e, showMean: t, chartSubType: a } = i;
4278
- t && (a === p.BoxPlotMonoFieldAndSplitBy || a === p.BoxPlotMultiFieldsAndSplitBy || a === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4277
+ t && (a === h.BoxPlotMonoFieldAndSplitBy || a === h.BoxPlotMultiFieldsAndSplitBy || a === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && (e[b.boxPlot.boxPlotMeanLineMarkerId] = !0);
4279
4278
  }
4280
4279
  function ls(i) {
4281
- const { queryResponse: e, chartConfig: t, maxCategoryCount: a } = i, n = V(t.series);
4280
+ const { queryResponse: e, chartConfig: t, maxCategoryCount: a } = i, n = E(t.series);
4282
4281
  return a && Number.isFinite(a) && a < e.length && Ni.includes(n) ? e.slice(0, a) : e;
4283
4282
  }
4284
4283
  function cs(i) {
4285
4284
  const { attributes: e, uniqueCategoryList: t, maxCategoryCount: a, x: n, chartSubType: r } = i;
4286
4285
  let s = !1;
4287
4286
  if (n && a && Number.isFinite(a) && !Ni.includes(r))
4288
- if ((r === p.BarAndLineFromFields || r === p.PieFromFields) && Object.keys(e).length > a)
4287
+ if ((r === h.BarAndLineFromFields || r === h.PieFromFields) && Object.keys(e).length > a)
4289
4288
  Object.keys(e).filter((o) => o !== P.EnvelopeAggregate).forEach((o, c) => {
4290
4289
  c >= a && delete e[o];
4291
4290
  });
@@ -4309,33 +4308,33 @@ function Mi(i) {
4309
4308
  showMean: u,
4310
4309
  chartLimits: d,
4311
4310
  fieldList: f
4312
- } = i, { series: m } = t, g = V(m), y = W(m), { x: h } = m[0], x = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: C, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, T = [];
4313
- let D = 0;
4314
- const M = /* @__PURE__ */ new Set(), { maxCategoryCount: w } = Re(d), E = ls({ queryResponse: e, chartConfig: t, maxCategoryCount: w });
4315
- for (let L = 0; E[L] && L < E.length && !(l !== void 0 && D >= l); L += 1) {
4316
- D += ss(g, t);
4317
- const q = E[L];
4311
+ } = i, { series: m } = t, g = E(m), y = W(m), { x: p } = m[0], x = "y" in m[0] ? m[0].y : void 0, F = m[0].query?.outStatistics ?? [], { originalCategoryValue: C, originalDateValue: B, typeOrDomainFieldName: N, typeOrDomainIdValue: v } = b, T = [];
4312
+ let w = 0;
4313
+ const L = /* @__PURE__ */ new Set(), { maxCategoryCount: D } = Re(d), R = ls({ queryResponse: e, chartConfig: t, maxCategoryCount: D });
4314
+ for (let M = 0; R[M] && M < R.length && !(l !== void 0 && w >= l); M += 1) {
4315
+ w += ss(g, t);
4316
+ const q = R[M];
4318
4317
  let A = { ...q.attributes };
4319
- if (cs({ attributes: A, uniqueCategoryList: M, maxCategoryCount: w, x: h, chartSubType: g }))
4318
+ if (cs({ attributes: A, uniqueCategoryList: L, maxCategoryCount: D, x: p, chartSubType: g }))
4320
4319
  continue;
4321
- is(A, m), g === p.PieFromFields || g === p.BarAndLineFromFields ? A = as(A, F) : typeof x == "string" && g === p.BarAndLineSplitByNoAggregation ? ns({ dataItem: A, splitByField: n, y: x }) : x && (g === p.BoxPlotMonoField || g === p.BoxPlotMonoFieldAndCategory || g === p.BoxPlotMonoFieldAndSplitBy || g === p.BoxPlotMonoFieldAndCategoryAndSplitBy) && rs(
4320
+ is(A, m), g === h.PieFromFields || g === h.BarAndLineFromFields ? A = as(A, F) : typeof x == "string" && g === h.BarAndLineSplitByNoAggregation ? ns({ dataItem: A, splitByField: n, y: x }) : x && (g === h.BoxPlotMonoField || g === h.BoxPlotMonoFieldAndCategory || g === h.BoxPlotMonoFieldAndSplitBy || g === h.BoxPlotMonoFieldAndCategoryAndSplitBy) && rs(
4322
4321
  A,
4323
4322
  typeof x == "string" ? x : x[0]
4324
4323
  ), os({ attributes: A, showMean: u, chartSubType: g });
4325
- let O = A[h];
4326
- O === null && m[0]?.query?.fetchNullValues === !0 && g !== p.PieFromFields && (A[C] = null, O = b.nullValue), s && typeof O == "string" ? O = new Date(O).valueOf() : o && (O = Jr(A));
4327
- const { outStatisticFieldName: H } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: $ } = Li({ feature: q, splitByField: n, chartSubType: g });
4328
- if (X && (A[$] = X), g === p.BarAndLineSplitBy && H !== void 0) {
4324
+ let O = A[p];
4325
+ O === null && m[0]?.query?.fetchNullValues === !0 && g !== h.PieFromFields && (A[C] = null, O = b.nullValue), s && typeof O == "string" ? O = new Date(O).valueOf() : o && (O = Jr(A));
4326
+ const { outStatisticFieldName: H } = Y.outStatistics ?? {}, { featureExtent: X, featureExtentKey: I } = Li({ feature: q, splitByField: n, chartSubType: g });
4327
+ if (X && (A[I] = X), g === h.BarAndLineSplitBy && H !== void 0) {
4329
4328
  const ue = A[n], te = a?.get(ue);
4330
4329
  te !== void 0 && (ue === n && (A[b.technicalFieldSplitByField] = A[te]), A[te] = A[H]), delete A[H];
4331
- } else (g === p.PieNoAggregation || g === p.BarAndLineNoAggregation || g === p.BarAndLineSplitByNoAggregation) && (s ? A[B] = O : O !== b.nullValue && (A[C] = O), $a({ isXAxis: !0, chartType: y, valueFormat: t.axes?.[0]?.valueFormat }) && (A[b.xAxisField] = `${O}-${L}`), A[Y.uniqueIdsName] = A[r]);
4332
- const Z = pa({
4330
+ } else (g === h.PieNoAggregation || g === h.BarAndLineNoAggregation || g === h.BarAndLineSplitByNoAggregation) && (s ? A[B] = O : O !== b.nullValue && (A[C] = O), Ra({ isXAxis: !0, chartType: y, valueFormat: t.axes?.[0]?.valueFormat }) && (A[b.xAxisField] = `${O}-${M}`), A[Y.uniqueIdsName] = A[r]);
4331
+ const Z = ha({
4333
4332
  subtypeInfo: c,
4334
4333
  fieldList: f,
4335
- fieldName: h,
4334
+ fieldName: p,
4336
4335
  fieldValueToMatch: O
4337
4336
  });
4338
- Z !== void 0 && Z !== O && g !== p.PieFromFields && (A[C] = Z, A[N] = h, A[v] = O), y === S.BoxPlotSeries && (A = es(m, A)), y === S.PieSeries && typeof O == "number" && (A[C] === void 0 && (A[C] = A[h]), O = `${O}`), O !== void 0 && (A[C] === void 0 && (A[C] = A[h]), A[h] = Z ?? O, A[h] === null && (A[h] = b.nullValue), A[b.xAxisField] === void 0 && (A[b.xAxisField] = A[v] ?? A[h])), A = ts(A, t), T.push(A);
4337
+ Z !== void 0 && Z !== O && g !== h.PieFromFields && (A[C] = Z, A[N] = p, A[v] = O), y === S.BoxPlotSeries && (A = es(m, A)), y === S.PieSeries && typeof O == "number" && (A[C] === void 0 && (A[C] = A[p]), O = `${O}`), O !== void 0 && (A[C] === void 0 && (A[C] = A[p]), A[p] = Z ?? O, A[p] === null && (A[p] = b.nullValue), A[b.xAxisField] === void 0 && (A[b.xAxisField] = A[v] ?? A[p])), A = ts(A, t), T.push(A);
4339
4338
  }
4340
4339
  return T;
4341
4340
  }
@@ -4351,14 +4350,14 @@ async function ut(i) {
4351
4350
  showMean: c,
4352
4351
  chartLimits: l,
4353
4352
  usePopupTemplateFieldsInfo: u
4354
- } = i, { series: d } = a, f = V(d);
4353
+ } = i, { series: d } = a, f = E(d);
4355
4354
  let m = [];
4356
- const g = f === p.BarAndLineSplitBy || f === p.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ye({
4355
+ const g = f === h.BarAndLineSplitBy || f === h.BarAndLineSplitByNoAggregation ? K(d[0].query?.where) : "", y = await ye({
4357
4356
  queryObject: e,
4358
4357
  queryConfig: t,
4359
4358
  featureCount: s,
4360
4359
  abortKey: r
4361
- }), h = await Ne(e, u), F = z(e).objectIdField, C = ya(h), { x: B } = d[0], N = C.includes(B), v = ni(e);
4360
+ }), p = await Te(e, u), F = z(e).objectIdField, C = pa(p), { x: B } = d[0], N = C.includes(B), v = ni(e);
4362
4361
  return m = Mi({
4363
4362
  queryResponse: y,
4364
4363
  chartConfig: a,
@@ -4368,22 +4367,22 @@ async function ut(i) {
4368
4367
  isDateField: N,
4369
4368
  isTimeBinningSeries: o,
4370
4369
  subtypeInfo: v,
4371
- fieldList: h,
4370
+ fieldList: p,
4372
4371
  resultLimit: t.num,
4373
4372
  showMean: c,
4374
4373
  chartLimits: l
4375
- }), f !== p.BarAndLineSplitByNoAggregation && f !== p.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Zr(
4374
+ }), f !== h.BarAndLineSplitByNoAggregation && f !== h.BarAndLineFromFields && (g !== "" && (m = Lt({ data: m, x: B, splitByField: g })), m = Zr(
4376
4375
  m,
4377
4376
  d
4378
4377
  )), m;
4379
4378
  }
4380
4379
  async function wi(i) {
4381
- const { chartConfig: e, queryObject: t, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = i, { series: o } = e, c = V(o), { x: l } = o[0], u = o.length;
4380
+ const { chartConfig: e, queryObject: t, queryConfig: a, numberMaxOfFeaturesToFetch: n, behaviorAfterLimit: r, isGaugeByFeature: s } = i, { series: o } = e, c = E(o), { x: l } = o[0], u = o.length;
4382
4381
  let d, f;
4383
- if (c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === p.BoxPlotMultiFields || c === p.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === p.PieFromFields || c === p.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
4382
+ if (c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndSplitBy ? (f = u, d = f) : c === h.BoxPlotMultiFields || c === h.BoxPlotMultiFieldsAndSplitBy ? (f = e.series[0].y.length, d = f) : c === h.PieFromFields || c === h.BarAndLineFromFields ? (f = o[0].query?.outStatistics?.filter(
4384
4383
  (m) => m.statisticType !== P.EnvelopeAggregate
4385
- ).length ?? 0, d = f) : d = await ga({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4386
- const m = c === p.BoxPlotMonoField || c === p.BoxPlotMonoFieldAndCategory || c === p.BoxPlotMonoFieldAndSplitBy;
4384
+ ).length ?? 0, d = f) : d = await ya({ queryObject: t, x: l, chartSubType: c, queryConfig: a, isGaugeByFeature: s }), d !== void 0) {
4385
+ const m = c === h.BoxPlotMonoField || c === h.BoxPlotMonoFieldAndCategory || c === h.BoxPlotMonoFieldAndSplitBy;
4387
4386
  f = Ft(c) && !m ? d * u : d;
4388
4387
  }
4389
4388
  return r === $e.RenderUpToTheLimit && f !== void 0 && n !== void 0 && n < f && (f = n, d = Math.ceil(f / u)), { categoryOrDateCount: d, elementCount: f };
@@ -4391,7 +4390,7 @@ async function wi(i) {
4391
4390
  function Ke(i) {
4392
4391
  const { arrayToSort: e, chartConfig: t, fieldList: a, isTimeBinningSeries: n } = i;
4393
4392
  if (n !== !0) {
4394
- const { series: r } = t, s = V(r), o = W(r), c = pe(t), l = xt(t);
4393
+ const { series: r } = t, s = E(r), o = W(r), c = pe(t), l = xt(t);
4395
4394
  if (o === S.HeatSeries)
4396
4395
  l !== void 0 && Ge({
4397
4396
  arrayToSort: e,
@@ -4401,9 +4400,9 @@ function Ke(i) {
4401
4400
  else if (l !== void 0 && e !== void 0 && e.length > 1) {
4402
4401
  const { orderBy: u } = l;
4403
4402
  let { sortingField: d } = l;
4404
- const f = t.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s === p.BarAndLineFromFields || s === p.PieFromFields || s === p.BoxPlotMultiFields || s === p.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, h = s === p.PieNoAggregation || s === p.BarAndLineNoAggregation || s === p.BarAndLineSplitByNoAggregation, x = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
4403
+ const f = t.orderOptions?.data?.orderType === be.Category, m = l.preferLabel !== !1, g = s === h.BarAndLineFromFields || s === h.PieFromFields || s === h.BoxPlotMultiFields || s === h.BoxPlotMultiFieldsAndSplitBy, y = g || o === S.PieSeries, p = s === h.PieNoAggregation || s === h.BarAndLineNoAggregation || s === h.BarAndLineSplitByNoAggregation, x = g ? !1 : e?.length > 0 && e.some((F) => Object.hasOwn(F, b.typeOrDomainIdValue));
4405
4404
  if (f && (!m || o === S.LineSeries && c === S.NumberAxisFormat) && (x ? d = b.typeOrDomainIdValue : y && (d = b.originalCategoryValue)), Array.isArray(u))
4406
- za({
4405
+ Ga({
4407
4406
  arrayToSort: e,
4408
4407
  orderBy: u,
4409
4408
  sortingField: d,
@@ -4418,7 +4417,7 @@ function Ke(i) {
4418
4417
  orderBy: u,
4419
4418
  sortingField: d,
4420
4419
  forceAscendingOrder: F,
4421
- isNonAggregated: h,
4420
+ isNonAggregated: p,
4422
4421
  sortByCategory: f,
4423
4422
  preferLabel: m,
4424
4423
  isPieOrByFieldsChart: y
@@ -4430,9 +4429,9 @@ function Ke(i) {
4430
4429
  async function Bt(i) {
4431
4430
  const { chartConfig: e, queryConfig: t, fetchFullBoxPlotData: a, options: n, queryObject: r, abortKey: s, fieldList: o } = i, c = "showMean" in e && typeof e.showMean == "boolean" ? e.showMean : !1, { chartLimits: l, usePopupTemplateFieldsInfo: u } = n ?? {}, d = n?.replaceNoValueCategoryWithZero ?? b.options.replaceNoValueCategoryWithZero, { behaviorAfterLimit: f } = l ?? {}, m = { valid: !0 };
4432
4431
  let g, y = !1;
4433
- const h = e.series, x = h[0], F = V(e.series);
4432
+ const p = e.series, x = p[0], F = E(e.series);
4434
4433
  if (x !== void 0 && r !== void 0) {
4435
- const C = W(h), { uniqueQuery: B, mapToStatField: N } = await ct({
4434
+ const C = W(p), { uniqueQuery: B, mapToStatField: N } = await ct({
4436
4435
  chartConfig: e,
4437
4436
  queryObject: r,
4438
4437
  queryConfig: t,
@@ -4446,14 +4445,14 @@ async function Bt(i) {
4446
4445
  behaviorAfterLimit: f,
4447
4446
  numberMaxOfFeaturesToFetch: B.num
4448
4447
  });
4449
- const D = !Number.isFinite(T);
4450
- let M = D || Se({
4448
+ const w = !Number.isFinite(T);
4449
+ let L = w || Se({
4451
4450
  count: T ?? 0,
4452
- seriesCount: h.length,
4451
+ seriesCount: p.length,
4453
4452
  chartType: C,
4454
4453
  chartLimits: l
4455
4454
  });
4456
- if (M && (g = await ut({
4455
+ if (L && (g = await ut({
4457
4456
  queryObject: r,
4458
4457
  uniqueQuery: B,
4459
4458
  chartConfig: e,
@@ -4473,22 +4472,22 @@ async function Bt(i) {
4473
4472
  elementCount: T,
4474
4473
  chartLimits: l,
4475
4474
  abortKey: s
4476
- }), l?.maxBoxPlotOutlierLimit !== void 0 && (M = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !M)), D && (v = g.length, T = Ft(F) ? v * h.length : v, M = Se({
4475
+ }), l?.maxBoxPlotOutlierLimit !== void 0 && (L = (m.data.outliers ?? []).length <= l.maxBoxPlotOutlierLimit, y = !L)), w && (v = g.length, T = Ft(F) ? v * p.length : v, L = Se({
4477
4476
  count: T,
4478
- seriesCount: h.length,
4477
+ seriesCount: p.length,
4479
4478
  chartType: C,
4480
4479
  chartLimits: l
4481
- })), M)) {
4480
+ })), L)) {
4482
4481
  if (C === S.PieSeries) {
4483
- F === p.PieFromFields && (g = st({
4482
+ F === h.PieFromFields && (g = st({
4484
4483
  dataToConvert: g[0],
4485
4484
  x: ne,
4486
4485
  y: he,
4487
4486
  fieldList: o
4488
4487
  }));
4489
- let w = "";
4490
- F === p.PieFromFields ? w = he : "y" in x && typeof x.y == "string" && (w = x.y), cn(g, w) ? m.data = { dataItems: g } : Sn(m, R.PieChartMixOfNegativePositiveSlices);
4491
- } else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F === p.BarAndLineFromFields && "y" in x && typeof x.y == "string" ? g = st({
4488
+ let D = "";
4489
+ F === h.PieFromFields ? D = he : "y" in x && typeof x.y == "string" && (D = x.y), cn(g, D) ? m.data = { dataItems: g } : Sn(m, $.PieChartMixOfNegativePositiveSlices);
4490
+ } else if ((C === S.RadarSeries || C === S.BarSeries || C === S.LineSeries || C === S.ComboLineAndBarSeries) && (F === h.BarAndLineFromFields && "y" in x && typeof x.y == "string" ? g = st({
4492
4491
  dataToConvert: g[0],
4493
4492
  x: x.x,
4494
4493
  y: x.y,
@@ -4501,22 +4500,22 @@ async function Bt(i) {
4501
4500
  categoryOrDateCount: v,
4502
4501
  behaviorAfterLimit: f,
4503
4502
  abortKey: s
4504
- }), T = Ft(F) ? g.length * h.length : g.length, M = Se({
4503
+ }), T = Ft(F) ? g.length * p.length : g.length, L = Se({
4505
4504
  count: T,
4506
- seriesCount: h.length,
4505
+ seriesCount: p.length,
4507
4506
  chartType: C,
4508
4507
  chartLimits: l
4509
- }), M)) {
4508
+ }), L)) {
4510
4509
  d && (g = Dr(g, e)), Ke({ arrayToSort: g, chartConfig: e, fieldList: o });
4511
- let w = {};
4510
+ let D = {};
4512
4511
  if (oe(x)) {
4513
- const { size: E, unit: L } = x.temporalBinning ?? {};
4514
- E !== void 0 && L !== void 0 && (w = { size: E, unit: L });
4512
+ const { size: R, unit: M } = x.temporalBinning ?? {};
4513
+ R !== void 0 && M !== void 0 && (D = { size: R, unit: M });
4515
4514
  }
4516
- m.data = { dataItems: g, timeIntervalInfo: w };
4515
+ m.data = { dataItems: g, timeIntervalInfo: D };
4517
4516
  }
4518
4517
  }
4519
- M || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count = T;
4518
+ L || ot({ dataInfo: m, chartType: C, subError: { outlierLimit: y } }), m.count = T;
4520
4519
  }
4521
4520
  return m;
4522
4521
  }
@@ -4538,9 +4537,9 @@ async function Di(i) {
4538
4537
  let l;
4539
4538
  const u = e.series[0], { nullPolicy: d } = "nullPolicy" in e ? e : {};
4540
4539
  if (u.type === S.HeatSeries) {
4541
- const { x: f, y: m, query: g, yTemporalBinning: y } = u, h = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
4540
+ const { x: f, y: m, query: g, yTemporalBinning: y } = u, p = g?.outStatistics?.[0]?.outStatisticFieldName ?? "";
4542
4541
  if (mi(e)) {
4543
- const x = await fa({
4542
+ const x = await ma({
4544
4543
  chartConfig: e,
4545
4544
  queryObject: a,
4546
4545
  queryConfig: t,
@@ -4556,7 +4555,7 @@ async function Di(i) {
4556
4555
  }))
4557
4556
  ot({ dataInfo: c, chartType: S.HeatSeries });
4558
4557
  else if (typeof x?.[0] == "object") {
4559
- const F = await Ne(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
4558
+ const F = await Te(a, s?.usePopupTemplateFieldsInfo), C = ni(a);
4560
4559
  l = Mi({
4561
4560
  queryResponse: x,
4562
4561
  chartConfig: e,
@@ -4572,9 +4571,9 @@ async function Di(i) {
4572
4571
  const B = await yt({ queryObject: a, queryConfig: t, category: f, abortKey: o }), N = await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
4573
4572
  if (l.length !== B?.length * N?.length) {
4574
4573
  const v = B.flatMap(
4575
- (T) => N.map((D) => ({
4574
+ (T) => N.map((w) => ({
4576
4575
  [k.xField]: T,
4577
- [k.yField]: D,
4576
+ [k.yField]: w,
4578
4577
  [k.valueField]: d === re.Zero ? 0 : null
4579
4578
  }))
4580
4579
  );
@@ -4582,14 +4581,14 @@ async function Di(i) {
4582
4581
  ...l,
4583
4582
  ...v.filter(
4584
4583
  (T) => !l.some(
4585
- (D) => `${D[k.xField]}${D[k.yField]}` == `${T[k.xField]}${T[k.yField]}`
4584
+ (w) => `${w[k.xField]}${w[k.yField]}` == `${T[k.xField]}${T[k.yField]}`
4586
4585
  )
4587
4586
  )
4588
4587
  ];
4589
4588
  }
4590
4589
  }
4591
4590
  } else {
4592
- const x = await ma({
4591
+ const x = await ga({
4593
4592
  chartConfig: e,
4594
4593
  queryObject: a,
4595
4594
  queryConfig: t,
@@ -4597,18 +4596,18 @@ async function Di(i) {
4597
4596
  }), F = y ? us(y.unit) : await yt({ queryObject: a, queryConfig: t, category: m, abortKey: o });
4598
4597
  let C = 0;
4599
4598
  l = x?.features.flatMap((B) => {
4600
- const N = [], { attributes: v, stackedAttributes: T } = B, D = [];
4601
- return T?.forEach((M) => {
4602
- const w = `${M[m]}`;
4603
- D.push(w), N.push({
4599
+ const N = [], { attributes: v, stackedAttributes: T } = B, w = [];
4600
+ return T?.forEach((L) => {
4601
+ const D = `${L[m]}`;
4602
+ w.push(D), N.push({
4604
4603
  [k.xField]: `${v.lowerBoundary}`,
4605
- [k.yField]: w,
4606
- [k.valueField]: M[h]
4604
+ [k.yField]: D,
4605
+ [k.valueField]: L[p]
4607
4606
  });
4608
- }), n && F && D.length !== F?.length && F.filter((w) => !D.includes(w.toString())).forEach((w) => {
4607
+ }), n && F && w.length !== F?.length && F.filter((D) => !w.includes(D.toString())).forEach((D) => {
4609
4608
  N.push({
4610
4609
  [k.xField]: `${v.lowerBoundary}`,
4611
- [k.yField]: w,
4610
+ [k.yField]: D,
4612
4611
  [k.valueField]: d === re.Zero ? 0 : null
4613
4612
  });
4614
4613
  }), C += N.length, N;
@@ -4653,9 +4652,9 @@ async function wt(i) {
4653
4652
  const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, binnedServerData: r, options: s } = i, { chartLimits: o, usePopupTemplateFieldsInfo: c } = s ?? {}, { behaviorAfterLimit: l } = o ?? {}, u = e.series, d = u[0], { x: f } = d, m = K(d.query?.where), g = { valid: !0 };
4654
4653
  let y;
4655
4654
  if (oe(d)) {
4656
- const { temporalBinning: h } = d;
4657
- if (a && h) {
4658
- const { unit: x, size: F } = h;
4655
+ const { temporalBinning: p } = d;
4656
+ if (a && p) {
4657
+ const { unit: x, size: F } = p;
4659
4658
  let C = 1, B = { unit: x, size: F }, N = !1;
4660
4659
  const v = Kr({
4661
4660
  series: d,
@@ -4663,41 +4662,41 @@ async function wt(i) {
4663
4662
  setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided
4664
4663
  });
4665
4664
  let T = r?.timeBinningStats;
4666
- !T && (!Qe(a) || v) && (T = await kr({ queryObject: a, queryConfig: t, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Yr(T), (await Ne(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4665
+ !T && (!Qe(a) || v) && (T = await kr({ queryObject: a, queryConfig: t, x: f })), v && T && T.numberOfFeatures > 0 && T.dateRange.dateMaxTimestamp !== void 0 && T.dateRange.dateMinTimestamp !== void 0 && (B = Yr(T), (await Te(a)).find((q) => q.name === f)?.type === Ye.DateOnly && B.unit !== void 0 && [
4667
4666
  j.Hour,
4668
4667
  j.Minute,
4669
4668
  j.Second
4670
- ].includes(B.unit) && (B.unit = j.Day, B.size = 1), h.size = B.size, h.unit = B.unit);
4671
- const { uniqueQuery: D, mapToStatField: M } = await ct({
4669
+ ].includes(B.unit) && (B.unit = j.Day, B.size = 1), p.size = B.size, p.unit = B.unit);
4670
+ const { uniqueQuery: w, mapToStatField: L } = await ct({
4672
4671
  chartConfig: e,
4673
4672
  queryConfig: t,
4674
4673
  queryObject: a,
4675
4674
  timeIntervalInfo: B,
4676
4675
  options: s
4677
4676
  });
4678
- let w = Se({
4677
+ let D = Se({
4679
4678
  count: C ?? 0,
4680
4679
  seriesCount: u.length,
4681
4680
  chartType: S.LineSeries,
4682
4681
  chartLimits: o
4683
4682
  });
4684
- if (w) {
4683
+ if (D) {
4685
4684
  if (Qe(a)) {
4686
- const E = await ai({
4685
+ const R = await ai({
4687
4686
  queryObject: a,
4688
4687
  dateField: f,
4689
4688
  splitByField: m,
4690
- queryConfig: D,
4691
- temporalBinning: h
4692
- }), L = "y" in d && typeof d.y == "string" ? d.y : void 0;
4689
+ queryConfig: w,
4690
+ temporalBinning: p
4691
+ }), M = "y" in d && typeof d.y == "string" ? d.y : void 0;
4693
4692
  if (y = await Gr({
4694
4693
  chartConfig: e,
4695
- queryResults: E,
4696
- mapToStatField: M,
4694
+ queryResults: R,
4695
+ mapToStatField: L,
4697
4696
  splitByField: m,
4698
4697
  x: f,
4699
- y: L,
4700
- nullPolicy: h.nullPolicy,
4698
+ y: M,
4699
+ nullPolicy: p.nullPolicy,
4701
4700
  queryObject: a
4702
4701
  }), !Se({
4703
4702
  count: y.length,
@@ -4713,25 +4712,25 @@ async function wt(i) {
4713
4712
  seriesCount: u.length,
4714
4713
  chartType: S.LineSeries,
4715
4714
  chartLimits: o
4716
- }) || (w = !1);
4715
+ }) || (D = !1);
4717
4716
  }
4718
4717
  } else if (T?.dateRange.dateMinTimestamp && T.dateRange.dateMaxTimestamp) {
4719
- const { numberOfFinalBinsWithinDataRange: E } = Ai({
4718
+ const { numberOfFinalBinsWithinDataRange: R } = Ai({
4720
4719
  dateMinTimestamp: T.dateRange.dateMinTimestamp,
4721
4720
  dateMaxTimestamp: T.dateRange.dateMaxTimestamp,
4722
4721
  timeIntervalInfo: B
4723
4722
  });
4724
- C = E * u.length, C = Ti(C, B.unit), y = r?.data ?? await ut({
4723
+ C = R * u.length, C = Ti(C, B.unit), y = r?.data ?? await ut({
4725
4724
  queryObject: a,
4726
- uniqueQuery: D,
4725
+ uniqueQuery: w,
4727
4726
  chartConfig: e,
4728
- mapToStatField: M,
4727
+ mapToStatField: L,
4729
4728
  elementCount: C,
4730
4729
  chartLimits: o,
4731
4730
  isTimeBinningSeries: !0,
4732
4731
  usePopupTemplateFieldsInfo: c,
4733
4732
  abortKey: n
4734
- }), g.binnedServerData = { data: Ie(y), timeBinningStats: T }, y = await Ur({
4733
+ }), g.binnedServerData = { data: Ce(y), timeBinningStats: T }, y = await Ur({
4735
4734
  queryObject: a,
4736
4735
  queryConfig: t,
4737
4736
  queryResults: y,
@@ -4741,9 +4740,9 @@ async function wt(i) {
4741
4740
  timeIntervalInfo: B
4742
4741
  });
4743
4742
  }
4744
- da(a) && y && y?.length === Or && (N = !0), l === $e.RenderUpToTheLimit && y && (y = ds({ chartConfig: e, options: s, data: y }));
4743
+ fa(a) && y && y?.length === Or && (N = !0), l === $e.RenderUpToTheLimit && y && (y = ds({ chartConfig: e, options: s, data: y }));
4745
4744
  }
4746
- w || (g.valid = !1, g.invalidType = R.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = C;
4745
+ D || (g.valid = !1, g.invalidType = $.LineChartExceedsLimit), y && y.length > 0 && (y[y.length - 1][b.lastTemporalBin] = !0), g.data = { dataItems: y, timeIntervalInfo: B, serverLimitReached: N }, g.count = C;
4747
4746
  }
4748
4747
  }
4749
4748
  return g;
@@ -4751,7 +4750,7 @@ async function wt(i) {
4751
4750
  async function fs(i) {
4752
4751
  const { chartConfig: e, queryConfig: t, queryObject: a, abortKey: n, options: r } = i, s = He(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: c, usePopupTemplateFieldsInfo: l } = r ?? {}, u = { valid: !0 };
4753
4752
  if (a !== void 0) {
4754
- const d = e.series, f = ve({
4753
+ const d = e.series, f = Ne({
4755
4754
  seriesConfig: d[0],
4756
4755
  xAxisValueFormatType: pe(e),
4757
4756
  setTimeBinningInfoWhenNotProvided: o
@@ -4797,7 +4796,7 @@ function tl(i, e) {
4797
4796
  const t = i.filter(
4798
4797
  (a) => !Oi(a)
4799
4798
  );
4800
- return !Pe(t, e);
4799
+ return !Le(t, e);
4801
4800
  }
4802
4801
  function gs(i, e) {
4803
4802
  let t = i.reduce((a, n) => {
@@ -4862,7 +4861,7 @@ function nl(i) {
4862
4861
  function Fs(i) {
4863
4862
  return i ? i.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
4864
4863
  }
4865
- const qe = {
4864
+ const Ee = {
4866
4865
  ChartRenderer: 1,
4867
4866
  LayerRenderer: 2
4868
4867
  };
@@ -4872,24 +4871,24 @@ function rl(i) {
4872
4871
  if (e.chartRenderer)
4873
4872
  a = !0;
4874
4873
  else {
4875
- const { series: n } = e, r = W(n), s = V(n), o = Me(e), c = ve({
4874
+ const { series: n } = e, r = W(n), s = E(n), o = we(e), c = Ne({
4876
4875
  seriesConfig: o
4877
4876
  }), u = z(t)?.renderer;
4878
4877
  switch (u?.type) {
4879
4878
  case ie.Simple:
4880
- a = r === S.HistogramSeries || r === S.ScatterSeries || s === p.BarAndLineMonoField || s === p.BoxPlotMonoField || s === p.BoxPlotMultiFields || s === p.BoxPlotMonoFieldAndCategory || s === p.BarAndLineNoAggregation && n.length === 1 && !c;
4879
+ a = r === S.HistogramSeries || r === S.ScatterSeries || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BarAndLineNoAggregation && n.length === 1 && !c;
4881
4880
  break;
4882
4881
  case ie.UniqueValue:
4883
4882
  {
4884
4883
  const f = u?.field, m = K(o.query?.where), { x: g } = o;
4885
- a = (s === p.BoxPlotMonoFieldAndSplitBy || s === p.BoxPlotMultiFieldsAndSplitBy || s === p.BoxPlotMonoFieldAndCategoryAndSplitBy || s === p.BarAndLineSplitByNoAggregation || s === p.BarAndLineSplitBy) && f === m || (s === p.BoxPlotMonoFieldAndCategory || s === p.PieFromCategory || s === p.BarAndLineMonoField) && f === g || s === p.BarAndLineNoAggregation || s === p.PieNoAggregation || r === S.ScatterSeries;
4884
+ a = (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitByNoAggregation || s === h.BarAndLineSplitBy) && f === m || (s === h.BoxPlotMonoFieldAndCategory || s === h.PieFromCategory || s === h.BarAndLineMonoField) && f === g || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation || r === S.ScatterSeries;
4886
4885
  }
4887
4886
  break;
4888
4887
  case ie.PieChart:
4889
- a = s === p.PieFromFields || s === p.BarAndLineFromFields || s === p.BarAndLineMultiFields || s === p.BarAndLineMonoField || s === p.BoxPlotMonoField || s === p.BoxPlotMultiFields || s === p.BoxPlotMonoFieldAndCategory || s === p.BoxPlotMultiFieldsAndCategory;
4888
+ a = s === h.PieFromFields || s === h.BarAndLineFromFields || s === h.BarAndLineMultiFields || s === h.BarAndLineMonoField || s === h.BoxPlotMonoField || s === h.BoxPlotMultiFields || s === h.BoxPlotMonoFieldAndCategory || s === h.BoxPlotMultiFieldsAndCategory;
4890
4889
  break;
4891
4890
  case ie.ClassBreaks:
4892
- a = r === S.ScatterSeries || s === p.BarAndLineNoAggregation || s === p.PieNoAggregation;
4891
+ a = r === S.ScatterSeries || s === h.BarAndLineNoAggregation || s === h.PieNoAggregation;
4893
4892
  break;
4894
4893
  case ie.Dictionary:
4895
4894
  case ie.DotDensity:
@@ -4924,7 +4923,7 @@ function qi(i) {
4924
4923
  delete t[e];
4925
4924
  else {
4926
4925
  const s = { ...a };
4927
- s.color !== void 0 && n === qe.LayerRenderer && (s.color[3] = ri * 255), n === qe.LayerRenderer && (delete s.style, delete s.outline, delete s.label), t[e] = s, r = !0;
4926
+ s.color !== void 0 && n === Ee.LayerRenderer && (s.color[3] = ri * 255), n === Ee.LayerRenderer && (delete s.style, delete s.outline, delete s.label), t[e] = s, r = !0;
4928
4927
  }
4929
4928
  return r;
4930
4929
  }
@@ -4938,32 +4937,32 @@ function Bs(i) {
4938
4937
  const { color: m, label: g } = d;
4939
4938
  let y;
4940
4939
  Array.isArray(m) && m?.length === 4 ? y = m : m && "toRgba" in m && (y = m.toRgba());
4941
- let h = !1, x = !0;
4940
+ let p = !1, x = !0;
4942
4941
  switch (c) {
4943
4942
  case S.BarSeries:
4944
4943
  case S.LineSeries:
4945
4944
  case S.ComboLineAndBarSeries:
4946
4945
  case S.RadarSeries:
4947
- if (a !== p.BarAndLineFromFields) {
4946
+ if (a !== h.BarAndLineFromFields) {
4948
4947
  const F = t.find((C) => C.query?.outStatistics?.[0]?.onStatisticField === f);
4949
4948
  F !== void 0 && "y" in F ? f = [F.y].flat()[0] : f = "";
4950
4949
  }
4951
- h = a !== p.BarAndLineFromFields || f === n[b.originalCategoryValue];
4950
+ p = a !== h.BarAndLineFromFields || f === n[b.originalCategoryValue];
4952
4951
  break;
4953
4952
  case S.PieSeries:
4954
- h = a === p.PieFromFields && f === n[b.originalCategoryValue];
4953
+ p = a === h.PieFromFields && f === n[b.originalCategoryValue];
4955
4954
  break;
4956
4955
  case S.BoxPlotSeries:
4957
- a === p.BoxPlotMonoField || a === p.BoxPlotMonoFieldAndCategory ? h = f === t[0].y : f && (a === p.BoxPlotMultiFields || a === p.BoxPlotMultiFieldsAndCategory) && (h = t.map((C) => C.y).flat().includes(f)), x = !1;
4956
+ a === h.BoxPlotMonoField || a === h.BoxPlotMonoFieldAndCategory ? p = f === t[0].y : f && (a === h.BoxPlotMultiFields || a === h.BoxPlotMultiFieldsAndCategory) && (p = t.map((C) => C.y).flat().includes(f)), x = !1;
4958
4957
  break;
4959
4958
  }
4960
- h && y && (s = {
4959
+ p && y && (s = {
4961
4960
  type: rt.SMS,
4962
4961
  color: y,
4963
4962
  label: x && g ? g : void 0
4964
4963
  }, l != null && (s.outline = l), qi({
4965
4964
  dataItem: n,
4966
- symbolField: a === p.BarAndLineFromFields || a === p.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
4965
+ symbolField: a === h.BarAndLineFromFields || a === h.PieFromFields ? b.rendererSymbolField : `${b.rendererSymbolField}_${f}`,
4967
4966
  rendererSymbol: s,
4968
4967
  rendererOrigin: r
4969
4968
  }) && (o = !0));
@@ -4978,24 +4977,24 @@ function vs(i) {
4978
4977
  const s = ge({
4979
4978
  where: e.query?.where
4980
4979
  });
4981
- s === null ? r = b.nullValue : t === p.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : t === p.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
4980
+ s === null ? r = b.nullValue : t === h.BarAndLineSplitBy && typeof e.y == "string" ? r = e.y : t === h.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? r = `${e.y}_${s}` : r = `${s}`;
4982
4981
  }
4983
4982
  } else if (a === ie.PieChart)
4984
4983
  switch (t) {
4985
- case p.BoxPlotMultiFields:
4984
+ case h.BoxPlotMultiFields:
4986
4985
  r = Array.isArray(e.y) ? e.y.flat() : e.y;
4987
4986
  break;
4988
- case p.BarAndLineMonoField:
4989
- case p.BarAndLineMultiFields:
4990
- case p.BoxPlotMonoField:
4991
- case p.BoxPlotMonoFieldAndCategory:
4992
- case p.BoxPlotMultiFieldsAndCategory:
4987
+ case h.BarAndLineMonoField:
4988
+ case h.BarAndLineMultiFields:
4989
+ case h.BoxPlotMonoField:
4990
+ case h.BoxPlotMonoFieldAndCategory:
4991
+ case h.BoxPlotMultiFieldsAndCategory:
4993
4992
  r = e.y;
4994
4993
  break;
4995
4994
  }
4996
4995
  return r;
4997
4996
  }
4998
- function Vi(i) {
4997
+ function Ei(i) {
4999
4998
  const { seriesConfig: e, chartSubType: t, rendererType: a, dataItem: n } = i;
5000
4999
  let r = vs({
5001
5000
  seriesConfig: e,
@@ -5009,9 +5008,9 @@ function Ns(i) {
5009
5008
  // TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
5010
5009
  // eslint-disable-next-line @typescript-eslint/no-misused-spread
5011
5010
  ...z(t),
5012
- renderer: ba.fromJSON(e)
5011
+ renderer: xa.fromJSON(e)
5013
5012
  } : z(t);
5014
- return new xa({
5013
+ return new Ca({
5015
5014
  layer: a
5016
5015
  });
5017
5016
  }
@@ -5042,7 +5041,7 @@ async function Ts(i) {
5042
5041
  const { x: m } = e[0], g = /* @__PURE__ */ new Map();
5043
5042
  o && o.trim() !== "" ? e.forEach((y) => {
5044
5043
  if (y.type === S.BarSeries || y.type === S.LineSeries || y.type === S.BoxPlotSeries || y.type === S.RadarSeries) {
5045
- const h = Vi({
5044
+ const p = Ei({
5046
5045
  seriesConfig: y,
5047
5046
  chartSubType: s,
5048
5047
  rendererType: n,
@@ -5053,18 +5052,18 @@ async function Ts(i) {
5053
5052
  keepSurroundingQuotes: !1,
5054
5053
  escape: !1
5055
5054
  });
5056
- g.set(h, {
5055
+ g.set(p, {
5057
5056
  ...t,
5058
5057
  [o]: x
5059
5058
  });
5060
5059
  }
5061
5060
  }) : g.set(b.rendererSymbolField, {
5062
5061
  ...t,
5063
- [m]: Ha(t)
5062
+ [m]: za(t)
5064
5063
  });
5065
5064
  try {
5066
- const y = Array.from(g.entries()), h = c.clone();
5067
- h.layer = c.layer;
5065
+ const y = Array.from(g.entries()), p = c.clone();
5066
+ p.layer = c.layer;
5068
5067
  const x = a?.uniqueValueInfos;
5069
5068
  for (let F = 0; F < y.length; F += 1) {
5070
5069
  const [C, B] = y[F];
@@ -5075,12 +5074,12 @@ async function Ts(i) {
5075
5074
  attributes: B
5076
5075
  }), l && l.length > 0 && Object.keys(B).forEach((v) => {
5077
5076
  l.includes(v) || delete B[v];
5078
- }), h.attributes = B, u?.has(JSON.stringify(B)))
5077
+ }), p.attributes = B, u?.has(JSON.stringify(B)))
5079
5078
  d = u.get(JSON.stringify(B));
5080
5079
  else {
5081
- if (d = (await gt.getDisplayedSymbol(h))?.toJSON(), d != null) {
5082
- d.color === void 0 && (d.color = (await gt.getDisplayedColor(h))?.toJSON());
5083
- const v = await gt.getLegendLabel(h);
5080
+ if (d = (await gt.getDisplayedSymbol(p))?.toJSON(), d != null) {
5081
+ d.color === void 0 && (d.color = (await gt.getDisplayedColor(p))?.toJSON());
5082
+ const v = await gt.getLegendLabel(p);
5084
5083
  v != null && v !== "" && (d.label = v, d.uniqueValue = x?.find((T) => T.label === v)?.value ?? void 0);
5085
5084
  }
5086
5085
  u?.set(JSON.stringify(B), d);
@@ -5119,13 +5118,13 @@ async function sl(i) {
5119
5118
  const { data: e, queryObject: t, chartConfig: a, allowColorMatch: n } = i;
5120
5119
  let r = !1, s = [];
5121
5120
  if (n) {
5122
- const { series: o, chartRenderer: c } = a, l = As(c), u = l ? qe.ChartRenderer : qe.LayerRenderer, d = t ? z(t) : void 0, f = l ?? d?.renderer;
5121
+ const { series: o, chartRenderer: c } = a, l = As(c), u = l ? Ee.ChartRenderer : Ee.LayerRenderer, d = t ? z(t) : void 0, f = l ?? d?.renderer;
5123
5122
  let m;
5124
- d && u === qe.LayerRenderer ? s = await Zt(d) : u === qe.ChartRenderer && (s = Ms(f));
5123
+ d && u === Ee.LayerRenderer ? s = await Zt(d) : u === Ee.ChartRenderer && (s = Ms(f));
5125
5124
  const g = bs(l, d?.renderer), y = Ns({
5126
5125
  chartRenderer: c,
5127
5126
  queryObject: t
5128
- }), h = V(o), x = Me(a), F = K(x.query?.where);
5127
+ }), p = E(o), x = we(a), F = K(x.query?.where);
5129
5128
  m = /* @__PURE__ */ new Map();
5130
5129
  for (let C = 0; C < e.length; C += 1) {
5131
5130
  const B = e[C], N = await Ts({
@@ -5134,7 +5133,7 @@ async function sl(i) {
5134
5133
  renderer: f,
5135
5134
  rendererType: g,
5136
5135
  rendererOrigin: u,
5137
- chartSubType: h,
5136
+ chartSubType: p,
5138
5137
  splitByField: F,
5139
5138
  graphicTemplate: y,
5140
5139
  mapAttributesToSymbol: m,
@@ -5149,7 +5148,7 @@ function Ps(i) {
5149
5148
  const { dataItem: e, seriesConfig: t, chartSubType: a, colorMatch: n, rendererType: r } = i;
5150
5149
  let s;
5151
5150
  if (n && e !== void 0) {
5152
- const o = Vi({
5151
+ const o = Ei({
5153
5152
  seriesConfig: t,
5154
5153
  chartSubType: a,
5155
5154
  rendererType: r,
@@ -5181,7 +5180,7 @@ function Ls(i) {
5181
5180
  function ll(i, e) {
5182
5181
  let t = !1;
5183
5182
  if (i && e && e.length > 0 && Gt(i)) {
5184
- const n = ja(i), r = Me(i);
5183
+ const n = Wa(i), r = we(i);
5185
5184
  n ? t = Ls(i).some((o) => e.includes(o)) : t = e.includes(r.x);
5186
5185
  }
5187
5186
  return t;
@@ -5215,18 +5214,18 @@ function dl(i) {
5215
5214
  return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
5216
5215
  }
5217
5216
  function fl(i, e) {
5218
- return e != null || Pa(i);
5217
+ return e != null || La(i);
5219
5218
  }
5220
5219
  async function ws(i) {
5221
5220
  const { queryObject: e, chartConfig: t, options: a, splitByField: n } = i;
5222
5221
  let r = [];
5223
- const s = t.series[0], o = await Aa(t, e), c = ii({
5222
+ const s = t.series[0], o = await Pa(t, e), c = ii({
5224
5223
  queryObject: e,
5225
5224
  chartConfig: o,
5226
5225
  runtimeDataFilters: a?.runtimeDataFilters,
5227
5226
  ignoreViewExtent: a?.ignoreViewExtent
5228
5227
  });
5229
- if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) && ve({
5228
+ if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Y.outStatistics.outStatisticFieldName), oe(s) && Ne({
5230
5229
  xAxisValueFormatType: pe(o),
5231
5230
  setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
5232
5231
  seriesConfig: s
@@ -5318,9 +5317,9 @@ async function ml(i, e, t) {
5318
5317
  if (a !== void 0 && e !== void 0 && (e.series.length > 0 || n !== void 0) && a.addMissingSeries) {
5319
5318
  const r = e.series.length === 0;
5320
5319
  e.series.length === 0 && n !== void 0 && e.series.push(n);
5321
- const s = V(e.series);
5322
- if (s === p.BoxPlotMonoFieldAndSplitBy || s === p.BoxPlotMultiFieldsAndSplitBy || s === p.BoxPlotMonoFieldAndCategoryAndSplitBy || s === p.BarAndLineSplitBy || s === p.BarAndLineSplitByNoAggregation) {
5323
- const o = await ha({
5320
+ const s = E(e.series);
5321
+ if (s === h.BoxPlotMonoFieldAndSplitBy || s === h.BoxPlotMultiFieldsAndSplitBy || s === h.BoxPlotMonoFieldAndCategoryAndSplitBy || s === h.BarAndLineSplitBy || s === h.BarAndLineSplitByNoAggregation) {
5322
+ const o = await Sa({
5324
5323
  chartConfig: e,
5325
5324
  layer: i.layer,
5326
5325
  view: i.view
@@ -5367,7 +5366,7 @@ export {
5367
5366
  Lt as F,
5368
5367
  yo as G,
5369
5368
  ys as H,
5370
- La as I,
5369
+ Ma as I,
5371
5370
  fo as J,
5372
5371
  Oo as K,
5373
5372
  ko as L,
@@ -5376,12 +5375,12 @@ export {
5376
5375
  lo as O,
5377
5376
  uo as P,
5378
5377
  fe as Q,
5379
- qe as R,
5378
+ Ee as R,
5380
5379
  Lo as S,
5381
5380
  jo as T,
5382
5381
  hn as U,
5383
5382
  al as V,
5384
- Ya as W,
5383
+ Ka as W,
5385
5384
  pe as X,
5386
5385
  Ko as Y,
5387
5386
  qo as Z,
@@ -5398,7 +5397,7 @@ export {
5398
5397
  po as a8,
5399
5398
  Ho as a9,
5400
5399
  zo as aa,
5401
- Vo as ab,
5400
+ Eo as ab,
5402
5401
  Uo as ac,
5403
5402
  ho as ad,
5404
5403
  So as ae,
@@ -5406,11 +5405,11 @@ export {
5406
5405
  _o as ag,
5407
5406
  Fo as ah,
5408
5407
  Ft as ai,
5409
- $a as aj,
5408
+ Ra as aj,
5410
5409
  ci as ak,
5411
5410
  To as al,
5412
5411
  tl as am,
5413
- Eo as an,
5412
+ Vo as an,
5414
5413
  Io as ao,
5415
5414
  Wo as ap,
5416
5415
  Qo as aq,
@@ -5428,11 +5427,11 @@ export {
5428
5427
  vo as e,
5429
5428
  He as f,
5430
5429
  ze as g,
5431
- Ha as h,
5430
+ za as h,
5432
5431
  Oi as i,
5433
5432
  ps as j,
5434
5433
  ll as k,
5435
- Ae as l,
5434
+ Pe as l,
5436
5435
  ol as m,
5437
5436
  Ao as n,
5438
5437
  J as o,
@@ -5446,5 +5445,5 @@ export {
5446
5445
  rl as w,
5447
5446
  Ts as x,
5448
5447
  wo as y,
5449
- Wa as z
5448
+ Qa as z
5450
5449
  };