@arcgis/charts-components 5.0.0-next.100 → 5.0.0-next.101
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.
- package/dist/cdn/{NUWYHOZK.js → 27AHM24Q.js} +2 -2
- package/dist/cdn/{XE4LSCVM.js → 2DNKKJTH.js} +2 -2
- package/dist/cdn/{BGHWZ2PV.js → 2KJOHYQC.js} +2 -2
- package/dist/cdn/{VLQEA5IA.js → 2OLICBJA.js} +2 -2
- package/dist/cdn/{IIJRNQ7R.js → 2TA5DE3I.js} +2 -2
- package/dist/cdn/{2W64WCTE.js → 32KYBKTV.js} +2 -2
- package/dist/cdn/{OIGF6MEC.js → 33472PYB.js} +2 -2
- package/dist/cdn/{NJBFHFPG.js → 3F6RDWKI.js} +2 -2
- package/dist/cdn/{QXZUT3WC.js → 3HWORVIX.js} +2 -2
- package/dist/cdn/{PZ4RQJMG.js → 3KEBSKVB.js} +2 -2
- package/dist/cdn/{E4J5IC2F.js → 3YQGAXKH.js} +2 -2
- package/dist/cdn/{5IACGB5M.js → 4EFZ753H.js} +2 -2
- package/dist/cdn/{SOI5K6VG.js → 4G6D3ASD.js} +2 -2
- package/dist/cdn/{KR24YUPN.js → 4LJL2V4J.js} +2 -2
- package/dist/cdn/{OM3B7QKB.js → 4M6MMWNB.js} +2 -2
- package/dist/cdn/{LVVFAHCI.js → 4RJW7QM4.js} +2 -2
- package/dist/cdn/{EPNAMG2T.js → 4XL6PLOJ.js} +2 -2
- package/dist/cdn/{CDKPLF7Q.js → 555UMA6Y.js} +2 -2
- package/dist/cdn/{Z4MDWAZD.js → 5LERKJAT.js} +2 -2
- package/dist/cdn/{RSDJIJCJ.js → 5OMKN27U.js} +2 -2
- package/dist/cdn/{QW3SNEDT.js → 5RA562IS.js} +2 -2
- package/dist/cdn/{JW7Z7R2Z.js → 6CE2UCET.js} +2 -2
- package/dist/cdn/{PLB5XHFN.js → 6MKHXKI7.js} +2 -2
- package/dist/cdn/{76NWYZRU.js → 6SKDWHQQ.js} +2 -2
- package/dist/cdn/{FCCRCHW6.js → 6U56V3YP.js} +2 -2
- package/dist/cdn/{JPAWP5UH.js → 6VVH4D5U.js} +2 -2
- package/dist/cdn/{D37DLX6E.js → A54OJAZM.js} +2 -2
- package/dist/cdn/{CDSORAKN.js → AFRWFEMV.js} +2 -2
- package/dist/cdn/{XZIFUTPM.js → AI2OJVG6.js} +2 -2
- package/dist/cdn/{GITB54XZ.js → AIQDY2KX.js} +2 -2
- package/dist/cdn/{XCINYAB5.js → ALPKL3VV.js} +2 -2
- package/dist/cdn/{36G35FPY.js → ATY7JXFA.js} +2 -2
- package/dist/cdn/{OBSMLM3L.js → AVTKFQJC.js} +2 -2
- package/dist/cdn/{OZLXXO72.js → B2O47KO4.js} +2 -2
- package/dist/cdn/{M36JY7W6.js → B45SUSSO.js} +2 -2
- package/dist/cdn/{O5ZCVDZM.js → BBWWDMVH.js} +1 -1
- package/dist/cdn/{UYKGHR7N.js → BCYRG2J4.js} +2 -2
- package/dist/cdn/{CZYUEQ2L.js → BGWUVCCW.js} +2 -2
- package/dist/cdn/{FJT5V64D.js → BTZBM326.js} +2 -2
- package/dist/cdn/{AKDFQM3M.js → BWOQBJOG.js} +2 -2
- package/dist/cdn/{WT5QDI6T.js → BXFF6W6H.js} +2 -2
- package/dist/cdn/{GOWWBRH4.js → C6OZZA5V.js} +2 -2
- package/dist/cdn/{V6JMURLL.js → CC36GLBQ.js} +2 -2
- package/dist/cdn/{DTM3UDCC.js → CCRYWBAV.js} +2 -2
- package/dist/cdn/{DKN74O33.js → CHKIQON5.js} +2 -2
- package/dist/cdn/{PISXVUNH.js → CLJSG7LS.js} +2 -2
- package/dist/cdn/{DYOHZCFM.js → D4NADKB4.js} +2 -2
- package/dist/cdn/{4NHJT4KX.js → DESDGS3U.js} +2 -2
- package/dist/cdn/{GZKO4GBB.js → DL4EL3MD.js} +2 -2
- package/dist/cdn/{YISKMIKQ.js → DXNZYISQ.js} +2 -2
- package/dist/cdn/{ALQSRWN3.js → E3O6ZHPY.js} +2 -2
- package/dist/cdn/{GYXCME6T.js → E4TDR24T.js} +2 -2
- package/dist/cdn/{W3UOQJAH.js → E5O5HYR2.js} +2 -2
- package/dist/cdn/{LLJ3HJRS.js → EGDQ23QT.js} +2 -2
- package/dist/cdn/{6A4J6KMG.js → EPP4NFXJ.js} +2 -2
- package/dist/cdn/{4CHOQ2HR.js → F6J76S2A.js} +2 -2
- package/dist/cdn/{7Z3LML2X.js → FBEE2NDM.js} +2 -2
- package/dist/cdn/{2LU5QUXH.js → FIWGYB2Y.js} +2 -2
- package/dist/cdn/{N5HSTMFG.js → FK6MBQ7W.js} +2 -2
- package/dist/cdn/{NRUH2EDJ.js → FOXALB7A.js} +2 -2
- package/dist/cdn/{YQYTATFC.js → FU4TWM5Q.js} +2 -2
- package/dist/cdn/{GYZZHCA6.js → FXS6L4BL.js} +2 -2
- package/dist/cdn/{OH27TJEW.js → GBJG5ODR.js} +2 -2
- package/dist/cdn/{TVHOQEAZ.js → GGNKHOF5.js} +2 -2
- package/dist/cdn/{A52PD67M.js → GKHPYIG3.js} +2 -2
- package/dist/cdn/{272N4XLX.js → GQXEW6KM.js} +2 -2
- package/dist/cdn/{HQH4ALSN.js → GYWROIW5.js} +1 -1
- package/dist/cdn/{MLDBIXQN.js → H45NE4P7.js} +2 -2
- package/dist/cdn/{AIOY2TQV.js → I7IKHGFR.js} +2 -2
- package/dist/cdn/{6Q2U35CX.js → ICI73USB.js} +2 -2
- package/dist/cdn/{JH6B2UFJ.js → ICUVZDZK.js} +2 -2
- package/dist/cdn/{GXRUTXBX.js → IENCRGGF.js} +2 -2
- package/dist/cdn/{GVK7XBW2.js → IFCY263I.js} +2 -2
- package/dist/cdn/{PCJDA5LJ.js → IGRJ7GDR.js} +2 -2
- package/dist/cdn/{QPXKOLVL.js → IQLHR7E5.js} +1 -1
- package/dist/cdn/{POG32JP7.js → IRUYMP4U.js} +2 -2
- package/dist/cdn/{IGN2RZYC.js → IS3CPHVE.js} +2 -2
- package/dist/cdn/{NVRDJ3GB.js → IWYUSR43.js} +2 -2
- package/dist/cdn/{K5YJWSEM.js → JD5OLHTZ.js} +2 -2
- package/dist/cdn/{XLEOGK6N.js → JHCGQ7NP.js} +2 -2
- package/dist/cdn/{ANGTAYZN.js → JJYGDLWU.js} +2 -2
- package/dist/cdn/{WIBLDW25.js → JKS4IHY3.js} +2 -2
- package/dist/cdn/{3KUMYI4H.js → JRLD3L36.js} +2 -2
- package/dist/cdn/{QOPHLPYF.js → JSXA3HTW.js} +2 -2
- package/dist/cdn/{WBO6PB4U.js → JWLGMCPG.js} +2 -2
- package/dist/cdn/{AV6NTCVG.js → JYIUAA3R.js} +2 -2
- package/dist/cdn/{6EJ23XZO.js → K3347TUU.js} +2 -2
- package/dist/cdn/{KATMNDCR.js → K4PQJJJH.js} +2 -2
- package/dist/cdn/{RWZA6AV6.js → KI3FS4U5.js} +2 -2
- package/dist/cdn/{6G667ERN.js → KRCULZ5S.js} +2 -2
- package/dist/cdn/{BAYISYJQ.js → KVYD5SUN.js} +2 -2
- package/dist/cdn/{TCRSJRPV.js → KWVLQOUB.js} +2 -2
- package/dist/cdn/{5DDEZPQX.js → KYDV6PQ6.js} +2 -2
- package/dist/cdn/{7V5PXPJN.js → L2746EQG.js} +2 -2
- package/dist/cdn/{ULDGSSA5.js → L3AT37DN.js} +2 -2
- package/dist/cdn/{SESALPKD.js → L465OFGG.js} +2 -2
- package/dist/cdn/{MM25ZQNE.js → LLRI2LJO.js} +2 -2
- package/dist/cdn/{TNDWTJGJ.js → LPZ2NQIL.js} +2 -2
- package/dist/cdn/{53UU3NM6.js → LS75INIU.js} +1 -1
- package/dist/cdn/{XXBWHMUP.js → MADGEPEP.js} +2 -2
- package/dist/cdn/{DOFYNQXB.js → MCNBIDPY.js} +2 -2
- package/dist/cdn/{CTZUKA3V.js → MJUDSKVZ.js} +2 -2
- package/dist/cdn/{CP4MCHZD.js → MLXMCZRQ.js} +2 -2
- package/dist/cdn/{VESLBH5K.js → MMRKXO3W.js} +2 -2
- package/dist/cdn/{UBMEJ2CZ.js → NKUEMLKG.js} +2 -2
- package/dist/cdn/{MOUIQIKL.js → NMYKYSJ2.js} +2 -2
- package/dist/cdn/{RR63BGO7.js → NXOUPMI5.js} +2 -2
- package/dist/cdn/{TDL523WI.js → NXOUXEBW.js} +2 -2
- package/dist/cdn/{AJGCPIO2.js → O76MON2U.js} +2 -2
- package/dist/cdn/{SQAQN4KG.js → OA7NXFO3.js} +2 -2
- package/dist/cdn/{WMZRWCO3.js → OAMETNMV.js} +2 -2
- package/dist/cdn/{QRIVXBDJ.js → ODRV5PRR.js} +2 -2
- package/dist/cdn/{RA6AOPCE.js → OH3IKWV6.js} +2 -2
- package/dist/cdn/{KPIRJC5J.js → OO2WULKL.js} +2 -2
- package/dist/cdn/{IKZ4WWI7.js → OXOUWQQ4.js} +2 -2
- package/dist/cdn/{BOJHY6QQ.js → OXP573EZ.js} +2 -2
- package/dist/cdn/{KW2B62OW.js → P2L447Y4.js} +2 -2
- package/dist/cdn/{IGV4RGXK.js → PAPWEURM.js} +2 -2
- package/dist/cdn/{KDFN4MNB.js → PF32Q3YS.js} +2 -2
- package/dist/cdn/{FOYUA4J3.js → PPIDGDDD.js} +2 -2
- package/dist/cdn/{2QXXWQ54.js → PS6DF43M.js} +2 -2
- package/dist/cdn/{OS3PALQ6.js → PSGKKAGR.js} +1 -1
- package/dist/cdn/{M2535NIH.js → PULSZWIM.js} +2 -2
- package/dist/cdn/{AQKEVYBT.js → Q44PVV2F.js} +2 -2
- package/dist/cdn/{5GIO3SIC.js → QHUNULFE.js} +2 -2
- package/dist/cdn/{VYY7DPLQ.js → R4H6GJN3.js} +2 -2
- package/dist/cdn/{6YGUU34Z.js → R4UXY6OA.js} +2 -2
- package/dist/cdn/{HIR3X4WG.js → RI6QC5BD.js} +2 -2
- package/dist/cdn/{5SFYIBFL.js → RPQGCZ3E.js} +2 -2
- package/dist/cdn/{AHW5OAC7.js → RTHLLJP3.js} +2 -2
- package/dist/cdn/{WH6HTB25.js → RWWV5W4Z.js} +1 -1
- package/dist/cdn/{2PW5XEJD.js → RZF47IF3.js} +2 -2
- package/dist/cdn/{QJ6IFE77.js → SEGSRZJQ.js} +2 -2
- package/dist/cdn/{IFJB3AUE.js → SNC3AMZJ.js} +2 -2
- package/dist/cdn/{XFWRGUBY.js → SNHDAWRU.js} +2 -2
- package/dist/cdn/{CM356ERH.js → T3R3IQT7.js} +2 -2
- package/dist/cdn/{I4W73IIW.js → T62XRN7F.js} +2 -2
- package/dist/cdn/{SX4KWVQ6.js → TDNJBA4J.js} +2 -2
- package/dist/cdn/{M6TPHZXP.js → TLXRO7Q2.js} +2 -2
- package/dist/cdn/{RTVCQG52.js → TT7TZTDN.js} +7 -7
- package/dist/cdn/{LZMQPGNC.js → TVALMVP7.js} +2 -2
- package/dist/cdn/{HDFZ27YC.js → UBTWZBIT.js} +2 -2
- package/dist/cdn/{VJHEL5D3.js → UGERICON.js} +2 -2
- package/dist/cdn/{Q37B36IJ.js → UJG3TBLT.js} +2 -2
- package/dist/cdn/{TNJORJQR.js → UK24GJR2.js} +2 -2
- package/dist/cdn/{XHVLBN7H.js → UL3HL623.js} +2 -2
- package/dist/cdn/{F2ZXL4SB.js → UT6KFDX6.js} +2 -2
- package/dist/cdn/{TFGUDIAL.js → UV2WESS2.js} +2 -2
- package/dist/cdn/{575MN5RM.js → V2A2KDWB.js} +2 -2
- package/dist/cdn/{WNF3QWG4.js → VAXHVXXY.js} +2 -2
- package/dist/cdn/{PEKBMXTA.js → VCP53FGH.js} +2 -2
- package/dist/cdn/{FFC3PZRH.js → VHFZLEZ6.js} +2 -2
- package/dist/cdn/{ODPGGRSZ.js → VOAMQ5HT.js} +2 -2
- package/dist/cdn/{5L4SYLLS.js → VXXMXQ7A.js} +2 -2
- package/dist/cdn/{65ACO4RY.js → W5CZ3HGU.js} +2 -2
- package/dist/cdn/{Y4S7R4QZ.js → WAYXOSPU.js} +2 -2
- package/dist/cdn/{WT3ZQPQW.js → WCXGF2MN.js} +2 -2
- package/dist/cdn/{62A6KLYC.js → WW5LYUGZ.js} +2 -2
- package/dist/cdn/{UIYZ34CJ.js → X2RWHESE.js} +2 -2
- package/dist/cdn/{4FCGRN7S.js → XACDGDQ4.js} +2 -2
- package/dist/cdn/{CQ63XHYO.js → XVL3HBCH.js} +2 -2
- package/dist/cdn/{MKVHCVAF.js → XVLAESMP.js} +2 -2
- package/dist/cdn/{BLHZDZMU.js → XY6QW6GZ.js} +2 -2
- package/dist/cdn/{LBS62AS5.js → Y5FHRNKM.js} +2 -2
- package/dist/cdn/{RCHLYLJ7.js → YJDDHRL7.js} +1 -1
- package/dist/cdn/{TW2JOLQN.js → YQL2AXBL.js} +2 -2
- package/dist/cdn/{QKKNGPKM.js → YRDOCLZ6.js} +1 -1
- package/dist/cdn/{F6BXRLVK.js → YVA3BAF2.js} +2 -2
- package/dist/cdn/{DMFEMOTJ.js → Z6GX5XA2.js} +2 -2
- package/dist/cdn/{2FRH47O2.js → ZH3XOGWI.js} +2 -2
- package/dist/cdn/{KLF2736M.js → ZL3ANZAF.js} +2 -2
- package/dist/cdn/{6OU22VZQ.js → ZLB6WLUY.js} +2 -2
- package/dist/cdn/{UTFXLF42.js → ZMULK22B.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +1 -1
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-multi-axes.js +1 -1
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +1 -1
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/series-types.js +1 -1
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/model.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import g from"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import g from"./FBEE2NDM.js";import e from"./RZF47IF3.js";import d from"./R4UXY6OA.js";import c from"./SEGSRZJQ.js";import"./4M6MMWNB.js";import b from"./F6J76S2A.js";import a from"./B2O47KO4.js";import"./BBWWDMVH.js";import"./P2L447Y4.js";import"./PSGKKAGR.js";import{a as f}from"./IQLHR7E5.js";import"./RWWV5W4Z.js";import"./LS75INIU.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Cc:a,J:l,ia:g,pa:S,z:h},{c:y},{Za:p,u:n},{n:u,p:b},v,{a:I,b:L,c:_,d:O}])=>{var z=Object.defineProperty,F=Object.getOwnPropertyDescriptor,c=(m,e,t,r)=>{for(var i=F(e,t),o=m.length-1,d;o>=0;o--)(d=m[o])&&(i=d(e,t,i)||i);return i&&z(e,t,i),i},s=class extends v{constructor(){super(...arguments),this._chartType=f.BarSeries}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.updateSeriesFromLayerFilter(),typeof this.resolveSetup=="function"&&this.resolveSetup()}generateDefaultConfig(){let e=S(this.commonStrings);return e.series=[g({objectIDField:a(this.layerInfo.layer).idField,commonStrings:this.commonStrings})],e}getSeriesHideOversizedSideBySideLabels(e){return I(e,this._config)}setSeriesHideOversizedSideBySideLabels(e,t){L(e,t,this._config)}getSeriesHideOversizedStackedLabels(e){return _(e,this._config)}setSeriesHideOversizedStackedLabels(e,t){O(e,t,this._config)}getSortOrder(){return y(this._config)}resetSeriesStyling(){for(let e=0;e<this.seriesLength;e+=1){let t=this.getSeriesId(e),r=l({colorIndex:e,opacity:h});if(b(r,e,this._config),this.layerInfo!==void 0){let i=p({config:this._config,seriesIndex:e,layerInfo:this.layerInfo,commonStrings:this.commonStrings});i!==a(this.layerInfo.layer).idField&&u(i??t,e,this._config)}}this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,t=!1;if(!e&&this.layerInfo!==void 0)for(let r=0;r<this.seriesLength;r+=1){let i=p({config:this._config,seriesIndex:r,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),o=this.getSeriesName(r);if(i!==void 0&&i!==a(this.layerInfo.layer).idField&&i!==o){t=!0;break}}return e||t}};c([n],s.prototype,"setSeriesHideOversizedSideBySideLabels");c([n],s.prototype,"setSeriesHideOversizedStackedLabels");c([n],s.prototype,"resetSeriesStyling");return s},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e,g)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
4
|
var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Rt=new WeakMap,k=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=Rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Rt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new k(typeof o=="string"?o:o+"",void 0,gt),Ee=(o,...t)=>{let e=o.length===1?o[0]:t.reduce(((s,r,i)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[i+1]),o[0]);return new k(e,o,gt)},It=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet));else for(let e of t){let s=document.createElement("style"),r=Y.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=e.cssText,o.appendChild(s)}},vt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var{is:$e,defineProperty:be,getOwnPropertyDescriptor:_e,getOwnPropertyNames:Ae,getOwnPropertySymbols:Ce,getPrototypeOf:we}=Object,tt=globalThis,kt=tt.trustedTypes,Oe=kt?kt.emptyScript:"",Te=tt.reactiveElementPolyfillSupport,j=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?Oe:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},H=(o,t)=>!$e(o,t),jt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=jt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,e);r!==void 0&&be(this.prototype,t,r)}}static getPropertyDescriptor(t,e,s){let{get:r,set:i}=_e(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=we(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,s=[...Ae(e),...Ce(e)];for(let r of s)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,r]of e)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let r=this._$Eu(e,s);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)e.unshift(vt(r))}else t!==void 0&&e.push(vt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let i=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=s.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r,this[r]=n.fromAttribute(e,i.type)??this._$Ej?.get(r)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let r=this.constructor,i=this[t];if(s??=r.getPropertyOptions(t),!((s.hasChanged??H)(i,e)||s.useDefault&&s.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(r._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:r,wrapped:i},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,i]of s){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((e=>e.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Te?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.0");var $t=globalThis,et=$t.trustedTypes,Ht=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,_t="?"+A,Se=`<${_t}>`,T=document,z=()=>T.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",At=Array.isArray,qt=o=>At(o)||typeof o?.[Symbol.iterator]=="function",Et=`[
|
|
5
5
|
\f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,zt=/>/g,w=RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
|
6
6
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bt=/'/g,Wt=/"/g,Gt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ds=Ct(1),ps=Ct(2),us=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Ft=new WeakMap,O=T.createTreeWalker(T,129);function Kt(o,t){if(!At(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ht!==void 0?Ht.createHTML(t):t}var Qt=(o,t)=>{let e=o.length-1,s=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=V;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===V?u[1]==="!--"?n=Vt:u[1]!==void 0?n=zt:u[2]!==void 0?(Gt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??V,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?Wt:Bt):n===Wt||n===Bt?n=w:n===Vt||n===zt?n=V:(n=w,r=void 0);let g=n===w&&o[a+1].startsWith("/>")?" ":"";i+=n===V?c+Se:h>=0?(s.push(l),c.slice(0,h)+bt+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Kt(o,i+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},W=class o{constructor({strings:t,_$litType$:e},s){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Qt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(bt)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Gt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],z()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],z())}}}else if(r.nodeType===8)if(r.data===_t)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let r=s!==void 0?e._$Co?.[s]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(o),r._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=r:e._$Cl=r),r!==void 0&&(t=S(o,r._$AS(o,t.values),r,s)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=s[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=s[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):qt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=W.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Ft.get(t.strings);return e===void 0&&Ft.set(t.strings,e=new W(t)),e}k(t){At(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,r=0;for(let i of t)r===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[r],s._$AI(i),r++;r<e.length&&(this._$AR(s&&s._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,s,r,i){super(t,e,s,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,r=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||r);r&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Jt={M:bt,P:A,A:_t,C:1,L:Qt,R:st,D:qt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},Pe=$t.litHtmlPolyfillSupport;Pe?.(W,U),($t.litHtmlVersions??=[]).push("3.3.0");var at=(o,t,e)=>{let s=e?.renderBefore??t,r=s._$litPart$;if(r===void 0){let i=e?.renderBefore??null;s._$litPart$=r=new U(t.insertBefore(z(),i),i,void 0,e??{})}return r._$AI(o),r};var wt=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,wt.litElementHydrateSupport?.({LitElement:$});var Ne=wt.litElementPolyfillSupport;Ne?.({LitElement:$});(wt.litElementVersions??=[]).push("4.2.0");var Yt=new Set,Zt;var Xt=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Os=(o,t,e,s)=>{let r=Xt(t);if(s?.once){let n=`${o}${r}${e}`;if(Yt.has(n))return;Yt.add(n)}let i;if(s?.detail){i={};for(let[n,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;Zt?.log.interceptors?.forEach(n=>n(o,r,e,i)),console[o](`[${r}]: ${e}`,i)}else Zt?.log.interceptors?.forEach(n=>n(o,r,e)),console[o](`[${r}]: ${e}`)},te=o=>{let t=`[${Xt(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},F=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var G=Symbol.for("controller"),xe=o=>typeof o=="object"&&o!==null&&(G in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ps=o=>typeof o?.then=="function";var q,x=o=>{q!==o&&(q=o,queueMicrotask(()=>q===o?q=void 0:0))},K=o=>q,N=[],ee=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},se=()=>N,R,Ns=o=>{R!==o&&(R=o,queueMicrotask(()=>R===o?R=void 0:0))},De=()=>{let o=R;return R=void 0,o},oe=async(o,t)=>{let e=lt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(r=>t(r,s))}return e.exports},re=async o=>{let t=lt(o);return await t.ready,t},lt=o=>{let e=K().manager.X(o);if(e!==void 0)return e;if(xe(o))return o;let s=De();if(s!==void 0)return s},ct=!1,xs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ie=(o,t)=>{let e=t>Le?Ue:t/Re,s=0,r=setInterval(()=>{s+=e,s>=t&&(clearInterval(r),o())},e);return r},Le=4e3,Ue=2e3,Re=4;var Me=(o,t,e)=>{let s=Object.keys(o),r=s.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(o);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(o,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(s)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),M=void 0},Ie=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},ke=(o=[K(),...se()],t,e)=>{let s=Array.isArray(o)?o:[o],r=s.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};s.forEach(n=>Me(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of s)if("manager"in n&&n.manager.component===n){Ie(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},je=(o="",t={},e=K())=>{let s={emit:r=>{o===""&&I();let i=new CustomEvent(o,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return o===""&&ke(void 0,r=>o=r.key,s),s},He=je.bind(null,""),ce;ce=G;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[ce]=!0,this.#a=[];let e=this,s=t??K(new.target.name);e.#o=s,e.ready=e.P.promise,e.#n=ae(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(ee(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(te(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?ae(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),oe}get useRef(){return x(this.#o),re}get useRefSync(){return x(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ne,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ne,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ne(o){p(o,void 0,this)}var le=Ot,ae=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,r,i){if(!((r==="exports"||r==="_exports")&&r in s&&s[r]===e)&&(r in s||r in Promise.prototype||typeof r=="symbol"))return typeof s=="function"?s[r]:Reflect.get(s,r,i)}},e=new Proxy(o,t);return e};var{I:Ve}=Jt;var ht=o=>o.strings===void 0,he=()=>document.createComment(""),zs=(o,t,e)=>{let s=o._$AA.parentNode,r=t===void 0?o._$AB:t._$AA;if(e===void 0){let i=s.insertBefore(he(),r),n=s.insertBefore(he(),r);e=new Ve(i,n,o,o.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=c.nextSibling;s.insertBefore(c,r),c=l}}}return e},Bs=(o,t,e=o)=>(o._$AI(t,e),o),ze={},de=(o,t=ze)=>o._$AH=t,Ws=o=>o._$AH,Fs=o=>{o._$AP?.(!1,!0);let t=o._$AA,e=o._$AB.nextSibling;for(;t!==e;){let s=t.nextSibling;t.remove(),t=s}};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=o=>(...t)=>({_$litDirective$:o,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var Q=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),Q(s,t);return!0},dt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},pe=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Fe(t)}};function Be(o){this._$AN!==void 0?(dt(this),this._$AM=o,pe(this)):this._$AM=o}function We(o,t=!1,e=0){let s=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(s))for(let i=e;i<s.length;i++)Q(s[i],!1),dt(s[i]);else s!=null&&(Q(s,!1),dt(s));else Q(this,o)}var Fe=o=>{o.type==m.CHILD&&(o._$AP??=We,o._$AQ??=Be)},pt=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),pe(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),dt(this))}setValue(t){if(ht(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var eo=()=>new St,St=class{},Tt=new WeakMap,Pt=E(class extends pt{render(o){return d}update(o,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Tt.get(t);e===void 0&&(e=new WeakMap,Tt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Tt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var ut=o=>o.replace(Ge,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ge=/[A-Z]+(?![a-z])|[A-Z]/gu;var mo="randomUUID"in crypto;var xt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Dt={};function Lt(){}var Ke=(o,t)=>function(s,r){if(!globalThis.customElements)return;let n=(r??s??{}).resourcesUrl;n&&o.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(Qe):void 0,C=g?.map(([L])=>L),D=class extends Nt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=o}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,Qe=o=>{let t=o.split(":");return t.length===1?[t[0],ut(t[0])]:t},Je=globalThis.HTMLElement??Lt,Nt=class extends Je{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#r({a:e.A}):e.B.then(async s=>{await e.K.p,t.#r(await(s.default?.then(r=>typeof r=="function"?{a:r}:r)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=xt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,s=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===s),n=`${s}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);Ze(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(Ye,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function Ye([o,t]){this[o]=t}var Ze=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends le{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ie(t,Xe)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},Xe=1e3,yt="autoDestroyDisabled";var fe=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter((t=>o[t])).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var me="important",ts=" !"+me,ye=E(class extends v{constructor(o){if(super(o),o.type!==m.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce(((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let i=typeof r=="string"&&r.endsWith(ts);s.includes("-")||i?e.setProperty(s,i?r.slice(0,-11):r,i?me:""):e[s]=r}}return f}});var es=E(class extends v{constructor(o){if(super(o),o.type!==m.PROPERTY&&o.type!==m.ATTRIBUTE&&o.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===m.PROPERTY){if(t===e[s])return f}else if(o.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===m.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return de(o),t}});var ge=class o extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,s=e.N,r=e.K.o,i=o.prototype.shouldUpdate;t.#r=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Lt,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Dt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={attribute:s&1&&typeof t=="string"?ut(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,s){let r=this.K,i=super.getPropertyDescriptor(t,e,s);return s.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#r.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,i=t??(s===Dt?this.el:this.el.attachShadow(s));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??xt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(r=>!r.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,s){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,e,s,r){let i=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var ve=o=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},s={...o,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=s,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(o.defaultAssetPath),s};var Cr=o=>typeof o=="object"&&o!=null?fe(o):o,wr=o=>typeof o=="object"&&o!=null?ye(o):o;var Ut=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Pt(this.#e)):Pt(t)}},Or=E(Ut);var Tr=d;var Sr=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var J=ve({defaultAssetPath:"https://jsdev.arcgis.com/5.0.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:Lr,getAssetPath:Ur,setAssetPath:Rr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{Ps as a,x as b,ee as c,se as d,Ns as e,xs as f,Ee as g,ds as h,f as i,d as j,Os as k,ke as l,He as m,Ot as n,Ke as o,m as p,E as q,v as r,zs as s,Bs as t,de as u,Ws as v,Fs as w,eo as x,Pt as y,ge as z,Cr as A,wr as B,Tr as C,Sr as D,J as E,Lr as F,Ur as G};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import e from"./R4UXY6OA.js";import d from"./SEGSRZJQ.js";import c from"./F6J76S2A.js";import b from"./B2O47KO4.js";import{j as F}from"./BBWWDMVH.js";import{a as I}from"./PSGKKAGR.js";import{b as a}from"./IQLHR7E5.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Cc:x,Kd:C,e:g,zb:A},{d:c,e:p,f:T},{$a:S,Ta:w,Ua:d,Va:D,Wa:y,Xa:f,Ya:m,_a:u,ab:L,b:v,bb:P,c:B,d:b,g:O,u:r},{V:is,a:R,b:U,c:E,e:k,f:N,g:V,h:j,i:q,j:M,k:X,l:z,m:J,n:Y,o:G,p:H,q:K,r:Q,s:W,t:Z,u:$,v:ss}])=>{var ts=Object.defineProperty,es=Object.getOwnPropertyDescriptor,n=(h,s,i,o)=>{for(var e=es(s,i),l=h.length-1,_;l>=0;l--)(_=h[l])&&(e=_(s,i,e)||e);return e&&ts(s,i,e),e},t=class extends R{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=a.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(s){if(this._xAxisField=s,this.dirtyAsyncSetters.push("xAxisField"),s.trim()===""||s===g){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild()}get aggregationType(){return this._aggregationType}set aggregationType(s){this._aggregationType=s,this.dirtyAsyncSetters.push("aggregationType"),this.processSeriesRebuild()}get splitByField(){return this._splitByField}set splitByField(s){this.layerInfo?.layerFieldsInfo&&v(this.layerInfo?.layerFieldsInfo,s)&&(this._splitByField=s,this.dirtyAsyncSetters.push("splitByField"),this.processSeriesRebuild())}get numericFields(){return this._numericFields}set numericFields(s){typeof s=="string"&&(s=[s]);let i=B(this.layerInfo?.layerFieldsInfo??[],s),o=(this.xAxisField===""||this.xAxisField===g)&&s.length===0;if(i&&!o){let e=x(this.layerInfo.layer).idField;s.length===0&&e!==void 0?(s.push(e),this._aggregationType=a.Count):this._aggregationType===a.Count&&s.length>=1&&e!==void 0&&!s.includes(e)&&(this._aggregationType=a.Sum),this._numericFields=s,this.dirtyAsyncSetters.push("numericFields"),this.numericFields.length>1&&(this._splitByField="",this.dirtyAsyncSetters.push("splitByField")),this.processSeriesRebuild()}else o&&this.resetConfig()}getAssignToSecondValueAxis(s){return X(s,this._config)}setAssignToSecondValueAxis(s,i){z({assign:s,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return f(this._config)[0]}setSortOrder(s,i){p(s,this._config,i)}async getCustomSortValues(){return await S(this._config,this.layerInfo)}async setDataFilters(s){super.setDataFilters(s);let i=f(this._config)[0];if(i===I.customSort){this.startAsyncUpdate();let o=await S(this._config,this.layerInfo);p(i,this._config,o),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return c(this._config)}set orderByList(s){!C(this._config)&&u(s,this._config)}async updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&(this.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"),await this.processSeriesRebuild())}get binTemporalData(){return L(this._config)}set binTemporalData(s){P(s,this._config)}getSeriesName(s){return J(s,this._config)}setSeriesName(s,i){Y(s,i,this._config)}getSeriesColor(s){return G(s,this._config)}setSeriesColor(s,i){H(s,i,this._config)}getOrderOfSeries(){return K(this._config)}setOrderOfSeries(s){Q(s,this._config)}get stackedType(){return W(this._config)}set stackedType(s){Z({newStackedType:s,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(s,i){let o=this.getOrderOfSeries(),[e]=o.splice(s,1);o.splice(i,0,e),this.setOrderOfSeries(o)}moveCustomSortValuesInOrderByList(s,i){let o=c(this._config),[e]=o.splice(s,1);o.splice(i,0,e),u(o,this._config)}get nullCategory(){return $(this._config)}set nullCategory(s){let i=this.nullCategory;F(i,s)||ss(this._config,s)}setupLocalProps(){this._xAxisField=T(this._config),this._aggregationType=d(this._config),this._splitByField=D(this._config),this._numericFields=y(this._config)}resetConfig(){let s=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=s,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}canUseSynchronousSeriesRebuild(){return this.splitByField===""||this.numericFields.length>1}async processSeriesRebuild(){if(this.layerInfo!==void 0){let s=this.dirtyAsyncSetters[this.dirtyAsyncSetters.length-1];if(this.canUseSynchronousSeriesRebuild())this.dirtyAsyncSetters=[],m(this.getBuildNewSeriesProps());else if(!this.asyncConfigUpdateInProgress){for(this.startAsyncUpdate();this.dirtyAsyncSetters.length>0;)this.dirtyAsyncSetters=[],await m(this.getBuildNewSeriesProps());this.finishAsyncUpdate()}this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(s)}}getBuildNewSeriesProps(){return{xAxisField:this.xAxisField,splitByField:this.splitByField,numericFields:this.numericFields,aggregationType:this.aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}}generateChartTitle(){return this.layerInfo!==void 0?w(this._config,this.layerInfo,this.commonStrings):""}generateXAxisTitle(){return this.layerInfo!==void 0?A(this.layerInfo.layerFieldsInfo,this._xAxisField):""}generateYAxisTitle(){return this.layerInfo!==void 0?O({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:y(this._config),aggregationType:d(this._config)}):""}};n([r],t.prototype,"setAssignToSecondValueAxis");n([r],t.prototype,"setSortOrder");n([r],t.prototype,"setDataFilters");n([r],t.prototype,"orderByList");n([r],t.prototype,"binTemporalData");n([r],t.prototype,"setSeriesName");n([r],t.prototype,"setSeriesColor");n([r],t.prototype,"setOrderOfSeries");n([r],t.prototype,"stackedType");n([r],t.prototype,"moveSeries");n([r],t.prototype,"moveCustomSortValuesInOrderByList");n([r],t.prototype,"nullCategory");n([r],t.prototype,"resetConfig");b(t,[is,E,k,U,N,V,j,q,M]);return t},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",b,c,d,e)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as Ti,b as Bi,g as ee,i as C,j as w,k as M,l as Oi,m as Ai,o as Ii}from"./OM3B7QKB.js";import b from"./4CHOQ2HR.js";import a from"./OZLXXO72.js";import{d as xe,f as y,i as q,q as he,w as _e}from"./O5ZCVDZM.js";import{e as Ee,f as oe}from"./KW2B62OW.js";import{a as ye}from"./OS3PALQ6.js";import{a as h,b as T,d as Ve,e as Ue,f as je,h as A,k as P,n as re,o as $e,p as ve,q as Se,v as S,w as N}from"./QPXKOLVL.js";import{G as De}from"./WH6HTB25.js";export default $arcgis.t(([,,,,,,,{substitute:U},,,,,,,,{Ba:Fe,Bc:ui,Cc:_,D:Qe,Da:oi,Db:X,Dc:yi,E:Ye,Fc:Be,Gc:gi,Hc:fi,Ic:ce,Jb:J,Jc:de,Kc:G,Kd:R,Lb:ai,Ld:Ie,Mc:Oe,N:j,Nc:pi,P:$,Pc:Ae,Q:He,Qc:mi,R:ne,Ra:H,Rc:xi,S:Xe,Sa:be,Sb:Te,T:Je,Uc:ue,Vc:W,W:Ke,Wc:vi,Xc:E,Yc:Si,Zc:I,b:Ge,c:ae,da:Ze,e:Y,fa:ei,ga:ii,h:ze,ia:ti,k:We,oa:si,qc:ni,rb:F,sc:le,tc:li,vc:ci,vd:hi,w:D,wb:ri,wd:Fi,x:Re,xc:di,xd:bi,yc:K,zb:k,zc:Z},{a:Ci,b:Ce,f:Q,g:ge,i:we}])=>{var Le=(i=>(i.NONE="none",i.ROTATE="rotate",i.STAGGER="stagger",i.WRAP="wrap",i))(Le||{});function pt(i){let{configToUpdate:e,chartContainer:t,layer:s}=i,o=y(e);if(s?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:r}=oe(t??document.documentElement);try{o.firstDayOfWeek=ze.local().setLocale(r.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function mt(i){let e=y(i);return q(i.axes)||(e.axes=i.axes?.map(t=>{let s=t;return delete s.calculateAutomaticMaximum,delete s.calculateAutomaticMinimum,s.title?.content.font?.style!==void 0&&(s.title.content.font.style=s.title.content.font.style.toLowerCase()),s})),e}function xt(i){let e=y(i);return q(i.series)||(e.series=i.series.map((t,s)=>{let o=t;t.id===void 0&&(o.id=`Series ${Date.now()}-${s}`);let r=N(i.series,s);return(r===h.BarSeries||r===h.LineSeries||r===h.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=T.ContinuousPercentile),r===h.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),r===h.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=Qe.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}async function wi(i,e){let t=[];return await Promise.all(i.map(async s=>{if(!X(s)){let o=J(s,!1);if(o.fieldToSort!==void 0){let r=await G({queryObject:e,fieldToMatch:o.fieldToSort});r!==void 0&&t.push(o.orderBy===void 0?r:`${r} ${o.orderBy}`)}}})),t}async function vt(i,e){let t={...i},s=e;if(!s){let o=ee(i)?i.iLayer:i.dataSource?.layer;o&&(s=await Z(o))}if(s){let o=E(t.series),r=N(t.series),a=t.series&&t.series.length>0&&t.series[0].x.trim()===""||r===h.GaugeSeries&&!bi(i)||o===F.PieFromFields||o===F.BarAndLineFromFields||o===F.BoxPlotMonoField||o===F.BoxPlotMonoFieldAndSplitBy||o===F.BoxPlotMultiFields||o===F.BoxPlotMultiFieldsAndSplitBy,l=r===h.ScatterSeries||o===F.BarAndLineNoAggregation||o===F.BarAndLineSplitByNoAggregation||o===F.BoxPlotMonoField||o===F.BoxPlotMonoFieldAndSplitBy||o===F.BoxPlotMonoFieldAndCategory||o===F.BoxPlotMonoFieldAndCategoryAndSplitBy||o===F.PieNoAggregation;if(t.series=await Promise.all(i.series.map(async n=>{let c={...n};if(a||(c.x=await G({queryObject:s,fieldToMatch:n.x})),"y"in c&&l){let u=c.y;if(Array.isArray(u)){let d=await Oe({fieldsList:u,queryObject:s});d!==void 0&&"y"in c&&(c.y=d)}else"y"in c&&typeof u=="string"&&(c.y=await G({queryObject:s,fieldToMatch:u}))}if(n.query!==void 0){let{where:u,groupByFieldsForStatistics:d,outStatistics:x}=n.query;if(d=await Oe({fieldsList:d,queryObject:s}),x!==void 0&&(x=await Promise.all(x.map(async p=>{let g={...p};return g.onStatisticField=await G({queryObject:s,fieldToMatch:p.onStatisticField}),g}))),u!==void 0&&o===F.BarAndLineSplitBy){let p=ue(n.query?.where),g=W({where:n.query?.where,normalize:!1,escape:!1});u=`${await G({queryObject:s,fieldToMatch:p})}=${g}`}c.query!==void 0&&(u!==void 0&&(c.query.where=u),d!==void 0&&(c.query.groupByFieldsForStatistics=d),x!==void 0&&(c.query.outStatistics=x))}return c})),t.series[0]?.query!==void 0){let n=t.series[0].query,{orderByFields:c}=n;c!==void 0&&c.length>0&&(c=await wi(c,s),c.length>0&&n.orderByFields!==void 0&&(t.series[0].query.orderByFields=c))}if(t.orderOptions?.orderByFields!==void 0){let{orderByFields:n}=t.orderOptions;n!==void 0&&n.length>0&&(n=await wi(n,s),n.length>0&&(t.orderOptions.orderByFields=n))}if(r===h.GaugeSeries&&i.axes?.[0]!==void 0){let{minimumFromField:n,maximumFromField:c}=i.axes[0];if(n!==void 0){let u=typeof n=="string"?n:n.onStatisticField,d=await G({queryObject:s,fieldToMatch:u}),x=n;typeof i.axes[0].minimumFromField=="string"?x=d:typeof n=="object"&&(x={...n,onStatisticField:d}),i.axes[0].minimumFromField=x}if(c!==void 0){let u=typeof c=="string"?c:c.onStatisticField,d=await G({queryObject:s,fieldToMatch:u}),x=c;typeof i.axes[0].maximumFromField=="string"?x=d:typeof c=="object"&&(x={...c,onStatisticField:d}),i.axes[0].maximumFromField=x}}}return t}function St(i){let e=y(i);if(!q(i.series)&&N(i.series)===h.BoxPlotSeries){let t=e.series[0];t&&(t.showOutliers!==void 0&&(i.showOutliers===void 0&&(e.showOutliers=t.showOutliers),delete t.showOutliers),t.standardizeValues!==void 0&&(i.standardizeValues===void 0&&(e.standardizeValues=t.standardizeValues),delete t.standardizeValues),t.showMean!==void 0&&(i.showMean===void 0&&(e.showMean=t.showMean),delete t.showMean))}return e}function ht(i){let e={orderType:S.Category,orderBy:A.Ascending},t=i.query?.orderByFields?.[0];if(t!==void 0){let{outStatisticFieldName:s,statisticType:o}=i.query?.outStatistics?.[0]??{},r=J(t);s!==void 0&&r.fieldToSort===s&&o!==void 0&&(o===T.Average||o==="mean"?e.orderType=S.Mean:o===T.ContinuousPercentile&&(e.orderType=S.Median)),e.orderBy=r.orderBy??A.Ascending}return e}function Ft(i){let e=!1,t=Array.from(new Set(i.series.map(s=>s.type)));return t.length===2&&t.includes(h.BoxPlotSeries)&&t.includes(h.LineSeries)&&(e=i.series.find(s=>s.type===h.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function bt(i){let e=y(i);if(!q(e.series)&&N(i.series)===h.BoxPlotSeries){if(e.orderOptions?.data===void 0){let t=ht(i.series[0]);t.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:t.orderType,orderBy:t.orderBy})}if(e.series=i.series.map(t=>{let s=t;return q(s.x?.trim())&&(s.x=Ye),delete s.query?.orderByFields,s}),Ft(e)){e.showMean=!0;let t=e.series.find(s=>s.type===h.BoxPlotSeries);e.series.forEach(s=>{s.type===h.LineSeries&&(delete s.query?.groupByFieldsForStatistics,delete s.query?.outStatistics,delete s.query?.orderByFields,t&&(s.y=t.y))})}e.series=i.series.map(t=>{let s=t;return delete s.query?.outStatistics,s})}return e}function Tt(i){let e=y(i);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=Number.NaN),e}function Bt(i){let e=y(i);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Ot(i){let e=y(i),t=new Set,s=e.id??"";return t.add(s),e.series.forEach(o=>{let r=o.id;t.has(r)&&(r=`${r}_${Date.now()}`,o.id=r),t.add(r)}),e}async function At(i){let{configToUpdate:e,layer:t,chartContainer:s}=i,o=y(e);if(o=mt(o),o=xt(o),o=await vt(o,t),be(o)){let r=St(o);o=bt(r)}return o=Tt(o),o=Ot(o),H(o)&&(o=pt({configToUpdate:o,chartContainer:s,layer:t})),o}function It(i){let e=y(i);return e?.orderOptions?.orderByFields!==void 0&&E(i.series)===F.PieFromFields&&(e.orderOptions.orderByFields=i?.orderOptions?.orderByFields?.map(t=>{let s=y(t);return t!==void 0&&t.includes("arcgis_charts_pie_category_from_fields_name")&&(s=t.replace("arcgis_charts_pie_category_from_fields_name",ae)),s})),e}function Ct(i){let e=y(i);if(!q(i.series)&&e.axes?.[0]!==void 0&&N(i.series)===h.GaugeSeries&&i.axes?.[0]!==void 0){let t=i.axes[0];t.ticks!==void 0&&Object.hasOwn(t.ticks,"spacing")&&delete t.ticks.spacing,e.axes[0]=t}return e}function wt(i){let e=y(i),{extent:t}=e.series[0]?.query??{};return t!==void 0&&(e.dataFilters={...e.dataFilters,geometry:t},e.series.forEach(s=>{"query"in s&&"extent"in s.query&&delete s.query.extent})),e}function Hi(i){let e=y(i);return q(i.series)||(Ti(i)&&i.rotated===void 0&&(e.rotated=i.series[0].rotated??si()),e.series.forEach(t=>{t.rotated!==void 0&&delete t.rotated})),e}function Lt(i){let e=y(i),t=i.dataSource;return"dataSource"in e&&!q(t)&&(t.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in t&&(e.dataSource.layer=t.featureLayer,delete e.dataSource.featureLayer)),e}function qt(i){let e=y(i);if("dataSource"in i){let t=i.dataSource;if(t.filter!==void 0&&t.filter.trim()!==""){let s=K([t.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:s},delete e.dataSource.filter}}return e}function Mt(i){return i!=="originalValue"}function Xi(i){let e;switch(i){case"mean":e=S.Mean;break;case"median":e=S.Median;break;case"category":e=S.Category;break}return e}function Pt(i){let e=y(i);if(!q(i.series)&&N(i.series)===h.PieSeries){let t=e.series[0];if(t){if(t.sortLabelsBy==="originalValue")e.sortLabelsBy=t.sortLabelsBy;else if(t.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let s=qe(e);s!==void 0&&(e.orderOptions??={},e.orderOptions.data=s)}t.sortLabelsBy&&delete t.sortLabelsBy}}return e}function Nt(i){let e=y(i);return q(i.series)||(Bi(i)&&i.stackedType===void 0&&(e.stackedType=i.series[0].stackedType??oi()),e.series.forEach(t=>{"stackedType"in t&&delete t.stackedType})),e}function kt(i){let e=y(i),t=i.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof t=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:t==="DESC"?A.Descending:A.Ascending}),e}function Dt(i){let e=y(i);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===Ve.Match),e.series.forEach(t=>{t.colorType!==void 0&&delete t.colorType}),e}function Et(i){let e=y(i);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let t=i.sortDataBy,s=Xi(t?.sortType);s&&s!==S.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:s,orderBy:t?.sortOrder??A.Ascending})}delete e.sortDataBy}return e}function Vt(i){let e=y(i);return e.axes?.forEach(t=>{t!==void 0&&t.scrollbarVisible!==void 0&&t.scrollbar?.visible===void 0&&(t.scrollbar={...t.scrollbar,visible:t.scrollbarVisible},delete t.scrollbarVisible)}),e}function Ut(i){let e=y(i),t=e.series[0]?.query?.orderByFields;if(t!==void 0&&t.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let s=!0;if(t.length===1){let{fieldToSort:o,orderBy:r}=J(t[0]),a;o===i.series[0].x||o===ae?a=S.Category:"y"in i.series[0]&&o===i.series[0].y&&(a=S.YValue),a&&a!==S.MultiAxes&&(s=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:r?.toUpperCase()==="DESC"?A.Descending:A.Ascending}))}s&&(e.orderOptions.orderByFields=t)}return e.series.forEach(s=>{delete s.query?.orderByFields}),e}function qe(i){let e,t=i.orderOptions?.orderByFields?.[0];if(i.series?.length>0){let s=N(i.series),o=E(i.series);if(s!==h.PieSeries&&o!==F.BarAndLineFromFields&&(t=t??i.series[0].x),t&&!X(t)){let{fieldToSort:r,orderBy:a}=J(t),l;r===i.series[0].x||r===ae?l=S.Category:"y"in i.series[0]&&r===i.series[0].y&&(l=S.YValue),l&&l!==S.MultiAxes&&(e={orderType:l,orderBy:a?.toUpperCase()==="DESC"?A.Descending:A.Ascending})}}return e}function jt(i){let e=y(i),t=i,s=i,o=i,r=i,a=i;if(e){if(e.orderOptions?.series===void 0&&t.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:Mt(s.sortLabelsBy??t.sortOptions.sortSeriesBy.sortType),orderBy:t.sortOptions.sortSeriesBy.sortOrder??A.Ascending}),s.sortLabelsBy==="originalValue"||r.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(N(e.series)===h.BoxPlotSeries){if(s.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let l=Xi(o.sortOptions?.sortDataBy?.sortType);l&&l!==S.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:l,orderBy:o.sortOptions?.sortDataBy?.sortOrder??A.Ascending})}}else{let l=qe(e);l!==void 0&&(e.orderOptions??={},e.orderOptions.data=l)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function $t(i){let e=y(i);if(e){let t=E(e.series);if((t===F.BarAndLineFromFields||t===F.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let s=qe(e);s!==void 0&&(e.orderOptions??={},e.orderOptions.data=s,delete e.orderOptions.orderByFields)}}return e}function _t(i){let e=y(i);return e.horizontalAxisLabelsBehavior===Le.NONE&&(e.horizontalAxisLabelsBehavior=ve.Hide),e.verticalAxisLabelsBehavior===Le.NONE&&(e.verticalAxisLabelsBehavior=ve.Hide),e}function Gt(i){let e=y(i),t=e.series[0];if(t&&!t.temporalBinning&&I(e.series[0])&&("timeIntervalSize"in t||"timeIntervalUnits"in t||"timeAggregationType"in t||"trimIncompleteTimeInterval"in t||"nullPolicy"in t)){if(t.temporalBinning={},t.timeIntervalSize!==void 0&&(t.temporalBinning.size=t.timeIntervalSize,delete t.timeIntervalSize),t.timeIntervalUnits){let s;switch(t.timeIntervalUnits){case"esriTimeUnitsSeconds":s=P.Second;break;case"esriTimeUnitsMinutes":s=P.Minute;break;case"esriTimeUnitsHours":s=P.Hour;break;case"esriTimeUnitsDays":s=P.Day;break;case"esriTimeUnitsWeeks":s=P.Week;break;case"esriTimeUnitsMonths":s=P.Month;break;case"esriTimeUnitsYears":s=P.Year;break}s!==void 0&&(t.temporalBinning.unit=s),delete t.timeIntervalUnits}t.timeAggregationType&&(t.temporalBinning.timeAggregationType=t.timeAggregationType,delete t.timeAggregationType),t.trimIncompleteTimeInterval!==void 0&&(t.temporalBinning.trimIncompleteTimeInterval=t.trimIncompleteTimeInterval,delete t.trimIncompleteTimeInterval),t.nullPolicy&&(t.temporalBinning.nullPolicy=t.nullPolicy,delete t.nullPolicy)}return e}function zt(i){let e=y(i);return e.series.forEach(t=>{t.query?.outStatistics?.forEach(s=>{s.statisticType==="percentile_cont"?s.statisticType=T.ContinuousPercentile:s.statisticType==="percentile_disc"&&(s.statisticType=T.DiscretePercentile)})}),e}function Wt(i){let e=y(i);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Rt(i){let e=y(i),t=e.series[0];return t?.temporalBinning&&delete t.temporalBinning?.type,e}function Qt(i){let e=y(i);return e=It(e),e}function Li(i){let e=y(i);return e=Ct(e),e}function qi(i){let e=y(i);return e=wt(e),e}function Mi(i){let e=y(i);return e=Hi(e),e}function Pi(i){let e=y(i);return e=Lt(e),e}function Ni(i){let e=y(i);return e=qt(e),e}function ki(i){let e=y(i);return e=Pt(e),e}function Di(i){let e=y(i);return e=kt(e),e}function Ei(i){let e=y(i);return e=Dt(e),e}function Vi(i){return Vt(i)}function Ui(i){let e=y(i);return be(e)&&(e=Et(e)),e}function ji(i){return Nt(i)}function $i(i){return jt(i)}function _i(i){return Bt(i)}function Gi(i){return $t(i)}function zi(i){return _t(i)}function Wi(i){return Gt(i)}function Ri(i){return zt(i)}function Qi(i){let e=y(i);return e=Hi(e),Wt(e)}function Yi(i){let e=y(i);return e=Rt(e),e}function Yt(i){let{versionsToConvert:e=[],configToUpdate:t}=i,s=y(t);return e.length>0&&s!==void 0&&(s=Ut(s),e.includes(Ae)||e.includes(mi)?(s=Qt(s),s=Li(s),s=qi(s),s=Mi(s),s=Pi(s),s=Ni(s),s=ki(s),s=Di(s),s=Ei(s),s=Vi(s),s=Ui(s),s=ji(s),s=$i(s),s=_i(s),s=Gi(s),s=zi(s),s=Wi(s),s=Ri(s),s=Qi(s),s=Yi(s)):e.forEach(o=>{if(s!==void 0)switch(o){case"1.0.1":s=Li(s);break;case"3.4.0":s=qi(s);break;case"4.0.0":s=Mi(s);break;case"4.0.1":s=Pi(s);break;case"6.4.0":s=Ni(s);break;case"7.5.1":s=ki(s);break;case"8.0.0":s=Di(s);break;case"9.2.0":s=Ei(s);break;case"9.7.0":s=Vi(s);break;case"10.0.0":s=Ui(s);break;case"11.0.0":s=ji(s);break;case"14.0.1":s=$i(s);break;case"16.0.0":s=_i(s);break;case"16.1.0":s=Gi(s);break;case"18.1.3":s=zi(s);break;case"20.1.0":s=Wi(s);break;case"21.0.0":s=Ri(s);break;case"23.2.0":s=Qi(s);break;case"24.6.0":s=Yi(s);break}}),s.version=Ge),s}async function Me(i,e,t){let s=i;if(i){let o=le(e);s=await At({configToUpdate:i,layer:o,chartContainer:t});let r=i.version??Ae,{versionStatus:a,versions:l}=xi(r);(a===Se.Older||a===Se.Unrecognized)&&(s=Yt({versionsToConvert:l,configToUpdate:s}))}return s}async function Ht(i){let{config:e,layer:t,xAxisField:s,splitByField:o,layerFieldsInfo:r,aggregationFields:a,fetchNullValues:l}=i,n=r.filter(b=>b.name===o)[0]?.type,c=l!==!0?`${o} IS NOT NULL`:"",u=s&&l!==!0?`${s} IS NOT NULL`:"",{where:d}=e?.dataFilters??{},x={where:K([d,c,u]),orderByFields:X(o)?[]:[`${o} ${A.Ascending}`],geometry:e?.dataFilters?.geometry},p=t,g="";a.length===0?g=_(p).idField:[g]=a;let f=await Ie({queryObject:p,category:e?.series[0].x??"",splitByField:o,queryConfig:x});if(e){let b=e?.series.map(m=>W({where:m.query?.where})?.toString()??"").filter(m=>m!==void 0&&m!=="");f=ai({arrayA:f,arrayB:b,getKey:m=>m===null?null:m?.toString()})}return{categoriesArray:f,splitByFieldType:n,numericalField:g}}function ro(i,e){let t=e==="";for(let s of i)if(e===s.name){t=!0;break}return t}function ao(i,e){let t=fi(i),s=e.length===0,o=0;for(let r of e){for(let a of t)if(r===a&&(o+=1),o===e.length){s=!0;break}if(s)break}return s}function no(i,e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(s=>{Object.defineProperty(i.prototype,s,Object.getOwnPropertyDescriptor(t.prototype,s)||Object.create(null))})})}async function Xt(i){let{layerInfo:e,config:t,category:s}=i,{layer:o}=e,{where:r}=t?.dataFilters??{},{fetchNullValues:a}=t?.series?.[0]?.query??{},l=a!==!0?`${s} IS NOT NULL`:"",n={where:K([r,l]),orderByFields:[],geometry:t?.dataFilters?.geometry},c=ce(o);return(await Ie({queryObject:o,category:s,queryConfig:n})).map(u=>{let d=String(u);return de({fieldName:s,fieldValueToMatch:d,subtypeInfo:c,fieldList:e.layerFieldsInfo})??d})}function fe(i,e,t){let s=i?.axes?.[e];s?.title!==void 0?s.title.content.text=t:s!==void 0&&(s.title=$({text:t,visible:!0,font:j(D.AxisTitle)}))}function et(i){let{config:e,layerInfo:t,commonStrings:s,numericFields:o,aggregationType:r}=i,a="";if(e)if(ri(e)===je.Stacked100)a=s.utilsStrings.statistics.percent;else{let l=Fe(r,s);if(o.length===1){let n=k(t.layerFieldsInfo,o[0]),c=_(t.layer).idField;r===T.NoAggregation?a=n:r===T.Count&&c!==void 0&&o[0]===c?a=s.utilsStrings.statistics.count:a=U(s.axisLabels.aggregationOfFieldName,{aggregation:l,fieldName:n})}else o.length>1&&(r===T.NoAggregation?a=s.axisLabels.values:a=U(s.axisLabels.aggregationOfValues,{aggregation:l}))}return a}var it=(i,e,t)=>i.axes?.[e]??Ze(t,i.type)[e],tt=i=>{let{config:e,axis:t,axisIndex:s}=i;e.axes!==void 0&&(e.axes[s]=t)},lo=i=>{let{config:e,axisIndex:t,isMax:s}=i,o=Number.NaN;return s?o=e.axes?.[t]?.maximum:o=e.axes?.[t]?.minimum,o??Number.NaN},O=i=>{let{config:e,value:t,axisIndex:s,isMax:o}=i,r=e?.axes?.[s];r!==void 0&&(o?r.maximum=t:r.minimum=t)},co=(i,e)=>{O({config:i,value:e,axisIndex:0,isMax:!1})},st=i=>i.axes?.[0]?.valueFormat??ne(),Jt=(i,e,t)=>{let s=it(i,0,e);if(s!==void 0&&t!==void 0){let o={...s,valueFormat:t};tt({config:i,axis:o,axisIndex:0})}},Ji=(i,e,t)=>{let s=i.axes?.[e];s!==void 0&&(s.integerOnlyValues=t)},Kt=i=>{let e=N(i.series);return e===h.BarSeries||e===h.ComboLineAndBarSeries||e===h.LineSeries},Zt=i=>{let{axisIndex:e,config:t,isMultiAxis:s}=i,o=!1;return e===0||e===1&&s?o=!0:e===2&&(o=Kt(t)),o},uo=i=>{let{axisIndex:e,func:t,config:s}=i;return Zt({axisIndex:e,config:s,isMultiAxis:!0})?t(e):void 0},yo=(i,e)=>{let t,s=e.axes?.[i]?.valueFormat;return(i===0||i>=1&&Ii(s))&&(t=s),t},go=i=>{let{config:e,commonStrings:t,valueFormat:s,axisIndex:o=0}=i,r=it(e,o,t);if(r!==void 0&&s!==void 0){let a={...r,valueFormat:s};tt({config:e,axis:a,axisIndex:o})}},fo=(i,e)=>i.axes?.[e]?.isLogarithmic??!1,po=i=>{let{config:e,isLogarithmic:t,axisIndex:s}=i,o=e.axes?.[s];o&&(o.isLogarithmic=t,O({config:e,value:null,axisIndex:s,isMax:!0}),O({config:e,value:null,axisIndex:s,isMax:!1}))},mo=i=>{let{config:e,scrollbar:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].scrollbar=t)},ie=class extends EventTarget{constructor(){super(...arguments),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e}),this.emitConfigUpdate=e=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:e}}))},this.guardSetterFromAsyncOverwrite=async e=>{e(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,e())}}isSameChartAs(e){let t=e?.layer;return t!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===t.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:t,iLayer:s,config:o}=e;this.commonStrings=await Ee(oe(document.documentElement).t9nLocale,De("./assets/common/t9n"),"messages.");let r=t;if(!r&&s?r=await Z(s):!r&&o?.iLayer&&(r=await Z(o.iLayer)),r){let a=await ui(r,!0),l=_(r).idField;this.layerInfo={layer:r,layerFieldsInfo:a,objectIdField:l}}this._config=o?await Me(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=Ke().title),s&&(this._config.iLayer=s)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function es(i,e,t){let s=t.set,o=t.value;return s&&(t.set=function(r){this.guardSetterFromAsyncOverwrite(()=>{s.call(this,r),this.emitConfigUpdate(e)})}),o&&(t.value=function(...r){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,r),this.emitConfigUpdate(e)})}),t}var is=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ss=(i,e,t,s)=>{for(var o=ts(e,t),r=i.length-1,a;r>=0;r--)(a=i[r])&&(o=a(e,t,o)||o);return o&&is(e,t,o),o},ot=i=>i.title?.content.text??"",os=(i,e)=>{e.title!==void 0?e.title.content.text=i:e.title===void 0&&i!==void 0&&(e.title=$({text:i,visible:!0,font:j(D.ChartTitle)}))},Pe=class extends ie{get titleText(){return ot(this._config)}set titleText(e){os(e,this._config)}};ss([es],Pe.prototype,"titleText");var xo=(i,e)=>i.axes?.[e]?.title?.content,vo=i=>{let{config:e,axisIndex:t,symbol:s}=i,o=e.axes?.[t];if(o!==void 0){let r=o.title?.content.text;(o.title===void 0||s===void 0)&&(o.title=$({text:"",visible:!0,font:j(D.AxisTitle),type:D.AxisTitle})),s!==void 0&&(o.title.content=s),o.title.content.text=r}},So=i=>{for(let e of i.axes??[])if(e?.labels!==void 0)return e.labels.content},ho=(i,e)=>{for(let t of e.axes??[])if(t!==void 0){let s=t.labels?.content.text;i===void 0?t.labels=$({text:"",visible:!0,font:j(D.AxisLabels),type:D.AxisLabels}):t.labels.content=y(i),t.labels.content.text=s}},Fo=i=>{for(let e of i.axes??[])if(e?.lineSymbol!==void 0)return e.lineSymbol},bo=(i,e)=>{for(let t of e.axes??[])t!==void 0&&(t.lineSymbol=y(i)??He())},To=i=>{for(let e of i.axes??[])if(e?.grid!==void 0)return e.grid},Bo=(i,e,t)=>{let s=e.axes;t.forEach(o=>{s?.[o]!==void 0&&(s[o].grid=y(i))})},se=(i,e)=>e.axes?.[i]?.title?.content.text??"",Oo=(i,e,t)=>{let s=t.axes?.[e];s?.title!==void 0?s.title.content.text=i:s!==void 0&&s?.title===void 0&&(s.title=$({text:i,visible:!0,font:j(D.AxisTitle)}))},Ao=(i,e)=>e.axes?.[i]?.visible??!0,Io=(i,e,t)=>{let s=t.axes?.[e];s!==void 0&&(s.visible=i)},Co=(i,e)=>e.axes?.[i]?.labels?.visible??!0,wo=(i,e,t)=>{let s=t.axes?.[e];s?.labels!==void 0?s.labels.visible=i:s!==void 0&&s?.labels===void 0&&(s.labels=$({text:"",visible:i,font:j(D.AxisLabels),type:D.AxisLabels}))},Lo=(i,e)=>e.axes?.[i]?.title?.visible??!1,qo=(i,e,t)=>{let s=t.axes?.[e];s?.title!==void 0?s.title.visible=i:s!==void 0&&s?.title===void 0&&(s.title=$({text:se(e,t),visible:i,font:j(D.AxisTitle)}))},Mo=(i,e)=>i.axes?.[e]?.displayZeroLine??!1,Po=(i,e,t)=>{i.axes?.[t]!==void 0&&(i.axes[t].displayZeroLine=e)},No=(i,e)=>i.axes?.[e]?.displayCursorTooltip??!1,ko=i=>{let{config:e,displayCursorTooltip:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].displayCursorTooltip=t)},Do=(i,e)=>i.axes?.[e]?.buffer??!1,Eo=i=>{let{config:e,buffer:t,axisIndex:s}=i,o=e.axes?.[s];o!==void 0&&(o.buffer=t)},Vo=(i,e)=>i.axes?.[e]?.tickSpacing,Uo=i=>{let{config:e,tickSpacing:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].tickSpacing=t)},jo=(i,e)=>i.axes?.[e]?.integerOnlyValues??!1,$o=i=>{let{config:e,integerOnlyValues:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].integerOnlyValues=t)},rs=i=>i.series.map(e=>String(W({where:e.query?.where}))).filter(e=>e!==void 0&&e.trim()!==""),Ki=class extends ie{get splitByValues(){return rs(this._config)}},as=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.size),e},ns=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.unit),e},ls=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.timeAggregationType),e},cs=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.trimIncompleteTimeInterval),e},ds=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.nullPolicy),e},rt=(i,e)=>{e?.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.size=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},us=(i,e)=>{e?.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.nullPolicy=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},_o=(i,e)=>{e.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.unit=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Go=(i,e)=>{e.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.timeAggregationType=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},zo=(i,e)=>{e.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.trimIncompleteTimeInterval=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Wo=i=>{rt(0,i)},at=i=>i.series.length??0,Zi=class extends ie{get seriesLength(){return at(this._config)}};function Ro(i,e){let t;return e!==void 0&&(t={...e},t.legend!==void 0&&(t.legend.position=i)),t}function Qo(i,e){let t;return e!==void 0&&(t={...e},t.legend!==void 0&&(t.legend.visible=i)),t}function Yo(i,e){let t;return e!==void 0&&(t={...e,rotated:i}),t}function nt(i){let e;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}function Ho(i,e){return e!=null||ee(i)}async function ys(i){let{queryObject:e,chartConfig:t,options:s,splitByField:o}=i,r=[],a,l=y(t),n=l.series[0],c=pi({queryObject:e,chartConfig:l,runtimeDataFilters:s?.runtimeDataFilters,ignoreViewExtent:s?.ignoreViewExtent});if(c.outStatistics?.[0]?.outStatisticFieldName&&(c.outStatistics[0].outStatisticFieldName=Re.outStatistics.outStatisticFieldName),I(n)&&Si({xAxisValueFormatType:We(l),setTimeBinningInfoWhenNotProvided:s?.setTimeBinningInfoWhenNotProvided,seriesConfig:n})&&ni(e)){let{temporalBinning:u,x:d}=n,{uniqueQuery:x}=await Te({chartConfig:l,queryConfig:c,queryObject:e,options:s});a=await di({queryObject:e,dateField:d,splitByField:o,queryConfig:x,temporalBinning:u}),r=Array.from(new Set(a.flatMap(p=>{let{stackedAttributes:g}=p,f=[];return g&&(f=g.map(b=>b[o]).filter(b=>b!==void 0)),f})).values())}else{let{uniqueQuery:u}=await Te({chartConfig:l,queryObject:e,queryConfig:c,options:s});a=await ci({queryObject:e,queryConfig:u,featureCount:1}),r=Array.from(new Set(a.map(d=>d.attributes[o]).filter(d=>d!==void 0)).values())}return{allValues:r,preFetchedQueryResponse:a}}function gs(i,e){let t=new Map;return i.series.forEach(s=>{let o=W({where:s.query?.where,normalize:!0,escape:!1});e&&o!==null&&(o=Number(o));let r=N([s]);r!==void 0&&t.set(r,[...t.get(r)??[],o])}),t}function fs(i){let{allValues:e,configUniqueValuesPerSeriesType:t,initialConfigWasEmpty:s}=i,o=new Map;return Array.from(t.keys()).forEach(r=>{let a=t.get(r)??[],l=[];s?l=e:e.forEach(n=>{a.includes(n)||l.push(n)}),o.set(r,l)}),o}function ps(i){let{chartConfig:e,missingValue:t,splitByField:s,seriesTemplate:o}=i,r=JSON.parse(JSON.stringify({...e.series[0],...o}));if(r.query){if(r.id=`${t}-${e.series.length}-${Date.now()}`,r.name=`${t}`,r.query.outStatistics?.[0]!==void 0){let l=r.id;r.query.outStatistics[0].outStatisticFieldName=l,"y"in r&&(r.y=l)}let a=typeof t=="number"||t===null?t:`'${t}'`;r.query.where=`${s}=${a}`}return r}async function ms(i){let{updateSplitBySeries:e,config:t,options:s,queryObject:o}=i,{seriesTemplate:r}=e??{},a;if(e!==void 0&&t!==void 0&&(t.series.length>0||r!==void 0)&&e.addMissingSeries){let l=t.series.length===0;t.series.length===0&&r!==void 0&&t.series.push(r);let n=E(t.series);if((n===F.BoxPlotMonoFieldAndSplitBy||n===F.BoxPlotMultiFieldsAndSplitBy||n===F.BoxPlotMonoFieldAndCategoryAndSplitBy||n===F.BarAndLineSplitBy||n===F.BarAndLineSplitByNoAggregation)&&o!==void 0){let c=ue(t.series[0]?.query?.where),u=le(o);await u.load();let d=u.getField(c)?.toJSON(),x=yi(d),p=await ys({queryObject:o,chartConfig:t,splitByField:c,options:s}),{allValues:g}=p;if({preFetchedQueryResponse:a}=p,g.length>0){let f=gs(t,x),b=fs({allValues:g,configUniqueValuesPerSeriesType:f,initialConfigWasEmpty:l});Array.from(b.keys()).forEach(m=>{(b.get(m)??[]).forEach(v=>{t.series.push(ps({chartConfig:t,seriesTemplate:r,missingValue:v,splitByField:c}))}),l&&t.series.shift()})}}}return a}function xs(i,e){e&&!ee(e)&&(e=li({chartConfig:e,queryObject:i}))}async function Xo(i){let{configToAlter:e,layer:t,addMissingSeries:s,updateSplitBySeries:o,chartContainer:r,creation:a,queryObject:l,options:n,previousConfig:c}=i,u=e,d;return u&&(xs(t,u),u=await Me(u,t),s&&(d=await ms({updateSplitBySeries:o,config:u,options:n,queryObject:l})),(a||c&&hi(c,u))&&(u=Fi(u,r))),{alteredConfig:u,preFetchedQueryResponse:d}}var Jo=i=>{let{xField:e,config:t,layerInfo:s}=i,{layerFieldsInfo:o}=s,r=se(0,t),a=vs(t),l=R(t),n=t.series[0];if(typeof e=="string"&&a!==e&&n&&(n.x=e,nt(t),a===r||l)){let c=k(o,e);fe(t,0,c)}},vs=i=>i.series[0].x??"",Ko=i=>i.hideEmptyRowsAndColumns,Zo=(i,e)=>{i.hideEmptyRowsAndColumns=e},er=(i,e)=>{let t=i.series[0];t.heatRulesType=e},ir=i=>i.series[0].heatRulesType,tr=(i,e)=>{let t=i.series[0];t.gradientRules=e},sr=i=>i.series[0].gradientRules,or=i=>{let{yField:e,config:t,layerInfo:s}=i,{layerFieldsInfo:o}=s,r=se(1,t),a=Ss(t),l=R(t),n=t.series[0];if(typeof e=="string"&&a!==e&&n&&(n.y=e,nt(t),a===r||l)){let c=k(o,e);fe(t,1,c)}},Ss=i=>i.series[0].y??"",rr=(i,e)=>{let t=e.series[0];t.xTemporalBinning=i},ar=i=>i.series[0].xTemporalBinning,nr=(i,e)=>{let t=e.series[0];t.yTemporalBinning=i},lr=i=>i.series[0].yTemporalBinning,hs=(i,e)=>{e.orderOptions??={};let t=e.axes?.[0]?.valueFormat?.type==="category"?S.Category:S.YValue,s=Ne(e)[0],o=e.axes?.[1]?.valueFormat?.type==="category"?S.Category:S.YValue,r=Ne(e)[1],a={...e.orderOptions.data??{},orderType:S.MultiAxes};s===ye.customSort&&t===S.Category&&(a.orderByX=[...i]),r===ye.customSort&&o===S.Category&&(a.orderByY=[...i]),Object.keys(a).length>1&&(e.orderOptions.data=a)},cr=(i,e)=>{let t=e.series[0];t.gridLine&&(t.gridLine.width=i)},dr=i=>i.series[0].gridLine?.width,ur=(i,e)=>{let t=e.series[0],s=i?.length===4&&i.every(o=>typeof o=="number");t.gridLine&&s&&(t.gridLine.color=i)},yr=i=>i.series[0].gridLine?.color,gr=(i,e)=>{let t=e.legend;t&&(t.position=i)},fr=i=>i.legend?.position??Ue.Bottom,pr=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,mr=(i,e)=>{let t=e.series[0].query?.outStatistics?.[0];t&&(t.onStatisticField=i,t.outStatisticFieldName=`${t.statisticType}_${i}`)},xr=i=>i.series[0].query?.outStatistics?.[0].statisticType??T.Count,vr=(i,e)=>{let t=e.series[0]?.query?.outStatistics?.[0];t&&i!==T.NoAggregation&&(t.statisticType=i,t.outStatisticFieldName=`${i}_${t.onStatisticField}`)},Sr=i=>i.nullPolicy,hr=(i,e)=>{e.nullPolicy=i},Fr=i=>i.series[0].emptyCells?.text,br=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},Tr=i=>i.series[0].emptyCells?.symbol,Br=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function te(i){let{seriesIndex:e,xAxisField:t,aggregationType:s,config:o,layerInfo:r,commonStrings:a}=i,l=_(r?.layer).idField,n,c=o.series[e??0],u=!1,d=!1;if(c===void 0){let g=o.series;u=g.slice(0,e).every(f=>C(f)),d=g.slice(0,e).every(f=>w(f))}else u=C(c),d=w(c);u?n=ei({commonStrings:a,seriesIndex:e,objectIDField:l}):d?n=ii({commonStrings:a,seriesIndex:e,objectIDField:l}):n=ti({seriesIndex:e,objectIDField:l,commonStrings:a});let x=o.series[0]?.dataLabels,p={...n,x:t,y:"",dataLabels:{...n.dataLabels,type:n.dataLabels?.type??h.Text,content:{...n.dataLabels?.content,...x?.content,type:_e.TS},visible:x?.visible??!1}};if(p.query={groupByFieldsForStatistics:[t]},s!==T.NoAggregation&&l!==void 0){let g=`${s}_${l}_0`.toUpperCase();p.y=g,p.query.outStatistics=[{statisticType:s,onStatisticField:l,outStatisticFieldName:g}]}if(C(p)||w(p)||M(p)&&o.series[0]?.binTemporalData){let g;if(o?.series?.[0]!==void 0&&(g=E(o.series)),g!==F.BarAndLineNoAggregation&&g!==F.BarAndLineSplitByNoAggregation){let f=ns(o);f===P.Quarter&&(f=P.Month),p.temporalBinning={size:as(o),unit:f,timeAggregationType:ls(o),trimIncompleteTimeInterval:cs(o),nullPolicy:ds(o)}}}return y(p)}function lt(i,e,t){let{layerFieldsInfo:s}=e,{idField:o,isTraditionalTypeOID:r}=_(e.layer),a=Q(i),l=ke(i),n=dt(i),c=pe(i),u=r&&(l.length===0||l.includes(o)),d=Fe(n,t),x=u?"":l.map(B=>k(s??[],B)).join(", "),p=k(s??[],a),g=k(s??[],c),f=i.series.some(B=>M(B)),b=f?"category":"xAxisField",m=p,v="";if(we({fieldName:a,numericFields:l,fieldList:s}))v=U(t.titleLabels.aggrTypeOfAggrFields,{aggregationType:d,aggregationFields:x});else if(n===T.NoAggregation){let B=u?o:x;if(c===""){let z=f?"aggrTypeCategory":"aggrTypeXAxisField";v=U(t.titleLabels[z],{aggregationType:B,[b]:m})}else{let z=f?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=U(t.titleLabels[z],{aggregationType:B,[b]:m,splitByField:g})}}else if(n===T.Count)if(c===""){let B=f?"aggrTypeCategory":"aggrTypeXAxisField";v=U(t.titleLabels[B],{aggregationType:d,[b]:m})}else{let B=f?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=U(t.titleLabels[B],{aggregationType:d,[b]:m,splitByField:g})}else if(c!==""){let B=f?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";v=U(t.titleLabels[B],{aggregationType:d,aggregationField:x,[b]:m,splitByField:g})}else if(l.length>0){let B=f?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";v=U(t.titleLabels[B],{aggregationType:d,aggregationFields:x,[b]:m})}return v}var ct=i=>W({where:i.query?.where,normalize:!1,escape:!1})??"",dt=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??T.NoAggregation,pe=xe(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return vi(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),ke=xe(i=>{let e=[];if(pe(i)==="")e=i?.series.map(t=>{let s=t.query?.outStatistics?.map(o=>o.onStatisticField)??[];return s?.length>0?s:t.y}).flat()??[];else{let t=i?.series?.[0],s=t?.query?.outStatistics?.[0]?.onStatisticField??[t?.y].flat()[0];e=s!==void 0?[s]:[]}return[...new Set(e.filter(t=>t!==""))]},i=>i?.series);function Fs(i){let{numericFields:e,aggregationType:t,config:s,layerInfo:o}=i,r=!1;t===T.Count?r=!0:t===T.NoAggregation&&(r=e.every(n=>{let c=o.layerFieldsInfo.find(u=>u.name===n);return c!==void 0?Be(c):!1})),Ji(s,1,r);let a=s.series.some(n=>C(n)),l=s.series.some(n=>w(n));if(a||l){let n=Q(s),c=o.layerFieldsInfo.find(d=>d.name===n),u=c!==void 0&&Be(c);Ji(s,0,u)}}var Ne=i=>{let e;if(H(i)){let t=i.orderOptions?.data?.orderByX??[""],s=i.orderOptions?.data?.orderByY??[""],o=i.axes?.[0]?.valueFormat?.type==="category"?S.Category:S.YValue,r=i.axes?.[1]?.valueFormat?.type==="category"?S.Category:S.YValue;e=[Ce(t,o),Ce(s,r)]}else{let t=i.orderOptions?.data?.orderType??S.Category,s=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:A.Ascending;e=[Ci(s,t)]}return e};function bs(i){let{xAxisField:e,numericFields:t,aggregationType:s,config:o,layerInfo:r,commonStrings:a}=i,{layerFieldsInfo:l}=r,n=!1,c=te({config:o,xAxisField:e,aggregationType:s,layerInfo:r,seriesIndex:0,commonStrings:a}),u=ge({config:o,xAxisField:e,numericFields:t,aggregationType:s,layer:r.layer,fieldList:l}).name,d={...c,id:`series_${Date.now()}`,name:a.axisLabels.values,x:Y,y:u},x=[];for(let g of t)x.push({onStatisticField:g,outStatisticFieldName:`${g}_0`.toUpperCase(),statisticType:s});d.query={outStatistics:x};let p=o.series[0];return p!==void 0&&(d.id=p.id,o.colorMatch||(M(p)&&M(d)?d.fillSymbol=p.fillSymbol:(C(d)&&C(p)||w(d)&&w(p))&&(d.lineSymbol=p.lineSymbol,d.markerSymbol=p.markerSymbol),n=!0),d.id=p.id,p.name!==c.name&&(d.name=p.name)),o.series.length===1&&!o.colorMatch&&(M(d)?d.fillSymbol=o.series[0].fillSymbol:(C(d)||w(d))&&(d.lineSymbol=o.series[0].lineSymbol,d.markerSymbol=o.series[0].markerSymbol),n=!0),o.colorMatch=!n,[d]}function ut(i){let{xAxisField:e,numericFields:t,aggregationType:s,config:o,layerInfo:r,commonStrings:a}=i,{layerFieldsInfo:l}=r,n=_(r.layer).idField,c=[],u=!1;for(let d=0;d<t.length;d+=1){let x=te({config:o,xAxisField:e,aggregationType:s,layerInfo:r,seriesIndex:d,commonStrings:a}),p=ge({config:o,xAxisField:e,numericFields:t,aggregationType:s,layer:r.layer,numericFieldIndex:d,fieldList:l}).name,g=t[d],f={...x,query:{...x.query}};t&&g!==n&&(f={...f,id:g,name:k(l,g)});let b=g;f.query!==void 0&&(s!==T.NoAggregation?(b=p,f.query.outStatistics=[{...x.query?.outStatistics?.[0]??{},onStatisticField:g,outStatisticFieldName:p,statisticType:s}]):delete f.query.outStatistics),f.y=b;let m=o.series.find(v=>v.query?.outStatistics?.[0]?.onStatisticField===g&&v.query.where===void 0);if(m!==void 0&&typeof m.y=="string"&&m.y.trim()!==""){o.colorMatch||(M(f)&&M(m)?f.fillSymbol=m.fillSymbol:(C(f)&&C(m)||w(f)&&w(m))&&(f.lineSymbol=m.lineSymbol,f.markerSymbol=m.markerSymbol),u=!0);let v=te({config:o,xAxisField:e,aggregationType:s,layerInfo:r,seriesIndex:d,commonStrings:a});f.id=m.id,m.id!==v.id&&m.name!==v.name&&(f.id=m.id,f.name=m.name)}c.push(f)}return o.series.length===1&&c.length===1&&!o.colorMatch&&(M(o.series[0])&&M(c[0])?c[0].fillSymbol=o.series[0].fillSymbol:(C(o.series[0])&&C(c[0])||w(o.series[0])&&w(c[0]))&&(c[0].lineSymbol=o.series[0].lineSymbol,c[0].markerSymbol=o.series[0].markerSymbol),u=!0),o.colorMatch=!u,c}async function Ts(i){let{splitByField:e,xAxisField:t,numericFields:s,aggregationType:o,config:r,layerInfo:a,commonStrings:l}=i,{layer:n,layerFieldsInfo:c}=a,{fetchNullValues:u}=r?.series?.[0]?.query??{},d=t!==Y?t:void 0,{categoriesArray:x,splitByFieldType:p,numericalField:g}=await Ht({config:r,layer:n,layerFieldsInfo:c,xAxisField:d,aggregationFields:s,splitByField:e,fetchNullValues:u}),f=[],b=!1;if(x.length===0){f=ut({xAxisField:t,numericFields:s,aggregationType:o,config:r,layerInfo:a,commonStrings:l});for(let m of f)m.query&&(m.query.where=`${e}=''`)}else for(let m=0;m<x.length;m+=1){let v=x[m],B=ge({config:r,xAxisField:t,numericFields:s,aggregationType:o,layer:a.layer,seriesIndex:m,splitByField:e,fieldList:c}).name,z=te({config:r,xAxisField:t,aggregationType:o,layerInfo:a,seriesIndex:m,commonStrings:l}),yt={fieldName:e,fieldValueToMatch:v??"",subtypeInfo:ce(a.layer),fieldList:a.layerFieldsInfo},gt=de(yt),me=`${v}`,L={...z,id:me,name:gt??me,y:B,query:{...z.query,where:`${e}=${p===he.String&&v!==null?`'${v}'`:v}`,outStatistics:o!==T.NoAggregation?[{...z.query?.outStatistics?.[0]??{},onStatisticField:g,outStatisticFieldName:B,statisticType:o}]:void 0}};o===T.NoAggregation&&(L.query!==void 0&&(delete L.query.outStatistics,delete L.query.groupByFieldsForStatistics),L.y=g);let V=r.series.find(ft=>String(ct(ft)).trim().replace(/'/gu,"")===me);V!==void 0&&(r.colorMatch||(M(L)&&M(V)?L.fillSymbol=V.fillSymbol:(C(L)&&C(V)||w(L)&&w(V))&&(L.lineSymbol=V.lineSymbol,L.markerSymbol=V.markerSymbol),b=!0),L.id=V.id,L.name=V.name),f.push(L)}return r.colorMatch=!b,f}var Or=async i=>{let{xAxisField:e,splitByField:t,numericFields:s,aggregationType:o,config:r,layerInfo:a,commonStrings:l}=i,{layerFieldsInfo:n}=a??{},c=at(r),u=Q(r),d=Bs(r,a,l),x=Os(r,a,l),p=As(r,a),g=st(r),f=r.series.some(v=>M(v)),b=Oi(r.series),m=Ai(r.series);if(n!==void 0){let v=gi(n);!v.includes(u)&&v.includes(e)?g=Xe():v.includes(u)&&!v.includes(e)&&(f?g=ne():g=Je()),n.find(B=>B.name===e)?.type===he.String&&(g=ne()),g!==void 0&&Jt(r,l,g)}if(c===0&&(r.series=[te({config:r,xAxisField:e,aggregationType:o,layerInfo:a,commonStrings:l})]),r.series.forEach(v=>{v.x=e,v.query!==void 0&&(v.query.groupByFieldsForStatistics=[e])}),t===""||s.length>1?we({fieldName:e,numericFields:s,fieldList:n})?r.series=bs({config:r,layerInfo:a,xAxisField:e,numericFields:s,aggregationType:o,commonStrings:l}):r.series=ut({config:r,layerInfo:a,xAxisField:e,numericFields:s,aggregationType:o,commonStrings:l}):(await Promise.resolve(),r.series=await Ts({config:r,layerInfo:a,splitByField:t,xAxisField:e,numericFields:s,aggregationType:o,commonStrings:l})),p){let v=k(n,e);fe(r,0,v)}if(x){let v=et({config:r,layerInfo:a,commonStrings:l,numericFields:s,aggregationType:o});fe(r,1,v)}if(r.title&&d&&(r.title.content.text=lt(r,a,l)),O({config:r,value:null,axisIndex:1,isMax:!1}),O({config:r,value:null,axisIndex:1,isMax:!0}),Fs({numericFields:s,aggregationType:o,config:r,layerInfo:a}),b||m){O({config:r,value:null,axisIndex:0,isMax:!1}),O({config:r,value:null,axisIndex:0,isMax:!0}),rt(0,r);let v=g?.type===h.DateAxisFormat?re.Null:re.Interpolate;us(v,r)}},Ar=i=>{let{config:e,seriesIndex:t,layerInfo:s,commonStrings:o}=i,r=e.series?.[t],a=pe(e),l;if(E(e.series)===F.BarAndLineFromFields)l=o.axisLabels.values;else if(q(a)){let n=r.query?.outStatistics?.[0]?.onStatisticField;n!==void 0&&n!==_(s.layer).idField&&(l=k(s.layerFieldsInfo,n))}else{let n=String(ct(r)).trim().replace(/'/gu,""),c={fieldName:pe(e),fieldValueToMatch:n??"",subtypeInfo:ce(s.layer),fieldList:s.layerFieldsInfo};l=de(c)??n}return l??r.id},Ir=(i,e)=>{if(H(e))hs(i,e);else{e.orderOptions??={};let t=e.orderOptions?.data?.orderType;Ne(e)[0]===ye.customSort&&t===S.Category&&(e.orderOptions.data={orderType:S.Category,orderBy:[...i]})}},Cr=async(i,e)=>{let t=Q(i),s=st(i)?.type,o=ke(i),r=E(i.series),a=[];return s===h.CategoryAxisFormat&&(r===F.BarAndLineFromFields||t===Y?a=o.map(l=>k(e?.layerFieldsInfo,l)):t.trim()!==""&&t!==Y&&e!==void 0&&(a=await Xt({layerInfo:e,config:i,category:t}))),a};function Bs(i,e,t){let s=lt(i,e,t),o=ot(i),r=R(i);return s===o||r}function Os(i,e,t){let s=et({config:i,layerInfo:e,commonStrings:t,numericFields:ke(i),aggregationType:dt(i)}),o=se(1,i),r=R(i);return s===o||r}function As(i,e){let t=k(e.layerFieldsInfo,Q(i)),s=se(0,i),o=R(i);return t===s||o}function wr(i){return i.series[0]?.binTemporalData??!1}function Lr(i,e){e?.series.forEach(t=>{(t?.type===h.BarSeries||t?.type===h.LineSeries)&&(t.binTemporalData=i,i?t.temporalBinning={unit:P.Day,size:0,timeAggregationType:$e.Start,trimIncompleteTimeInterval:!0,nullPolicy:re.Null}:delete t.temporalBinning)})}return{a:Ht,b:ro,c:ao,d:no,e:Xt,f:fe,g:et,h:lo,i:O,j:co,k:st,l:Jt,m:Ji,n:uo,o:yo,p:go,q:fo,r:po,s:mo,t:ie,u:es,v:ot,w:Pe,x:xo,y:vo,z:So,A:ho,B:Fo,C:bo,D:To,E:Bo,F:se,G:Oo,H:Ao,I:Io,J:Co,K:wo,L:Lo,M:qo,N:Mo,O:Po,P:No,Q:ko,R:Do,S:Eo,T:Vo,U:Uo,V:jo,W:$o,X:rs,Y:Ki,Z:as,_:ns,$:ls,aa:cs,ba:ds,ca:rt,da:us,ea:_o,fa:Go,ga:zo,ha:Wo,ia:Zi,ja:Ro,ka:Qo,la:Yo,ma:nt,na:Ho,oa:Xo,pa:Jo,qa:vs,ra:Ko,sa:Zo,ta:er,ua:ir,va:tr,wa:sr,xa:or,ya:Ss,za:rr,Aa:ar,Ba:nr,Ca:lr,Da:cr,Ea:dr,Fa:ur,Ga:yr,Ha:gr,Ia:fr,Ja:pr,Ka:mr,La:xr,Ma:vr,Na:Sr,Oa:hr,Pa:Fr,Qa:br,Ra:Tr,Sa:Br,Ta:lt,Ua:dt,Va:pe,Wa:ke,Xa:Ne,Ya:Or,Za:Ar,_a:Ir,$a:Cr,ab:wr,bb:Lr}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic",a,b)
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import{a as Ti,b as Bi,g as ee,i as C,j as w,k as M,l as Oi,m as Ai,o as Ii}from"./4M6MMWNB.js";import b from"./F6J76S2A.js";import a from"./B2O47KO4.js";import{d as xe,f as y,i as q,q as he,w as _e}from"./BBWWDMVH.js";import{e as Ee,f as oe}from"./P2L447Y4.js";import{a as ye}from"./PSGKKAGR.js";import{a as h,b as T,d as Ve,e as Ue,f as je,h as A,k as P,n as re,o as $e,p as ve,q as Se,v as S,w as N}from"./IQLHR7E5.js";import{G as De}from"./RWWV5W4Z.js";export default $arcgis.t(([,,,,,,,{substitute:U},,,,,,,,{Ba:Fe,Bc:ui,Cc:_,D:Qe,Da:oi,Db:X,Dc:yi,E:Ye,Fc:Be,Gc:gi,Hc:fi,Ic:ce,Jb:J,Jc:de,Kc:G,Kd:R,Lb:ai,Ld:Ie,Mc:Oe,N:j,Nc:pi,P:$,Pc:Ae,Q:He,Qc:mi,R:ne,Ra:H,Rc:xi,S:Xe,Sa:be,Sb:Te,T:Je,Uc:ue,Vc:W,W:Ke,Wc:vi,Xc:E,Yc:Si,Zc:I,b:Ge,c:ae,da:Ze,e:Y,fa:ei,ga:ii,h:ze,ia:ti,k:We,oa:si,qc:ni,rb:F,sc:le,tc:li,vc:ci,vd:hi,w:D,wb:ri,wd:Fi,x:Re,xc:di,xd:bi,yc:K,zb:k,zc:Z},{a:Ci,b:Ce,f:Q,g:ge,i:we}])=>{var Le=(i=>(i.NONE="none",i.ROTATE="rotate",i.STAGGER="stagger",i.WRAP="wrap",i))(Le||{});function pt(i){let{configToUpdate:e,chartContainer:t,layer:s}=i,o=y(e);if(s?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:r}=oe(t??document.documentElement);try{o.firstDayOfWeek=ze.local().setLocale(r.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function mt(i){let e=y(i);return q(i.axes)||(e.axes=i.axes?.map(t=>{let s=t;return delete s.calculateAutomaticMaximum,delete s.calculateAutomaticMinimum,s.title?.content.font?.style!==void 0&&(s.title.content.font.style=s.title.content.font.style.toLowerCase()),s})),e}function xt(i){let e=y(i);return q(i.series)||(e.series=i.series.map((t,s)=>{let o=t;t.id===void 0&&(o.id=`Series ${Date.now()}-${s}`);let r=N(i.series,s);return(r===h.BarSeries||r===h.LineSeries||r===h.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=T.ContinuousPercentile),r===h.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),r===h.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=Qe.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}async function wi(i,e){let t=[];return await Promise.all(i.map(async s=>{if(!X(s)){let o=J(s,!1);if(o.fieldToSort!==void 0){let r=await G({queryObject:e,fieldToMatch:o.fieldToSort});r!==void 0&&t.push(o.orderBy===void 0?r:`${r} ${o.orderBy}`)}}})),t}async function vt(i,e){let t={...i},s=e;if(!s){let o=ee(i)?i.iLayer:i.dataSource?.layer;o&&(s=await Z(o))}if(s){let o=E(t.series),r=N(t.series),a=t.series&&t.series.length>0&&t.series[0].x.trim()===""||r===h.GaugeSeries&&!bi(i)||o===F.PieFromFields||o===F.BarAndLineFromFields||o===F.BoxPlotMonoField||o===F.BoxPlotMonoFieldAndSplitBy||o===F.BoxPlotMultiFields||o===F.BoxPlotMultiFieldsAndSplitBy,l=r===h.ScatterSeries||o===F.BarAndLineNoAggregation||o===F.BarAndLineSplitByNoAggregation||o===F.BoxPlotMonoField||o===F.BoxPlotMonoFieldAndSplitBy||o===F.BoxPlotMonoFieldAndCategory||o===F.BoxPlotMonoFieldAndCategoryAndSplitBy||o===F.PieNoAggregation;if(t.series=await Promise.all(i.series.map(async n=>{let c={...n};if(a||(c.x=await G({queryObject:s,fieldToMatch:n.x})),"y"in c&&l){let u=c.y;if(Array.isArray(u)){let d=await Oe({fieldsList:u,queryObject:s});d!==void 0&&"y"in c&&(c.y=d)}else"y"in c&&typeof u=="string"&&(c.y=await G({queryObject:s,fieldToMatch:u}))}if(n.query!==void 0){let{where:u,groupByFieldsForStatistics:d,outStatistics:x}=n.query;if(d=await Oe({fieldsList:d,queryObject:s}),x!==void 0&&(x=await Promise.all(x.map(async p=>{let g={...p};return g.onStatisticField=await G({queryObject:s,fieldToMatch:p.onStatisticField}),g}))),u!==void 0&&o===F.BarAndLineSplitBy){let p=ue(n.query?.where),g=W({where:n.query?.where,normalize:!1,escape:!1});u=`${await G({queryObject:s,fieldToMatch:p})}=${g}`}c.query!==void 0&&(u!==void 0&&(c.query.where=u),d!==void 0&&(c.query.groupByFieldsForStatistics=d),x!==void 0&&(c.query.outStatistics=x))}return c})),t.series[0]?.query!==void 0){let n=t.series[0].query,{orderByFields:c}=n;c!==void 0&&c.length>0&&(c=await wi(c,s),c.length>0&&n.orderByFields!==void 0&&(t.series[0].query.orderByFields=c))}if(t.orderOptions?.orderByFields!==void 0){let{orderByFields:n}=t.orderOptions;n!==void 0&&n.length>0&&(n=await wi(n,s),n.length>0&&(t.orderOptions.orderByFields=n))}if(r===h.GaugeSeries&&i.axes?.[0]!==void 0){let{minimumFromField:n,maximumFromField:c}=i.axes[0];if(n!==void 0){let u=typeof n=="string"?n:n.onStatisticField,d=await G({queryObject:s,fieldToMatch:u}),x=n;typeof i.axes[0].minimumFromField=="string"?x=d:typeof n=="object"&&(x={...n,onStatisticField:d}),i.axes[0].minimumFromField=x}if(c!==void 0){let u=typeof c=="string"?c:c.onStatisticField,d=await G({queryObject:s,fieldToMatch:u}),x=c;typeof i.axes[0].maximumFromField=="string"?x=d:typeof c=="object"&&(x={...c,onStatisticField:d}),i.axes[0].maximumFromField=x}}}return t}function St(i){let e=y(i);if(!q(i.series)&&N(i.series)===h.BoxPlotSeries){let t=e.series[0];t&&(t.showOutliers!==void 0&&(i.showOutliers===void 0&&(e.showOutliers=t.showOutliers),delete t.showOutliers),t.standardizeValues!==void 0&&(i.standardizeValues===void 0&&(e.standardizeValues=t.standardizeValues),delete t.standardizeValues),t.showMean!==void 0&&(i.showMean===void 0&&(e.showMean=t.showMean),delete t.showMean))}return e}function ht(i){let e={orderType:S.Category,orderBy:A.Ascending},t=i.query?.orderByFields?.[0];if(t!==void 0){let{outStatisticFieldName:s,statisticType:o}=i.query?.outStatistics?.[0]??{},r=J(t);s!==void 0&&r.fieldToSort===s&&o!==void 0&&(o===T.Average||o==="mean"?e.orderType=S.Mean:o===T.ContinuousPercentile&&(e.orderType=S.Median)),e.orderBy=r.orderBy??A.Ascending}return e}function Ft(i){let e=!1,t=Array.from(new Set(i.series.map(s=>s.type)));return t.length===2&&t.includes(h.BoxPlotSeries)&&t.includes(h.LineSeries)&&(e=i.series.find(s=>s.type===h.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function bt(i){let e=y(i);if(!q(e.series)&&N(i.series)===h.BoxPlotSeries){if(e.orderOptions?.data===void 0){let t=ht(i.series[0]);t.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:t.orderType,orderBy:t.orderBy})}if(e.series=i.series.map(t=>{let s=t;return q(s.x?.trim())&&(s.x=Ye),delete s.query?.orderByFields,s}),Ft(e)){e.showMean=!0;let t=e.series.find(s=>s.type===h.BoxPlotSeries);e.series.forEach(s=>{s.type===h.LineSeries&&(delete s.query?.groupByFieldsForStatistics,delete s.query?.outStatistics,delete s.query?.orderByFields,t&&(s.y=t.y))})}e.series=i.series.map(t=>{let s=t;return delete s.query?.outStatistics,s})}return e}function Tt(i){let e=y(i);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=Number.NaN),e}function Bt(i){let e=y(i);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function Ot(i){let e=y(i),t=new Set,s=e.id??"";return t.add(s),e.series.forEach(o=>{let r=o.id;t.has(r)&&(r=`${r}_${Date.now()}`,o.id=r),t.add(r)}),e}async function At(i){let{configToUpdate:e,layer:t,chartContainer:s}=i,o=y(e);if(o=mt(o),o=xt(o),o=await vt(o,t),be(o)){let r=St(o);o=bt(r)}return o=Tt(o),o=Ot(o),H(o)&&(o=pt({configToUpdate:o,chartContainer:s,layer:t})),o}function It(i){let e=y(i);return e?.orderOptions?.orderByFields!==void 0&&E(i.series)===F.PieFromFields&&(e.orderOptions.orderByFields=i?.orderOptions?.orderByFields?.map(t=>{let s=y(t);return t!==void 0&&t.includes("arcgis_charts_pie_category_from_fields_name")&&(s=t.replace("arcgis_charts_pie_category_from_fields_name",ae)),s})),e}function Ct(i){let e=y(i);if(!q(i.series)&&e.axes?.[0]!==void 0&&N(i.series)===h.GaugeSeries&&i.axes?.[0]!==void 0){let t=i.axes[0];t.ticks!==void 0&&Object.hasOwn(t.ticks,"spacing")&&delete t.ticks.spacing,e.axes[0]=t}return e}function wt(i){let e=y(i),{extent:t}=e.series[0]?.query??{};return t!==void 0&&(e.dataFilters={...e.dataFilters,geometry:t},e.series.forEach(s=>{"query"in s&&"extent"in s.query&&delete s.query.extent})),e}function Hi(i){let e=y(i);return q(i.series)||(Ti(i)&&i.rotated===void 0&&(e.rotated=i.series[0].rotated??si()),e.series.forEach(t=>{t.rotated!==void 0&&delete t.rotated})),e}function Lt(i){let e=y(i),t=i.dataSource;return"dataSource"in e&&!q(t)&&(t.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in t&&(e.dataSource.layer=t.featureLayer,delete e.dataSource.featureLayer)),e}function qt(i){let e=y(i);if("dataSource"in i){let t=i.dataSource;if(t.filter!==void 0&&t.filter.trim()!==""){let s=K([t.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:s},delete e.dataSource.filter}}return e}function Mt(i){return i!=="originalValue"}function Xi(i){let e;switch(i){case"mean":e=S.Mean;break;case"median":e=S.Median;break;case"category":e=S.Category;break}return e}function Pt(i){let e=y(i);if(!q(i.series)&&N(i.series)===h.PieSeries){let t=e.series[0];if(t){if(t.sortLabelsBy==="originalValue")e.sortLabelsBy=t.sortLabelsBy;else if(t.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let s=qe(e);s!==void 0&&(e.orderOptions??={},e.orderOptions.data=s)}t.sortLabelsBy&&delete t.sortLabelsBy}}return e}function Nt(i){let e=y(i);return q(i.series)||(Bi(i)&&i.stackedType===void 0&&(e.stackedType=i.series[0].stackedType??oi()),e.series.forEach(t=>{"stackedType"in t&&delete t.stackedType})),e}function kt(i){let e=y(i),t=i.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof t=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:t==="DESC"?A.Descending:A.Ascending}),e}function Dt(i){let e=y(i);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===Ve.Match),e.series.forEach(t=>{t.colorType!==void 0&&delete t.colorType}),e}function Et(i){let e=y(i);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let t=i.sortDataBy,s=Xi(t?.sortType);s&&s!==S.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:s,orderBy:t?.sortOrder??A.Ascending})}delete e.sortDataBy}return e}function Vt(i){let e=y(i);return e.axes?.forEach(t=>{t!==void 0&&t.scrollbarVisible!==void 0&&t.scrollbar?.visible===void 0&&(t.scrollbar={...t.scrollbar,visible:t.scrollbarVisible},delete t.scrollbarVisible)}),e}function Ut(i){let e=y(i),t=e.series[0]?.query?.orderByFields;if(t!==void 0&&t.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let s=!0;if(t.length===1){let{fieldToSort:o,orderBy:r}=J(t[0]),a;o===i.series[0].x||o===ae?a=S.Category:"y"in i.series[0]&&o===i.series[0].y&&(a=S.YValue),a&&a!==S.MultiAxes&&(s=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:r?.toUpperCase()==="DESC"?A.Descending:A.Ascending}))}s&&(e.orderOptions.orderByFields=t)}return e.series.forEach(s=>{delete s.query?.orderByFields}),e}function qe(i){let e,t=i.orderOptions?.orderByFields?.[0];if(i.series?.length>0){let s=N(i.series),o=E(i.series);if(s!==h.PieSeries&&o!==F.BarAndLineFromFields&&(t=t??i.series[0].x),t&&!X(t)){let{fieldToSort:r,orderBy:a}=J(t),l;r===i.series[0].x||r===ae?l=S.Category:"y"in i.series[0]&&r===i.series[0].y&&(l=S.YValue),l&&l!==S.MultiAxes&&(e={orderType:l,orderBy:a?.toUpperCase()==="DESC"?A.Descending:A.Ascending})}}return e}function jt(i){let e=y(i),t=i,s=i,o=i,r=i,a=i;if(e){if(e.orderOptions?.series===void 0&&t.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:Mt(s.sortLabelsBy??t.sortOptions.sortSeriesBy.sortType),orderBy:t.sortOptions.sortSeriesBy.sortOrder??A.Ascending}),s.sortLabelsBy==="originalValue"||r.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(N(e.series)===h.BoxPlotSeries){if(s.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let l=Xi(o.sortOptions?.sortDataBy?.sortType);l&&l!==S.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:l,orderBy:o.sortOptions?.sortDataBy?.sortOrder??A.Ascending})}}else{let l=qe(e);l!==void 0&&(e.orderOptions??={},e.orderOptions.data=l)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function $t(i){let e=y(i);if(e){let t=E(e.series);if((t===F.BarAndLineFromFields||t===F.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let s=qe(e);s!==void 0&&(e.orderOptions??={},e.orderOptions.data=s,delete e.orderOptions.orderByFields)}}return e}function _t(i){let e=y(i);return e.horizontalAxisLabelsBehavior===Le.NONE&&(e.horizontalAxisLabelsBehavior=ve.Hide),e.verticalAxisLabelsBehavior===Le.NONE&&(e.verticalAxisLabelsBehavior=ve.Hide),e}function Gt(i){let e=y(i),t=e.series[0];if(t&&!t.temporalBinning&&I(e.series[0])&&("timeIntervalSize"in t||"timeIntervalUnits"in t||"timeAggregationType"in t||"trimIncompleteTimeInterval"in t||"nullPolicy"in t)){if(t.temporalBinning={},t.timeIntervalSize!==void 0&&(t.temporalBinning.size=t.timeIntervalSize,delete t.timeIntervalSize),t.timeIntervalUnits){let s;switch(t.timeIntervalUnits){case"esriTimeUnitsSeconds":s=P.Second;break;case"esriTimeUnitsMinutes":s=P.Minute;break;case"esriTimeUnitsHours":s=P.Hour;break;case"esriTimeUnitsDays":s=P.Day;break;case"esriTimeUnitsWeeks":s=P.Week;break;case"esriTimeUnitsMonths":s=P.Month;break;case"esriTimeUnitsYears":s=P.Year;break}s!==void 0&&(t.temporalBinning.unit=s),delete t.timeIntervalUnits}t.timeAggregationType&&(t.temporalBinning.timeAggregationType=t.timeAggregationType,delete t.timeAggregationType),t.trimIncompleteTimeInterval!==void 0&&(t.temporalBinning.trimIncompleteTimeInterval=t.trimIncompleteTimeInterval,delete t.trimIncompleteTimeInterval),t.nullPolicy&&(t.temporalBinning.nullPolicy=t.nullPolicy,delete t.nullPolicy)}return e}function zt(i){let e=y(i);return e.series.forEach(t=>{t.query?.outStatistics?.forEach(s=>{s.statisticType==="percentile_cont"?s.statisticType=T.ContinuousPercentile:s.statisticType==="percentile_disc"&&(s.statisticType=T.DiscretePercentile)})}),e}function Wt(i){let e=y(i);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Rt(i){let e=y(i),t=e.series[0];return t?.temporalBinning&&delete t.temporalBinning?.type,e}function Qt(i){let e=y(i);return e=It(e),e}function Li(i){let e=y(i);return e=Ct(e),e}function qi(i){let e=y(i);return e=wt(e),e}function Mi(i){let e=y(i);return e=Hi(e),e}function Pi(i){let e=y(i);return e=Lt(e),e}function Ni(i){let e=y(i);return e=qt(e),e}function ki(i){let e=y(i);return e=Pt(e),e}function Di(i){let e=y(i);return e=kt(e),e}function Ei(i){let e=y(i);return e=Dt(e),e}function Vi(i){return Vt(i)}function Ui(i){let e=y(i);return be(e)&&(e=Et(e)),e}function ji(i){return Nt(i)}function $i(i){return jt(i)}function _i(i){return Bt(i)}function Gi(i){return $t(i)}function zi(i){return _t(i)}function Wi(i){return Gt(i)}function Ri(i){return zt(i)}function Qi(i){let e=y(i);return e=Hi(e),Wt(e)}function Yi(i){let e=y(i);return e=Rt(e),e}function Yt(i){let{versionsToConvert:e=[],configToUpdate:t}=i,s=y(t);return e.length>0&&s!==void 0&&(s=Ut(s),e.includes(Ae)||e.includes(mi)?(s=Qt(s),s=Li(s),s=qi(s),s=Mi(s),s=Pi(s),s=Ni(s),s=ki(s),s=Di(s),s=Ei(s),s=Vi(s),s=Ui(s),s=ji(s),s=$i(s),s=_i(s),s=Gi(s),s=zi(s),s=Wi(s),s=Ri(s),s=Qi(s),s=Yi(s)):e.forEach(o=>{if(s!==void 0)switch(o){case"1.0.1":s=Li(s);break;case"3.4.0":s=qi(s);break;case"4.0.0":s=Mi(s);break;case"4.0.1":s=Pi(s);break;case"6.4.0":s=Ni(s);break;case"7.5.1":s=ki(s);break;case"8.0.0":s=Di(s);break;case"9.2.0":s=Ei(s);break;case"9.7.0":s=Vi(s);break;case"10.0.0":s=Ui(s);break;case"11.0.0":s=ji(s);break;case"14.0.1":s=$i(s);break;case"16.0.0":s=_i(s);break;case"16.1.0":s=Gi(s);break;case"18.1.3":s=zi(s);break;case"20.1.0":s=Wi(s);break;case"21.0.0":s=Ri(s);break;case"23.2.0":s=Qi(s);break;case"24.6.0":s=Yi(s);break}}),s.version=Ge),s}async function Me(i,e,t){let s=i;if(i){let o=le(e);s=await At({configToUpdate:i,layer:o,chartContainer:t});let r=i.version??Ae,{versionStatus:a,versions:l}=xi(r);(a===Se.Older||a===Se.Unrecognized)&&(s=Yt({versionsToConvert:l,configToUpdate:s}))}return s}async function Ht(i){let{config:e,layer:t,xAxisField:s,splitByField:o,layerFieldsInfo:r,aggregationFields:a,fetchNullValues:l}=i,n=r.filter(b=>b.name===o)[0]?.type,c=l!==!0?`${o} IS NOT NULL`:"",u=s&&l!==!0?`${s} IS NOT NULL`:"",{where:d}=e?.dataFilters??{},x={where:K([d,c,u]),orderByFields:X(o)?[]:[`${o} ${A.Ascending}`],geometry:e?.dataFilters?.geometry},p=t,g="";a.length===0?g=_(p).idField:[g]=a;let f=await Ie({queryObject:p,category:e?.series[0].x??"",splitByField:o,queryConfig:x});if(e){let b=e?.series.map(m=>W({where:m.query?.where})?.toString()??"").filter(m=>m!==void 0&&m!=="");f=ai({arrayA:f,arrayB:b,getKey:m=>m===null?null:m?.toString()})}return{categoriesArray:f,splitByFieldType:n,numericalField:g}}function ro(i,e){let t=e==="";for(let s of i)if(e===s.name){t=!0;break}return t}function ao(i,e){let t=fi(i),s=e.length===0,o=0;for(let r of e){for(let a of t)if(r===a&&(o+=1),o===e.length){s=!0;break}if(s)break}return s}function no(i,e){e.forEach(t=>{Object.getOwnPropertyNames(t.prototype).forEach(s=>{Object.defineProperty(i.prototype,s,Object.getOwnPropertyDescriptor(t.prototype,s)||Object.create(null))})})}async function Xt(i){let{layerInfo:e,config:t,category:s}=i,{layer:o}=e,{where:r}=t?.dataFilters??{},{fetchNullValues:a}=t?.series?.[0]?.query??{},l=a!==!0?`${s} IS NOT NULL`:"",n={where:K([r,l]),orderByFields:[],geometry:t?.dataFilters?.geometry},c=ce(o);return(await Ie({queryObject:o,category:s,queryConfig:n})).map(u=>{let d=String(u);return de({fieldName:s,fieldValueToMatch:d,subtypeInfo:c,fieldList:e.layerFieldsInfo})??d})}function fe(i,e,t){let s=i?.axes?.[e];s?.title!==void 0?s.title.content.text=t:s!==void 0&&(s.title=$({text:t,visible:!0,font:j(D.AxisTitle)}))}function et(i){let{config:e,layerInfo:t,commonStrings:s,numericFields:o,aggregationType:r}=i,a="";if(e)if(ri(e)===je.Stacked100)a=s.utilsStrings.statistics.percent;else{let l=Fe(r,s);if(o.length===1){let n=k(t.layerFieldsInfo,o[0]),c=_(t.layer).idField;r===T.NoAggregation?a=n:r===T.Count&&c!==void 0&&o[0]===c?a=s.utilsStrings.statistics.count:a=U(s.axisLabels.aggregationOfFieldName,{aggregation:l,fieldName:n})}else o.length>1&&(r===T.NoAggregation?a=s.axisLabels.values:a=U(s.axisLabels.aggregationOfValues,{aggregation:l}))}return a}var it=(i,e,t)=>i.axes?.[e]??Ze(t,i.type)[e],tt=i=>{let{config:e,axis:t,axisIndex:s}=i;e.axes!==void 0&&(e.axes[s]=t)},lo=i=>{let{config:e,axisIndex:t,isMax:s}=i,o=Number.NaN;return s?o=e.axes?.[t]?.maximum:o=e.axes?.[t]?.minimum,o??Number.NaN},O=i=>{let{config:e,value:t,axisIndex:s,isMax:o}=i,r=e?.axes?.[s];r!==void 0&&(o?r.maximum=t:r.minimum=t)},co=(i,e)=>{O({config:i,value:e,axisIndex:0,isMax:!1})},st=i=>i.axes?.[0]?.valueFormat??ne(),Jt=(i,e,t)=>{let s=it(i,0,e);if(s!==void 0&&t!==void 0){let o={...s,valueFormat:t};tt({config:i,axis:o,axisIndex:0})}},Ji=(i,e,t)=>{let s=i.axes?.[e];s!==void 0&&(s.integerOnlyValues=t)},Kt=i=>{let e=N(i.series);return e===h.BarSeries||e===h.ComboLineAndBarSeries||e===h.LineSeries},Zt=i=>{let{axisIndex:e,config:t,isMultiAxis:s}=i,o=!1;return e===0||e===1&&s?o=!0:e===2&&(o=Kt(t)),o},uo=i=>{let{axisIndex:e,func:t,config:s}=i;return Zt({axisIndex:e,config:s,isMultiAxis:!0})?t(e):void 0},yo=(i,e)=>{let t,s=e.axes?.[i]?.valueFormat;return(i===0||i>=1&&Ii(s))&&(t=s),t},go=i=>{let{config:e,commonStrings:t,valueFormat:s,axisIndex:o=0}=i,r=it(e,o,t);if(r!==void 0&&s!==void 0){let a={...r,valueFormat:s};tt({config:e,axis:a,axisIndex:o})}},fo=(i,e)=>i.axes?.[e]?.isLogarithmic??!1,po=i=>{let{config:e,isLogarithmic:t,axisIndex:s}=i,o=e.axes?.[s];o&&(o.isLogarithmic=t,O({config:e,value:null,axisIndex:s,isMax:!0}),O({config:e,value:null,axisIndex:s,isMax:!1}))},mo=i=>{let{config:e,scrollbar:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].scrollbar=t)},ie=class extends EventTarget{constructor(){super(...arguments),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this.dataStore={},this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e}),this.emitConfigUpdate=e=>{this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:e}}))},this.guardSetterFromAsyncOverwrite=async e=>{e(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,e())}}isSameChartAs(e){let t=e?.layer;return t!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===t.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:t,iLayer:s,config:o}=e;this.commonStrings=await Ee(oe(document.documentElement).t9nLocale,De("./assets/common/t9n"),"messages.");let r=t;if(!r&&s?r=await Z(s):!r&&o?.iLayer&&(r=await Z(o.iLayer)),r){let a=await ui(r,!0),l=_(r).idField;this.layerInfo={layer:r,layerFieldsInfo:a,objectIdField:l}}this._config=o?await Me(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=Ke().title),s&&(this._config.iLayer=s)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function es(i,e,t){let s=t.set,o=t.value;return s&&(t.set=function(r){this.guardSetterFromAsyncOverwrite(()=>{s.call(this,r),this.emitConfigUpdate(e)})}),o&&(t.value=function(...r){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,r),this.emitConfigUpdate(e)})}),t}var is=Object.defineProperty,ts=Object.getOwnPropertyDescriptor,ss=(i,e,t,s)=>{for(var o=ts(e,t),r=i.length-1,a;r>=0;r--)(a=i[r])&&(o=a(e,t,o)||o);return o&&is(e,t,o),o},ot=i=>i.title?.content.text??"",os=(i,e)=>{e.title!==void 0?e.title.content.text=i:e.title===void 0&&i!==void 0&&(e.title=$({text:i,visible:!0,font:j(D.ChartTitle)}))},Pe=class extends ie{get titleText(){return ot(this._config)}set titleText(e){os(e,this._config)}};ss([es],Pe.prototype,"titleText");var xo=(i,e)=>i.axes?.[e]?.title?.content,vo=i=>{let{config:e,axisIndex:t,symbol:s}=i,o=e.axes?.[t];if(o!==void 0){let r=o.title?.content.text;(o.title===void 0||s===void 0)&&(o.title=$({text:"",visible:!0,font:j(D.AxisTitle),type:D.AxisTitle})),s!==void 0&&(o.title.content=s),o.title.content.text=r}},So=i=>{for(let e of i.axes??[])if(e?.labels!==void 0)return e.labels.content},ho=(i,e)=>{for(let t of e.axes??[])if(t!==void 0){let s=t.labels?.content.text;i===void 0?t.labels=$({text:"",visible:!0,font:j(D.AxisLabels),type:D.AxisLabels}):t.labels.content=y(i),t.labels.content.text=s}},Fo=i=>{for(let e of i.axes??[])if(e?.lineSymbol!==void 0)return e.lineSymbol},bo=(i,e)=>{for(let t of e.axes??[])t!==void 0&&(t.lineSymbol=y(i)??He())},To=i=>{for(let e of i.axes??[])if(e?.grid!==void 0)return e.grid},Bo=(i,e,t)=>{let s=e.axes;t.forEach(o=>{s?.[o]!==void 0&&(s[o].grid=y(i))})},se=(i,e)=>e.axes?.[i]?.title?.content.text??"",Oo=(i,e,t)=>{let s=t.axes?.[e];s?.title!==void 0?s.title.content.text=i:s!==void 0&&s?.title===void 0&&(s.title=$({text:i,visible:!0,font:j(D.AxisTitle)}))},Ao=(i,e)=>e.axes?.[i]?.visible??!0,Io=(i,e,t)=>{let s=t.axes?.[e];s!==void 0&&(s.visible=i)},Co=(i,e)=>e.axes?.[i]?.labels?.visible??!0,wo=(i,e,t)=>{let s=t.axes?.[e];s?.labels!==void 0?s.labels.visible=i:s!==void 0&&s?.labels===void 0&&(s.labels=$({text:"",visible:i,font:j(D.AxisLabels),type:D.AxisLabels}))},Lo=(i,e)=>e.axes?.[i]?.title?.visible??!1,qo=(i,e,t)=>{let s=t.axes?.[e];s?.title!==void 0?s.title.visible=i:s!==void 0&&s?.title===void 0&&(s.title=$({text:se(e,t),visible:i,font:j(D.AxisTitle)}))},Mo=(i,e)=>i.axes?.[e]?.displayZeroLine??!1,Po=(i,e,t)=>{i.axes?.[t]!==void 0&&(i.axes[t].displayZeroLine=e)},No=(i,e)=>i.axes?.[e]?.displayCursorTooltip??!1,ko=i=>{let{config:e,displayCursorTooltip:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].displayCursorTooltip=t)},Do=(i,e)=>i.axes?.[e]?.buffer??!1,Eo=i=>{let{config:e,buffer:t,axisIndex:s}=i,o=e.axes?.[s];o!==void 0&&(o.buffer=t)},Vo=(i,e)=>i.axes?.[e]?.tickSpacing,Uo=i=>{let{config:e,tickSpacing:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].tickSpacing=t)},jo=(i,e)=>i.axes?.[e]?.integerOnlyValues??!1,$o=i=>{let{config:e,integerOnlyValues:t,axisIndex:s}=i;e.axes?.[s]!==void 0&&(e.axes[s].integerOnlyValues=t)},rs=i=>i.series.map(e=>String(W({where:e.query?.where}))).filter(e=>e!==void 0&&e.trim()!==""),Ki=class extends ie{get splitByValues(){return rs(this._config)}},as=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.size),e},ns=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.unit),e},ls=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.timeAggregationType),e},cs=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.trimIncompleteTimeInterval),e},ds=i=>{let e,t=i.series[0];return I(t)&&(e=t.temporalBinning?.nullPolicy),e},rt=(i,e)=>{e?.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.size=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},us=(i,e)=>{e?.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.nullPolicy=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},_o=(i,e)=>{e.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.unit=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Go=(i,e)=>{e.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.timeAggregationType=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},zo=(i,e)=>{e.series?.forEach(t=>{I(t)&&(t.temporalBinning??={},t.temporalBinning.trimIncompleteTimeInterval=i)}),O({config:e,value:null,axisIndex:1,isMax:!1}),O({config:e,value:null,axisIndex:1,isMax:!0})},Wo=i=>{rt(0,i)},at=i=>i.series.length??0,Zi=class extends ie{get seriesLength(){return at(this._config)}};function Ro(i,e){let t;return e!==void 0&&(t={...e},t.legend!==void 0&&(t.legend.position=i)),t}function Qo(i,e){let t;return e!==void 0&&(t={...e},t.legend!==void 0&&(t.legend.visible=i)),t}function Yo(i,e){let t;return e!==void 0&&(t={...e,rotated:i}),t}function nt(i){let e;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}function Ho(i,e){return e!=null||ee(i)}async function ys(i){let{queryObject:e,chartConfig:t,options:s,splitByField:o}=i,r=[],a,l=y(t),n=l.series[0],c=pi({queryObject:e,chartConfig:l,runtimeDataFilters:s?.runtimeDataFilters,ignoreViewExtent:s?.ignoreViewExtent});if(c.outStatistics?.[0]?.outStatisticFieldName&&(c.outStatistics[0].outStatisticFieldName=Re.outStatistics.outStatisticFieldName),I(n)&&Si({xAxisValueFormatType:We(l),setTimeBinningInfoWhenNotProvided:s?.setTimeBinningInfoWhenNotProvided,seriesConfig:n})&&ni(e)){let{temporalBinning:u,x:d}=n,{uniqueQuery:x}=await Te({chartConfig:l,queryConfig:c,queryObject:e,options:s});a=await di({queryObject:e,dateField:d,splitByField:o,queryConfig:x,temporalBinning:u}),r=Array.from(new Set(a.flatMap(p=>{let{stackedAttributes:g}=p,f=[];return g&&(f=g.map(b=>b[o]).filter(b=>b!==void 0)),f})).values())}else{let{uniqueQuery:u}=await Te({chartConfig:l,queryObject:e,queryConfig:c,options:s});a=await ci({queryObject:e,queryConfig:u,featureCount:1}),r=Array.from(new Set(a.map(d=>d.attributes[o]).filter(d=>d!==void 0)).values())}return{allValues:r,preFetchedQueryResponse:a}}function gs(i,e){let t=new Map;return i.series.forEach(s=>{let o=W({where:s.query?.where,normalize:!0,escape:!1});e&&o!==null&&(o=Number(o));let r=N([s]);r!==void 0&&t.set(r,[...t.get(r)??[],o])}),t}function fs(i){let{allValues:e,configUniqueValuesPerSeriesType:t,initialConfigWasEmpty:s}=i,o=new Map;return Array.from(t.keys()).forEach(r=>{let a=t.get(r)??[],l=[];s?l=e:e.forEach(n=>{a.includes(n)||l.push(n)}),o.set(r,l)}),o}function ps(i){let{chartConfig:e,missingValue:t,splitByField:s,seriesTemplate:o}=i,r=JSON.parse(JSON.stringify({...e.series[0],...o}));if(r.query){if(r.id=`${t}-${e.series.length}-${Date.now()}`,r.name=`${t}`,r.query.outStatistics?.[0]!==void 0){let l=r.id;r.query.outStatistics[0].outStatisticFieldName=l,"y"in r&&(r.y=l)}let a=typeof t=="number"||t===null?t:`'${t}'`;r.query.where=`${s}=${a}`}return r}async function ms(i){let{updateSplitBySeries:e,config:t,options:s,queryObject:o}=i,{seriesTemplate:r}=e??{},a;if(e!==void 0&&t!==void 0&&(t.series.length>0||r!==void 0)&&e.addMissingSeries){let l=t.series.length===0;t.series.length===0&&r!==void 0&&t.series.push(r);let n=E(t.series);if((n===F.BoxPlotMonoFieldAndSplitBy||n===F.BoxPlotMultiFieldsAndSplitBy||n===F.BoxPlotMonoFieldAndCategoryAndSplitBy||n===F.BarAndLineSplitBy||n===F.BarAndLineSplitByNoAggregation)&&o!==void 0){let c=ue(t.series[0]?.query?.where),u=le(o);await u.load();let d=u.getField(c)?.toJSON(),x=yi(d),p=await ys({queryObject:o,chartConfig:t,splitByField:c,options:s}),{allValues:g}=p;if({preFetchedQueryResponse:a}=p,g.length>0){let f=gs(t,x),b=fs({allValues:g,configUniqueValuesPerSeriesType:f,initialConfigWasEmpty:l});Array.from(b.keys()).forEach(m=>{(b.get(m)??[]).forEach(v=>{t.series.push(ps({chartConfig:t,seriesTemplate:r,missingValue:v,splitByField:c}))}),l&&t.series.shift()})}}}return a}function xs(i,e){e&&!ee(e)&&(e=li({chartConfig:e,queryObject:i}))}async function Xo(i){let{configToAlter:e,layer:t,addMissingSeries:s,updateSplitBySeries:o,chartContainer:r,creation:a,queryObject:l,options:n,previousConfig:c}=i,u=e,d;return u&&(xs(t,u),u=await Me(u,t),s&&(d=await ms({updateSplitBySeries:o,config:u,options:n,queryObject:l})),(a||c&&hi(c,u))&&(u=Fi(u,r))),{alteredConfig:u,preFetchedQueryResponse:d}}var Jo=i=>{let{xField:e,config:t,layerInfo:s}=i,{layerFieldsInfo:o}=s,r=se(0,t),a=vs(t),l=R(t),n=t.series[0];if(typeof e=="string"&&a!==e&&n&&(n.x=e,nt(t),a===r||l)){let c=k(o,e);fe(t,0,c)}},vs=i=>i.series[0].x??"",Ko=i=>i.hideEmptyRowsAndColumns,Zo=(i,e)=>{i.hideEmptyRowsAndColumns=e},er=(i,e)=>{let t=i.series[0];t.heatRulesType=e},ir=i=>i.series[0].heatRulesType,tr=(i,e)=>{let t=i.series[0];t.gradientRules=e},sr=i=>i.series[0].gradientRules,or=i=>{let{yField:e,config:t,layerInfo:s}=i,{layerFieldsInfo:o}=s,r=se(1,t),a=Ss(t),l=R(t),n=t.series[0];if(typeof e=="string"&&a!==e&&n&&(n.y=e,nt(t),a===r||l)){let c=k(o,e);fe(t,1,c)}},Ss=i=>i.series[0].y??"",rr=(i,e)=>{let t=e.series[0];t.xTemporalBinning=i},ar=i=>i.series[0].xTemporalBinning,nr=(i,e)=>{let t=e.series[0];t.yTemporalBinning=i},lr=i=>i.series[0].yTemporalBinning,hs=(i,e)=>{e.orderOptions??={};let t=e.axes?.[0]?.valueFormat?.type==="category"?S.Category:S.YValue,s=Ne(e)[0],o=e.axes?.[1]?.valueFormat?.type==="category"?S.Category:S.YValue,r=Ne(e)[1],a={...e.orderOptions.data??{},orderType:S.MultiAxes};s===ye.customSort&&t===S.Category&&(a.orderByX=[...i]),r===ye.customSort&&o===S.Category&&(a.orderByY=[...i]),Object.keys(a).length>1&&(e.orderOptions.data=a)},cr=(i,e)=>{let t=e.series[0];t.gridLine&&(t.gridLine.width=i)},dr=i=>i.series[0].gridLine?.width,ur=(i,e)=>{let t=e.series[0],s=i?.length===4&&i.every(o=>typeof o=="number");t.gridLine&&s&&(t.gridLine.color=i)},yr=i=>i.series[0].gridLine?.color,gr=(i,e)=>{let t=e.legend;t&&(t.position=i)},fr=i=>i.legend?.position??Ue.Bottom,pr=i=>i.series[0].query?.outStatistics?.[0]?.onStatisticField,mr=(i,e)=>{let t=e.series[0].query?.outStatistics?.[0];t&&(t.onStatisticField=i,t.outStatisticFieldName=`${t.statisticType}_${i}`)},xr=i=>i.series[0].query?.outStatistics?.[0].statisticType??T.Count,vr=(i,e)=>{let t=e.series[0]?.query?.outStatistics?.[0];t&&i!==T.NoAggregation&&(t.statisticType=i,t.outStatisticFieldName=`${i}_${t.onStatisticField}`)},Sr=i=>i.nullPolicy,hr=(i,e)=>{e.nullPolicy=i},Fr=i=>i.series[0].emptyCells?.text,br=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.text=i:e.series[0].emptyCells={text:i}},Tr=i=>i.series[0].emptyCells?.symbol,Br=(i,e)=>{e.series[0].emptyCells?e.series[0].emptyCells.symbol=i:e.series[0].emptyCells={symbol:i}};function te(i){let{seriesIndex:e,xAxisField:t,aggregationType:s,config:o,layerInfo:r,commonStrings:a}=i,l=_(r?.layer).idField,n,c=o.series[e??0],u=!1,d=!1;if(c===void 0){let g=o.series;u=g.slice(0,e).every(f=>C(f)),d=g.slice(0,e).every(f=>w(f))}else u=C(c),d=w(c);u?n=ei({commonStrings:a,seriesIndex:e,objectIDField:l}):d?n=ii({commonStrings:a,seriesIndex:e,objectIDField:l}):n=ti({seriesIndex:e,objectIDField:l,commonStrings:a});let x=o.series[0]?.dataLabels,p={...n,x:t,y:"",dataLabels:{...n.dataLabels,type:n.dataLabels?.type??h.Text,content:{...n.dataLabels?.content,...x?.content,type:_e.TS},visible:x?.visible??!1}};if(p.query={groupByFieldsForStatistics:[t]},s!==T.NoAggregation&&l!==void 0){let g=`${s}_${l}_0`.toUpperCase();p.y=g,p.query.outStatistics=[{statisticType:s,onStatisticField:l,outStatisticFieldName:g}]}if(C(p)||w(p)||M(p)&&o.series[0]?.binTemporalData){let g;if(o?.series?.[0]!==void 0&&(g=E(o.series)),g!==F.BarAndLineNoAggregation&&g!==F.BarAndLineSplitByNoAggregation){let f=ns(o);f===P.Quarter&&(f=P.Month),p.temporalBinning={size:as(o),unit:f,timeAggregationType:ls(o),trimIncompleteTimeInterval:cs(o),nullPolicy:ds(o)}}}return y(p)}function lt(i,e,t){let{layerFieldsInfo:s}=e,{idField:o,isTraditionalTypeOID:r}=_(e.layer),a=Q(i),l=ke(i),n=dt(i),c=pe(i),u=r&&(l.length===0||l.includes(o)),d=Fe(n,t),x=u?"":l.map(B=>k(s??[],B)).join(", "),p=k(s??[],a),g=k(s??[],c),f=i.series.some(B=>M(B)),b=f?"category":"xAxisField",m=p,v="";if(we({fieldName:a,numericFields:l,fieldList:s}))v=U(t.titleLabels.aggrTypeOfAggrFields,{aggregationType:d,aggregationFields:x});else if(n===T.NoAggregation){let B=u?o:x;if(c===""){let z=f?"aggrTypeCategory":"aggrTypeXAxisField";v=U(t.titleLabels[z],{aggregationType:B,[b]:m})}else{let z=f?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=U(t.titleLabels[z],{aggregationType:B,[b]:m,splitByField:g})}}else if(n===T.Count)if(c===""){let B=f?"aggrTypeCategory":"aggrTypeXAxisField";v=U(t.titleLabels[B],{aggregationType:d,[b]:m})}else{let B=f?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";v=U(t.titleLabels[B],{aggregationType:d,[b]:m,splitByField:g})}else if(c!==""){let B=f?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";v=U(t.titleLabels[B],{aggregationType:d,aggregationField:x,[b]:m,splitByField:g})}else if(l.length>0){let B=f?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";v=U(t.titleLabels[B],{aggregationType:d,aggregationFields:x,[b]:m})}return v}var ct=i=>W({where:i.query?.where,normalize:!1,escape:!1})??"",dt=i=>i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??T.NoAggregation,pe=xe(i=>{let e=i?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return vi(i?.series?.[0]?.query?.where)?"":e},i=>i?.series?.[0]?.query?.where),ke=xe(i=>{let e=[];if(pe(i)==="")e=i?.series.map(t=>{let s=t.query?.outStatistics?.map(o=>o.onStatisticField)??[];return s?.length>0?s:t.y}).flat()??[];else{let t=i?.series?.[0],s=t?.query?.outStatistics?.[0]?.onStatisticField??[t?.y].flat()[0];e=s!==void 0?[s]:[]}return[...new Set(e.filter(t=>t!==""))]},i=>i?.series);function Fs(i){let{numericFields:e,aggregationType:t,config:s,layerInfo:o}=i,r=!1;t===T.Count?r=!0:t===T.NoAggregation&&(r=e.every(n=>{let c=o.layerFieldsInfo.find(u=>u.name===n);return c!==void 0?Be(c):!1})),Ji(s,1,r);let a=s.series.some(n=>C(n)),l=s.series.some(n=>w(n));if(a||l){let n=Q(s),c=o.layerFieldsInfo.find(d=>d.name===n),u=c!==void 0&&Be(c);Ji(s,0,u)}}var Ne=i=>{let e;if(H(i)){let t=i.orderOptions?.data?.orderByX??[""],s=i.orderOptions?.data?.orderByY??[""],o=i.axes?.[0]?.valueFormat?.type==="category"?S.Category:S.YValue,r=i.axes?.[1]?.valueFormat?.type==="category"?S.Category:S.YValue;e=[Ce(t,o),Ce(s,r)]}else{let t=i.orderOptions?.data?.orderType??S.Category,s=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy:A.Ascending;e=[Ci(s,t)]}return e};function bs(i){let{xAxisField:e,numericFields:t,aggregationType:s,config:o,layerInfo:r,commonStrings:a}=i,{layerFieldsInfo:l}=r,n=!1,c=te({config:o,xAxisField:e,aggregationType:s,layerInfo:r,seriesIndex:0,commonStrings:a}),u=ge({config:o,xAxisField:e,numericFields:t,aggregationType:s,layer:r.layer,fieldList:l}).name,d={...c,id:`series_${Date.now()}`,name:a.axisLabels.values,x:Y,y:u},x=[];for(let g of t)x.push({onStatisticField:g,outStatisticFieldName:`${g}_0`.toUpperCase(),statisticType:s});d.query={outStatistics:x};let p=o.series[0];return p!==void 0&&(d.id=p.id,o.colorMatch||(M(p)&&M(d)?d.fillSymbol=p.fillSymbol:(C(d)&&C(p)||w(d)&&w(p))&&(d.lineSymbol=p.lineSymbol,d.markerSymbol=p.markerSymbol),n=!0),d.id=p.id,p.name!==c.name&&(d.name=p.name)),o.series.length===1&&!o.colorMatch&&(M(d)?d.fillSymbol=o.series[0].fillSymbol:(C(d)||w(d))&&(d.lineSymbol=o.series[0].lineSymbol,d.markerSymbol=o.series[0].markerSymbol),n=!0),o.colorMatch=!n,[d]}function ut(i){let{xAxisField:e,numericFields:t,aggregationType:s,config:o,layerInfo:r,commonStrings:a}=i,{layerFieldsInfo:l}=r,n=_(r.layer).idField,c=[],u=!1;for(let d=0;d<t.length;d+=1){let x=te({config:o,xAxisField:e,aggregationType:s,layerInfo:r,seriesIndex:d,commonStrings:a}),p=ge({config:o,xAxisField:e,numericFields:t,aggregationType:s,layer:r.layer,numericFieldIndex:d,fieldList:l}).name,g=t[d],f={...x,query:{...x.query}};t&&g!==n&&(f={...f,id:g,name:k(l,g)});let b=g;f.query!==void 0&&(s!==T.NoAggregation?(b=p,f.query.outStatistics=[{...x.query?.outStatistics?.[0]??{},onStatisticField:g,outStatisticFieldName:p,statisticType:s}]):delete f.query.outStatistics),f.y=b;let m=o.series.find(v=>v.query?.outStatistics?.[0]?.onStatisticField===g&&v.query.where===void 0);if(m!==void 0&&typeof m.y=="string"&&m.y.trim()!==""){o.colorMatch||(M(f)&&M(m)?f.fillSymbol=m.fillSymbol:(C(f)&&C(m)||w(f)&&w(m))&&(f.lineSymbol=m.lineSymbol,f.markerSymbol=m.markerSymbol),u=!0);let v=te({config:o,xAxisField:e,aggregationType:s,layerInfo:r,seriesIndex:d,commonStrings:a});f.id=m.id,m.id!==v.id&&m.name!==v.name&&(f.id=m.id,f.name=m.name)}c.push(f)}return o.series.length===1&&c.length===1&&!o.colorMatch&&(M(o.series[0])&&M(c[0])?c[0].fillSymbol=o.series[0].fillSymbol:(C(o.series[0])&&C(c[0])||w(o.series[0])&&w(c[0]))&&(c[0].lineSymbol=o.series[0].lineSymbol,c[0].markerSymbol=o.series[0].markerSymbol),u=!0),o.colorMatch=!u,c}async function Ts(i){let{splitByField:e,xAxisField:t,numericFields:s,aggregationType:o,config:r,layerInfo:a,commonStrings:l}=i,{layer:n,layerFieldsInfo:c}=a,{fetchNullValues:u}=r?.series?.[0]?.query??{},d=t!==Y?t:void 0,{categoriesArray:x,splitByFieldType:p,numericalField:g}=await Ht({config:r,layer:n,layerFieldsInfo:c,xAxisField:d,aggregationFields:s,splitByField:e,fetchNullValues:u}),f=[],b=!1;if(x.length===0){f=ut({xAxisField:t,numericFields:s,aggregationType:o,config:r,layerInfo:a,commonStrings:l});for(let m of f)m.query&&(m.query.where=`${e}=''`)}else for(let m=0;m<x.length;m+=1){let v=x[m],B=ge({config:r,xAxisField:t,numericFields:s,aggregationType:o,layer:a.layer,seriesIndex:m,splitByField:e,fieldList:c}).name,z=te({config:r,xAxisField:t,aggregationType:o,layerInfo:a,seriesIndex:m,commonStrings:l}),yt={fieldName:e,fieldValueToMatch:v??"",subtypeInfo:ce(a.layer),fieldList:a.layerFieldsInfo},gt=de(yt),me=`${v}`,L={...z,id:me,name:gt??me,y:B,query:{...z.query,where:`${e}=${p===he.String&&v!==null?`'${v}'`:v}`,outStatistics:o!==T.NoAggregation?[{...z.query?.outStatistics?.[0]??{},onStatisticField:g,outStatisticFieldName:B,statisticType:o}]:void 0}};o===T.NoAggregation&&(L.query!==void 0&&(delete L.query.outStatistics,delete L.query.groupByFieldsForStatistics),L.y=g);let V=r.series.find(ft=>String(ct(ft)).trim().replace(/'/gu,"")===me);V!==void 0&&(r.colorMatch||(M(L)&&M(V)?L.fillSymbol=V.fillSymbol:(C(L)&&C(V)||w(L)&&w(V))&&(L.lineSymbol=V.lineSymbol,L.markerSymbol=V.markerSymbol),b=!0),L.id=V.id,L.name=V.name),f.push(L)}return r.colorMatch=!b,f}var Or=async i=>{let{xAxisField:e,splitByField:t,numericFields:s,aggregationType:o,config:r,layerInfo:a,commonStrings:l}=i,{layerFieldsInfo:n}=a??{},c=at(r),u=Q(r),d=Bs(r,a,l),x=Os(r,a,l),p=As(r,a),g=st(r),f=r.series.some(v=>M(v)),b=Oi(r.series),m=Ai(r.series);if(n!==void 0){let v=gi(n);!v.includes(u)&&v.includes(e)?g=Xe():v.includes(u)&&!v.includes(e)&&(f?g=ne():g=Je()),n.find(B=>B.name===e)?.type===he.String&&(g=ne()),g!==void 0&&Jt(r,l,g)}if(c===0&&(r.series=[te({config:r,xAxisField:e,aggregationType:o,layerInfo:a,commonStrings:l})]),r.series.forEach(v=>{v.x=e,v.query!==void 0&&(v.query.groupByFieldsForStatistics=[e])}),t===""||s.length>1?we({fieldName:e,numericFields:s,fieldList:n})?r.series=bs({config:r,layerInfo:a,xAxisField:e,numericFields:s,aggregationType:o,commonStrings:l}):r.series=ut({config:r,layerInfo:a,xAxisField:e,numericFields:s,aggregationType:o,commonStrings:l}):(await Promise.resolve(),r.series=await Ts({config:r,layerInfo:a,splitByField:t,xAxisField:e,numericFields:s,aggregationType:o,commonStrings:l})),p){let v=k(n,e);fe(r,0,v)}if(x){let v=et({config:r,layerInfo:a,commonStrings:l,numericFields:s,aggregationType:o});fe(r,1,v)}if(r.title&&d&&(r.title.content.text=lt(r,a,l)),O({config:r,value:null,axisIndex:1,isMax:!1}),O({config:r,value:null,axisIndex:1,isMax:!0}),Fs({numericFields:s,aggregationType:o,config:r,layerInfo:a}),b||m){O({config:r,value:null,axisIndex:0,isMax:!1}),O({config:r,value:null,axisIndex:0,isMax:!0}),rt(0,r);let v=g?.type===h.DateAxisFormat?re.Null:re.Interpolate;us(v,r)}},Ar=i=>{let{config:e,seriesIndex:t,layerInfo:s,commonStrings:o}=i,r=e.series?.[t],a=pe(e),l;if(E(e.series)===F.BarAndLineFromFields)l=o.axisLabels.values;else if(q(a)){let n=r.query?.outStatistics?.[0]?.onStatisticField;n!==void 0&&n!==_(s.layer).idField&&(l=k(s.layerFieldsInfo,n))}else{let n=String(ct(r)).trim().replace(/'/gu,""),c={fieldName:pe(e),fieldValueToMatch:n??"",subtypeInfo:ce(s.layer),fieldList:s.layerFieldsInfo};l=de(c)??n}return l??r.id},Ir=(i,e)=>{if(H(e))hs(i,e);else{e.orderOptions??={};let t=e.orderOptions?.data?.orderType;Ne(e)[0]===ye.customSort&&t===S.Category&&(e.orderOptions.data={orderType:S.Category,orderBy:[...i]})}},Cr=async(i,e)=>{let t=Q(i),s=st(i)?.type,o=ke(i),r=E(i.series),a=[];return s===h.CategoryAxisFormat&&(r===F.BarAndLineFromFields||t===Y?a=o.map(l=>k(e?.layerFieldsInfo,l)):t.trim()!==""&&t!==Y&&e!==void 0&&(a=await Xt({layerInfo:e,config:i,category:t}))),a};function Bs(i,e,t){let s=lt(i,e,t),o=ot(i),r=R(i);return s===o||r}function Os(i,e,t){let s=et({config:i,layerInfo:e,commonStrings:t,numericFields:ke(i),aggregationType:dt(i)}),o=se(1,i),r=R(i);return s===o||r}function As(i,e){let t=k(e.layerFieldsInfo,Q(i)),s=se(0,i),o=R(i);return t===s||o}function wr(i){return i.series[0]?.binTemporalData??!1}function Lr(i,e){e?.series.forEach(t=>{(t?.type===h.BarSeries||t?.type===h.LineSeries)&&(t.binTemporalData=i,i?t.temporalBinning={unit:P.Day,size:0,timeAggregationType:$e.Start,trimIncompleteTimeInterval:!0,nullPolicy:re.Null}:delete t.temporalBinning)})}return{a:Ht,b:ro,c:ao,d:no,e:Xt,f:fe,g:et,h:lo,i:O,j:co,k:st,l:Jt,m:Ji,n:uo,o:yo,p:go,q:fo,r:po,s:mo,t:ie,u:es,v:ot,w:Pe,x:xo,y:vo,z:So,A:ho,B:Fo,C:bo,D:To,E:Bo,F:se,G:Oo,H:Ao,I:Io,J:Co,K:wo,L:Lo,M:qo,N:Mo,O:Po,P:No,Q:ko,R:Do,S:Eo,T:Vo,U:Uo,V:jo,W:$o,X:rs,Y:Ki,Z:as,_:ns,$:ls,aa:cs,ba:ds,ca:rt,da:us,ea:_o,fa:Go,ga:zo,ha:Wo,ia:Zi,ja:Ro,ka:Qo,la:Yo,ma:nt,na:Ho,oa:Xo,pa:Jo,qa:vs,ra:Ko,sa:Zo,ta:er,ua:ir,va:tr,wa:sr,xa:or,ya:Ss,za:rr,Aa:ar,Ba:nr,Ca:lr,Da:cr,Ea:dr,Fa:ur,Ga:yr,Ha:gr,Ia:fr,Ja:pr,Ka:mr,La:xr,Ma:vr,Na:Sr,Oa:hr,Pa:Fr,Qa:br,Ra:Tr,Sa:Br,Ta:lt,Ua:dt,Va:pe,Wa:ke,Xa:Ne,Ya:Or,Za:Ar,_a:Ir,$a:Cr,ab:wr,bb:Lr}},"geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","intl","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic",a,b)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{d as h}from"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import{d as h}from"./VCP53FGH.js";import{g as S}from"./4M6MMWNB.js";import a from"./B2O47KO4.js";import{f as d,j as c,w as I}from"./BBWWDMVH.js";import"./P2L447Y4.js";import"./IQLHR7E5.js";import{F as y,g as C,h as n,m,z as u}from"./RWWV5W4Z.js";import"./LS75INIU.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Bc:F,zc:v}])=>{var b=C`:host{overflow-y:auto;overflow-x:hidden;margin-bottom:var(--arcgis-charts-intra-section-margin);margin-top:var(--arcgis-charts-intra-section-margin);height:100%}`,p=class extends u{constructor(){super(...arguments),this.onModelConfigChange=async e=>{let i=e?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(i)},this.popoverPlacement="leading",this.arcgisChartsConfigNoSeriesUpdate=m(),this.arcgisChartsConfigWebChartChange=m()}static{this.properties={layerFieldsInfo:16,model:0,popoverPlacement:1,seriesColor:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5,filterBySelection:5,chartData:0}}static{this.styles=b}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(e){let i=!1;e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("layer")&&this.layer!==void 0&&!c(e.get("layer"),this.layer)&&(i=!0),e.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==e.get("usePopupTemplateFieldsInfo")&&(i=!0),e.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(i=!0),i&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(e){let{slices:i,groupedSlices:o,groupOfSlices:a}=e?.get(0)??{},s=[];this.filterBySelection===!0?s=this.model.slices?.map(r=>i?.find(t=>t.sliceId===r.sliceId)??o?.find(t=>t.sliceId===r.sliceId)??r)??[]:s=(i??[]).concat(o??[]),s.forEach((r,t)=>{let f=this.model.slices?.find(L=>L.sliceId===s[t].sliceId);f&&(s[t]={...s[t],...f});let l=s[t].fillSymbol;l!==void 0&&!c(l?.outline?.color,l?.color)&&(l.outline={...l.outline??{},type:I.SLS,color:l.color})});let g=(o??[]).map(r=>r.sliceId);o!==void 0&&!c(g,this.model.groupedSliceIds)&&(this.model.groupedSliceIds=d(g)),c(s,this.model.slices)||(this.model.slices=d(s)),a!==void 0&&!c(a,this.model.sliceGrouping)&&(this.model.sliceGrouping=d(a))}async updateFetchLayerFieldsInfo(e){let i=e??this.model.config,o=this.layer;if(!o){let a=S(i)?i.iLayer:void 0;a&&(o=await v(a))}o&&(this.layerFieldsInfo=await F(o,this.usePopupTemplateFieldsInfo))}render(){let e;switch(this.page){case h.Data:e=n`<arcgis-charts-config-pie-chart-data .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-pie-chart-data>`;break;case h.Slices:e=n`<arcgis-charts-config-pie-chart-slices .model=${this.model} .chartData=${this.chartData} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-pie-chart-slices>`;break;case h.Format:e=n`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case h.General:e=n`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:e="";break}return e}};y("arcgis-charts-config-pie-chart",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import e from"./RZF47IF3.js";import d from"./R4UXY6OA.js";import c from"./SEGSRZJQ.js";import"./4M6MMWNB.js";import b from"./F6J76S2A.js";import a from"./B2O47KO4.js";import"./BBWWDMVH.js";import"./P2L447Y4.js";import{c as s}from"./PSGKKAGR.js";import{a as y}from"./IQLHR7E5.js";import"./RWWV5W4Z.js";import"./LS75INIU.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Cc:f,Db:d,wa:c},{e:g},{Aa:R,Ba:P,Ca:v,Da:w,Ea:L,Fa:D,Ga:E,Ha:I,Ia:W,Ja:H,Ka:N,La:X,Ma:j,Na:k,Oa:M,Pa:V,Qa:Y,Ra:J,Sa:z,Xa:l,d:h,pa:u,qa:_,ra:x,sa:T,ta:A,u:i,ua:S,va:C,wa:F,xa:O,ya:b,za:B},{e:G,g:K,m:Q,n:U},Z])=>{var $=Object.defineProperty,q=Object.getOwnPropertyDescriptor,o=(p,t,r,tt)=>{for(var n=q(t,r),a=p.length-1,m;a>=0;a--)(m=p[a])&&(n=m(t,r,n)||n);return n&&$(t,r,n),n},e=class extends Z{constructor(){super(...arguments),this._chartType=y.HeatSeries}generateChartTitle(){throw new Error("Method not implemented.")}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get xAxisField(){return _(this._config)}set xAxisField(t){u({xField:t,config:this._config,layerInfo:this.layerInfo})}get yAxisField(){return b(this._config)}set yAxisField(t){O({yField:t,config:this._config,layerInfo:this.layerInfo})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){B(t,this._config)}get yTemporalBinning(){return v(this._config)}set yTemporalBinning(t){P(t,this._config)}get hideEmptyRowsAndColumns(){return x(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return L(this._config)}set gridLineWidth(t){w(t,this._config)}get gridLineColor(){return E(this._config)}set gridLineColor(t){D(t,this._config)}get seriesName(){return Q(0,this._config)}set seriesName(t){typeof t=="string"&&U(t,0,this.config)}get heatRulesType(){return S(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return F(this._config)}set gradientRules(t){C(this._config,t)}get numericFields(){let t=H(this._config);return t!==void 0?[t]:[]}set numericFields(t){let r=t[0];d(r)||N(r,this._config)}get aggregationType(){return X(this._config)}set aggregationType(t){j(t,this._config)}get splitByField(){return""}set splitByField(t){}set legendTitleText(t){}get legendPosition(){return W(this._config)}set legendPosition(t){I(t,this._config)}get nullPolicy(){return k(this._config)}set nullPolicy(t){M(t,this._config)}getSortOrder(){return s.Asc}setSortOrder(t,r){}getXAxisSortOrder(){let t=l(this._config)[0];return t===s.Asc||t===s.Desc||t===s.customSort?t:s.Asc}setXAxisSortOrder(t,r){g(t,this._config,r)}getYAxisSortOrder(){let t=l(this._config)[1];return t===s.Asc||t===s.Desc||t===s.customSort?t:s.Asc}setYAxisSortOrder(t,r){g(t,this._config,r,!0)}get emptyCellText(){return V(this._config)}set emptyCellText(t){Y(t,this._config)}get emptyCellSymbol(){return J(this._config)}set emptyCellSymbol(t){z(t,this._config)}setAssignToSecondValueAxis(t,r){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=c(this.commonStrings,f(this.layerInfo.layer).idField);return t.axes?.forEach(r=>{r&&(r.valueFormat={intlOptions:{timeZone:void 0},type:"date"})}),t}};o([i],e.prototype,"xAxisField");o([i],e.prototype,"yAxisField");o([i],e.prototype,"xTemporalBinning");o([i],e.prototype,"yTemporalBinning");o([i],e.prototype,"hideEmptyRowsAndColumns");o([i],e.prototype,"gridLineWidth");o([i],e.prototype,"gridLineColor");o([i],e.prototype,"seriesName");o([i],e.prototype,"heatRulesType");o([i],e.prototype,"gradientRules");o([i],e.prototype,"numericFields");o([i],e.prototype,"aggregationType");o([i],e.prototype,"splitByField");o([i],e.prototype,"legendTitleText");o([i],e.prototype,"legendPosition");o([i],e.prototype,"nullPolicy");o([i],e.prototype,"setSortOrder");o([i],e.prototype,"setXAxisSortOrder");o([i],e.prototype,"setYAxisSortOrder");o([i],e.prototype,"emptyCellText");o([i],e.prototype,"emptyCellSymbol");o([i],e.prototype,"setAssignToSecondValueAxis");o([i],e.prototype,"stackedType");o([i],e.prototype,"binTemporalData");o([i],e.prototype,"nullCategory");h(e,[G,K]);return e},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import e from"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import e from"./UK24GJR2.js";import d from"./R4UXY6OA.js";import c from"./SEGSRZJQ.js";import"./4M6MMWNB.js";import b from"./F6J76S2A.js";import a from"./B2O47KO4.js";import"./BBWWDMVH.js";import"./P2L447Y4.js";import"./PSGKKAGR.js";import{a as p}from"./IQLHR7E5.js";import"./RWWV5W4Z.js";import"./LS75INIU.js";export default $arcgis.t(([,,,,,,,,,,,,,,,{Aa:h,zb:g},,{d:l,u:o},{V:_,a:y,b:c,c:f,e:d,g:u,i:v},{A:K,a:b,b:S,c:w,d:O,e:D,f:C,g:M,h:T,i:F,j:E,k:x,l:I,m:j,n:N,o:z,p:A,q:H,r:P,s:X,t:k,u:q,v:L,w:W,x:B,y:G,z:J}])=>{var Q=Object.defineProperty,R=Object.getOwnPropertyDescriptor,r=(i,t,a,Y)=>{for(var s=R(t,a),n=i.length-1,m;n>=0;n--)(m=i[n])&&(s=m(t,a,s)||s);return s&&Q(t,a,s),s},e=class extends y{constructor(){super(...arguments),this._chartType=p.HistogramSeries}async setup(t){await this.loadConfigFromLayer(t),typeof this.resolveSetup=="function"&&this.resolveSetup()}get numericField(){return S(this._config)}set numericField(t){w({numericField:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binCount(){return C(this._config)}set binCount(t){M(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get binSymbol(){return T(this._config)}set binSymbol(t){F(t,this._config)}get dataTransformationType(){return O(this._config)}set dataTransformationType(t){D(t,this._config),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get meanSymbol(){return I(this._config)}set meanSymbol(t){j(t,this._config)}get medianSymbol(){return N(this._config)}set medianSymbol(t){z(t,this._config)}get normalDistSymbol(){return E(this._config)}set normalDistSymbol(t){x(t,this._config)}get standardDevSymbol(){return A(this._config)}set standardDevSymbol(t){H(t,this._config)}get showNormalDistOverlay(){return P(this._config)}set showNormalDistOverlay(t){X(t,this._config)}get showMeanOverlay(){return k(this._config)}set showMeanOverlay(t){q(t,this._config)}get showMedianOverlay(){return L(this._config)}set showMedianOverlay(t){W(t,this._config)}get showStandardDevOverlay(){return B(this._config)}set showStandardDevOverlay(t){G(t,this._config)}get seriesOverlays(){return J(this._config)}set seriesOverlays(t){K(t,this._config)}generateChartTitle(){return b(this._config,this.layerInfo,this.commonStrings)}generateXAxisTitle(){return g(this.layerInfo.layerFieldsInfo,this.numericField)}generateDefaultConfig(){return h(this.commonStrings)}};r([o],e.prototype,"numericField");r([o],e.prototype,"binCount");r([o],e.prototype,"binSymbol");r([o],e.prototype,"dataTransformationType");r([o],e.prototype,"meanSymbol");r([o],e.prototype,"medianSymbol");r([o],e.prototype,"normalDistSymbol");r([o],e.prototype,"standardDevSymbol");r([o],e.prototype,"showNormalDistOverlay");r([o],e.prototype,"showMeanOverlay");r([o],e.prototype,"showMedianOverlay");r([o],e.prototype,"showStandardDevOverlay");r([o],e.prototype,"seriesOverlays");l(e,[_,f,d,c,u,v]);return e},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","intl","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","request","AttributeBinsGraphic","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils",a,b,c,d,e)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import"./LS75INIU.js";var a={_decimalSeparator:",",_thousandSeparator:".",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"dd MMM",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"DC",_era_bc:"AC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"Enero",February:"Febrero",March:"Marzo",April:"Abril",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre",Jan:"Ene",Feb:"Feb",Mar:"Mar",Apr:"Abr","May(short)":"May",Jun:"Jun",Jul:"Jul",Aug:"Ago",Sep:"Sep",Oct:"Oct",Nov:"Nov",Dec:"Dic",Sunday:"Domingo",Monday:"Lunes",Tuesday:"Martes",Wednesday:"Mi\xE9rcoles",Thursday:"Jueves",Friday:"Viernes",Saturday:"S\xE1bado",Sun:"Dom",Mon:"Lun",Tue:"Mar",Wed:"Mie",Thu:"Jue",Fri:"Vie",Sat:"S\xE1b",_dateOrd:function(e){return"\xBA"},"Zoom Out":"Aumentar Zoom",Play:"Reproducir",Stop:"Detener",Legend:"Leyenda","Click, tap or press ENTER to toggle":"Haga clic, toque o presione ENTER para alternar",Loading:"Cargando",Home:"Inicio",Chart:"Gr\xE1fico","Serial chart":"Gr\xE1fico de serie","X/Y chart":"Gr\xE1fico X/Y","Pie chart":"Gr\xE1fico circular","Gauge chart":"Gr\xE1fico de medidor radial","Radar chart":"Gr\xE1fico de radar","Sankey diagram":"Diagrama de sankey","Chord diagram":"Diagrama de cuerdas","Flow diagram":"Diagrama de flujo","TreeMap chart":"Gr\xE1fico de mapa de \xE1rbol",Series:"Series","Candlestick Series":"Series de velas","Column Series":"Series de columnas","Line Series":"Series de l\xEDneas","Pie Slice Series":"Series de trozos circular","X/Y Series":"Series de X/Y",Map:"Mapa","Press ENTER to zoom in":"Presione ENTER para aumentar el zoom","Press ENTER to zoom out":"Presione ENTER para disminuir el zoom","Use arrow keys to zoom in and out":"Use los cursores para disminuir o aumentar el zoom","Use plus and minus keys on your keyboard to zoom in and out":"Use las teclas mas o menos en su teclado para disminuir ou aumentar el zoom",Export:"Exportar",Image:"Imagen",Data:"Datos",Print:"Imprimir","Click, tap or press ENTER to open":"Haga clic, toque o presione ENTER para abrir","Click, tap or press ENTER to print.":"Haga clic, toque o presione ENTER para imprimir","Click, tap or press ENTER to export as %1.":"Haga clic, toque o presione ENTER para exportar como %1.",'To save the image, right-click this link and choose "Save picture as..."':'Para guardar la imagen, haga clic en el link con el bot\xF3n derecho y elija "Guardar imagen como..."','To save the image, right-click thumbnail on the left and choose "Save picture as..."':'Para guardar la imagen, haga clic con el bot\xF3n derecho en la miniatura a la izquierda y elija "Guardar imagen como ..."',"(Press ESC to close this message)":"(Presione ESC para cerrar este mensaje)","Image Export Complete":"Exportaci\xF3n de imagen completada","Export operation took longer than expected. Something might have gone wrong.":"La operaci\xF3n de exportaci\xF3n llev\xF3 m\xE1s tiempo de lo esperado. Algo pudo haber salido mal.","Saved from":"Guardado de",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"Use TAB para seleccionar los botones de agarre o las flechas izquierda y derecha para cambiar la selecci\xF3n","Use left and right arrows to move selection":"Use las flechas izquierda y derecha para mover la selecci\xF3n","Use left and right arrows to move left selection":"Use las flechas izquierda y derecha para mover la selecci\xF3n izquierda","Use left and right arrows to move right selection":"Use las flechas izquierda y derecha para mover la selecci\xF3n derecha","Use TAB select grip buttons or up and down arrows to change selection":"Utilice los botones de control de selecci\xF3n TAB o flechas arriba y abajo para cambiar la selecci\xF3n","Use up and down arrows to move selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xF3n","Use up and down arrows to move lower selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xF3n inferior","Use up and down arrows to move upper selection":"Use las flechas hacia arriba y hacia abajo para mover la selecci\xF3n superior","From %1 to %2":"Desde %1 hasta %2","From %1":"Desde %1","To %1":"Hasta %1","No parser available for file: %1":"No hay analizador disponible para el archivo: %1","Error parsing file: %1":"Error al analizar el archivo: %1","Unable to load file: %1":"No se puede cargar el archivo: %1","Invalid date":"Fecha inv\xE1lida"};export{a as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.101 */
|
|
4
|
+
import"./LS75INIU.js";var o={_decimalSeparator:",",_thousandSeparator:"\xA0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"n. l.",_era_bc:"pr. n. l.",A:"dop.",P:"odp.",AM:"dop.",PM:"odp.","A.M.":"dop.","P.M.":"odp.",January:"janu\xE1ra",February:"febru\xE1ra",March:"marca",April:"apr\xEDla",May:"m\xE1ja",June:"j\xFAna",July:"j\xFAla",August:"augusta",September:"septembra",October:"okt\xF3bra",November:"novembra",December:"decembra",Jan:"jan",Feb:"feb",Mar:"mar",Apr:"apr","May(short)":"m\xE1j",Jun:"j\xFAn",Jul:"j\xFAl",Aug:"aug",Sep:"sep",Oct:"okt",Nov:"nov",Dec:"dec",Sunday:"nedela",Monday:"pondelok",Tuesday:"utorok",Wednesday:"streda",Thursday:"\u0161tvrtok",Friday:"piatok",Saturday:"sobota",Sun:"ne",Mon:"po",Tue:"ut",Wed:"st",Thu:"\u0161t",Fri:"pi",Sat:"so",_dateOrd:function(e){return"."},"Zoom Out":"Zv\xE4\u010D\u0161enie",Play:"Prehra\u0165",Stop:"Ukon\u010Di\u0165 iter\xE1ciu (Stop)",Legend:"Legenda","Click, tap or press ENTER to toggle":"",Loading:"Na\u010D\xEDtanie",Home:"Domov",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Export",Image:"Obr\xE1zok",Data:"Data",Print:"Tla\u010D","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Od %1 do %2","From %1":"Od %1","To %1":"Do %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":""};export{o as default};
|