@esri/solutions-components 5.1.4 → 5.1.6

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 (224) hide show
  1. package/dist/cdn/{EKX2WVH2.js → 2EAVGPQQ.js} +1 -1
  2. package/dist/cdn/{ZOGD4MGP.js → 2I5UY6RD.js} +1 -1
  3. package/dist/cdn/{GCDVJH5S.js → 3HGR6VXB.js} +1 -1
  4. package/dist/cdn/{F46RK2J3.js → 4CEQFURO.js} +1 -1
  5. package/dist/cdn/{NNFMXYPK.js → 4CMB2JIF.js} +1 -1
  6. package/dist/cdn/{TXO47END.js → 4WGHP4H5.js} +1 -1
  7. package/dist/cdn/{UCHXRVI7.js → 537YPVAM.js} +1 -1
  8. package/dist/cdn/{KGXEY5HR.js → 55UXOGN6.js} +1 -1
  9. package/dist/cdn/{E6FH6VES.js → 573G4DTV.js} +1 -1
  10. package/dist/cdn/{2MIHHSV7.js → 5Y6BC5WH.js} +1 -1
  11. package/dist/cdn/{FKQHOE2A.js → 6DPRWKJW.js} +1 -1
  12. package/dist/cdn/{SGWJLKO4.js → 6HMLPLLU.js} +1 -1
  13. package/dist/cdn/{SZOVVQKR.js → 6OWR4WDF.js} +1 -1
  14. package/dist/cdn/{HKURBCD6.js → 73WHDMBB.js} +1 -1
  15. package/dist/cdn/{44AKLIIM.js → 74ZQDJYN.js} +1 -1
  16. package/dist/cdn/{FAHLQLKD.js → 7BFE3VVJ.js} +1 -1
  17. package/dist/cdn/{BKVQ3IHI.js → 7ERUNOYN.js} +1 -1
  18. package/dist/cdn/{PM3JQSRI.js → 7P5SMQEP.js} +1 -1
  19. package/dist/cdn/{QFMV5FIH.js → 7QFRUIR3.js} +1 -1
  20. package/dist/cdn/{JXRHNAZL.js → 7RDUGCTS.js} +1 -1
  21. package/dist/cdn/{CNSPJ2EC.js → A6JQTHN7.js} +1 -1
  22. package/dist/cdn/{BANY6ETR.js → ABRY4E4C.js} +1 -1
  23. package/dist/cdn/{KSVHFBIC.js → ACS56O66.js} +1 -1
  24. package/dist/cdn/{Z36KRE25.js → AGBRB3QN.js} +1 -1
  25. package/dist/cdn/{VRNFQILE.js → AZOG6L3Y.js} +1 -1
  26. package/dist/cdn/{NAZXHTIH.js → BDTAVWLX.js} +1 -1
  27. package/dist/cdn/{3DFMPPUD.js → BQQVJ6KB.js} +1 -1
  28. package/dist/cdn/{DCW5HGF5.js → BWKTLBKM.js} +1 -1
  29. package/dist/cdn/{HXCNKN3S.js → C2GDUVT5.js} +1 -1
  30. package/dist/cdn/{HCUAJO3O.js → CJUVMFRG.js} +1 -1
  31. package/dist/cdn/{JCNPJDTU.js → CLJLD5PX.js} +1 -1
  32. package/dist/cdn/{JB5Q4OQ3.js → CNMS4F5Q.js} +1 -1
  33. package/dist/cdn/{EJPQED7E.js → COQ7K4OA.js} +1 -1
  34. package/dist/cdn/{RPVFPXRS.js → DCFZQJRO.js} +1 -1
  35. package/dist/cdn/{BNBBHCXL.js → DQBV3WFN.js} +1 -1
  36. package/dist/cdn/{UEROFURZ.js → DTR7YAZI.js} +1 -1
  37. package/dist/cdn/{BTOTDVAS.js → EH3BNB4R.js} +1 -1
  38. package/dist/cdn/{IVPBAGUF.js → FCLUG3NJ.js} +1 -1
  39. package/dist/cdn/{CIHBT3OX.js → FFI7CZZE.js} +1 -1
  40. package/dist/cdn/{FOYNK4SB.js → FJNJ7VV3.js} +1 -1
  41. package/dist/cdn/{IDF2I3MN.js → FO27KNLW.js} +1 -1
  42. package/dist/cdn/{ULDTR3ZJ.js → FSXHE5BN.js} +1 -1
  43. package/dist/cdn/{37XAYW3Z.js → FSZQUSYT.js} +1 -1
  44. package/dist/cdn/{F6H43GFC.js → FUDBT5SO.js} +1 -1
  45. package/dist/cdn/{GZQHLOSR.js → GA4HPDIK.js} +1 -1
  46. package/dist/cdn/{2WPU2KT4.js → GTEFHPHV.js} +1 -1
  47. package/dist/cdn/{AZOSLWYH.js → HKQKXCKL.js} +1 -1
  48. package/dist/cdn/{EJK7PYN5.js → HN45AZDW.js} +1 -1
  49. package/dist/cdn/{WJZWNDP6.js → HQB33AR6.js} +1 -1
  50. package/dist/cdn/{N4MCHYQT.js → HSYNLCS6.js} +1 -1
  51. package/dist/cdn/{Y73BJ3I2.js → HU4SFLVQ.js} +1 -1
  52. package/dist/cdn/{MHMP2XKO.js → HZEKMQOQ.js} +1 -1
  53. package/dist/cdn/{QVDDWNQD.js → IFPPYYO5.js} +1 -1
  54. package/dist/cdn/{SZS6HTVV.js → IHZ3FODO.js} +1 -1
  55. package/dist/cdn/{J5Q7IGCO.js → IN7KX2VO.js} +1 -1
  56. package/dist/cdn/{XPAPUNHH.js → INHF3PRS.js} +1 -1
  57. package/dist/cdn/{XTHPWGYU.js → IPOPM3LM.js} +1 -1
  58. package/dist/cdn/{MDHAIKSW.js → IV3XLBK2.js} +1 -1
  59. package/dist/cdn/{7IKNLW73.js → IVG423RV.js} +1 -1
  60. package/dist/cdn/{ZMHQCYGN.js → IVT5EH7V.js} +1 -1
  61. package/dist/cdn/{DDUV67TU.js → IWLWX75G.js} +1 -1
  62. package/dist/cdn/{6OLOFYVJ.js → J3R23IV3.js} +1 -1
  63. package/dist/cdn/{3I3KEFHZ.js → JBTMA635.js} +1 -1
  64. package/dist/cdn/{PRYFDRHL.js → JGIUIMX6.js} +1 -1
  65. package/dist/cdn/{ISSIJKKQ.js → JJQALSZS.js} +1 -1
  66. package/dist/cdn/{M43XW3ID.js → K7E7L4OR.js} +1 -1
  67. package/dist/cdn/KLIO37YK.js +64 -0
  68. package/dist/cdn/{T6LB222K.js → KLZILSM2.js} +1 -1
  69. package/dist/cdn/{ZU3YB37T.js → KXHGNIZI.js} +1 -1
  70. package/dist/cdn/{4IC54M4H.js → KXV767EZ.js} +1 -1
  71. package/dist/cdn/{SI2EHJJ5.js → L64ATDYJ.js} +1 -1
  72. package/dist/cdn/{DKFIPJDR.js → LOBQXN5U.js} +1 -1
  73. package/dist/cdn/LWJ74OVE.js +2 -0
  74. package/dist/cdn/{SY6G2BJJ.js → M7ADRTOD.js} +1 -1
  75. package/dist/cdn/{B23WYSJV.js → MED4PP57.js} +1 -1
  76. package/dist/cdn/{STT65ICR.js → MKZEX7DE.js} +1 -1
  77. package/dist/cdn/{IK3L2OC3.js → ML7ONETQ.js} +1 -1
  78. package/dist/cdn/{J6PFJWXU.js → MN7YVS4C.js} +1 -1
  79. package/dist/cdn/{LWPJ3YGN.js → MUTMVCJH.js} +1 -1
  80. package/dist/cdn/{2EUQOQY3.js → MWMHCOM7.js} +1 -1
  81. package/dist/cdn/{X7GGOH2R.js → N7JMNT7U.js} +1 -1
  82. package/dist/cdn/{5BRYPQAD.js → NEEE2XFP.js} +1 -1
  83. package/dist/cdn/{2N37BZ4E.js → NFSBYFAN.js} +1 -1
  84. package/dist/cdn/{TBXAQ6YS.js → NGDIFB6C.js} +1 -1
  85. package/dist/cdn/{BDAY2SRY.js → NPRV26AN.js} +1 -1
  86. package/dist/cdn/{XN5455P6.js → NSIWYZXA.js} +1 -1
  87. package/dist/cdn/{CAXEJ55N.js → O3JLHPWX.js} +1 -1
  88. package/dist/cdn/{XR3PT7FP.js → O4PNLONH.js} +1 -1
  89. package/dist/cdn/{6AVCTQ6J.js → O65GM2OS.js} +1 -1
  90. package/dist/cdn/{TWQBX23F.js → OE2AIEJR.js} +1 -1
  91. package/dist/cdn/{QEITYICZ.js → OKMR3RTG.js} +1 -1
  92. package/dist/cdn/{BOQUQFNT.js → PCMKVOJE.js} +1 -1
  93. package/dist/cdn/{VEHKPB2T.js → PMRMQHSG.js} +1 -1
  94. package/dist/cdn/{ELYRONBX.js → PNS2HOLX.js} +1 -1
  95. package/dist/cdn/{6UFOKMNB.js → POPNTKTN.js} +1 -1
  96. package/dist/cdn/{P364VUYG.js → PSXWMNIM.js} +59 -59
  97. package/dist/cdn/{JJC3L6OY.js → PWV6AWEK.js} +1 -1
  98. package/dist/cdn/{JBBUAR3W.js → Q3JLQFIR.js} +1 -1
  99. package/dist/cdn/{HSZJX2Q4.js → QI7CGBRO.js} +1 -1
  100. package/dist/cdn/{KIF46SPD.js → QJRZSXE3.js} +1 -1
  101. package/dist/cdn/{VESIRJGO.js → QKL3OUJN.js} +1 -1
  102. package/dist/cdn/{VLP6VQEG.js → RB6WXO2B.js} +1 -1
  103. package/dist/cdn/{5L7HZJBG.js → RDDKOZ3K.js} +1 -1
  104. package/dist/cdn/{UE2HAEBW.js → RIUUYA2I.js} +1 -1
  105. package/dist/cdn/{2XTZLJ5F.js → RK6QNHNL.js} +1 -1
  106. package/dist/cdn/{G5MS44YY.js → RKAS46EN.js} +1 -1
  107. package/dist/cdn/{WD2PX7HI.js → RTGQJBPP.js} +1 -1
  108. package/dist/cdn/{IPJJSTZU.js → SGKOGGQZ.js} +1 -1
  109. package/dist/cdn/{3254TLMD.js → STFLL5DN.js} +1 -1
  110. package/dist/cdn/{B2ORGYXT.js → T4FTLA6B.js} +1 -1
  111. package/dist/cdn/{3RBIHT6V.js → TQWJ7RSO.js} +1 -1
  112. package/dist/cdn/{D7VJTHDK.js → TVEHBAEM.js} +1 -1
  113. package/dist/cdn/{FPBZRT3J.js → U252BRLA.js} +1 -1
  114. package/dist/cdn/{KU2QSXAD.js → U2YCH7KY.js} +1 -1
  115. package/dist/cdn/{JX7BWUKD.js → UDF6XJC3.js} +1 -1
  116. package/dist/cdn/{SHH2SZMK.js → UFQD5LVR.js} +1 -1
  117. package/dist/cdn/{6UVMG6O6.js → UHEB6KZP.js} +1 -1
  118. package/dist/cdn/{MO3P37S4.js → UIGM4I3S.js} +1 -1
  119. package/dist/cdn/{UO7BW66X.js → UWTMQLSU.js} +1 -1
  120. package/dist/cdn/{VIDMRGST.js → W2IZON5N.js} +1 -1
  121. package/dist/cdn/{N7CCVVIF.js → W552UHUR.js} +1 -1
  122. package/dist/cdn/{7GVXGILS.js → WD54XDPZ.js} +1 -1
  123. package/dist/cdn/{6U5LXE7U.js → WWUOFMRE.js} +1 -1
  124. package/dist/cdn/{IXSDSBUI.js → XR4LGSBC.js} +1 -1
  125. package/dist/cdn/{ATEM3GJU.js → XUVXLS2M.js} +113 -113
  126. package/dist/cdn/XW7WPRON.js +2 -0
  127. package/dist/cdn/{IATGWFGP.js → YCHKFNP6.js} +1 -1
  128. package/dist/cdn/{RKVNFHFD.js → YKY6I4I6.js} +1 -1
  129. package/dist/cdn/{5LBPBZXP.js → Z5HWNFRD.js} +1 -1
  130. package/dist/cdn/{NM5TPOWT.js → ZE2QFJQE.js} +1 -1
  131. package/dist/cdn/{HA5UBO4F.js → ZL3RLLE7.js} +1 -1
  132. package/dist/cdn/{6TXK3KEU.js → ZME6RLE5.js} +1 -1
  133. package/dist/cdn/{2FC35CH6.js → ZOGFJJWC.js} +1 -1
  134. package/dist/cdn/{RCCNBRKL.js → ZRNM2GI7.js} +1 -1
  135. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
  136. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
  137. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
  138. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
  139. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
  140. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
  141. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
  142. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
  143. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
  144. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
  145. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
  146. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
  147. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
  148. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
  149. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
  150. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
  151. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
  152. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
  153. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
  154. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
  155. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
  156. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
  157. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
  158. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
  159. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
  160. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
  161. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
  162. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
  163. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
  164. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
  165. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
  166. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
  167. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
  168. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
  169. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
  170. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
  171. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
  172. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
  173. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
  174. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ar.json +1 -1
  175. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bg.json +1 -1
  176. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bs.json +1 -1
  177. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ca.json +1 -1
  178. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.cs.json +1 -1
  179. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.da.json +1 -1
  180. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.de.json +1 -1
  181. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.el.json +1 -1
  182. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.es.json +1 -1
  183. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.et.json +1 -1
  184. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fi.json +1 -1
  185. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fr.json +1 -1
  186. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.he.json +1 -1
  187. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hr.json +1 -1
  188. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hu.json +1 -1
  189. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.id.json +1 -1
  190. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.it.json +1 -1
  191. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ja.json +1 -1
  192. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ko.json +1 -1
  193. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lt.json +1 -1
  194. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lv.json +1 -1
  195. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.nl.json +1 -1
  196. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.no.json +1 -1
  197. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pl.json +1 -1
  198. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-BR.json +1 -1
  199. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-PT.json +1 -1
  200. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ro.json +1 -1
  201. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ru.json +1 -1
  202. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sk.json +1 -1
  203. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sl.json +1 -1
  204. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sr.json +1 -1
  205. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sv.json +1 -1
  206. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.th.json +1 -1
  207. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.tr.json +1 -1
  208. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.uk.json +1 -1
  209. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.vi.json +1 -1
  210. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-CN.json +1 -1
  211. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-HK.json +1 -1
  212. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-TW.json +1 -1
  213. package/dist/cdn/index.js +1 -1
  214. package/dist/chunks/runtime.js +1 -1
  215. package/dist/chunks/transformQuery.js +56 -38
  216. package/dist/components/arcgis-solutions-assistant/customElement.js +7 -3
  217. package/dist/docs/api.json +1 -1
  218. package/dist/docs/docs.json +1 -1
  219. package/dist/docs/web-types.json +1 -1
  220. package/dist/solutions-components_commit.txt +4 -7
  221. package/package.json +1 -1
  222. package/dist/cdn/MFVXFKKM.js +0 -46
  223. package/dist/cdn/WWV4AGZ6.js +0 -2
  224. package/dist/cdn/ZSAOF72V.js +0 -2
