@arcgis/charts-components 5.2.0-next.125 → 5.2.0-next.127

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 (169) hide show
  1. package/dist/cdn/{WQQMTR5J.js → 2BLR6LKU.js} +1 -1
  2. package/dist/cdn/{KIUBFEUI.js → 2FX7HMA2.js} +1 -1
  3. package/dist/cdn/{2FYXFIR4.js → 2IGXLFRI.js} +1 -1
  4. package/dist/cdn/{HDHS7RTZ.js → 2Q2NNE2E.js} +1 -1
  5. package/dist/cdn/{4RLQLQVB.js → 2YBRQEHS.js} +1 -1
  6. package/dist/cdn/{7OESRD4R.js → 334POAQ3.js} +1 -1
  7. package/dist/cdn/{G6DJZSMC.js → 375FEZQ5.js} +1 -1
  8. package/dist/cdn/{KAVJHTFB.js → 376GFRZL.js} +1 -1
  9. package/dist/cdn/{WDWOAIWE.js → 3RDYU4CX.js} +1 -1
  10. package/dist/cdn/4F6DKNCU.js +3 -0
  11. package/dist/cdn/{7PKJNQL7.js → 4ZEVGEUR.js} +1 -1
  12. package/dist/cdn/{LHQ5R7PX.js → 53DLKKX7.js} +1 -1
  13. package/dist/cdn/{CSN6MJ4B.js → 5MPUVSSI.js} +1 -1
  14. package/dist/cdn/{LQL7VPXH.js → 5SHZ5RBA.js} +1 -1
  15. package/dist/cdn/{PZRHKUTQ.js → 664RSE7L.js} +1 -1
  16. package/dist/cdn/{QL5M6E2E.js → 7LEWHR3Q.js} +1 -1
  17. package/dist/cdn/{54265YSL.js → 7LFTV63Q.js} +1 -1
  18. package/dist/cdn/{H5QMZ65D.js → 7O2ABH2O.js} +1 -1
  19. package/dist/cdn/{J65VM5UV.js → 7TPUUEPX.js} +1 -1
  20. package/dist/cdn/{OUDFAIXR.js → A4BJ3NJD.js} +1 -1
  21. package/dist/cdn/{P7PD3PBN.js → A7F727QE.js} +1 -1
  22. package/dist/cdn/AGQVZOVL.js +2 -0
  23. package/dist/cdn/{ETDHU5U4.js → AIXWFRR4.js} +22 -22
  24. package/dist/cdn/{VJG6ZEH4.js → ARWJ6M4M.js} +1 -1
  25. package/dist/cdn/{77VLHOOC.js → BFY23RQL.js} +1 -1
  26. package/dist/cdn/{F2WEYOKD.js → BJDMP3WZ.js} +1 -1
  27. package/dist/cdn/BQPKHSH4.js +2 -0
  28. package/dist/cdn/{56INS6ML.js → BTIQHZCI.js} +1 -1
  29. package/dist/cdn/{VSMUBBEN.js → C4SI4UTD.js} +1 -1
  30. package/dist/cdn/{DPRUAGVZ.js → CFR5LTRT.js} +1 -1
  31. package/dist/cdn/{B5XYZKLU.js → CLA5QG6H.js} +1 -1
  32. package/dist/cdn/CQADACRW.js +3 -0
  33. package/dist/cdn/{XQ5Q4AMB.js → CSDFCGJY.js} +1 -1
  34. package/dist/cdn/{MRN3GTKF.js → D37G7ULI.js} +1 -1
  35. package/dist/cdn/{QZNI3BD3.js → DA2DRI66.js} +1 -1
  36. package/dist/cdn/{RBTEJMJT.js → DC4Z6SV3.js} +1 -1
  37. package/dist/cdn/{POSJMG3Z.js → DJI3JWXH.js} +1 -1
  38. package/dist/cdn/{QHGSGGGJ.js → DKHJVESD.js} +1 -1
  39. package/dist/cdn/{W6SZDF5T.js → E7IR37BS.js} +1 -1
  40. package/dist/cdn/{3GN7VR32.js → EHPRMIGU.js} +1 -1
  41. package/dist/cdn/{SF3FTQP5.js → EQN5SLMX.js} +1 -1
  42. package/dist/cdn/{ZD4GMDVL.js → EWO4KNLN.js} +1 -1
  43. package/dist/cdn/{5XXBOV4Q.js → EYU2FEWB.js} +1 -1
  44. package/dist/cdn/{YEAARWKU.js → FHOUXGMO.js} +1 -1
  45. package/dist/cdn/{YMAI2PRA.js → FSP2N2BP.js} +1 -1
  46. package/dist/cdn/{SLKGXWIE.js → FZNCVGVR.js} +1 -1
  47. package/dist/cdn/{N75HEDSD.js → GZBPHJ7H.js} +1 -1
  48. package/dist/cdn/{W2QXMYBG.js → HQ47ZXN2.js} +1 -1
  49. package/dist/cdn/{B44MEIQW.js → I45GQK3M.js} +1 -1
  50. package/dist/cdn/{F3UFKEVT.js → ICZSZBA3.js} +1 -1
  51. package/dist/cdn/{2QWB5XRH.js → IMB2RGHX.js} +1 -1
  52. package/dist/cdn/{OCCBK5S7.js → IYWKTFGB.js} +1 -1
  53. package/dist/cdn/{N26FS3KG.js → J2QFNFBN.js} +1 -1
  54. package/dist/cdn/{KCEJQPTE.js → JTKDMKW6.js} +1 -1
  55. package/dist/cdn/{LYVV7FBJ.js → K56BTXNK.js} +1 -1
  56. package/dist/cdn/{2FQ6G6B6.js → KVKWGTCH.js} +1 -1
  57. package/dist/cdn/{VPCAPPIP.js → L4NJDPAN.js} +1 -1
  58. package/dist/cdn/{6H4PWDET.js → LFYVQQCR.js} +1 -1
  59. package/dist/cdn/{PUXBUCDR.js → M2ZKATSW.js} +1 -1
  60. package/dist/cdn/{C3PVEL66.js → M4JMQVOW.js} +1 -1
  61. package/dist/cdn/{3W4HHL2V.js → NWITMWCT.js} +1 -1
  62. package/dist/cdn/{KKHTRL5K.js → O3QNNSPD.js} +1 -1
  63. package/dist/cdn/O4XG2WHA.js +2 -0
  64. package/dist/cdn/O6FFCCEN.js +2 -0
  65. package/dist/cdn/{2VX44HPW.js → O6UAGUCM.js} +1 -1
  66. package/dist/cdn/{S2PTOBDF.js → OQJS4S7W.js} +1 -1
  67. package/dist/cdn/{77YJOTCX.js → OXNIW3Q4.js} +1 -1
  68. package/dist/cdn/{UYNE67O2.js → P5QBGJ75.js} +1 -1
  69. package/dist/cdn/{WG2TWSUV.js → PABVNO3N.js} +1 -1
  70. package/dist/cdn/{X7OXNUXM.js → PPRYBWCL.js} +1 -1
  71. package/dist/cdn/{ZLUIF2K7.js → QXTIAJBT.js} +1 -1
  72. package/dist/cdn/{ENG2F3IQ.js → RCUNGWMS.js} +1 -1
  73. package/dist/cdn/{FH66KPN5.js → RKUYNM5K.js} +1 -1
  74. package/dist/cdn/{MUFEV5ZR.js → RQ3JFQIF.js} +1 -1
  75. package/dist/cdn/{KHFNTBX4.js → T4455CTF.js} +1 -1
  76. package/dist/cdn/{HPO7UHSN.js → T4I6RQBL.js} +1 -1
  77. package/dist/cdn/{5E6TR5OW.js → TAH7RJAD.js} +1 -1
  78. package/dist/cdn/{TLYVHR5K.js → TYA3HM4I.js} +1 -1
  79. package/dist/cdn/{EU6AJ57R.js → UUI4JRAP.js} +1 -1
  80. package/dist/cdn/{JPDI5NK6.js → UY6H4LX7.js} +1 -1
  81. package/dist/cdn/{6462KIIY.js → V2D3WUU5.js} +1 -1
  82. package/dist/cdn/{EP5BMXUY.js → V6IB4JKW.js} +1 -1
  83. package/dist/cdn/{6ESCKCYY.js → W55DHSL2.js} +1 -1
  84. package/dist/cdn/{FASMW7S2.js → WHLIG2UP.js} +1 -1
  85. package/dist/cdn/{IMQYTRSY.js → X4IUQKA3.js} +1 -1
  86. package/dist/cdn/{OLRPPTEO.js → X5IJFDLG.js} +1 -1
  87. package/dist/cdn/{JSJ2OXVP.js → XSKN27NO.js} +2 -2
  88. package/dist/cdn/{Z5ZBVJ2L.js → Y2C4JNPJ.js} +1 -1
  89. package/dist/cdn/{4SNP6HTM.js → Y62HYU6W.js} +1 -1
  90. package/dist/cdn/{JSUH5PFI.js → Y6IIGQGN.js} +1 -1
  91. package/dist/cdn/{KHV5W5KY.js → YIG6OTNW.js} +1 -1
  92. package/dist/cdn/{5434ASC3.js → YNHYJOH7.js} +1 -1
  93. package/dist/cdn/{Z5KG3KRT.js → YPPTTXOS.js} +1 -1
  94. package/dist/cdn/{XZAXZDTP.js → YWPZICTG.js} +1 -1
  95. package/dist/cdn/{F2MSD3QS.js → ZAHELPTS.js} +1 -1
  96. package/dist/cdn/{QHRYG4SP.js → ZISTDZXP.js} +1 -1
  97. package/dist/cdn/{PAHQAFMT.js → ZOXCNZCT.js} +1 -1
  98. package/dist/cdn/{KDMYI6HZ.js → ZZHMWOE6.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/box-plot-data.js +1 -1
  102. package/dist/chunks/box-plot-model.js +2 -2
  103. package/dist/chunks/chart-ui-utils.js +1 -1
  104. package/dist/chunks/class-breaks.js +1 -1
  105. package/dist/chunks/combo-bar-line-chart-model.js +2 -1
  106. package/dist/chunks/data-labels-visibility.js +2 -4
  107. package/dist/chunks/data.js +1 -1
  108. package/dist/chunks/heat-chart-model.js +9 -0
  109. package/dist/chunks/index.js +1592 -1576
  110. package/dist/chunks/index2.js +6 -0
  111. package/dist/chunks/index4.js +1 -1
  112. package/dist/chunks/model-setter.js +7 -7
  113. package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
  114. package/dist/chunks/pie-chart-model.js +102 -84
  115. package/dist/chunks/rounded-corners.js +1 -1
  116. package/dist/chunks/scatterplot-model.js +1 -1
  117. package/dist/chunks/serial-chart-data.js +41 -41
  118. package/dist/chunks/serial-chart-model.js +4 -4
  119. package/dist/chunks/utils.js +30 -30
  120. package/dist/chunks/web-component-utils.js +1 -1
  121. package/dist/chunks/x-bounds.js +5 -5
  122. package/dist/components/arcgis-chart/customElement.d.ts +45 -12
  123. package/dist/components/arcgis-chart/customElement.js +5018 -4867
  124. package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
  125. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  126. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +5 -5
  127. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +5 -5
  128. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  129. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  130. package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
  131. package/dist/components/arcgis-charts-config-format/customElement.js +9 -9
  132. package/dist/components/arcgis-charts-config-guide/customElement.js +9 -9
  133. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  134. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +47 -56
  135. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  136. package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
  137. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  139. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  141. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
  143. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
  144. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  146. package/dist/docs/api.json +1 -1
  147. package/dist/docs/docs.json +1 -1
  148. package/dist/docs/vscode.html-custom-data.json +1 -1
  149. package/dist/docs/web-types.json +1 -1
  150. package/dist/index.js +376 -373
  151. package/dist/interfaces.d.ts +3 -2
  152. package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
  153. package/dist/model/box-plot-model/box-plot-model.d.ts +1 -1
  154. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +3 -0
  155. package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -1
  156. package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -1
  157. package/dist/model/mixins/model-with-tooltips.d.ts +4 -8
  158. package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -1
  159. package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +2 -2
  160. package/dist/utils/chart-config/converter/index.js +25 -25
  161. package/dist/utils/chart-config/utils/index.d.ts +32 -0
  162. package/package.json +5 -5
  163. package/dist/cdn/4PUOMS4A.js +0 -2
  164. package/dist/cdn/J5E4KON6.js +0 -3
  165. package/dist/cdn/MDKLQ2IS.js +0 -3
  166. package/dist/cdn/NMAG7AL2.js +0 -2
  167. package/dist/cdn/PIOFHDMU.js +0 -2
  168. package/dist/cdn/ZZAJQVXL.js +0 -2
  169. /package/dist/cdn/{IJPD3GVL.js → UE4KTI5X.js} +0 -0
@@ -32,7 +32,7 @@ export type ChartLayer = Layer
32
32
  url?: FeatureLayer["url"];
33
33
  fields: FeatureLayer["fields"];
34
34
  fieldsIndex: FeatureLayer["fieldsIndex"];
35
- capabilities: FeatureLayer["capabilities"];
35
+ capabilities?: FeatureLayer["capabilities"] | null;
36
36
  sourceJSON?: FeatureLayer["sourceJSON"];
37
37
  objectIdField: FeatureLayer["objectIdField"];
38
38
  outFields: FeatureLayer["outFields"];
@@ -40,7 +40,7 @@ export type ChartLayer = Layer
40
40
  queryFeatures: FeatureLayer["queryFeatures"];
41
41
  queryFeatureCount: FeatureLayer["queryFeatureCount"];
42
42
  queryObjectIds: FeatureLayer["queryObjectIds"];
43
- queryAttributeBins: FeatureLayer["queryAttributeBins"];
43
+ queryAttributeBins?: FeatureLayer["queryAttributeBins"];
44
44
  createQuery: FeatureLayer["createQuery"];
45
45
  getFieldDomain?: FeatureLayer["getFieldDomain"];
46
46
  renderer?: FeatureLayer["renderer"];
@@ -67,6 +67,7 @@ export type ChartLayerInputSansView = Exclude<ChartLayerInput, ChartLayerView>;
67
67
  export interface ChartLayerView {
68
68
  get layer(): ChartLayer;
69
69
  view: FeatureLikeLayerView["view"];
70
+ queryAttributeBins?: FeatureLikeLayerView["queryAttributeBins"];
70
71
  queryObjectIds: FeatureLikeLayerView["queryObjectIds"];
71
72
  queryFeatureCount: FeatureLikeLayerView["queryFeatureCount"];
72
73
  queryFeatures: FeatureLikeLayerView["queryFeatures"];
@@ -33,14 +33,14 @@ export class BarChartModel extends BarChartModelSuperclass {
33
33
  * Sets whether to hide oversized data labels of the side-by-side series based on the series index.
34
34
  *
35
35
  * @param hide - The value for hiding oversized data labels.
36
- * @param seriesIndex - The index of the series. If omitted, all the series will be updated.
36
+ * @param seriesIndex - The index of the series. If omitted, all compatible series will be updated.
37
37
  */
38
38
  setSeriesHideOversizedSideBySideLabels(hide: boolean | undefined, seriesIndex?: number): void;
39
39
  /**
40
40
  * Sets whether to hide oversized stacked labels of the series based on the series index.
41
41
  *
42
42
  * @param hide - The value for hiding oversized stacked labels.
43
- * @param seriesIndex - The index of the series. When not provided all the series will be updated.
43
+ * @param seriesIndex - The index of the series. If omitted, all compatible series will be updated.
44
44
  */
45
45
  setSeriesHideOversizedStackedLabels(hide: boolean | undefined, seriesIndex?: number): void;
46
46
  /**
@@ -41,7 +41,7 @@ export class BoxPlotModel extends BoxPlotModelSuperclass {
41
41
  /**
42
42
  * The color of the boxes when showing mean lines.
43
43
  *
44
- * Only applicable when mean lines are shown.
44
+ * **Note**: Only applicable when mean lines are shown.
45
45
  */
46
46
  accessor meanLinesBoxColor: Color | undefined;
47
47
  /** The numeric fields array for the box plot. */
@@ -47,6 +47,7 @@ export class ComboBarLineChartModel extends ComboBarLineChartModelSuperclass {
47
47
  getSeriesLineWidth(seriesIndex: number): number | undefined;
48
48
  /**
49
49
  * Gets the marker color of the series based on the series index.
50
+ *
50
51
  * If the index is out of bounds, it will return `undefined`.
51
52
  *
52
53
  * @param seriesIndex - The index of the series.
@@ -146,6 +147,7 @@ export class ComboBarLineChartModel extends ComboBarLineChartModelSuperclass {
146
147
  setSeriesHideOversizedStackedLabels(hide: boolean | undefined, seriesIndex?: number): void;
147
148
  /**
148
149
  * Sets the line style of the series based on the series index.
150
+ *
149
151
  * **Note**: This method will only work if the series is a line chart series.
150
152
  *
151
153
  * @param newStyle - The new style for the series.
@@ -154,6 +156,7 @@ export class ComboBarLineChartModel extends ComboBarLineChartModelSuperclass {
154
156
  setSeriesLineStyle(newStyle: RESTSimpleLineSymbolStyle | undefined, seriesIndex?: number): void;
155
157
  /**
156
158
  * Sets the line width of the series based on the series index.
159
+ *
157
160
  * **Note**: This method will only work if the series is a line chart series.
158
161
  *
159
162
  * @param newWidth - The new width for the series.
@@ -32,7 +32,13 @@ export class HeatChartModel extends SerialChartModel {
32
32
  accessor classificationMethod: WebChartClassBreakTypes | undefined;
33
33
  /** The name of the color ramp used by the heat chart. */
34
34
  accessor colorRampName: string | undefined;
35
- /** The heat chart's empty cell configuration. */
35
+ /**
36
+ * Gets the heat chart's empty cell configuration
37
+ *
38
+ * @deprecated
39
+ * since 5.2 Use [emptyCellText](https://developers.arcgis.com/javascript/latest/references/charts-components/model/heat-chart-model/heat-chart-model/#emptyCellText) or [emptyCellSymbol](https://developers.arcgis.com/javascript/latest/references/charts-components/model/heat-chart-model/heat-chart-model/#emptyCellSymbol) to retrieve the text or symbol for an empty heat chart cell instead.
40
+ * This property will be removed from `HeatChartModel` in 6.0
41
+ */
36
42
  accessor emptyCell: WebChartHeatChartEmptyCell | undefined;
37
43
  /** The heat chart's empty cell symbol. */
38
44
  accessor emptyCellSymbol: ISimpleFillSymbol | undefined;
@@ -84,7 +84,7 @@ export abstract class ModelWithLineMarkerStyling extends ChartModel {
84
84
  * Specify whether to connect the lines when there's a gap in the data.
85
85
  * **Note:** Can be overridden by the temporal data setting `nullPolicy`.
86
86
  *
87
- * @param connect - Whether to connect the gap in the data
87
+ * @param connect - Whether to connect the gap in the data.
88
88
  * @param seriesIndex - The index of the series. If omitted, all compatible series will be updated.
89
89
  */
90
90
  setConnectLines(connect: boolean | undefined, seriesIndex?: number): void;
@@ -3,34 +3,30 @@ import type { ChartModel } from "../chart-model/chart-model.js";
3
3
  export abstract class ModelWithTooltips extends ChartModel {
4
4
  /**
5
5
  * Gets the setting of the `dataTooltipReverseColor` property.
6
- * - If the `seriesIndex` is provided, the `dataTooltipReverseColor` for that series will be returned. Otherwise, the same property of the first series will be returned.
7
6
  * - If the `dataTooltipReverseColor` is not set on the series, the default value of `false` will be returned.
8
7
  *
9
- * @param seriesIndex - The index of the series.
8
+ * @param seriesIndex - The index of the series. If omitted, the first series will be used.
10
9
  */
11
10
  getDataTooltipReverseColor(seriesIndex?: number): boolean;
12
11
  /**
13
12
  * Gets the visibility of the data tooltips.
14
- * - If the `seriesIndex` is provided, the visibility for that series will be returned. Otherwise, the visibility of the first series will be returned.
15
13
  * - If the visibility is not set on the series, the default value of `true` will be returned.
16
14
  *
17
- * @param seriesIndex - The index of the series.
15
+ * @param seriesIndex - The index of the series. If omitted, the first series will be used.
18
16
  */
19
17
  getDataTooltipVisibility(seriesIndex?: number): boolean;
20
18
  /**
21
19
  * Sets the setting of the `dataTooltipReverseColor` property.
22
- * - If the `seriesIndex` is provided, the reverse color will be set for that series only. Otherwise, the reverse color will be set for all series.
23
20
  *
24
21
  * @param reverseColor - Indicator of whether to reverse the color.
25
- * @param seriesIndex - The index of the series to set the reverse color.
22
+ * @param seriesIndex - The index of the series to set the reverse color. If omitted, all compatible series will be updated.
26
23
  */
27
24
  setDataTooltipReverseColor(reverseColor: boolean, seriesIndex?: number): void;
28
25
  /**
29
26
  * Sets the visibility of the data tooltips.
30
- * - If the `seriesIndex` is provided, the visibility will be set for that series only. Otherwise, the visibility will be set for all series.
31
27
  *
32
28
  * @param visibility - The visibility of the data tooltips.
33
- * @param seriesIndex - The index of the series to set the visibility.
29
+ * @param seriesIndex - The index of the series to set the visibility. If omitted, all compatible series will be updated.
34
30
  */
35
31
  setDataTooltipVisibility(visibility: boolean, seriesIndex?: number): void;
36
32
  }
@@ -78,7 +78,19 @@ export class PieChartModel extends PieChartModelSuperclass {
78
78
  accessor groupedSliceIds: string[];
79
79
  /** Threshold below which slices will be grouped. */
80
80
  accessor groupingThreshold: number;
81
- /** Inner radius size for the pie chart. */
81
+ /**
82
+ * Inner radius of the pie chart.
83
+ *
84
+ * @since 5.2
85
+ */
86
+ accessor innerRadius: number;
87
+ /**
88
+ * Inner radius size for the pie chart.
89
+ *
90
+ * @deprecated
91
+ * since 5.2. Use [innerRadius](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#innerRadius) instead.
92
+ * This property will be removed from `PieChartModel` in 6.0.
93
+ */
82
94
  accessor innerRadiusSize: number;
83
95
  /** Character limit for the slice labels. */
84
96
  accessor labelCharacterLimit: number | null;
@@ -5,7 +5,7 @@ export abstract class WithNegativeValuesStackedToBaseline extends ChartModelBase
5
5
  /**
6
6
  * Specify how negative values are treated in stacked series.
7
7
  *
8
- * **Note:** If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.
8
+ * **Note:** If `true`, negative values will be stacked on the base line. If `false`, negative values will be stacked in relation to their previous values in the stack.
9
9
  *
10
10
  * @param seriesIndex - The index of the series.
11
11
  */
@@ -13,7 +13,7 @@ export abstract class WithNegativeValuesStackedToBaseline extends ChartModelBase
13
13
  /**
14
14
  * Specify how negative values are treated in stacked series.
15
15
  *
16
- * **Note:** If true, negative values will be stacked on the base line. If false, negative values will be stacked in relation to their previous values in the stack.
16
+ * **Note:** If `true`, negative values will be stacked on the base line. If `false`, negative values will be stacked in relation to their previous values in the stack.
17
17
  *
18
18
  * @param stackNegativeValuesToBaseline - `true` if negative values should be stacked on the base line, `false` otherwise.
19
19
  * @param seriesIndex - The index of the series.
@@ -2,7 +2,7 @@
2
2
  import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
3
3
  import { cloneDeep as n, isEmpty as B } from "es-toolkit/compat";
4
4
  import { DateTime as Ye } from "luxon";
5
- import { q as Qe, ck as se, bx as Ke, W as ne, aO as ae, cl as Xe, bH as Je, bI as Ze, p as x, bj as Ue, cm as b, cn as te, N as et, O as tt, w as Z, co as rt, ch as it, cp as ot, Y as st } from "../../../chunks/index.js";
5
+ import { q as Qe, cm as se, by as Ke, W as ne, aP as ae, cn as Je, bJ as Xe, bK as Ze, p as T, bl as Ue, co as b, cp as te, N as et, O as tt, w as Z, cq as rt, cj as it, cr as ot, Y as st } from "../../../chunks/index.js";
6
6
  import { a8 as nt, p as at, l as lt, a5 as dt, s as ct } from "../../../chunks/index3.js";
7
7
  import { i as ut } from "../../../chunks/type-guards.js";
8
8
  import { a as u, D as k, i as le } from "../../../chunks/index2.js";
@@ -83,11 +83,11 @@ async function fe(r) {
83
83
  const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
84
84
  let s = i;
85
85
  if (!s) {
86
- const a = Je(e) ? e.iLayer : e.dataSource?.layer;
86
+ const a = Xe(e) ? e.iLayer : e.dataSource?.layer;
87
87
  a && (s = await Ze(a, t));
88
88
  }
89
89
  if (s) {
90
- const a = x(o.series), f = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ue(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC2MultiFields || a === u.BoxPlotC6MultiFieldsAndSplitBy, He = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC3MonoFieldAndCategory || a === u.BoxPlotC7MonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
90
+ const a = T(o.series), f = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ue(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC2MultiFields || a === u.BoxPlotC6MultiFieldsAndSplitBy, He = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC3MonoFieldAndCategory || a === u.BoxPlotC7MonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
91
91
  if (o.series = e.series.map((d) => {
92
92
  const l = { ...d };
93
93
  if (y || (l.x = b({ queryObject: s, fieldToMatch: d.x })), "y" in l && He) {
@@ -102,19 +102,19 @@ async function fe(r) {
102
102
  }
103
103
  if (d.query !== void 0) {
104
104
  let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = d.query;
105
- if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((T) => {
106
- const O = { ...T };
105
+ if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((x) => {
106
+ const O = { ...x };
107
107
  return O.onStatisticField = b({
108
108
  queryObject: s,
109
- fieldToMatch: T.onStatisticField
109
+ fieldToMatch: x.onStatisticField
110
110
  }), O;
111
111
  })), m !== void 0 && a === u.BarAndLineSplitBy) {
112
- const T = et(d.query?.where), O = tt({
112
+ const x = et(d.query?.where), O = tt({
113
113
  where: d.query?.where,
114
114
  normalize: !1,
115
115
  escape: !1
116
116
  });
117
- m = `${b({ queryObject: s, fieldToMatch: T })}=${O}`;
117
+ m = `${b({ queryObject: s, fieldToMatch: x })}=${O}`;
118
118
  }
119
119
  l.query !== void 0 && (m !== void 0 && (l.query.where = m), S !== void 0 && (l.query.groupByFieldsForStatistics = S), g !== void 0 && (l.query.outStatistics = g));
120
120
  }
@@ -177,7 +177,7 @@ function me(r) {
177
177
  function Se(r) {
178
178
  const e = n(r);
179
179
  if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
180
- const t = x(r.series);
180
+ const t = T(r.series);
181
181
  if (e.orderOptions?.data === void 0 && t !== u.BoxPlotC2MultiFields && t !== u.BoxPlotC1MonoField) {
182
182
  const o = ye(r.series[0]);
183
183
  o.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
@@ -240,7 +240,7 @@ function Ce(r) {
240
240
  }
241
241
  function be(r) {
242
242
  const e = n(r);
243
- return e?.orderOptions?.orderByFields !== void 0 && x(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
243
+ return e?.orderOptions?.orderByFields !== void 0 && T(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
244
244
  (i) => {
245
245
  let t = n(i);
246
246
  return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
@@ -258,7 +258,7 @@ function Fe(r) {
258
258
  }
259
259
  return e;
260
260
  }
261
- function xe(r) {
261
+ function Te(r) {
262
262
  const e = n(r), { extent: i } = e.series[0]?.query ?? {};
263
263
  return i !== void 0 && (e.dataFilters = {
264
264
  ...e.dataFilters,
@@ -273,7 +273,7 @@ function U(r) {
273
273
  i.rotated !== void 0 && delete i.rotated;
274
274
  })), e;
275
275
  }
276
- function Te(r) {
276
+ function xe(r) {
277
277
  const e = n(r), i = r.dataSource;
278
278
  return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
279
279
  }
@@ -388,7 +388,7 @@ function Ie(r) {
388
388
  function P(r) {
389
389
  let e, i = r.orderOptions?.orderByFields?.[0];
390
390
  if (r.series?.length > 0) {
391
- const t = h(r.series), o = x(r.series);
391
+ const t = h(r.series), o = T(r.series);
392
392
  if (t !== c.PieSeries && o !== u.BarAndLineFromFields && o !== u.BoxPlotC2MultiFields && (i = i ?? r.series[0].x), i && !le(i)) {
393
393
  const { fieldToSort: s, orderBy: a } = k(i);
394
394
  let f;
@@ -430,7 +430,7 @@ function We(r) {
430
430
  function qe(r) {
431
431
  const e = n(r);
432
432
  if (e) {
433
- const i = x(e.series);
433
+ const i = T(e.series);
434
434
  if ((i === u.BarAndLineFromFields || i === u.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
435
435
  const t = P(e);
436
436
  t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
@@ -512,7 +512,7 @@ function w(r) {
512
512
  }
513
513
  function A(r) {
514
514
  let e = n(r);
515
- return e = xe(e), e;
515
+ return e = Te(e), e;
516
516
  }
517
517
  function D(r) {
518
518
  let e = n(r);
@@ -520,7 +520,7 @@ function D(r) {
520
520
  }
521
521
  function M(r) {
522
522
  let e = n(r);
523
- return e = Te(e), e;
523
+ return e = xe(e), e;
524
524
  }
525
525
  function I(r) {
526
526
  let e = n(r);
@@ -578,18 +578,18 @@ function K(r) {
578
578
  let e = n(r);
579
579
  return e = _e(e), e;
580
580
  }
581
- function X(r) {
581
+ function J(r) {
582
582
  let e = n(r);
583
583
  return e = Bt(e), e;
584
584
  }
585
- function J(r) {
585
+ function X(r) {
586
586
  let e = n(r);
587
587
  return h(e.series) === c.BarSeries && (e = Ce(e)), e;
588
588
  }
589
589
  function ze(r) {
590
590
  const { versionsToConvert: e, configToUpdate: i } = r;
591
591
  let t = n(i);
592
- return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Xe) ? (t = je(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = N(t), t = R(t), t = E(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = $(t), t = Y(t), t = Q(t), t = K(t), t = X(t), t = J(t)) : e.forEach((o) => {
592
+ return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Je) ? (t = je(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = N(t), t = R(t), t = E(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = $(t), t = Y(t), t = Q(t), t = K(t), t = J(t), t = X(t)) : e.forEach((o) => {
593
593
  if (t !== void 0)
594
594
  switch (o) {
595
595
  case "1.0.1":
@@ -653,10 +653,10 @@ function ze(r) {
653
653
  t = K(t);
654
654
  break;
655
655
  case "25.0.0":
656
- t = X(t);
656
+ t = J(t);
657
657
  break;
658
658
  case "25.1.0":
659
- t = J(t);
659
+ t = X(t);
660
660
  break;
661
661
  }
662
662
  }), t.version = nt), t;
@@ -679,9 +679,9 @@ const Mt = {
679
679
  adjustSeries: ue,
680
680
  matchChartFieldsToLayerFields: fe,
681
681
  resetLegendMaxHeight: ge,
682
- moveSeriesQueryExtent: xe,
682
+ moveSeriesQueryExtent: Te,
683
683
  moveSeriesRotatedPropToChart: U,
684
- renameDataSourceProperties: Te,
684
+ renameDataSourceProperties: xe,
685
685
  copyDataSourceFilterToConfig: Oe,
686
686
  adjustPieFromFieldsDefaultNameAndValue: be,
687
687
  removeSpacingPropertyFromGauge: Fe,
@@ -728,8 +728,8 @@ const Mt = {
728
728
  convertTo23x3x0: Y,
729
729
  convertTo24x8x0: Q,
730
730
  convertTo25x0x0: K,
731
- convertTo25x1x0: X,
732
- convertTo25x2x0: J,
731
+ convertTo25x1x0: J,
732
+ convertTo25x2x0: X,
733
733
  convertTemporalBinningProps2: Ge,
734
734
  transformPropsInHeatChart: _e,
735
735
  applyConversions: ze,
@@ -189,6 +189,18 @@ export function doesSeriesSupportTemporalBinning(series?: WebChartSeriesType): s
189
189
  */
190
190
  export function hasConfigFilterChanged(previousConfig: WebChart, newConfig: WebChart): boolean;
191
191
 
192
+ /**
193
+ * Compares two arrays of series and indicates if the properties `x` or `y` changed.
194
+ *
195
+ * When comparing the y values, we ignore the order of the series in the config.
196
+ * Regarding the `x`, only the first series is checked given they are similar among all the series.
197
+ *
198
+ * @param previousSeries
199
+ * @param newSeries
200
+ * @internal
201
+ */
202
+ export function hasXOrYChanged(previousSeries: WebChart["series"], newSeries: WebChart["series"]): boolean;
203
+
192
204
  /**
193
205
  * Compares two arrays of series and indicates whether the number of series is different.
194
206
  *
@@ -377,6 +389,26 @@ export function hasAnyGuideAboveChanged(oldConfig: WebChart, newConfig: WebChart
377
389
  */
378
390
  export function hasRotationChanged(oldConfig: WebChart, newConfig: WebChart): boolean;
379
391
 
392
+ /**
393
+ * Returns true if any series has data labels visible.
394
+ * Matches the visibility check used when computing rotated data-label padding.
395
+ *
396
+ * @param config - the chart config
397
+ * @returns True when at least one series has visible data labels
398
+ * @internal
399
+ */
400
+ export function areDataLabelsVisible(config: WebChart | undefined): boolean;
401
+
402
+ /**
403
+ * Returns true if series data-label visibility changed since the previous update.
404
+ *
405
+ * @param oldConfig - the old chart config
406
+ * @param newConfig - the new chart config
407
+ * @returns True when effective data-label visibility differs between configs
408
+ * @internal
409
+ */
410
+ export function hasDataLabelsVisibilityChanged(oldConfig: WebChart | undefined, newConfig: WebChart | undefined): boolean;
411
+
380
412
  /**
381
413
  * Returns true if the rotated property changed since the previous update.
382
414
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components",
3
- "version": "5.2.0-next.125",
3
+ "version": "5.2.0-next.127",
4
4
  "description": "Reusable ArcGIS charting Web Components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,9 +30,9 @@
30
30
  "dependencies": {
31
31
  "@amcharts/amcharts4": "^4.10.31",
32
32
  "@amcharts/amcharts5": "~5.20.8",
33
- "@arcgis/lumina": "5.2.0-next.125",
34
- "@arcgis/toolkit": "5.2.0-next.125",
35
- "@esri/arcgis-html-sanitizer": "~4.1.0",
33
+ "@arcgis/lumina": "5.2.0-next.127",
34
+ "@arcgis/toolkit": "5.2.0-next.127",
35
+ "@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
36
36
  "@lit/task": "^1.0.3",
37
37
  "@zumer/snapdom": "^2.24.1",
38
38
  "ajv": "6.12.6",
@@ -45,7 +45,7 @@
45
45
  "tslib": "^2.8.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@arcgis/core": "5.2.0-next.125",
48
+ "@arcgis/core": "5.2.0-next.127",
49
49
  "@esri/calcite-components": "^5.2.0-next.80"
50
50
  },
51
51
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as ae}from"./RP6LD7CU.js";import{a as Q,h as J}from"./OBPAQN4H.js";import j from"./JPDI5NK6.js";import{l as s,m as y}from"./TENIFMA5.js";import{a as P}from"./MRN3GTKF.js";import i from"./6462KIIY.js";import g from"./N26FS3KG.js";import e from"./KCEJQPTE.js";import b from"./2QWB5XRH.js";import a from"./MDKLQ2IS.js";import{c as x,n as R,y as U}from"./J5E4KON6.js";import"./WOGALV3T.js";import{q as K,s as d,za as W}from"./ZUN46CYQ.js";import{f as q}from"./KX7KGXKQ.js";import{m as O,s as L}from"./NGXRBJKL.js";import{d as _,g as N,i as I}from"./FASMW7S2.js";import{A as c,B as T,C as o,D as B,F as w,H as D,g as A,i as l,n as M,z as n}from"./IJPD3GVL.js";import{c as X}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as p,b as m,l as u,m as C,n as h,w as H,x as f}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{Rb:S,a:V},,{b:Z,g:G,h:b,i:z},{d:j},{h:Y},{g:ee,s:k}])=>{var se=A`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`,r={label:"label",colorRamp:"color-ramp",colorRampSegment:"color-ramp-segment",list:"list",accordion:"accordion"},E=class extends T{constructor(){super(...arguments),this._messages=P(),this.commonStrings=P({name:"common",blocking:!0}),this.heatChartPopover=null,this.xAxisFieldElement=n(),this.aggregationElement=n(),this.numericFieldsElement=n(),this.calendarTypeElement=n(),this.calendarViewTypeElement=n(),this.classBreakMethodElement=n(),this.nullElement=n(),this.breaksCountElement=n(),this.colorSchemeElement=n(),this.onHeatChartDataPopoverChange=async e=>{try{if(e.detail?.value!==void 0){let{contentKind:a}=e.detail,t=e.detail.value;switch(a){case s.aggregation:this.model.aggregationType=t,t===m.Count||t===m.Sum?this.model.nullPolicy=h.Zero:this.model.nullPolicy=h.Null;break;case s.xAxisField:this.model.xAxisField=t,this.setDefaultPropertiesForCalendarHeatChart();break;case s.numericFields:this.model.numericFields=[t.trim()||""],(this.model.numericFields??[]).length>0&&this.model.aggregationType===m.Count&&this.model.numericFields[0]!==S(this.model.layer).idField&&(this.model.aggregationType=m.Sum);break;case s.calendarType:{this.applyCalendarTypePreset(t);break}case s.calendarViewType:{this.model.viewType=t;break}case s.classBreakMethod:{this.model.classificationMethod=t,await this.generateAndUpdateClassBreaks();break}default:break}}}catch(a){throw this.arcgisChartsConfigDataChangeError.emit({error:a,model:this.model}),a}this.removeHeatChartDataPopover(),this.requestUpdate()},this.popoverClose=e=>{this.heatChartPopover===e?.target&&this.removeHeatChartDataPopover()},this.onModelConfigChange=()=>{this.requestUpdate()},this.allColorRamps=[],this.onColorRampSelection=async e=>{let{isFlipped:a,rampName:t}=e.detail,i=this.model.colorRampName!==t,g=this.model.isColorRampFlipped!==a;this.model.colorRampName=t,this.model.isColorRampFlipped=a,(i||g)&&await this.generateAndUpdateClassBreaks(!0)},this.onEmptyCellNameChange=e=>{let{name:a}=e.detail;if(a!==void 0){let t={...this.model.emptyCell,name:a};this.model.emptyCell=t}},this.onEmptyCellColorChange=e=>{let{color:a}=e.detail;if(a!==void 0){let t=this.model.emptyCell,i={...t,symbol:{...t?.symbol,type:q.SFS,color:a,outline:t?.symbol?.outline&&{...t.symbol.outline,color:a}}};this.model.emptyCell=i}},this.availableColorRamps=[],this.layerFieldsInfo=[],this.open=!1,this.arcgisChartsConfigDataChangeError=M()}static{this.properties={availableColorRamps:16,aggregationLabel:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=se}connectedCallback(){super.connectedCallback(),this.loadColorRampFromArcGIS()}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=W(this.model.aggregationType,this.commonStrings)}disconnectedCallback(){super.disconnectedCallback(),this.model?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}loadColorRampFromArcGIS(){let e=b.esriColorRamps;this.allColorRamps=e,this.availableColorRamps=this.allColorRamps}getSelectedOrDefaultColorRampName(){return this.model.colorRampName??(j(this.model?.config)?b.defaultColorRampForCharts?.name:void 0)}getRequestedBreaksCount(){return this.requestedBreaksCount??this.model.breaksCount??x.classBreaks.breaksCount}getFirstDayOfWeek(){let{lang:e}=_(this.el??document.documentElement),a=I(e);return V.local().setLocale(e).startOf("week",{useLocaleWeeks:a!==N}).weekday}applyCalendarTypePreset(e){switch(e){case y.YearByMonthAndDayOfMonth:{let a={type:p.CalendarDateParts,unit:u.DayOfMonth},t={type:p.CalendarDateParts,unit:u.MonthOfYear};this.model.xTemporalBinning=a,this.model.yTemporalBinning=t;break}case y.WeekByDayOfWeekAndHourOfDay:{let a={type:p.CalendarDateParts,unit:u.HourOfDay},t={type:p.CalendarDateParts,unit:u.DayOfWeek};this.model.firstDayOfWeek=this.getFirstDayOfWeek(),this.model.xTemporalBinning=a,this.model.yTemporalBinning=t;break}}}async generateClassBreaks(e=!1){let a=[],t=this.model.chartRenderer?.classBreakInfos,i=J(Q);return i&&(a=await G({data:i,xAxisField:this.model.xAxisField,classificationMethod:this.model.classificationMethod,breaksCount:this.model.breaksCount,colorRampName:this.model.colorRampName,availableColorRamps:this.availableColorRamps,existingClassBreakInfos:t,useExistingColors:!e,isColorRampFlipped:this.model.isColorRampFlipped})),a}applyGeneratedClassBreaks(e,a){if(this.model.chartRenderer={type:"classBreaks",field:K.valueField,classBreakInfos:e},this.model.heatRulesType!==C.Renderer&&(this.model.heatRulesType=C.Renderer),this.model.classificationMethod!==f.manual){let t=e.length||a;this.model.breaksCount!==t&&(this.model.breaksCount=t)}}async generateAndUpdateClassBreaks(e=!1){let a=this.getRequestedBreaksCount(),t=await this.generateClassBreaks(e);z({currentBreaks:t,configBreaks:this.model.chartRenderer?.classBreakInfos??[],treatReversedColorsAsEqual:!e})&&this.applyGeneratedClassBreaks(t,a)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}getCorrectedXAxisFieldValue(){return Y({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":R(this.layerFieldsInfo,this.model.xAxisField)}onXAxisFieldSelect(e){this.contentKind=s.xAxisField,this.setupPopover(e)}onNumericFieldSelect(e){this.contentKind=s.numericFields,this.setupPopover(e)}onCalendarTypeSelect(e){this.contentKind=s.calendarType,this.setupPopover(e)}onClassBreakMethodSelect(e){this.contentKind=s.classBreakMethod,this.setupPopover(e)}onColorSchemeSelect(e){this.contentKind=s.colorScheme,this.setupPopover(e)}async onBreaksCountChange(e){let a=O(e.target.value);a<d.min?a=d.min:a>d.max&&(a=d.max),U(a)&&(this.breaksCountElement.value&&(this.breaksCountElement.value.value=a.toString()),this.requestedBreaksCount=a,this.model.breaksCount=a,await this.generateAndUpdateClassBreaks())}onAggregationSelect(e){this.contentKind=s.aggregation,this.setupPopover(e)}onNullSelect(e){this.contentKind=s.null,this.setupPopover(e)}onIncludeLeapDayChange(e){let a=e.target.checked;this.model.includeLeapDay=a}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem?.value}setupPopover(e){e.stopImmediatePropagation(),this.removeHeatChartDataPopover();let a,t,i;switch(this.contentKind){case s.aggregation:a=this.aggregationElement.value,t=this._messages.aggregationHeader,i=this.model.aggregationType;break;case s.xAxisField:a=this.xAxisFieldElement.value,t=this._messages.xAxisField,i=this.model.xAxisField;break;case s.numericFields:a=this.numericFieldsElement.value,t=this._messages.numericField,i=this.model.numericFields?.[0];break;case s.calendarType:a=this.calendarTypeElement.value,t=this._messages.calendarType,i=k(this.model);break;case s.calendarViewType:a=this.calendarViewTypeElement.value,t=this._messages.viewType,i=this.model.viewType;break;case s.classBreakMethod:a=this.classBreakMethodElement.value,t=this._messages.method,i=this.model.classificationMethod;break;case s.colorScheme:a=this.colorSchemeElement.value,t=this._messages.colorScheme,i=this.getSelectedOrDefaultColorRampName();break;case s.null:a=e.target,t=this._messages.null;break}this.heatChartPopover=w(l`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${this.model.isColorRampFlipped}></arcgis-charts-config-heat-chart-popover>`),!document.body.contains(this.heatChartPopover)&&this.heatChartPopover!==null&&document.body.appendChild(this.heatChartPopover)}removeHeatChartDataPopover(){this.heatChartPopover!==null&&(this.heatChartPopover.open=!1,this.heatChartPopover=ae(this.heatChartPopover))}setDefaultPropertiesForCalendarHeatChart(){this.model.yAxisField=this.model.xAxisField,this.model.setYAxisSortOrder(X.Desc),this.model.classificationMethod===void 0&&(this.model.classificationMethod=f.naturalBreaks),this.model.heatRulesType!==C.Renderer&&(this.model.heatRulesType=C.Renderer),this.model.viewType===void 0&&(this.model.viewType=H.singleCalendarView),(this.model.aggregationType===m.Count||this.model.aggregationType===m.Sum)&&this.model.nullPolicy!==h.Zero&&(this.model.nullPolicy=h.Zero),this.model.colorRampName===void 0&&(this.model.colorRampName=b.defaultColorRampForCharts?.name)}renderXAxisFieldSelect(){let e=this.getCorrectedXAxisFieldValue();return l`<arcgis-charts-config-field-picker .label=${e} @click=${this.onXAxisFieldSelect} ${c(this.xAxisFieldElement)}></arcgis-charts-config-field-picker>`}renderAggregation(){return l`<arcgis-charts-config-field-picker .label=${this.model.aggregationType===m.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${c(this.aggregationElement)}></arcgis-charts-config-field-picker>`}renderNumericFieldsSelect(){let e=this.model.numericFields?.[0]===S(this.model.layer).idField?"":R(this.layerFieldsInfo,this.model.numericFields?.[0]);return l`<arcgis-charts-config-field-picker .label=${e} @click=${this.onNumericFieldSelect} ${c(this.numericFieldsElement)}></arcgis-charts-config-field-picker>`}renderCalendarTypeSelect(){let e=k(this.model)??"",a={weekByDayOfWeekAndHourOfDay:this._messages.weekByDayOfWeekAndHourOfDay,yearByMonthAndDayOfMonth:this._messages.yearByMonthAndDayOfMonth},t=e?a[e]??"":"";return l`<arcgis-charts-config-field-picker .label=${t} @click=${this.onCalendarTypeSelect} ${c(this.calendarTypeElement)}></arcgis-charts-config-field-picker>`}renderClassBreakMethodSelect(){let e={equalInterval:this._messages.classBreaksMethod?.equalInterval,manual:this._messages.classBreaksMethod?.manual,naturalBreaks:this._messages.classBreaksMethod?.naturalBreaks,quantile:this._messages.classBreaksMethod?.quantile},a=this.model.classificationMethod?e[L(this.model.classificationMethod)]??"":"";return l`<arcgis-charts-config-field-picker .label=${a} @click=${this.onClassBreakMethodSelect} ${c(this.classBreakMethodElement)}></arcgis-charts-config-field-picker>`}renderColorRampSelect(){let e=this.model.chartRenderer?.classBreakInfos?.map(a=>{let t=a!==void 0?Z(a.symbol.color):"#FFFFFF";return l`<div class=${o(r.colorRampSegment)} style=${B({backgroundColor:t,width:`${100/this.model.breaksCount}%`})}></div>`});return l`<arcgis-charts-config-field-picker label @click=${this.onColorSchemeSelect} ${c(this.colorSchemeElement)}><div slot=fieldPickerSlot class=${o(r.colorRamp)}>${e}</div></arcgis-charts-config-field-picker>`}renderClassBreaksTable(){let e=this.model.chartRenderer?.classBreakInfos??[];return l`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map(a=>l`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3]/255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}renderNullUI(){let e=this.model.emptyCell,a=this._messages.null,t=e?.symbol?.color??x.grayColor,[i,g,v,$]=[...t],F=`rgba(${i},${g},${v},${$/255})`;return l`<calcite-list label class=${o(r.list)} selection-mode=none ${c(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${B({color:F})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}renderEmptyBins(){return l`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Zero} .checked=${this.model.nullPolicy===h.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Null} .checked=${this.model.nullPolicy===h.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderXAxisFieldSelect(),a=this.renderAggregation(),t=this.renderNumericFieldsSelect(),i=this.renderCalendarTypeSelect(),g=this.renderClassBreakMethodSelect(),v=this.renderColorRampSelect(),$=this.renderClassBreaksTable(),F=this.renderNullUI(),te=this.renderEmptyBins();return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${i}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${g}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${d.min} .max=${d.max} .disabled=${this.model.classificationMethod===void 0||this.model.classificationMethod===f.manual} step=1 .value=${ee(this.model.breaksCount,5)} @calciteInputInput=${this.onBreaksCountChange} ${c(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${v}</calcite-label>${F}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${$}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${te}</calcite-label>${k(this.model)===y.YearByMonthAndDayOfMonth?l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>`:null}`}};D("arcgis-charts-config-heat-chart-data",E);return E},a,b,e,g,i,j)
@@ -1,3 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{A as M,Ba as pe,Da as he,b as ue,g as ce,i as fe,ka as K,o as de,xa as ge}from"./ZUN46CYQ.js";import{b as G,c as le,f as A}from"./KX7KGXKQ.js";import{q as ie}from"./NGXRBJKL.js";import{a as _}from"./QYRHZJH3.js";import{a as d,c as ae,e as ne,f as se,h as z,j as oe,k as L}from"./PWJBGZPW.js";var q=function(){return q=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},q.apply(this,arguments)},J={exports:{}},g={},ee={exports:{}},O={};function ve(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function Xe(e,t,r){}function qe(e,t,r){}var je=/javascript\s*\:/img;function Qe(e,t){return je.test(t)?"":t}O.whiteList=ve();O.getDefaultWhiteList=ve;O.onAttr=Xe;O.onIgnoreAttr=qe;O.safeAttrValue=Qe;var Ye={indexOf:function(e,t){var r,i;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var i,a;if(Array.prototype.forEach)return e.forEach(t,r);for(i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},N=Ye;function Ze(e,t){e=N.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,i=!1,a=0,n=0,s="";function l(){if(!i){var u=N.trim(e.slice(a,n)),c=u.indexOf(":");if(c!==-1){var p=N.trim(u.slice(0,c)),h=N.trim(u.slice(c+1));if(p){var m=t(a,s.length,p,h,u);m&&(s+=m+"; ")}}}a=n+1}for(;n<r;n++){var o=e[n];if(o==="/"&&e[n+1]==="*"){var f=e.indexOf("*/",n+2);if(f===-1)break;n=f+1,a=n+1,i=!1}else o==="("?i=!0:o===")"?i=!1:o===";"?i||l():o===`
3
- `&&l()}return N.trim(s)}var Ke=Ze,$=O,Je=Ke;function me(e){return e==null}function et(e){var t={};for(var r in e)t[r]=e[r];return t}function xe(e){e=et(e||{}),e.whiteList=e.whiteList||$.whiteList,e.onAttr=e.onAttr||$.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||$.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||$.safeAttrValue,this.options=e}xe.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,i=r.whiteList,a=r.onAttr,n=r.onIgnoreAttr,s=r.safeAttrValue,l=Je(e,function(o,f,u,c,p){var h=i[u],m=!1;if(h===!0?m=h:typeof h=="function"?m=h(c):h instanceof RegExp&&(m=h.test(c)),m!==!0&&(m=!1),c=s(u,c),!!c){var y={position:f,sourcePosition:o,source:p,isWhite:m};if(m){var b=a(u,c,y);return me(b)?u+":"+c:b}else{var b=n(u,c,y);if(!me(b))return b}}});return l};var tt=xe;(function(e,t){var r=O,i=tt;function a(s,l){var o=new i(l);return o.process(s)}t=e.exports=a,t.FilterCSS=i;for(var n in r)t[n]=r[n]})(ee,ee.exports);var te=ee.exports,re={indexOf:function(e,t){var r,i;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var i,a;if(Array.prototype.forEach)return e.forEach(t,r);for(i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},rt=te.FilterCSS,it=te.getDefaultWhiteList,j=re;function Ae(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Ce=new rt;function at(e,t,r){}function nt(e,t,r){}function st(e,t,r){}function ot(e,t,r){}function Te(e){return e.replace(ut,"&lt;").replace(ct,"&gt;")}function lt(e,t,r,i){if(r=Fe(r),t==="href"||t==="src"){if(r=j.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(H.lastIndex=0,H.test(r))return""}else if(t==="style"){if(be.lastIndex=0,be.test(r)||(ye.lastIndex=0,ye.test(r)&&(H.lastIndex=0,H.test(r))))return"";i!==!1&&(i=i||Ce,r=i.process(r))}return r=Oe(r),r}var ut=/</g,ct=/>/g,ft=/"/g,dt=/&quot;/g,gt=/&#([a-zA-Z0-9]*);?/gim,pt=/&colon;?/gim,ht=/&newline;?/gim,H=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,be=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ye=/u\s*r\s*l\s*\(.*/gi;function we(e){return e.replace(ft,"&quot;")}function Le(e){return e.replace(dt,'"')}function _e(e){return e.replace(gt,function(r,i){return i[0]==="x"||i[0]==="X"?String.fromCharCode(parseInt(i.substr(1),16)):String.fromCharCode(parseInt(i,10))})}function ke(e){return e.replace(pt,":").replace(ht," ")}function Pe(e){for(var t="",r=0,i=e.length;r<i;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return j.trim(t)}function Fe(e){return e=Le(e),e=_e(e),e=ke(e),e=Pe(e),e}function Oe(e){return e=we(e),e=Te(e),e}function mt(){return""}function bt(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function i(s){return r?!0:j.indexOf(e,s)!==-1}var a=[],n=!1;return{onIgnoreTag:function(s,l,o){if(i(s))if(o.isClosing){var f="[/removed]",u=o.position+f.length;return a.push([n!==!1?n:o.position,u]),n=!1,f}else return n||(n=o.position),"[removed]";else return t(s,l,o)},remove:function(s){var l="",o=0;return j.forEach(a,function(f){l+=s.slice(o,f[0]),o=f[1]}),l+=s.slice(o),l}}}function yt(e){for(var t="",r=0;r<e.length;){var i=e.indexOf("<!--",r);if(i===-1){t+=e.slice(r);break}t+=e.slice(r,i);var a=e.indexOf("-->",i);if(a===-1)break;r=a+3}return t}function St(e){var t=e.split("");return t=t.filter(function(r){var i=r.charCodeAt(0);return i===127?!1:i<=31?i===10||i===13:!0}),t.join("")}g.whiteList=Ae();g.getDefaultWhiteList=Ae;g.onTag=at;g.onIgnoreTag=nt;g.onTagAttr=st;g.onIgnoreTagAttr=ot;g.safeAttrValue=lt;g.escapeHtml=Te;g.escapeQuote=we;g.unescapeQuote=Le;g.escapeHtmlEntities=_e;g.escapeDangerHtml5Entities=ke;g.clearNonPrintableCharacter=Pe;g.friendlyAttrValue=Fe;g.escapeAttrValue=Oe;g.onIgnoreTagStripAll=mt;g.StripTagBody=bt;g.stripCommentTag=yt;g.stripBlankChar=St;g.cssFilter=Ce;g.getDefaultCSSWhiteList=it;var Q={},k=re;function vt(e){var t=k.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=k.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function xt(e){return e.slice(0,2)==="</"}function At(e,t,r){var i="",a=0,n=!1,s=!1,l=0,o=e.length,f="",u="";e:for(l=0;l<o;l++){var c=e.charAt(l);if(n===!1){if(c==="<"){n=l;continue}}else if(s===!1){if(c==="<"){i+=r(e.slice(a,l)),n=l,a=l;continue}if(c===">"){i+=r(e.slice(a,n)),u=e.slice(n,l+1),f=vt(u),i+=t(n,i.length,f,u,xt(u)),a=l+1,n=!1;continue}if(c==='"'||c==="'")for(var p=1,h=e.charAt(l-p);h.trim()===""||h==="=";){if(h==="="){s=c;continue e}h=e.charAt(l-++p)}}else if(c===s){s=!1;continue}}return a<e.length&&(i+=r(e.substr(a))),i}var Ct=/[^a-zA-Z0-9\\_:.-]/gim;function Tt(e,t){var r=0,i=0,a=[],n=!1,s=e.length;function l(p,h){if(p=k.trim(p),p=p.replace(Ct,"").toLowerCase(),!(p.length<1)){var m=t(p,h||"");m&&a.push(m)}}for(var o=0;o<s;o++){var f=e.charAt(o),u,c;if(n===!1&&f==="="){n=e.slice(r,o),r=o+1,i=e.charAt(r)==='"'||e.charAt(r)==="'"?r:Lt(e,o+1);continue}if(n!==!1&&o===i){if(c=e.indexOf(f,o+1),c===-1)break;u=k.trim(e.slice(i+1,c)),l(n,u),n=!1,o=c,r=o+1;continue}if(/\s|\n|\t/.test(f))if(e=e.replace(/\s|\n|\t/g," "),n===!1)if(c=wt(e,o),c===-1){u=k.trim(e.slice(r,o)),l(u),n=!1,r=o+1;continue}else{o=c-1;continue}else if(c=_t(e,o-1),c===-1){u=k.trim(e.slice(r,o)),u=Se(u),l(n,u),n=!1,r=o+1;continue}else continue}return r<e.length&&(n===!1?l(e.slice(r)):l(n,Se(k.trim(e.slice(r))))),k.trim(a.join(" "))}function wt(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function Lt(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function _t(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function kt(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Se(e){return kt(e)?e.substr(1,e.length-2):e}Q.parseTag=At;Q.parseAttr=Tt;var Pt=te.FilterCSS,x=g,Be=Q,Ft=Be.parseTag,Ot=Be.parseAttr,X=re;function U(e){return e==null}function Bt(e){var t=X.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=X.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=X.trim(e.slice(0,-1))),{html:e,closing:r}}function Rt(e){var t={};for(var r in e)t[r]=e[r];return t}function Mt(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(i){return i.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function Re(e){e=Rt(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=x.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Mt(e.whiteList||e.allowList):e.whiteList=x.whiteList,e.onTag=e.onTag||x.onTag,e.onTagAttr=e.onTagAttr||x.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||x.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||x.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||x.safeAttrValue,e.escapeHtml=e.escapeHtml||x.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Pt(e.css))}Re.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,i=r.whiteList,a=r.onTag,n=r.onIgnoreTag,s=r.onTagAttr,l=r.onIgnoreTagAttr,o=r.safeAttrValue,f=r.escapeHtml,u=t.cssFilter;r.stripBlankChar&&(e=x.stripBlankChar(e)),r.allowCommentTag||(e=x.stripCommentTag(e));var c=!1;r.stripIgnoreTagBody&&(c=x.StripTagBody(r.stripIgnoreTagBody,n),n=c.onIgnoreTag);var p=Ft(e,function(h,m,y,b,Y){var R={sourcePosition:h,position:m,isClosing:Y,isWhite:Object.prototype.hasOwnProperty.call(i,y)},P=a(y,b,R);if(!U(P))return P;if(R.isWhite){if(R.isClosing)return"</"+y+">";var W=Bt(b),Z=i[y],D=Ot(W.html,function(T,w){var E=X.indexOf(Z,T)!==-1,F=s(y,T,w,E);return U(F)?E?(w=o(y,T,w,u),w?T+'="'+w+'"':T):(F=l(y,T,w,E),U(F)?void 0:F):F});return b="<"+y,D&&(b+=" "+D),W.closing&&(b+=" /"),b+=">",b}else return P=n(y,b,R),U(P)?f(b):P},f);return c&&(p=c.remove(p)),p};var It=Re;(function(e,t){var r=g,i=Q,a=It;function n(l,o){var f=new a(o);return f.process(l)}t=e.exports=n,t.filterXSS=n,t.FilterXSS=a,(function(){for(var l in r)t[l]=r[l];for(var o in i)t[o]=i[o]})();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(J,J.exports);var I=J.exports,Et=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},Me=(function(){function e(t,r){var i=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=q(q({},I.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,l,o){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?i.sanitizeUrl(l):I.safeAttrValue(n,s,l,o)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var a;t&&!r?a=t:t&&r?(a=Object.create(this.arcgisFilterOptions),a.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(n){if(n==="whiteList")a.whiteList=i._extendObjectOfArrays([i.arcgisWhiteList,t.whiteList||{}]);else if(n==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(l){return a.css.whiteList[l]=s[l]})}else a[n]=t[n]})):(a=Object.create(this.arcgisFilterOptions),a.whiteList=this.arcgisWhiteList,a.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=a,this._xssFilter=new I.FilterXSS(a)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var i=(r??{}).isProtocolRequired,a=i===void 0?!0:i,n=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",l=/^#/.test(t),o=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||l||o?I.escapeAttrValue(t):!n&&!a?I.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,i,a){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,i,a):I.safeAttrValue(t,r,i,a)},e.prototype.validate=function(t,r){r===void 0&&(r={});var i=this.sanitize(t,r);return{isValid:t===i,sanitized:i}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(i){return r._entityMap[i]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(i,a){return r.test(i)?i:"&#x".concat(Number(t.charCodeAt(a)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(i){Object.keys(i).forEach(function(a){Array.isArray(i[a])&&Array.isArray(r[a])?r[a]=r[a].concat(i[a]):r[a]=i[a]})}),r},e.prototype._iterateOverObject=function(t,r){var i=this;r===void 0&&(r={});try{var a=!1,n=void 0;if(Array.isArray(t))n=t.reduce(function(l,o){var f=i.validate(o,r);return f.isValid?l.concat([o]):(a=!0,l.concat([f.sanitized]))},[]);else if(Et(t)){var s=Object.keys(t);n=s.reduce(function(l,o){var f=t[o],u=i.validate(f,r);return u.isValid?l[o]=f:(a=!0,l[o]=u.sanitized),l},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return a?n:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e})();var zt={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},er={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Nt={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:ne.Right},footer:{wrap:!0,horizontalCenter:"center",verticalCenter:"middle",align:"center"},axisLabel:{rotation:0,align:"center",horizontalCenter:"center",verticalCenter:"top",dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:"left",verticalCenter:"bottom",dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:"center",verticalCenter:"middle",dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:"center",valign:"middle",rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:"center",valign:"middle",rotation:270,wrap:!0},titleLabel:{align:"center",wrap:!0},subtitleLabel:{align:"center",wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:"right",align:"right",verticalCenter:"middle",wrap:!0},horizontalLineGuideLabels:{horizontalCenter:"right",align:"right",verticalCenter:"top",wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:"center",verticalCenter:"top",valign:"top"},verticalLineGuideLabels:{horizontalCenter:"right",verticalCenter:"bottom",valign:"top",wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:A.SLS,style:G.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:"center",verticalCenter:"middle"},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:"center",horizontalCenter:"center",valign:"bottom",verticalCenter:"top",dy:-3},dataLabelRotated:{align:"right",horizontalCenter:"right",valign:"middle",verticalCenter:"middle",dx:2},dataLabelStackedRotated:{align:"center",horizontalCenter:"center",valign:"middle",verticalCenter:"middle"},dataLabelStackedNonRotated:{align:"center",horizontalCenter:"center",valign:"middle",verticalCenter:"middle"},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:oe.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:se.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:9,markerStyle:le.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:he,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:de.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:A.SFS,color:[210,210,210,255*fe]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:z.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],grayColor:M,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",guideTooltipPosition:"pointer",markerTooltipPosition:"fixed",sliceTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1,tileSize:50,diagonalTileSize:1200},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalXValue:"arcgis_charts_original_x_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_x_axis_field",xAxisDisplayField:"arcgis_charts_x_axis_display_field",nullValue:"arcgis_charts_null",emptyStringValue:"arcgis_charts_empty",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",rendererSymbolFieldForHistogram:"symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:A.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:A.SLS,width:3}},tooltipWidth:300,tooltipFontSize:14,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:zt.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotY:"arcgis_charts_box_plot_y",boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_with_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",firstTemporalBin:"is_arcgis_charts_first_bin",options:{hideEmptySeries:!0,showEmptySeries:!1,replaceNoValueCategoryWithZero:!0,hideZeroCountCategories:!1,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",fillSymbol:{type:A.SFS,color:M,outline:{type:A.SLS,style:G.Solid,color:M,width:1}},markerSymbol:{type:A.SMS,color:M,outline:{type:A.SLS,style:G.Solid,color:M,width:1}}},classBreaks:{breaksCount:5}},B={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotC1MonoField:"boxPlotC1MonoField",BoxPlotC2MultiFields:"boxPlotC2MultiFields",BoxPlotC3MonoFieldAndCategory:"boxPlotC3MonoFieldAndCategory",BoxPlotC4MultiFieldsAndCategory:"boxPlotC4MultiFieldsAndCategory",BoxPlotC5MonoFieldAndSplitBy:"boxPlotC5MonoFieldAndSplitBy",BoxPlotC6MultiFieldsAndSplitBy:"boxPlotC6MultiFieldsAndSplitBy",BoxPlotC7MonoFieldAndCategoryAndSplitBy:"boxPlotC7MonoFieldAndCategoryAndSplitBy"},tr={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"},C={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"};function rr(e){return e?.colorMatch??!1}function ir(e){let t=K();if(e!==void 0){let r=_(e.series);(r===d.BarSeries||r===d.LineSeries||r===d.ComboLineAndBarSeries||r===d.BoxPlotSeries)&&(t=e.rotated??K())}return t}function ar(e){return e?.map(t=>t.type)??[]}function nr(e){let t=e?.stackedType;if(t===void 0&&e!==void 0){let r=_(e.series);(r===d.BarSeries||r===d.LineSeries||r===d.ComboLineAndBarSeries||r===d.RadarSeries)&&(t=pe())}return t}function Wt(e){let t=e;return t=t.replace(/'/gu,"''"),t=t.replace(/[/\\"|[\]\\]/gu,"\\$&"),t}function Dt(e){let t=!1;if(typeof e!="number"){let r=new Intl.Segmenter;t=Array.from(r.segment(e),i=>i.segment).some(i=>i.charCodeAt(0)>255)}return t}function sr(e){let t=e,r="";e.startsWith("'")&&e.endsWith("'")&&(t=e.slice(1,-1),r="'"),t=t.replace(/'/gu,"''");let i="";return Dt(t)&&(i="N"),`${i}${r}${t}${r}`}function or(e){let{value:t,keepSurroundingQuotes:r,escape:i}=e,a=t?.trim();if(!Ie(a)){let n="";a.startsWith("'")&&a.endsWith("'")&&(a=a.slice(1,-1),r&&(n="'")),i&&(a=Wt(a)),a=`${n}${a}${n}`}return a}function lr(e){let{count:t,seriesCount:r,chartType:i,chartLimits:a}=e,{behaviorAfterLimit:n}=a??{},s=!0;if(n!==ue.RenderUpToTheLimit){let{maxBarChartSeriesCount:l,maxBarUniqueSeriesCountTotal:o,maxBarTwoSeriesCountPerSeries:f,maxBarTwoSeriesCountTotal:u,maxBarThreePlusSeriesCountPerSeries:c,maxBarThreePlusSeriesCountTotal:p,maxLineChartSeriesCount:h,maxLineUniqueSeriesCountTotal:m,maxLineTwoSeriesCountPerSeries:y,maxLineTwoSeriesCountTotal:b,maxLineThreePlusSeriesCountPerSeries:Y,maxLineThreePlusSeriesCountTotal:R,maxRadarChartSeriesCount:P,maxRadarUniqueSeriesCountTotal:W,maxRadarTwoSeriesCountPerSeries:Z,maxRadarTwoSeriesCountTotal:D,maxRadarThreePlusSeriesCountPerSeries:T,maxRadarThreePlusSeriesCountTotal:w,maxPieChartSliceCountTotal:E,maxGaugeByFeaturesLimit:F,maxBoxPlotSeriesCount:Ee,maxBoxUniqueSeriesCountTotal:ze,maxBoxTwoSeriesCountTotal:Ne,maxBoxTwoSeriesCountPerSeries:We,maxBoxThreePlusSeriesCountTotal:De,maxBoxThreePlusSeriesCountPerSeries:Ve,maxHeatChartCellLimit:Ge,serialChart:{series:V,elements:S},heatChart:{cells:$e},pieChart:{slices:He},gauge:{features:Ue}}=ge(a);switch(i){case d.BarSeries:case d.ComboLineAndBarSeries:{let v=t/r;r<=(l??V)?r===0?s=!0:r===1?s=t<=(o??S):r===2?s=t<=(u??S)&&v<=f:r>2&&(s=t<=(p??S)&&v<=c):s=!1}break;case d.LineSeries:{let v=t/r;r<=(h??V)?r===0?s=!0:r===1?s=t<=(m??S):r===2?s=t<=(b??S)&&v<=y:r>2&&(s=t<=(R??S)&&v<=Y):s=!1}break;case d.RadarSeries:{let v=t/r;r<=(P??V)?r===0?s=!0:r===1?s=t<=(W??S):r===2?s=t<=(D??S)&&v<=Z:r>2&&(s=t<=(w??S)&&v<=T):s=!1}break;case d.PieSeries:s=t<=(E??He);break;case d.BoxPlotSeries:{let v=t/r;r<=(Ee??V)?r===0?s=!0:r===1?s=t<=(ze??S):r===2?s=t<=(Ne??S)&&v<=We:r>2&&(s=t<=(De??S)&&v<=Ve):s=!1}break;case d.HeatSeries:s=t<=(Ge??$e);break;case d.GaugeSeries:s=t<=(F??Ue);break}}return s}function ur(e=[],t){let r=e.find(i=>i.name===t)?.alias;return r!==""?r??t:t}function cr(e=[],t){let r=e.find(i=>i.alias===t)?.name;return r!==""?r??t:t}function fr(e){let t=!1;switch(_(e)){case d.HeatSeries:case d.PieSeries:t=!0;break;case d.BarSeries:case d.LineSeries:case d.RadarSeries:case d.ComboLineAndBarSeries:case d.BoxPlotSeries:t=e.length>1;break;case d.HistogramSeries:case d.ScatterSeries:{let r=e[0];t=r.overlays!==void 0&&Object.values(r.overlays).some(i=>i.created===!0);break}}return t}function Vt(e){let t=!0;return _(e.series)===d.ScatterSeries&&(t=e.series.length===1),t}function Gt(e){let t=!0;return _(e.series)===d.HistogramSeries&&(t=e.series.length<=1&&e.series[0].type===d.HistogramSeries&&(!("dataTransformationType"in e.series[0])||e.series[0].dataTransformationType!==void 0&&Object.values(ae).includes(e.series[0].dataTransformationType))),t}function $t(e){let t=!0;return _(e.series)===d.PieSeries&&(t=e.series.length<=1),t}function dr(e,t){let r=_(t?.series),i=r!==void 0&&e.includes(r);if(i&&t!==void 0)switch(r){case d.HistogramSeries:i=Gt(t);break;case d.ScatterSeries:i=Vt(t);break;case d.PieSeries:i=$t(t);break}return i}function Ie(e){return e==null||typeof e=="string"&&e.trim()===""}function Ht(e,t){let r=t.find(i=>i in e);return{isInItem:r!==void 0,expr:r}}function gr(e){return Ht(e,ce)}function pr(e,t){let r;switch(e){case L.Second:r=t.seconds??"";break;case L.Minute:r=t.minutes??"";break;case L.Hour:r=t.hours??"";break;case L.Day:r=t.days??"";break;case L.Week:r=t.weeks??"";break;case L.Month:r=t.months??"";break;case L.Year:r=t.years??"";break;default:r="";break}return r}function hr(e){let t;switch(e){case C.Mean:t=1;break;case C.Median:t=2;break;case C.StdDev:t=3;break;case C.Normal:default:t=0;break}return t}function mr(e,t){if(t!==void 0){let{seriesId:r,overlayType:i,visible:a}=e.detail,n;switch(i){case C.Mean:t.series[0].type===d.HistogramSeries&&(n=t.series[0].overlays?.mean);break;case C.Median:t.series[0].type===d.HistogramSeries&&(n=t.series[0].overlays?.median);break;case C.StdDev:t.series[0].type===d.HistogramSeries&&(n=t.series[0].overlays?.standardDeviation);break;case C.Normal:t.series[0].type===d.HistogramSeries&&(n=t.series[0].overlays?.comparisonDistribution);break;case C.Trendline:t.series[0].type===d.ScatterSeries&&(n=t.series[0].overlays?.trendLine);break;default:n=t.series.find(s=>s.id===r);break}n!==void 0&&(n.visible=a)}}function br(e){return new Me().sanitize(e)}function yr(e){return e!=null&&!Number.isNaN(e)&&Number.isFinite(e)}function Sr(e,t){let r={fieldToSort:""};if(!Ie(e)){let i=e.trim(),a=i.split(" ").at(-1)?.toUpperCase();a===z.Ascending||a===z.Descending?r={fieldToSort:i.substring(0,i.lastIndexOf(" ")),orderBy:a}:(r={fieldToSort:i},t!==!1&&(r.orderBy=z.Ascending))}return r}function vr(e){return e===B.BarAndLineSplitBy||e===B.BarAndLineSplitByNoAggregation||e===B.BoxPlotC5MonoFieldAndSplitBy||e===B.BoxPlotC6MultiFieldsAndSplitBy||e===B.BoxPlotC7MonoFieldAndCategoryAndSplitBy}function xr(e){return e?.selectionPixelTarget?ie(e.selectionPixelTarget.pixelRanges):e?.selectionOIDs===void 0||e.selectionOIDs.length===0}function Ar(e={arrayA:[],arrayB:[],getKey:t=>t}){let{arrayA:t,arrayB:r,getKey:i}=e;if(r.length===0||t.length===0)return t;let a=new Map;r.forEach((o,f)=>{let u=i(o);a.set(u,f)});let n=[],s=[];t.forEach((o,f)=>{let u=i(o);a.has(u)&&(n.push(f),s.push(o))}),s.sort((o,f)=>{let u=i(o),c=i(f);return a.get(u)-a.get(c)});let l=[...t];return n.forEach((o,f)=>{l[o]=s[f]}),l}function Cr(e,t){return(e===B.BarAndLineNoAggregation||e===B.BarAndLineSplitByNoAggregation)&&t!==void 0?t.x:Nt.xAxisField}function Tr(e){let{r:t,g:r,b:i,a=1}=e,n=Math.round((1-a)*255+a*t),s=Math.round((1-a)*255+a*r),l=Math.round((1-a)*255+a*i);return .299*n+.587*s+.114*l>128}export{zt as a,er as b,Nt as c,B as d,tr as e,C as f,rr as g,ir as h,ar as i,nr as j,sr as k,or as l,lr as m,ur as n,cr as o,fr as p,dr as q,Ie as r,Ht as s,gr as t,pr as u,hr as v,mr as w,br as x,yr as y,Sr as z,vr as A,xr as B,Ar as C,Cr as D,Tr as E};