@arcgis/charts-components 5.1.0-next.67 → 5.1.0-next.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/dist/cdn/{3ZHL4GR5.js → 2O53DY2A.js} +1 -1
  2. package/dist/cdn/{W6T7TNP5.js → 2VF6ASX3.js} +1 -1
  3. package/dist/cdn/{ZRDVJBTQ.js → 37VJSRAS.js} +1 -1
  4. package/dist/cdn/{GOFQJ3EM.js → 3GG6X5CL.js} +1 -1
  5. package/dist/cdn/{EGHVQUKF.js → 3QBU6MQ5.js} +1 -1
  6. package/dist/cdn/{2333HQZZ.js → 3T2FVDR7.js} +1 -1
  7. package/dist/cdn/{FOSGOEWY.js → 43R5PVEI.js} +1 -1
  8. package/dist/cdn/{N4IITAR7.js → 4C32OYQJ.js} +1 -1
  9. package/dist/cdn/{MP7HYYJR.js → 4IFQNR3G.js} +1 -1
  10. package/dist/cdn/{EF4GVHB2.js → 5E5RDZ2L.js} +1 -1
  11. package/dist/cdn/{WNEW6UZS.js → 5MI7J6SB.js} +1 -1
  12. package/dist/cdn/{EP5VVTAX.js → 6O64ICA7.js} +1 -1
  13. package/dist/cdn/{NEFPCTH3.js → 75VR3DZF.js} +1 -1
  14. package/dist/cdn/{L2NQ6Z3Z.js → 7JVMWMV6.js} +1 -1
  15. package/dist/cdn/{32WPXK4K.js → 7RXXWIVB.js} +1 -1
  16. package/dist/cdn/{JKADR7OP.js → BK5QIDWU.js} +1 -1
  17. package/dist/cdn/{6RKNXP6N.js → BN5RF3B3.js} +1 -1
  18. package/dist/cdn/{XFXE7IY2.js → BZLRQYWQ.js} +1 -1
  19. package/dist/cdn/{LRQVALTM.js → CG5LNWQP.js} +1 -1
  20. package/dist/cdn/{4BDLJPIB.js → CXB3OEU5.js} +1 -1
  21. package/dist/cdn/{GXQDCOI4.js → DDTZK4ZS.js} +2 -2
  22. package/dist/cdn/{ITB7EYBT.js → DG3UIWBJ.js} +1 -1
  23. package/dist/cdn/{5KOFW5BO.js → DH4KFHEJ.js} +1 -1
  24. package/dist/cdn/DPTNMDQ2.js +2 -0
  25. package/dist/cdn/{YHUBOYF5.js → DVFYTNTP.js} +1 -1
  26. package/dist/cdn/{KYFOP4WA.js → EEPB3VMU.js} +1 -1
  27. package/dist/cdn/{35NR6IHU.js → EFK5PLEA.js} +1 -1
  28. package/dist/cdn/{R6XIAIZH.js → EPJXASVH.js} +1 -1
  29. package/dist/cdn/{BVK4ULHH.js → F3HSSBGO.js} +1 -1
  30. package/dist/cdn/{QT24FAYQ.js → FA2MNOK5.js} +1 -1
  31. package/dist/cdn/{ISNJYFT7.js → FBULWKPL.js} +1 -1
  32. package/dist/cdn/{KZ37E2J3.js → FDZIENVW.js} +7 -7
  33. package/dist/cdn/{75FO5HPY.js → FODXH222.js} +1 -1
  34. package/dist/cdn/{LT62HS4S.js → FOGT5KUE.js} +1 -1
  35. package/dist/cdn/FXXH57MZ.js +2 -0
  36. package/dist/cdn/{TZJGC4RS.js → G6SILWNJ.js} +1 -1
  37. package/dist/cdn/{ZIXBICPN.js → GN6WTMJI.js} +1 -1
  38. package/dist/cdn/{BXDRHDLV.js → GP4QLK4N.js} +1 -1
  39. package/dist/cdn/{AALOFAWG.js → GPH4IVVC.js} +1 -1
  40. package/dist/cdn/{6GURKNO2.js → H5NXFSSR.js} +1 -1
  41. package/dist/cdn/{HW42VNOU.js → HCQXHKNP.js} +1 -1
  42. package/dist/cdn/{J66D7A5G.js → HMOVBIG5.js} +1 -1
  43. package/dist/cdn/{BXNLQMSP.js → HPVMWOTJ.js} +1 -1
  44. package/dist/cdn/{YQTJQ5J7.js → IYFHTQYZ.js} +1 -1
  45. package/dist/cdn/{LGAAHH35.js → J4JNCBCR.js} +1 -1
  46. package/dist/cdn/{7Y5FTMNT.js → JLGME4J6.js} +1 -1
  47. package/dist/cdn/{OPDQRTZL.js → K64KZFUI.js} +1 -1
  48. package/dist/cdn/{TJA5FMLP.js → KBRCEEW3.js} +1 -1
  49. package/dist/cdn/{LIXBROPH.js → KG55SHPZ.js} +1 -1
  50. package/dist/cdn/{PGJD4Q7S.js → KG6VAY4O.js} +1 -1
  51. package/dist/cdn/{RDBNRYTF.js → KN7ESG7U.js} +1 -1
  52. package/dist/cdn/{WWK3UOMD.js → KY4NYHSX.js} +1 -1
  53. package/dist/cdn/{KOLQWSYX.js → L2GEZVU6.js} +1 -1
  54. package/dist/cdn/{RX6QOYCR.js → L3OQ2NIJ.js} +1 -1
  55. package/dist/cdn/{YPSEQYTV.js → L55YFWP2.js} +1 -1
  56. package/dist/cdn/L6BCDBFS.js +58 -0
  57. package/dist/cdn/{MUCSVAGN.js → LCTOFU34.js} +1 -1
  58. package/dist/cdn/{PG36SBDU.js → LMQBVW4Y.js} +1 -1
  59. package/dist/cdn/{WBGGAC4P.js → LZNL4CV3.js} +7 -7
  60. package/dist/cdn/{PLBPOYRN.js → N4NXC5VP.js} +1 -1
  61. package/dist/cdn/{4HRFZU2C.js → NMN7APV2.js} +1 -1
  62. package/dist/cdn/{PL24HKI7.js → NUQWD6MH.js} +1 -1
  63. package/dist/cdn/{4NYTLY62.js → O5VGWELF.js} +1 -1
  64. package/dist/cdn/{O7ZCEGVR.js → O6CQEJXL.js} +1 -1
  65. package/dist/cdn/{NVV2EBVI.js → OSFZ7E4K.js} +1 -1
  66. package/dist/cdn/{YNRVU2AU.js → P4UM7XJU.js} +1 -1
  67. package/dist/cdn/{I6IYDKWG.js → P7SJ5F7P.js} +1 -1
  68. package/dist/cdn/{FFXTYOTF.js → PAJGACUC.js} +1 -1
  69. package/dist/cdn/{VRXVXPKS.js → PKAKWMPJ.js} +1 -1
  70. package/dist/cdn/{XV7GLCBP.js → PTZSDKNC.js} +1 -1
  71. package/dist/cdn/{SNZF4LXV.js → QZLISK4V.js} +1 -1
  72. package/dist/cdn/{Y3NWCVUF.js → R655ROJC.js} +1 -1
  73. package/dist/cdn/{JMMW4Z5P.js → RVLBXAVH.js} +1 -1
  74. package/dist/cdn/{EWLMYFSA.js → SDY2AQGU.js} +1 -1
  75. package/dist/cdn/{HLYRVLOY.js → SGF2PV4P.js} +1 -1
  76. package/dist/cdn/{6TKG7ZF7.js → SRM5VT2M.js} +1 -1
  77. package/dist/cdn/{7YDVVZJU.js → SUGR2WYY.js} +1 -1
  78. package/dist/cdn/{2NIOPMWE.js → SYAK37D4.js} +1 -1
  79. package/dist/cdn/{7HGCX3PA.js → T7YV57EF.js} +1 -1
  80. package/dist/cdn/{Z4GL4EF6.js → TPNWVUVU.js} +1 -1
  81. package/dist/cdn/{VWCFL5P6.js → U4N2MVS4.js} +1 -1
  82. package/dist/cdn/U7L3L6IV.js +2 -0
  83. package/dist/cdn/{5PSQ7OKJ.js → UNQKJNUN.js} +1 -1
  84. package/dist/cdn/{25LAV2UI.js → VA2XXKOF.js} +1 -1
  85. package/dist/cdn/{JTL73F75.js → VDOYZJKE.js} +1 -1
  86. package/dist/cdn/{QEPCR5IP.js → VGZDKASC.js} +1 -1
  87. package/dist/cdn/{2J5IWBKU.js → VLCL2UJQ.js} +1 -1
  88. package/dist/cdn/{GDRC3J3W.js → VRMFR6JD.js} +1 -1
  89. package/dist/cdn/{G56RB2UI.js → VRTAYKLG.js} +1 -1
  90. package/dist/cdn/{DHCFSWRJ.js → VSLWVFL4.js} +1 -1
  91. package/dist/cdn/{NEEKPRM4.js → VXXFXJV7.js} +1 -1
  92. package/dist/cdn/WATBJBBK.js +2 -0
  93. package/dist/cdn/{W5VC5OCC.js → WE2MDZV5.js} +1 -1
  94. package/dist/cdn/{CCNHG4LT.js → WFGPHSOB.js} +1 -1
  95. package/dist/cdn/{IN3H6ULU.js → WQTAH6YL.js} +1 -1
  96. package/dist/cdn/{RQLVJM4J.js → WUE3B4N6.js} +1 -1
  97. package/dist/cdn/{2E5ZABQ4.js → XB6PLTZP.js} +1 -1
  98. package/dist/cdn/XBFMFWAP.js +2 -0
  99. package/dist/cdn/{I54YDLFZ.js → XDXT62JB.js} +1 -1
  100. package/dist/cdn/{6GVGNQYH.js → XZTMAM5W.js} +1 -1
  101. package/dist/cdn/{ZXIRDWJW.js → YAVQSNZ6.js} +1 -1
  102. package/dist/cdn/{AMLWVAHN.js → YYMXG6GF.js} +1 -1
  103. package/dist/cdn/ZU4JDSMJ.js +2 -0
  104. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ar.json +1 -1
  105. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bg.json +1 -1
  106. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bs.json +1 -1
  107. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ca.json +1 -1
  108. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.cs.json +1 -1
  109. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.da.json +1 -1
  110. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.de.json +1 -1
  111. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.el.json +1 -1
  112. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.es.json +1 -1
  113. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.et.json +1 -1
  114. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.fi.json +1 -1
  115. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.fr.json +1 -1
  116. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.he.json +1 -1
  117. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hr.json +1 -1
  118. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hu.json +1 -1
  119. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.id.json +1 -1
  120. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.it.json +1 -1
  121. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ja.json +1 -1
  122. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ko.json +1 -1
  123. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.lt.json +1 -1
  124. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.lv.json +1 -1
  125. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.nl.json +1 -1
  126. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.no.json +1 -1
  127. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pl.json +1 -1
  128. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pt-BR.json +1 -1
  129. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pt-PT.json +1 -1
  130. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ro.json +1 -1
  131. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ru.json +1 -1
  132. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sk.json +1 -1
  133. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sl.json +1 -1
  134. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sr.json +1 -1
  135. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sv.json +1 -1
  136. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.th.json +1 -1
  137. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.tr.json +1 -1
  138. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.uk.json +1 -1
  139. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.vi.json +1 -1
  140. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -1
  141. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-HK.json +1 -1
  142. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-TW.json +1 -1
  143. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ar.json +1 -1
  144. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.bg.json +1 -1
  145. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.bs.json +1 -1
  146. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ca.json +1 -1
  147. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.cs.json +1 -1
  148. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.da.json +1 -1
  149. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.de.json +1 -1
  150. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.el.json +1 -1
  151. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.es.json +1 -1
  152. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.et.json +1 -1
  153. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.fi.json +1 -1
  154. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.fr.json +1 -1
  155. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.he.json +1 -1
  156. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.hr.json +1 -1
  157. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.hu.json +1 -1
  158. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.id.json +1 -1
  159. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.it.json +1 -1
  160. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ja.json +1 -1
  161. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ko.json +1 -1
  162. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.lt.json +1 -1
  163. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.lv.json +1 -1
  164. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.nl.json +1 -1
  165. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.no.json +1 -1
  166. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pl.json +1 -1
  167. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pt-BR.json +1 -1
  168. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pt-PT.json +1 -1
  169. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ro.json +1 -1
  170. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ru.json +1 -1
  171. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sk.json +1 -1
  172. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sl.json +1 -1
  173. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sr.json +1 -1
  174. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sv.json +1 -1
  175. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.th.json +1 -1
  176. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.tr.json +1 -1
  177. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.uk.json +1 -1
  178. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.vi.json +1 -1
  179. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -1
  180. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-HK.json +1 -1
  181. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-TW.json +1 -1
  182. package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
  183. package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
  184. package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
  185. package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
  186. package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
  187. package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
  188. package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
  189. package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
  190. package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
  191. package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
  192. package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
  193. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  194. package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
  196. package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
  197. package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
  198. package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
  199. package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
  200. package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
  201. package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
  202. package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
  203. package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
  204. package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
  205. package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
  206. package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
  207. package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
  208. package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
  209. package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
  210. package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
  211. package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
  212. package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
  213. package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
  214. package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
  215. package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
  216. package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
  217. package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
  218. package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
  219. package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
  220. package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
  221. package/dist/cdn/index.js +1 -1
  222. package/dist/chunks/index2.js +0 -1
  223. package/dist/chunks/interfaces.js +35 -43
  224. package/dist/chunks/serial-chart-data.js +4358 -10456
  225. package/dist/components/arcgis-chart/customElement.d.ts +23 -1
  226. package/dist/components/arcgis-chart/customElement.js +12625 -6626
  227. package/dist/components/arcgis-charts-config-guide/customElement.js +0 -1
  228. package/dist/docs/api.json +1 -1
  229. package/dist/docs/docs.json +1 -1
  230. package/dist/docs/vscode.html-custom-data.json +1 -1
  231. package/dist/docs/web-types.json +1 -1
  232. package/dist/json-schema/index.d.ts +2 -2
  233. package/dist/loader.js +1 -1
  234. package/dist/types/lumina.d.ts +1 -1
  235. package/dist/types/preact.d.ts +1 -1
  236. package/dist/types/react.d.ts +1 -1
  237. package/dist/types/stencil.d.ts +1 -1
  238. package/package.json +4 -4
  239. package/dist/cdn/4F37LPEF.js +0 -2
  240. package/dist/cdn/CUAIY5DK.js +0 -37
  241. package/dist/cdn/ECRW3QJF.js +0 -2
  242. package/dist/cdn/GKYHQ5OF.js +0 -2
  243. package/dist/cdn/JDQ6BNXO.js +0 -2
  244. package/dist/cdn/PGVNBWSU.js +0 -23
  245. package/dist/cdn/TLSTPQNA.js +0 -2
  246. /package/dist/cdn/{UV5SARBS.js → 2BS7WCYC.js} +0 -0
  247. /package/dist/cdn/{2NTJWJIL.js → 2KVU566F.js} +0 -0
  248. /package/dist/cdn/{K2B3HXTF.js → 2QPNL7Y2.js} +0 -0
  249. /package/dist/cdn/{TCBSBBWS.js → 3WRAGIMC.js} +0 -0
  250. /package/dist/cdn/{VSGEUWLS.js → 5C7U7CYQ.js} +0 -0
  251. /package/dist/cdn/{5GTDAUJP.js → 5MWQVGQZ.js} +0 -0
  252. /package/dist/cdn/{IJV4GPC2.js → 6IQ2FQTN.js} +0 -0
  253. /package/dist/cdn/{T3SPP6VD.js → 76DFMYG4.js} +0 -0
  254. /package/dist/cdn/{DBZZDGFN.js → B4MAGTAP.js} +0 -0
  255. /package/dist/cdn/{FE6JBDVY.js → B55FRUGA.js} +0 -0
  256. /package/dist/cdn/{TQXS55IG.js → B56AXPLG.js} +0 -0
  257. /package/dist/cdn/{L3GOQ5OW.js → CAOSVB4R.js} +0 -0
  258. /package/dist/cdn/{IYCUGRVF.js → DQUKRY3M.js} +0 -0
  259. /package/dist/cdn/{PXARJZNJ.js → FFW6SQJB.js} +0 -0
  260. /package/dist/cdn/{5BCD22Z4.js → GDLCLCPQ.js} +0 -0
  261. /package/dist/cdn/{UFA45G3D.js → HPONDACN.js} +0 -0
  262. /package/dist/cdn/{S4E3LX4H.js → HQMC6YQ6.js} +0 -0
  263. /package/dist/cdn/{PBJ6N3WD.js → JFGFCKMZ.js} +0 -0
  264. /package/dist/cdn/{UWTDBFUQ.js → K437RPD5.js} +0 -0
  265. /package/dist/cdn/{X6O3IA2W.js → K7ALB3FX.js} +0 -0
  266. /package/dist/cdn/{HOLFKH7Q.js → KAQTKYYM.js} +0 -0
  267. /package/dist/cdn/{63Y6JME7.js → KCPSHLUL.js} +0 -0
  268. /package/dist/cdn/{LSVE7QXZ.js → LJCSR2IZ.js} +0 -0
  269. /package/dist/cdn/{BZOGCJZN.js → LXIM3RKN.js} +0 -0
  270. /package/dist/cdn/{P2QEICEQ.js → M2XPJIOQ.js} +0 -0
  271. /package/dist/cdn/{VBEHPXA6.js → MOBZATNH.js} +0 -0
  272. /package/dist/cdn/{ZG6HIUYV.js → NEJTN4I6.js} +0 -0
  273. /package/dist/cdn/{2XF6LPQI.js → PYCYFLNO.js} +0 -0
  274. /package/dist/cdn/{YFFVERLU.js → Q2TVJHZD.js} +0 -0
  275. /package/dist/cdn/{7WFAXHLM.js → QR3YISEA.js} +0 -0
  276. /package/dist/cdn/{QJT4EUS4.js → QZ3WZKSG.js} +0 -0
  277. /package/dist/cdn/{4BLJCGW5.js → SQPFZZKR.js} +0 -0
  278. /package/dist/cdn/{C2AG56ML.js → SWOSRENC.js} +0 -0
  279. /package/dist/cdn/{FJQT5KJP.js → VQJLB7UN.js} +0 -0
  280. /package/dist/cdn/{DOJQQMHT.js → XD62BPHL.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as i}from"./TWLIURYH.js";import{b as C}from"./EEBD6KKN.js";import{a as g}from"./MP7HYYJR.js";import b from"./GXQDCOI4.js";import{z as h}from"./Y7IQV44J.js";import"./3ZHL4GR5.js";import"./ETLJKITO.js";import{A as n,B as m,G as c,g as a,i as o,n as s,y as p,z as l}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([])=>{var d={jsAppFlyout:"js-app-flyout"},f=a``,r=class extends n{constructor(){super(...arguments),this._messages=g(),this.popoverElement=p(),this.placement="leading",this.arcgisChartsConfigGuidePopoverColorChange=s(),this.arcgisChartsConfigGuidePopoverSymbolChange=s(),this.arcgisChartsConfigPopoverClose=s()}static{this.properties={messageOverrides:0,selectedElement:0,referenceElement:0,placement:1,open:5}}static{this.styles=f}async reposition(){await this.popoverElement.value?.reposition()}updated(){C(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateColorProperties(t){let e=t.detail;e!==void 0&&(e[3]=i),this.selectedElement=e,this.arcgisChartsConfigGuidePopoverColorChange.emit(this.selectedElement)}updateSymbolProperties(t){let{lineStyle:e}=t.target;e?.color!==void 0&&(e.color[3]=i),this.selectedElement=e,this.arcgisChartsConfigGuidePopoverSymbolChange.emit(t.detail)}render(){let t=this.selectedElement,e=this.selectedElement;return o`<div class=${m(d.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${l(this.popoverElement)}>${Array.isArray(t)&&o`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${t} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`||""}${e?.type===h.SLS&&o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`||""}</calcite-popover></div>`}};c("arcgis-charts-config-guide-popover",r);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",b)
2
+ import{a as i}from"./TWLIURYH.js";import{b as C}from"./EEBD6KKN.js";import{a as g}from"./4IFQNR3G.js";import b from"./DDTZK4ZS.js";import{z as h}from"./Y7IQV44J.js";import"./2O53DY2A.js";import"./ETLJKITO.js";import{A as n,B as m,G as c,g as a,i as o,n as s,y as p,z as l}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([])=>{var d={jsAppFlyout:"js-app-flyout"},f=a``,r=class extends n{constructor(){super(...arguments),this._messages=g(),this.popoverElement=p(),this.placement="leading",this.arcgisChartsConfigGuidePopoverColorChange=s(),this.arcgisChartsConfigGuidePopoverSymbolChange=s(),this.arcgisChartsConfigPopoverClose=s()}static{this.properties={messageOverrides:0,selectedElement:0,referenceElement:0,placement:1,open:5}}static{this.styles=f}async reposition(){await this.popoverElement.value?.reposition()}updated(){C(this.popoverElement.value,this.open)}guidePopoverClose(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit()}updateColorProperties(t){let e=t.detail;e!==void 0&&(e[3]=i),this.selectedElement=e,this.arcgisChartsConfigGuidePopoverColorChange.emit(this.selectedElement)}updateSymbolProperties(t){let{lineStyle:e}=t.target;e?.color!==void 0&&(e.color[3]=i),this.selectedElement=e,this.arcgisChartsConfigGuidePopoverSymbolChange.emit(t.detail)}render(){let t=this.selectedElement,e=this.selectedElement;return o`<div class=${m(d.jsAppFlyout)}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} .open=${this.open} offset-distance=20 offset-skidding=60 label pointer-disabled @calcitePopoverClose=${this.guidePopoverClose} auto-close ${l(this.popoverElement)}>${Array.isArray(t)&&o`<arcgis-charts-config-color-style .header=${this._messages.fillStyle} enable-close .open=${this.open} .selectedColor=${t} @arcgisChartsConfigColorStyleClose=${this.guidePopoverClose} @arcgisChartsConfigColorStyleChange=${this.updateColorProperties}></arcgis-charts-config-color-style>`||""}${e?.type===h.SLS&&o`<arcgis-charts-config-line-style .header=${this._messages.lineStyle} .open=${this.open} enable-close .lineStyle=${e} @arcgisChartsConfigLineStyleClose=${this.guidePopoverClose} @arcgisChartsConfigLineStyleChange=${this.updateSymbolProperties}></arcgis-charts-config-line-style>`||""}</calcite-popover></div>`}};c("arcgis-charts-config-guide-popover",r);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{e as m,m as d}from"./VCUC6CMW.js";import c from"./PGJD4Q7S.js";import b from"./R6XIAIZH.js";import a from"./GXQDCOI4.js";import{u}from"./Y7IQV44J.js";import{g as r}from"./EZM4ZDQI.js";import{b as n,l as s}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,,,,,,,{e:f,nc:p},{u:N},{f:b}])=>{var G={DebounceTimer:400,SliderTimer:100,PopoverTimer:60,customSortLimit:100},R=10,U={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3},Y=[n.Count,n.Sum,n.Average,n.ContinuousPercentile,n.Minimum,n.Maximum,n.NoAggregation],q=[n.Count,n.Sum];function H(e){let t;switch(e){case r.Title:case r.XAxisTitle:case r.YAxisTitle:case r.LegendTitle:{t=m.Title;break}case r.Description:case r.LegendText:{t=m.Text;break}case r.AxisLabels:case r.GuideLabels:case r.DataLabels:{t=m.Label;break}case r.Background:case r.LeaderLines:case r.AxisLines:case r.GridLines:{t=m.Palette;break}}return t}function K(e,t,i){let a=!1,o=typeof e=="string"?Number.parseFloat(e):e,c=typeof t=="string"?Number.parseFloat(t):t,l=typeof i=="string"?Number.parseFloat(i):i;return Number.isNaN(o)||(a=(c===void 0||Number.isNaN(c)||o>=c)&&(l===void 0||Number.isNaN(l)||o<=l)),a}function X(e,t){let i;if(e!==null){let a=typeof e=="string"?Number.parseFloat(e):e;p(a)?i=a:p(t)&&(i=t)}return i===void 0?"":`${i}`}function $(e){let{inputElement:t,status:i}=e;t.status=i}var z={IDLE:"idle",INVALID:"invalid"};function J(e,t){let i="";if(e!==void 0&&!Number.isNaN(e)){let a=b(document.documentElement);i=Intl.NumberFormat(a,t).format(e)}return i}function Q(e,t){let i=!1;if(t!==void 0){let a=typeof t=="string"?t.trim():t,o=e.trim();typeof t=="string"?i=a===o||a===f&&o==="":i=a.includes(o)}return i}function V(e){let t;switch(e){case"trailing":t=-200;break;case"leading":t=20;break;default:t=0;break}return t}function Z(e){return e===void 0||Number.isNaN(e.r)||Number.isNaN(e.g)||Number.isNaN(e.b)?null:e}var _=e=>{["e","E"].includes(e.key)&&e.preventDefault()},ee=e=>{if(e.pickListElement!==void 0){let t=e.pickListElement.selectedItems;e.eventEmitter.emit({contentKind:e.contentKind,value:t.map(i=>i.value)})}};function te(e){let t="solid";switch(e){case u.Dash:t="dashed";break;case u.Dot:t="dotted";break;case u.Solid:default:t="solid";break}return t}function ie(e,t){let i=document.createElement("a");i.style.display="none",i.download=t,i.setAttribute("href",e),i.click(),i.remove(),URL.revokeObjectURL(e)}function ae(e){return e!=null&&(e.style.removeProperty("opacity"),e.remove()),null}function re(e){let t=!N(e?.config),i=e.xTemporalBinning?.unit,a=e.yTemporalBinning?.unit,o;return t&&i!==void 0&&a!==void 0&&(i===s.HourOfDay&&a===s.DayOfWeek?o=d.WeekByDayOfWeekAndHourOfDay:i===s.DayOfMonth&&a===s.MonthOfYear&&(o=d.YearByMonthAndDayOfMonth)),o}return{a:G,b:R,c:U,d:Y,e:q,f:H,g:K,h:X,i:$,j:z,k:J,l:Q,m:V,n:Z,o:_,p:ee,q:te,r:ie,s:ae,t:re}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,b,c)
2
+ import{e as m,m as d}from"./VCUC6CMW.js";import c from"./KG6VAY4O.js";import b from"./EPJXASVH.js";import a from"./DDTZK4ZS.js";import{u}from"./Y7IQV44J.js";import{g as r}from"./EZM4ZDQI.js";import{b as n,l as s}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,,,,,,,{e:f,nc:p},{u:N},{f:b}])=>{var G={DebounceTimer:400,SliderTimer:100,PopoverTimer:60,customSortLimit:100},R=10,U={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3},Y=[n.Count,n.Sum,n.Average,n.ContinuousPercentile,n.Minimum,n.Maximum,n.NoAggregation],q=[n.Count,n.Sum];function H(e){let t;switch(e){case r.Title:case r.XAxisTitle:case r.YAxisTitle:case r.LegendTitle:{t=m.Title;break}case r.Description:case r.LegendText:{t=m.Text;break}case r.AxisLabels:case r.GuideLabels:case r.DataLabels:{t=m.Label;break}case r.Background:case r.LeaderLines:case r.AxisLines:case r.GridLines:{t=m.Palette;break}}return t}function K(e,t,i){let a=!1,o=typeof e=="string"?Number.parseFloat(e):e,c=typeof t=="string"?Number.parseFloat(t):t,l=typeof i=="string"?Number.parseFloat(i):i;return Number.isNaN(o)||(a=(c===void 0||Number.isNaN(c)||o>=c)&&(l===void 0||Number.isNaN(l)||o<=l)),a}function X(e,t){let i;if(e!==null){let a=typeof e=="string"?Number.parseFloat(e):e;p(a)?i=a:p(t)&&(i=t)}return i===void 0?"":`${i}`}function $(e){let{inputElement:t,status:i}=e;t.status=i}var z={IDLE:"idle",INVALID:"invalid"};function J(e,t){let i="";if(e!==void 0&&!Number.isNaN(e)){let a=b(document.documentElement);i=Intl.NumberFormat(a,t).format(e)}return i}function Q(e,t){let i=!1;if(t!==void 0){let a=typeof t=="string"?t.trim():t,o=e.trim();typeof t=="string"?i=a===o||a===f&&o==="":i=a.includes(o)}return i}function V(e){let t;switch(e){case"trailing":t=-200;break;case"leading":t=20;break;default:t=0;break}return t}function Z(e){return e===void 0||Number.isNaN(e.r)||Number.isNaN(e.g)||Number.isNaN(e.b)?null:e}var _=e=>{["e","E"].includes(e.key)&&e.preventDefault()},ee=e=>{if(e.pickListElement!==void 0){let t=e.pickListElement.selectedItems;e.eventEmitter.emit({contentKind:e.contentKind,value:t.map(i=>i.value)})}};function te(e){let t="solid";switch(e){case u.Dash:t="dashed";break;case u.Dot:t="dotted";break;case u.Solid:default:t="solid";break}return t}function ie(e,t){let i=document.createElement("a");i.style.display="none",i.download=t,i.setAttribute("href",e),i.click(),i.remove(),URL.revokeObjectURL(e)}function ae(e){return e!=null&&(e.style.removeProperty("opacity"),e.remove()),null}function re(e){let t=!N(e?.config),i=e.xTemporalBinning?.unit,a=e.yTemporalBinning?.unit,o;return t&&i!==void 0&&a!==void 0&&(i===s.HourOfDay&&a===s.DayOfWeek?o=d.WeekByDayOfWeekAndHourOfDay:i===s.DayOfMonth&&a===s.MonthOfYear&&(o=d.YearByMonthAndDayOfMonth)),o}return{a:G,b:R,c:U,d:Y,e:q,f:H,g:K,h:X,i:$,j:z,k:J,l:Q,m:V,n:Z,o:_,p:ee,q:te,r:ie,s:ae,t:re}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import a from"./DDTZK4ZS.js";import{d as V,g as j,j as z,r as L,t as k,u as g,w as h,z as C}from"./Y7IQV44J.js";import{a as G}from"./ETLJKITO.js";export default $arcgis.t(([ee,{createClassBreaksRenderer:te},{getSchemes:ae},P,{H:v,Ke:N,kd:W}])=>{function Q(e){let a;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(a=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(a=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return a}function _(e){let a;if(typeof e=="string"&&e.startsWith("#")){let t=Q(e);t&&(a=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?a=e:e.length===3&&(a=[...e,255]));return a}function q(e){return e===h.BackwardDiagonal||e===h.Cross||e===h.DiagonalCross||e===h.ForwardDiagonal||e===h.Horizontal||e===h.Null||e===h.Solid||e===h.Vertical}function B(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function U(e){let{categoryField:a,numericFields:t,configFields:r,inlineData:c}=e,o={};return r&&Object.keys(r).length>0&&"dataItems"in c&&(o={type:"uniqueValue",field1:a,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[a];if(l!=null){let n={value:l};t.forEach(i=>{let u=_(s[`${r.fillColor}_${i}`]),m=s[`${r.fillOpacity}_${i}`],f=s[`${r.fillStyle}_${i}`],p=s[`${r.markerSize}_${i}`],d=_(s[`${r.outlineColor}_${i}`]),$=s[`${r.outlineOpacity}_${i}`],F=s[`${r.outlineWidth}_${i}`],O=s[`${r.outlineStyle}_${i}`],S=_(s[`${r.lineColor}_${i}`]),w=s[`${r.lineOpacity}_${i}`],I=s[`${r.lineWidth}_${i}`],M=s[`${r.lineStyle}_${i}`],T=s[`${r.displayLabel}_${i}`];if(typeof T=="string"&&(n={...n,label:T}),p!=null){let y={type:C.SMS};p&&typeof p=="number"&&(y.size=p),n.symbol=y}if(u||q(f)){let y=n.symbol&&n.symbol.type===C.SMS?n.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),q(f)&&(y.style=f),n.symbol=y,d||F!=null||B(O)){let D={type:C.SLS};d&&($&&typeof $=="number"&&(d[3]=$),D.color=d),B(O)&&(D.style=O),F&&typeof F=="number"&&(D.width=F),n.symbol.outline=D}}else if(S||I!=null||B(M)){let y={type:C.SLS};S&&(w&&typeof w=="number"&&(S[3]=w),y.color=S),B(M)&&(y.style=M),I!=null&&typeof I=="number"&&(y.width=I),n.symbol=y}}),(n.label||n.symbol)&&o.uniqueValueInfos.push(n)}})),o}function X(e){let{numericFields:a,configFields:t,inlineData:r}=e,c=r;return"dataItems"in r&&Object.entries(t).forEach(([o,s])=>{a.forEach(l=>{let n=`${s}_${l}`;r.dataItems.forEach(i=>{n in i&&delete i[n]})})}),c}function Z(e){let{categoryField:a,categoryType:t,numericFields:r,inlineData:c}=e,o;if("dataItems"in c){let{dataItems:s}=c,l=[],n="OBJECTID",i=s.map((m,f)=>{let p={...m};return"FID"in m?n="FID":"ObjectId"in m&&(n="ObjectId"),p[n]||(p[n]=f),{attributes:p}});l.push({type:"esriFieldTypeOID",name:n});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:a}),r.forEach(m=>{l.push({type:k.Double,name:m})}),o={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return o}async function J(e){let{categoryField:a,categoryType:t,numericFields:r,configFields:c,inlineData:o}=e,s,l,n=j(o);c&&(s=U({categoryField:a,numericFields:r,configFields:c,inlineData:n}),n=X({numericFields:r,configFields:c,inlineData:n}));let i=Z({categoryField:a,categoryType:t,numericFields:r,inlineData:n});return i&&(l=await W(i)),{chartRenderer:s,iLayer:i,layer:l}}var A=P.all(),re=ae({geometryType:"point",theme:"high-to-low"});function H(e,a,t){let r=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(a[0]-e[0])*r),Math.round(e[1]+(a[1]-e[1])*r),Math.round(e[2]+(a[2]-e[2])*r),Math.round(e[3]+(a[3]-e[3])*r)]}function se(e,a){return a?.length===e?a:[]}function ne(e){let{numberOfClassBreaks:a,baseColors:t,fallbackStartColor:r=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,o=[];if(a>0){let s=t?.[0]??r,l=t&&t.length>1?t[t.length-1]:c;if(a===1)o=[s];else for(let n=0;n<a;n++){let i=n/(a-1);o.push(H(s,l,i))}}return o}function oe(e){let{colorRamp:a,numberOfClassBreaks:t,isFlipped:r}=e,c=[],o=!1;if(a.colorsForClassBreaks&&a.colorsForClassBreaks.length>0){let s=a.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(n=>x(n));l.every(n=>n!==void 0)&&(c=r?l.reverse():l,o=!0)}}if(!o){let s=a.colors||[];if(s.length>0){let l=s.map(x).filter(i=>i!==void 0);r&&(l=l.reverse());let n=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),f=Math.min(m+1,l.length-1),p=l[m],d=l[f];if(!p||!d){c=[];break}let $=u*(l.length-1)-m,F=H(p,d,$);n.push(F)}c=n}}return c}function Y(e){let{numberOfClassBreaks:a,selectedColorRamp:t,colorRamp:r,isFlipped:c=!1}=e,o=se(a,r),s=t?oe({colorRamp:t,numberOfClassBreaks:a,isFlipped:c}):[];return o.length!==a&&(o=s),o.length!==a&&(o=ne({numberOfClassBreaks:a,baseColors:s.length>0?s:r})),o}function le(e,a=2){return`\u2264 ${(t=>{let r="";return t%1===0?r=t.toString():r=t.toFixed(a),r})(e)}`}function Be(e){let a="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=b(e[0]||0),r=b(e[1]||0),c=b(e[2]||0),o=t.toString(16).padStart(2,"0"),s=r.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");a=`#${o}${s}${l}`}return a}var Re={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},xe={all:"all"},ie=e=>{let a=0,t=o=>{let s=0;return o.forEach(l=>{let n=l.toString().split(".")[1];n&&(s=Math.max(s,n.length))}),s},r=[...e].sort((o,s)=>o-s),c=t(r);for(;a<=c&&r.some((o,s)=>s>0&&N(o,a)<=N(r[s-1],a));)a++;return Math.min(a,c)};function b(e){return Math.max(0,Math.min(255,Math.round(e)))}function x(e){let a;if(e instanceof ee){let t=e.toRgba();a=[b(t[0]),b(t[1]),b(t[2]),b(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,r=b(t<=1?t*255:t);a=[b(e[0]??0),b(e[1]??0),b(e[2]??0),r]}return a}function R(e){let a=[];for(let t of e){let r=x(t);r&&a.push(r)}return a}function E(e,a){let t=0,r=e.size<=a.size?e:a,c=r===e?a:e;for(let o of r)c.has(o)&&t++;return t}function ce(e){return[...e.colors??[],...z(e.colorsForClassBreaks??[],a=>a.colors??[])]}function ue(e){let{ramp:a,breakKeys:t,breakCount:r,weights:c}=e,o=d=>d.join(","),s=a.colorsForClassBreaks?.find(d=>d.numClasses===r)?.colors??[],l=new Set(R(s).map(o)),n=E(t,l),i=new Set(R(Y({numberOfClassBreaks:r,selectedColorRamp:a})).map(o)),u=E(t,i),m=ce(a).filter(d=>!!d),f=new Set(R(m).map(o)),p=E(t,f);return n*c.exactN+u*c.generated+p*c.anyOverlap}function me(e,a){let t={exactN:100,generated:10,anyOverlap:1},r=o=>o.join(","),c;if(e?.length){let o=R(e.map(u=>u.symbol?.color)),s=new Set(o.map(r)),l=o.length,n=a.map(u=>{let m=ue({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(n,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function Oe(e,a){let t=!0;if(!e?.length||a.length<2)t=!1;else{let r=e.map(x),c=a.map(o=>o.symbol.color);if(r.length!==c.length)t=!1;else{let o=(n,i)=>!!n&&!!i&&n.length===i.length&&n.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<r.length&&l>=0;){if(!o(r[s],c[l])){t=!1;break}s++,l--}}}return t}async function fe(e){let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,colorsForClassBreaks:o}=e,s=[],l=await J({categoryField:c??"",categoryType:G.DateAxisFormat,numericFields:[v.valueField],inlineData:a});if(l.layer){let n=re?.primaryScheme,i=await te({layer:l.layer,field:v.valueField,classificationMethod:r,numClasses:t,colorScheme:n});if(i?.classBreaksResult?.classBreakInfos?.length){let u=ie(i.classBreaksResult.classBreakInfos.map(m=>m.maxValue));s=i.classBreaksResult.classBreakInfos.map((m,f)=>({classMinValue:m.minValue,classMaxValue:m.maxValue,label:le(m.maxValue,u),symbol:{type:C.SFS,style:h.Solid,color:o?.[f]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}return s}function pe(e){let{selectedColorRamp:a,existingClassBreakInfos:t,availableColorRamps:r}=e;if(a)return a;let c=r?.length?r:K.esriColorRamps;return(t?.length?me(t,c):void 0)??K.defaultColorRampForCharts}var we=V(async e=>{let{data:a,breaksCount:t,classificationMethod:r,xAxisField:c,selectedColorRamp:o,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:n,isFlipped:i}=e,u=pe({selectedColorRamp:o,existingClassBreakInfos:l,availableColorRamps:s}),m=Y({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:n?l?.map(f=>f.symbol?.color):void 0,isFlipped:i});return await fe({data:a,classificationMethod:r,breaksCount:t,xAxisField:c,colorsForClassBreaks:m})},e=>JSON.stringify(e)),K={esriColorRamps:A,defaultColorRampForCharts:A.find(e=>e.name==="Blue 3")??A[0]};return{a:Be,b:Re,c:xe,d:me,e:Oe,f:we,g:K}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import g from"./LGAAHH35.js";import f from"./YNRVU2AU.js";import e from"./2NIOPMWE.js";import c from"./N4IITAR7.js";import b from"./R6XIAIZH.js";import a from"./GXQDCOI4.js";import{g as _}from"./Y7IQV44J.js";import{j as d}from"./EZM4ZDQI.js";import{p as h}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,,,,,,,,{T:l},{e:u,f:p,j:e,k:m,l:b,m:I,n:A,o:v,s:C},{c:r},{a:L,b:V,c:S,d:T,e:B,f:O,g:M,h:z},D,{c:G,d:k,e:y}])=>{var Y=o=>{for(let i of o.axes??[])if(i?.grid!==void 0)return i.grid},F=(o,i,s)=>{let t=i.axes;s.forEach(c=>{t?.[c]!==void 0&&(t[c].grid=_(o))})},N=(o,i)=>i.axes?.[o]?.visible??!0,j=(o,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=o)},Z=(o,i)=>o.axes?.[i]?.displayZeroLine??!1,w=(o,i,s)=>{o.axes?.[s]!==void 0&&(o.axes[s].displayZeroLine=i)},P=(o,i)=>o.axes?.[i]?.displayCursorTooltip??!1,U=o=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=o;i.axes?.[t]!==void 0&&(i.axes[t].displayCursorTooltip=s)},q=(o,i)=>o.axes?.[i]?.buffer??!1,E=o=>{let{config:i,buffer:s,axisIndex:t}=o,c=i.axes?.[t];c!==void 0&&(c.buffer=s)},R=(o,i)=>o.axes?.[i]?.tickSpacing,W=o=>{let{config:i,tickSpacing:s,axisIndex:t}=o;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},X=(o,i)=>o.axes?.[i]?.integerOnlyValues??!1,J=o=>{let{config:i,integerOnlyValues:s,axisIndex:t}=o;i.axes?.[t]!==void 0&&(i.axes[t].integerOnlyValues=s)},K=o=>o.horizontalAxisLabelsBehavior??h.Rotate,Q=(o,i)=>{i.horizontalAxisLabelsBehavior=o},$=o=>o.verticalAxisLabelsBehavior??h.Wrap,ii=(o,i)=>{i.verticalAxisLabelsBehavior=o},si=o=>o.cursorCrosshair?.horizontalLineVisible??!1,oi=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=o},ti=o=>o.cursorCrosshair?.verticalLineVisible??!1,ei=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=o},ri=o=>o.cursorCrosshair?.style,ni=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=o},ai=o=>o.cursorCrosshair,ci=(o,i)=>{i.cursorCrosshair=o},gi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,a=(o,i,s,t)=>{for(var c=fi(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&gi(i,s,c),c},n=class extends D{getAxisTitleText(i){return e({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??""}setAxisTitleText(i,s){e({config:this._config,axisIndex:s,func:t=>{T(i,t,this._config)}})}getAxisVisibility(i){return e({config:this._config,axisIndex:i,func:s=>N(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{e({config:this._config,axisIndex:s,func:t=>{j(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return e({config:this._config,axisIndex:i,func:s=>L(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{e({config:this._config,axisIndex:s,func:t=>{V(i,t,this._config),this.emitConfigUpdate("setAxisLabelsVisibility")}})})}getAxisTitleVisibility(i){return e({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??!1}setAxisTitleVisibility(i,s){e({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getMaxBound(i){return e({config:this._config,axisIndex:i,func:s=>u({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){e({config:this._config,axisIndex:s,func:t=>{p({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return e({config:this._config,axisIndex:i,func:s=>u({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){e({config:this._config,axisIndex:s,func:t=>{p({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return e({config:this._config,axisIndex:i,func:s=>m(s,this._config)})}setAxisValueFormat(i,s){e({config:this._config,axisIndex:i,func:t=>{b({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return e({config:this._config,axisIndex:i,func:s=>I(this._config,s)})??!1}setLogarithmic(i,s){e({config:this._config,axisIndex:s,func:t=>{A({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return e({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){e({config:this._config,axisIndex:s,func:t=>{v({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return e({config:this._config,axisIndex:i,func:s=>M(this._config,s)})}setAxisTitleSymbol(i,s){e({config:this._config,axisIndex:s,func:t=>{z({symbol:i,config:this._config,axisIndex:t})}})}getHorizontalAxisLabelsBehavior(){return K(this._config)}setHorizontalAxisLabelsBehavior(i){Q(i,this._config)}getVerticalAxisLabelsBehavior(){return $(this._config)}setVerticalAxisLabelsBehavior(i){ii(i,this._config)}getGridLinesSymbol(){return Y(this._config)}setGridLinesSymbol(i,s){Array.isArray(s)&&F(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return e({config:this._config,axisIndex:i,func:s=>Z(this._config,s)})??!1}setDisplayZeroLine(i,s){e({config:this._config,axisIndex:s,func:t=>{w(this._config,i,t)}})}getDisplayCursorTooltip(i){return e({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayCursorTooltip(i,s){e({config:this._config,axisIndex:s,func:t=>{U({config:this._config,displayCursorTooltip:i,axisIndex:t})}})}getBuffer(i){return e({config:this._config,axisIndex:i,func:s=>q(this._config,s)})??!1}setBuffer(i,s){e({config:this._config,axisIndex:s,func:t=>{E({config:this._config,buffer:i,axisIndex:t})}})}getTickSpacing(i){return R(this._config,i)}setTickSpacing(i,s){e({config:this._config,axisIndex:s,func:t=>{W({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return e({config:this._config,axisIndex:i,func:s=>X(this._config,s)})??!1}setIntegerOnlyValues(i,s){e({config:this._config,axisIndex:s,func:t=>{J({config:this._config,integerOnlyValues:i,axisIndex:t})}})}get cursorCrosshairHorizontalLineVisibility(){return si(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ti(this._config)}set cursorCrosshairVerticalLineVisibility(i){ei(i,this._config)}get cursorCrosshairStyle(){return ri(this._config)}set cursorCrosshairStyle(i){i&&ni(i,this._config)}get cursorCrosshair(){return ai(this._config)}set cursorCrosshair(i){i&&ci(i,this._config)}};a([r],n.prototype,"setAxisTitleText");a([r],n.prototype,"setAxisTitleVisibility");a([r],n.prototype,"setMaxBound");a([r],n.prototype,"setMinBound");a([r],n.prototype,"setAxisValueFormat");a([r],n.prototype,"setLogarithmic");a([r],n.prototype,"setAxisScrollbar");a([r],n.prototype,"setAxisTitleSymbol");a([r],n.prototype,"setHorizontalAxisLabelsBehavior");a([r],n.prototype,"setVerticalAxisLabelsBehavior");a([r],n.prototype,"setGridLinesSymbol");a([r],n.prototype,"setDisplayZeroLine");a([r],n.prototype,"setDisplayCursorTooltip");a([r],n.prototype,"setBuffer");a([r],n.prototype,"setTickSpacing");a([r],n.prototype,"setIntegerOnlyValues");a([r],n.prototype,"cursorCrosshairHorizontalLineVisibility");a([r],n.prototype,"cursorCrosshairVerticalLineVisibility");a([r],n.prototype,"cursorCrosshairStyle");a([r],n.prototype,"cursorCrosshair");var xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,H=(o,i,s,t)=>{for(var c=li(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&xi(i,s,c),c},x=class extends y{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){G({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){k({config:this._config,index:i,orientation:d.Y})}};H([r],x.prototype,"addYAxisGuide");H([r],x.prototype,"deleteYAxisGuide");var hi=[y];C(x,hi);return{a:n,b:x}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",a,b,c,e,f,g)
2
+ import g from"./J4JNCBCR.js";import f from"./P4UM7XJU.js";import e from"./SYAK37D4.js";import c from"./4C32OYQJ.js";import b from"./EPJXASVH.js";import a from"./DDTZK4ZS.js";import{g as _}from"./Y7IQV44J.js";import{j as d}from"./EZM4ZDQI.js";import{p as h}from"./ETLJKITO.js";export default $arcgis.t(([,,,,,,,,,,,,,,{T:l},{e:u,f:p,j:e,k:m,l:b,m:I,n:A,o:v,s:C},{c:r},{a:L,b:V,c:S,d:T,e:B,f:O,g:M,h:z},D,{c:G,d:k,e:y}])=>{var Y=o=>{for(let i of o.axes??[])if(i?.grid!==void 0)return i.grid},F=(o,i,s)=>{let t=i.axes;s.forEach(c=>{t?.[c]!==void 0&&(t[c].grid=_(o))})},N=(o,i)=>i.axes?.[o]?.visible??!0,j=(o,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=o)},Z=(o,i)=>o.axes?.[i]?.displayZeroLine??!1,w=(o,i,s)=>{o.axes?.[s]!==void 0&&(o.axes[s].displayZeroLine=i)},P=(o,i)=>o.axes?.[i]?.displayCursorTooltip??!1,U=o=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=o;i.axes?.[t]!==void 0&&(i.axes[t].displayCursorTooltip=s)},q=(o,i)=>o.axes?.[i]?.buffer??!1,E=o=>{let{config:i,buffer:s,axisIndex:t}=o,c=i.axes?.[t];c!==void 0&&(c.buffer=s)},R=(o,i)=>o.axes?.[i]?.tickSpacing,W=o=>{let{config:i,tickSpacing:s,axisIndex:t}=o;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},X=(o,i)=>o.axes?.[i]?.integerOnlyValues??!1,J=o=>{let{config:i,integerOnlyValues:s,axisIndex:t}=o;i.axes?.[t]!==void 0&&(i.axes[t].integerOnlyValues=s)},K=o=>o.horizontalAxisLabelsBehavior??h.Rotate,Q=(o,i)=>{i.horizontalAxisLabelsBehavior=o},$=o=>o.verticalAxisLabelsBehavior??h.Wrap,ii=(o,i)=>{i.verticalAxisLabelsBehavior=o},si=o=>o.cursorCrosshair?.horizontalLineVisible??!1,oi=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=o},ti=o=>o.cursorCrosshair?.verticalLineVisible??!1,ei=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=o},ri=o=>o.cursorCrosshair?.style,ni=(o,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=o},ai=o=>o.cursorCrosshair,ci=(o,i)=>{i.cursorCrosshair=o},gi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor,a=(o,i,s,t)=>{for(var c=fi(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&gi(i,s,c),c},n=class extends D{getAxisTitleText(i){return e({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??""}setAxisTitleText(i,s){e({config:this._config,axisIndex:s,func:t=>{T(i,t,this._config)}})}getAxisVisibility(i){return e({config:this._config,axisIndex:i,func:s=>N(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{e({config:this._config,axisIndex:s,func:t=>{j(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return e({config:this._config,axisIndex:i,func:s=>L(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{e({config:this._config,axisIndex:s,func:t=>{V(i,t,this._config),this.emitConfigUpdate("setAxisLabelsVisibility")}})})}getAxisTitleVisibility(i){return e({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??!1}setAxisTitleVisibility(i,s){e({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getMaxBound(i){return e({config:this._config,axisIndex:i,func:s=>u({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){e({config:this._config,axisIndex:s,func:t=>{p({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return e({config:this._config,axisIndex:i,func:s=>u({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){e({config:this._config,axisIndex:s,func:t=>{p({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return e({config:this._config,axisIndex:i,func:s=>m(s,this._config)})}setAxisValueFormat(i,s){e({config:this._config,axisIndex:i,func:t=>{b({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return e({config:this._config,axisIndex:i,func:s=>I(this._config,s)})??!1}setLogarithmic(i,s){e({config:this._config,axisIndex:s,func:t=>{A({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return e({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){e({config:this._config,axisIndex:s,func:t=>{v({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return e({config:this._config,axisIndex:i,func:s=>M(this._config,s)})}setAxisTitleSymbol(i,s){e({config:this._config,axisIndex:s,func:t=>{z({symbol:i,config:this._config,axisIndex:t})}})}getHorizontalAxisLabelsBehavior(){return K(this._config)}setHorizontalAxisLabelsBehavior(i){Q(i,this._config)}getVerticalAxisLabelsBehavior(){return $(this._config)}setVerticalAxisLabelsBehavior(i){ii(i,this._config)}getGridLinesSymbol(){return Y(this._config)}setGridLinesSymbol(i,s){Array.isArray(s)&&F(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return e({config:this._config,axisIndex:i,func:s=>Z(this._config,s)})??!1}setDisplayZeroLine(i,s){e({config:this._config,axisIndex:s,func:t=>{w(this._config,i,t)}})}getDisplayCursorTooltip(i){return e({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayCursorTooltip(i,s){e({config:this._config,axisIndex:s,func:t=>{U({config:this._config,displayCursorTooltip:i,axisIndex:t})}})}getBuffer(i){return e({config:this._config,axisIndex:i,func:s=>q(this._config,s)})??!1}setBuffer(i,s){e({config:this._config,axisIndex:s,func:t=>{E({config:this._config,buffer:i,axisIndex:t})}})}getTickSpacing(i){return R(this._config,i)}setTickSpacing(i,s){e({config:this._config,axisIndex:s,func:t=>{W({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return e({config:this._config,axisIndex:i,func:s=>X(this._config,s)})??!1}setIntegerOnlyValues(i,s){e({config:this._config,axisIndex:s,func:t=>{J({config:this._config,integerOnlyValues:i,axisIndex:t})}})}get cursorCrosshairHorizontalLineVisibility(){return si(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ti(this._config)}set cursorCrosshairVerticalLineVisibility(i){ei(i,this._config)}get cursorCrosshairStyle(){return ri(this._config)}set cursorCrosshairStyle(i){i&&ni(i,this._config)}get cursorCrosshair(){return ai(this._config)}set cursorCrosshair(i){i&&ci(i,this._config)}};a([r],n.prototype,"setAxisTitleText");a([r],n.prototype,"setAxisTitleVisibility");a([r],n.prototype,"setMaxBound");a([r],n.prototype,"setMinBound");a([r],n.prototype,"setAxisValueFormat");a([r],n.prototype,"setLogarithmic");a([r],n.prototype,"setAxisScrollbar");a([r],n.prototype,"setAxisTitleSymbol");a([r],n.prototype,"setHorizontalAxisLabelsBehavior");a([r],n.prototype,"setVerticalAxisLabelsBehavior");a([r],n.prototype,"setGridLinesSymbol");a([r],n.prototype,"setDisplayZeroLine");a([r],n.prototype,"setDisplayCursorTooltip");a([r],n.prototype,"setBuffer");a([r],n.prototype,"setTickSpacing");a([r],n.prototype,"setIntegerOnlyValues");a([r],n.prototype,"cursorCrosshairHorizontalLineVisibility");a([r],n.prototype,"cursorCrosshairVerticalLineVisibility");a([r],n.prototype,"cursorCrosshairStyle");a([r],n.prototype,"cursorCrosshair");var xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,H=(o,i,s,t)=>{for(var c=li(i,s),g=o.length-1,f;g>=0;g--)(f=o[g])&&(c=f(i,s,c)||c);return c&&xi(i,s,c),c},x=class extends y{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){G({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){k({config:this._config,index:i,orientation:d.Y})}};H([r],x.prototype,"addYAxisGuide");H([r],x.prototype,"deleteYAxisGuide");var hi=[y];C(x,hi);return{a:n,b:x}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",a,b,c,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as k}from"./2E5ZABQ4.js";import{a as E}from"./EEBD6KKN.js";import{h as a}from"./VCUC6CMW.js";import{a as P}from"./MP7HYYJR.js";import e from"./L2NQ6Z3Z.js";import c from"./GXQDCOI4.js";import"./Y7IQV44J.js";import"./3ZHL4GR5.js";import{e as g}from"./EZM4ZDQI.js";import{b as y}from"./ETLJKITO.js";import{A as u,B as o,E as b,G as v,g as C,i as s,n as d,y as n,z as h}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{c:c,dc:m,qd:$},{h:F}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},D=C`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`,p=class extends u{constructor(){super(...arguments),this._messages=P(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(t){case a.aggregation:this.model.aggregationType=i[0]!==y.NoAggregation?i[0]:"";break;case a.category:{let r=i[0]?.trim()||"";this.updateMode(r);let f=this.model.numericFields;f.length>1&&r!==c&&(this.model.numericFields=[f[0]]),this.model.category=r,this.model.colorMatch=!0;break}case a.numericFields:i.length>1&&(this.updateMode(c),this.model.category=c),this.model.numericFields=i;break;case a.sortOrder:this.model.setSortOrder(i[0]);break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=d(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=d()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=D}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return k(e,s`<calcite-list-item .label=${m(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}updateMode(e){let t=e!==c&&e.trim()!=="";this.model.mode=t?g.Category:g.Fields}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let t,i,r;switch(this.contentKind){case a.category:t=this.categoryElement.value,i=this._messages.categoryHeader,r=this.model.category;break;case a.numericFields:t=this.numericFieldsElement.value,i=this._messages.numericFieldsMultipleHeader,r=this.model.numericFields;break;case a.sortOrder:t=this.sortOrderElement.value,i=this._messages.sortOrderHeader,r=this.model.getSortOrder();break}this.pieChartPopover=b(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return F({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":m(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=E(this.pieChartPopover))}renderSorting(){return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${h(this.sortOrderElement)}></arcgis-charts-config-field-select>`}renderCategory(){let e=this.getCorrectedCategoryValue();return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${h(this.categoryElement)}></arcgis-charts-config-field-select>`}renderNumericFields(e){let t=$(this.model.layer).idField,i=[];for(let r of e)r!==t&&i.push(this.buildNumericFieldItem(r));return s`<calcite-list label class=${o(l.fieldList)} ${h(this.numericFieldsElement)}>${i}</calcite-list>`}render(){let e=this.renderCategory(),t=this.renderSorting(),i=this.renderNumericFields([...this.model.numericFields]);return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`}};v("arcgis-charts-config-pie-chart-data",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",c,e)
2
+ import{a as k}from"./XB6PLTZP.js";import{a as E}from"./EEBD6KKN.js";import{h as a}from"./VCUC6CMW.js";import{a as P}from"./4IFQNR3G.js";import e from"./7JVMWMV6.js";import c from"./DDTZK4ZS.js";import"./Y7IQV44J.js";import"./2O53DY2A.js";import{e as g}from"./EZM4ZDQI.js";import{b as y}from"./ETLJKITO.js";import{A as u,B as o,E as b,G as v,g as C,i as s,n as d,y as n,z as h}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{c:c,dc:m,qd:$},{h:F}])=>{var l={label:"label",fieldList:"field-list",fab:"fab"},D=C`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label,.disabled-label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.field-list{max-height:50vh;overflow-y:auto}.disabled-label{pointer-events:none}.fab{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:1.5rem;justify-content:center}`,p=class extends u{constructor(){super(...arguments),this._messages=P(),this.pieChartPopover=null,this.sortOrderElement=n(),this.categoryElement=n(),this.numericFieldsElement=n(),this.onPieChartDataChange=e=>{try{if(e.detail!==null&&e.detail?.value!==void 0){let{contentKind:t}=e.detail,i=[...e.detail.value];switch(t){case a.aggregation:this.model.aggregationType=i[0]!==y.NoAggregation?i[0]:"";break;case a.category:{let r=i[0]?.trim()||"";this.updateMode(r);let f=this.model.numericFields;f.length>1&&r!==c&&(this.model.numericFields=[f[0]]),this.model.category=r,this.model.colorMatch=!0;break}case a.numericFields:i.length>1&&(this.updateMode(c),this.model.category=c),this.model.numericFields=i;break;case a.sortOrder:this.model.setSortOrder(i[0]);break;default:break}}}catch(t){throw t instanceof Error&&this.arcgisChartsConfigDataChangeError.emit({error:t,model:this.model}),t}this.requestUpdate()},this.onModelConfigChange=()=>{this.requestUpdate()},this.popoverClose=e=>{this.pieChartPopover===e?.target&&this.removePieChartDataPopover()},this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=d(),this.arcgisChartsConfigPieChartDataNumericFieldValidate=d()}static{this.properties={messageOverrides:0,model:0,layerFieldsInfo:0}}static{this.styles=D}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model"))}disconnectedCallback(){super.disconnectedCallback(),this.removePieChartDataPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,t){t?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}buildNumericFieldItem(e){return k(e,s`<calcite-list-item .label=${m(this.layerFieldsInfo,e)} .value=${e} closable @calciteListItemClose=${this.onRemoveNumericField}></calcite-list-item>`)}onSortOrderSelect(e){this.contentKind=a.sortOrder,this.setupPopover(e)}onCategorySelect(e){this.contentKind=a.category,this.setupPopover(e)}onAddNumericFields(e){this.contentKind=a.numericFields,this.setupPopover(e)}onRemoveNumericField(e){let t=e.target.value;this.model.numericFields=this.model.numericFields.filter(i=>i!==t)}onShowDataLabelsChange(e){this.model.dataLabelsVisibility=e.target.checked}updateMode(e){let t=e!==c&&e.trim()!=="";this.model.mode=t?g.Category:g.Fields}setupPopover(e){e.stopImmediatePropagation(),this.removePieChartDataPopover();let t,i,r;switch(this.contentKind){case a.category:t=this.categoryElement.value,i=this._messages.categoryHeader,r=this.model.category;break;case a.numericFields:t=this.numericFieldsElement.value,i=this._messages.numericFieldsMultipleHeader,r=this.model.numericFields;break;case a.sortOrder:t=this.sortOrderElement.value,i=this._messages.sortOrderHeader,r=this.model.getSortOrder();break}this.pieChartPopover=b(s`<arcgis-charts-config-pie-chart-popover .headingTitle=${i} .referenceElement=${t} open .contentKind=${this.contentKind} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${r} @arcgisChartsConfigPieChartDataPopoverChange=${this.onPieChartDataChange} @arcgisChartsConfigPopoverClose=${this.popoverClose}></arcgis-charts-config-pie-chart-popover>`),!document.body.contains(this.pieChartPopover)&&this.pieChartPopover!==null&&document.body.appendChild(this.pieChartPopover)}getCorrectedCategoryValue(){return F({fieldName:this.model.category,fieldList:this.layerFieldsInfo})?"":m(this.layerFieldsInfo,this.model.category)}removePieChartDataPopover(){this.pieChartPopover!==null&&(this.pieChartPopover.open=!1,this.pieChartPopover=E(this.pieChartPopover))}renderSorting(){return s`<arcgis-charts-config-field-select .label=${this._messages[this.model.getSortOrder()]} @click=${this.onSortOrderSelect} ${h(this.sortOrderElement)}></arcgis-charts-config-field-select>`}renderCategory(){let e=this.getCorrectedCategoryValue();return s`<arcgis-charts-config-field-select .label=${e} @click=${this.onCategorySelect} ${h(this.categoryElement)}></arcgis-charts-config-field-select>`}renderNumericFields(e){let t=$(this.model.layer).idField,i=[];for(let r of e)r!==t&&i.push(this.buildNumericFieldItem(r));return s`<calcite-list label class=${o(l.fieldList)} ${h(this.numericFieldsElement)}>${i}</calcite-list>`}render(){let e=this.renderCategory(),t=this.renderSorting(),i=this.renderNumericFields([...this.model.numericFields]);return s`<calcite-label class=${o(l.label)}>${this._messages.category}${e}</calcite-label>${[s`<calcite-label class=${o(l.label)}>${this._messages.numericFields}${i}</calcite-label>`,s`<div class=${o(l.fab)}><calcite-fab appearance=outline-fill kind=neutral scale=m .label=${this._messages.selectNumericFields} text-enabled .text=${this._messages.selectNumericFields} icon=plus @click=${this.onAddNumericFields}></calcite-fab></div>`]}<calcite-label class=${o(l.label)} layout=inline-space-between>${this._messages.showDataLabels}<calcite-switch .checked=${this.model.dataLabelsVisibility} @calciteSwitchChange=${this.onShowDataLabelsChange}></calcite-switch></calcite-label><calcite-label class=${o(l.label)}>${this._messages.sortOrder}${t}</calcite-label>`}};v("arcgis-charts-config-pie-chart-data",p);return p},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as ie}from"./EEBD6KKN.js";import q from"./GKYHQ5OF.js";import{a as j,h as J}from"./7BDNLABD.js";import i from"./LT62HS4S.js";import{l as s,m as k}from"./VCUC6CMW.js";import{a as M}from"./MP7HYYJR.js";import h from"./PGJD4Q7S.js";import e from"./L2NQ6Z3Z.js";import c from"./R6XIAIZH.js";import"./YJXIGYX6.js";import a from"./GXQDCOI4.js";import{f as _,l as x,q as O,z as K}from"./Y7IQV44J.js";import{e as L,g as H,h as V}from"./3ZHL4GR5.js";import{c as Z}from"./EZM4ZDQI.js";import{a as d,b as p,l as f,m as b,n as g,w as N,x as v}from"./ETLJKITO.js";import{A as D,B as o,C as F,E as w,G as I,g as E,i as l,n as T,y as n,z as m}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,{H:U,I:u,Ma:W,Se:G,Va:B,a:q,dc:S,nc:z,qd:A},{u:X},{h:Y},,{h:Q,t:$},{a:ee,d:ae,e:te,f:se,g:R}])=>{var oe=E`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`,r={label:"label",colorRamp:"color-ramp",colorRampSegment:"color-ramp-segment",list:"list",accordion:"accordion"},P=class extends D{constructor(){super(...arguments),this._messages=M(),this.commonStrings=M({name:"common",blocking:!0}),this.heatChartPopover=null,this.xAxisFieldElement=n(),this.aggregationElement=n(),this.numericFieldsElement=n(),this.calendarTypeElement=n(),this.calendarViewTypeElement=n(),this.classBreakMethodElement=n(),this.nullElement=n(),this.breaksCountElement=n(),this.colorSchemeElement=n(),this.onHeatChartDataPopoverChange=async e=>{try{if(e.detail?.value!==void 0){let{contentKind:a}=e.detail,t=e.detail.value;switch(a){case s.aggregation:this.model.aggregationType=t,t===p.Count||t===p.Sum?this.model.nullPolicy=g.Zero:this.model.nullPolicy=g.Null;break;case s.xAxisField:this.model.xAxisField=t,this.setDefaultPropertiesForCalendarHeatChart();break;case s.numericFields:this.model.numericFields=[t.trim()||""],(this.model.numericFields??[]).length>0&&this.model.aggregationType===p.Count&&this.model.numericFields[0]!==A(this.model.layer).idField&&(this.model.aggregationType=p.Sum);break;case s.calendarType:{this.applyCalendarTypePreset(t);break}case s.calendarViewType:{this.model.viewType=t;break}case s.classBreakMethod:{this.model.classificationMethod=t,await this.generateAndUpdateClassBreaks();break}default:break}}}catch(a){throw this.arcgisChartsConfigDataChangeError.emit({error:a,model:this.model}),a}this.removeHeatChartDataPopover(),this.requestUpdate()},this.popoverClose=e=>{this.heatChartPopover===e?.target&&this.removeHeatChartDataPopover()},this.onModelConfigChange=()=>{G(this.model?.config)&&(this.selectedColorRamp=R.defaultColorRampForCharts),this.requestUpdate()},this.allColorRamps=[],this.onColorRampSelection=async e=>{let{ramp:a,isFlipped:t}=e.detail;this.isFlipped=t,x(this.selectedColorRamp,a)||(this.selectedColorRamp=a,await this.generateAndUpdateClassBreaks(!0))},this.onEmptyCellNameChange=e=>{let{name:a}=e.detail;if(a!==void 0){let t={...this.model.emptyCell,name:a};this.model.emptyCell=t}},this.onEmptyCellColorChange=e=>{let{color:a}=e.detail;if(a!==void 0){let t=this.model.emptyCell,i={...t,symbol:{...t?.symbol,type:K.SFS,color:a,outline:t?.symbol?.outline&&{...t.symbol.outline,color:a}}};this.model.emptyCell=i}},this.isFlipped=!1,this.availableColorRamps=[],this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=T()}static{this.properties={availableColorRamps:16,aggregationLabel:16,selectedColorRamp:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=oe}connectedCallback(){super.connectedCallback(),this.loadColorRampFromArcGIS()}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=W(this.model.aggregationType,this.commonStrings)}disconnectedCallback(){super.disconnectedCallback(),this.model?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}loadColorRampFromArcGIS(){let e=R.esriColorRamps;this.allColorRamps=e,this.availableColorRamps=this.allColorRamps}normalizeClassBreakInfosForCompare(e,a){return(e??[]).map(({classMinValue:t,classMaxValue:i,label:c,symbol:h})=>({classMinValue:t,classMaxValue:i,label:c,symbol:a?void 0:h}))}getRequestedBreaksCount(){return this.requestedBreaksCount??this.model.breaksCount??B.classBreaks.breaksCount}getFirstDayOfWeek(){let{lang:e}=H(this.el??document.documentElement),a=V(e);return q.local().setLocale(e).startOf("week",{useLocaleWeeks:a!==L}).weekday}applyCalendarTypePreset(e){switch(e){case k.YearByMonthAndDayOfMonth:{let a={type:d.CalendarDateParts,unit:f.DayOfMonth},t={type:d.CalendarDateParts,unit:f.MonthOfYear};this.model.xTemporalBinning=a,this.model.setAxisValueFormat(0,{type:d.DateAxisFormat,intlOptions:{day:"2-digit"}}),this.model.yTemporalBinning=t,this.model.setAxisValueFormat(1,{type:d.DateAxisFormat,intlOptions:{month:"short"}});break}case k.WeekByDayOfWeekAndHourOfDay:{let a={type:d.CalendarDateParts,unit:f.HourOfDay},t={type:d.CalendarDateParts,unit:f.DayOfWeek};this.model.firstDayOfWeek=this.getFirstDayOfWeek(),this.model.xTemporalBinning=a,this.model.setAxisValueFormat(0,{type:d.DateAxisFormat,intlOptions:{hour:"numeric",hour12:!1}}),this.model.yTemporalBinning=t,this.model.setAxisValueFormat(1,{type:d.DateAxisFormat,intlOptions:{weekday:"short"}});break}}}async generateClassBreaks(e=!1){let a=[],t=this.model.chartRenderer?.classBreakInfos,i=J(j);return i&&(a=await se({data:i,xAxisField:this.model.xAxisField,classificationMethod:this.model.classificationMethod,breaksCount:this.model.breaksCount,selectedColorRamp:this.selectedColorRamp,availableColorRamps:this.availableColorRamps,existingClassBreakInfos:t,useExistingColors:!e,isFlipped:this.isFlipped})),a}didClassBreaksChange(e,a=!1){return!x(this.normalizeClassBreakInfosForCompare(this.model.chartRenderer?.classBreakInfos,!a),this.normalizeClassBreakInfosForCompare(e,!a))}applyGeneratedClassBreaks(e,a){if(this.model.chartRenderer={type:"classBreaks",field:U.valueField,classBreakInfos:e},this.model.heatRulesType!==b.Renderer&&(this.model.heatRulesType=b.Renderer),this.model.classificationMethod!==v.manual){let t=e.length||a;this.model.breaksCount!==t&&(this.model.breaksCount=t)}}async generateAndUpdateClassBreaks(e=!1){let a=this.getRequestedBreaksCount(),t=await this.generateClassBreaks(e);this.didClassBreaksChange(t,e)&&this.applyGeneratedClassBreaks(t,a)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}getCorrectedXAxisFieldValue(){return Y({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":S(this.layerFieldsInfo,this.model.xAxisField)}onXAxisFieldSelect(e){this.contentKind=s.xAxisField,this.setupPopover(e)}onNumericFieldSelect(e){this.contentKind=s.numericFields,this.setupPopover(e)}onCalendarTypeSelect(e){this.contentKind=s.calendarType,this.setupPopover(e)}onClassBreakMethodSelect(e){this.contentKind=s.classBreakMethod,this.setupPopover(e)}onColorSchemeSelect(e){this.contentKind=s.colorScheme,this.setupPopover(e)}async onBreaksCountChange(e){let a=O(e.target.value);a<u.min?a=u.min:a>u.max&&(a=u.max),z(a)&&(this.breaksCountElement.value&&(this.breaksCountElement.value.value=a.toString()),this.requestedBreaksCount=a,this.model.breaksCount=a,await this.generateAndUpdateClassBreaks())}onAggregationSelect(e){this.contentKind=s.aggregation,this.setupPopover(e)}onNullSelect(e){this.contentKind=s.null,this.setupPopover(e)}onIncludeLeapDayChange(e){let a=e.target.checked;this.model.includeLeapDay=a}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem.value}setupPopover(e){e.stopImmediatePropagation(),this.removeHeatChartDataPopover();let a,t,i,c=this.isFlipped;switch(this.contentKind){case s.aggregation:a=this.aggregationElement.value,t=this._messages.aggregationHeader,i=this.model.aggregationType;break;case s.xAxisField:a=this.xAxisFieldElement.value,t=this._messages.xAxisField,i=this.model.xAxisField;break;case s.numericFields:a=this.numericFieldsElement.value,t=this._messages.numericField,i=this.model.numericFields?.[0];break;case s.calendarType:a=this.calendarTypeElement.value,t=this._messages.calendarType,i=$(this.model);break;case s.calendarViewType:a=this.calendarViewTypeElement.value,t=this._messages.viewType,i=this.model.viewType;break;case s.classBreakMethod:a=this.classBreakMethodElement.value,t=this._messages.method,i=this.model.classificationMethod;break;case s.colorScheme:a=this.colorSchemeElement.value,t=this._messages.colorScheme;let h=ae(this.model.chartRenderer?.classBreakInfos,this.availableColorRamps);i=this.selectedColorRamp?.name??h?.name;let C=h?h.colorsForClassBreaks.find(y=>y.numClasses===this.model.breaksCount)?.colors:void 0;c=C?te(C,this.model.chartRenderer?.classBreakInfos):c;break;case s.null:a=e.target,t=this._messages.null;break}this.heatChartPopover=w(l`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${c}></arcgis-charts-config-heat-chart-popover>`),!document.body.contains(this.heatChartPopover)&&this.heatChartPopover!==null&&document.body.appendChild(this.heatChartPopover)}removeHeatChartDataPopover(){this.heatChartPopover!==null&&(this.heatChartPopover.open=!1,this.heatChartPopover=ie(this.heatChartPopover))}setDefaultPropertiesForCalendarHeatChart(){X(this.model?.config)||((this.model.xTemporalBinning===void 0||this.model.yTemporalBinning===void 0)&&this.applyCalendarTypePreset(k.YearByMonthAndDayOfMonth),this.model.yAxisField=this.model.xAxisField,this.model.setYAxisSortOrder(Z.Desc),this.model.classificationMethod===void 0&&(this.model.classificationMethod=v.naturalBreaks),this.model.heatRulesType!==b.Renderer&&(this.model.heatRulesType=b.Renderer),this.model.viewType===void 0&&(this.model.viewType=N.singleCalendarView),(this.model.aggregationType===p.Count||this.model.aggregationType===p.Sum)&&this.model.nullPolicy!==g.Zero&&(this.model.nullPolicy=g.Zero))}renderXAxisFieldSelect(){let e=this.getCorrectedXAxisFieldValue();return l`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${m(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`}renderAggregation(){return l`<arcgis-charts-config-field-select .label=${this.model.aggregationType===p.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-select>`}renderNumericFieldsSelect(){let e=this.model.numericFields?.[0]===A(this.model.layer).idField?"":S(this.layerFieldsInfo,this.model.numericFields?.[0]);return l`<arcgis-charts-config-field-select .label=${e} @click=${this.onNumericFieldSelect} ${m(this.numericFieldsElement)}></arcgis-charts-config-field-select>`}renderCalendarTypeSelect(){let e=$(this.model)??"",a={weekByDayOfWeekAndHourOfDay:this._messages.weekByDayOfWeekAndHourOfDay,yearByMonthAndDayOfMonth:this._messages.yearByMonthAndDayOfMonth},t=e?a[e]??"":"";return l`<arcgis-charts-config-field-select .label=${t} @click=${this.onCalendarTypeSelect} ${m(this.calendarTypeElement)}></arcgis-charts-config-field-select>`}renderClassBreakMethodSelect(){let e={equalInterval:this._messages.classBreaksMethod?.equalInterval,manual:this._messages.classBreaksMethod?.manual,naturalBreaks:this._messages.classBreaksMethod?.naturalBreaks,quantile:this._messages.classBreaksMethod?.quantile},a=this.model.classificationMethod?e[_(this.model.classificationMethod)]??"":"";return l`<arcgis-charts-config-field-select .label=${a} @click=${this.onClassBreakMethodSelect} ${m(this.classBreakMethodElement)}></arcgis-charts-config-field-select>`}renderColorRampSelect(){let e=this.model.chartRenderer?.classBreakInfos?.map(a=>{let t=a!==void 0?ee(a.symbol.color):"#FFFFFF";return l`<div class=${o(r.colorRampSegment)} style=${F({backgroundColor:t,width:`${100/this.model.breaksCount}%`})}></div>`});return l`<arcgis-charts-config-field-select label @click=${this.onColorSchemeSelect} ${m(this.colorSchemeElement)}><div slot=fieldSelectSlot class=${o(r.colorRamp)}>${e}</div></arcgis-charts-config-field-select>`}renderClassBreaksTable(){let e=this.model.chartRenderer?.classBreakInfos??[];return l`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map(a=>l`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3]/255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}renderNullUI(){let e=this.model.emptyCell,a=this._messages.null,t=e?.symbol?.color??B.grayColor,[i,c,h,C]=[...t],y=`rgba(${i},${c},${h},${C/255})`;return l`<calcite-list label class=${o(r.list)} selection-mode=none ${m(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${F({color:y})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}renderEmptyBins(){return l`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${g.Zero} .checked=${this.model.nullPolicy===g.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${g.Null} .checked=${this.model.nullPolicy===g.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderXAxisFieldSelect(),a=this.renderAggregation(),t=this.renderNumericFieldsSelect(),i=this.renderCalendarTypeSelect(),c=this.renderClassBreakMethodSelect(),h=this.renderColorRampSelect(),C=this.renderClassBreaksTable(),y=this.renderNullUI(),le=this.renderEmptyBins();return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${i}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${c}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${u.min} .max=${u.max} .disabled=${this.model.classificationMethod===void 0||this.model.classificationMethod===v.manual} step=1 .value=${Q(this.model.breaksCount,5)} @calciteInputInput=${this.onBreaksCountChange} ${m(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${h}</calcite-label>${y}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${C}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${le}</calcite-label>${$(this.model)===k.YearByMonthAndDayOfMonth?l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>`:null}`}};I("arcgis-charts-config-heat-chart-data",P);return P},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,c,e,h,i,q)
2
+ import{a as ie}from"./EEBD6KKN.js";import q from"./FXXH57MZ.js";import{a as j,h as J}from"./7BDNLABD.js";import i from"./FOGT5KUE.js";import{l as s,m as k}from"./VCUC6CMW.js";import{a as M}from"./4IFQNR3G.js";import h from"./KG6VAY4O.js";import e from"./7JVMWMV6.js";import c from"./EPJXASVH.js";import"./YJXIGYX6.js";import a from"./DDTZK4ZS.js";import{f as _,l as x,q as O,z as K}from"./Y7IQV44J.js";import{e as L,g as H,h as V}from"./2O53DY2A.js";import{c as Z}from"./EZM4ZDQI.js";import{a as d,b as p,l as f,m as b,n as g,w as N,x as v}from"./ETLJKITO.js";import{A as D,B as o,C as F,E as w,G as I,g as E,i as l,n as T,y as n,z as m}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,{H:U,I:u,Ma:W,Se:G,Va:B,a:q,dc:S,nc:z,qd:A},{u:X},{h:Y},,{h:Q,t:$},{a:ee,d:ae,e:te,f:se,g:R}])=>{var oe=E`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin);margin-top:var(--arcgis-charts-top-section-margin)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.color-ramp{width:100%;height:20px;overflow:hidden;border-radius:0}.color-ramp-segment{height:100%;display:inline-block}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.accordion{margin-top:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}`,r={label:"label",colorRamp:"color-ramp",colorRampSegment:"color-ramp-segment",list:"list",accordion:"accordion"},P=class extends D{constructor(){super(...arguments),this._messages=M(),this.commonStrings=M({name:"common",blocking:!0}),this.heatChartPopover=null,this.xAxisFieldElement=n(),this.aggregationElement=n(),this.numericFieldsElement=n(),this.calendarTypeElement=n(),this.calendarViewTypeElement=n(),this.classBreakMethodElement=n(),this.nullElement=n(),this.breaksCountElement=n(),this.colorSchemeElement=n(),this.onHeatChartDataPopoverChange=async e=>{try{if(e.detail?.value!==void 0){let{contentKind:a}=e.detail,t=e.detail.value;switch(a){case s.aggregation:this.model.aggregationType=t,t===p.Count||t===p.Sum?this.model.nullPolicy=g.Zero:this.model.nullPolicy=g.Null;break;case s.xAxisField:this.model.xAxisField=t,this.setDefaultPropertiesForCalendarHeatChart();break;case s.numericFields:this.model.numericFields=[t.trim()||""],(this.model.numericFields??[]).length>0&&this.model.aggregationType===p.Count&&this.model.numericFields[0]!==A(this.model.layer).idField&&(this.model.aggregationType=p.Sum);break;case s.calendarType:{this.applyCalendarTypePreset(t);break}case s.calendarViewType:{this.model.viewType=t;break}case s.classBreakMethod:{this.model.classificationMethod=t,await this.generateAndUpdateClassBreaks();break}default:break}}}catch(a){throw this.arcgisChartsConfigDataChangeError.emit({error:a,model:this.model}),a}this.removeHeatChartDataPopover(),this.requestUpdate()},this.popoverClose=e=>{this.heatChartPopover===e?.target&&this.removeHeatChartDataPopover()},this.onModelConfigChange=()=>{G(this.model?.config)&&(this.selectedColorRamp=R.defaultColorRampForCharts),this.requestUpdate()},this.allColorRamps=[],this.onColorRampSelection=async e=>{let{ramp:a,isFlipped:t}=e.detail;this.isFlipped=t,x(this.selectedColorRamp,a)||(this.selectedColorRamp=a,await this.generateAndUpdateClassBreaks(!0))},this.onEmptyCellNameChange=e=>{let{name:a}=e.detail;if(a!==void 0){let t={...this.model.emptyCell,name:a};this.model.emptyCell=t}},this.onEmptyCellColorChange=e=>{let{color:a}=e.detail;if(a!==void 0){let t=this.model.emptyCell,i={...t,symbol:{...t?.symbol,type:K.SFS,color:a,outline:t?.symbol?.outline&&{...t.symbol.outline,color:a}}};this.model.emptyCell=i}},this.isFlipped=!1,this.availableColorRamps=[],this.layerFieldsInfo=[],this.arcgisChartsConfigDataChangeError=T()}static{this.properties={availableColorRamps:16,aggregationLabel:16,selectedColorRamp:16,messageOverrides:0,model:0,layerFieldsInfo:0,open:5}}static{this.styles=oe}connectedCallback(){super.connectedCallback(),this.loadColorRampFromArcGIS()}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),this.aggregationLabel=W(this.model.aggregationType,this.commonStrings)}disconnectedCallback(){super.disconnectedCallback(),this.model?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}loadColorRampFromArcGIS(){let e=R.esriColorRamps;this.allColorRamps=e,this.availableColorRamps=this.allColorRamps}normalizeClassBreakInfosForCompare(e,a){return(e??[]).map(({classMinValue:t,classMaxValue:i,label:c,symbol:h})=>({classMinValue:t,classMaxValue:i,label:c,symbol:a?void 0:h}))}getRequestedBreaksCount(){return this.requestedBreaksCount??this.model.breaksCount??B.classBreaks.breaksCount}getFirstDayOfWeek(){let{lang:e}=H(this.el??document.documentElement),a=V(e);return q.local().setLocale(e).startOf("week",{useLocaleWeeks:a!==L}).weekday}applyCalendarTypePreset(e){switch(e){case k.YearByMonthAndDayOfMonth:{let a={type:d.CalendarDateParts,unit:f.DayOfMonth},t={type:d.CalendarDateParts,unit:f.MonthOfYear};this.model.xTemporalBinning=a,this.model.setAxisValueFormat(0,{type:d.DateAxisFormat,intlOptions:{day:"2-digit"}}),this.model.yTemporalBinning=t,this.model.setAxisValueFormat(1,{type:d.DateAxisFormat,intlOptions:{month:"short"}});break}case k.WeekByDayOfWeekAndHourOfDay:{let a={type:d.CalendarDateParts,unit:f.HourOfDay},t={type:d.CalendarDateParts,unit:f.DayOfWeek};this.model.firstDayOfWeek=this.getFirstDayOfWeek(),this.model.xTemporalBinning=a,this.model.setAxisValueFormat(0,{type:d.DateAxisFormat,intlOptions:{hour:"numeric",hour12:!1}}),this.model.yTemporalBinning=t,this.model.setAxisValueFormat(1,{type:d.DateAxisFormat,intlOptions:{weekday:"short"}});break}}}async generateClassBreaks(e=!1){let a=[],t=this.model.chartRenderer?.classBreakInfos,i=J(j);return i&&(a=await se({data:i,xAxisField:this.model.xAxisField,classificationMethod:this.model.classificationMethod,breaksCount:this.model.breaksCount,selectedColorRamp:this.selectedColorRamp,availableColorRamps:this.availableColorRamps,existingClassBreakInfos:t,useExistingColors:!e,isFlipped:this.isFlipped})),a}didClassBreaksChange(e,a=!1){return!x(this.normalizeClassBreakInfosForCompare(this.model.chartRenderer?.classBreakInfos,!a),this.normalizeClassBreakInfosForCompare(e,!a))}applyGeneratedClassBreaks(e,a){if(this.model.chartRenderer={type:"classBreaks",field:U.valueField,classBreakInfos:e},this.model.heatRulesType!==b.Renderer&&(this.model.heatRulesType=b.Renderer),this.model.classificationMethod!==v.manual){let t=e.length||a;this.model.breaksCount!==t&&(this.model.breaksCount=t)}}async generateAndUpdateClassBreaks(e=!1){let a=this.getRequestedBreaksCount(),t=await this.generateClassBreaks(e);this.didClassBreaksChange(t,e)&&this.applyGeneratedClassBreaks(t,a)}modelChange(e,a){a?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}getCorrectedXAxisFieldValue(){return Y({fieldName:this.model.xAxisField,fieldList:this.layerFieldsInfo})?"":S(this.layerFieldsInfo,this.model.xAxisField)}onXAxisFieldSelect(e){this.contentKind=s.xAxisField,this.setupPopover(e)}onNumericFieldSelect(e){this.contentKind=s.numericFields,this.setupPopover(e)}onCalendarTypeSelect(e){this.contentKind=s.calendarType,this.setupPopover(e)}onClassBreakMethodSelect(e){this.contentKind=s.classBreakMethod,this.setupPopover(e)}onColorSchemeSelect(e){this.contentKind=s.colorScheme,this.setupPopover(e)}async onBreaksCountChange(e){let a=O(e.target.value);a<u.min?a=u.min:a>u.max&&(a=u.max),z(a)&&(this.breaksCountElement.value&&(this.breaksCountElement.value.value=a.toString()),this.requestedBreaksCount=a,this.model.breaksCount=a,await this.generateAndUpdateClassBreaks())}onAggregationSelect(e){this.contentKind=s.aggregation,this.setupPopover(e)}onNullSelect(e){this.contentKind=s.null,this.setupPopover(e)}onIncludeLeapDayChange(e){let a=e.target.checked;this.model.includeLeapDay=a}onNullPolicyChange(e){this.model.nullPolicy=e.target.selectedItem.value}setupPopover(e){e.stopImmediatePropagation(),this.removeHeatChartDataPopover();let a,t,i,c=this.isFlipped;switch(this.contentKind){case s.aggregation:a=this.aggregationElement.value,t=this._messages.aggregationHeader,i=this.model.aggregationType;break;case s.xAxisField:a=this.xAxisFieldElement.value,t=this._messages.xAxisField,i=this.model.xAxisField;break;case s.numericFields:a=this.numericFieldsElement.value,t=this._messages.numericField,i=this.model.numericFields?.[0];break;case s.calendarType:a=this.calendarTypeElement.value,t=this._messages.calendarType,i=$(this.model);break;case s.calendarViewType:a=this.calendarViewTypeElement.value,t=this._messages.viewType,i=this.model.viewType;break;case s.classBreakMethod:a=this.classBreakMethodElement.value,t=this._messages.method,i=this.model.classificationMethod;break;case s.colorScheme:a=this.colorSchemeElement.value,t=this._messages.colorScheme;let h=ae(this.model.chartRenderer?.classBreakInfos,this.availableColorRamps);i=this.selectedColorRamp?.name??h?.name;let C=h?h.colorsForClassBreaks.find(y=>y.numClasses===this.model.breaksCount)?.colors:void 0;c=C?te(C,this.model.chartRenderer?.classBreakInfos):c;break;case s.null:a=e.target,t=this._messages.null;break}this.heatChartPopover=w(l`<arcgis-charts-config-heat-chart-popover .headingTitle=${t} .referenceElement=${a} open .contentKind=${this.contentKind} .model=${this.model} .layerFieldsInfo=${this.layerFieldsInfo} .selectedContent=${i} @arcgisChartsConfigHeatChartDataPopoverChange=${this.onHeatChartDataPopoverChange} @arcgisChartsConfigPopoverClose=${this.popoverClose} .colorRamps=${this.availableColorRamps} @arcgisChartsConfigHeatChartColorRampChange=${this.onColorRampSelection} @arcgisChartsConfigPopoverEmptyCellColorChange=${this.onEmptyCellColorChange} @arcgisChartsConfigPopoverEmptyCellNameChange=${this.onEmptyCellNameChange} .isFlipped=${c}></arcgis-charts-config-heat-chart-popover>`),!document.body.contains(this.heatChartPopover)&&this.heatChartPopover!==null&&document.body.appendChild(this.heatChartPopover)}removeHeatChartDataPopover(){this.heatChartPopover!==null&&(this.heatChartPopover.open=!1,this.heatChartPopover=ie(this.heatChartPopover))}setDefaultPropertiesForCalendarHeatChart(){X(this.model?.config)||((this.model.xTemporalBinning===void 0||this.model.yTemporalBinning===void 0)&&this.applyCalendarTypePreset(k.YearByMonthAndDayOfMonth),this.model.yAxisField=this.model.xAxisField,this.model.setYAxisSortOrder(Z.Desc),this.model.classificationMethod===void 0&&(this.model.classificationMethod=v.naturalBreaks),this.model.heatRulesType!==b.Renderer&&(this.model.heatRulesType=b.Renderer),this.model.viewType===void 0&&(this.model.viewType=N.singleCalendarView),(this.model.aggregationType===p.Count||this.model.aggregationType===p.Sum)&&this.model.nullPolicy!==g.Zero&&(this.model.nullPolicy=g.Zero))}renderXAxisFieldSelect(){let e=this.getCorrectedXAxisFieldValue();return l`<arcgis-charts-config-field-select .label=${e} @click=${this.onXAxisFieldSelect} ${m(this.xAxisFieldElement)}></arcgis-charts-config-field-select>`}renderAggregation(){return l`<arcgis-charts-config-field-select .label=${this.model.aggregationType===p.NoAggregation?this._messages.noAggregation:this.aggregationLabel} @click=${this.onAggregationSelect} ${m(this.aggregationElement)}></arcgis-charts-config-field-select>`}renderNumericFieldsSelect(){let e=this.model.numericFields?.[0]===A(this.model.layer).idField?"":S(this.layerFieldsInfo,this.model.numericFields?.[0]);return l`<arcgis-charts-config-field-select .label=${e} @click=${this.onNumericFieldSelect} ${m(this.numericFieldsElement)}></arcgis-charts-config-field-select>`}renderCalendarTypeSelect(){let e=$(this.model)??"",a={weekByDayOfWeekAndHourOfDay:this._messages.weekByDayOfWeekAndHourOfDay,yearByMonthAndDayOfMonth:this._messages.yearByMonthAndDayOfMonth},t=e?a[e]??"":"";return l`<arcgis-charts-config-field-select .label=${t} @click=${this.onCalendarTypeSelect} ${m(this.calendarTypeElement)}></arcgis-charts-config-field-select>`}renderClassBreakMethodSelect(){let e={equalInterval:this._messages.classBreaksMethod?.equalInterval,manual:this._messages.classBreaksMethod?.manual,naturalBreaks:this._messages.classBreaksMethod?.naturalBreaks,quantile:this._messages.classBreaksMethod?.quantile},a=this.model.classificationMethod?e[_(this.model.classificationMethod)]??"":"";return l`<arcgis-charts-config-field-select .label=${a} @click=${this.onClassBreakMethodSelect} ${m(this.classBreakMethodElement)}></arcgis-charts-config-field-select>`}renderColorRampSelect(){let e=this.model.chartRenderer?.classBreakInfos?.map(a=>{let t=a!==void 0?ee(a.symbol.color):"#FFFFFF";return l`<div class=${o(r.colorRampSegment)} style=${F({backgroundColor:t,width:`${100/this.model.breaksCount}%`})}></div>`});return l`<arcgis-charts-config-field-select label @click=${this.onColorSchemeSelect} ${m(this.colorSchemeElement)}><div slot=fieldSelectSlot class=${o(r.colorRamp)}>${e}</div></arcgis-charts-config-field-select>`}renderClassBreaksTable(){let e=this.model.chartRenderer?.classBreakInfos??[];return l`<calcite-table caption="Simple table"><calcite-table-row slot=table-header><calcite-table-header .heading=${this._messages.symbol}></calcite-table-header><calcite-table-header .heading=${this._messages.upperValue}></calcite-table-header></calcite-table-row>${e.map(a=>l`<calcite-table-row><calcite-table-cell><calcite-swatch label scale=m .color=${`rgba(${a.symbol.color?.[0]}, ${a.symbol.color?.[1]}, ${a.symbol.color?.[2]}, ${a.symbol.color?.[3]/255})`}></calcite-swatch></calcite-table-cell><calcite-table-cell>${a.label}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}renderNullUI(){let e=this.model.emptyCell,a=this._messages.null,t=e?.symbol?.color??B.grayColor,[i,c,h,C]=[...t],y=`rgba(${i},${c},${h},${C/255})`;return l`<calcite-list label class=${o(r.list)} selection-mode=none ${m(this.nullElement)}><calcite-list-item .label=${a} .value=${a} @calciteListItemSelect=${this.onNullSelect}><calcite-icon icon=square-f style=${F({color:y})} slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}renderEmptyBins(){return l`<calcite-radio-button-group name=empty-bins layout=vertical @calciteRadioButtonGroupChange=${this.onNullPolicyChange}><calcite-label layout=inline><calcite-radio-button .value=${g.Zero} .checked=${this.model.nullPolicy===g.Zero}></calcite-radio-button>${this._messages.treatAsZero}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${g.Null} .checked=${this.model.nullPolicy===g.Null}></calcite-radio-button>${this._messages.treatAsNull}</calcite-label></calcite-radio-button-group>`}render(){let e=this.renderXAxisFieldSelect(),a=this.renderAggregation(),t=this.renderNumericFieldsSelect(),i=this.renderCalendarTypeSelect(),c=this.renderClassBreakMethodSelect(),h=this.renderColorRampSelect(),C=this.renderClassBreaksTable(),y=this.renderNullUI(),le=this.renderEmptyBins();return l`<calcite-label class=${o(r.label)}>${this._messages.dateRequired}${e}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.calendarType}${i}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.aggregation}${a}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numericField}${t}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.method}${c}</calcite-label><calcite-label class=${o(r.label)}>${this._messages.numberOfClasses}<calcite-input type=number .min=${u.min} .max=${u.max} .disabled=${this.model.classificationMethod===void 0||this.model.classificationMethod===v.manual} step=1 .value=${Q(this.model.breaksCount,5)} @calciteInputInput=${this.onBreaksCountChange} ${m(this.breaksCountElement)}></calcite-input></calcite-label><calcite-label class=${o(r.label)}>${this._messages.colorScheme}${h}</calcite-label>${y}<calcite-accordion class=${o(r.accordion)} appearance=transparent selection-mode=single><calcite-accordion-item .heading=${this._messages.classBreaks}>${C}</calcite-accordion-item></calcite-accordion><calcite-label class=${o(r.label)}>${this._messages.emptyBins}${le}</calcite-label>${$(this.model)===k.YearByMonthAndDayOfMonth?l`<calcite-label class=${o(r.label)} layout=inline-space-between>${this._messages.includeLeapDay}<calcite-switch .checked=${this.model.includeLeapDay} @calciteSwitchChange=${this.onIncludeLeapDayChange}></calcite-switch></calcite-label>`:null}`}};I("arcgis-charts-config-heat-chart-data",P);return P},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point",a,c,e,h,i,q)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as C}from"./HLYRVLOY.js";import{a as b}from"./2E5ZABQ4.js";import{b as T,c as A}from"./EEBD6KKN.js";import h from"./LT62HS4S.js";import{h as a}from"./VCUC6CMW.js";import{a as u}from"./MP7HYYJR.js";import f from"./PGJD4Q7S.js";import e from"./R6XIAIZH.js";import"./YJXIGYX6.js";import c from"./GXQDCOI4.js";import{l as L,t as P}from"./Y7IQV44J.js";import"./3ZHL4GR5.js";import{d as r}from"./EZM4ZDQI.js";import"./ETLJKITO.js";import{A as k,B as n,G as y,g as $,i as s,n as d,y as g,z as m}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Ma:F,dc:I,rd:x,vd:D},,,{a:E,e:f,l:p,p:S}])=>{var l={jsAppFlyout:"js-app-flyout",name:"pie-chart-data-popover",numericFieldPickList:"pie-chart-data-numeric-fields-pick-list",header:"header",fab:"fab",pickListItemLabel:"pick-list-item-label",flipClass:"sort-counter-clockwise",panel:"panel"},w=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`,v=class extends k{constructor(){super(...arguments),this._messages=u(),this.commonStrings=u({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=w}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=f.map(i=>F(i,this.commonStrings));L(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){T(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},E.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=A(e,t)}buildAggregationPickListItems(){return C(f,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${p(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(r);return e.splice(e.indexOf(r.customSort),1),C(e,t=>t,t=>{let i="string",c="rotate",o="";switch(t){case r.labelAsc:i="string";break;case r.labelDesc:i="string",o=l.flipClass;break;case r.valueAsc:i="number";break;case r.valueDesc:i="number",o=l.flipClass;break;case r.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${r[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${n(o)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${I(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${p(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let c=0;c<t;c+=1){let o=this.layerFieldsInfo[c];x(o)&&i.push(this.buildPickListItem(o))}break}case a.category:{let c=b(" ",s`<calcite-list-item label=" " value=" " .selected=${p("",this.selectedContent)}></calcite-list-item>`);i.push(c);for(let o=0;o<t;o+=1){let h=this.layerFieldsInfo[o];(D(h)||h.type===P.String)&&i.push(this.buildPickListItem(h))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};S(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${n(l.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${n(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${n(l.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${n(l.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div class=${n(l.jsAppFlyout)}><calcite-popover class=${n(l.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel class=${n(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${n(l.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-pie-chart-popover",v);return v},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",c,e,f,h)
2
+ import{a as C}from"./SGF2PV4P.js";import{a as b}from"./XB6PLTZP.js";import{b as T,c as A}from"./EEBD6KKN.js";import h from"./FOGT5KUE.js";import{h as a}from"./VCUC6CMW.js";import{a as u}from"./4IFQNR3G.js";import f from"./KG6VAY4O.js";import e from"./EPJXASVH.js";import"./YJXIGYX6.js";import c from"./DDTZK4ZS.js";import{l as L,t as P}from"./Y7IQV44J.js";import"./2O53DY2A.js";import{d as r}from"./EZM4ZDQI.js";import"./ETLJKITO.js";import{A as k,B as n,G as y,g as $,i as s,n as d,y as g,z as m}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Ma:F,dc:I,rd:x,vd:D},,,{a:E,e:f,l:p,p:S}])=>{var l={jsAppFlyout:"js-app-flyout",name:"pie-chart-data-popover",numericFieldPickList:"pie-chart-data-numeric-fields-pick-list",header:"header",fab:"fab",pickListItemLabel:"pick-list-item-label",flipClass:"sort-counter-clockwise",panel:"panel"},w=$`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.name{display:flex;flex-direction:column;margin:.5rem;padding:.5rem;background:#fff;min-width:250px}.header{margin:0;font-weight:bolder}.fab{display:flex;justify-content:stretch}.pick-list-item-label{font-size:small}.sort-icon-color{color:#000}.sort-counter-clockwise{transform:scaleX(-1)}.panel{max-height:60vh}`,v=class extends k{constructor(){super(...arguments),this._messages=u(),this.commonStrings=u({name:"common",blocking:!0}),this.picklist=g(),this.popoverElement=g(),this.placement="leading",this.offsetDistance=-200,this.pickListHasChanged=!1,this.aggregationLabels=[],this.layerFieldsInfo=[],this.arcgisChartsConfigPieChartDataPopoverChange=d(),this.arcgisChartsConfigPopoverClose=d()}static{this.properties={aggregationLabels:16,messageOverrides:0,headingTitle:1,referenceElement:0,open:5,contentKind:1,layerFieldsInfo:0,selectedContent:1}}static{this.styles=w}async reposition(){await this.popoverElement.value?.reposition()}willUpdate(e){e.has("selectedContent")&&this.selectedContentChange(this.selectedContent,e.get("selectedContent"));let t=f.map(i=>F(i,this.commonStrings));L(this.aggregationLabels,t)||(this.aggregationLabels=t)}updated(){T(this.popoverElement.value,this.open),setTimeout(()=>{this.picklist.value?.setFocus()},E.PopoverTimer)}selectedContentChange(e,t){this.pickListHasChanged=A(e,t)}buildAggregationPickListItems(){return C(f,e=>e,(e,t)=>s`<calcite-list-item .label=${this.aggregationLabels[t]} .value=${e} .selected=${p(e,this.selectedContent)}></calcite-list-item>`)}buildSortOrder(){let e=Object.keys(r);return e.splice(e.indexOf(r.customSort),1),C(e,t=>t,t=>{let i="string",c="rotate",o="";switch(t){case r.labelAsc:i="string";break;case r.labelDesc:i="string",o=l.flipClass;break;case r.valueAsc:i="number";break;case r.valueDesc:i="number",o=l.flipClass;break;case r.customSort:}return s`<calcite-list-item .selected=${this.selectedContent===t} .label=${this._messages[t]} .value=${r[t]}><calcite-icon slot=content-end .icon=${i}></calcite-icon><calcite-icon class=${n(o)} slot=content-end .icon=${c}></calcite-icon></calcite-list-item>`})}buildPickListItem(e){return b(e.name,s`<calcite-list-item .label=${I(this.layerFieldsInfo,e.name)} .value=${e.name} .selected=${p(e.name,this.selectedContent)}></calcite-list-item>`)}buildPickListItems(e){let t=this.layerFieldsInfo?.length??0,i=[];switch(e){case a.numericFields:{for(let c=0;c<t;c+=1){let o=this.layerFieldsInfo[c];x(o)&&i.push(this.buildPickListItem(o))}break}case a.category:{let c=b(" ",s`<calcite-list-item label=" " value=" " .selected=${p("",this.selectedContent)}></calcite-list-item>`);i.push(c);for(let o=0;o<t;o+=1){let h=this.layerFieldsInfo[o];(D(h)||h.type===P.String)&&i.push(this.buildPickListItem(h))}break}}return i}closePopover(){if(this.contentKind===a.numericFields&&this.pickListHasChanged){let e={pickListElement:this.picklist.value,eventEmitter:this.arcgisChartsConfigPieChartDataPopoverChange,contentKind:this.contentKind};S(e)}this.arcgisChartsConfigPopoverClose.emit()}onDataContentTypeChange(e){this.pickListHasChanged=!0;let t=e.target.selectedItems;this.arcgisChartsConfigPieChartDataPopoverChange.emit({contentKind:this.contentKind,value:t.map(i=>i.value)}),this.open=!1}onNumericFieldsChange(e){e.target!==null&&(this.selectedContent=e.target.selectedItems.map(t=>t.value))}onNumericFieldSelectionDone(){this.closePopover()}renderAggregationType(){let e=this.buildAggregationPickListItems();return s`<calcite-list label class=${n(l.pickListItemLabel)} selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderCategory(){let e=this.buildPickListItems(a.category);return s`<calcite-list label class=${n(l.pickListItemLabel)} selection-mode=single selection-appearance=border filter-enabled @calciteListChange=${this.onDataContentTypeChange} ${m(this.picklist)}>${e}</calcite-list>`}renderNumericFields(){let e=this.buildPickListItems(a.numericFields);return s`<calcite-list label class=${n(l.numericFieldPickList)} selection-mode=multiple filter-enabled @calciteListChange=${this.onNumericFieldsChange} ${m(this.picklist)}>${e}</calcite-list>`}renderSortOrder(){let e=this.buildSortOrder();return s`<calcite-list label selection-mode=single selection-appearance=border @calciteListChange=${this.onDataContentTypeChange}>${e}</calcite-list>`}renderPopoverInfo(){let e;switch(this.contentKind){case a.aggregation:e=this.renderAggregationType();break;case a.category:e=this.renderCategory();break;case a.numericFields:e=this.renderNumericFields();break;case a.sortOrder:e=this.renderSortOrder();break}return e}render(){let e;return this.contentKind===a.numericFields&&(e=s`<div slot=footer><calcite-fab class=${n(l.fab)} appearance=outline-fill kind=neutral .icon=${void 0} .label=${this._messages.selectionDone} scale=s text-enabled .text=${this._messages.selectionDone} @click=${this.onNumericFieldSelectionDone}></calcite-fab></div>`),s`<div class=${n(l.jsAppFlyout)}><calcite-popover class=${n(l.name)} .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .offsetDistance=${this.offsetDistance} .open=${this.open} label auto-close ${m(this.popoverElement)}><calcite-panel class=${n(l.panel)} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div slot=header-content class=${n(l.header)}>${this.headingTitle??""}</div>${this.renderPopoverInfo()}${e}</calcite-panel></calcite-popover></div>`}};y("arcgis-charts-config-pie-chart-popover",v);return v},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",c,e,f,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as P}from"./HLYRVLOY.js";import{a as I}from"./2E5ZABQ4.js";import{a as g}from"./EEBD6KKN.js";import i from"./LT62HS4S.js";import"./VCUC6CMW.js";import{a as L}from"./MP7HYYJR.js";import f from"./PGJD4Q7S.js";import e from"./R6XIAIZH.js";import"./YJXIGYX6.js";import b from"./GXQDCOI4.js";import"./Y7IQV44J.js";import"./3ZHL4GR5.js";import"./EZM4ZDQI.js";import{g as d}from"./ETLJKITO.js";import{A as $,B as a,C as c,E as h,G as x,g as u,i as n}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Wb:p},,,{s:b}])=>{var l={topSection:"top-section",sectionLabel:"section-label",list:"list",infoIcon:"info-icon"},N=u`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.info-icon{margin:auto 1rem;pointer-events:auto}`,C=class extends ${constructor(){super(...arguments),this._messages=L(),this.resetSeriesOriginal=()=>{this.configSeriesOpen=!1,this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1},this.onMultipleSeriesSelect=e=>{if(!this.shouldDisableMeanLinesOption()){let i=e.target,t=i.value??i.parentElement.value??"";this.model.showMeanLines=t===d.MeanLines}},this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name;this.model.setSeriesName(i,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;i!==void 0&&(this.meanLinesBoxColorIsSelected?this.model.meanLinesBoxColor=i:(this.model.colorMatch=!1,this.model.setSeriesColor(i,this.selectedSeriesIndex??-1)))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{style:i}=e.detail;i!==void 0&&this.model.setSeriesLineStyle(i,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{width:i}=e.detail;i!==void 0&&this.model.setSeriesLineWidth(i,this.selectedSeriesIndex??-1)}},this.onCalciteListOrderChange=e=>{let i=this.model.boxPlotSeriesIndexWhenMeanLinesShown;if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail,o=s,r=t;i!==-1&&(o=s>=i?s+1:s,r=t>=i?t+1:t),this.model.moveSeries(o,r),this.seriesOrderResetCounter+=1}},this.seriesPopoverClose=()=>{this.selectedSeriesIndex=void 0,this.meanLinesBoxColorIsSelected=!1,this.configSeriesOpen=!1,this.seriesPopover=g(this.seriesPopover)},this.openSeriesPopOver=e=>{e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,t=i.localName==="calcite-list-item"?i:i.parentNode,s=!this.configSeriesOpen,o=this.model.getSeriesIndex(t.value);if(o!==void 0&&o!==-1)this.configSeriesOpen=this.selectedSeriesIndex===o?s:!0,this.configSeriesOpen?this.selectedSeriesIndex=o:this.selectedSeriesIndex=void 0,this.meanLinesBoxColorIsSelected=!1;else if(t.value==="box-plot-color"){let r=!this.meanLinesBoxColorIsSelected;this.configSeriesOpen=r,this.meanLinesBoxColorIsSelected=r,this.selectedSeriesIndex=void 0}},this.createTooltip=(e,i)=>{let t=e.target;this.tooltip=h(n`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i??""}</calcite-tooltip>`),document.body.appendChild(this.tooltip)},this.destroyTooltip=()=>{b(this.tooltip)},this.onModelConfigChange=()=>{this.requestUpdate()},this.meanLinesBoxColorIsSelected=!1,this.seriesOrderResetCounter=0,this.configSeriesOpen=!1,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,meanLinesBoxColorIsSelected:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,configSeriesOpen:5,activeColorMatch:5,popoverPlacement:1}}static{this.styles=N}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange(),e.has("meanLinesBoxColorIsSelected")&&this.meanLinesBoxColorIsSelectedChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}meanLinesBoxColorIsSelectedChange(){this.meanLinesBoxColorIsSelected&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=g(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=this.model.boxPlotSeriesIndexWhenMeanLinesShown,t=Array.from({length:e},(s,o)=>o);return P(t,s=>this.model.getSeriesId(s),s=>{let o=this.model.getSeriesId(s),r=this.model.getSeriesColor(s),m=this.model.getSeriesName(s),S=this.model.chartSubType,M=S===p.BoxPlotMonoField||S===p.BoxPlotMultiFields?this._messages.series:o,v="#CCCCCC",f="minus-square";if((e>1||!this.activeColorMatch)&&r!==void 0){f=this.model.showMeanLines===!0?"line-solid":"square-f";let[y,B,O,w]=[...r];v=`rgba(${y},${B},${O},${w/255})`}return i!==s?n`<calcite-list-item .label=${m??o??""} .description=${M} .value=${o} .selected=${this.selectedSeriesIndex===s} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${f} style=${c({color:v})}></calcite-icon></calcite-list-item>`:null})}buildSeriesList(){return I(this.seriesOrderResetCounter,n`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}setupSeriesPopover(){this.removeSeriesPopover(),this.meanLinesBoxColorIsSelected?this.seriesPopover=h(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`):this.selectedSeriesIndex!==void 0&&(this.seriesPopover=h(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover)}shouldDisableMeanLinesOption(){return this.model.splitByField===""||this.model.splitByField===void 0}renderMeanLinesBoxColorItem(){let e="#CCCCCC",i="minus-square",t=this.model.meanLinesBoxColor;if(t!==void 0){i="square-f";let[s,o,r,m]=[...t];e=`rgba(${s},${o},${r},${m/255})`}return n`<calcite-list label class=${a(l.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${c({color:e})}></calcite-icon></calcite-list-item></calcite-list>`}renderMultipleSeriesOption(){let e=this.shouldDisableMeanLinesOption();return e?[]:[n`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultipleSeries}</div>`,n`<calcite-list label class=${a(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${d.Side} .selected=${this.model.showMeanLines!==!0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(l.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.sideBySideTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${d.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines===!0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(l.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.meanLinesTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,this.model.showMeanLines===!0?this.renderMeanLinesBoxColorItem():null]}render(){return n`${this.renderMultipleSeriesOption()}<div class=${a(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};x("arcgis-charts-config-box-plot-series",C);return C},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",b,e,f,i)
2
+ import{a as P}from"./SGF2PV4P.js";import{a as I}from"./XB6PLTZP.js";import{a as g}from"./EEBD6KKN.js";import i from"./FOGT5KUE.js";import"./VCUC6CMW.js";import{a as L}from"./4IFQNR3G.js";import f from"./KG6VAY4O.js";import e from"./EPJXASVH.js";import"./YJXIGYX6.js";import b from"./DDTZK4ZS.js";import"./Y7IQV44J.js";import"./2O53DY2A.js";import"./EZM4ZDQI.js";import{g as d}from"./ETLJKITO.js";import{A as $,B as a,C as c,E as h,G as x,g as u,i as n}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{Wb:p},,,{s:b}])=>{var l={topSection:"top-section",sectionLabel:"section-label",list:"list",infoIcon:"info-icon"},N=u`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.top-section{margin-top:var(--arcgis-charts-config-margin-minor)}.section-label{display:flex;margin-bottom:var(--arcgis-charts-config-margin-major);margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.info-icon{margin:auto 1rem;pointer-events:auto}`,C=class extends ${constructor(){super(...arguments),this._messages=L(),this.resetSeriesOriginal=()=>{this.configSeriesOpen=!1,this.selectedSeriesIndex=void 0,this.model.resetSeriesStyling(),this.seriesOrderResetCounter+=1},this.onMultipleSeriesSelect=e=>{if(!this.shouldDisableMeanLinesOption()){let i=e.target,t=i.value??i.parentElement.value??"";this.model.showMeanLines=t===d.MeanLines}},this.seriesNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name;this.model.setSeriesName(i,this.selectedSeriesIndex??-1)}},this.seriesColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail;i!==void 0&&(this.meanLinesBoxColorIsSelected?this.model.meanLinesBoxColor=i:(this.model.colorMatch=!1,this.model.setSeriesColor(i,this.selectedSeriesIndex??-1)))}},this.seriesLineStyleChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{style:i}=e.detail;i!==void 0&&this.model.setSeriesLineStyle(i,this.selectedSeriesIndex??-1)}},this.seriesLineWidthChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{width:i}=e.detail;i!==void 0&&this.model.setSeriesLineWidth(i,this.selectedSeriesIndex??-1)}},this.onCalciteListOrderChange=e=>{let i=this.model.boxPlotSeriesIndexWhenMeanLinesShown;if(e.detail!==null&&e.detail!==void 0){let{newIndex:t,oldIndex:s}=e.detail,o=s,r=t;i!==-1&&(o=s>=i?s+1:s,r=t>=i?t+1:t),this.model.moveSeries(o,r),this.seriesOrderResetCounter+=1}},this.seriesPopoverClose=()=>{this.selectedSeriesIndex=void 0,this.meanLinesBoxColorIsSelected=!1,this.configSeriesOpen=!1,this.seriesPopover=g(this.seriesPopover)},this.openSeriesPopOver=e=>{e.stopImmediatePropagation(),this.removeSeriesPopover();let i=e.target,t=i.localName==="calcite-list-item"?i:i.parentNode,s=!this.configSeriesOpen,o=this.model.getSeriesIndex(t.value);if(o!==void 0&&o!==-1)this.configSeriesOpen=this.selectedSeriesIndex===o?s:!0,this.configSeriesOpen?this.selectedSeriesIndex=o:this.selectedSeriesIndex=void 0,this.meanLinesBoxColorIsSelected=!1;else if(t.value==="box-plot-color"){let r=!this.meanLinesBoxColorIsSelected;this.configSeriesOpen=r,this.meanLinesBoxColorIsSelected=r,this.selectedSeriesIndex=void 0}},this.createTooltip=(e,i)=>{let t=e.target;this.tooltip=h(n`<calcite-tooltip style=${c({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${t} open placement=top>${i??""}</calcite-tooltip>`),document.body.appendChild(this.tooltip)},this.destroyTooltip=()=>{b(this.tooltip)},this.onModelConfigChange=()=>{this.requestUpdate()},this.meanLinesBoxColorIsSelected=!1,this.seriesOrderResetCounter=0,this.configSeriesOpen=!1,this.activeColorMatch=!1,this.popoverPlacement="leading"}static{this.properties={selectedSeriesIndex:16,meanLinesBoxColorIsSelected:16,seriesOrderResetCounter:16,messageOverrides:0,model:0,configSeriesOpen:5,activeColorMatch:5,popoverPlacement:1}}static{this.styles=N}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSeriesIndex")&&this.selectedSeriesIndexChange(),e.has("meanLinesBoxColorIsSelected")&&this.meanLinesBoxColorIsSelectedChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSeriesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSeriesIndexChange(){this.selectedSeriesIndex!==void 0&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}meanLinesBoxColorIsSelectedChange(){this.meanLinesBoxColorIsSelected&&this.configSeriesOpen?this.setupSeriesPopover():this.removeSeriesPopover()}removeSeriesPopover(){this.seriesPopover!==null&&this.seriesPopover!==void 0&&(this.seriesPopover.open=!1,this.seriesPopover=g(this.seriesPopover))}buildSeriesListItems(){let e=this.model.seriesLength,i=this.model.boxPlotSeriesIndexWhenMeanLinesShown,t=Array.from({length:e},(s,o)=>o);return P(t,s=>this.model.getSeriesId(s),s=>{let o=this.model.getSeriesId(s),r=this.model.getSeriesColor(s),m=this.model.getSeriesName(s),S=this.model.chartSubType,M=S===p.BoxPlotMonoField||S===p.BoxPlotMultiFields?this._messages.series:o,v="#CCCCCC",f="minus-square";if((e>1||!this.activeColorMatch)&&r!==void 0){f=this.model.showMeanLines===!0?"line-solid":"square-f";let[y,B,O,w]=[...r];v=`rgba(${y},${B},${O},${w/255})`}return i!==s?n`<calcite-list-item .label=${m??o??""} .description=${M} .value=${o} .selected=${this.selectedSeriesIndex===s} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${f} style=${c({color:v})}></calcite-icon></calcite-list-item>`:null})}buildSeriesList(){return I(this.seriesOrderResetCounter,n`<calcite-list label class=${a(l.list)} drag-enabled selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSeriesListItems()}</calcite-list>`)}setupSeriesPopover(){this.removeSeriesPopover(),this.meanLinesBoxColorIsSelected?this.seriesPopover=h(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedColor=${this.model.meanLinesBoxColor} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`):this.selectedSeriesIndex!==void 0&&(this.seriesPopover=h(n`<arcgis-charts-config-box-plot-series-popover .referenceElement=${this.el} .selectedName=${this.model.getSeriesName(this.selectedSeriesIndex)} .selectedColor=${this.model.getSeriesColor(this.selectedSeriesIndex)} .selectedLineStyle=${this.model.getSeriesLineStyle(this.selectedSeriesIndex)} .selectedLineWidth=${this.model.getSeriesLineWidth(this.selectedSeriesIndex)} .isLineSymbol=${this.model.showMeanLines} .placement=${this.popoverPlacement} open .selectedSeriesIndex=${this.selectedSeriesIndex} .labelCanBeConfigured=${!this.meanLinesBoxColorIsSelected} @arcgisChartsConfigSeriesPopoverNameChange=${this.seriesNameChange} @arcgisChartsConfigSeriesPopoverColorChange=${this.seriesColorChange} @arcgisChartsConfigSeriesPopoverLineStyleChange=${this.seriesLineStyleChange} @arcgisChartsConfigSeriesPopoverLineWidthChange=${this.seriesLineWidthChange} @arcgisChartsConfigPopoverClose=${this.seriesPopoverClose}></arcgis-charts-config-box-plot-series-popover>`)),this.seriesPopover&&!document.body.contains(this.seriesPopover)&&document.body.appendChild(this.seriesPopover)}shouldDisableMeanLinesOption(){return this.model.splitByField===""||this.model.splitByField===void 0}renderMeanLinesBoxColorItem(){let e="#CCCCCC",i="minus-square",t=this.model.meanLinesBoxColor;if(t!==void 0){i="square-f";let[s,o,r,m]=[...t];e=`rgba(${s},${o},${r},${m/255})`}return n`<calcite-list label class=${a(l.list)}><calcite-list-item value=box-plot-color .label=${this._messages.boxPlotColor} .selected=${this.meanLinesBoxColorIsSelected} @click=${this.openSeriesPopOver}><calcite-icon slot=content-end .icon=${i} style=${c({color:e})}></calcite-icon></calcite-list-item></calcite-list>`}renderMultipleSeriesOption(){let e=this.shouldDisableMeanLinesOption();return e?[]:[n`<div class=${`${l.sectionLabel} ${l.topSection}`}>${this._messages.displayMultipleSeries}</div>`,n`<calcite-list label class=${a(l.list)} selection-mode=single-persist selection-appearance=border @click=${this.onMultipleSeriesSelect}><calcite-list-item .label=${this._messages.sideBySide} .value=${d.Side} .selected=${this.model.showMeanLines!==!0}><calcite-icon slot=content-start scale=l icon=graph-box-side-by-side></calcite-icon><calcite-icon class=${a(l.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.sideBySideTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item><calcite-list-item .label=${this._messages.meanLines} .value=${d.MeanLines} .disabled=${e} .selected=${this.model.showMeanLines===!0}><calcite-icon slot=content-start scale=l icon=graph-box-mean-lines></calcite-icon><calcite-icon class=${a(l.infoIcon)} slot=actions-end icon=information scale=s flip-rtl @mouseover=${i=>this.createTooltip(i,this._messages.meanLinesTooltip??"")} @mouseout=${this.destroyTooltip}></calcite-icon></calcite-list-item></calcite-list>`,this.model.showMeanLines===!0?this.renderMeanLinesBoxColorItem():null]}render(){return n`${this.renderMultipleSeriesOption()}<div class=${a(l.sectionLabel)}>${this._messages.series}<calcite-button @click=${this.resetSeriesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSeriesList()}`}};x("arcgis-charts-config-box-plot-series",C);return C},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",b,e,f,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{d as a}from"./VCUC6CMW.js";import{g as f}from"./YJXIGYX6.js";import b from"./GXQDCOI4.js";import{l as t}from"./Y7IQV44J.js";import"./3ZHL4GR5.js";import"./ETLJKITO.js";import{A as h,G as c,g as n,i as s,n as m}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{ld:d,nd:g,rd:p,sd:y}])=>{var C=n`: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%}`,l=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async i=>{let e=i?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.arcgisChartsConfigNoSeriesUpdate=m()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5}}static{this.styles=C}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(i){let e=!1;i.has("model")&&this.modelChange(this.model,i.get("model")),i.has("layer")&&this.layer!==void 0&&!t(i.get("layer"),this.layer)&&(e=!0),i.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==i.get("usePopupTemplateFieldsInfo")&&(e=!0),i.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(i,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(i){this.activeColorMatch=i?.get(0)?.markerSymbol===void 0,this.model.colorMatch&&i?.forEach((e,o)=>{e&&i?.get(0)!==void 0&&("lineSymbol"in e&&(e.lineSymbol?.color!==void 0&&!t(this.model.getSeriesColor(o),e.lineSymbol.color)&&this.model.setSeriesColor(e.lineSymbol.color,o),e.lineSymbol?.style!==void 0&&!t(this.model.getSeriesLineStyle(o),e.lineSymbol.style)&&this.model.setSeriesLineStyle(e.lineSymbol.style,o),e.lineSymbol?.width!==void 0&&!t(this.model.getSeriesLineWidth(o),e.lineSymbol.width)&&this.model.setSeriesLineWidth(e.lineSymbol.width,o)),"markerSymbol"in e&&(e.markerSymbol?.color!==void 0&&!t(this.model.getSeriesMarkerColor(o),e.markerSymbol?.color)&&this.model.setSeriesMarkerColor(e.markerSymbol?.color,o),e.markerSymbol?.style!==void 0&&!t(this.model.getSeriesMarkerStyle(o),e.markerSymbol?.style)&&this.model.setSeriesMarkerStyle(e.markerSymbol?.style,o),e.markerSymbol?.size!==void 0&&this.model.getSeriesMarkerSize(o)!==e.markerSymbol?.size&&this.model.setSeriesMarkerSize(e.markerSymbol?.size,o)))})}async updateFetchLayerFieldsInfo(i){let e=i??this.model.config,o=this.layer;if(!o){let r=f(e)?e.iLayer:void 0;r&&(o=await d(r))}o&&(await o.load(),this.layerFieldsInfo=g(o,this.usePopupTemplateFieldsInfo))}render(){let i=this.layerFieldsInfo?.find(r=>r.name===this.model.xAxisField),e=i!==void 0&&(p(i)||y(i)),o;switch(this.page){case a.Data:o=s`<arcgis-charts-config-line-chart-data .model=${this.model} .resetTimeInterval=${this.model.resetTimeInterval} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-line-chart-data>`;break;case a.Series:o=s`<arcgis-charts-config-line-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-line-chart-series>`;break;case a.Axes:o=s`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case a.Guides:o=s`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .enableXAxisGuide=${e} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case a.Format:o=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case a.General:o=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:o="";break}return o}};c("arcgis-charts-config-line-chart",l);return l},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",b)
2
+ import{d as a}from"./VCUC6CMW.js";import{g as f}from"./YJXIGYX6.js";import b from"./DDTZK4ZS.js";import{l as t}from"./Y7IQV44J.js";import"./2O53DY2A.js";import"./ETLJKITO.js";import{A as h,G as c,g as n,i as s,n as m}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{ld:d,nd:g,rd:p,sd:y}])=>{var C=n`: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%}`,l=class extends h{constructor(){super(...arguments),this.onModelConfigChange=async i=>{let e=i?.detail.config??this.model.config;this.layer===void 0&&await this.updateFetchLayerFieldsInfo(e)},this.activeColorMatch=!1,this.popoverPlacement="leading",this.arcgisChartsConfigNoSeriesUpdate=m()}static{this.properties={layerFieldsInfo:16,activeColorMatch:16,model:0,timeZone:1,popoverPlacement:1,seriesColor:0,calculatedDataMinMaxBounds:0,calculatedMinMaxBounds:0,page:1,layer:0,usePopupTemplateFieldsInfo:5}}static{this.styles=C}async load(){this.seriesColor!==void 0&&this.seriesColorChange(this.seriesColor),await this.updateFetchLayerFieldsInfo(this.model?.config),this.modelChange(this.model)}willUpdate(i){let e=!1;i.has("model")&&this.modelChange(this.model,i.get("model")),i.has("layer")&&this.layer!==void 0&&!t(i.get("layer"),this.layer)&&(e=!0),i.has("usePopupTemplateFieldsInfo")&&this.usePopupTemplateFieldsInfo!==i.get("usePopupTemplateFieldsInfo")&&(e=!0),i.has("seriesColor")&&this.seriesColorChange(this.seriesColor),this.layerFieldsInfo===void 0&&(e=!0),e&&this.updateFetchLayerFieldsInfo()}disconnectedCallback(){super.disconnectedCallback(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(i,e){e?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),i?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}seriesColorChange(i){this.activeColorMatch=i?.get(0)?.markerSymbol===void 0,this.model.colorMatch&&i?.forEach((e,o)=>{e&&i?.get(0)!==void 0&&("lineSymbol"in e&&(e.lineSymbol?.color!==void 0&&!t(this.model.getSeriesColor(o),e.lineSymbol.color)&&this.model.setSeriesColor(e.lineSymbol.color,o),e.lineSymbol?.style!==void 0&&!t(this.model.getSeriesLineStyle(o),e.lineSymbol.style)&&this.model.setSeriesLineStyle(e.lineSymbol.style,o),e.lineSymbol?.width!==void 0&&!t(this.model.getSeriesLineWidth(o),e.lineSymbol.width)&&this.model.setSeriesLineWidth(e.lineSymbol.width,o)),"markerSymbol"in e&&(e.markerSymbol?.color!==void 0&&!t(this.model.getSeriesMarkerColor(o),e.markerSymbol?.color)&&this.model.setSeriesMarkerColor(e.markerSymbol?.color,o),e.markerSymbol?.style!==void 0&&!t(this.model.getSeriesMarkerStyle(o),e.markerSymbol?.style)&&this.model.setSeriesMarkerStyle(e.markerSymbol?.style,o),e.markerSymbol?.size!==void 0&&this.model.getSeriesMarkerSize(o)!==e.markerSymbol?.size&&this.model.setSeriesMarkerSize(e.markerSymbol?.size,o)))})}async updateFetchLayerFieldsInfo(i){let e=i??this.model.config,o=this.layer;if(!o){let r=f(e)?e.iLayer:void 0;r&&(o=await d(r))}o&&(await o.load(),this.layerFieldsInfo=g(o,this.usePopupTemplateFieldsInfo))}render(){let i=this.layerFieldsInfo?.find(r=>r.name===this.model.xAxisField),e=i!==void 0&&(p(i)||y(i)),o;switch(this.page){case a.Data:o=s`<arcgis-charts-config-line-chart-data .model=${this.model} .resetTimeInterval=${this.model.resetTimeInterval} .layerFieldsInfo=${this.layerFieldsInfo}></arcgis-charts-config-line-chart-data>`;break;case a.Series:o=s`<arcgis-charts-config-line-chart-series .model=${this.model} .activeColorMatch=${this.activeColorMatch} .popoverPlacement=${this.popoverPlacement}></arcgis-charts-config-line-chart-series>`;break;case a.Axes:o=s`<arcgis-charts-config-axes .model=${this.model} show-min-y-bound-option show-max-y-bound-option show-enable-x-log-option show-enable-y-log-option .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .calculatedDataMinMaxBounds=${this.calculatedDataMinMaxBounds}></arcgis-charts-config-axes>`;break;case a.Guides:o=s`<arcgis-charts-config-guides .model=${this.model} .timeZone=${this.timeZone} .calculatedMinMaxBounds=${this.calculatedMinMaxBounds} .enableXAxisGuide=${e} enable-y-axis-guide></arcgis-charts-config-guides>`;break;case a.Format:o=s`<arcgis-charts-config-format .model=${this.model}></arcgis-charts-config-format>`;break;case a.General:o=s`<arcgis-charts-config-general .model=${this.model}></arcgis-charts-config-general>`;break;default:o="";break}return o}};c("arcgis-charts-config-line-chart",l);return l},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",b)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vt=Symbol(),Mt=new WeakMap,M=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==vt)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 o=e!==void 0&&e.length===1;o&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Mt.set(e,t))}return t}toString(){return this.cssText}},kt=s=>new M(typeof s=="string"?s:s+"",void 0,vt),Ce=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,n)=>o+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[n+1],s[0]);return new M(e,s,vt)},jt=(s,t)=>{if(Z)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),r=Y.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},Et=Z?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return kt(e)})(s):s;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,Ht=tt.trustedTypes,De=Ht?Ht.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(s,t)=>s,X={toAttribute(s,t){switch(t){case Boolean:s=s?De:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},j=(s,t)=>!we(s,t),zt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};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=zt){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 o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Oe(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:n}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:r,set(i){let a=r?.call(this);n?.call(this,i),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,o=[...Se(e),...Pe(e)];for(let r of o)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)e.unshift(Et(r))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o: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 o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return jt(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,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let n=(o.converter?.toAttribute!==void 0?o.converter:X).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=o.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:X;this._$Em=r;let a=i.fromAttribute(e,n.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,n){if(t!==void 0){let i=this.constructor;if(r===!1&&(n=this[t]),o??=i.getPropertyOptions(t),!((o.hasChanged??j)(n,e)||o.useDefault&&o.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:n},i){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),n!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(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,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,n]of o){let{wrapped:i}=n,a=this[r];i!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,n,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}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"},_[k("elementProperties")]=new Map,_[k("finalized")]=new Map,xe?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,Vt=s=>s,et=bt.trustedTypes,Bt=et?et.createPolicy("lit-html",{createHTML:s=>s}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+A,Le=`<${At}>`,T=document,z=()=>T.createComment(""),V=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Qt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",$t=`[
3
3
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wt=/-->/g,Ft=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ms=wt(1),ys=wt(2),gs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(s,t)=>{let e=s.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(r=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=r??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=w:i===Wt||i===Ft?i=H:(i=w,r=void 0);let v=i===w&&s[a+1].startsWith("/>")?" ":"";n+=i===H?c+Le:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+v):c+A+(h===-2?a:v)}return[Yt(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},B=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=s.createElement(l,o),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(_t)){let m=u[i++],v=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:n,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?nt:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:n}),r.removeAttribute(h));if(Jt.test(r.tagName)){let h=r.textContent.split(A),m=h.length-1;if(m>0){r.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],z()),O.nextNode(),c.push({type:2,index:++n});r.append(h[m],z())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,n=V(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),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:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let n=O.nextNode(),i=0,a=0,c=o[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(n,n.nextSibling,this,t):c.type===1?l=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(l=new it(n,this,t)),this._$AV.push(l),c=o[++a]}i!==c?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,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),V(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&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=B.createElement(Yt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new st(r,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let n of t)r===e.length?e.push(o=new s(this.O(z()),this.O(z()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Vt(t).nextSibling;Vt(t).remove(),t=o}}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,o,r,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=n[0],c=0;c<n.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}i&&!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)}},nt=class extends P{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),n&&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)}},it=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Xt={M:_t,P:A,A:At,C:1,L:Zt,R:st,D:Qt,V:S,I:L,H:P,N:rt,U:nt,B:ot,F:it},Ue=bt.litHtmlPolyfillSupport;Ue?.(B,L),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(z(),n),n,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,E=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}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ns=(s,t,e,o)=>{let r=se(t);if(o?.once){let i=`${s}${r}${e}`;if(te.has(i))return;te.add(i)}let n;if(o?.detail){n={};for(let[i,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(n,i,{get(){return c.deref()}})}else n[i]=a;ee?.log.interceptors?.forEach(i=>i(s,r,e,n)),console[s](`[${r}]: ${e}`,n)}else ee?.log.interceptors?.forEach(i=>i(s,r,e)),console[s](`[${r}]: ${e}`)},oe=s=>{let t=`[${se(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}};var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},W=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var q=Symbol.for("controller"),Ie=s=>typeof s=="object"&&s!==null&&(q in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ls=s=>typeof s?.then=="function";var F,D=s=>{F!==s&&(F=s,queueMicrotask(()=>F===s?F=void 0:0))},G=s=>F,N=[],re=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ne=()=>N,U,Us=s=>{U!==s&&(U=s,queueMicrotask(()=>U===s?U=void 0:0))},Me=()=>{let s=U;return U=void 0,s},ie=async(s,t)=>{let e=lt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ae=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=G().manager.X(s);if(e!==void 0)return e;if(Ie(s))return s;let o=Me();if(o!==void 0)return o},ct=!1,Rs=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ce=(s,t)=>{let e=t>ke?je:t/He,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ke=4e3,je=2e3,He=4;var ze=(s,t,e)=>{let o=Object.keys(s),r=o.length;R===void 0&&queueMicrotask(I),R??=new Map;let n=R.get(s);return n===void 0&&(n={callbacks:[],keyCount:r},R.set(s,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),R=void 0},Ve=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,n)=>p(t,void 0,e===n?r:void 0)),e},Be=(s=[G(),...ne()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,n=i=>{r-=1,i!==void 0&&(r=Math.min(r,0)),r===0&&t(i)};o.forEach(i=>ze(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of o)if("manager"in i&&i.manager.component===i){Ve(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(s="",t={},e=G())=>{let o={emit:r=>{s===""&&I();let n=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(n),n}};return s===""&&Be(void 0,r=>s=r.key,o),o},Fe=We.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#n=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,o=t??G(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=he(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(re(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#n;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>void this.#h.splice(this.#h.indexOf(e),1)}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(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.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.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.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}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.#n.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#i.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#i.push(r.remove)})}};function le(s){p(s,void 0,this)}var pe=Tt,he=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,n){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,n)}},e=new Proxy(s,t);return e};var{I:qe}=Xt,ue=s=>s;var ht=s=>s.strings===void 0,fe=()=>document.createComment(""),qs=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let n=o.insertBefore(fe(),r),i=o.insertBefore(fe(),r);e=new qe(n,i,s,s.options)}else{let n=e._$AB.nextSibling,i=e._$AM,a=i!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==i._$AU&&e._$AP(c)}if(n!==r||a){let c=e._$AA;for(;c!==n;){let l=ue(c).nextSibling;ue(o).insertBefore(c,r),c=l}}}return e},Gs=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},me=(s,t=Ge)=>s._$AH=t,Ks=s=>s._$AH,Qs=s=>{s._$AR(),s._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),K(o,t);return!0},dt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Je(t)}};function Ke(s){this._$AN!==void 0?(dt(this),this._$AM=s,ye(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let n=e;n<o.length;n++)K(o[n],!1),dt(o[n]);else o!=null&&(K(o,!1),dt(o));else K(this,s)}var Je=s=>{s.type==y.CHILD&&(s._$AP??=Qe,s._$AQ??=Ke)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(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 no=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(s){return d}update(s,[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=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.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=s=>s.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var xt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&s.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,gt=C?.map(([x])=>x),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ut(t[0])]:t},es=globalThis.HTMLElement??Ut,Dt=class extends es{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(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}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})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),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,o=e.L,r=this.#e,n=Object.values(t).find(h=>h.L===o),i=`${o}--lazy`,a=n;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=n,customElements.define(i,n)),n.N=this;let l=document.createElement(i);n.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,n){e.setAttribute.call(this.el,r,n)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends pe{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",E.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),D(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=ce(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.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)}},rs=1e3,yt="autoDestroyDisabled";var ve=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Ee="important",ns=" !"+Ee,$e=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.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(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(ns);o.includes("-")||n?e.setProperty(o,n?r.slice(0,-11):r,n?Ee:""):e[o]=r}}return f}});var is=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return me(s),t}});var be=class s extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,n=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==n&&(t.#e=t.shouldUpdate,t.shouldUpdate=n),r&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,n=r?.hasChanged??j,i={attribute:o&1&&typeof t=="string"?ut(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=n(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,o){let r=this.K,n=super.getPropertyDescriptor(t,e,o);return o.d=n,{...n,get(){return r.t?.(this.#t.get(t)),n.get?.call(this)},set(i){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);n.set.call(this,i??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#r;#n;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#i().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,n=t??(o===Lt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async#i(){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(W(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 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.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.#n?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:e,customElement(r,n){n.K=o,n.L=r,customElements.get(r)||customElements.define(r,n)}};return e(s.defaultAssetPath),o};var Sr=s=>typeof s=="object"&&s!=null?ve(s):s,Pr=s=>typeof s=="object"&&s!=null?$e(s):s;var It=class extends g{#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,Nt(this.#e)):Nt(t)}},Nr=$(It);var Dr=d;var xr=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var Q=Ae({defaultAssetPath:"https://jsdev.arcgis.com/5.1.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:Mr,getAssetPath:kr,setAssetPath:jr}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,re as c,ne as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,Tt as o,Xe as p,y as q,$ as r,g as s,qs as t,Gs as u,me as v,Ks as w,Qs as x,no as y,Nt as z,be as A,Sr as B,Pr as C,Dr as D,xr as E,Q as F,Mr as G,kr as H};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qt=/'/g,Gt=/"/g,Jt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ms=wt(1),ys=wt(2),gs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Kt=new WeakMap,O=T.createTreeWalker(T,129);function Yt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bt!==void 0?Bt.createHTML(t):t}var Zt=(s,t)=>{let e=s.length-1,o=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Wt:u[1]!==void 0?i=Ft:u[2]!==void 0?(Jt.test(u[2])&&(r=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=r??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Gt:qt):i===Gt||i===qt?i=w:i===Wt||i===Ft?i=H:(i=w,r=void 0);let v=i===w&&s[a+1].startsWith("/>")?" ":"";n+=i===H?c+Le:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+v):c+A+(h===-2?a:v)}return[Yt(s,n+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},B=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let n=0,i=0,a=t.length-1,c=this.parts,[l,u]=Zt(t,e);if(this.el=s.createElement(l,o),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(_t)){let m=u[i++],v=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:n,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?nt:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:n}),r.removeAttribute(h));if(Jt.test(r.tagName)){let h=r.textContent.split(A),m=h.length-1;if(m>0){r.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)r.append(h[v],z()),O.nextNode(),c.push({type:2,index:++n});r.append(h[m],z())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:n}),h+=A.length-1}n++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,n=V(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),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:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let n=O.nextNode(),i=0,a=0,c=o[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(n,n.nextSibling,this,t):c.type===1?l=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(l=new it(n,this,t)),this._$AV.push(l),c=o[++a]}i!==c?.index&&(n=O.nextNode(),i++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},L=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,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),V(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&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=B.createElement(Yt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let n=new st(r,this),i=n.u(this.options);n.p(e),this.T(i),this._$AH=n}}_$AC(t){let e=Kt.get(t.strings);return e===void 0&&Kt.set(t.strings,e=new B(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let n of t)r===e.length?e.push(o=new s(this.O(z()),this.O(z()),this,this.options)):o=e[r],o._$AI(n),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=Vt(t).nextSibling;Vt(t).remove(),t=o}}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,o,r,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let n=this.strings,i=!1;if(n===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=n[0],c=0;c<n.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}i&&!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)}},nt=class extends P{constructor(t,e,o,r,n){super(t,e,o,r,n),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),n&&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)}},it=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Xt={M:_t,P:A,A:At,C:1,L:Zt,R:st,D:Qt,V:S,I:L,H:P,N:rt,U:nt,B:ot,F:it},Ue=bt.litHtmlPolyfillSupport;Ue?.(B,L),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let n=e?.renderBefore??null;o._$litPart$=r=new L(t.insertBefore(z(),n),n,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,E=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}};E._$litElement$=!0,E.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:E});var Re=Ot.litElementPolyfillSupport;Re?.({LitElement:E});(Ot.litElementVersions??=[]).push("4.2.2");var te=new Set,ee;var se=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Ns=(s,t,e,o)=>{let r=se(t);if(o?.once){let i=`${s}${r}${e}`;if(te.has(i))return;te.add(i)}let n;if(o?.detail){n={};for(let[i,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(n,i,{get(){return c.deref()}})}else n[i]=a;ee?.log.interceptors?.forEach(i=>i(s,r,e,n)),console[s](`[${r}]: ${e}`,n)}else ee?.log.interceptors?.forEach(i=>i(s,r,e)),console[s](`[${r}]: ${e}`)},oe=s=>{let t=`[${se(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}};var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},W=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var q=Symbol.for("controller"),Ie=s=>typeof s=="object"&&s!==null&&(q in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ls=s=>typeof s?.then=="function";var F,D=s=>{F!==s&&(F=s,queueMicrotask(()=>F===s?F=void 0:0))},G=s=>F,N=[],re=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},ne=()=>N,U,Us=s=>{U!==s&&(U=s,queueMicrotask(()=>U===s?U=void 0:0))},Me=()=>{let s=U;return U=void 0,s},ie=async(s,t)=>{let e=lt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ae=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=G().manager.X(s);if(e!==void 0)return e;if(Ie(s))return s;let o=Me();if(o!==void 0)return o},ct=!1,Rs=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ce=(s,t)=>{let e=t>ke?je:t/He,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},ke=4e3,je=2e3,He=4;var ze=(s,t,e)=>{let o=Object.keys(s),r=o.length;R===void 0&&queueMicrotask(I),R??=new Map;let n=R.get(s);return n===void 0&&(n={callbacks:[],keyCount:r},R.set(s,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(o)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),R=void 0},Ve=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,n)=>p(t,void 0,e===n?r:void 0)),e},Be=(s=[G(),...ne()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,n=i=>{r-=1,i!==void 0&&(r=Math.min(r,0)),r===0&&t(i)};o.forEach(i=>ze(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of o)if("manager"in i&&i.manager.component===i){Ve(i,a=>n(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(s="",t={},e=G())=>{let o={emit:r=>{s===""&&I();let n=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(n),n}};return s===""&&Be(void 0,r=>s=r.key,o),o},Fe=We.bind(null,""),de;de=q;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#n=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,o=t??G(new.target.name);e.#o=o,e.ready=e.P.promise,e.#a=he(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(re(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#n;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(oe(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(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.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.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.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}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.#n.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#i.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#i.push(r.remove)})}};function le(s){p(s,void 0,this)}var pe=Tt,he=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,n){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,n)}},e=new Proxy(s,t);return e};var{I:qe}=Xt,ue=s=>s;var ht=s=>s.strings===void 0,fe=()=>document.createComment(""),qs=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let n=o.insertBefore(fe(),r),i=o.insertBefore(fe(),r);e=new qe(n,i,s,s.options)}else{let n=e._$AB.nextSibling,i=e._$AM,a=i!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==i._$AU&&e._$AP(c)}if(n!==r||a){let c=e._$AA;for(;c!==n;){let l=ue(c).nextSibling;ue(o).insertBefore(c,r),c=l}}}return e},Gs=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},me=(s,t=Ge)=>s._$AH=t,Ks=s=>s._$AH,Qs=s=>{s._$AR(),s._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=s=>(...t)=>({_$litDirective$:s,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),K(o,t);return!0},dt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},ye=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Je(t)}};function Ke(s){this._$AN!==void 0?(dt(this),this._$AM=s,ye(this)):this._$AM=s}function Qe(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let n=e;n<o.length;n++)K(o[n],!1),dt(o[n]);else o!=null&&(K(o,!1),dt(o));else K(this,s)}var Je=s=>{s.type==y.CHILD&&(s._$AP??=Qe,s._$AQ??=Ke)},pt=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(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 no=()=>new Pt,Pt=class{},St=new WeakMap,Nt=$(class extends pt{render(s){return d}update(s,[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=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.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=s=>s.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var xt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}function Rt(s){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;s.prototype["f"+e]=async function(...o){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:o}))}}}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let i=(r??o??{}).resourcesUrl;i&&s.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,gt=C?.map(([x])=>x),J=class extends Dt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=gt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=s}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ut(t[0])]:t},es=globalThis.HTMLElement??Ut,Dt=class extends es{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(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}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})}static{Rt(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),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,o=e.L,r=this.#e,n=Object.values(t).find(h=>h.L===o),i=`${o}--lazy`,a=n;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=n,customElements.define(i,n)),n.N=this;let l=document.createElement(i);n.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,n){e.setAttribute.call(this.el,r,n)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},t.hasAttribute=function(r){return e.hasAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends pe{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",E.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),D(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=()=>{this.#e.destroy()};this.#t=ce(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.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)}},rs=1e3,yt="autoDestroyDisabled";var ve=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var Ee="important",ns=" !"+Ee,$e=$(class extends g{constructor(s){if(super(s),s.type!==y.ATTRIBUTE||s.name!=="style"||s.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(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let n=typeof r=="string"&&r.endsWith(ns);o.includes("-")||n?e.setProperty(o,n?r.slice(0,-11):r,n?Ee:""):e[o]=r}}return f}});var is=$(class extends g{constructor(s){if(super(s),s.type!==y.PROPERTY&&s.type!==y.ATTRIBUTE&&s.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ht(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===y.PROPERTY){if(t===e[o])return f}else if(s.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===y.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return me(s),t}});var be=class s extends E{constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,n=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==n&&(t.#e=t.shouldUpdate,t.shouldUpdate=n),r&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,n=r?.hasChanged??j,i={attribute:o&1&&typeof t=="string"?ut(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=n(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,o){let r=this.K,n=super.getPropertyDescriptor(t,e,o);return o.d=n,{...n,get(){return r.t?.(this.#t.get(t)),n.get?.call(this)},set(i){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);n.set.call(this,i??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{Rt(this)}#t;#e;#s;#r;#n;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=e;let o=!this.manager.connectedCalled;t&&super.connectedCallback(),o?queueMicrotask(()=>this.#i().catch(r=>{this.#r.reject(r),setTimeout(()=>{throw r})})):e&&this.requestUpdate()}#d(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,n=t??(o===Lt?this.el:this.el.attachShadow(o));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return n}async#i(){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(W(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 0;let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.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.#n?this.#d(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let n=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var Ae=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:e,customElement(r,n){n.K=o,n.L=r,customElements.get(r)||customElements.define(r,n)}};return e(s.defaultAssetPath),o};var Sr=s=>typeof s=="object"&&s!=null?ve(s):s,Pr=s=>typeof s=="object"&&s!=null?$e(s):s;var It=class extends g{#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,Nt(this.#e)):Nt(t)}},Nr=$(It);var Dr=d;var xr=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var Q=Ae({defaultAssetPath:"https://jsdev.arcgis.com/5.1.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:Mr,getAssetPath:kr,setAssetPath:jr}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,re as c,ne as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,Tt as o,Xe as p,y as q,$ as r,g as s,qs as t,Gs as u,me as v,Ks as w,Qs as x,no as y,Nt as z,be as A,Sr as B,Pr as C,Dr as D,xr as E,Q as F,Mr as G,kr as H};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./GXQDCOI4.js";export default $arcgis.t(([,,,,,,,,,,,,,,{ha:i}])=>{var k=o=>o.lineSymbol?.style,x=(o,m)=>{m.lineSymbol??=i(),m.lineSymbol.style=o},D=o=>o.lineSymbol?.width,q=(o,m)=>{m.lineSymbol??=i(),m.lineSymbol.width=o};return{a:k,b:x,c:D,d:q}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",a)
2
+ import a from"./DDTZK4ZS.js";export default $arcgis.t(([,,,,,,,,,,,,,,{ha:i}])=>{var k=o=>o.lineSymbol?.style,x=(o,m)=>{m.lineSymbol??=i(),m.lineSymbol.style=o},D=o=>o.lineSymbol?.width,q=(o,m)=>{m.lineSymbol??=i(),m.lineSymbol.width=o};return{a:k,b:x,c:D,d:q}},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as u}from"./EEBD6KKN.js";import{a as f}from"./MP7HYYJR.js";import a from"./GXQDCOI4.js";import"./Y7IQV44J.js";import"./3ZHL4GR5.js";import"./ETLJKITO.js";import{A as C,B as o,G as g,g as p,i as m,n as i,y as h,z as d}from"./J66D7A5G.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{B:v}])=>{var s={jsAppFlyout:"js-app-flyout",panelChildrenContainer:"panel-children-container"},$=p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,r=class extends C{constructor(){super(...arguments),this._messages=f(),this.popoverElement=h(),this.selectedSliceId="",this.arcgisChartsConfigPopoverClose=i(),this.arcgisChartsConfigSlicesPopoverColorChange=i(),this.arcgisChartsConfigSlicesPopoverNameChange=i()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSliceId:1,placement:1,open:5}}static{this.styles=$}async reposition(){await this.popoverElement.value?.reposition()}updated(){u(this.popoverElement.value,this.open)}sliceNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSlicesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSliceId:this.selectedSliceId})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,l,c]=t,n=v*255;this.selectedColor=[a,l,c,n],this.arcgisChartsConfigSlicesPopoverColorChange.emit({color:[a,l,c,n]})}render(){let e=this.selectedColor!==void 0?[...this.selectedColor]:void 0;return m`<div class=${o({[s.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${d(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${o(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};g("arcgis-charts-config-pie-chart-slices-popover",r);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",a)
2
+ import{b as u}from"./EEBD6KKN.js";import{a as f}from"./4IFQNR3G.js";import a from"./DDTZK4ZS.js";import"./Y7IQV44J.js";import"./2O53DY2A.js";import"./ETLJKITO.js";import{A as C,B as o,G as g,g as p,i as m,n as i,y as h,z as d}from"./HMOVBIG5.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,,,,,,{B:v}])=>{var s={jsAppFlyout:"js-app-flyout",panelChildrenContainer:"panel-children-container"},$=p`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{overflow-y:auto;width:min-content}.panel-children-container{display:flex;padding:0 1rem;margin-top:1rem}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}`,r=class extends C{constructor(){super(...arguments),this._messages=f(),this.popoverElement=h(),this.selectedSliceId="",this.arcgisChartsConfigPopoverClose=i(),this.arcgisChartsConfigSlicesPopoverColorChange=i(),this.arcgisChartsConfigSlicesPopoverNameChange=i()}static{this.properties={messageOverrides:0,referenceElement:0,selectedName:1,selectedColor:0,selectedSliceId:1,placement:1,open:5}}static{this.styles=$}async reposition(){await this.popoverElement.value?.reposition()}updated(){u(this.popoverElement.value,this.open)}sliceNameChange(e){let t=e.target.value;this.selectedName!==t&&(this.selectedName=t,this.arcgisChartsConfigSlicesPopoverNameChange.emit({name:t}))}closePopover(){this.open=!1,this.arcgisChartsConfigPopoverClose.emit({selectedSliceId:this.selectedSliceId})}colorChange(e){let t=e instanceof CustomEvent?e.detail:e,[a,l,c]=t,n=v*255;this.selectedColor=[a,l,c,n],this.arcgisChartsConfigSlicesPopoverColorChange.emit({color:[a,l,c,n]})}render(){let e=this.selectedColor!==void 0?[...this.selectedColor]:void 0;return m`<div class=${o({[s.jsAppFlyout]:!0})}><calcite-popover .referenceElement=${this.referenceElement??document.body} .placement=${this.placement} @calcitePopoverClose=${this.closePopover} .open=${this.open} label auto-close ${d(this.popoverElement)}><calcite-panel .heading=${this._messages.sliceStyle} closable .closed=${!this.open} @calcitePanelClose=${this.closePopover}><div class=${o(s.panelChildrenContainer)}><calcite-label>${this._messages.label}<calcite-input type=text .value=${this.selectedName} @calciteInputInput=${this.sliceNameChange}></calcite-input></calcite-label></div><div class=${o(s.panelChildrenContainer)}><arcgis-charts-config-colors .heading=${this._messages.symbolColor} .rgba=${e} @arcgisColorSelect=${this.colorChange}></arcgis-charts-config-colors></div></calcite-panel></calcite-popover></div>`}};g("arcgis-charts-config-pie-chart-slices-popover",r);return r},"Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","intl",a)