@@ -0,0 +1,64 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./EXBEKVP5.js";var e=`# Your Role\r
3
+ You are the query-rewrite gate for the \`explorer\` agent.\r
4
+ \r
5
+ You must decide whether the latest User Query needs rewriting before it is sent to the backend. The backend receives only one query string and has no conversation history.\r
6
+ \r
7
+ # Inputs\r
8
+ You are given:\r
9
+ - Current User Query\r
10
+ - Recent conversation history\r
11
+ - Previous turn agent\r
12
+ \r
13
+ # Goal\r
14
+ Produce a final query that is standalone for retrieval while preserving conversational flow.\r
15
+ \r
16
+ # Core Decision\r
17
+ Set \`needsContext = true\` only when prior turns are required to interpret the user query.\r
18
+ \r
19
+ Set \`needsContext = false\` when the query can be sent as-is.\r
20
+ \r
21
+ # Context Use Rules\r
22
+ - Strongly prefer the most recent AI response as the context anchor.\r
23
+ - Ignore older context unless absolutely necessary.\r
24
+ - If older context is needed, use the nearest relevant topic only.\r
25
+ - Do not combine multiple earlier topics unless the user clearly combines them.\r
26
+ \r
27
+ # Follow-Up Reply Rules (High Priority)\r
28
+ - If the most recent AI message asked a follow-up question or for clarification, and the user appears to be replying, rewrite.\r
29
+ - If the user reply is short or elliptical (for example yes/no, brief fragments, "show me more", "that one"), always rewrite into a full standalone request.\r
30
+ - If the user reply is a value-only answer (including domain names, industries, product names, solution names, or workflow names), treat it as a slot-filling reply to the prior AI question and rewrite.\r
31
+ - This includes bare noun-phrase replies with no explicit action verb, even when multi-word (for example a standalone named solution title).\r
32
+ - A value-only answer must be rewritten even when the value itself is meaningful on its own; preserve the value but restore the missing action/intent from the most recent AI turn.\r
33
+ - If interpretation is ambiguous, choose the best single interpretation and rewrite to that.\r
34
+ \r
35
+ # lastTurnAgent Rule\r
36
+ - If \`lastTurnAgent\` is not \`explorer\` and the user is clearly replying to that turn, be more willing to rewrite.\r
37
+ \r
38
+ # Topic Shift Rule\r
39
+ - Detect topic changes aggressively.\r
40
+ - If the user clearly starts a new topic, do not carry forward prior topic context.\r
41
+ \r
42
+ # Generic Query Rule\r
43
+ - If the query is generic and recent history provides a clear topic, rewrite using that topic.\r
44
+ - If the query is generic and recent history does not provide a clear topic, leave it unchanged.\r
45
+ \r
46
+ # Rewrite Style Rules\r
47
+ When rewriting:\r
48
+ - Preserve intent shape (question remains question, request remains request).\r
49
+ - Apply slight normalization only when it improves retrieval.\r
50
+ - Add only the minimum missing context.\r
51
+ - Carry forward only intent facets explicitly present in the latest User Query or most recent AI prompt/question.\r
52
+ - Do not broaden scope by adding new facets, sub-questions, or tasks that were not asked.\r
53
+ - Treat added facets such as deployment, configuration, architecture, prerequisites, setup, implementation steps, or best practices as out of scope unless explicitly requested in the recent turns.\r
54
+ - For value-only replies, restore only the missing action verb and direct object needed to make the query standalone; do not append extra clauses.\r
55
+ - Keep the same language as the user query.\r
56
+ - Keep it concise.\r
57
+ - Do not invent facts or constraints.\r
58
+ \r
59
+ # Current User Query\r
60
+ {query}\r
61
+ \r
62
+ # Last Turn Agent\r
63
+ {lastTurnAgent}\r
64
+ `;export{e as default};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./EJPQED7E.js";import"./MHMM4RFR.js";import"./JNQB7T54.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./E6FH6VES.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./XTHPWGYU.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)
2
+ import b from"./COQ7K4OA.js";import"./MHMM4RFR.js";import"./JNQB7T54.js";import a from"./XOPNEAS5.js";import"./2B4SGB3I.js";import"./RLSY4VUQ.js";import"./AO7XKW2U.js";import"./573G4DTV.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import"./IPOPM3LM.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{c:o}])=>{return o},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as E}from"./BM666UZR.js";import{b as V}from"./RLSY4VUQ.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as $}from"./E6FH6VES.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as C}from"./XTHPWGYU.js";import{F as d,G as u,H as S,J as p,K as v,h as g,i as o,q as w,u as L}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([x,R,D,N,{a:k,d:I,f:T},{c:_,g:G,j:O}])=>{var P=g`@layer{:host{display:block}.div-visible{display:inherit}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:.5rem}.padding-end-1-2{padding-inline-end:.5rem}.icon{--calcite-color-icon-color: var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,y=class extends S{constructor(){super(),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.geometries=[],this.headerLabelClass="font-bold",this.isUpdate=!1,this.layerViews=[],this.noResultText="",this.selectionLayerIds=[],this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm="",this._selectionLoading=!1,this._translations=$({name:"map-select-tools",blocking:!0}),this._bufferTools=d(),this._drawTools=d(),this._labelName=d(),this._pnContextConsumer=V({context:E,subscribe:!0}),this._searchElement=d(),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.selectionSetChange=w(),this.listenOn(window,"searchConfigurationChange",this.searchConfigurationChangeChanged),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,enabledLayerIds:0,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,defaultBufferDistance:9,defaultBufferUnit:1,geometries:0,headerLabelClass:1,isUpdate:5,layerViews:0,mapView:0,noResultText:1,searchConfiguration:0,selectionSet:0,selectionLayerIds:0,selectLayerView:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,searchDistanceEnabled:5,useLayerFeaturesEnabled:5,_numSelected:16,_searchTerm:16,_selectionLoading:16,_translations:16}}static{this.styles=P}static{this.shadowRootOptions=L}willUpdate(e){e.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.watchGeometriesHandler(this.geometries,e.get("geometries")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView")),e.has("defaultBufferUnit")&&this.hasUpdated&&(this.selectionSet&&(this.selectionSet.unit=this.defaultBufferUnit),this._bufferTools.value&&this.defaultBufferUnit!==void 0&&(this._bufferTools.value.unit=this.defaultBufferUnit),this._updateLabel()),e.has("defaultBufferDistance")&&this.hasUpdated&&(this.selectionSet&&(this.selectionSet.distance=this.defaultBufferDistance),this._updateLabel())}async watchGeometriesHandler(e,t){if(e!==t&&e.length>0)return this._highlightWithOIDsOrGeoms()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate&&this.selectionSet?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.value?.distance,download:!0,unit:this._bufferTools.value?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async loaded(){await this._init()}render(){let e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"",s=this.searchConfiguration&&this.mapView?this._getSearchConfig(this.searchConfiguration,this.mapView):void 0,i=this.searchConfiguration?.allPlaceholder&&this.searchConfiguration.allPlaceholder.toLowerCase()!=="find address or place"?this.searchConfiguration.allPlaceholder:this._translations.placeholder;return o`${this._getMapLayerPicker()}<div class="border-bottom"></div><div class="padding-top-sides-1"><arcgis-search class="search-widget" .activeSourceIndex=${s?.activeSourceIndex} .allPlaceholder=${i} .includeDefaultSourcesDisabled=${s?.includeDefaultSources===!1} @arcgisSearchClear=${()=>{this._handleSearchClear()}} @arcgisSelectResult=${a=>{this._handleSearchSelectResult(a)}} popup-disabled result-graphic-disabled .searchAllDisabled=${s?.searchAllEnabled===!1} .searchTerm=${this._searchTerm} .sources=${s?.sources} .view=${this.mapView} ${u(this._searchElement)}></arcgis-search><div class=${p(t)}><map-draw-tools active class=${p(e)} .editGraphicsEnabled=${!this.useLayerFeaturesEnabled} .graphics=${this._graphics} .mapView=${this.mapView} @sketchGraphicsChange=${a=>{this._sketchGraphicsChanged(a)}} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} ${u(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}${this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0}${this._getNumSelected()}</div><div class="border-bottom"></div>${this._getNameInput()}`}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t=typeof this.selectionSet?.distance=="number"?this.selectionSet.distance:this.defaultBufferDistance;return o`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon aria-hidden=true class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this.searchDistanceEnabled} @calciteSwitchChange=${()=>this.searchDistanceEnabled=!this.searchDistanceEnabled}></calcite-switch></div><div class=${p(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${t} .geometries=${this.geometries} @bufferComplete=${s=>{this._bufferComplete(s)}} .unit=${this.selectionSet?.unit||this.defaultBufferUnit} ${u(this._bufferTools)}></buffer-tools></div></div>`}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);let e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return o`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.useLayerFeatures}<calcite-icon aria-hidden=true class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=use-layer-features-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=use-layer-features-icon><span class="tooltip-message">${this._translations.useLayerFeaturesTooltip}</span></calcite-popover><calcite-switch .checked=${this.useLayerFeaturesEnabled} @calciteSwitchChange=${()=>{this._useLayerFeaturesEnabledChanged()}}></calcite-switch></div><div class=${`${e} padding-top-1`}><map-layer-picker .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this.layerViews.map(t=>t.layer.id)}></map-layer-picker></div></div>`}_getNumSelected(){let e=this._translations._lang==="en"?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return o`<div class="padding-top-1 padding-bottom-1" style=${v({"align-items":"end",display:"flex"})}>${this._selectionLoading?o`<div><calcite-loader class="info-blue padding-end-1-2" inline .label=${e||""} scale=m type=indeterminate></calcite-loader></div>`:o`<calcite-icon aria-hidden=true class="info-blue padding-end-1-2" icon=feature-layer scale=s></calcite-icon>`}<calcite-input-message class="info-blue" scale=m>${this._selectionLoading?e:this.noResultText&&this._numSelected===0?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())}</calcite-input-message></div>`}_getNameInput(){let e=this.customLabelEnabled?"":"display-none";return o`<div class=${`padding-sides-1 padding-top-1 ${e}`}><calcite-label class=${p(this.headerLabelClass)}>${this._translations.listName}<calcite-input @input=${()=>{this._selectionLabel=this._labelName.value?this._labelName.value.value:""}} .placeholder=${this._translations.listNamePlaceholder} .value=${this._selectionLabel||""} ${u(this._labelName)}></calcite-input></calcite-label></div>`}_getMapLayerPicker(){let e=this.selectionSet?.layerView?.layer.id;return o`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-label class=${`${this.headerLabelClass} width-full label-margin-0`}>${this._translations.inputLayer}<map-layer-picker .enabledLayerIds=${this.enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._inputLayerSelectionChange(t)}} .selectedIds=${this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet&&e!==void 0?[e]:[]}></map-layer-picker></calcite-label></div>`}async _init(){this._initGraphicsLayer(),await this._initSelectionSet()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs||[],this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.reduce((e,t)=>{let s=t.type==="point"?this.sketchPointSymbol:t.type==="polyline"?this.sketchLineSymbol:this.sketchPolygonSymbol;return e.push(new D({geometry:t,symbol:s})),e},[]),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await this._drawTools.value?.updateGraphics(),this.selectionSet.layerView&&this.mapView&&await O(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _handleSearchClear(){let e=this._searchClearLabel();this._searchResult?.name&&await this._clearResults(!1,e)}async _handleSearchSelectResult(e){await this._selectResult(e.detail.result)}async _selectResult(e){if(e){this._searchResult=e;let t=e.feature,s=t?.layer,i=this.selectLayerView?.layer,a=Number(t?.getObjectId()),l;s?.sourceJSON?.isView&&s.url&&(l=await this._getViewSourceUrl(s.url));let r;i?.sourceJSON?.isView&&i.url&&(r=await this._getViewSourceUrl(i.url));let c=s?.url?.toLowerCase(),n=l?.toLowerCase(),h=i?.url?.toLowerCase(),m=r?.toLowerCase(),b=c&&h&&(c===h||c===m||n===h||n===m)&&!Number.isNaN(a),F=b?[a]:void 0;this._workflowType="SEARCH",this._updateLabel();let f=[e.feature];this._updateSelection(f,b,F),this._drawTools.value&&(this._drawTools.value.graphics=f)}else{let t=this._searchClearLabel();this._clearResults(!1,t)}}async _getViewSourceUrl(e){let t="",s=`${e}/sources?f=json`;try{let i=await x(s,{query:{f:"json"}});i?.data?.services?.length===1&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value&&this._labelName.value.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){let s=e?.sources;return s&&s?.length>0?(e={...e,includeDefaultSources:!1},s.forEach(i=>{if(i.hasOwnProperty("layer")){let a=i,l=a.layer?.id,r=l?t.map?.findLayerById(l):null,c=a?.layer?.url;r&&a?a.layer=r:c&&(a.layer=new R(c))}}),s?.forEach(i=>{if(i.hasOwnProperty("locator")){let a=i;if(a?.name==="ArcGIS World Geocoding Service"){let l=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=l,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){let e=this._pnContextConsumer.value,t=this._translations.bufferLayer;if(this.mapView){let s=this.mapView.map.layers.findIndex(i=>i.title===t);if(s>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(s);else if(this._bufferGraphicsLayer=new N({title:t,listMode:"hide"}),this._bufferGraphicsLayer){e.managedLayers[t]="buffer";let i=this.mapView.map.layers.findIndex(a=>a.title===this._translations.sketchLayer);i>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,i):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){let s=e.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this.useLayerFeaturesEnabled?"SELECT":"SKETCH",this._workflowType==="SKETCH"&&this._drawTools.value&&await this._drawTools.value.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){let i=Array.isArray(s)?s.map(a=>a.geometry):this.geometries;await this._selectLayerFeatures(i[0])}else{let i=s.reduce((l,r)=>(r?.layer?.objectIdField?l.push(Number(r.attributes[r.layer.objectIdField])):r.getObjectId&&l.push(Number(r.getObjectId())),l),[]),a=e.detail.useOIDs&&i.length>0;this._updateSelection(s,a,i),a&&await this._highlightFeatures(i)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs&&this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){let t=this._pnContextConsumer.value;if(t.removeHandles(),e.length>0&&this.selectLayerView&&this.mapView){let s=await G(e,this.selectLayerView,this.mapView);t.highlightHandles.push(s)}this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=this.selectLayerView&&await k(e,this.selectLayerView.layer)||[],this._selectionLoading=!1,this._drawTools.value&&(this._drawTools.value.graphics=this._graphics),await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.value&&Number(this._bufferTools.value.distance),s=0;if(this._bufferGeometry){let i={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=new D({geometry:this._bufferGeometry,symbol:i});this._bufferGraphicsLayer&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(a),await this._selectFeatures([this._bufferGeometry]),a.geometry?.extent&&await this.mapView.goTo(a.geometry.extent)),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:s})}async _geomQuery(e){let t=T(e);return t?this._selectFeatures(t):Promise.resolve()}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value&&(this._labelName.value.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._clearSearchWidget(),this._pnContextConsumer.value.removeHandles(),this._drawTools.value?.clear&&(this._graphics=[],this.geometries=[],await this._drawTools.value.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchElement.value?.clear(),this._searchResult=void 0}_updateSelection(e,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(e)?e.reduce((i,a)=>(a.geometry&&i.push(a.geometry),i),[]):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){let e=this._translations.sketch&&this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._translations.select&&this._selectionLabel.indexOf(this._translations.select)>-1,s=this._selectionLabel.indexOf(this._searchResult?.name)>-1,i=this._workflowType==="SEARCH"?this._searchResult?.name:this._workflowType==="SELECT"?this._translations.select:this._translations.sketch,a=this._bufferTools.value?this._bufferTools.value.unit:this._unit,l=this._bufferTools.value&&a&&await this._bufferTools.value.getTranslatedUnit(a),r=Number.isNaN(Number(this._distance))&&this._bufferTools.value?this._bufferTools.value.distance:this._distance;this._selectionLabel=e||t||s||!this._selectionLabel?`${i} ${r} ${l}`:this._selectionLabel,this._labelName.value&&(this._labelName.value.value=this._selectionLabel)}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){let t=e.detail.reduce((s,i)=>(this.mapView&&s.push(_(this.mapView,i)),s),[]);return Promise.all(t).then(s=>{this.layerViews=s.reduce((i,a)=>(a&&i.push(a),i),[]),this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})})}}async _inputLayerSelectionChange(e){let t=e?.detail?.length>0?e.detail[0]:"";(!this.selectLayerView||t!==this.selectLayerView.layer.id)&&(this.selectLayerView=this.mapView&&await _(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;let t=this.layerViews.map(s=>(this._featuresCollection[s.layer.id]=[],I(0,s.layer,e,this._featuresCollection)));return Promise.all(t).then(async s=>{this._selectionLoading=!1;let i=[];s.forEach(n=>{Object.keys(n).forEach(h=>{i=i.concat(n[h])})});let a=!1;i.forEach(n=>{let h=n.geometry;n.symbol=h&&h.type==="point"?this.sketchPointSymbol:h&&h.type==="polyline"?this.sketchLineSymbol:h&&h.type==="polygon"?this.sketchPolygonSymbol:void 0,a=n?.layer?.hasOwnProperty("objectIdField")||n.hasOwnProperty("getObjectId")});let l=this.layerViews[0].layer,r=this.selectLayerView?.layer,c=a&&l.url===r?.url&&r?.layerId===l.layerId;await this._sketchGraphicsChanged({detail:{graphics:i,useOIDs:c}},!0)})}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}};C("map-select-tools",y);return y},"request","layers/FeatureLayer","Graphic","layers/GraphicsLayer",a,b)
2
+ import{a as E}from"./BM666UZR.js";import{b as V}from"./RLSY4VUQ.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as $}from"./573G4DTV.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{b as C}from"./IPOPM3LM.js";import{F as d,G as u,H as S,J as p,K as v,h as g,i as o,q as w,u as L}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([x,R,D,N,{a:k,d:I,f:T},{c:_,g:G,j:O}])=>{var P=g`@layer{:host{display:block}.div-visible{display:inherit}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:.5rem}.padding-end-1-2{padding-inline-end:.5rem}.icon{--calcite-color-icon-color: var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,y=class extends S{constructor(){super(),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.geometries=[],this.headerLabelClass="font-bold",this.isUpdate=!1,this.layerViews=[],this.noResultText="",this.selectionLayerIds=[],this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm="",this._selectionLoading=!1,this._translations=$({name:"map-select-tools",blocking:!0}),this._bufferTools=d(),this._drawTools=d(),this._labelName=d(),this._pnContextConsumer=V({context:E,subscribe:!0}),this._searchElement=d(),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.selectionSetChange=w(),this.listenOn(window,"searchConfigurationChange",this.searchConfigurationChangeChanged),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,enabledLayerIds:0,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,defaultBufferDistance:9,defaultBufferUnit:1,geometries:0,headerLabelClass:1,isUpdate:5,layerViews:0,mapView:0,noResultText:1,searchConfiguration:0,selectionSet:0,selectionLayerIds:0,selectLayerView:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,searchDistanceEnabled:5,useLayerFeaturesEnabled:5,_numSelected:16,_searchTerm:16,_selectionLoading:16,_translations:16}}static{this.styles=P}static{this.shadowRootOptions=L}willUpdate(e){e.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.watchGeometriesHandler(this.geometries,e.get("geometries")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView")),e.has("defaultBufferUnit")&&this.hasUpdated&&(this.selectionSet&&(this.selectionSet.unit=this.defaultBufferUnit),this._bufferTools.value&&this.defaultBufferUnit!==void 0&&(this._bufferTools.value.unit=this.defaultBufferUnit),this._updateLabel()),e.has("defaultBufferDistance")&&this.hasUpdated&&(this.selectionSet&&(this.selectionSet.distance=this.defaultBufferDistance),this._updateLabel())}async watchGeometriesHandler(e,t){if(e!==t&&e.length>0)return this._highlightWithOIDsOrGeoms()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate&&this.selectionSet?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.value?.distance,download:!0,unit:this._bufferTools.value?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async loaded(){await this._init()}render(){let e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"",s=this.searchConfiguration&&this.mapView?this._getSearchConfig(this.searchConfiguration,this.mapView):void 0,i=this.searchConfiguration?.allPlaceholder&&this.searchConfiguration.allPlaceholder.toLowerCase()!=="find address or place"?this.searchConfiguration.allPlaceholder:this._translations.placeholder;return o`${this._getMapLayerPicker()}<div class="border-bottom"></div><div class="padding-top-sides-1"><arcgis-search class="search-widget" .activeSourceIndex=${s?.activeSourceIndex} .allPlaceholder=${i} .includeDefaultSourcesDisabled=${s?.includeDefaultSources===!1} @arcgisSearchClear=${()=>{this._handleSearchClear()}} @arcgisSelectResult=${a=>{this._handleSearchSelectResult(a)}} popup-disabled result-graphic-disabled .searchAllDisabled=${s?.searchAllEnabled===!1} .searchTerm=${this._searchTerm} .sources=${s?.sources} .view=${this.mapView} ${u(this._searchElement)}></arcgis-search><div class=${p(t)}><map-draw-tools active class=${p(e)} .editGraphicsEnabled=${!this.useLayerFeaturesEnabled} .graphics=${this._graphics} .mapView=${this.mapView} @sketchGraphicsChange=${a=>{this._sketchGraphicsChanged(a)}} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} ${u(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}${this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0}${this._getNumSelected()}</div><div class="border-bottom"></div>${this._getNameInput()}`}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t=typeof this.selectionSet?.distance=="number"?this.selectionSet.distance:this.defaultBufferDistance;return o`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon aria-hidden=true class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this.searchDistanceEnabled} @calciteSwitchChange=${()=>this.searchDistanceEnabled=!this.searchDistanceEnabled}></calcite-switch></div><div class=${p(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${t} .geometries=${this.geometries} @bufferComplete=${s=>{this._bufferComplete(s)}} .unit=${this.selectionSet?.unit||this.defaultBufferUnit} ${u(this._bufferTools)}></buffer-tools></div></div>`}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);let e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return o`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.useLayerFeatures}<calcite-icon aria-hidden=true class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=use-layer-features-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=use-layer-features-icon><span class="tooltip-message">${this._translations.useLayerFeaturesTooltip}</span></calcite-popover><calcite-switch .checked=${this.useLayerFeaturesEnabled} @calciteSwitchChange=${()=>{this._useLayerFeaturesEnabledChanged()}}></calcite-switch></div><div class=${`${e} padding-top-1`}><map-layer-picker .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this.layerViews.map(t=>t.layer.id)}></map-layer-picker></div></div>`}_getNumSelected(){let e=this._translations._lang==="en"?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return o`<div class="padding-top-1 padding-bottom-1" style=${v({"align-items":"end",display:"flex"})}>${this._selectionLoading?o`<div><calcite-loader class="info-blue padding-end-1-2" inline .label=${e||""} scale=m type=indeterminate></calcite-loader></div>`:o`<calcite-icon aria-hidden=true class="info-blue padding-end-1-2" icon=feature-layer scale=s></calcite-icon>`}<calcite-input-message class="info-blue" scale=m>${this._selectionLoading?e:this.noResultText&&this._numSelected===0?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())}</calcite-input-message></div>`}_getNameInput(){let e=this.customLabelEnabled?"":"display-none";return o`<div class=${`padding-sides-1 padding-top-1 ${e}`}><calcite-label class=${p(this.headerLabelClass)}>${this._translations.listName}<calcite-input @input=${()=>{this._selectionLabel=this._labelName.value?this._labelName.value.value:""}} .placeholder=${this._translations.listNamePlaceholder} .value=${this._selectionLabel||""} ${u(this._labelName)}></calcite-input></calcite-label></div>`}_getMapLayerPicker(){let e=this.selectionSet?.layerView?.layer.id;return o`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-label class=${`${this.headerLabelClass} width-full label-margin-0`}>${this._translations.inputLayer}<map-layer-picker .enabledLayerIds=${this.enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._inputLayerSelectionChange(t)}} .selectedIds=${this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet&&e!==void 0?[e]:[]}></map-layer-picker></calcite-label></div>`}async _init(){this._initGraphicsLayer(),await this._initSelectionSet()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs||[],this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.reduce((e,t)=>{let s=t.type==="point"?this.sketchPointSymbol:t.type==="polyline"?this.sketchLineSymbol:this.sketchPolygonSymbol;return e.push(new D({geometry:t,symbol:s})),e},[]),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await this._drawTools.value?.updateGraphics(),this.selectionSet.layerView&&this.mapView&&await O(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _handleSearchClear(){let e=this._searchClearLabel();this._searchResult?.name&&await this._clearResults(!1,e)}async _handleSearchSelectResult(e){await this._selectResult(e.detail.result)}async _selectResult(e){if(e){this._searchResult=e;let t=e.feature,s=t?.layer,i=this.selectLayerView?.layer,a=Number(t?.getObjectId()),l;s?.sourceJSON?.isView&&s.url&&(l=await this._getViewSourceUrl(s.url));let r;i?.sourceJSON?.isView&&i.url&&(r=await this._getViewSourceUrl(i.url));let c=s?.url?.toLowerCase(),n=l?.toLowerCase(),h=i?.url?.toLowerCase(),m=r?.toLowerCase(),b=c&&h&&(c===h||c===m||n===h||n===m)&&!Number.isNaN(a),F=b?[a]:void 0;this._workflowType="SEARCH",this._updateLabel();let f=[e.feature];this._updateSelection(f,b,F),this._drawTools.value&&(this._drawTools.value.graphics=f)}else{let t=this._searchClearLabel();this._clearResults(!1,t)}}async _getViewSourceUrl(e){let t="",s=`${e}/sources?f=json`;try{let i=await x(s,{query:{f:"json"}});i?.data?.services?.length===1&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value&&this._labelName.value.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){let s=e?.sources;return s&&s?.length>0?(e={...e,includeDefaultSources:!1},s.forEach(i=>{if(i.hasOwnProperty("layer")){let a=i,l=a.layer?.id,r=l?t.map?.findLayerById(l):null,c=a?.layer?.url;r&&a?a.layer=r:c&&(a.layer=new R(c))}}),s?.forEach(i=>{if(i.hasOwnProperty("locator")){let a=i;if(a?.name==="ArcGIS World Geocoding Service"){let l=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=l,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){let e=this._pnContextConsumer.value,t=this._translations.bufferLayer;if(this.mapView){let s=this.mapView.map.layers.findIndex(i=>i.title===t);if(s>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(s);else if(this._bufferGraphicsLayer=new N({title:t,listMode:"hide"}),this._bufferGraphicsLayer){e.managedLayers[t]="buffer";let i=this.mapView.map.layers.findIndex(a=>a.title===this._translations.sketchLayer);i>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,i):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){let s=e.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this.useLayerFeaturesEnabled?"SELECT":"SKETCH",this._workflowType==="SKETCH"&&this._drawTools.value&&await this._drawTools.value.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){let i=Array.isArray(s)?s.map(a=>a.geometry):this.geometries;await this._selectLayerFeatures(i[0])}else{let i=s.reduce((l,r)=>(r?.layer?.objectIdField?l.push(Number(r.attributes[r.layer.objectIdField])):r.getObjectId&&l.push(Number(r.getObjectId())),l),[]),a=e.detail.useOIDs&&i.length>0;this._updateSelection(s,a,i),a&&await this._highlightFeatures(i)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs&&this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){let t=this._pnContextConsumer.value;if(t.removeHandles(),e.length>0&&this.selectLayerView&&this.mapView){let s=await G(e,this.selectLayerView,this.mapView);t.highlightHandles.push(s)}this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=this.selectLayerView&&await k(e,this.selectLayerView.layer)||[],this._selectionLoading=!1,this._drawTools.value&&(this._drawTools.value.graphics=this._graphics),await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.value&&Number(this._bufferTools.value.distance),s=0;if(this._bufferGeometry){let i={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=new D({geometry:this._bufferGeometry,symbol:i});this._bufferGraphicsLayer&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(a),await this._selectFeatures([this._bufferGeometry]),a.geometry?.extent&&await this.mapView.goTo(a.geometry.extent)),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:s})}async _geomQuery(e){let t=T(e);return t?this._selectFeatures(t):Promise.resolve()}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value&&(this._labelName.value.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._clearSearchWidget(),this._pnContextConsumer.value.removeHandles(),this._drawTools.value?.clear&&(this._graphics=[],this.geometries=[],await this._drawTools.value.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchElement.value?.clear(),this._searchResult=void 0}_updateSelection(e,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(e)?e.reduce((i,a)=>(a.geometry&&i.push(a.geometry),i),[]):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){let e=this._translations.sketch&&this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._translations.select&&this._selectionLabel.indexOf(this._translations.select)>-1,s=this._selectionLabel.indexOf(this._searchResult?.name)>-1,i=this._workflowType==="SEARCH"?this._searchResult?.name:this._workflowType==="SELECT"?this._translations.select:this._translations.sketch,a=this._bufferTools.value?this._bufferTools.value.unit:this._unit,l=this._bufferTools.value&&a&&await this._bufferTools.value.getTranslatedUnit(a),r=Number.isNaN(Number(this._distance))&&this._bufferTools.value?this._bufferTools.value.distance:this._distance;this._selectionLabel=e||t||s||!this._selectionLabel?`${i} ${r} ${l}`:this._selectionLabel,this._labelName.value&&(this._labelName.value.value=this._selectionLabel)}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){let t=e.detail.reduce((s,i)=>(this.mapView&&s.push(_(this.mapView,i)),s),[]);return Promise.all(t).then(s=>{this.layerViews=s.reduce((i,a)=>(a&&i.push(a),i),[]),this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})})}}async _inputLayerSelectionChange(e){let t=e?.detail?.length>0?e.detail[0]:"";(!this.selectLayerView||t!==this.selectLayerView.layer.id)&&(this.selectLayerView=this.mapView&&await _(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;let t=this.layerViews.map(s=>(this._featuresCollection[s.layer.id]=[],I(0,s.layer,e,this._featuresCollection)));return Promise.all(t).then(async s=>{this._selectionLoading=!1;let i=[];s.forEach(n=>{Object.keys(n).forEach(h=>{i=i.concat(n[h])})});let a=!1;i.forEach(n=>{let h=n.geometry;n.symbol=h&&h.type==="point"?this.sketchPointSymbol:h&&h.type==="polyline"?this.sketchLineSymbol:h&&h.type==="polygon"?this.sketchPolygonSymbol:void 0,a=n?.layer?.hasOwnProperty("objectIdField")||n.hasOwnProperty("getObjectId")});let l=this.layerViews[0].layer,r=this.selectLayerView?.layer,c=a&&l.url===r?.url&&r?.layerId===l.layerId;await this._sketchGraphicsChanged({detail:{graphics:i,useOIDs:c}},!0)})}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}};C("map-select-tools",y);return y},"request","layers/FeatureLayer","Graphic","layers/GraphicsLayer",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as y}from"./2B4SGB3I.js";import{b as g}from"./RLSY4VUQ.js";import{nb as f}from"./AO7XKW2U.js";import{a as u}from"./E6FH6VES.js";import{b as m}from"./XTHPWGYU.js";import{H as p,K as h,h as c,i as s,l as d,q as l}from"./T3EPRHTT.js";var x=c`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`,r=class extends p{constructor(){super(...arguments),this.itemRelationshipDependencies=[],this.linkType="item",this.listSelectionMode="none",this.reuseWarning="",this.templateInfos=[],this.typeKeywords=[],this.usageContext="content",this._canDeletePermission=!1,this._dependencyTooltipContent="",this._sortedTemplateInfos=[],this._translations=u({name:"solution-item-accordion",blocking:!0}),this._configContextConsumer=g({context:y,subscribe:!0}),this._sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"],this.solutionItemHover=l(),this.solutionItemSelect=l(),this.solutionTypeHover=l()}static{this.properties={itemRelationshipDependencies:0,linkType:1,listSelectionMode:1,reuseWarning:1,templateInfos:0,typeKeywords:0,usageContext:1,_canDeletePermission:16,_dependencyTooltipContent:16,_sortedTemplateInfos:16,_translations:16}}static{this.styles=x}willUpdate(e){e.has("templateInfos")&&(this.hasUpdated||this.templateInfos?.length>0)&&this.templateInfosWatchHandler()}async templateInfosWatchHandler(){this._sortedTemplateInfos=this._sortTemplates()}async collapseAll(){this.el?.shadowRoot?.querySelectorAll("calcite-accordion-item")?.forEach(e=>{e.expanded=!1})}async deselectAll(e=!1){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.selected&&(t.selected=!1),e&&(t.parentElement?.parentElement).expanded&&((t.parentElement?.parentElement).expanded=!1)})}async expandItemById(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&((t.parentElement?.parentElement).expanded=!0)})}async expandFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&((e[0].parentElement?.parentElement).expanded=!0)}async expandItems(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&((t.parentElement?.parentElement).expanded=!0)})}async selectItem(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async selectFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&(e[0].selected=!0,(e[0].parentElement?.parentElement).expanded=!0)}async selectItems(e){this.listSelectionMode==="multiple"&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async load(){this._sortedTemplateInfos=this._sortTemplates(),this._canDeletePermission=(this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution)??!1}render(){return this._getAccordion()}_deselectOthers(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id!==e&&(t.selected=!1)})}_getAccordion(){let e=[],t=this._sortedTemplateInfos.reduce((i,n)=>{let o=this._getTypeForDisplay(n.type,n.typeKeywords);return e.indexOf(o)<0&&(e.push(o),i.push(this._getAccordionItem(n))),i},[]);return s`<calcite-accordion class="border-override" selection-mode=single>${t}</calcite-accordion>`}_getAccordionItem(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords),i=this._sortedTemplateInfos.filter(n=>this._getTypeForDisplay(n.type,n.typeKeywords)===t);return s`<calcite-accordion-item .heading=${`${t} (${i.length})`} @mouseenter=${()=>this.solutionTypeHover.emit({itemType:t,entering:!0})} @mouseleave=${()=>this.solutionTypeHover.emit({itemType:t,entering:!1})}><solution-item-icon class="padding-start-1 display-flex align-center" slot=actions-start .type=${e.type} .typeKeywords=${e.typeKeywords}></solution-item-icon>${this._getList(i)}</calcite-accordion-item>`}_getList(e){let t=this._sortTemplatesByTitle(e);return s`<calcite-list .label=${this._translations.solutionsTemplates} selection-appearance=border .selectionMode=${this.listSelectionMode}>${t.map(i=>this._getListItem(i))}</calcite-list>`}_getListItem(e){let t=this.typeKeywords.includes("Deployed")&&e.url,i=this.linkType==="action";return s`<calcite-list-item id=${e.id??d} @mouseenter=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!0})} @mouseleave=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!1})} @calciteListItemSelect=${()=>{this._deselectOthers(e.id),this.solutionItemSelect.emit({itemId:e.id,selected:!0}),t&&!i&&window.open(e.url,"_blank")}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${t&&!i?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${t&&i?s`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} .label=${this._translations?.openDetails} @click=${()=>window.open(e.url,"_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>`:null}</calcite-list-item>`}_sortTemplatesByTitle(e){return e.sort((t,i)=>t.title<i.title?-1:t.title>i.title?1:0)}_sortTemplates(){return this.templateInfos.sort((e,t)=>{let i=this._getTypeForSort(e),n=this._getTypeForSort(t),o=this._sortOrder.indexOf(i),a=this._sortOrder.indexOf(n);return o-a})}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if(e==="Feature Service"){let n=t.indexOf("View Service")>-1,o=t.indexOf("Table")>-1;i=n&&o?"Table (hosted, view)":o?"Table (hosted)":n?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return e==="Web Mapping Application"&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i=e==="Geoprocessing Service"?"Tool":i,i=e==="Feed"?"Feed (hosted)":i,i=e==="Real Time Analytic"?"Real Time Analytic (hosted)":i,i=e==="Big Data Analytic"?"Big Data Analytic (hosted)":i,i=e==="Vector Tile Service"?"Tile Layer":i,i}_getWarningChip(e,t,i,n){let o=t==="info"?"var(--calcite-color-status-info)":"var(--calcite-color-status-danger)";return s`<div slot=actions-end><calcite-chip .icon=${t==="info"?"information":"exclamation-mark-triangle"} .id=${i+"-warning"} kind=neutral .label=${e} scale=s style=${h({"--calcite-chip-icon-color":o,cursor:n&&n.length>0?"pointer":"default"})}>${e}</calcite-chip>${n&&n.length>0?s`<calcite-tooltip class=solution-list-item-content placement=bottom .referenceElement=${`${i}-warning`} scale=m @calciteTooltipBeforeOpen=${async()=>{let a={q:n.map(T=>`id:${T.dependencyItemId}`).join(" OR "),authentication:this._configContextConsumer.value?.userSession,pagingParam:{start:1,num:100}},_=await f(a);this._dependencyTooltipContent=s`<solutions-deployed-list .results=${_} .listTitle=${this._translations?.itemUsedInOtherSolutions||""}></solutions-deployed-list>`}}>${this._dependencyTooltipContent}</calcite-tooltip>`:null}</div>`}_checkUsageForWarnings(e){let t=this._configContextConsumer.value?.userSession?.username??null,i=this.itemRelationshipDependencies.filter(o=>o.controlItemId===e.id),n=i.length>0;if(this.usageContext==="content"&&n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i);if(this.usageContext==="rename"){let o=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1;if(e.owner!==t)if(o){if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}if(this.usageContext==="delete"){if(e.owner!==t)if(this._canDeletePermission){if(n)return this._getWarningChip(this._translations?.usedInOtherSolutionsDeleteWarning||"","info",e.id)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}return""}};m("solution-item-accordion",r);export{r as a};
2
+ import{b as y}from"./2B4SGB3I.js";import{b as g}from"./RLSY4VUQ.js";import{nb as f}from"./AO7XKW2U.js";import{a as u}from"./573G4DTV.js";import{b as m}from"./IPOPM3LM.js";import{H as p,K as h,h as c,i as s,l as d,q as l}from"./T3EPRHTT.js";var x=c`:host{display:block}.padding-start-1{padding-inline-start:1rem}.border-override{--calcite-accordion-border-color: var(--calcite-color-border-1) !important}.display-flex{display:flex}.align-center{align-items:center}.solution-list-item-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1)}.solution-list-item-label,.solution-list-item-description{font-family:var(--calcite-font-family);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.solution-list-item-description{font-size:var(--calcite-font-size--2);margin-block-start:.125rem;color:var(--calcite-color-text-3)}.solution-list-item-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:1.375}.underline{text-decoration:underline}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-brand)}`,r=class extends p{constructor(){super(...arguments),this.itemRelationshipDependencies=[],this.linkType="item",this.listSelectionMode="none",this.reuseWarning="",this.templateInfos=[],this.typeKeywords=[],this.usageContext="content",this._canDeletePermission=!1,this._dependencyTooltipContent="",this._sortedTemplateInfos=[],this._translations=u({name:"solution-item-accordion",blocking:!0}),this._configContextConsumer=g({context:y,subscribe:!0}),this._sortOrder=["Hub Site Application","Hub Page","Web Experience","Instant App","Web Mapping Application","Dashboard","StoryMap","Form","QuickCapture Project","Workflow","Big Data Analytic (hosted)","Real Time Analytic (hosted)","Feed (hosted)","Tool","Notebook","Data Pipeline","Project Package","Desktop Application Template","TypeNotFound","Web Map","Web Scene","Feature Layer (hosted, view)","Feature Layer (hosted)","Table (hosted, view)","Table (hosted)","Tile Layer","CSV","Microsoft Excel","Microsoft Word","Report Template","Rule Package","Group"],this.solutionItemHover=l(),this.solutionItemSelect=l(),this.solutionTypeHover=l()}static{this.properties={itemRelationshipDependencies:0,linkType:1,listSelectionMode:1,reuseWarning:1,templateInfos:0,typeKeywords:0,usageContext:1,_canDeletePermission:16,_dependencyTooltipContent:16,_sortedTemplateInfos:16,_translations:16}}static{this.styles=x}willUpdate(e){e.has("templateInfos")&&(this.hasUpdated||this.templateInfos?.length>0)&&this.templateInfosWatchHandler()}async templateInfosWatchHandler(){this._sortedTemplateInfos=this._sortTemplates()}async collapseAll(){this.el?.shadowRoot?.querySelectorAll("calcite-accordion-item")?.forEach(e=>{e.expanded=!1})}async deselectAll(e=!1){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.selected&&(t.selected=!1),e&&(t.parentElement?.parentElement).expanded&&((t.parentElement?.parentElement).expanded=!1)})}async expandItemById(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&((t.parentElement?.parentElement).expanded=!0)})}async expandFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&((e[0].parentElement?.parentElement).expanded=!0)}async expandItems(e){this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&((t.parentElement?.parentElement).expanded=!0)})}async selectItem(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id===e&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async selectFirstItem(){let e=this.el?.shadowRoot?.querySelectorAll("calcite-list-item");e?.length&&(e[0].selected=!0,(e[0].parentElement?.parentElement).expanded=!0)}async selectItems(e){this.listSelectionMode==="multiple"&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{e.indexOf(t.id)>-1&&(t.selected=!0,(t.parentElement?.parentElement).expanded=!0)})}async load(){this._sortedTemplateInfos=this._sortTemplates(),this._canDeletePermission=(this._configContextConsumer.value?.authentication?.CanDeleteSolution&&this._configContextConsumer.value?.authentication?.CanUpdateSolution)??!1}render(){return this._getAccordion()}_deselectOthers(e){(this.listSelectionMode==="single"||this.listSelectionMode==="single-persist")&&this.el?.shadowRoot?.querySelectorAll("calcite-list-item")?.forEach(t=>{t.id!==e&&(t.selected=!1)})}_getAccordion(){let e=[],t=this._sortedTemplateInfos.reduce((i,n)=>{let o=this._getTypeForDisplay(n.type,n.typeKeywords);return e.indexOf(o)<0&&(e.push(o),i.push(this._getAccordionItem(n))),i},[]);return s`<calcite-accordion class="border-override" selection-mode=single>${t}</calcite-accordion>`}_getAccordionItem(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords),i=this._sortedTemplateInfos.filter(n=>this._getTypeForDisplay(n.type,n.typeKeywords)===t);return s`<calcite-accordion-item .heading=${`${t} (${i.length})`} @mouseenter=${()=>this.solutionTypeHover.emit({itemType:t,entering:!0})} @mouseleave=${()=>this.solutionTypeHover.emit({itemType:t,entering:!1})}><solution-item-icon class="padding-start-1 display-flex align-center" slot=actions-start .type=${e.type} .typeKeywords=${e.typeKeywords}></solution-item-icon>${this._getList(i)}</calcite-accordion-item>`}_getList(e){let t=this._sortTemplatesByTitle(e);return s`<calcite-list .label=${this._translations.solutionsTemplates} selection-appearance=border .selectionMode=${this.listSelectionMode}>${t.map(i=>this._getListItem(i))}</calcite-list>`}_getListItem(e){let t=this.typeKeywords.includes("Deployed")&&e.url,i=this.linkType==="action";return s`<calcite-list-item id=${e.id??d} @mouseenter=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!0})} @mouseleave=${()=>this.solutionItemHover.emit({itemId:e.id,entering:!1})} @calciteListItemSelect=${()=>{this._deselectOthers(e.id),this.solutionItemSelect.emit({itemId:e.id,selected:!0}),t&&!i&&window.open(e.url,"_blank")}} .value=${e.id}><div class="solution-list-item-content" slot=content><div class=${`solution-list-item-label ${t&&!i?"underline":""}`}>${e.title}</div><div class="solution-list-item-description">${e.snippet}</div></div>${this._checkUsageForWarnings(e)}${t&&i?s`<div slot=actions-end><calcite-action icon=launch .id=${`${e.id}-launch`} .label=${this._translations?.openDetails} @click=${()=>window.open(e.url,"_blank")} text></calcite-action><calcite-tooltip overlay-positioning=fixed .referenceElement=${`${e.id}-launch`}><span>${this._translations?.openDetails}</span></calcite-tooltip></div>`:null}</calcite-list-item>`}_sortTemplatesByTitle(e){return e.sort((t,i)=>t.title<i.title?-1:t.title>i.title?1:0)}_sortTemplates(){return this.templateInfos.sort((e,t)=>{let i=this._getTypeForSort(e),n=this._getTypeForSort(t),o=this._sortOrder.indexOf(i),a=this._sortOrder.indexOf(n);return o-a})}_getTypeForSort(e){let t=this._getTypeForDisplay(e.type,e.typeKeywords);return this._sortOrder.indexOf(t)<0&&(t="TypeNotFound"),t}_getTypeForDisplay(e,t){let i=e;if(e==="Feature Service"){let n=t.indexOf("View Service")>-1,o=t.indexOf("Table")>-1;i=n&&o?"Table (hosted, view)":o?"Table (hosted)":n?"Feature Layer (hosted, view)":"Feature Layer (hosted)"}return e==="Web Mapping Application"&&(i=t.indexOf("configurableApp")>-1?"Instant App":i),i=e==="Geoprocessing Service"?"Tool":i,i=e==="Feed"?"Feed (hosted)":i,i=e==="Real Time Analytic"?"Real Time Analytic (hosted)":i,i=e==="Big Data Analytic"?"Big Data Analytic (hosted)":i,i=e==="Vector Tile Service"?"Tile Layer":i,i}_getWarningChip(e,t,i,n){let o=t==="info"?"var(--calcite-color-status-info)":"var(--calcite-color-status-danger)";return s`<div slot=actions-end><calcite-chip .icon=${t==="info"?"information":"exclamation-mark-triangle"} .id=${i+"-warning"} kind=neutral .label=${e} scale=s style=${h({"--calcite-chip-icon-color":o,cursor:n&&n.length>0?"pointer":"default"})}>${e}</calcite-chip>${n&&n.length>0?s`<calcite-tooltip class=solution-list-item-content placement=bottom .referenceElement=${`${i}-warning`} scale=m @calciteTooltipBeforeOpen=${async()=>{let a={q:n.map(T=>`id:${T.dependencyItemId}`).join(" OR "),authentication:this._configContextConsumer.value?.userSession,pagingParam:{start:1,num:100}},_=await f(a);this._dependencyTooltipContent=s`<solutions-deployed-list .results=${_} .listTitle=${this._translations?.itemUsedInOtherSolutions||""}></solutions-deployed-list>`}}>${this._dependencyTooltipContent}</calcite-tooltip>`:null}</div>`}_checkUsageForWarnings(e){let t=this._configContextConsumer.value?.userSession?.username??null,i=this.itemRelationshipDependencies.filter(o=>o.controlItemId===e.id),n=i.length>0;if(this.usageContext==="content"&&n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i);if(this.usageContext==="rename"){let o=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1;if(e.owner!==t)if(o){if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n&&this.reuseWarning)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}if(this.usageContext==="delete"){if(e.owner!==t)if(this._canDeletePermission){if(n)return this._getWarningChip(this._translations?.usedInOtherSolutionsDeleteWarning||"","info",e.id)}else return this._getWarningChip(this._translations?.noPrivilegeToManage||"","warn",e.id);else if(n)return this._getWarningChip(this.reuseWarning,"info",e.id,i)}return""}};m("solution-item-accordion",r);export{r as a};
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as E}from"./2D6XDWYA.js";import{a as y}from"./YUWXPLTE.js";import{a as $}from"./HKURBCD6.js";import{b as f}from"./KGXEY5HR.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{F as h,G as u,H as m,J as p,h as b,i as o,l as _,q as w}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([c,S,L])=>{var C=`
2
+ import{a as E}from"./2D6XDWYA.js";import{a as y}from"./YUWXPLTE.js";import{a as $}from"./73WHDMBB.js";import{b as f}from"./55UXOGN6.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{F as h,G as u,H as m,J as p,h as b,i as o,l as _,q as w}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([c,S,L])=>{var C=`
3
3
  @media print {
4
4
  @page {
5
5
  size: Portrait;
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as He,b as ae}from"./7CGCLEYB.js";import{a as ye}from"./US5FON7D.js";import{a as $r}from"./E6FH6VES.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{c as Kr,k as st}from"./3TAQSXLA.js";import{a as at}from"./PY6RTQDR.js";import{b as Br}from"./XTHPWGYU.js";import{H as Fr,h as Wr,q as qr}from"./T3EPRHTT.js";import{b as te,d as Vt}from"./EXBEKVP5.js";var nn=te((Wt,qt)=>{(function(t,e){typeof Wt=="object"&&typeof qt<"u"?qt.exports=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}:typeof define=="function"&&define.amd?define(function(){return function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}}):t.dlv=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}})(Wt)});var cr=te((ic,Ke)=>{function os(t,e){this.v=t,this.k=e}Ke.exports=os,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports});var lr=te((ac,me)=>{function Tt(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}me.exports=Tt=function(a,o,c,u){function f(d,m){Tt(a,d,function(g){return this._invoke(d,m,g)})}o?i?i(a,o,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[o]=c:(f("next",0),f("throw",1),f("return",2))},me.exports.__esModule=!0,me.exports.default=me.exports,Tt(t,e,r,n)}me.exports=Tt,me.exports.__esModule=!0,me.exports.default=me.exports});var fr=te((sc,ge)=>{var le=lr();function Jn(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,A,I,E){var x=A&&A.prototype instanceof o?A:o,y=Object.create(x.prototype);return le(y,"_invoke",(function(M,v,h){var P,w,b,D=0,H=h||[],L=!1,R={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(S,j){return P=S,w=0,b=t,R.n=j,a}};function z(k,S){for(w=k,b=S,e=0;!L&&D&&!j&&e<H.length;e++){var j,C=H[e],ee=R.p,l=C[2];k>3?(j=l===S)&&(b=C[(w=C[4])?5:(w=3,3)],C[4]=C[5]=t):C[0]<=ee&&((j=k<2&&ee<C[1])?(w=0,R.v=S,R.n=C[1]):ee<l&&(j=k<3||C[0]>S||S>l)&&(C[4]=k,C[5]=S,R.n=l,w=0))}if(j||k>1)return a;throw L=!0,S}return function(k,S,j){if(D>1)throw TypeError("Generator is already running");for(L&&S===1&&z(S,j),w=S,b=j;(e=w<2?t:b)||!L;){P||(w?w<3?(w>1&&(R.n=-1),z(w,b)):R.n=b:R.v=b);try{if(D=2,P){if(w||(k="next"),e=P[k]){if(!(e=e.call(P,b)))throw TypeError("iterator result is not an object");if(!e.done)return e;b=e.value,w<2&&(w=0)}else w===1&&(e=P.return)&&e.call(P),w<2&&(b=TypeError("The iterator does not provide a '"+k+"' method"),w=1);P=t}else if((e=(L=R.n<0)?b:M.call(v,R))!==a)break}catch(C){P=t,w=1,b=C}finally{D=1}}return{value:e,done:L}}})(g,I,E),!0),y}var a={};function o(){}function c(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(le(e={},n,function(){return this}),e),d=u.prototype=o.prototype=Object.create(f);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,le(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=u,le(d,"constructor",u),le(u,"constructor",c),c.displayName="GeneratorFunction",le(u,i,"GeneratorFunction"),le(d),le(d,i,"Generator"),le(d,n,function(){return this}),le(d,"toString",function(){return"[object Generator]"}),(ge.exports=Jn=function(){return{w:s,m}},ge.exports.__esModule=!0,ge.exports.default=ge.exports)()}ge.exports=Jn,ge.exports.__esModule=!0,ge.exports.default=ge.exports});var mr=te((oc,Ye)=>{var us=cr(),dr=lr();function pr(t,e){function r(i,s,a,o){try{var c=t[i](s),u=c.value;return u instanceof us?e.resolve(u.v).then(function(f){r("next",f,a,o)},function(f){r("throw",f,a,o)}):e.resolve(u).then(function(f){c.value=f,a(c)},function(f){return r("throw",f,a,o)})}catch(f){o(f)}}var n;this.next||(dr(pr.prototype),dr(pr.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(i,s,a){function o(){return new e(function(c,u){r(i,a,c,u)})}return n=n?n.then(o,o):o()},!0)}Ye.exports=pr,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports});var gr=te((uc,Xe)=>{var cs=fr(),ls=mr();function fs(t,e,r,n,i){return new ls(cs().w(t,e,r,n),i||Promise)}Xe.exports=fs,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports});var Zn=te((cc,Je)=>{var ds=gr();function ps(t,e,r,n,i){var s=ds(t,e,r,n,i);return s.next().then(function(a){return a.done?a.value:s.next()})}Je.exports=ps,Je.exports.__esModule=!0,Je.exports.default=Je.exports});var Qn=te((lc,Ze)=>{function ms(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}Ze.exports=ms,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports});var ei=te((fc,he)=>{function hr(t){"@babel/helpers - typeof";return he.exports=hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,hr(t)}he.exports=hr,he.exports.__esModule=!0,he.exports.default=he.exports});var ti=te((dc,Qe)=>{var gs=ei().default;function hs(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(gs(t)+" is not iterable")}Qe.exports=hs,Qe.exports.__esModule=!0,Qe.exports.default=Qe.exports});var ni=te((pc,ve)=>{var vs=cr(),ys=fr(),bs=Zn(),ws=gr(),Ss=mr(),Es=Qn(),ri=ti();function vr(){"use strict";var t=ys(),e=t.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(a){var o=typeof a=="function"&&a.constructor;return!!o&&(o===r||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(a){var o,c;return function(u){o||(o={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(d,m){return c(u.a,i[d],m)},delegateYield:function(d,m,g){return o.resultName=m,c(u.d,ri(d),g)},finish:function(d){return c(u.f,d)}},c=function(d,m,g){u.p=o.prev,u.n=o.next;try{return d(m,g)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return a.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ve.exports=vr=function(){return{wrap:function(c,u,f,d){return t.w(s(c),u,f,d&&d.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(c,u){return new vs(c,u)},AsyncIterator:Ss,async:function(c,u,f,d,m){return(n(u)?ws:bs)(s(c),u,f,d,m)},keys:Es,values:ri}},ve.exports.__esModule=!0,ve.exports.default=ve.exports)()}ve.exports=vr,ve.exports.__esModule=!0,ve.exports.default=ve.exports});var ai=te((mc,ii)=>{var xt=ni()();ii.exports=xt;try{regeneratorRuntime=xt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xt:Function("r","regeneratorRuntime = r")(xt)}});var yi=te((Ec,vi)=>{"use strict";var Is=function(e){return As(e)&&!Ps(e)};function As(t){return!!t&&typeof t=="object"}function Ps(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Ns(t)}var Ts=typeof Symbol=="function"&&Symbol.for,xs=Ts?Symbol.for("react.element"):60103;function Ns(t){return t.$$typeof===xs}function ks(t){return Array.isArray(t)?[]:{}}function tt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Le(ks(t),t,e):t}function js(t,e,r){return t.concat(e).map(function(n){return tt(n,r)})}function _s(t,e){if(!e.customMerge)return Le;var r=e.customMerge(t);return typeof r=="function"?r:Le}function Cs(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function gi(t){return Object.keys(t).concat(Cs(t))}function hi(t,e){try{return e in t}catch{return!1}}function Ms(t,e){return hi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ds(t,e,r){var n={};return r.isMergeableObject(t)&&gi(t).forEach(function(i){n[i]=tt(t[i],r)}),gi(e).forEach(function(i){Ms(t,i)||(hi(t,i)&&r.isMergeableObject(e[i])?n[i]=_s(i,r)(t[i],e[i],r):n[i]=tt(e[i],r))}),n}function Le(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||js,r.isMergeableObject=r.isMergeableObject||Is,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(e),i=Array.isArray(t),s=n===i;return s?n?r.arrayMerge(t,e,r):Ds(t,e,r):tt(e,r)}Le.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Le(n,i,r)},{})};var Us=Le;vi.exports=Us});function Gt(){var t;return!!(!((t=window?.navigator)===null||t===void 0)&&t.globalPrivacyControl)}function Yr(t={}){let{disabled:e,portal:r,requireConsent:n,userPrivacySettings:i}=t;if(n)if(i?.accepted){if(i?.functional===!1&&i?.performance===!1&&i?.targeting===!1)return!0}else return!0;return i?.accepted===!0&&i?.functional===!1&&i?.performance===!1&&i?.targeting===!1||e||r?.eueiEnabled===!1||Gt()?!0:!(!r||Qi(r)||ea(r)||ta(r))}function Qi(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}function ea(t){return t.user&&!t.user.orgId&&t.ipCntryCode==="US"}function ta(t){return!t.user&&t.ipCntryCode==="US"}var Pe={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch{e=this.storage[t]}if(e)try{return JSON.parse(e)}catch{return}else return},set(t,e){let r=JSON.stringify(e);try{window.localStorage.setItem(t,r)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}};var Xr="esri-telemetry";function Jr(t){return new Promise((r,n)=>{t.onload=r,t.onerror=n,(!na(t)||t.body)&&r()})}function ra(t){let{id:e,dataAttribute:r}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${Xr}="${r}"]`)}function na(t){let{body:e,src:r,id:n,dataAttribute:i,section:s="body",type:a="text/javascript",async:o=!1,defer:c=!1,onload:u,onerror:f}=t;if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");if(ra(t)){console.log(`script (${n||i}) is already present, skipping`);return}let d=ia({id:n,dataAttribute:i,type:a,async:o,defer:c,body:e,src:r,onload:u,onerror:f});return s==="body"?document.body.appendChild(d):document.head.appendChild(d)}var Ve=class extends Error{};function ia({id:t,dataAttribute:e,type:r,async:n,defer:i,body:s,src:a,onload:o,onerror:c}){let u=document.createElement("script");return t&&(u.id=t),e&&u.setAttribute(`data-${Xr}`,e),a&&(u.src=a),s&&(u.innerText=s),u.type=r,u.async=n,u.defer=i,o&&(u.onload=o),c&&(u.onerror=c),u}function Zr(t){return t.map(e=>{let r=[];return["src","id","dataAttribute","type"].forEach(n=>{let i=n;n==="dataAttribute"&&(i="data-esri-telemetry"),e[n]&&r.push(`${i}="${e[n]}"`)}),["async","defer"].forEach(n=>{e[n]&&r.push(`${n}`)}),`<script ${r.join(" ")}>${e.body?e.body:""}<\/script>`}).join("")}var aa=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],ot=class{constructor(e){var r,n,i;this.trackers=[],this.options=e,this.debug=e.debug,this.suppressDisabledWarnings=e.suppressDisabledWarnings,this.logger=e.logger||console,e.userPrivacySettings&&(this._userPrivacySettings=e.userPrivacySettings),e.requireConsent&&!e.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:ua(),timestamp:Date.now()},e.userPrivacySettings=this._userPrivacySettings),this.disabled=Yr(e),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let s=((r=e.portal)===null||r===void 0?void 0:r.user)||e.user;s&&this.setUser(s,(i=(n=e.portal)===null||n===void 0?void 0:n.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(e,r,n){let i=!r&&!e?.accepted,s=n.every(a=>e?.[a]);return i||s}filterTrackers(e){return this.options.plugins.filter(r=>e.includes(r.name))}initializeTrackers(){let e=this._userPrivacySettings,r=this.options.requireConsent;this.trackers=[],this.options.plugins&&(e?(this.shouldInitializeTrackers(e,r,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(e,r,["performance","targeting","functional"])&&this.trackers.push(...this.filterTrackers(["adobe-analytics","googleAnalytics","siteimprove"]))):this.trackers.push(...this.options.plugins)),this.trackers.length||this.logger.info("No trackers configured")}getScriptTags(){return this.trackers.map(e=>e.getScriptTags&&e.getScriptTags()).join("")}async init(){let e=this.trackers.map(r=>r.init());await Promise.all(e)}setUser(e={},r="Public"){e=typeof e=="string"?{username:e}:e,this.user=e,this.user.accountType=r;let n;if(e.email&&e.email.split){let i=e.email.split("@")[1];n=aa.filter(s=>i===s).length>0}(n||["In House","Demo and Marketing"].indexOf(r)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(e){let{accepted:r,performance:n,targeting:i,functional:s}=this._userPrivacySettings,a=e.accepted&&!r&&!this.options.requireConsent&&(!e.performance||!e.targeting||!e.functional)||!e.performance&&n||!e.targeting&&i||!e.functional&&s;return this._userPrivacySettings=e,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(e,r={},n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:o,hasError:c})=>!o&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let s=this.preProcess(r,n);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));let a=i.map(o=>o.logPageView(e,s));return Promise.all(a).then(),!0}logEvent(e,r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let n=this.trackers.filter(({disabled:a,hasError:o})=>!a&&!o);if(!n.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(e,r);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let s=n.map(a=>a.logEvent(i));return Promise.all(s).then(),!0}logError(e={}){e=Object.assign({eventType:"error"},e),this.logEvent(e)}startWorkflow(e,r={}){let n={name:e,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(n);let i=Object.assign({name:e,step:"start"},r);return this.logWorkflow(i),n}stepWorkflow(e,r,n={}){let i=typeof n=="string"?n:n.details,s=Object.assign({name:e,step:r,details:i},n);this.logWorkflow(s)}endWorkflow(e,r={}){let n=Object.assign({name:e,step:"finish"},r);this.logWorkflow(n)}cancelWorkflow(e,r={}){let n=Object.assign({name:e,step:"cancel"},r);this.logWorkflow(n)}getWorkflow(e){let r=Pe.get(`TELEMETRY-WORKFLOW:${e}`);if(r){let n=Date.now()-r.start,i=1800*1e3;if(n<i)return r;this.deleteWorkflow(r)}}saveWorkflow(e){Pe.set(`TELEMETRY-WORKFLOW:${e.name}`,e)}deleteWorkflow(e){Pe.delete(`TELEMETRY-WORKFLOW:${e.name}`)}logWorkflow(e={}){e=this.preProcess(e);let r=this.getWorkflow(e.name);r||(this.startWorkflow(e.name),r=this.getWorkflow(e.name)),r.steps.push(e.step),r.duration=(Date.now()-r.start)/1e3,["cancel","finish"].indexOf(e.step)>-1?this.deleteWorkflow(r):this.saveWorkflow(r);let n=Object.assign(e,{eventType:"workflow",category:e.name,action:e.step,label:e.details,duration:r.duration,workflowId:r.workflowId});this.logEvent(n)}preProcess(e={},r={}){let n={};return this.user&&(n={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},e),n)).reduce(sa(r.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(e=>{var r;e.hasError||(e.disabled=!0,(r=e.disable)===null||r===void 0||r.call(e))})}disableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!0,(r=n.disable)===null||r===void 0||r.call(n))}enableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!1,(r=n.enable)===null||r===void 0||r.call(n))}};function sa(t,e){return function(r,[n,i]){return oa(i)?r[n]=i:t||(e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`),r[n]=i),r}}function oa(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&typeof t.valueOf()=="string"}function ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var ut=class{constructor(e){var r;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((r=e?.measurementIds)===null||r===void 0)&&r.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,e)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Zr(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(e=>Jr(e))),this.injectConfig(),this.isInitialized=!0}}logPageView(e,r={}){let n=this.buildCustomParams(r),i=Object.assign({page_title:e||window.location.pathname},n);return window.gtag("event","page_view",i),!0}logEvent(e){let{action:r}=e,n=at(e,["action"]),i=r||"other",s=this.buildCustomParams(n);return window.gtag("event",i,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let e={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(r=>{window.gtag("config",r,e)})}buildCustomParams(e){let r,{category:n,label:i}=e;return r=this.verifyCustomDimensionAndMetrics(e),n&&(r=Object.assign(Object.assign({},r),{event_category:n})),i&&(r=Object.assign(Object.assign({},r),{event_label:i})),r}verifyCustomDimensionAndMetrics(e){let r=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),n=Object.values(r);return Object.keys(e).filter(s=>n.includes(s)).reduce((s,a)=>Object.assign(s,{[a]:e[a]}),{})}createDimensionsAndMetricsCustomMap(e={},r={}){let n=this.createMetricCustomMap(r),i=this.createDimensionCustomMap(e);return Object.assign(Object.assign({},n),i)}createMetricCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`metric${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}createDimensionCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`dimension${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}};var Qr="TELEMETRY_COGNITO_CREDENTIALS";function en(t,e={}){let n=`https://cognito-identity${e.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,i=Pe.get(Qr);if(i&&Date.now()/1e3<i.Expiration)return Promise.resolve(i);let s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:t})};return fetch(n,s).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(a=>{let{IdentityId:o}=a,c={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:o})};return fetch(n,c)}).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(({Credentials:a})=>(Pe.set(Qr,a),a))}function ct({telemetryData:t,dimensionLookup:e={},excludeKeys:r=[]}){return Object.keys(t).filter(n=>!r.includes(n)).map(n=>e[n]?{key:la(e,n),value:t[n]}:{key:n,value:ca(t,n)}).reduce((n,{key:i,value:s})=>(n[i]=s,n),{})}function ca(t,e){return e==="json"?t[e]?JSON.stringify(t[e]):"null":t[e]===void 0?"null":t[e].toString()}function la(t,e){return`dimension${t[e]}`}var fa=["size","duration","position","number","count"];function lt(t,e={}){return Object.keys(t).filter(r=>e[r]||fa.includes(r)).map(r=>e[r]?{key:da(e,r),value:t[r]}:{key:r,value:t[r]}).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}function da(t,e){return`metric${t[e]}`}function tn({event:t={},dimensionLookup:e={},metricLookup:r={}}){var n,i;let{pathname:s,eventType:a="other"}=t,o=lt(t,r),c=ct({telemetryData:Object.assign({eventType:a},t),dimensionLookup:e,excludeKeys:["workflow","pathname",...Object.keys(o),...Object.keys(r)]}),u=Object.assign(Object.assign({name:a},c),o);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(n=window.location)===null||n===void 0?void 0:n.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:s,u}function rn({page:t,previousPage:e={},options:r={},dimensionLookup:n={},metricLookup:i={}}){let s=lt(r,i),a=ct({telemetryData:r,dimensionLookup:n,excludeKeys:["workflow",...Object.keys(s),...Object.keys(i)]}),{referrer:o,title:c}=document||{},{hostname:u,pathname:f}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:o,hostname:u,path:t||f,pageUrl:t||f,pageName:c,previousPageUrl:e.pageUrl,previousPageName:e.pageName},a),s)}var gt=Vt(nn(),1);var pa="function",ma="string",ne="undefined",ga="boolean",_e="object",ha="array",va="number",ya="symbol",ba="null";var an=function(){},Ft="any",Bt="*";var de="__",wa="form",Sa="input",Ea="button",Oa="select";var ft=typeof process!==ne?process:{},vu=ft.env&&ft.env.NODE_ENV||"";var re=typeof document!==ne,yu=re&&window.location.hostname==="localhost",bu=ft.versions!=null&&ft.versions.node!=null,wu=typeof Deno!==ne&&typeof Deno.core!==ne,Su=typeof self===_e&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Eu=re&&window.name==="nodejs"||typeof navigator!==ne&&typeof navigator.userAgent!==ne&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function sn(t,e){return e.charAt(0)[t]()+e.slice(1)}var Ia=sn.bind(null,"toUpperCase"),Aa=sn.bind(null,"toLowerCase");function Pa(t){return un(t)?Ia(ba):typeof t===_e?Na(t):Object.prototype.toString.call(t).slice(8,-1)}function dt(t,e){e===void 0&&(e=!0);var r=Pa(t);return e?Aa(r):r}function Ge(t,e){return typeof e===t}var Y=Ge.bind(null,pa),ie=Ge.bind(null,ma),Te=Ge.bind(null,ne);var on=Ge.bind(null,ga),Ou=Ge.bind(null,ya);function un(t){return t===null}function Ta(t){return dt(t)===va&&!isNaN(t)}function $t(t){return dt(t)===ha}function K(t){if(!xa(t))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t){return t&&(typeof t===_e||t!==null)}function Na(t){return Y(t.constructor)?t.constructor.name:null}function ka(t){return t instanceof Error||ie(t.message)&&t.constructor&&Ta(t.constructor.stackTraceLimit)}function cn(t,e){if(typeof e!="object"||un(e))return!1;if(e instanceof t)return!0;var r=dt(new t(""));if(ka(e))for(;e;){if(dt(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}var Iu=cn.bind(null,TypeError),Au=cn.bind(null,SyntaxError);function pt(t,e){var r=t instanceof Element||t instanceof HTMLDocument;return r&&e?ja(t,e):r}function ja(t,e){return e===void 0&&(e=""),t&&t.nodeName===e.toUpperCase()}function mt(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}var Pu=mt(pt,wa),Tu=mt(pt,Ea),xu=mt(pt,Sa),Nu=mt(pt,Oa);function ln(t){return t?$t(t)?t:[t]:[]}function fn(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function dn(t){return(function(e){for(var r,n=Object.create(null),i=/([^&=]+)=?([^&]*)/g;r=i.exec(e);){var s=fn(r[1]),a=fn(r[2]);if(s)if(s.substring(s.length-2)==="[]"){var o=n[s=s.substring(0,s.length-2)]||(n[s]=[]);n[s]=Array.isArray(o)?o:[],n[s].push(a)}else n[s]=a===""||a}for(var c in n){var u=c.split("[");u.length>1&&(_a(n,u.map(function(f){return f.replace(/[?[\]\\ ]/g,"")}),n[c]),delete n[c])}return n})((function(e){if(e){var r=e.match(/\?(.*)/);return r&&r[1]?r[1].split("#")[0]:""}return re&&window.location.search.substring(1)})(t))}function _a(t,e,r){for(var n=e.length-1,i=0;i<n;++i){var s=e[i];if(s==="__proto__"||s==="constructor")break;s in t||(t[s]={}),t=t[s]}t[e[n]]=r}function oe(){for(var t="",e=0,r=4294967295*Math.random()|0;e++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&r;t+=n=="-"||n=="4"?n:(n=="x"?i:3&i|8).toString(16),r=e%8==0?4294967295*Math.random()|0:r>>4}return t}var be="global",xe=de+be+de,Ne=typeof self===_e&&self.self===self&&self||typeof global===_e&&global[be]===global&&global||void 0;function X(t){return Ne[xe][t]}function J(t,e){return Ne[xe][t]=e}function se(t){delete Ne[xe][t]}function we(t,e,r){var n;try{if(We(t)){var i=window[t];n=i[e].bind(i)}}catch{}return n||r}Ne[xe]||(Ne[xe]={});var ht={};function We(t){if(typeof ht[t]!==ne)return ht[t];try{var e=window[t];e.setItem(ne,ne),e.removeItem(ne)}catch{return ht[t]=!1}return ht[t]=!0}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},T.apply(null,arguments)}var Ee="function",pe="undefined",Fe="reducer",jn="@@redux/",Zt=jn+"INIT",Ca=jn+Math.random().toString(36),pn=(function(){return typeof Symbol===Ee&&Symbol.observable||"@@observable"})(),vt=" != "+Ee;function _n(t,e,r){var n;if(typeof e===Ee&&typeof r===pe&&(r=e,e=void 0),typeof r!==pe){if(typeof r!==Ee)throw new Error("enhancer"+vt);return r(_n)(t,e)}if(typeof t!==Ee)throw new Error(Fe+vt);var i=t,s=e,a=[],o=a,c=!1;function u(){o===a&&(o=a.slice())}function f(){return s}function d(g){if(typeof g!==Ee)throw new Error("Listener"+vt);var A=!0;return u(),o.push(g),function(){if(A){A=!1,u();var I=o.indexOf(g);o.splice(I,1)}}}function m(g){if(!K(g))throw new Error("Act != obj");if(typeof g.type===pe)throw new Error("ActType "+pe);if(c)throw new Error("Dispatch in "+Fe);try{c=!0,s=i(s,g)}finally{c=!1}for(var A=a=o,I=0;I<A.length;I++)(0,A[I])();return g}return m({type:Zt}),(n={dispatch:m,subscribe:d,getState:f,replaceReducer:function(g){if(typeof g!==Ee)throw new Error("next "+Fe+vt);i=g,m({type:Zt})}})[pn]=function(){var g,A=d;return(g={subscribe:function(I){if(typeof I!="object")throw new TypeError("Observer != obj");function E(){I.next&&I.next(f())}return E(),{unsubscribe:A(E)}}})[pn]=function(){return this},g},n}function Ma(t,e){var r=e&&e.type;return"action "+(r&&r.toString()||"?")+Fe+" "+t+" returns "+pe}function Ue(){var t=[].slice.call(arguments);return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,r){return function(){return e(r.apply(void 0,[].slice.call(arguments)))}})}function Da(){var t=arguments;return function(e){return function(r,n,i){var s,a=e(r,n,i),o=a.dispatch,c={getState:a.getState,dispatch:function(u){return o(u)}};return s=[].slice.call(t).map(function(u){return u(c)}),T({},a,{dispatch:o=Ue.apply(void 0,s)(a.dispatch)})}}}var Oe=de+"anon_id",ke=de+"user_id",Me=de+"user_traits";var Qt="analytics",Se="userId",Ce="anonymousId",wt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],er=["name","EVENTS","config","loaded"],N=wt.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),mn=/^utm_/,gn=/^an_prop_/,hn=/^an_trait_/;function Ua(t){var e=t.storage.setItem;return function(r){return function(n){return function(i){if(i.type===N.bootstrap){var s=i.params,a=i.user,o=i.persistedUser,c=i.initialUser,u=o.userId===a.userId;o.anonymousId!==a.anonymousId&&e(Oe,a.anonymousId),u||e(ke,a.userId),c.traits&&e(Me,T({},u&&o.traits?o.traits:{},c.traits));var f=Object.keys(i.params);if(f.length){var d=s.an_uid,m=s.an_event,g=f.reduce(function(A,I){if(I.match(mn)||I.match(/^(d|g)clid/)){var E=I.replace(mn,"");A.campaign[E==="campaign"?"name":E]=s[I]}return I.match(gn)&&(A.props[I.replace(gn,"")]=s[I]),I.match(hn)&&(A.traits[I.replace(hn,"")]=s[I]),A},{campaign:{},props:{},traits:{}});r.dispatch(T({type:N.params,raw:s},g,d?{userId:d}:{})),d&&setTimeout(function(){return t.identify(d,g.traits)},0),m&&setTimeout(function(){return t.track(m,g.props)},0),Object.keys(g.campaign).length&&r.dispatch({type:N.campaign,campaign:g.campaign})}}return n(i)}}}}function Ra(t){return function(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),r.type===N.setItemEnd){if(r.key===Oe)return T({},e,{anonymousId:r.value});if(r.key===ke)return T({},e,{userId:r.value})}switch(r.type){case N.identify:return Object.assign({},e,{userId:r.userId,traits:T({},e.traits,r.traits)});case N.reset:return[ke,Oe,Me].forEach(function(n){t.removeItem(n)}),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function vn(t){return{userId:t.getItem(ke),anonymousId:t.getItem(Oe),traits:t.getItem(Me)}}var tr=function(t){return de+"TEMP"+de+t};function za(t){var e=t.storage,r=e.setItem,n=e.removeItem,i=e.getItem;return function(s){return function(a){return function(o){var c=o.userId,u=o.traits,f=o.options;if(o.type===N.reset&&([ke,Me,Oe].forEach(function(g){n(g)}),[Se,Ce,"traits"].forEach(function(g){se(tr(g))})),o.type===N.identify){i(Oe)||r(Oe,oe());var d=i(ke),m=i(Me)||{};d&&d!==c&&s.dispatch({type:N.userIdChanged,old:{userId:d,traits:m},new:{userId:c,traits:u},options:f}),c&&r(ke,c),u&&r(Me,T({},m,u))}return a(o)}}}}var qe={};function yn(t,e){qe[t]&&Y(qe[t])&&(qe[t](e),delete qe[t])}function Cn(t,e,r){return new Promise(function(n,i){return e()?n(t):r<1?i(T({},t,{queue:!0})):new Promise(function(s){return setTimeout(s,10)}).then(function(s){return Cn(t,e,r-10).then(n,i)})})}function La(t){return{abort:t}}var Kt=function(t){var e=t.data,r=t.action,n=t.instance,i=t.state,s=t.allPlugins,a=t.allMatches,o=t.store,c=t.EVENTS;try{var u=i.plugins,f=i.context,d=r.type,m=d.match(De),g=e.exact.map(function(E){return E.pluginName});m&&(g=a.during.map(function(E){return E.pluginName}));var A=(function(E,x){return function(y,M,v){var h=M.config,P=M.name,w=P+"."+y.type;v&&(w=v.event);var b=y.type.match(De)?(function(D,H,L,R,z){return function(k,S){var j=R?R.name:D,C=S&&Be(S)?S:L;if(R&&(!(C=S&&Be(S)?S:[D]).includes(D)||C.length!==1))throw new Error("Method "+H+" can only abort "+D+" plugin. "+JSON.stringify(C)+" input valid");return T({},z,{abort:{reason:k,plugins:C,caller:H,_:j}})}})(P,w,x,v,y):(function(D,H){return function(){throw new Error(D.type+" action not cancellable. Remove abort in "+H)}})(y,w);return{payload:Ha(y),instance:E,config:h||{},abort:b}}})(n,g),I=e.exact.reduce(function(E,x){var y=x.pluginName,M=x.methodName,v=!1;return M.match(/^initialize/)||M.match(/^reset/)||(v=!u[y].loaded),f.offline&&M.match(/^(page|track|identify)/)&&(v=!0),E[""+y]=v,E},{});return Promise.resolve(e.exact.reduce(function(E,x,y){var M=x.pluginName;return Promise.resolve(E).then(function(v){function h(){return Promise.resolve(v)}var P=(function(){if(e.namespaced&&e.namespaced[M])return Promise.resolve(e.namespaced[M].reduce(function(w,b,D){return Promise.resolve(w).then(function(H){return b.method&&Y(b.method)?((function(k,S){var j=An(k);if(j&&j.name===S){var C=An(j.method);throw new Error([S+" plugin is calling method "+k,"Plugins cant call self","Use "+j.method+" "+(C?"or "+C.method:"")+" in "+S+" plugin insteadof "+k].join(`
2
+ import{a as He,b as ae}from"./7CGCLEYB.js";import{a as ye}from"./US5FON7D.js";import{a as $r}from"./573G4DTV.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import{c as Kr,k as st}from"./3TAQSXLA.js";import{a as at}from"./PY6RTQDR.js";import{b as Br}from"./IPOPM3LM.js";import{H as Fr,h as Wr,q as qr}from"./T3EPRHTT.js";import{b as te,d as Vt}from"./EXBEKVP5.js";var nn=te((Wt,qt)=>{(function(t,e){typeof Wt=="object"&&typeof qt<"u"?qt.exports=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}:typeof define=="function"&&define.amd?define(function(){return function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}}):t.dlv=function(r,n,i,s,a){for(n=n.split?n.split("."):n,s=0;s<n.length;s++)r=r?r[n[s]]:a;return r===a?i:r}})(Wt)});var cr=te((ic,Ke)=>{function os(t,e){this.v=t,this.k=e}Ke.exports=os,Ke.exports.__esModule=!0,Ke.exports.default=Ke.exports});var lr=te((ac,me)=>{function Tt(t,e,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}me.exports=Tt=function(a,o,c,u){function f(d,m){Tt(a,d,function(g){return this._invoke(d,m,g)})}o?i?i(a,o,{value:c,enumerable:!u,configurable:!u,writable:!u}):a[o]=c:(f("next",0),f("throw",1),f("return",2))},me.exports.__esModule=!0,me.exports.default=me.exports,Tt(t,e,r,n)}me.exports=Tt,me.exports.__esModule=!0,me.exports.default=me.exports});var fr=te((sc,ge)=>{var le=lr();function Jn(){var t,e,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function s(g,A,I,E){var x=A&&A.prototype instanceof o?A:o,y=Object.create(x.prototype);return le(y,"_invoke",(function(M,v,h){var P,w,b,D=0,H=h||[],L=!1,R={p:0,n:0,v:t,a:z,f:z.bind(t,4),d:function(S,j){return P=S,w=0,b=t,R.n=j,a}};function z(k,S){for(w=k,b=S,e=0;!L&&D&&!j&&e<H.length;e++){var j,C=H[e],ee=R.p,l=C[2];k>3?(j=l===S)&&(b=C[(w=C[4])?5:(w=3,3)],C[4]=C[5]=t):C[0]<=ee&&((j=k<2&&ee<C[1])?(w=0,R.v=S,R.n=C[1]):ee<l&&(j=k<3||C[0]>S||S>l)&&(C[4]=k,C[5]=S,R.n=l,w=0))}if(j||k>1)return a;throw L=!0,S}return function(k,S,j){if(D>1)throw TypeError("Generator is already running");for(L&&S===1&&z(S,j),w=S,b=j;(e=w<2?t:b)||!L;){P||(w?w<3?(w>1&&(R.n=-1),z(w,b)):R.n=b:R.v=b);try{if(D=2,P){if(w||(k="next"),e=P[k]){if(!(e=e.call(P,b)))throw TypeError("iterator result is not an object");if(!e.done)return e;b=e.value,w<2&&(w=0)}else w===1&&(e=P.return)&&e.call(P),w<2&&(b=TypeError("The iterator does not provide a '"+k+"' method"),w=1);P=t}else if((e=(L=R.n<0)?b:M.call(v,R))!==a)break}catch(C){P=t,w=1,b=C}finally{D=1}}return{value:e,done:L}}})(g,I,E),!0),y}var a={};function o(){}function c(){}function u(){}e=Object.getPrototypeOf;var f=[][n]?e(e([][n]())):(le(e={},n,function(){return this}),e),d=u.prototype=o.prototype=Object.create(f);function m(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,u):(g.__proto__=u,le(g,i,"GeneratorFunction")),g.prototype=Object.create(d),g}return c.prototype=u,le(d,"constructor",u),le(u,"constructor",c),c.displayName="GeneratorFunction",le(u,i,"GeneratorFunction"),le(d),le(d,i,"Generator"),le(d,n,function(){return this}),le(d,"toString",function(){return"[object Generator]"}),(ge.exports=Jn=function(){return{w:s,m}},ge.exports.__esModule=!0,ge.exports.default=ge.exports)()}ge.exports=Jn,ge.exports.__esModule=!0,ge.exports.default=ge.exports});var mr=te((oc,Ye)=>{var us=cr(),dr=lr();function pr(t,e){function r(i,s,a,o){try{var c=t[i](s),u=c.value;return u instanceof us?e.resolve(u.v).then(function(f){r("next",f,a,o)},function(f){r("throw",f,a,o)}):e.resolve(u).then(function(f){c.value=f,a(c)},function(f){return r("throw",f,a,o)})}catch(f){o(f)}}var n;this.next||(dr(pr.prototype),dr(pr.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),dr(this,"_invoke",function(i,s,a){function o(){return new e(function(c,u){r(i,a,c,u)})}return n=n?n.then(o,o):o()},!0)}Ye.exports=pr,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports});var gr=te((uc,Xe)=>{var cs=fr(),ls=mr();function fs(t,e,r,n,i){return new ls(cs().w(t,e,r,n),i||Promise)}Xe.exports=fs,Xe.exports.__esModule=!0,Xe.exports.default=Xe.exports});var Zn=te((cc,Je)=>{var ds=gr();function ps(t,e,r,n,i){var s=ds(t,e,r,n,i);return s.next().then(function(a){return a.done?a.value:s.next()})}Je.exports=ps,Je.exports.__esModule=!0,Je.exports.default=Je.exports});var Qn=te((lc,Ze)=>{function ms(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in e)return i.value=n,i.done=!1,i;return i.done=!0,i}}Ze.exports=ms,Ze.exports.__esModule=!0,Ze.exports.default=Ze.exports});var ei=te((fc,he)=>{function hr(t){"@babel/helpers - typeof";return he.exports=hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},he.exports.__esModule=!0,he.exports.default=he.exports,hr(t)}he.exports=hr,he.exports.__esModule=!0,he.exports.default=he.exports});var ti=te((dc,Qe)=>{var gs=ei().default;function hs(t){if(t!=null){var e=t[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw new TypeError(gs(t)+" is not iterable")}Qe.exports=hs,Qe.exports.__esModule=!0,Qe.exports.default=Qe.exports});var ni=te((pc,ve)=>{var vs=cr(),ys=fr(),bs=Zn(),ws=gr(),Ss=mr(),Es=Qn(),ri=ti();function vr(){"use strict";var t=ys(),e=t.m(vr),r=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function n(a){var o=typeof a=="function"&&a.constructor;return!!o&&(o===r||(o.displayName||o.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function s(a){var o,c;return function(u){o||(o={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(d,m){return c(u.a,i[d],m)},delegateYield:function(d,m,g){return o.resultName=m,c(u.d,ri(d),g)},finish:function(d){return c(u.f,d)}},c=function(d,m,g){u.p=o.prev,u.n=o.next;try{return d(m,g)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return a.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ve.exports=vr=function(){return{wrap:function(c,u,f,d){return t.w(s(c),u,f,d&&d.reverse())},isGeneratorFunction:n,mark:t.m,awrap:function(c,u){return new vs(c,u)},AsyncIterator:Ss,async:function(c,u,f,d,m){return(n(u)?ws:bs)(s(c),u,f,d,m)},keys:Es,values:ri}},ve.exports.__esModule=!0,ve.exports.default=ve.exports)()}ve.exports=vr,ve.exports.__esModule=!0,ve.exports.default=ve.exports});var ai=te((mc,ii)=>{var xt=ni()();ii.exports=xt;try{regeneratorRuntime=xt}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xt:Function("r","regeneratorRuntime = r")(xt)}});var yi=te((Ec,vi)=>{"use strict";var Is=function(e){return As(e)&&!Ps(e)};function As(t){return!!t&&typeof t=="object"}function Ps(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Ns(t)}var Ts=typeof Symbol=="function"&&Symbol.for,xs=Ts?Symbol.for("react.element"):60103;function Ns(t){return t.$$typeof===xs}function ks(t){return Array.isArray(t)?[]:{}}function tt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Le(ks(t),t,e):t}function js(t,e,r){return t.concat(e).map(function(n){return tt(n,r)})}function _s(t,e){if(!e.customMerge)return Le;var r=e.customMerge(t);return typeof r=="function"?r:Le}function Cs(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function gi(t){return Object.keys(t).concat(Cs(t))}function hi(t,e){try{return e in t}catch{return!1}}function Ms(t,e){return hi(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ds(t,e,r){var n={};return r.isMergeableObject(t)&&gi(t).forEach(function(i){n[i]=tt(t[i],r)}),gi(e).forEach(function(i){Ms(t,i)||(hi(t,i)&&r.isMergeableObject(e[i])?n[i]=_s(i,r)(t[i],e[i],r):n[i]=tt(e[i],r))}),n}function Le(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||js,r.isMergeableObject=r.isMergeableObject||Is,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(e),i=Array.isArray(t),s=n===i;return s?n?r.arrayMerge(t,e,r):Ds(t,e,r):tt(e,r)}Le.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,i){return Le(n,i,r)},{})};var Us=Le;vi.exports=Us});function Gt(){var t;return!!(!((t=window?.navigator)===null||t===void 0)&&t.globalPrivacyControl)}function Yr(t={}){let{disabled:e,portal:r,requireConsent:n,userPrivacySettings:i}=t;if(n)if(i?.accepted){if(i?.functional===!1&&i?.performance===!1&&i?.targeting===!1)return!0}else return!0;return i?.accepted===!0&&i?.functional===!1&&i?.performance===!1&&i?.targeting===!1||e||r?.eueiEnabled===!1||Gt()?!0:!(!r||Qi(r)||ea(r)||ta(r))}function Qi(t){return t.eueiEnabled&&t.user&&t.user.orgId===t.id}function ea(t){return t.user&&!t.user.orgId&&t.ipCntryCode==="US"}function ta(t){return!t.user&&t.ipCntryCode==="US"}var Pe={storage:{},memory:!0,get(t){let e;try{e=window.localStorage&&window.localStorage.getItem(t)||this.storage[t]}catch{e=this.storage[t]}if(e)try{return JSON.parse(e)}catch{return}else return},set(t,e){let r=JSON.stringify(e);try{window.localStorage.setItem(t,r)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),this.storage[t]=e}},delete(t){try{window.localStorage.removeItem(t)}catch{this.memory||(console.error("setting local storage failed, falling back to in-memory storage"),this.memory=!0),delete this.storage[t]}}};var Xr="esri-telemetry";function Jr(t){return new Promise((r,n)=>{t.onload=r,t.onerror=n,(!na(t)||t.body)&&r()})}function ra(t){let{id:e,dataAttribute:r}=t;return!!document.getElementById(e)||!!document.querySelector(`[data-${Xr}="${r}"]`)}function na(t){let{body:e,src:r,id:n,dataAttribute:i,section:s="body",type:a="text/javascript",async:o=!1,defer:c=!1,onload:u,onerror:f}=t;if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");if(ra(t)){console.log(`script (${n||i}) is already present, skipping`);return}let d=ia({id:n,dataAttribute:i,type:a,async:o,defer:c,body:e,src:r,onload:u,onerror:f});return s==="body"?document.body.appendChild(d):document.head.appendChild(d)}var Ve=class extends Error{};function ia({id:t,dataAttribute:e,type:r,async:n,defer:i,body:s,src:a,onload:o,onerror:c}){let u=document.createElement("script");return t&&(u.id=t),e&&u.setAttribute(`data-${Xr}`,e),a&&(u.src=a),s&&(u.innerText=s),u.type=r,u.async=n,u.defer=i,o&&(u.onload=o),c&&(u.onerror=c),u}function Zr(t){return t.map(e=>{let r=[];return["src","id","dataAttribute","type"].forEach(n=>{let i=n;n==="dataAttribute"&&(i="data-esri-telemetry"),e[n]&&r.push(`${i}="${e[n]}"`)}),["async","defer"].forEach(n=>{e[n]&&r.push(`${n}`)}),`<script ${r.join(" ")}>${e.body?e.body:""}<\/script>`}).join("")}var aa=["esri.com","esriuk.com","esri.de","esri.ca","esrifrance.fr","esri.nl","esri-portugal.pt","esribulgaria.com","esri.fi","esri.kr","esrimalaysia.com.my","esri.es","esriaustralia.com.au","esri-southafrica.com","esri.cl","esrichina.com.cn","esri.co","esriturkey.com.tr","geodata.no","esriitalia.it","esri.pl"],ot=class{constructor(e){var r,n,i;this.trackers=[],this.options=e,this.debug=e.debug,this.suppressDisabledWarnings=e.suppressDisabledWarnings,this.logger=e.logger||console,e.userPrivacySettings&&(this._userPrivacySettings=e.userPrivacySettings),e.requireConsent&&!e.userPrivacySettings&&(this._userPrivacySettings={accepted:!1,performance:!1,targeting:!1,functional:!1,id:ua(),timestamp:Date.now()},e.userPrivacySettings=this._userPrivacySettings),this.disabled=Yr(e),this.disabled&&!this.suppressDisabledWarnings&&this.logger.info("Telemetry Disabled");let s=((r=e.portal)===null||r===void 0?void 0:r.user)||e.user;s&&this.setUser(s,(i=(n=e.portal)===null||n===void 0?void 0:n.subscriptionInfo)===null||i===void 0?void 0:i.type),this.disabled||this.initializeTrackers()}shouldInitializeTrackers(e,r,n){let i=!r&&!e?.accepted,s=n.every(a=>e?.[a]);return i||s}filterTrackers(e){return this.options.plugins.filter(r=>e.includes(r.name))}initializeTrackers(){let e=this._userPrivacySettings,r=this.options.requireConsent;this.trackers=[],this.options.plugins&&(e?(this.shouldInitializeTrackers(e,r,["performance"])&&this.trackers.push(...this.filterTrackers(["amazon"])),this.shouldInitializeTrackers(e,r,["performance","targeting","functional"])&&this.trackers.push(...this.filterTrackers(["adobe-analytics","googleAnalytics","siteimprove"]))):this.trackers.push(...this.options.plugins)),this.trackers.length||this.logger.info("No trackers configured")}getScriptTags(){return this.trackers.map(e=>e.getScriptTags&&e.getScriptTags()).join("")}async init(){let e=this.trackers.map(r=>r.init());await Promise.all(e)}setUser(e={},r="Public"){e=typeof e=="string"?{username:e}:e,this.user=e,this.user.accountType=r;let n;if(e.email&&e.email.split){let i=e.email.split("@")[1];n=aa.filter(s=>i===s).length>0}(n||["In House","Demo and Marketing"].indexOf(r)>-1)&&(this.user.internalUser=!0)}async updateUserPrivacySettings(e){let{accepted:r,performance:n,targeting:i,functional:s}=this._userPrivacySettings,a=e.accepted&&!r&&!this.options.requireConsent&&(!e.performance||!e.targeting||!e.functional)||!e.performance&&n||!e.targeting&&i||!e.functional&&s;return this._userPrivacySettings=e,a||(this.disabled=!1,this.initializeTrackers(),await this.init()),{reload:a}}logPageView(e,r={},n={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Page view was not logged because telemetry is disabled."),!1;let i=this.trackers.filter(({disabled:o,hasError:c})=>!o&&!c);if(!i.length)return this.logger.info("Page view was not logged because no enabled telemetry-plugins are registered."),!1;let s=this.preProcess(r,n);this.debug&&this.logger.info("Tracking page view",JSON.stringify(s));let a=i.map(o=>o.logPageView(e,s));return Promise.all(a).then(),!0}logEvent(e,r={}){if(this.disabled&&!this.suppressDisabledWarnings)return this.logger.info("Event was not logged because telemetry is disabled."),!1;let n=this.trackers.filter(({disabled:a,hasError:o})=>!a&&!o);if(!n.length)return this.logger.info("Event was not logged because no enabled telemetry-plugins are registered."),!1;let i=this.preProcess(e,r);this.debug&&this.logger.info("Tracking event",JSON.stringify(i));let s=n.map(a=>a.logEvent(i));return Promise.all(s).then(),!0}logError(e={}){e=Object.assign({eventType:"error"},e),this.logEvent(e)}startWorkflow(e,r={}){let n={name:e,start:Date.now(),steps:[],workflowId:Math.floor((1+Math.random())*17592186044416).toString(16)};this.saveWorkflow(n);let i=Object.assign({name:e,step:"start"},r);return this.logWorkflow(i),n}stepWorkflow(e,r,n={}){let i=typeof n=="string"?n:n.details,s=Object.assign({name:e,step:r,details:i},n);this.logWorkflow(s)}endWorkflow(e,r={}){let n=Object.assign({name:e,step:"finish"},r);this.logWorkflow(n)}cancelWorkflow(e,r={}){let n=Object.assign({name:e,step:"cancel"},r);this.logWorkflow(n)}getWorkflow(e){let r=Pe.get(`TELEMETRY-WORKFLOW:${e}`);if(r){let n=Date.now()-r.start,i=1800*1e3;if(n<i)return r;this.deleteWorkflow(r)}}saveWorkflow(e){Pe.set(`TELEMETRY-WORKFLOW:${e.name}`,e)}deleteWorkflow(e){Pe.delete(`TELEMETRY-WORKFLOW:${e.name}`)}logWorkflow(e={}){e=this.preProcess(e);let r=this.getWorkflow(e.name);r||(this.startWorkflow(e.name),r=this.getWorkflow(e.name)),r.steps.push(e.step),r.duration=(Date.now()-r.start)/1e3,["cancel","finish"].indexOf(e.step)>-1?this.deleteWorkflow(r):this.saveWorkflow(r);let n=Object.assign(e,{eventType:"workflow",category:e.name,action:e.step,label:e.details,duration:r.duration,workflowId:r.workflowId});this.logEvent(n)}preProcess(e={},r={}){let n={};return this.user&&(n={user:"unknown",org:"unknown",lastLogin:this.user.lastLogin,userSince:this.user.created,internalUser:this.user.internalUser||!1,accountType:this.user.accountType}),Object.entries(Object.assign(Object.assign({},e),n)).reduce(sa(r.omitComplexData,this.logger),{})}disable(){this.disabled=!0,this.trackers.forEach(e=>{var r;e.hasError||(e.disabled=!0,(r=e.disable)===null||r===void 0||r.call(e))})}disableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!0,(r=n.disable)===null||r===void 0||r.call(n))}enableTracker(e){var r;let n=this.trackers.find(({name:i})=>i===e);n&&!n.hasError&&(n.disabled=!1,(r=n.enable)===null||r===void 0||r.call(n))}};function sa(t,e){return function(r,[n,i]){return oa(i)?r[n]=i:t||(e.warn(`You are trying to log a non-primitive value, ${n}:${JSON.stringify(i)}. This will get logged as [object Object]`),r[n]=i),r}}function oa(t){return["string","number","boolean","undefined"].includes(typeof t)||t&&typeof t.valueOf()=="string"}function ua(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}var ut=class{constructor(e){var r;if(this.name="googleAnalytics",this.dimensions={},this.metrics={},this.isInitialized=!1,typeof window<"u"&&!(!((r=e?.measurementIds)===null||r===void 0)&&r.length))throw new Error("at least one measurementId needs to be provided in your configuration");Object.assign(this,e)}_getScripts(){return[{dataAttribute:"google-analytics",async:!0,src:`https://www.googletagmanager.com/gtag/js?id=${this.measurementIds?this.measurementIds[0]:""}`}]}getScriptTags(){return Zr(this._getScripts())}async init(){if(!this.isInitialized){if(typeof window>"u")throw new Ve("Window is undefined: Cannot add script element.");await Promise.all(this._getScripts().map(e=>Jr(e))),this.injectConfig(),this.isInitialized=!0}}logPageView(e,r={}){let n=this.buildCustomParams(r),i=Object.assign({page_title:e||window.location.pathname},n);return window.gtag("event","page_view",i),!0}logEvent(e){let{action:r}=e,n=at(e,["action"]),i=r||"other",s=this.buildCustomParams(n);return window.gtag("event",i,s),!0}disable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=!0})}enable(){this.measurementIds&&this.measurementIds.forEach(e=>{window[`ga-disable-${e}`]=void 0})}injectConfig(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date);let e={custom_map:this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),send_page_view:!1,anonymize_ip:!0};this.measurementIds.forEach(r=>{window.gtag("config",r,e)})}buildCustomParams(e){let r,{category:n,label:i}=e;return r=this.verifyCustomDimensionAndMetrics(e),n&&(r=Object.assign(Object.assign({},r),{event_category:n})),i&&(r=Object.assign(Object.assign({},r),{event_label:i})),r}verifyCustomDimensionAndMetrics(e){let r=this.createDimensionsAndMetricsCustomMap(this.dimensions,this.metrics),n=Object.values(r);return Object.keys(e).filter(s=>n.includes(s)).reduce((s,a)=>Object.assign(s,{[a]:e[a]}),{})}createDimensionsAndMetricsCustomMap(e={},r={}){let n=this.createMetricCustomMap(r),i=this.createDimensionCustomMap(e);return Object.assign(Object.assign({},n),i)}createMetricCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`metric${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}createDimensionCustomMap(e={}){return Object.keys(e).map(function(r){return{key:`dimension${e[r]}`,value:r}}).filter(r=>r).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}};var Qr="TELEMETRY_COGNITO_CREDENTIALS";function en(t,e={}){let n=`https://cognito-identity${e.fips===!0?"-fips":""}.us-east-1.amazonaws.com/`,i=Pe.get(Qr);if(i&&Date.now()/1e3<i.Expiration)return Promise.resolve(i);let s={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetId"},body:JSON.stringify({IdentityPoolId:t})};return fetch(n,s).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(a=>{let{IdentityId:o}=a,c={method:"POST",headers:{"Content-type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},body:JSON.stringify({IdentityId:o})};return fetch(n,c)}).then(a=>{if(!a.ok)throw new Error(a.statusText);return a.json()}).then(({Credentials:a})=>(Pe.set(Qr,a),a))}function ct({telemetryData:t,dimensionLookup:e={},excludeKeys:r=[]}){return Object.keys(t).filter(n=>!r.includes(n)).map(n=>e[n]?{key:la(e,n),value:t[n]}:{key:n,value:ca(t,n)}).reduce((n,{key:i,value:s})=>(n[i]=s,n),{})}function ca(t,e){return e==="json"?t[e]?JSON.stringify(t[e]):"null":t[e]===void 0?"null":t[e].toString()}function la(t,e){return`dimension${t[e]}`}var fa=["size","duration","position","number","count"];function lt(t,e={}){return Object.keys(t).filter(r=>e[r]||fa.includes(r)).map(r=>e[r]?{key:da(e,r),value:t[r]}:{key:r,value:t[r]}).reduce((r,{key:n,value:i})=>(r[n]=i,r),{})}function da(t,e){return`metric${t[e]}`}function tn({event:t={},dimensionLookup:e={},metricLookup:r={}}){var n,i;let{pathname:s,eventType:a="other"}=t,o=lt(t,r),c=ct({telemetryData:Object.assign({eventType:a},t),dimensionLookup:e,excludeKeys:["workflow","pathname",...Object.keys(o),...Object.keys(r)]}),u=Object.assign(Object.assign({name:a},c),o);return typeof document<"u"&&document.referrer&&(u.referrer=document.referrer),typeof window<"u"&&!u.hostname&&(u.hostname=(n=window.location)===null||n===void 0?void 0:n.hostname),u.path=typeof window<"u"&&window.location.pathname?(i=window.location)===null||i===void 0?void 0:i.pathname:s,u}function rn({page:t,previousPage:e={},options:r={},dimensionLookup:n={},metricLookup:i={}}){let s=lt(r,i),a=ct({telemetryData:r,dimensionLookup:n,excludeKeys:["workflow",...Object.keys(s),...Object.keys(i)]}),{referrer:o,title:c}=document||{},{hostname:u,pathname:f}=window&&window.location?window.location:{};return Object.assign(Object.assign({name:"pageView",referrer:o,hostname:u,path:t||f,pageUrl:t||f,pageName:c,previousPageUrl:e.pageUrl,previousPageName:e.pageName},a),s)}var gt=Vt(nn(),1);var pa="function",ma="string",ne="undefined",ga="boolean",_e="object",ha="array",va="number",ya="symbol",ba="null";var an=function(){},Ft="any",Bt="*";var de="__",wa="form",Sa="input",Ea="button",Oa="select";var ft=typeof process!==ne?process:{},vu=ft.env&&ft.env.NODE_ENV||"";var re=typeof document!==ne,yu=re&&window.location.hostname==="localhost",bu=ft.versions!=null&&ft.versions.node!=null,wu=typeof Deno!==ne&&typeof Deno.core!==ne,Su=typeof self===_e&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",Eu=re&&window.name==="nodejs"||typeof navigator!==ne&&typeof navigator.userAgent!==ne&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function sn(t,e){return e.charAt(0)[t]()+e.slice(1)}var Ia=sn.bind(null,"toUpperCase"),Aa=sn.bind(null,"toLowerCase");function Pa(t){return un(t)?Ia(ba):typeof t===_e?Na(t):Object.prototype.toString.call(t).slice(8,-1)}function dt(t,e){e===void 0&&(e=!0);var r=Pa(t);return e?Aa(r):r}function Ge(t,e){return typeof e===t}var Y=Ge.bind(null,pa),ie=Ge.bind(null,ma),Te=Ge.bind(null,ne);var on=Ge.bind(null,ga),Ou=Ge.bind(null,ya);function un(t){return t===null}function Ta(t){return dt(t)===va&&!isNaN(t)}function $t(t){return dt(t)===ha}function K(t){if(!xa(t))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function xa(t){return t&&(typeof t===_e||t!==null)}function Na(t){return Y(t.constructor)?t.constructor.name:null}function ka(t){return t instanceof Error||ie(t.message)&&t.constructor&&Ta(t.constructor.stackTraceLimit)}function cn(t,e){if(typeof e!="object"||un(e))return!1;if(e instanceof t)return!0;var r=dt(new t(""));if(ka(e))for(;e;){if(dt(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}var Iu=cn.bind(null,TypeError),Au=cn.bind(null,SyntaxError);function pt(t,e){var r=t instanceof Element||t instanceof HTMLDocument;return r&&e?ja(t,e):r}function ja(t,e){return e===void 0&&(e=""),t&&t.nodeName===e.toUpperCase()}function mt(t){var e=[].slice.call(arguments,1);return function(){return t.apply(void 0,[].slice.call(arguments).concat(e))}}var Pu=mt(pt,wa),Tu=mt(pt,Ea),xu=mt(pt,Sa),Nu=mt(pt,Oa);function ln(t){return t?$t(t)?t:[t]:[]}function fn(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function dn(t){return(function(e){for(var r,n=Object.create(null),i=/([^&=]+)=?([^&]*)/g;r=i.exec(e);){var s=fn(r[1]),a=fn(r[2]);if(s)if(s.substring(s.length-2)==="[]"){var o=n[s=s.substring(0,s.length-2)]||(n[s]=[]);n[s]=Array.isArray(o)?o:[],n[s].push(a)}else n[s]=a===""||a}for(var c in n){var u=c.split("[");u.length>1&&(_a(n,u.map(function(f){return f.replace(/[?[\]\\ ]/g,"")}),n[c]),delete n[c])}return n})((function(e){if(e){var r=e.match(/\?(.*)/);return r&&r[1]?r[1].split("#")[0]:""}return re&&window.location.search.substring(1)})(t))}function _a(t,e,r){for(var n=e.length-1,i=0;i<n;++i){var s=e[i];if(s==="__proto__"||s==="constructor")break;s in t||(t[s]={}),t=t[s]}t[e[n]]=r}function oe(){for(var t="",e=0,r=4294967295*Math.random()|0;e++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&r;t+=n=="-"||n=="4"?n:(n=="x"?i:3&i|8).toString(16),r=e%8==0?4294967295*Math.random()|0:r>>4}return t}var be="global",xe=de+be+de,Ne=typeof self===_e&&self.self===self&&self||typeof global===_e&&global[be]===global&&global||void 0;function X(t){return Ne[xe][t]}function J(t,e){return Ne[xe][t]=e}function se(t){delete Ne[xe][t]}function we(t,e,r){var n;try{if(We(t)){var i=window[t];n=i[e].bind(i)}}catch{}return n||r}Ne[xe]||(Ne[xe]={});var ht={};function We(t){if(typeof ht[t]!==ne)return ht[t];try{var e=window[t];e.setItem(ne,ne),e.removeItem(ne)}catch{return ht[t]=!1}return ht[t]=!0}function T(){return T=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},T.apply(null,arguments)}var Ee="function",pe="undefined",Fe="reducer",jn="@@redux/",Zt=jn+"INIT",Ca=jn+Math.random().toString(36),pn=(function(){return typeof Symbol===Ee&&Symbol.observable||"@@observable"})(),vt=" != "+Ee;function _n(t,e,r){var n;if(typeof e===Ee&&typeof r===pe&&(r=e,e=void 0),typeof r!==pe){if(typeof r!==Ee)throw new Error("enhancer"+vt);return r(_n)(t,e)}if(typeof t!==Ee)throw new Error(Fe+vt);var i=t,s=e,a=[],o=a,c=!1;function u(){o===a&&(o=a.slice())}function f(){return s}function d(g){if(typeof g!==Ee)throw new Error("Listener"+vt);var A=!0;return u(),o.push(g),function(){if(A){A=!1,u();var I=o.indexOf(g);o.splice(I,1)}}}function m(g){if(!K(g))throw new Error("Act != obj");if(typeof g.type===pe)throw new Error("ActType "+pe);if(c)throw new Error("Dispatch in "+Fe);try{c=!0,s=i(s,g)}finally{c=!1}for(var A=a=o,I=0;I<A.length;I++)(0,A[I])();return g}return m({type:Zt}),(n={dispatch:m,subscribe:d,getState:f,replaceReducer:function(g){if(typeof g!==Ee)throw new Error("next "+Fe+vt);i=g,m({type:Zt})}})[pn]=function(){var g,A=d;return(g={subscribe:function(I){if(typeof I!="object")throw new TypeError("Observer != obj");function E(){I.next&&I.next(f())}return E(),{unsubscribe:A(E)}}})[pn]=function(){return this},g},n}function Ma(t,e){var r=e&&e.type;return"action "+(r&&r.toString()||"?")+Fe+" "+t+" returns "+pe}function Ue(){var t=[].slice.call(arguments);return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,r){return function(){return e(r.apply(void 0,[].slice.call(arguments)))}})}function Da(){var t=arguments;return function(e){return function(r,n,i){var s,a=e(r,n,i),o=a.dispatch,c={getState:a.getState,dispatch:function(u){return o(u)}};return s=[].slice.call(t).map(function(u){return u(c)}),T({},a,{dispatch:o=Ue.apply(void 0,s)(a.dispatch)})}}}var Oe=de+"anon_id",ke=de+"user_id",Me=de+"user_traits";var Qt="analytics",Se="userId",Ce="anonymousId",wt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],er=["name","EVENTS","config","loaded"],N=wt.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:"+t},pluginReadyType:function(t){return"ready:"+t}}),mn=/^utm_/,gn=/^an_prop_/,hn=/^an_trait_/;function Ua(t){var e=t.storage.setItem;return function(r){return function(n){return function(i){if(i.type===N.bootstrap){var s=i.params,a=i.user,o=i.persistedUser,c=i.initialUser,u=o.userId===a.userId;o.anonymousId!==a.anonymousId&&e(Oe,a.anonymousId),u||e(ke,a.userId),c.traits&&e(Me,T({},u&&o.traits?o.traits:{},c.traits));var f=Object.keys(i.params);if(f.length){var d=s.an_uid,m=s.an_event,g=f.reduce(function(A,I){if(I.match(mn)||I.match(/^(d|g)clid/)){var E=I.replace(mn,"");A.campaign[E==="campaign"?"name":E]=s[I]}return I.match(gn)&&(A.props[I.replace(gn,"")]=s[I]),I.match(hn)&&(A.traits[I.replace(hn,"")]=s[I]),A},{campaign:{},props:{},traits:{}});r.dispatch(T({type:N.params,raw:s},g,d?{userId:d}:{})),d&&setTimeout(function(){return t.identify(d,g.traits)},0),m&&setTimeout(function(){return t.track(m,g.props)},0),Object.keys(g.campaign).length&&r.dispatch({type:N.campaign,campaign:g.campaign})}}return n(i)}}}}function Ra(t){return function(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),r.type===N.setItemEnd){if(r.key===Oe)return T({},e,{anonymousId:r.value});if(r.key===ke)return T({},e,{userId:r.value})}switch(r.type){case N.identify:return Object.assign({},e,{userId:r.userId,traits:T({},e.traits,r.traits)});case N.reset:return[ke,Oe,Me].forEach(function(n){t.removeItem(n)}),Object.assign({},e,{userId:null,anonymousId:null,traits:{}});default:return e}}}function vn(t){return{userId:t.getItem(ke),anonymousId:t.getItem(Oe),traits:t.getItem(Me)}}var tr=function(t){return de+"TEMP"+de+t};function za(t){var e=t.storage,r=e.setItem,n=e.removeItem,i=e.getItem;return function(s){return function(a){return function(o){var c=o.userId,u=o.traits,f=o.options;if(o.type===N.reset&&([ke,Me,Oe].forEach(function(g){n(g)}),[Se,Ce,"traits"].forEach(function(g){se(tr(g))})),o.type===N.identify){i(Oe)||r(Oe,oe());var d=i(ke),m=i(Me)||{};d&&d!==c&&s.dispatch({type:N.userIdChanged,old:{userId:d,traits:m},new:{userId:c,traits:u},options:f}),c&&r(ke,c),u&&r(Me,T({},m,u))}return a(o)}}}}var qe={};function yn(t,e){qe[t]&&Y(qe[t])&&(qe[t](e),delete qe[t])}function Cn(t,e,r){return new Promise(function(n,i){return e()?n(t):r<1?i(T({},t,{queue:!0})):new Promise(function(s){return setTimeout(s,10)}).then(function(s){return Cn(t,e,r-10).then(n,i)})})}function La(t){return{abort:t}}var Kt=function(t){var e=t.data,r=t.action,n=t.instance,i=t.state,s=t.allPlugins,a=t.allMatches,o=t.store,c=t.EVENTS;try{var u=i.plugins,f=i.context,d=r.type,m=d.match(De),g=e.exact.map(function(E){return E.pluginName});m&&(g=a.during.map(function(E){return E.pluginName}));var A=(function(E,x){return function(y,M,v){var h=M.config,P=M.name,w=P+"."+y.type;v&&(w=v.event);var b=y.type.match(De)?(function(D,H,L,R,z){return function(k,S){var j=R?R.name:D,C=S&&Be(S)?S:L;if(R&&(!(C=S&&Be(S)?S:[D]).includes(D)||C.length!==1))throw new Error("Method "+H+" can only abort "+D+" plugin. "+JSON.stringify(C)+" input valid");return T({},z,{abort:{reason:k,plugins:C,caller:H,_:j}})}})(P,w,x,v,y):(function(D,H){return function(){throw new Error(D.type+" action not cancellable. Remove abort in "+H)}})(y,w);return{payload:Ha(y),instance:E,config:h||{},abort:b}}})(n,g),I=e.exact.reduce(function(E,x){var y=x.pluginName,M=x.methodName,v=!1;return M.match(/^initialize/)||M.match(/^reset/)||(v=!u[y].loaded),f.offline&&M.match(/^(page|track|identify)/)&&(v=!0),E[""+y]=v,E},{});return Promise.resolve(e.exact.reduce(function(E,x,y){var M=x.pluginName;return Promise.resolve(E).then(function(v){function h(){return Promise.resolve(v)}var P=(function(){if(e.namespaced&&e.namespaced[M])return Promise.resolve(e.namespaced[M].reduce(function(w,b,D){return Promise.resolve(w).then(function(H){return b.method&&Y(b.method)?((function(k,S){var j=An(k);if(j&&j.name===S){var C=An(j.method);throw new Error([S+" plugin is calling method "+k,"Plugins cant call self","Use "+j.method+" "+(C?"or "+C.method:"")+" in "+S+" plugin insteadof "+k].join(`
3
3
  `))}})(b.methodName,b.pluginName),Promise.resolve(b.method({payload:H,instance:n,abort:(L=H,R=M,z=b.pluginName,function(k,S){return T({},L,{abort:{reason:k,plugins:S||[R],caller:d,from:z||R}})}),config:Sn(b.pluginName,u,s),plugins:u})).then(function(k){var S=K(k)?k:{};return Promise.resolve(T({},H,S))})):H;var L,R,z})},Promise.resolve(r))).then(function(w){v[M]=w});v[M]=r})();return P&&P.then?P.then(h):h()})},Promise.resolve({}))).then(function(E){return Promise.resolve(e.exact.reduce(function(x,y,M){try{var v=e.exact.length===M+1,h=y.pluginName,P=s[h];return Promise.resolve(x).then(function(w){var b=E[h]?E[h]:{};if(m&&(b=w),Xt(b,h))return Yt({data:b,method:d,instance:n,pluginName:h,store:o}),Promise.resolve(w);if(Xt(w,h))return v&&Yt({data:w,method:d,instance:n,store:o}),Promise.resolve(w);if(I.hasOwnProperty(h)&&I[h]===!0)return o.dispatch({type:"queue",plugin:h,payload:b,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(w);var D=A(E[h],s[h]);return Promise.resolve(P[d]({abort:D.abort,payload:b,instance:n,config:Sn(h,u,s),plugins:u})).then(function(H){var L=K(H)?H:{},R=T({},w,L),z=E[h];if(Xt(z,h))Yt({data:z,method:d,instance:n,pluginName:h,store:o});else{var k=d+":"+h;(k.match(/:/g)||[]).length<2&&!d.match(bn)&&!d.match(wn)&&n.dispatch(T({},m?R:b,{type:k,_:{called:k,from:"submethod"}}))}return Promise.resolve(R)})})}catch(w){return Promise.reject(w)}},Promise.resolve(r))).then(function(x){if(!(d.match(De)||d.match(/^registerPlugin/)||d.match(wn)||d.match(bn)||d.match(/^params/)||d.match(/^userIdChanged/))){if(c.plugins.includes(d),x._&&x._.originalAction===d)return x;var y=T({},x,{_:{originalAction:x.type,called:x.type,from:"engineEnd"}});Mn(x,e.exact.length)&&!d.match(/End$/)&&(y=T({},y,{type:x.type+"Aborted"})),o.dispatch(y)}return x})})}catch(E){return Promise.reject(E)}},De=/Start$/,bn=/^bootstrap/,wn=/^ready/;function Yt(t){var e=t.pluginName,r=t.method+"Aborted"+(e?":"+e:"");t.store.dispatch(T({},t.data,{type:r,_:{called:r,from:"abort"}}))}function Sn(t,e,r){var n=e[t]||r[t];return n&&n.config?n.config:{}}function En(t,e){return e.reduce(function(r,n){return n[t]?r.concat({methodName:t,pluginName:n.name,method:n[t]}):r},[])}function On(t,e){var r=t.replace(De,""),n=e?":"+e:"";return[""+t+n,""+r+n,r+"End"+n]}function Xt(t,e){var r=t.abort;return!!r&&(r===!0||In(r,e)||r&&In(r.plugins,e))}function Mn(t,e){var r=t.abort;if(!r)return!1;if(r===!0||ie(r))return!0;var n=r.plugins;return Be(r)&&r.length===e||Be(n)&&n.length===e}function Be(t){return Array.isArray(t)}function In(t,e){return!(!t||!Be(t))&&t.includes(e)}function An(t){var e=t.match(/(.*):(.*)/);return!!e&&{method:e[1],name:e[2]}}function Ha(t){return Object.keys(t).reduce(function(e,r){return r==="type"||(e[r]=K(t[r])?Object.assign({},t[r]):t[r]),e},{})}function Va(t,e,r){var n={};return function(i){return function(s){return function(a){try{var o,c=function(v){return o?v:s(d)},u=a.type,f=a.plugins,d=a;if(a.abort)return Promise.resolve(s(a));if(u===N.enablePlugin&&i.dispatch({type:N.initializeStart,plugins:f,disabled:[],fromEnable:!0,meta:a.meta}),u===N.disablePlugin&&setTimeout(function(){return yn(a.meta.rid,{payload:a})},0),u===N.initializeEnd){var m=e(),g=Object.keys(m),A=g.filter(function(v){return f.includes(v)}).map(function(v){return m[v]}),I=[],E=[],x=a.disabled,y=A.map(function(v){var h=v.loaded,P=v.name,w=v.config;return Cn(v,function(){return h({config:w})},1e4).then(function(b){return n[P]||(i.dispatch({type:N.pluginReadyType(P),name:P,events:Object.keys(v).filter(function(D){return!er.includes(D)})}),n[P]=!0),I=I.concat(P),v}).catch(function(b){if(b instanceof Error)throw new Error(b);return E=E.concat(b.name),b})});Promise.all(y).then(function(v){var h={plugins:I,failed:E,disabled:x};setTimeout(function(){g.length===y.length+x.length&&i.dispatch(T({},{type:N.ready},h))},0)})}var M=(function(){if(u!==N.bootstrap)return/^ready:([^:]*)$/.test(u)&&setTimeout(function(){return(function(v,h,P){var w={},b=h(),D=v.getState(),H=D.plugins,L=D.queue,R=D.user;if(!D.context.offline&&L&&L.actions&&L.actions.length){var z=L.actions.reduce(function(S,j,C){return H[j.plugin].loaded?(S.process.push(j),S.processIndex.push(C)):(S.requeue.push(j),S.requeueIndex.push(C)),S},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(z.processIndex&&z.processIndex.length){z.processIndex.forEach(function(S){var j=L.actions[S],C=j.plugin,ee=j.payload.type,l=b[C][ee];if(l&&Y(l)){var p,O=(function(U,B){return U===void 0&&(U={}),B===void 0&&(B={}),[Se,Ce].reduce(function(G,q){return U.hasOwnProperty(q)&&B[q]&&B[q]!==U[q]&&(G[q]=B[q]),G},U)})(j.payload,R),_=w[O.meta.rid];if(!_&&(p=l({payload:O,config:H[C].config,instance:P,abort:La}))&&K(p)&&p.abort)return void(w[O.meta.rid]=!0);if(!_){var V=ee+":"+C;v.dispatch(T({},O,{type:V,_:{called:V,from:"queueDrain"}}))}}});var k=L.actions.filter(function(S,j){return!~z.processIndex.indexOf(j)});L.actions=k}}})(i,e,t)},0),Promise.resolve((function(v,h,P,w,b){try{var D=Y(h)?h():h,H=v.type,L=H.replace(De,"");if(v._&&v._.called)return Promise.resolve(v);var R=P.getState(),z=(j=D,(C=R.plugins)===void 0&&(C={}),(ee=v.options)===void 0&&(ee={}),Object.keys(j).filter(function(l){var p=ee.plugins||{};return on(p[l])?p[l]:p.all!==!1&&(!C[l]||C[l].enabled!==!1)}).map(function(l){return j[l]}));H===N.initializeStart&&v.fromEnable&&(z=Object.keys(R.plugins).filter(function(l){var p=R.plugins[l];return v.plugins.includes(l)&&!p.initialized}).map(function(l){return D[l]}));var k=z.map(function(l){return l.name}),S=(function(l,p){var O=On(l).map(function(_){return En(_,p)});return p.reduce(function(_,V){var U=V.name,B=On(l,U).map(function(fe){return En(fe,p)}),G=B[0],q=B[1],W=B[2];return G.length&&(_.beforeNS[U]=G),q.length&&(_.duringNS[U]=q),W.length&&(_.afterNS[U]=W),_},{before:O[0],beforeNS:{},during:O[1],duringNS:{},after:O[2],afterNS:{}})})(H,z);return Promise.resolve(Kt({action:v,data:{exact:S.before,namespaced:S.beforeNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(l){function p(){var V=(function(){if(H.match(De))return Promise.resolve(Kt({action:T({},O,{type:L+"End"}),data:{exact:S.after,namespaced:S.afterNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(U){U.meta&&U.meta.hasCallback&&yn(U.meta.rid,{payload:U})})})();return V&&V.then?V.then(function(){return l}):l}if(Mn(l,k.length))return l;var O,_=(function(){if(H!==L)return Promise.resolve(Kt({action:T({},l,{type:L}),data:{exact:S.during,namespaced:S.duringNS},state:R,allPlugins:D,allMatches:S,instance:P,store:w,EVENTS:b})).then(function(V){O=V});O=l})();return _&&_.then?_.then(p):p()})}catch(l){return Promise.reject(l)}var j,C,ee})(a,e,t,i,r)).then(function(v){var h=s(v);return o=1,h})})();return Promise.resolve(M&&M.then?M.then(c):c(M))}catch(v){return Promise.reject(v)}}}}}function Ga(t){return function(e){return function(r){return function(n){var i=n.type,s=n.key,a=n.value,o=n.options;if(i===N.setItem||i===N.removeItem){if(n.abort)return r(n);i===N.setItem?t.setItem(s,a,o):t.removeItem(s,o)}return r(n)}}}}var Wa=function(){var t=this;this.before=[],this.after=[],this.addMiddleware=function(e,r){t[r]=t[r].concat(e)},this.removeMiddleware=function(e,r){var n=t[r].findIndex(function(i){return i===e});n!==-1&&(t[r]=[].concat(t[r].slice(0,n),t[r].slice(n+1)))},this.dynamicMiddlewares=function(e){return function(r){return function(n){return function(i){var s={getState:r.getState,dispatch:function(o){return r.dispatch(o)}},a=t[e].map(function(o){return o(s)});return Ue.apply(void 0,a)(n)(i)}}}}};function qa(t){return function(e,r){e===void 0&&(e={});var n={};if(r.type==="initialize:aborted")return e;if(/^registerPlugin:([^:]*)$/.test(r.type)){var i=Pn(r.type,"registerPlugin"),s=t()[i];if(!s||!i)return e;var a=r.enabled,o=s.config;return n[i]={enabled:a,initialized:!!a&&!s.initialize,loaded:!!a&&!!s.loaded({config:o}),config:o},T({},e,n)}if(/^initialize:([^:]*)$/.test(r.type)){var c=Pn(r.type,N.initialize),u=t()[c];return u&&c?(n[c]=T({},e[c],{initialized:!0,loaded:!!u.loaded({config:u.config})}),T({},e,n)):e}if(/^ready:([^:]*)$/.test(r.type))return n[r.name]=T({},e[r.name],{loaded:!0}),T({},e,n);switch(r.type){case N.disablePlugin:return T({},e,Tn(r.plugins,!1,e));case N.enablePlugin:return T({},e,Tn(r.plugins,!0,e));default:return e}}}function Pn(t,e){return t.substring(e.length+1,t.length)}function Tn(t,e,r){return t.reduce(function(n,i){return n[i]=T({},r[i],{enabled:e}),n},r)}function Dn(t){try{return JSON.parse(JSON.stringify(t))}catch{}return t}var Fa={last:{},history:[]};function Ba(t,e){t===void 0&&(t=Fa);var r=e.options,n=e.meta;if(e.type===N.track){var i=Dn(T({event:e.event,properties:e.properties},Object.keys(r).length&&{options:r},{meta:n}));return T({},t,{last:i,history:t.history.concat(i)})}return t}var $a={actions:[]};function Ka(t,e){t===void 0&&(t=$a);var r=e.payload;switch(e.type){case"queue":var n;return n=r&&r.type&&r.type===N.identify?[e].concat(t.actions):t.actions.concat(e),T({},t,{actions:n});case"dequeue":return[];default:return t}}var Un=/#.*$/;function Ya(t){var e=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(t);return"/"+(e&&e[3]?e[3].split("?")[0].replace(Un,""):"")}var Rn,Xa=function(t){if(t===void 0&&(t={}),!re)return t;var e=document,r=e.title,n=e.referrer,i=window,s=i.location,a=i.innerWidth,o=i.innerHeight,c=s.hash,u=s.search,f=(function(m){var g=(function(){if(re){for(var A,I=document.getElementsByTagName("link"),E=0;A=I[E];E++)if(A.getAttribute("rel")==="canonical")return A.getAttribute("href")}})();return g?g.match(/\?/)?g:g+m:window.location.href.replace(Un,"")})(u),d={title:r,url:f,path:Ya(f),hash:c,search:u,width:a,height:o};return n&&n!==""&&(d.referrer=n),T({},d,t)},Ja={last:{},history:[]};function Za(t,e){t===void 0&&(t=Ja);var r=e.options;if(e.type===N.page){var n=Dn(T({properties:e.properties,meta:e.meta},Object.keys(r).length&&{options:r}));return T({},t,{last:n,history:t.history.concat(n)})}return t}Rn={};var xn={initialized:!1,sessionId:oe(),app:null,version:null,debug:!1,offline:!!re&&!navigator.onLine,os:{name:"na"},userAgent:re?navigator.userAgent:"node",library:{name:Qt,version:"0.13.1"},timezone:void 0,locale:void 0,campaign:{},referrer:Rn};function Qa(t,e){t===void 0&&(t=xn);var r=t.initialized,n=e.campaign;switch(e.type){case N.campaign:return T({},t,{campaign:n});case N.offline:return T({},t,{offline:!0});case N.online:return T({},t,{offline:!1});default:return r?t:T({},xn,t,{initialized:!0})}}var es=["plugins","reducers","storage"];function zn(){return J(Qt,[]),function(t){return function(e,r,n){var i=t(e,r,n),s=i.dispatch;return Object.assign(i,{dispatch:function(a){return Ne[xe][Qt].push(a.action||a),s(a)}})}}}function Nn(t){return function(){return Ue(Ue.apply(null,arguments),zn())}}function Jt(t){return t?$t(t)?t:[t]:[]}function kn(t,e,r){t===void 0&&(t={});var n,i,s=oe();return e&&(qe[s]=(n=e,i=(function(a){for(var o,c=a||Array.prototype.slice.call(arguments),u=0;u<c.length;u++)if(Y(c[u])){o=c[u];break}return o})(r),function(a){i&&i(a),n(a)})),T({},t,{rid:s,ts:new Date().getTime()},e?{hasCallback:!0}:{})}function Ln(t){t===void 0&&(t={});var e=t.reducers||{},r=t.initialUser||{},n=(t.plugins||[]).reduce(function(l,p){if(Y(p))return l.middlewares=l.middlewares.concat(p),l;if(p.NAMESPACE&&(p.name=p.NAMESPACE),!p.name)throw new Error("https://lytics.dev/errors/1");p.config||(p.config={});var O=p.EVENTS?Object.keys(p.EVENTS).map(function(U){return p.EVENTS[U]}):[];l.pluginEnabled[p.name]=!(p.enabled===!1||p.config.enabled===!1),delete p.enabled,p.methods&&(l.methods[p.name]=Object.keys(p.methods).reduce(function(U,B){var G;return U[B]=(G=p.methods[B],function(){for(var q=Array.prototype.slice.call(arguments),W=new Array(G.length),fe=0;fe<q.length;fe++)W[fe]=q[fe];return W[W.length]=h,G.apply({instance:h},W)}),U},{}),delete p.methods);var _=Object.keys(p).concat(O),V=new Set(l.events.concat(_));if(l.events=Array.from(V),l.pluginsArray=l.pluginsArray.concat(p),l.plugins[p.name])throw new Error(p.name+"AlreadyLoaded");return l.plugins[p.name]=p,l.plugins[p.name].loaded||(l.plugins[p.name].loaded=function(){return!0}),l},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),i=t.storage?t.storage:{getItem:X,setItem:J,removeItem:se},s=(function(l){return function(p,O,_){return O.getState("user")[p]||(_&&K(_)&&_[p]?_[p]:vn(l)[p]||X(tr(p))||null)}})(i),a=n.plugins,o=n.events.filter(function(l){return!er.includes(l)}).sort(),c=new Set(o.concat(wt).filter(function(l){return!er.includes(l)})),u=Array.from(c).sort(),f=function(){return a},d=new Wa,m=d.addMiddleware,g=d.removeMiddleware,A=d.dynamicMiddlewares,I=function(){throw new Error("Abort disabled inListener")},E=dn(),x=vn(i),y=T({},x,r,E.an_uid?{userId:E.an_uid}:{},E.an_aid?{anonymousId:E.an_aid}:{});y.anonymousId||(y.anonymousId=oe());var M=T({enable:function(l,p){return new Promise(function(O){S.dispatch({type:N.enablePlugin,plugins:Jt(l),_:{originalAction:N.enablePlugin}},O,[p])})},disable:function(l,p){return new Promise(function(O){S.dispatch({type:N.disablePlugin,plugins:Jt(l),_:{originalAction:N.disablePlugin}},O,[p])})}},n.methods),v=!1,h={identify:function(l,p,O,_){try{var V=ie(l)?l:null,U=K(l)?l:p,B=O||{},G=h.user();J(tr(Se),V);var q=V||U.userId||s(Se,h,U);return Promise.resolve(new Promise(function(W){S.dispatch(T({type:N.identifyStart,userId:q,traits:U||{},options:B,anonymousId:G.anonymousId},G.id&&G.id!==V&&{previousId:G.id}),W,[p,O,_])}))}catch(W){return Promise.reject(W)}},track:function(l,p,O,_){try{var V=K(l)?l.event:l;if(!V||!ie(V))throw new Error("EventMissing");var U=K(l)?l:p||{},B=K(O)?O:{};return Promise.resolve(new Promise(function(G){S.dispatch({type:N.trackStart,event:V,properties:U,options:B,userId:s(Se,h,p),anonymousId:s(Ce,h,p)},G,[p,O,_])}))}catch(G){return Promise.reject(G)}},page:function(l,p,O){try{var _=K(l)?l:{},V=K(p)?p:{};return Promise.resolve(new Promise(function(U){S.dispatch({type:N.pageStart,properties:Xa(_),options:V,userId:s(Se,h,_),anonymousId:s(Ce,h,_)},U,[l,p,O])}))}catch(U){return Promise.reject(U)}},user:function(l){if(l===Se||l==="id")return s(Se,h);if(l===Ce||l==="anonId")return s(Ce,h);var p=h.getState("user");return l?(0,gt.default)(p,l):p},reset:function(l){return new Promise(function(p){S.dispatch({type:N.resetStart},p,l)})},ready:function(l){return v&&l({plugins:M,instance:h}),h.on(N.ready,function(p){l&&l(p),v=!0})},on:function(l,p){if(!l||!Y(p))return!1;if(l===N.bootstrap)throw new Error(".on disabled for "+l);var O=/Start$|Start:/;if(l==="*"){var _=function(G){return function(q){return function(W){return W.type.match(O)&&p({payload:W,instance:h,plugins:a}),q(W)}}},V=function(G){return function(q){return function(W){return W.type.match(O)||p({payload:W,instance:h,plugins:a}),q(W)}}};return m(_,yt),m(V,bt),function(){g(_,yt),g(V,bt)}}var U=l.match(O)?yt:bt,B=function(G){return function(q){return function(W){return W.type===l&&p({payload:W,instance:h,plugins:a,abort:I}),q(W)}}};return m(B,U),function(){return g(B,U)}},once:function(l,p){if(!l||!Y(p))return!1;if(l===N.bootstrap)throw new Error(".once disabled for "+l);var O=h.on(l,function(_){p({payload:_.payload,instance:h,plugins:a,abort:I}),O()});return O},getState:function(l){var p=S.getState();return l?(0,gt.default)(p,l):Object.assign({},p)},dispatch:function(l){var p=ie(l)?{type:l}:l;if(wt.includes(p.type))throw new Error("reserved action "+p.type);var O=T({},p,{_:T({originalAction:p.type},l._||{})});S.dispatch(O)},enablePlugin:M.enable,disablePlugin:M.disable,plugins:M,storage:{getItem:i.getItem,setItem:function(l,p,O){S.dispatch({type:N.setItemStart,key:l,value:p,options:O})},removeItem:function(l,p){S.dispatch({type:N.removeItemStart,key:l,options:p})}},setAnonymousId:function(l,p){h.storage.setItem(Oe,l,p)},events:{core:wt,plugins:o}},P=n.middlewares.concat([function(l){return function(p){return function(O){return O.meta||(O.meta=kn()),p(O)}}},A(yt),Va(h,f,{all:u,plugins:o}),Ga(i),Ua(h),za(h),A(bt)]),w={context:Qa,user:Ra(i),page:Za,track:Ba,plugins:qa(f),queue:Ka},b=Ue,D=Ue;if(re&&t.debug){var H=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;H&&(b=H({trace:!0,traceLimit:25})),D=function(){return arguments.length===0?zn():K(typeof arguments[0])?Nn():Nn().apply(null,arguments)}}var L,R=(function(l){return Object.keys(l).reduce(function(p,O){return es.includes(O)||(p[O]=l[O]),p},{})})(t),z=n.pluginsArray.reduce(function(l,p){var O=p.name,_=p.config,V=p.loaded,U=n.pluginEnabled[O];return l[O]={enabled:U,initialized:!!U&&!p.initialize,loaded:!!V({config:_}),config:_},l},{}),k={context:R,user:y,plugins:z},S=_n((function(l){for(var p=Object.keys(l),O={},_=0;_<p.length;_++){var V=p[_];typeof l[V]===Ee&&(O[V]=l[V])}var U,B=Object.keys(O);try{(function(G){Object.keys(G).forEach(function(q){var W=G[q];if(typeof W(void 0,{type:Zt})===pe||typeof W(void 0,{type:Ca})===pe)throw new Error(Fe+" "+q+" "+pe)})})(O)}catch(G){U=G}return function(G,q){if(G===void 0&&(G={}),U)throw U;for(var W=!1,fe={},Lt=0;Lt<B.length;Lt++){var it=B[Lt],Gr=G[it],Ht=(0,O[it])(Gr,q);if(typeof Ht===pe){var Zi=Ma(it,q);throw new Error(Zi)}fe[it]=Ht,W=W||Ht!==Gr}return W?fe:G}})(T({},w,e)),k,D(b(Da.apply(void 0,P))));S.dispatch=(L=S.dispatch,function(l,p,O){var _=T({},l,{meta:kn(l.meta,p,Jt(O))});return L.apply(null,[_])});var j=Object.keys(a);S.dispatch({type:N.bootstrap,plugins:j,config:R,params:E,user:y,initialUser:r,persistedUser:x});var C=j.filter(function(l){return n.pluginEnabled[l]}),ee=j.filter(function(l){return!n.pluginEnabled[l]});return S.dispatch({type:N.registerPlugins,plugins:j,enabled:n.pluginEnabled}),n.pluginsArray.map(function(l,p){var O=l.bootstrap,_=l.config,V=l.name;O&&Y(O)&&O({instance:h,config:_,payload:l}),S.dispatch({type:N.registerPluginType(V),name:V,enabled:n.pluginEnabled[V],plugin:l}),n.pluginsArray.length===p+1&&S.dispatch({type:N.initializeStart,plugins:C,disabled:ee})}),h}var yt="before",bt="after";var Ie="cookie",je=rr(),$e=Ot,St=Ot;function Et(t){return je?Ot(t,"",-1):se(t)}function rr(){if(je!==void 0)return je;var t=Ie+Ie;try{Ot(t,t),je=document.cookie.indexOf(t)!==-1,Et(t)}catch{je=!1}return je}function Ot(t,e,r,n,i,s){if(typeof window<"u"){var a=arguments.length>1;return je===!1&&(a?J(t,e):X(t)),a?document.cookie=t+"="+encodeURIComponent(e)+(r?"; expires="+new Date(+new Date+1e3*r).toUTCString()+(n?"; path="+n:"")+(i?"; domain="+i:"")+(s?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+t+"=")[1]||"").split(";")[0])}}var ue="localStorage",Hn=We.bind(null,ue),It=we(ue,"getItem",X),Vn=we(ue,"setItem",J),nr=we(ue,"removeItem",se);var ce="sessionStorage",Gn=We.bind(null,ce),Wn=we(ce,"getItem",X),qn=we(ce,"setItem",J),Fu=we(ce,"removeItem",se);function Re(t){var e=t;try{if((e=JSON.parse(t))==="true")return!0;if(e==="false")return!1;if(K(e))return e;parseFloat(e)===e&&(e=parseFloat(e))}catch{}if(e!==null&&e!=="")return e}var ts=Hn(),rs=Gn(),ns=rr();function Fn(t,e){if(t){var r=ir(e),n=!ur(r),i=ar(r)?Re(localStorage.getItem(t)):void 0;if(n&&!Te(i))return i;var s=sr(r)?Re($e(t)):void 0;if(n&&s)return s;var a=or(r)?Re(sessionStorage.getItem(t)):void 0;if(n&&a)return a;var o=X(t);return n?o:{localStorage:i,sessionStorage:a,cookie:s,global:o}}}function is(t,e,r){if(t&&!Te(e)){var n={},i=ir(r),s=JSON.stringify(e),a=!ur(i);return ar(i)&&(n[ue]=At(ue,e,Re(localStorage.getItem(t))),localStorage.setItem(t,s),a)?n[ue]:sr(i)&&(n[Ie]=At(Ie,e,Re($e(t))),St(t,s),a)?n[Ie]:or(i)&&(n[ce]=At(ce,e,Re(sessionStorage.getItem(t))),sessionStorage.setItem(t,s),a)?n[ce]:(n[be]=At(be,e,X(t)),J(t,e),a?n[be]:n)}}function as(t,e){if(t){var r=ir(e),n=Fn(t,Bt),i={};return!Te(n.localStorage)&&ar(r)&&(localStorage.removeItem(t),i[ue]=n.localStorage),!Te(n.cookie)&&sr(r)&&(Et(t),i[Ie]=n.cookie),!Te(n.sessionStorage)&&or(r)&&(sessionStorage.removeItem(t),i[ce]=n.sessionStorage),!Te(n.global)&&Pt(r,be)&&(se(t),i[be]=n.global),i}}function ir(t){return t?ie(t)?t:t.storage:Ft}function ar(t){return ts&&Pt(t,ue)}function sr(t){return ns&&Pt(t,Ie)}function or(t){return rs&&Pt(t,ce)}function ur(t){return t===Bt||t==="all"}function Pt(t,e){return t===Ft||t===e||ur(t)}function At(t,e,r){return{location:t,current:e,previous:r}}var Bn={setItem:is,getItem:Fn,removeItem:as};function ss(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Kn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(r),!0).forEach(function(n){ss(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={storage:Bn};return Ln(Kn(Kn({},e),t))}function Xn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Xn(Object(r),!0).forEach(function(n){He(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xn(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var F=Vt(ai());var si=function(){};function oi(t,e){var r,n,i,s=(e=e||{}).initial||[],a=e.max||1/0,o=e.interval||1e4,c=e.onEmpty||si,u=e.onPause||si;function f(m){clearInterval(r);var g=s.splice(0,a);return g.length&&t(g,s),s.length?m?f():d():(i=!1,c(s))}function d(){i=!0,r=setInterval(f,o)}return s.length&&d(),{flush:function(m){f(m)},resume:f,push:function(m){return(n=s.push(m))>=a&&!e.throttle&&f(),i||d(),n},size:function(){return s.length},pause:function(m){m&&f(),clearInterval(r),i=!1,u(s)}}}var Nt="__",kt="session",ci=Nt+kt,li="page",ui=["id","createdAt","created"];function yr(t){var e=t?new Date(t):new Date;return[e.toISOString(),e.getTime()]}function fi(){var t=yr(),e=t[0],r=t[1];return{id:oe(),created:r,createdAt:e}}var Os={session:[Wn,qn],page:[X,J]};function jt(t,e){for(var r=Os[t],n=r[0],i=r[1],s=fi(),a=!1,o={},c=0;c<ui.length;c++){var u=ui[c],f=Nt+t+Nt+kt+Nt+u,d=n(f);a=e||!d,(e||!e&&!d)&&i(f,s[u]);var m=d&&!e?d:s[u],g=u!=="created"?m:Number(m);o[u]=g}return br(o,a)}function br(t,e){var r=Date.now();return t.elapsed=r-t.created,t.expires&&(t.remaining=Math.max(t.expires-r,0),t.isExpired=t.remaining===0),t.isNew=e,t}function ze(t,e){t===void 0&&(t=30);var r=$e(ci),n=r?JSON.parse(r):et(t);return e?n:br(n,!r)}function et(t,e,r){t===void 0&&(t=30);var n=r?ze(t,!0):fi(),i=60*t,s=n.created;if(r){var a=yr(),o=a[0],c=a[1];n.modified=c,n.modifiedAt=o,s=c}var u=yr(s+1e3*i),f=u[0];return n.expires=u[1],n.expiresAt=f,n.duration=1e3*i,e&&(n=Object.assign(n,e)),St(ci,JSON.stringify(n),i),br(n,!r)}var di=function(t,e){return t===void 0&&(t=30),et(t||1,e,!0)};var wr=jt.bind(null,kt),pi=jt.bind(null,kt,!0),_t=jt.bind(null,li),Sr=jt.bind(null,li,!0);var Ae=typeof window<"u";function mi(t){return typeof t=="string"}function Er(t){return typeof t=="boolean"}var Hi=Vt(yi());var Ir=new TextEncoder,Rs={appstream2:"appstream",cloudhsmv2:"cloudhsm",email:"ses",marketplace:"aws-marketplace",mobile:"AWSMobileHubService",pinpoint:"mobiletargeting",queue:"sqs","git-codecommit":"codecommit","mturk-requester-sandbox":"mturk-requester","personalize-runtime":"personalize"},zs=new Set(["authorization","content-type","content-length","user-agent","presigned-expires","expect","x-amzn-trace-id","range","connection"]),Ct=class{constructor({accessKeyId:e,secretAccessKey:r,sessionToken:n,service:i,region:s,cache:a,retries:o,initRetryMs:c}){if(e==null)throw new TypeError("accessKeyId is a required option");if(r==null)throw new TypeError("secretAccessKey is a required option");this.accessKeyId=e,this.secretAccessKey=r,this.sessionToken=n,this.service=i,this.region=s,this.cache=a||new Map,this.retries=o??10,this.initRetryMs=c||50}async sign(e,r){if(e instanceof Request){let{method:s,url:a,headers:o,body:c}=e;r=Object.assign({method:s,url:a,headers:o},r),r.body==null&&o.has("Content-Type")&&(r.body=c!=null&&o.has("X-Amz-Content-Sha256")?c:await e.clone().arrayBuffer()),e=a}let n=new Ar(Object.assign({url:e.toString()},r,this,r&&r.aws)),i=Object.assign({},r,await n.sign());delete i.aws;try{return new Request(i.url.toString(),i)}catch(s){if(s instanceof TypeError)return new Request(i.url.toString(),Object.assign({duplex:"half"},i));throw s}}async fetch(e,r){for(let n=0;n<=this.retries;n++){let i=fetch(await this.sign(e,r));if(n===this.retries)return i;let s=await i;if(s.status<500&&s.status!==429)return s;await new Promise(a=>setTimeout(a,Math.random()*this.initRetryMs*Math.pow(2,n)))}throw new Error("An unknown error occurred, ensure retries is not negative")}},Ar=class{constructor({method:e,url:r,headers:n,body:i,accessKeyId:s,secretAccessKey:a,sessionToken:o,service:c,region:u,cache:f,datetime:d,signQuery:m,appendSessionToken:g,allHeaders:A,singleEncode:I}){if(r==null)throw new TypeError("url is a required option");if(s==null)throw new TypeError("accessKeyId is a required option");if(a==null)throw new TypeError("secretAccessKey is a required option");this.method=e||(i?"POST":"GET"),this.url=new URL(r),this.headers=new Headers(n||{}),this.body=i,this.accessKeyId=s,this.secretAccessKey=a,this.sessionToken=o;let E,x;(!c||!u)&&([E,x]=Ls(this.url,this.headers)),this.service=c||E||"",this.region=u||x||"us-east-1",this.cache=f||new Map,this.datetime=d||new Date().toISOString().replace(/[:-]|\.\d{3}/g,""),this.signQuery=m,this.appendSessionToken=g||this.service==="iotdevicegateway",this.headers.delete("Host"),this.service==="s3"&&!this.signQuery&&!this.headers.has("X-Amz-Content-Sha256")&&this.headers.set("X-Amz-Content-Sha256","UNSIGNED-PAYLOAD");let y=this.signQuery?this.url.searchParams:this.headers;if(y.set("X-Amz-Date",this.datetime),this.sessionToken&&!this.appendSessionToken&&y.set("X-Amz-Security-Token",this.sessionToken),this.signableHeaders=["host",...this.headers.keys()].filter(v=>A||!zs.has(v)).sort(),this.signedHeaders=this.signableHeaders.join(";"),this.canonicalHeaders=this.signableHeaders.map(v=>v+":"+(v==="host"?this.url.host:(this.headers.get(v)||"").replace(/\s+/g," "))).join(`
4
4
  `),this.credentialString=[this.datetime.slice(0,8),this.region,this.service,"aws4_request"].join("/"),this.signQuery&&(this.service==="s3"&&!y.has("X-Amz-Expires")&&y.set("X-Amz-Expires","86400"),y.set("X-Amz-Algorithm","AWS4-HMAC-SHA256"),y.set("X-Amz-Credential",this.accessKeyId+"/"+this.credentialString),y.set("X-Amz-SignedHeaders",this.signedHeaders)),this.service==="s3")try{this.encodedPath=decodeURIComponent(this.url.pathname.replace(/\+/g," "))}catch{this.encodedPath=this.url.pathname}else this.encodedPath=this.url.pathname.replace(/\/+/g,"/");I||(this.encodedPath=encodeURIComponent(this.encodedPath).replace(/%2F/g,"/")),this.encodedPath=Si(this.encodedPath);let M=new Set;this.encodedSearch=[...this.url.searchParams].filter(([v])=>{if(!v)return!1;if(this.service==="s3"){if(M.has(v))return!1;M.add(v)}return!0}).map(v=>v.map(h=>Si(encodeURIComponent(h)))).sort(([v,h],[P,w])=>v<P?-1:v>P?1:h<w?-1:h>w?1:0).map(v=>v.join("=")).join("&")}async sign(){return this.signQuery?(this.url.searchParams.set("X-Amz-Signature",await this.signature()),this.sessionToken&&this.appendSessionToken&&this.url.searchParams.set("X-Amz-Security-Token",this.sessionToken)):this.headers.set("Authorization",await this.authHeader()),{method:this.method,url:this.url,headers:this.headers,body:this.body}}async authHeader(){return["AWS4-HMAC-SHA256 Credential="+this.accessKeyId+"/"+this.credentialString,"SignedHeaders="+this.signedHeaders,"Signature="+await this.signature()].join(", ")}async signature(){let e=this.datetime.slice(0,8),r=[this.secretAccessKey,e,this.region,this.service].join(),n=this.cache.get(r);if(!n){let i=await rt("AWS4"+this.secretAccessKey,e),s=await rt(i,this.region),a=await rt(s,this.service);n=await rt(a,"aws4_request"),this.cache.set(r,n)}return Or(await rt(n,await this.stringToSign()))}async stringToSign(){return["AWS4-HMAC-SHA256",this.datetime,this.credentialString,Or(await bi(await this.canonicalString()))].join(`
5
5
  `)}async canonicalString(){return[this.method.toUpperCase(),this.encodedPath,this.encodedSearch,this.canonicalHeaders+`
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import c from"./PNS2HOLX.js";import"./BM666UZR.js";import"./RLSY4VUQ.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import"./573G4DTV.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./IPOPM3LM.js";import"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./TXO47END.js";import"./VVZAS55G.js";import"./AO7XKW2U.js";import"./US5FON7D.js";import a from"./WV7QX3ED.js";import{a as d}from"./E6FH6VES.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as g}from"./XTHPWGYU.js";import{F as p,G as o,H as b,h as n,i as r}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{b:P,c:m}])=>{var c=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],u=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"})),y=n`:host{display:block}`,s=class extends b{constructor(){super(...arguments),this.disabled=!1,this._translations=d({name:"pdf-download",blocking:!0}),this._labelInfoElement=p()}static{this.properties={defaultNumLabelsPerPage:9,disabled:5,_translations:16}}static{this.styles=y}async downloadCSV(a,e,l,t=!0){return P(a,e,!0,l,t)}async downloadPDF(a,e,l=!1,t="",i=""){let h=this._labelInfoElement.value?this._labelInfoElement.value.selectedOption?.value:"";return m(a,e,h,l,t,i)}render(){return r`<calcite-select .disabled=${this.disabled} label="Label format" ${o(this._labelInfoElement)}>${this._renderOptions()}</calcite-select>`}_getLabelSizeText(a){let e=a.descriptionPDF.labelsPerPageDisplay,l=a.descriptionPDF.labelWidthDisplay+" x "+a.descriptionPDF.labelHeightDisplay;return this._translations.pdfLabel?this._translations.pdfLabel.replace("{{n}}",e).replace("{{labelSize}}",l):""}_renderOptions(){let a=u;return(a.default||a).sort((e,l)=>{let t=Number.parseInt(e.descriptionPDF.labelsPerPageDisplay,10),i=Number.parseInt(l.descriptionPDF.labelsPerPageDisplay,10);return t<i?-1:t>i?1:0}).map((e,l)=>{let t=!1;return(this.defaultNumLabelsPerPage?Number.parseInt(e.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:l===0)&&(t=!0),r`<calcite-option .selected=${t} .value=${e}>${this._getLabelSizeText(e)}</calcite-option>`})}};g("pdf-download",s);return s},a,c)
2
+ import c from"./4WGHP4H5.js";import"./VVZAS55G.js";import"./AO7XKW2U.js";import"./US5FON7D.js";import a from"./WV7QX3ED.js";import{a as d}from"./573G4DTV.js";import"./QMAV4UTN.js";import"./Y2AUIXNK.js";import"./TEHBW75B.js";import"./RSPNBIIE.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./36LRAUE4.js";import"./JMY4B4WQ.js";import"./VQ5ZAQUF.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./6ERMTA3J.js";import"./GF4QELNV.js";import"./3TAQSXLA.js";import"./PY6RTQDR.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as g}from"./IPOPM3LM.js";import{F as p,G as o,H as b,h as n,i as r}from"./T3EPRHTT.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{b:P,c:m}])=>{var c=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],u=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"})),y=n`:host{display:block}`,s=class extends b{constructor(){super(...arguments),this.disabled=!1,this._translations=d({name:"pdf-download",blocking:!0}),this._labelInfoElement=p()}static{this.properties={defaultNumLabelsPerPage:9,disabled:5,_translations:16}}static{this.styles=y}async downloadCSV(a,e,l,t=!0){return P(a,e,!0,l,t)}async downloadPDF(a,e,l=!1,t="",i=""){let h=this._labelInfoElement.value?this._labelInfoElement.value.selectedOption?.value:"";return m(a,e,h,l,t,i)}render(){return r`<calcite-select .disabled=${this.disabled} label="Label format" ${o(this._labelInfoElement)}>${this._renderOptions()}</calcite-select>`}_getLabelSizeText(a){let e=a.descriptionPDF.labelsPerPageDisplay,l=a.descriptionPDF.labelWidthDisplay+" x "+a.descriptionPDF.labelHeightDisplay;return this._translations.pdfLabel?this._translations.pdfLabel.replace("{{n}}",e).replace("{{labelSize}}",l):""}_renderOptions(){let a=u;return(a.default||a).sort((e,l)=>{let t=Number.parseInt(e.descriptionPDF.labelsPerPageDisplay,10),i=Number.parseInt(l.descriptionPDF.labelsPerPageDisplay,10);return t<i?-1:t>i?1:0}).map((e,l)=>{let t=!1;return(this.defaultNumLabelsPerPage?Number.parseInt(e.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:l===0)&&(t=!0),r`<calcite-option .selected=${t} .value=${e}>${this._getLabelSizeText(e)}</calcite-option>`})}};g("pdf-download",s);return s},a,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as o}from"./XTHPWGYU.js";import{H as r,L as s,h as n,i as e}from"./T3EPRHTT.js";var c=n`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.resources-section{padding:3rem var(--calcite-spacing-md);margin:0 auto;box-sizing:border-box}.section-header{margin-bottom:3rem;text-align:center}.section-heading{font-size:var(--calcite-font-size-3);font-weight:var(--calcite-font-weight-small);margin:0 0 var(--calcite-spacing-lg) 0;color:var(--calcite-color-text-1)}.section-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);margin:0}.cards-container{display:flex;gap:var(--calcite-spacing-md);flex-wrap:wrap}.cards-container solution-resource-card{flex:1 1 200px}`,a=class extends r{constructor(){super(...arguments),this.heading="",this.subheading="",this.cards=[]}static{this.properties={heading:[1,{type:String}],subheading:[1,{type:String}],cards:[1,{type:Array}]}}static{this.styles=c}render(){let t=`section-heading-${this.heading.replace(/\s+/g,"-").toLowerCase()}`;return e`<div class="resources-section" aria-labelledby=${t??s}><div class="section-header"><h2 class="section-heading" id=${t??s} tabindex=0>${this.heading}</h2><p class="section-subheading" tabindex=0>${this.subheading}</p></div><div class="cards-container">${this.cards.map(i=>e`<solution-resource-card .icon=${i.icon} .meridianIcon=${i.meridianIcon} .heading=${i.heading} .description=${i.description} .url=${i.url} .headingEn=${i.headingEn} .sectionHeadingEn=${i.sectionHeadingEn}></solution-resource-card>`)}</div></div>`}};o("solutions-resources-section",a);export{a};
2
+ import{b as o}from"./IPOPM3LM.js";import{H as r,L as s,h as n,i as e}from"./T3EPRHTT.js";var c=n`*[tabindex]:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.resources-section{padding:3rem var(--calcite-spacing-md);margin:0 auto;box-sizing:border-box}.section-header{margin-bottom:3rem;text-align:center}.section-heading{font-size:var(--calcite-font-size-3);font-weight:var(--calcite-font-weight-small);margin:0 0 var(--calcite-spacing-lg) 0;color:var(--calcite-color-text-1)}.section-subheading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-2);margin:0}.cards-container{display:flex;gap:var(--calcite-spacing-md);flex-wrap:wrap}.cards-container solution-resource-card{flex:1 1 200px}`,a=class extends r{constructor(){super(...arguments),this.heading="",this.subheading="",this.cards=[]}static{this.properties={heading:[1,{type:String}],subheading:[1,{type:String}],cards:[1,{type:Array}]}}static{this.styles=c}render(){let t=`section-heading-${this.heading.replace(/\s+/g,"-").toLowerCase()}`;return e`<div class="resources-section" aria-labelledby=${t??s}><div class="section-header"><h2 class="section-heading" id=${t??s} tabindex=0>${this.heading}</h2><p class="section-subheading" tabindex=0>${this.subheading}</p></div><div class="cards-container">${this.cards.map(i=>e`<solution-resource-card .icon=${i.icon} .meridianIcon=${i.meridianIcon} .heading=${i.heading} .description=${i.description} .url=${i.url} .headingEn=${i.headingEn} .sectionHeadingEn=${i.sectionHeadingEn}></solution-resource-card>`)}</div></div>`}};o("solutions-resources-section",a);export{a};