@arcgis/map-components 5.0.3 → 5.0.5

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/{IQJFR3TR.js → 26VRRGUW.js} +1 -1
  2. package/dist/cdn/{YL6LFOI6.js → 2FVZ2L32.js} +1 -1
  3. package/dist/cdn/{UQ75DYBR.js → 2GGAEJNI.js} +1 -1
  4. package/dist/cdn/2QWCB7GX.js +2 -0
  5. package/dist/cdn/{N6EXL5PV.js → 2QWJ2ZHP.js} +1 -1
  6. package/dist/cdn/{ZYW575W2.js → 2RA54D2B.js} +1 -1
  7. package/dist/cdn/2YBKWLT6.js +2 -0
  8. package/dist/cdn/{BXBZ45Z6.js → 3DLW2M43.js} +1 -1
  9. package/dist/cdn/{HJOLEPJQ.js → 3HHVT72L.js} +1 -1
  10. package/dist/cdn/{5TDRJ6BO.js → 3NHT23VJ.js} +1 -1
  11. package/dist/cdn/{KPVOST74.js → 44VMR4JB.js} +1 -1
  12. package/dist/cdn/455CNC2X.js +2 -0
  13. package/dist/cdn/4MMWFGGQ.js +2 -0
  14. package/dist/cdn/{NM2EWCQF.js → 4Q2CQXZM.js} +1 -1
  15. package/dist/cdn/56VJEIND.js +2 -0
  16. package/dist/cdn/5BACVRLF.js +2 -0
  17. package/dist/cdn/5L7UUJ66.js +2 -0
  18. package/dist/cdn/{6DT4W3PN.js → 5MPJ5TRF.js} +1 -1
  19. package/dist/cdn/5NBBZ5WV.js +2 -0
  20. package/dist/cdn/5QH4JWF5.js +2 -0
  21. package/dist/cdn/{6UF3GD42.js → 5U7NIXQ6.js} +1 -1
  22. package/dist/cdn/62OC5IBG.js +2 -0
  23. package/dist/cdn/6E6ZUR66.js +2 -0
  24. package/dist/cdn/6K2ESAWF.js +2 -0
  25. package/dist/cdn/6V3ZKOES.js +2 -0
  26. package/dist/cdn/{DPTX2JAJ.js → 6ZX2WPNN.js} +1 -1
  27. package/dist/cdn/75JRU7XJ.js +2 -0
  28. package/dist/cdn/{ZBZNQJTB.js → 7AGRHMNT.js} +1 -1
  29. package/dist/cdn/{AINOSF34.js → 7DSZFPFQ.js} +1 -1
  30. package/dist/cdn/7WR4XB3L.js +2 -0
  31. package/dist/cdn/{LMO54LM5.js → 7XKRUO3L.js} +1 -1
  32. package/dist/cdn/{XWXDZCHT.js → A2A6CN44.js} +1 -1
  33. package/dist/cdn/ACKNTQRK.js +2 -0
  34. package/dist/cdn/{BLUSCZEI.js → AOEKBWNA.js} +1 -1
  35. package/dist/cdn/{L4TN2JVW.js → APAPCPXT.js} +1 -1
  36. package/dist/cdn/AR44QMUK.js +2 -0
  37. package/dist/cdn/{KUKA64TP.js → AZFKJZ3C.js} +1 -1
  38. package/dist/cdn/{Y5LMOCNV.js → BAKCV4BT.js} +1 -1
  39. package/dist/cdn/{5SQO5LG2.js → C6BRR6HO.js} +1 -1
  40. package/dist/cdn/{OLWVHUY3.js → C6ESN7QO.js} +1 -1
  41. package/dist/cdn/{PGVDMQFL.js → CC4PR3SI.js} +1 -1
  42. package/dist/cdn/CIE5JE3M.js +2 -0
  43. package/dist/cdn/CUOULJK4.js +2 -0
  44. package/dist/cdn/{74VZCYGW.js → CVO6GRJE.js} +1 -1
  45. package/dist/cdn/DGRJQ3VH.js +2 -0
  46. package/dist/cdn/{GCV66L4K.js → DLBLKQYS.js} +1 -1
  47. package/dist/cdn/{HGGPCEHX.js → DORZKGB4.js} +1 -1
  48. package/dist/cdn/{ZAUJLPVR.js → DXTTUW4R.js} +1 -1
  49. package/dist/cdn/{PDWTBEA4.js → E2PRW7I3.js} +1 -1
  50. package/dist/cdn/{ZW3EETDO.js → E3ZQD7XL.js} +1 -1
  51. package/dist/cdn/E7N2OSLX.js +2 -0
  52. package/dist/cdn/{Z6AWAFSU.js → ECCKHLGV.js} +1 -1
  53. package/dist/cdn/{QHHSQ4PK.js → EDIR5P2A.js} +1 -1
  54. package/dist/cdn/EHBJMP6X.js +2 -0
  55. package/dist/cdn/{NG7JSMH7.js → EHG6SCFZ.js} +1 -1
  56. package/dist/cdn/EIKPSSW2.js +2 -0
  57. package/dist/cdn/{KRWHZBRS.js → EOGSQKVI.js} +1 -1
  58. package/dist/cdn/{W5QO26OY.js → EONM4HYL.js} +1 -1
  59. package/dist/cdn/{R4OHHSET.js → EX4MJAID.js} +1 -1
  60. package/dist/cdn/{XZYJEEQN.js → FDIL4ELG.js} +1 -1
  61. package/dist/cdn/FRUEPZ4B.js +2 -0
  62. package/dist/cdn/{CDBZTWVN.js → G3DKNGC5.js} +1 -1
  63. package/dist/cdn/{S3ECVY5S.js → GL4AGX76.js} +1 -1
  64. package/dist/cdn/GNNPY6WD.js +2 -0
  65. package/dist/cdn/{DQVSAW2U.js → GONPBVCY.js} +1 -1
  66. package/dist/cdn/GZ72DRZ2.js +2 -0
  67. package/dist/cdn/{I3VFN634.js → H3WU3CWO.js} +1 -1
  68. package/dist/cdn/HDL5ODBI.js +2 -0
  69. package/dist/cdn/{HXSSXVQK.js → HDQ4SRNQ.js} +1 -1
  70. package/dist/cdn/{MCXOEQ57.js → HPVG2G33.js} +1 -1
  71. package/dist/cdn/{HIUGPCYF.js → HRQLL3UQ.js} +1 -1
  72. package/dist/cdn/{AWW45DN2.js → HTAV4X3L.js} +1 -1
  73. package/dist/cdn/HWGBPD5G.js +2 -0
  74. package/dist/cdn/HZXKATGS.js +2 -0
  75. package/dist/cdn/I5YYZ23M.js +2 -0
  76. package/dist/cdn/{OZI3G6BL.js → IBODWA4K.js} +1 -1
  77. package/dist/cdn/{YAJDGP47.js → IFFOJCJM.js} +1 -1
  78. package/dist/cdn/IJI3KL3X.js +2 -0
  79. package/dist/cdn/{K6ANC3XJ.js → IRGOEAMU.js} +1 -1
  80. package/dist/cdn/{SXE3A52W.js → IVVA3NWA.js} +1 -1
  81. package/dist/cdn/IZ7RGQYP.js +2 -0
  82. package/dist/cdn/J7IUPILV.js +2 -0
  83. package/dist/cdn/{3D4FQXME.js → JDO4ZDWR.js} +1 -1
  84. package/dist/cdn/{MARCV7CJ.js → JG526BSF.js} +1 -1
  85. package/dist/cdn/{GSOYY5SL.js → JLKRZGKU.js} +1 -1
  86. package/dist/cdn/JQFJA2R3.js +2 -0
  87. package/dist/cdn/JX64UKPQ.js +2 -0
  88. package/dist/cdn/{Z2F3JU24.js → KALOND7U.js} +1 -1
  89. package/dist/cdn/KMP45A7X.js +2 -0
  90. package/dist/cdn/KONASQUW.js +2 -0
  91. package/dist/cdn/KTDXN3YM.js +2 -0
  92. package/dist/cdn/{YP7GAJRJ.js → KTZZ6FEB.js} +1 -1
  93. package/dist/cdn/{EFAHD2H7.js → L3R6FYFA.js} +1 -1
  94. package/dist/cdn/L7I3A5GU.js +2 -0
  95. package/dist/cdn/LIH3KD2N.js +2 -0
  96. package/dist/cdn/{BIW4IWVY.js → LNCUA6VO.js} +1 -1
  97. package/dist/cdn/{6RSTA5F2.js → LQJ2NJ7Q.js} +1 -1
  98. package/dist/cdn/{LHLOMM4E.js → LWLYKJEM.js} +1 -1
  99. package/dist/cdn/M5FJVBHY.js +2 -0
  100. package/dist/cdn/{W4GQIU35.js → MAT7KTFT.js} +1 -1
  101. package/dist/cdn/{OGNESIA3.js → MCFGHI5T.js} +1 -1
  102. package/dist/cdn/{G5D3LOP2.js → MDNMH2GD.js} +1 -1
  103. package/dist/cdn/{H57ABA4Z.js → MMQXKWWI.js} +1 -1
  104. package/dist/cdn/{QFO7XK5M.js → MP5XTNII.js} +1 -1
  105. package/dist/cdn/MS2FXMWM.js +2 -0
  106. package/dist/cdn/MT3AIRKP.js +2 -0
  107. package/dist/cdn/{XULFHT6A.js → MWC7VXMT.js} +1 -1
  108. package/dist/cdn/{FZNIZIF6.js → MYY77Q2M.js} +1 -1
  109. package/dist/cdn/{BXS4RT2N.js → N2JCJYCR.js} +1 -1
  110. package/dist/cdn/{R7B5B7QH.js → N3VTGUSB.js} +1 -1
  111. package/dist/cdn/N6XL766F.js +2 -0
  112. package/dist/cdn/{2MK7EZDU.js → NHXJDS4A.js} +1 -1
  113. package/dist/cdn/{ZQF6QJFM.js → NIGGISCR.js} +1 -1
  114. package/dist/cdn/{22G7NCSZ.js → NZKU7MTU.js} +1 -1
  115. package/dist/cdn/{PNVTGMJV.js → OKKARBPJ.js} +1 -1
  116. package/dist/cdn/{T6V66FCM.js → OVAULEST.js} +1 -1
  117. package/dist/cdn/{BCBANHH3.js → OWEQ6PYO.js} +1 -1
  118. package/dist/cdn/P56Q3MNI.js +2 -0
  119. package/dist/cdn/P5Z3VSAL.js +2 -0
  120. package/dist/cdn/PHKNWWES.js +2 -0
  121. package/dist/cdn/PHNAP4HO.js +2 -0
  122. package/dist/cdn/PHNPROZ2.js +2 -0
  123. package/dist/cdn/{ZJH3LOXI.js → PHNSXBYN.js} +1 -1
  124. package/dist/cdn/PNM6EWGT.js +2 -0
  125. package/dist/cdn/{G4D5Q7Q4.js → Q63FZKZF.js} +1 -1
  126. package/dist/cdn/{3XETVG7K.js → QGFESPLP.js} +1 -1
  127. package/dist/cdn/QK6IDWCZ.js +2 -0
  128. package/dist/cdn/{VNKCJQ5W.js → QS2DT6TO.js} +1 -1
  129. package/dist/cdn/{JT77ECX6.js → QVGEZ3ZM.js} +1 -1
  130. package/dist/cdn/{Z4HWMM4S.js → QXCHMTUI.js} +1 -1
  131. package/dist/cdn/{AJN3G2KH.js → QYCOPDMB.js} +1 -1
  132. package/dist/cdn/R45Q5BKQ.js +2 -0
  133. package/dist/cdn/R7GTTNWF.js +2 -0
  134. package/dist/cdn/{PJAPMYAR.js → R7HXZAPP.js} +1 -1
  135. package/dist/cdn/ROC7HOOF.js +2 -0
  136. package/dist/cdn/RV5T6FOK.js +2 -0
  137. package/dist/cdn/{3AEBND6G.js → RZDIAMRJ.js} +1 -1
  138. package/dist/cdn/{A2Z2VCTQ.js → S3YS5TWW.js} +1 -1
  139. package/dist/cdn/{YZNTWZ2C.js → S4SNMYII.js} +1 -1
  140. package/dist/cdn/S5XPO4X3.js +2 -0
  141. package/dist/cdn/SBQPFK7O.js +2 -0
  142. package/dist/cdn/SIR6LQYG.js +2 -0
  143. package/dist/cdn/SIXUBCBZ.js +2 -0
  144. package/dist/cdn/SMBZ4HCK.js +2 -0
  145. package/dist/cdn/SPNOOYWE.js +2 -0
  146. package/dist/cdn/SUH6Q6VA.js +2 -0
  147. package/dist/cdn/{Y3ITJCU6.js → SUWU7QIA.js} +1 -1
  148. package/dist/cdn/{34FSSQXM.js → SVVZAW3N.js} +1 -1
  149. package/dist/cdn/TBFNXPO7.js +2 -0
  150. package/dist/cdn/{DMP23AFX.js → TDNW2OHP.js} +1 -1
  151. package/dist/cdn/TGDMJJCN.js +2 -0
  152. package/dist/cdn/{WYT32WC6.js → TGZLVR52.js} +1 -1
  153. package/dist/cdn/{YKGW52WZ.js → TQGIV3K4.js} +1 -1
  154. package/dist/cdn/TRJHM2AU.js +2 -0
  155. package/dist/cdn/TRO5YRIR.js +2 -0
  156. package/dist/cdn/{U2TK55BA.js → TZOMLSCD.js} +1 -1
  157. package/dist/cdn/{2T7GITCO.js → UC4B5RZR.js} +1 -1
  158. package/dist/cdn/UPL42Z7Y.js +2 -0
  159. package/dist/cdn/{I2DGSPZU.js → USA5BTOC.js} +1 -1
  160. package/dist/cdn/VAX7LMWJ.js +2 -0
  161. package/dist/cdn/VIFT4BU2.js +2 -0
  162. package/dist/cdn/VJ2SE6UE.js +2 -0
  163. package/dist/cdn/{NTORPPUA.js → VORF5SSY.js} +1 -1
  164. package/dist/cdn/VRMHUMSJ.js +2 -0
  165. package/dist/cdn/{GJV2ZQXB.js → W4OZI46N.js} +1 -1
  166. package/dist/cdn/WDGESHIM.js +2 -0
  167. package/dist/cdn/WNTJFIQQ.js +2 -0
  168. package/dist/cdn/WNWFJZWJ.js +2 -0
  169. package/dist/cdn/{CIGSNHL4.js → WU5EH6LB.js} +1 -1
  170. package/dist/cdn/XDJQQXLH.js +2 -0
  171. package/dist/cdn/{EY43UHHH.js → XEDYZ2AY.js} +1 -1
  172. package/dist/cdn/{QTPKQNBY.js → XJZCNL65.js} +1 -1
  173. package/dist/cdn/XQKXDDAR.js +2 -0
  174. package/dist/cdn/{4ODDYEVQ.js → Y66GCVMG.js} +1 -1
  175. package/dist/cdn/{2KVZ36IK.js → YCKXA6G3.js} +1 -1
  176. package/dist/cdn/{BC5WFWRT.js → YOJN3RDZ.js} +1 -1
  177. package/dist/cdn/YQXDHXA6.js +2 -0
  178. package/dist/cdn/{ESBU5JJB.js → ZAWXEB6X.js} +1 -1
  179. package/dist/cdn/{TVJHKOYG.js → ZIFQ2O7M.js} +1 -1
  180. package/dist/cdn/ZIP7A4OP.js +2 -0
  181. package/dist/cdn/ZK47NIZB.js +2 -0
  182. package/dist/cdn/{UGWL3UK4.js → ZTBIXNFX.js} +1 -1
  183. package/dist/cdn/ZUPERN26.js +2 -0
  184. package/dist/cdn/{CWKYAZQO.js → ZWFZY2MA.js} +1 -1
  185. package/dist/cdn/{SY3ONBJT.js → ZY3BVDLT.js} +1 -1
  186. package/dist/cdn/index.js +1 -1
  187. package/dist/chunks/component-utils.js +85 -72
  188. package/dist/chunks/runtime.js +1 -1
  189. package/dist/components/arcgis-features/customElement.d.ts +4 -0
  190. package/dist/components/arcgis-features/customElement.js +38 -37
  191. package/dist/components/arcgis-paste/customElement.js +4 -2
  192. package/dist/components/arcgis-popup/customElement.d.ts +5 -0
  193. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +8 -8
  194. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +9 -5
  195. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  196. package/dist/docs/api.json +1 -1
  197. package/dist/docs/docs.json +1 -1
  198. package/dist/docs/vscode.html-custom-data.json +1 -1
  199. package/dist/docs/web-types.json +1 -1
  200. package/package.json +4 -4
  201. package/dist/cdn/2CPZBOJU.js +0 -2
  202. package/dist/cdn/2FR3RIFL.js +0 -2
  203. package/dist/cdn/37KK4NSD.js +0 -2
  204. package/dist/cdn/3AY6LF2C.js +0 -2
  205. package/dist/cdn/3BLI6P6V.js +0 -2
  206. package/dist/cdn/4AAA22LW.js +0 -2
  207. package/dist/cdn/4PV3WVQG.js +0 -2
  208. package/dist/cdn/5C7TZISA.js +0 -2
  209. package/dist/cdn/5DR2WPE6.js +0 -2
  210. package/dist/cdn/5M2JEZ2R.js +0 -2
  211. package/dist/cdn/5TYQD2XK.js +0 -2
  212. package/dist/cdn/6APGEDF2.js +0 -2
  213. package/dist/cdn/6ILPTKXQ.js +0 -2
  214. package/dist/cdn/74XVTUIU.js +0 -2
  215. package/dist/cdn/74YR2GMG.js +0 -2
  216. package/dist/cdn/7L6MSW52.js +0 -2
  217. package/dist/cdn/7X4MUVGU.js +0 -2
  218. package/dist/cdn/AESYVLNJ.js +0 -2
  219. package/dist/cdn/AH4CQRBT.js +0 -2
  220. package/dist/cdn/AHBILHCV.js +0 -2
  221. package/dist/cdn/AR6UJZIW.js +0 -2
  222. package/dist/cdn/BAS4FDKI.js +0 -2
  223. package/dist/cdn/BIBSQPCZ.js +0 -2
  224. package/dist/cdn/CAO4NHCY.js +0 -2
  225. package/dist/cdn/CHCOWKYJ.js +0 -2
  226. package/dist/cdn/CIEACKVE.js +0 -2
  227. package/dist/cdn/CSDFVDAI.js +0 -2
  228. package/dist/cdn/CUWPSCZM.js +0 -2
  229. package/dist/cdn/CW6ZVLAU.js +0 -2
  230. package/dist/cdn/DI5ZMM6O.js +0 -2
  231. package/dist/cdn/DOXD3QLK.js +0 -2
  232. package/dist/cdn/DSML2TRF.js +0 -2
  233. package/dist/cdn/EBHWWPMA.js +0 -2
  234. package/dist/cdn/EKQKCLSK.js +0 -2
  235. package/dist/cdn/F5SSOC7L.js +0 -2
  236. package/dist/cdn/GN3IL4IJ.js +0 -2
  237. package/dist/cdn/H3DJOS5A.js +0 -2
  238. package/dist/cdn/HHDTGMYM.js +0 -2
  239. package/dist/cdn/I5I7M7RU.js +0 -2
  240. package/dist/cdn/IOHZAH45.js +0 -2
  241. package/dist/cdn/JNB4QSCA.js +0 -2
  242. package/dist/cdn/KA5TVZVJ.js +0 -2
  243. package/dist/cdn/KVWAHPSN.js +0 -2
  244. package/dist/cdn/L2KU7WKA.js +0 -2
  245. package/dist/cdn/L6QXUF7M.js +0 -2
  246. package/dist/cdn/LPY4DF3H.js +0 -2
  247. package/dist/cdn/LWZ5CMKZ.js +0 -2
  248. package/dist/cdn/MCPM6R7G.js +0 -2
  249. package/dist/cdn/N3E4FBLC.js +0 -2
  250. package/dist/cdn/NDSSASAU.js +0 -2
  251. package/dist/cdn/NOJAJCMT.js +0 -2
  252. package/dist/cdn/NQ3XBJM4.js +0 -2
  253. package/dist/cdn/NS4JLBIF.js +0 -2
  254. package/dist/cdn/OBY2INIT.js +0 -2
  255. package/dist/cdn/OLOIDFRG.js +0 -2
  256. package/dist/cdn/OWA5LPNO.js +0 -2
  257. package/dist/cdn/PAWGXUUP.js +0 -2
  258. package/dist/cdn/PGFTFMXL.js +0 -2
  259. package/dist/cdn/PNXUNGMT.js +0 -2
  260. package/dist/cdn/Q5XOXU7U.js +0 -2
  261. package/dist/cdn/RGYU3YRI.js +0 -2
  262. package/dist/cdn/SKZKOJIQ.js +0 -2
  263. package/dist/cdn/SS6STPJ7.js +0 -2
  264. package/dist/cdn/TP3DEPTO.js +0 -2
  265. package/dist/cdn/VF5AR5B7.js +0 -2
  266. package/dist/cdn/WHBMBVAC.js +0 -2
  267. package/dist/cdn/WLXFMXBT.js +0 -2
  268. package/dist/cdn/WTC7UYZ5.js +0 -2
  269. package/dist/cdn/WVNSSDTL.js +0 -2
  270. package/dist/cdn/WW7X6KMT.js +0 -2
  271. package/dist/cdn/XFF27HKM.js +0 -2
  272. package/dist/cdn/XFW2KNNO.js +0 -2
  273. package/dist/cdn/XPUGIMN4.js +0 -2
  274. package/dist/cdn/XWPGW5PP.js +0 -2
  275. package/dist/cdn/XXSD7577.js +0 -2
  276. package/dist/cdn/XZITWYR7.js +0 -2
  277. package/dist/cdn/Y6U3REVL.js +0 -2
  278. package/dist/cdn/Z2PRNIJR.js +0 -2
  279. package/dist/cdn/ZTRYQINY.js +0 -2
  280. package/dist/cdn/ZWQGXYPW.js +0 -2
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import d from"./7AGRHMNT.js";import c from"./JDO4ZDWR.js";import b from"./ACKNTQRK.js";import{g as o}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as t,U as s,a as i,x as r}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([n,,,,a])=>{var d=i`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}.esri-histogram-range-slider{flex-direction:column;width:100%;height:100%;display:flex;position:relative}.esri-histogram-range-slider .esri-slider .esri-slider__label{display:none;top:24px}.esri-histogram-range-slider .esri-slider__anchor--moving .esri-slider__label{display:inline}.esri-histogram-range-slider .esri-slider{font-size:var(--calcite-font-size-sm)}.esri-histogram-range-slider .esri-slider__content{flex-direction:column-reverse;display:flex}.esri-histogram-range-slider .esri-slider__max{text-align:right;position:absolute;bottom:0;right:0}.esri-histogram-range-slider .esri-slider__max .esri-slider__range-input{float:right;text-align:right}.esri-histogram-range-slider .esri-slider__min{text-align:left;position:absolute;bottom:0;left:0}.esri-histogram-range-slider .esri-slider__min .esri-slider__range-input{text-align:left}.esri-histogram-range-slider .esri-slider--horizontal .esri-slider__max,.esri-histogram-range-slider .esri-slider--horizontal .esri-slider__min{min-width:50%;display:inline}.esri-histogram-range-slider .esri-histogram{align-self:flex-end;display:flex}.esri-histogram-range-slider .esri-histogram__bar{touch-action:none}.esri-histogram-range-slider__slider-container{align-self:flex-end;width:100%;margin-bottom:var(--calcite-font-size-xxl)}.esri-histogram-range-slider__histogram-container{flex-grow:1;width:100%;height:100%;min-height:0;display:flex}.esri-histogram-range-slider__range-type--less-than .esri-slider__segment-0,.esri-histogram-range-slider__range-type--at-most .esri-slider__segment-0,.esri-histogram-range-slider__range-type--greater-than .esri-slider__segment-1,.esri-histogram-range-slider__range-type--at-least .esri-slider__segment-1,.esri-histogram-range-slider__range-type--between .esri-slider__segment-1,.esri-histogram-range-slider__range-type--not-between .esri-slider__segment-1{background-color:var(--calcite-color-brand)}`,c=a(n),e=class extends t{constructor(){super(...arguments),this.widget=c(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.average=this.widget.average,this.barCreatedFunction=this.widget.barCreatedFunction,this.bins=this.widget.bins,this.dataLineCreatedFunction=this.widget.dataLineCreatedFunction,this.dataLines=this.widget.dataLines,this.excludedBarColor=this.widget.excludedBarColor,this.icon=this.widget.icon,this.includedBarColor=this.widget.includedBarColor,this.label=this.widget.label,this.labelFormatFunction=this.widget.labelFormatFunction,this.max=this.widget.max,this.min=this.widget.min,this.precision=this.widget.precision,this.rangeType=this.widget.rangeType,this.standardDeviation=this.widget.standardDeviation,this.standardDeviationCount=this.widget.standardDeviationCount,this.state=this.viewModel.state,this.values=this.widget.values,this.arcgisPropertyChange=o()("state"),this.arcgisReady=r()}static{this.properties={autoDestroyDisabled:5,average:9,barCreatedFunction:0,bins:0,dataLineCreatedFunction:0,dataLines:0,excludedBarColor:1,icon:1,includedBarColor:1,label:1,labelFormatFunction:0,max:9,min:9,precision:9,rangeType:1,referenceElement:1,standardDeviation:9,standardDeviationCount:9,state:32,values:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}async generateWhereClause(l){return this.widget.generateWhereClause(l)}};s("arcgis-histogram-range-slider",e);return e},"widgets/HistogramRangeSlider",a,b,c,d)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import h from"./USA5BTOC.js";import g from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as $}from"./LQJ2NJ7Q.js";import"./IVVA3NWA.js";import e from"./MWC7VXMT.js";import{a as k}from"./NIGGISCR.js";import{a as p}from"./DHVEHATY.js";import d from"./JDO4ZDWR.js";import c from"./ACKNTQRK.js";import{g as _}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as m,P as y,R as b,U as w,a as f,b as r,x}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{ignoreAbortErrors:C},{watch:V},G,{property:d,subclass:A},,,,L,,z])=>{var j=f`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.container{display:flex;overflow-y:auto;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`,T=Object.defineProperty,D=Object.getOwnPropertyDescriptor,s=(e,i,t,l)=>{for(var a=l>1?void 0:l?D(i,t):i,n=e.length-1,c;n>=0;n--)(c=e[n])&&(a=(l?c(i,t,a):c(a))||a);return l&&a&&T(i,t,a),a},u=new Set,o=class extends z{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="SliceViewModel is only supported in 3D views."}async pickLayerToExclude(){let e=this.analysisView;if(e){let i=super.start({operation:t=>e.pickLayerToExclude(t),clear:!1});this._excludingLayers=i,i.finally(()=>{this._excludingLayers===i&&(this._excludingLayers=void 0)}),await i.catch()}}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.shape=null}initialize(){u.add(this)}destroy(){u.delete(this)}get state(){return this.disabled||!this.ready?"disabled":this._excludingLayers?"excludingLayer":this.operationState==="active"?"slicing":this.analysis.valid?"sliced":"ready"}get shape(){return this.analysis.shape}set shape(e){this.analysis.shape=e}get tiltEnabled(){return this.analysis.tiltEnabled}set tiltEnabled(e){this.analysis.tiltEnabled=e}get excludedLayers(){return this.analysis.excludedLayers}set excludedLayers(e){this.analysis.excludedLayers=e}get excludeGroundSurface(){return this.analysis.excludeGroundSurface}set excludeGroundSurface(e){this.analysis.excludeGroundSurface=e}async start(){u.forEach(e=>{e.view===this.view&&e!==this&&e.clear()}),await super.start()}onConnectToAnalysisView(e){e.active=!0}constructAnalysis(){return new G}};s([d()],o.prototype,"_excludingLayers",2);s([d({readOnly:!0})],o.prototype,"state",1);s([d()],o.prototype,"shape",1);s([d()],o.prototype,"tiltEnabled",1);s([d()],o.prototype,"excludedLayers",1);s([d()],o.prototype,"excludeGroundSurface",1);o=s([A("esri.components.Slice.SliceViewModel")],o);var P=L(o),h=class extends m{constructor(){super(...arguments),this.viewModel=P(this),this._messages=k(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.excludeGroundSurface=this.viewModel.excludeGroundSurface,this.excludedLayers=this.viewModel.excludedLayers,this.headingLevel=3,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="slice",this.shape=this.viewModel.shape,this.state=this.viewModel.state,this.tiltEnabled=this.viewModel.tiltEnabled,this.arcgisPropertyChange=_()("analysis","state"),this.arcgisReady=x()}static{this.properties={_hasVoxelLayers:16,view:0,analysis:0,autoDestroyDisabled:5,excludeGroundSurface:5,excludedLayers:0,headingLevel:9,hideStartButton:5,hideVisualization:5,icon:3,label:1,messageOverrides:0,referenceElement:1,shape:0,state:32,tiltEnabled:5}}static{this.styles=j}get _hasVoxelLayers(){let i=this.viewModel?.view;return i!=null?i.allLayerViews.some(t=>t.type==="voxel-3d"):!1}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){C(this.viewModel.start())}load(){this.manager.onLifecycle(()=>[V(()=>this._renderContainerNode(),()=>this.requestUpdate())])}render(){return r`<div class=${y({[p.widget]:!0,[p.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){let i=this._messages,{state:t,hideVisualization:l,supported:a}=this.viewModel,n=t==="slicing"||t==="excludingLayer";if(l||!a)return null;a||r`<div class="container"><div class="error"><p>${this._messages.unsupported}</p></div></div>`;let{excludedLayers:c}=this.viewModel,v=this.excludeGroundSurface,M=c.length>0||v,g=t==="disabled";return r`<div class="container"><div class="hint">${t==="excludingLayer"?r`<p class="hint-text">${i.excludeHint}</p>`:null}${t==="slicing"?r`<p class="hint-text">${this._hasVoxelLayers?i.voxelHint:i.hint}</p><p class="hint-text">${i.verticalHint}</p>`:null}</div>${!n&&M?r`<div class="layer-list">${$({class:"layer-list-title",level:this.headingLevel,children:i.excludedLayers})}${B({layers:c.toArray(),excludeGroundSurface:v,onLayerClick:E=>{this.excludedLayers.remove(E)},onGroundClick:()=>{this.excludeGroundSurface=!1},listLabel:i.excludedLayers,layerActionLabel:i.includeLayer,groundItemTitle:i.ground})}</div>`:null}<div class="actions">${!n&&!this.hideStartButton?r`<calcite-button class="new-slice-button" .disabled=${g} @click=${this.start}>${i.newSlice}</calcite-button>`:null}${t==="sliced"?r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g} @click=${()=>this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>`:null}${t==="excludingLayer"?r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${()=>this.viewModel.stop()}>${i.cancel}</calcite-button>`:null}</div></div>`}};function S(e){return r`<calcite-list-item class="layer-item" data-testid=${`list-item-${e.uid}`} .label=${e.title??""}><calcite-action icon=x @click=${e.onClick} slot=actions-end .text=${e.actionLabel} title=${e.actionLabel??b}></calcite-action></calcite-list-item>`}function B(e){let i=e.layers.map(t=>S({uid:t.uid,title:t.title??"",onClick:()=>e.onLayerClick(t),actionLabel:e.layerActionLabel}));return e.excludeGroundSurface&&i.push(S({uid:"ground",title:e.groundItemTitle,onClick:e.onGroundClick,actionLabel:e.layerActionLabel})),r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`}w("arcgis-slice",h);return h},"core/promiseUtils","core/reactiveUtils","analysis/SliceAnalysis","core/accessorSupport/decorators",a,c,d,e,g,h)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import i from"./2RA54D2B.js";import h from"./W4OZI46N.js";import"./MATFNQVX.js";import{a as C}from"./TZOMLSCD.js";import g from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import"./IVVA3NWA.js";import f from"./MWC7VXMT.js";import{a as D}from"./NIGGISCR.js";import e from"./JDO4ZDWR.js";import d from"./ACKNTQRK.js";import{g as V}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import{b}from"./ZNBKMZP7.js";import{M as w,N as v,O as I,P as F,R as c,S as T,U as k,a as y,b as s,x as _}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([j,{substitute:h,formatNumber:$},{watch:u},{stripHTML:A},L,{renderingSanitizer:P},{initializeProjection:K},,,,E,,{d:N},{a:O,d:B,e:R}])=>{var G=y`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`;function W(d){switch(d?.type){case"point":return d;case"extent":return d.center;case"polygon":return d.centroid;case"multipoint":case"polyline":return d.extent?.center;default:return null}}var M=O.clone();function X(d){return d?.declaredClass.startsWith("esri.layers.")??!1}var J=E(j),x=class extends I{constructor(){super(...arguments),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=w(),this._featureMenuViewportNode=w(),this._actionBarMenuNode=w(),this._flowContainerNode=w(),this.messages=D(),this._selectedFeatureComponent=w(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this._openRelatedFeatureAbortController=null,this.flowItems=new L,this.viewModel=J(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new L,this.heading=this.viewModel.title,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSpinner=!1,this.hideContent=!1,this.hideExpressionContent=!1,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.open=this.viewModel.visible,this.promises=this.viewModel.promises,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=V()("active","collapsed","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=_(),this.arcgisClose=_(),this.arcgisTriggerAction=_()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,collapsed:5,content:1,defaultPopupTemplateEnabled:5,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureViewModelAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,promises:0,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=G}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get chartAnimationDisabled(){return!(this.viewModel.featureViewModelAbilities?.chartAnimation??!0)}set chartAnimationDisabled(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.chartAnimation=!e}get hideAttachmentsContent(){return!(this.viewModel.featureViewModelAbilities?.attachmentsContent??!0)}set hideAttachmentsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.attachmentsContent=!e}get hideCustomContent(){return!(this.viewModel.featureViewModelAbilities?.customContent??!0)}set hideCustomContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.customContent=!e}get hideFieldsContent(){return!(this.viewModel.featureViewModelAbilities?.fieldsContent??!0)}set hideFieldsContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.fieldsContent=!e}get hideMediaContent(){return!(this.viewModel.featureViewModelAbilities?.mediaContent??!0)}set hideMediaContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.mediaContent=!e}get hideRelationshipContent(){return!(this.viewModel.featureViewModelAbilities?.relationshipContent??!0)}set hideRelationshipContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.relationshipContent=!e}get hideTextContent(){return!(this.viewModel.featureViewModelAbilities?.textContent??!0)}set hideTextContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.textContent=!e}get hideUtilityNetworkContent(){return!(this.viewModel.featureViewModelAbilities?.utilityNetworkAssociationsContent??!0)}set hideUtilityNetworkContent(e){this.viewModel.featureViewModelAbilities??={},this.viewModel.featureViewModelAbilities.utilityNetworkAssociationsContent=!e}get selectedDrillInFeature(){let e=Array.from(this.flowItems).at(-1);return e&&"graphic"in e?e.graphic??null:null}get selectedFeatureComponent(){return this._selectedFeatureComponent.value??null}async clear(){return this.viewModel.clear()}async close(){this.open=!1}async destroy(){await this.manager.destroy(),await this._destroySpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let i=new AbortController,{signal:n}=i;if(this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await K(this.location.spatialReference,this.view.spatialReference,null,{signal:n}),e=this.view.toScreen(this.location)??void 0),!e)return;let a=await this.viewModel.fetchFeatures(e,{signal:n,...t});this.location=a.location,this.promises=a.pendingFeatures}async next(){return this.viewModel.next()}async previous(){return this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await R(e,this.viewModel)}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),u(()=>this.viewModel?.view,()=>this._viewChange()),u(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),u(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),u(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),u(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),u(()=>this.referenceElement,(e,t)=>{this._destroySpinner(t),this._createSpinner()},{initial:!0}),u(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.view],()=>void this._createSpinner(),{initial:!0})])}_cancelFetchingFeatures(){this._fetchFeaturesController?.abort(),this._fetchFeaturesController=null}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(i=>{let n=i?.graphic;if(!n)return;let a=N(n),o=X(a)?a:null,l=t.get(o)??[];t.set(o,[...l,i])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;this._openRelatedFeatureAbortController=t,await e.updateGeometry();let i=e.graphic,n=i?.geometry;if(n==null||i==null)return;this._removeFlowItems(),await this.viewModel.zoomTo({target:n});let a=W(n);a!=null&&(this.location=a),this.features=[i],this.open=!0,await this.setFocus(),this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null)}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:i}=this,{id:n}=e,a=i?.attributes,o=e.title??"",l=n==="zoom-to-feature"?h(o,{messages:t}):n==="remove-selected-feature"?h(o,{messages:t}):n==="zoom-to-clustered-features"?h(o,{messages:t}):n==="browse-clustered-features"?h(o,{messages:t}):e.title;return l&&a?h(l,a):l??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:n}=this.viewModel;n||!i||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(){this.viewModel.clear(),this.open=!1}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){this.flowItems.removeAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()}_getHeading(){let{hideHeading:e}=this,{title:t,selectedFeatureViewModel:i}=this.viewModel;return i&&!e?i?.state==="error"?this.messages?.errorMessage??"":i?.title||"":!e&&t?t:""}async _destroySpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl)}async _createSpinner(){let e=this.referenceElement;e&&(await this._destroySpinner(e),this._spinnerEl=T(s`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel?.waitingForResult} .location=${this.viewModel?.location??void 0} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return s`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?s`<div class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?s`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:n}=t;return s`<div class="pagination-text">${h(e.pageText??"",{index:$(n+1),total:$(i)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:n,pendingPromisesCount:a}=t;return s`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${a>0} @click=${this._handlePaginationMenuButton} .text=${h(e.pageText??"",{index:$(n+1),total:$(i)})} text-enabled title=${e.selectFeature??c}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return s`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} .text=${e??""} title=${e??""??c}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} .text=${t??""} title=${t??""??c}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:i,featureViewModels:n}=this.viewModel,a=e===i,o=n.indexOf(e);return s`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${a} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(P.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?s`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),n=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?s`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${n}>${Array.from(i.keys(),a=>{let o=i.get(a)?.map(r=>this._renderFeatureMenuItem(r)),l=a?a.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&l!==null?C(a??"map-graphics",s`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?s`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??c}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:i,_collapseEnabled:n,featureNavigationTop:a,flowItems:o,initialDisplayMode:l,selectedFeature:r,featureMenuOpen:p}=this,{active:g}=this.viewModel,f=this._getHeading();if(l==="list"&&!r)return null;let m=o.length===0&&(l==="list"?!!r:!p);return s`<calcite-flow-item class=${F(b({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!t} .closed=${!g} .collapsed=${i} .collapseDirection=${a?"down":"up"} .collapsible=${n} .headingLevel=${e} .selected=${m} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${A(f)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${F(b("container","content-container"))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:n,initialDisplayMode:a,featureMenuOpen:o,selectedFeature:l,_collapseEnabled:r,_isCollapsed:p,featureNavigationTop:g,headingLevel:f}=this,{active:m,featureViewModels:H,pendingPromisesCount:S}=e,z=i??n.selectFeature;if(a==="feature"&&!o)return null;let U=a==="list"?!l:o;return s`<calcite-flow-item class=${F(b({"flow-item-collapsed":p}))} .closable=${a==="list"&&!t} .closed=${!m} .collapsed=${a==="list"&&p} .collapseDirection=${g?"down":"up"} .collapsible=${a==="list"&&r} .description=${this.hideFeatureMenuHeading?void 0:h(n.total??"",{total:H.length})} .heading=${this.hideFeatureMenuHeading?void 0:z} .headingLevel=${f} .loading=${e.waitingForContents} .selected=${U} @calciteFlowItemBack=${Z=>{Z.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${a==="list"?this._renderHeaderActions():null}${S>0?s`<calcite-loader class="loader" inline .label=${n.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${v(this._featureMenuIntersectionObserverCreated)}></div>${a==="feature"?s`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${n.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:i,hideCloseButton:n,active:a}=this,o="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,l=e.flowType==="feature-association",r=i.returnToInitialFeature??"",p=i?.selectFeature,g=this._getActionTitle(M),f=l&&o;return s`<calcite-flow-item .closable=${!n} .closed=${!a} .description=${A(this._getDrillInFlowItemDescription(e)??"")} .heading=${this.hideHeading?void 0:A(e.heading??"")} .selected=${t} @calciteFlowItemBack=${m=>{m.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${r??""} title=${r??""??c}></calcite-action>${o?s`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${p??""} title=${p??c}></calcite-action>`:null}${f?s`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon??void 0} .loading=${M.active} scale=s text-enabled .text=${g} title=${g??c} @click=${()=>B(this.viewModel,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((n,a)=>this._renderFlowItem(n,this.initialDisplayMode==="list"||!this.featureMenuOpen&&a===e.length-1)),i=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return s`<calcite-flow ${v(this._flowContainerNode)}>${i}</calcite-flow>`}_renderActionBar(){let e=this.viewModel.selectedFeatureViewModel?.isFeatureFromTable&&!this.location?this.viewModel.allActions.filter(t=>t.id!==M.id):this.viewModel.allActions;return!this._isCollapsed&&!this.hideActionBar&&e.length?s`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>`:null}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return s`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??c} .hidden=${!e.visible} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?C(t,s`<arcgis-feature .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${v(this._selectedFeatureComponent)}></arcgis-feature>`):typeof e=="string"?C(e,s`<div .innerHTML=${P.sanitize(e)??""}></div>`):e??null}};k("arcgis-features",x);return x},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils","applications/Components/featureUtils",a,d,e,f,g,h,i)
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/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,gt=Symbol(),Mt=new WeakMap,k=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let 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}},It=s=>new k(typeof s=="string"?s:s+"",void 0,gt),vt=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,i)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[i+1],s[0]);return new k(e,s,gt)},kt=(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 It(e)})(s):s;var{is:_e,defineProperty:Ae,getOwnPropertyDescriptor:Ce,getOwnPropertyNames:we,getOwnPropertySymbols:Oe,getPrototypeOf:Te}=Object,tt=globalThis,jt=tt.trustedTypes,Se=jt?jt.emptyScript:"",Pe=tt.reactiveElementPolyfillSupport,j=(s,t)=>s,X={toAttribute(s,t){switch(t){case Boolean:s=s?Se: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}},H=(s,t)=>!_e(s,t),Ht={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ht){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&&Ae(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:i}=Ce(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,o=[...we(e),...Oe(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 kt(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 i=(o.converter?.toAttribute!==void 0?o.converter:X).toAttribute(e,o.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=o.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),o??=n.getPropertyOptions(t),!((o.hasChanged??H)(i,e)||o.useDefault&&o.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:i},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||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,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,i]of o){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(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"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Pe?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,zt=s=>s,et=bt.trustedTypes,Vt=et?et.createPolicy("lit-html",{createHTML:s=>s}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+A,Ne=`<${At}>`,T=document,V=()=>T.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Kt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",$t=`[
3
3
  \f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Wt=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(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 y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let 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,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(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 i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}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++}},U=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),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),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=zt(t).nextSibling;zt(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,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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 i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,i){super(t,e,o,r,i),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,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,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)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=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},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=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})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(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,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){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,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=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{I:qe}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),to=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},eo=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,so=s=>s._$AH,oo=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(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===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=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),Ye(t)}};function Qe(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Je(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 i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(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 $o=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{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 Dt=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(){}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(ts):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ht(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=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})}#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=Dt(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,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(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,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ae(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 ge=E(class extends v{constructor(s){if(super(s),s.type!==m.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 ve="important",is=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.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 i=typeof r=="string"&&r.endsWith(is);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=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!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),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,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(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=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let 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.#i?this.#c(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 i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://js.arcgis.com/5.0.3/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Xe as C,m as D,E,v as F,to as G,eo as H,fe as I,so as J,oo as K,Ke as L,$o as M,Nt as N,$e as O,Lr as P,Ur as Q,Mr as R,Ir as S,J as T,Br as U,Wr as V};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(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 y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let 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,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(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 i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}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++}},U=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),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),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=zt(t).nextSibling;zt(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,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,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 i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,i){super(t,e,o,r,i),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,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,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)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=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},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=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})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(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,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){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,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=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{I:qe}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),to=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},eo=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,so=s=>s._$AH,oo=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(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===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=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),Ye(t)}};function Qe(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Je(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 i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(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 $o=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{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 Dt=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(){}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(ts):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ht(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=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})}#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=Dt(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,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(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,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ae(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 ge=E(class extends v{constructor(s){if(super(s),s.type!==m.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 ve="important",is=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.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 i=typeof r=="string"&&r.endsWith(is);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=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!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),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,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(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=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){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 "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let 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.#i?this.#c(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 i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://js.arcgis.com/5.0.5/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Xe as C,m as D,E,v as F,to as G,eo as H,fe as I,so as J,oo as K,Ke as L,$o as M,Nt as N,$e as O,Lr as P,Ur as Q,Mr as R,Ir as S,J as T,Br as U,Wr as V};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as F}from"./72K7GT6K.js";import{a as A}from"./U2TK55BA.js";import{O as T,S as q,U as S,a as v,b as p}from"./Y3ITJCU6.js";import"./ALDX5YZO.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},f,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:o,_queryAbortController:i,_queryFeatureCountAbortController:a,_queryPageAbortController:c,associationTypes:l}=this;return a||t&&!o?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o);return await t.queryFeatureCount({where:a,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,o,i){if(!e.length)return 0;let a=await this._findLayersBySourceId(t);await this._loadLayers(a);let c=a.map(l=>this._countAssociatedFeatureCount(l,e,s,o,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,o,i){if(!t.length)return[];let a=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,o,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=a.get(y)??[];w.push(n),a.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=a.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},o=t.fromNetworkElement,i=t.toNetworkElement,a=e.fromNetworkElement,c=e.toNetworkElement,l=s(o,a),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let o=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o),a=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o);return i.concat(a).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,o){let i=t.globalIdField,a=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=o!=null,d=i?M.sqlIn(i,e):null,u=l?`(${a?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${o})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let o="displayField"in s?s.displayField:null,i=o!=null?e[o.toString()]:null,a=i!=null?i.toString():null,c=t.getObjectId()?.toString();return a||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=o=>{if("layerId"in o&&e.isUtilityLayer(o)){let i=o.layerId!=null?e.getSourceIdByLayerId(o.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:o,associationTypes:i,_utilityNetwork:a,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),a?.load()]),!c||!s||!i||!a)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===o?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:o,_utilityNetwork:i,_canQuery:a}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!a||!e||!o||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;o.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;o.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=o.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o),c=new x({where:a,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(o=>{let i=(o?.feature).sourceLayer;D(s,i,()=>new f).add(o)});for(let[o,i]of s)this._sortFeatureObjectsByTitle(i),e.set(o,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,a)=>{let c=this._associationFeatures.get(a);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(a))}):(i.removeAll(),this._associationViewModels.delete(a))});let{map:t,view:e,spatialReference:s,timeZone:o}=this;this._associationFeatures.forEach((i,a)=>{let c=this._associationViewModels.get(a)||new f;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:o,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(a,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:o}=t,i=s.get(e)?.associatedNetworkSourceId,a=this._networkSourceIdsInUse.has(o);return i!=null&&i!==o||!a}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,o=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${o}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
2
+ import{a as F}from"./72K7GT6K.js";import{a as A}from"./TZOMLSCD.js";import{O as T,S as q,U as S,a as v,b as p}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},f,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:o,_queryAbortController:i,_queryFeatureCountAbortController:a,_queryPageAbortController:c,associationTypes:l}=this;return a||t&&!o?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o);return await t.queryFeatureCount({where:a,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,o,i){if(!e.length)return 0;let a=await this._findLayersBySourceId(t);await this._loadLayers(a);let c=a.map(l=>this._countAssociatedFeatureCount(l,e,s,o,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,o,i){if(!t.length)return[];let a=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,o,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=a.get(y)??[];w.push(n),a.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=a.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},o=t.fromNetworkElement,i=t.toNetworkElement,a=e.fromNetworkElement,c=e.toNetworkElement,l=s(o,a),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let o=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o),a=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o);return i.concat(a).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,o){let i=t.globalIdField,a=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=o!=null,d=i?M.sqlIn(i,e):null,u=l?`(${a?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${o})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let o="displayField"in s?s.displayField:null,i=o!=null?e[o.toString()]:null,a=i!=null?i.toString():null,c=t.getObjectId()?.toString();return a||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=o=>{if("layerId"in o&&e.isUtilityLayer(o)){let i=o.layerId!=null?e.getSourceIdByLayerId(o.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:o,associationTypes:i,_utilityNetwork:a,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),a?.load()]),!c||!s||!i||!a)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===o?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:o,_utilityNetwork:i,_canQuery:a}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!a||!e||!o||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;o.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;o.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=o.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o),c=new x({where:a,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(o=>{let i=(o?.feature).sourceLayer;D(s,i,()=>new f).add(o)});for(let[o,i]of s)this._sortFeatureObjectsByTitle(i),e.set(o,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,a)=>{let c=this._associationFeatures.get(a);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(a))}):(i.removeAll(),this._associationViewModels.delete(a))});let{map:t,view:e,spatialReference:s,timeZone:o}=this;this._associationFeatures.forEach((i,a)=>{let c=this._associationViewModels.get(a)||new f;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:o,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(a,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:o}=t,i=s.get(e)?.associatedNetworkSourceId,a=this._networkSourceIdsInUse.has(o);return i!=null&&i!==o||!a}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,o=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${o}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import e from"./MWC7VXMT.js";import{a as T}from"./NIGGISCR.js";import d from"./JDO4ZDWR.js";import c from"./ACKNTQRK.js";import{g as z}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import{b as f}from"./ZNBKMZP7.js";import{M as _,N as k,O as C,P as u,R as n,U as $,a as y,b as s,q as b,x as v}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{hasDisplayProperties:m},V,F,L,,,,I])=>{var S=y`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"+";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:inherit}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:inherit}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--coordinate-conversion-width: 425px;--coordinate-font-size: var(--calcite-font-size-sm);--alert-width: 225px;--arcgis-internal-coordinate-conversion-flex-direction: column;width:var(--coordinate-conversion-width)}.no-basemap{padding:var(--calcite-spacing-xxs)}.root{background-color:var(--calcite-color-foreground-1);position:relative}.conversions-view{display:flex;flex-direction:var(--arcgis-internal-coordinate-conversion-flex-direction);background-color:var(--calcite-color-foreground-1)}.conversion-list{flex-direction:var(--arcgis-internal-coordinate-conversion-flex-direction)}.conversions-view.expand-down{display:flex;flex-direction:column}.conversions-view.expand-down .conversion-list{flex-direction:column}.conversions-view.expand-up{display:flex;flex-direction:column-reverse}.conversions-view.expand-up .conversion-list{flex-direction:column-reverse}.conversion-list{display:flex;padding-left:0;margin:0}.tool-display{list-style:none;display:flex;margin:0;padding:0;font-size:var(--calcite-font-size-sm)}.conversion-row{padding:0 var(--esri-widget-padding-y);justify-content:space-between;align-items:center;display:flex}.conversion-row:hover .copy-button{display:block}.conversions-view{padding:var(--arcgis-internal-padding-md)}.coordinate-display{font-size:var(--coordinate-font-size);word-break:break-word;word-wrap:break-word;direction:ltr;flex:auto;display:flex;align-items:center;padding-left:var(--calcite-spacing-sm);min-height:var(--calcite-spacing-xxxl)}.coordinate-display:hover{background:var(--calcite-color-transparent-hover)}.copy-button{display:none}.row-select{width:5rem;flex-shrink:0;text-align-last:center}.section-heading{display:flex;align-items:center;background-color:var(--calcite-color-background);width:100%;height:var(--calcite-size-fixed-xxxl)}.section-title{margin:0 auto!important}.input-form-group{display:flex;align-items:center;justify-content:space-between;margin:var(--calcite-spacing-md) auto var(--calcite-spacing-md) auto;width:80%}.input-form{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.coordinate-input{flex:1;margin:0;font-size:var(--coordinate-font-size)}.settings{display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1)}.settings-form-group{display:flex;flex-direction:column;align-items:center;width:60%}.settings-form-group-horizontal{display:flex;position:relative;flex-direction:row;width:100%}.settings-form-group-first{margin-top:var(--calcite-spacing-sm)}.settings-form-group:last-child{width:100%;text-align:center}.preview-coordinate{min-height:var(--calcite-spacing-xl)}`,D=2500,E=1e3,A=new V({x:0,y:0}),d={chevronDown:"chevron-down",chevronUp:"chevron-up",copy:"copy",pinTear:"pin-tear",pinTearF:"pin-tear-f",arrowLeft:"arrow-left",refresh:"refresh"},O=I(L),w=class extends C{constructor(){super(...arguments),this.alertTimer=-1,this.messages=T(),this._coordinateInput=_(),this._currentView="conversions",this._multipleConversionsDisabled=!1,this.viewModel=O(this),this.clearAlertTimeout=()=>{window.clearTimeout(this.alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.invalidInput=!1,this.goToEnabled=!1,this.inputFormat=null,this.previewConversion=null,this.settingsFormat=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.expanded=!1,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureButton=!1,this.hideInputButton=!1,this.hideExpandButton=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages?.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.orientation="auto",this.state=this.viewModel.state,this.storageDisabled=this.viewModel.storageEnabled,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=z()("currentLocation","state","expanded","mode"),this.arcgisReady=v()}static{this.properties={alertProperties:16,invalidInput:16,currentView:16,goToEnabled:16,inputFormat:16,previewConversion:16,settingsFormat:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,expanded:7,formats:0,goToOverride:0,headingLevel:9,hideCaptureButton:7,hideInputButton:7,hideExpandButton:7,hideSettingsButton:7,icon:1,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,orientation:3,referenceElement:1,state:32,storageDisabled:7,storageType:1}}static{this.styles=S}get currentView(){return this._currentView}set currentView(e){e!=="conversions"?this.viewModel.pause():this.viewModel.resume(),e==="settings"&&this.setPreviewConversion(),this._currentView=e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&(this.expanded=!1,this.conversions.splice(1,this.conversions.length-1)),this._multipleConversionsDisabled=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}addConversion(e){let i=e.target,t=i.selectedOption.value,o=U(i);if(t==null||o==null)return;let r=new F({format:t});i.value="default",o>=0?(this.conversions.removeAt(o),this.conversions.add(r,o)):this.conversions.add(r),this.arcgisConversionChange.emit()}async copyToClipboard(e){e&&(e=e.replace(/‎/gu,""),await navigator.clipboard.writeText(e),this.showAlertMessage(null,this.messages.copySuccessMessage,"success",E))}findSettingsFormat(){return this.settingsFormat||this.conversions.reduceRight((e,i)=>{let t=i.format;return t&&m(t)?t:e},null)||this.formats.find(e=>m(e))||null}getId(e){return`arcgis-coordinate-conversion-${e}`}async processUserInput(e,i){let{viewModel:t}=this;try{let o=await this._reverseConvert(e,i);if(!o)throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=o??void 0,t.setLocation(o),this.currentView="conversions",this._coordinateInput.value&&(this._coordinateInput.value.value="")}catch(o){b(this)(o),this.showAlertMessage(null,this.messages?.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let t=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;if(!t||!o)return;await this.processUserInput(o,t)}else this.invalidInput=!1}async processUserMouseInput(){let e=this.inputFormat||this.conversions.at(0)?.format,i=this._coordinateInput.value?.value;!e||!i||await this.processUserInput(i,e)}removeConversion(e){this.conversions.remove(e),this.arcgisConversionChange.emit()}async _reverseConvert(e,i){let t=this.viewModel,o=await i.reverseConvert(e);return this.goToEnabled&&o&&t.goToLocation(o).catch(r=>{b(this)(r),this.showAlertMessage(null,this.messages?.locationOffBasemap,"warning")}),o}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!=null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let t=this.conversions.find(o=>o.format===e);this.previewConversion=new F({format:e,position:{location:this.currentLocation,coordinate:t?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??A)}}setSettingsFormat(e){let i=e.target.selectedOption.value;i!=null&&(this.settingsFormat=i,this.setPreviewConversion())}showAlertMessage(e,i,t,o=D){this.alertProperties={...this.alertProperties,title:e,message:i,kind:t,open:!0},window.clearTimeout(this.alertTimer),this.alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},o)}toggleGoTo(){this.goToEnabled=!this.goToEnabled}toggleMode(){this.mode=this.mode==="live"?"capture":"live"}updateCurrentPattern(e){e.stopPropagation();let i=e.target,t=this.findSettingsFormat();t&&(t.currentPattern=i.value)}render(){let{currentView:e,headingLevel:i,messages:t}=this,o,r;return this.viewModel.state==="disabled"||e==="no-basemap"?o=this.renderNoBasemapView():e==="coordinate-input"?(r=t.inputCoordTitle,o=this.renderCoordinateInputView()):e==="settings"?(r=t.settingsTitle,o=this.renderSettingsView()):o=this.renderConversionsView(),s`<calcite-panel class="root" .heading=${r} .headingLevel=${i} scale=s>${o}${this.renderAlert()}</calcite-panel>`}renderAlert(){let{messages:e}=this,{open:i,message:t,title:o,kind:r}=this.alertProperties;return s`<calcite-alert class="alert" .open=${i} scale=s .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} slot=alerts>${o?s`<div slot=title>${o}</div>`:null}${t?s`<div slot=message>${t}</div>`:null}</calcite-alert>`}renderConversionOptions(e,i,t){let o=this.conversions.at(0),r=o?.format?.name;return e.map((c,l)=>{let a=i??!o?!1:r===c.name||this.conversions.map(h=>h.format?.name).includes(c.name);return s`<calcite-option .disabled=${a} .label=${c.label.toUpperCase()} .selected=${l===t} .value=${c}>${c.label}</calcite-option>`})}renderConversionView(e,i){let{messages:t}=this,{format:o}=e,r=o?.label??"",c=i===0,l=this.getId(`list-item-${i}`),a=t.conversionOutput.replace("{format name}",r),h=c||this.expanded,p=c?this.renderFirstConversionTools(e):this.renderTools(e,l),g=c&&!e.displayCoordinate?t.noLocation:e.displayCoordinate,M=s`<div aria-label=${g??n} class="coordinate-display" data-conversion=${e??n} tabindex=0 title=${g??""??n}>${g}</div>`,B=this.renderConversionOptions(this.formats.filter(P=>P!==o));return h?s`<li aria-label=${a??n} class="conversion-row" id=${l??n} tabindex=0><calcite-select aria-controls=${l??n} class="row-select" data-index=${String(i)??n} .label=${t.selectFormat??""} scale=s @calciteSelectChange=${this.addConversion}><calcite-option .label=${r.toUpperCase()} selected>${r.toUpperCase()}</calcite-option>${B}</calcite-select>${M}${p}</li>`:null}renderConversionsView(){let{messages:e}=this,i=this.viewModel.conversions.map(this.renderConversionView.bind(this)),t=this.getId("conversion-list"),o=this.expanded?s`<div class="conversion-row"><calcite-select aria-controls=${t??n} data-index=-1 .label=${e.addConversion} scale=s @calciteSelectChange=${this.addConversion} title=${e.addConversion??n}><calcite-option disabled selected value=default>${e.addConversion}</calcite-option>${this.renderConversionOptions(this.formats)}</calcite-select>${this.renderPrimaryTools()}</div>`:null,r={"expand-up":this.orientation==="expand-up","expand-down":this.orientation==="expand-down"};return s`<div class=${u(f("conversions-view",r))}><ul aria-expanded=${this.expanded??n} class="conversion-list" id=${t??n}>${i}</ul>${o}</div>`}renderCoordinateInputView(){let e=this.inputFormat??this.conversions.at(0)?.format,i=this.formats.findIndex(c=>c.name===e?.name),t=this.getId("coordinate-input"),o=this.renderConversionOptions(this.formats,!1,i),{messages:r}=this;return r?[s`<calcite-action .icon=${d.arrowLeft} @click=${()=>this.currentView="conversions"} .text=${r.back} slot=header-actions-start></calcite-action>`,s`<div class="input-form" role=search><div class="input-form-group"><calcite-select aria-controls=${t??n} class="input-select" .label=${r.selectFormat} scale=s @calciteSelectChange=${this.setInputFormat}>${o}</calcite-select><calcite-input class="coordinate-input" data-format=${e??n} id=${t??n} @keydown=${this.processUserKeyboardInput} .placeholder=${r.inputCoordTitle} required scale=s .status=${this.invalidInput?"invalid":"idle"} ${k(this._coordinateInput)}></calcite-input></div><div class="input-form-group"><calcite-label layout=inline scale=s><calcite-checkbox .checked=${this.goToEnabled} @calciteCheckboxChange=${this.toggleGoTo}></calcite-checkbox>${r.goTo}</calcite-label><calcite-button appearance=outline kind=neutral @click=${this.processUserMouseInput} type=button width=auto>${r.convert}</calcite-button></div></div>`]:null}renderCopyButton(e){let{messages:i}=this;return this.renderIconButton({iconType:d.copy,clickFunction:()=>this.copyToClipboard(e.displayCoordinate),buttonClasses:["copy-button"],ariaLabel:i.copy,title:i.copy})}renderFirstConversionTools(e){let{messages:i,multipleConversionsDisabled:t,hideCaptureButton:o,hideExpandButton:r}=this;if(!i)return null;let c=this.mode==="live"?i.captureMode:i.liveMode,l=this.expanded?i.collapse:i.expand,a=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,h=!t&&!r?this.renderIconButton({iconType:this.expanded?d.chevronDown:d.chevronUp,clickFunction:()=>{this.expanded=!this.expanded},ariaControls:this.getId("conversion-list"),label:l,title:l}):null,p=t&&!o?this.renderIconButton({iconType:this.mode==="live"?d.pinTear:d.pinTearF,clickFunction:this.toggleMode,label:c,title:c}):null;return s`<ul class="tool-display"><li>${a}</li><li>${h}</li><li>${p}</li></ul>`}renderIconButton(e){let{iconType:i,clickFunction:t,buttonClasses:o,ariaLabel:r,ariaControls:c,label:l,flipRtl:a,title:h}=e;return s`<calcite-button appearance=transparent aria-label=${r??n} aria-controls=${c??n} class=${u(f(o))} .iconFlipRtl=${a?"start":void 0} .iconStart=${i} kind=neutral .label=${l} @click=${t} title=${h??n}></calcite-button>`}renderNoBasemapView(){return s`<div class="no-basemap">${this.messages.noBasemap}</div>`}renderPrimaryTools(){let{messages:e,hideInputButton:i,hideCaptureButton:t,hideSettingsButton:o}=this;if(!e)return null;let r=this.mode==="live"?e.captureMode:e.liveMode,c=i?null:this.renderIconButton({iconType:"pencil",clickFunction:()=>{this.currentView="coordinate-input"},label:e.inputCoordTitle,title:e.inputCoordTitle}),l=t?null:this.renderIconButton({iconType:this.mode==="live"?d.pinTear:d.pinTearF,clickFunction:this.toggleMode,label:r,title:r}),a=o?null:this.renderIconButton({iconType:"gear",clickFunction:()=>{this.currentView="settings"},label:e.settingsTitle,title:e.settingsTitle});return s`<ul class="tool-display"><li>${c}</li><li>${l}</li><li>${a}</li></ul>`}renderSettingsView(){let e=this.getId("pattern-input"),i=this.getId("preview-coordinate"),t=this.formats.filter(p=>m(p)),o=this.findSettingsFormat(),r=o?t.indexOf(o):-1,c=this.renderConversionOptions(t,!0,r),l=o?.currentPattern,{messages:a}=this;if(!a)return null;let h=this.renderIconButton({iconType:d.refresh,clickFunction:this.setDefaultPattern,label:a.defaultPattern,title:a.defaultPattern});return[s`<calcite-action .icon=${d.arrowLeft} @click=${()=>this.currentView="conversions"} .text=${a.back} slot=header-actions-start></calcite-action>`,s`<div class="settings"><div class=${u(f("settings-form-group","settings-form-group-first"))}><calcite-label alignment=center .for=${e} scale=s>${a.changeCoordinateDisplay}<calcite-select .label=${a.selectFormat} width=full @calciteSelectChange=${this.setSettingsFormat}>${c}</calcite-select><div class="settings-form-group-horizontal"><calcite-input aria-controls=${i??n} class="pattern-input" id=${e??n} type=text .value=${l} @calciteInputInput=${this.updateCurrentPattern}></calcite-input>${h}</div></calcite-label></div><div class="settings-form-group"><calcite-label alignment=center scale=s>${a.preview}<div class="preview-coordinate" id=${i??n} tabindex=0>${this.previewConversion?.displayCoordinate}</div></calcite-label></div></div>`]}renderTools(e,i){let t=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,{messages:o}=this;if(!o)return null;let r=this.renderIconButton({iconType:"x",clickFunction:()=>this.removeConversion(e),ariaControls:i,label:o.removeConversion,title:o.removeConversion});return s`<ul class="tool-display"><li>${t}</li><li>${r}</li></ul>`}};function U(x){let e=x.getAttribute("data-index");return e?window.parseInt(e):null}$("arcgis-coordinate-conversion",w);return w},"applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/support/Conversion","widgets/CoordinateConversion/CoordinateConversionViewModel",a,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{O as l,U as a,b as i}from"./Y3ITJCU6.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
2
+ import{O as l,U as a,b as i}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import i from"./MWC7VXMT.js";import{a as _}from"./NIGGISCR.js";import{a as D}from"./DHVEHATY.js";import e from"./JDO4ZDWR.js";import c from"./ACKNTQRK.js";import{g as y}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import{b as u}from"./ZNBKMZP7.js";import{M as d,N as g,O as w,P as h,R as f,U as b,a as v,b as o,x}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{on:I,when:C,watch:H},M,{property:p,subclass:P},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var n=a>1?void 0:a?L(e,t):e,s=i.length-1,c;s>=0;s--)(c=i[s])&&(n=(a?c(e,t,n):c(n))||n);return a&&n&&O(e,t,n),n},E=new EventTarget;function S(i,e,t){let a=!1,n=H(i,(s,c)=>{a||e(s,c)},t);return{remove(){n.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends M{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([P("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;background-color:var(--calcite-color-foreground-1)}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=y()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:n}=this;return(e?a||t.collapse:n||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expanded(){return this.viewModel.expanded}set expanded(e){this.viewModel.expanded=e}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>void this.popoverEl?.value?.reposition(),{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";case"manual":default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,viewModel:{expanded:a},label:n,topLayerDisabled:s}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${n??""} .topLayerDisabled=${s} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${n??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${this.expanded} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${s} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:n}=this,s=e?n:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":s===k||s===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${s} .scale=${this.visualScale} ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};b("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import a from"./OOHXOPMN.js";import{a as r}from"./R7B5B7QH.js";import{e as o}from"./I3VFN634.js";import"./PJAPMYAR.js";import"./ZNBKMZP7.js";import{O as i,U as c,a as s,b as l}from"./Y3ITJCU6.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:d},{b:n,c:m,d:p}])=>{var h=s`.template-select-container{border:1px solid var(--calcite-color-border-1);cursor:pointer}.template-select-container .template-select-error,.template-select-container .template-select-arrow{display:flex;align-self:center;margin-right:var(--calcite-spacing-md)}`,a=class extends i{constructor(){super(...arguments),this._handles=r("disconnect"),this._direction=o(),this._templateState="not-loaded"}static{this.properties={_selectedTemplate:16,_templateState:16,viewModel:0,messages:0,showTemplateSelector:0}}static{this.styles=h}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(d(()=>this._selectedTemplate?.state,t=>this._templateState=t??"not-loaded",{initial:!0}),"template-handle")},{initial:!0})])}render(){let e=this._selectedTemplate?m(this._selectedTemplate,this.messages):this.messages.selectTemplate;return l`<calcite-block class="template-select-container" .description=${n(this._selectedTemplate)} .heading=${e} .label=${e} .loading=${this._templateState==="loading"} @click=${this.showTemplateSelector} @keydown=${t=>{(t.key==="Enter"||t.key===" ")&&this.showTemplateSelector()}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout?p(this._selectedTemplate.layout):null)||"custom-print"} scale=l slot=content-start></calcite-icon>${this._templateState==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=actions-end></calcite-icon>`:null}<calcite-icon class="template-select-arrow" .icon=${this._direction==="rtl"?"chevron-left":"chevron-right"} scale=s slot=actions-end></calcite-icon></calcite-block>`}};c("arcgis-print-template-select",a);return a},"core/reactiveUtils",a)
2
+ import a from"./OOHXOPMN.js";import{a as r}from"./N3VTGUSB.js";import{e as o}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import"./ZNBKMZP7.js";import{O as i,U as c,a as s,b as l}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:d},{b:n,c:m,d:p}])=>{var h=s`.template-select-container{border:1px solid var(--calcite-color-border-1);cursor:pointer}.template-select-container .template-select-error,.template-select-container .template-select-arrow{display:flex;align-self:center;margin-right:var(--calcite-spacing-md)}`,a=class extends i{constructor(){super(...arguments),this._handles=r("disconnect"),this._direction=o(),this._templateState="not-loaded"}static{this.properties={_selectedTemplate:16,_templateState:16,viewModel:0,messages:0,showTemplateSelector:0}}static{this.styles=h}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(d(()=>this._selectedTemplate?.state,t=>this._templateState=t??"not-loaded",{initial:!0}),"template-handle")},{initial:!0})])}render(){let e=this._selectedTemplate?m(this._selectedTemplate,this.messages):this.messages.selectTemplate;return l`<calcite-block class="template-select-container" .description=${n(this._selectedTemplate)} .heading=${e} .label=${e} .loading=${this._templateState==="loading"} @click=${this.showTemplateSelector} @keydown=${t=>{(t.key==="Enter"||t.key===" ")&&this.showTemplateSelector()}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout?p(this._selectedTemplate.layout):null)||"custom-print"} scale=l slot=content-start></calcite-icon>${this._templateState==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=actions-end></calcite-icon>`:null}<calcite-icon class="template-select-arrow" .icon=${this._direction==="rtl"?"chevron-left":"chevron-right"} scale=s slot=actions-end></calcite-icon></calcite-block>`}};c("arcgis-print-template-select",a);return a},"core/reactiveUtils",a)