@arcgis/portal-components 5.1.0-next.99 → 5.1.0

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 (259) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/3AFLX4RZ.js +31 -0
  3. package/dist/cdn/3XDKOO6K.js +2 -0
  4. package/dist/cdn/4ISLOZQ3.js +2 -0
  5. package/dist/cdn/{TTZBF4KI.js → 563BUCQX.js} +1 -1
  6. package/dist/cdn/{JOYFDD4B.js → 5BPXS3WU.js} +1 -1
  7. package/dist/cdn/65JPRIL4.js +98 -0
  8. package/dist/cdn/6K7GPATC.js +2 -0
  9. package/dist/cdn/6RA33SDH.js +34 -0
  10. package/dist/cdn/7IAAHGM2.js +2 -0
  11. package/dist/cdn/{SOPWLUP4.js → ABRHXRFP.js} +1 -1
  12. package/dist/cdn/BCUEYBNI.js +2 -0
  13. package/dist/cdn/CAQR2NSG.js +4 -0
  14. package/dist/cdn/D42PED2R.js +2 -0
  15. package/dist/cdn/DEHBTA5D.js +2 -0
  16. package/dist/cdn/EZ7YC5N5.js +99 -0
  17. package/dist/cdn/{SEZNHA2J.js → FK7QXBE2.js} +1 -1
  18. package/dist/cdn/IBYY5ORN.js +122 -0
  19. package/dist/cdn/ITFWXO7A.js +49 -0
  20. package/dist/cdn/JWUQZ52F.js +134 -0
  21. package/dist/cdn/KBYWRUKO.js +2 -0
  22. package/dist/cdn/KFH2OM2D.js +2 -0
  23. package/dist/cdn/{GPPEHGUO.js → LVUHKMSB.js} +1 -1
  24. package/dist/cdn/NDKFZPYE.js +2 -0
  25. package/dist/cdn/NX4L2LC2.js +2 -0
  26. package/dist/cdn/OYABHYVF.js +2 -0
  27. package/dist/cdn/{V5ZWDMLE.js → PIZFXU2N.js} +1 -1
  28. package/dist/cdn/QOCYNLQ7.js +71 -0
  29. package/dist/cdn/{ERNT74VA.js → QUYBZ3J7.js} +1 -1
  30. package/dist/cdn/R2XPTETT.js +22 -0
  31. package/dist/cdn/R53CO5LK.js +77 -0
  32. package/dist/cdn/{HQAGVE4P.js → RNRPTWHT.js} +17 -1
  33. package/dist/cdn/{32DRTMS4.js → SFKRR7GW.js} +1 -1
  34. package/dist/cdn/SQ54YADV.js +533 -0
  35. package/dist/cdn/SX4KDMYV.js +69 -0
  36. package/dist/cdn/TKQAFRBM.js +36 -0
  37. package/dist/cdn/TNDL67UN.js +2 -0
  38. package/dist/cdn/{LJUIMVQ2.js → W4RAJWHA.js} +1 -1
  39. package/dist/cdn/WHLL7DNC.js +146 -0
  40. package/dist/cdn/X3LZYQ4U.js +66 -0
  41. package/dist/cdn/XR4PMNYP.js +2 -0
  42. package/dist/cdn/YJK6JAPE.js +422 -0
  43. package/dist/cdn/{5WK4GJK2.js → Z5UVAVHJ.js} +1 -1
  44. package/dist/cdn/{3OTUKLZI.js → ZCL2V7W3.js} +1 -1
  45. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ar.json +1 -1
  46. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.bg.json +1 -1
  47. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.bs.json +1 -1
  48. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ca.json +1 -1
  49. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.cs.json +1 -1
  50. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.da.json +1 -1
  51. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.de.json +1 -1
  52. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.el.json +1 -1
  53. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  54. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.es.json +1 -1
  55. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.et.json +1 -1
  56. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.fi.json +1 -1
  57. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.fr.json +1 -1
  58. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.he.json +1 -1
  59. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.hr.json +1 -1
  60. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.hu.json +1 -1
  61. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.id.json +1 -1
  62. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.it.json +1 -1
  63. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ja.json +1 -1
  64. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ko.json +1 -1
  65. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.lt.json +1 -1
  66. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.lv.json +1 -1
  67. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.nl.json +1 -1
  68. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.no.json +1 -1
  69. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pl.json +1 -1
  70. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pt-BR.json +1 -1
  71. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pt-PT.json +1 -1
  72. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ro.json +1 -1
  73. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ru.json +1 -1
  74. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sk.json +1 -1
  75. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sl.json +1 -1
  76. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sr.json +1 -1
  77. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sv.json +1 -1
  78. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.th.json +1 -1
  79. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.tr.json +1 -1
  80. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.uk.json +1 -1
  81. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.vi.json +1 -1
  82. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-CN.json +1 -1
  83. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-HK.json +1 -1
  84. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-TW.json +1 -1
  85. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ar.json +1 -0
  86. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.bg.json +1 -0
  87. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.bs.json +1 -0
  88. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ca.json +1 -0
  89. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.cs.json +1 -0
  90. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.da.json +1 -0
  91. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.de.json +1 -0
  92. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.el.json +1 -0
  93. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.en.json +1 -0
  94. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.es.json +1 -0
  95. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.et.json +1 -0
  96. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.fi.json +1 -0
  97. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.fr.json +1 -0
  98. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.he.json +1 -0
  99. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.hr.json +1 -0
  100. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.hu.json +1 -0
  101. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.id.json +1 -0
  102. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.it.json +1 -0
  103. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ja.json +1 -0
  104. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ko.json +1 -0
  105. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.lt.json +1 -0
  106. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.lv.json +1 -0
  107. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.nl.json +1 -0
  108. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.no.json +1 -0
  109. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pl.json +1 -0
  110. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pt-BR.json +1 -0
  111. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pt-PT.json +1 -0
  112. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ro.json +1 -0
  113. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ru.json +1 -0
  114. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sk.json +1 -0
  115. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sl.json +1 -0
  116. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sr.json +1 -0
  117. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sv.json +1 -0
  118. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.th.json +1 -0
  119. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.tr.json +1 -0
  120. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.uk.json +1 -0
  121. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.vi.json +1 -0
  122. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-CN.json +1 -0
  123. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-HK.json +1 -0
  124. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-TW.json +1 -0
  125. package/dist/cdn/assets/portal-item-type/t9n/messages.ar.json +1 -1
  126. package/dist/cdn/assets/portal-item-type/t9n/messages.bg.json +1 -1
  127. package/dist/cdn/assets/portal-item-type/t9n/messages.bs.json +1 -1
  128. package/dist/cdn/assets/portal-item-type/t9n/messages.ca.json +1 -1
  129. package/dist/cdn/assets/portal-item-type/t9n/messages.cs.json +1 -1
  130. package/dist/cdn/assets/portal-item-type/t9n/messages.da.json +1 -1
  131. package/dist/cdn/assets/portal-item-type/t9n/messages.de.json +1 -1
  132. package/dist/cdn/assets/portal-item-type/t9n/messages.el.json +1 -1
  133. package/dist/cdn/assets/portal-item-type/t9n/messages.es.json +1 -1
  134. package/dist/cdn/assets/portal-item-type/t9n/messages.et.json +1 -1
  135. package/dist/cdn/assets/portal-item-type/t9n/messages.fi.json +1 -1
  136. package/dist/cdn/assets/portal-item-type/t9n/messages.fr.json +1 -1
  137. package/dist/cdn/assets/portal-item-type/t9n/messages.he.json +1 -1
  138. package/dist/cdn/assets/portal-item-type/t9n/messages.hr.json +1 -1
  139. package/dist/cdn/assets/portal-item-type/t9n/messages.hu.json +1 -1
  140. package/dist/cdn/assets/portal-item-type/t9n/messages.id.json +1 -1
  141. package/dist/cdn/assets/portal-item-type/t9n/messages.it.json +1 -1
  142. package/dist/cdn/assets/portal-item-type/t9n/messages.ja.json +1 -1
  143. package/dist/cdn/assets/portal-item-type/t9n/messages.ko.json +1 -1
  144. package/dist/cdn/assets/portal-item-type/t9n/messages.lt.json +1 -1
  145. package/dist/cdn/assets/portal-item-type/t9n/messages.lv.json +1 -1
  146. package/dist/cdn/assets/portal-item-type/t9n/messages.nl.json +1 -1
  147. package/dist/cdn/assets/portal-item-type/t9n/messages.no.json +1 -1
  148. package/dist/cdn/assets/portal-item-type/t9n/messages.pl.json +1 -1
  149. package/dist/cdn/assets/portal-item-type/t9n/messages.pt-BR.json +1 -1
  150. package/dist/cdn/assets/portal-item-type/t9n/messages.pt-PT.json +1 -1
  151. package/dist/cdn/assets/portal-item-type/t9n/messages.ro.json +1 -1
  152. package/dist/cdn/assets/portal-item-type/t9n/messages.ru.json +1 -1
  153. package/dist/cdn/assets/portal-item-type/t9n/messages.sk.json +1 -1
  154. package/dist/cdn/assets/portal-item-type/t9n/messages.sl.json +1 -1
  155. package/dist/cdn/assets/portal-item-type/t9n/messages.sr.json +1 -1
  156. package/dist/cdn/assets/portal-item-type/t9n/messages.sv.json +1 -1
  157. package/dist/cdn/assets/portal-item-type/t9n/messages.th.json +1 -1
  158. package/dist/cdn/assets/portal-item-type/t9n/messages.tr.json +1 -1
  159. package/dist/cdn/assets/portal-item-type/t9n/messages.uk.json +1 -1
  160. package/dist/cdn/assets/portal-item-type/t9n/messages.vi.json +1 -1
  161. package/dist/cdn/assets/portal-item-type/t9n/messages.zh-CN.json +1 -1
  162. package/dist/cdn/assets/portal-item-type/t9n/messages.zh-HK.json +1 -1
  163. package/dist/cdn/assets/portal-item-type/t9n/messages.zh-TW.json +1 -1
  164. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ar.json +1 -1
  165. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bg.json +1 -1
  166. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bs.json +1 -1
  167. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ca.json +1 -1
  168. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.cs.json +1 -1
  169. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.da.json +1 -1
  170. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.de.json +1 -1
  171. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.el.json +1 -1
  172. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.en.json +1 -1
  173. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.es.json +1 -1
  174. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.et.json +1 -1
  175. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fi.json +1 -1
  176. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fr.json +1 -1
  177. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.he.json +1 -1
  178. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hr.json +1 -1
  179. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hu.json +1 -1
  180. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.id.json +1 -1
  181. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.it.json +1 -1
  182. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ja.json +1 -1
  183. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ko.json +1 -1
  184. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lt.json +1 -1
  185. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lv.json +1 -1
  186. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.nl.json +1 -1
  187. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.no.json +1 -1
  188. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pl.json +1 -1
  189. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-BR.json +1 -1
  190. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-PT.json +1 -1
  191. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ro.json +1 -1
  192. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ru.json +1 -1
  193. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sk.json +1 -1
  194. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sl.json +1 -1
  195. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sr.json +1 -1
  196. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sv.json +1 -1
  197. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.th.json +1 -1
  198. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.tr.json +1 -1
  199. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.uk.json +1 -1
  200. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.vi.json +1 -1
  201. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-CN.json +1 -1
  202. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-HK.json +1 -1
  203. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-TW.json +1 -1
  204. package/dist/cdn/index.js +1 -1
  205. package/dist/cdn/main.css +1 -1
  206. package/dist/chunks/fieldAddDelete.js +1 -1
  207. package/dist/chunks/functionalities.js +10 -0
  208. package/dist/chunks/groups.js +86 -0
  209. package/dist/chunks/item.js +124 -22
  210. package/dist/chunks/portal.js +48 -8
  211. package/dist/chunks/runtime.js +3 -3
  212. package/dist/chunks/user.js +4 -109
  213. package/dist/chunks/user2.js +113 -0
  214. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +7 -0
  215. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +20 -6
  216. package/dist/components/arcgis-portal-ai-assistant/customElement.js +738 -124
  217. package/dist/components/arcgis-portal-ai-assistant/index.js +2 -1
  218. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -0
  219. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +51 -0
  220. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.d.ts +1 -0
  221. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +6 -0
  222. package/dist/components/arcgis-portal-classification-config/customElement.js +44 -37
  223. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  224. package/dist/components/arcgis-portal-mentionable-text-area/customElement.d.ts +2 -1
  225. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +38 -41
  226. package/dist/components/arcgis-portal-mentionable-text-area/utils.d.ts +7 -0
  227. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +3 -3
  228. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +131 -63
  229. package/dist/components/arcgis-portal-user-avatar/customElement.js +24 -27
  230. package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
  231. package/dist/docs/api.json +1 -1
  232. package/dist/docs/docs.json +1 -1
  233. package/dist/docs/vscode.html-custom-data.json +1 -1
  234. package/dist/docs/web-types.json +1 -1
  235. package/dist/index.d.ts +16 -0
  236. package/dist/loader.js +3 -2
  237. package/dist/types/lumina.d.ts +9 -1
  238. package/dist/types/preact.d.ts +10 -1
  239. package/dist/types/react.d.ts +11 -1
  240. package/dist/types/stencil.d.ts +9 -1
  241. package/package.json +12 -10
  242. package/dist/cdn/2UAWM45V.js +0 -2
  243. package/dist/cdn/4XGP5S32.js +0 -2
  244. package/dist/cdn/AMCZ4UZQ.js +0 -2
  245. package/dist/cdn/CVTNZK7F.js +0 -2
  246. package/dist/cdn/DAD7LUKA.js +0 -2
  247. package/dist/cdn/F5QGCGHF.js +0 -2
  248. package/dist/cdn/HGOHRPAD.js +0 -2
  249. package/dist/cdn/IZQBJ5VK.js +0 -2
  250. package/dist/cdn/JFG6QVNF.js +0 -2
  251. package/dist/cdn/LCWXNCUX.js +0 -396
  252. package/dist/cdn/NJMHL2Y7.js +0 -4
  253. package/dist/cdn/OGQ2PD7M.js +0 -2
  254. package/dist/cdn/S2PHM4WZ.js +0 -2
  255. package/dist/cdn/ZAHK6WQT.js +0 -138
  256. package/dist/chunks/item2.js +0 -128
  257. /package/dist/cdn/{3OPKWSWR.js → 34BMNP6G.js} +0 -0
  258. /package/dist/cdn/{JQKWT7SI.js → FPAFR5IL.js} +0 -0
  259. /package/dist/cdn/{N5K4DR3J.js → FPKINYFN.js} +0 -0
@@ -0,0 +1,69 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./CFDTXKJ6.js";var e=`# ArcGIS Online Map Viewer \u2014 Smart Mapping Assistant
3
+
4
+ You are a Smart Mapping Assistant for ArcGIS Online Map Viewer.
5
+
6
+ **Your job:**
7
+ Given a set of layers with their fields and a user request, call the appropriate layer styling tools to apply the best mapping style(s) for each layer.
8
+
9
+ ---
10
+
11
+ ## **Available Layers and Fields:**
12
+
13
+ {layerFieldInfo}
14
+
15
+ **FieldInfo:**
16
+
17
+ - \`name\`: the actual field name (use this exact name)
18
+ - \`type\`: one of \`string\`, \`number\`, \`date\`, etc.
19
+ - \`alias\`: a human-readable label
20
+ - \`description\`: optional field metadata
21
+
22
+ ---
23
+
24
+ ## **Available Color Schemes:**
25
+
26
+ \`reds\`, \`yellows\`, \`oranges\`, \`greens\`, \`blues\`, \`purples\`, \`pinks\`, \`browns\`, \`grays\`, \`subdued\`, \`diverging\`, \`sequential\`, \`categorical\`
27
+
28
+ ---
29
+
30
+ ## **Available Themes:**
31
+
32
+ 1. **high-to-low** - High values are emphasized with saturated colors. Low values are de-emphasized with diminished colors.
33
+ - Keywords: continuous, high to low, unclassed, gradient, sequential
34
+ - Example: Show the percent of the population that owns a home along a sequential color ramp.
35
+
36
+ 2. **above** - Emphasize values that are above a value, such as the mean.
37
+ - Keywords: over, increasing, up, growth, above
38
+ - Example: Use color to show areas where the hispanic population is above the mean.
39
+
40
+ 3. **below** - Emphasize values that are below a value, such as the mean.
41
+ - Keywords: under, decreasing, down, shrinking, decline, drop, below
42
+ - Example: Show the number of vacant homes below the mean.
43
+
44
+ 4. **centered-on** - Emphasize values that are near a key value.
45
+ - Keywords: centered on, focused on average, highlight average, competitive, close
46
+ - Example: Use color to show the areas where the percent of the republican votes is close to the percent of democratic votes.
47
+
48
+ 5. **above-and-below** - When both high values and low values need emphasis.
49
+ - Keywords: diverging, above or below, bi-directional, over or under, growing or shrinking, growth or decline
50
+ - Example: Show the median household income above and below the national average.
51
+
52
+ 6. **extremes** - When only the highest or lowest values need emphasis.
53
+ - Keywords: extremes, outliers
54
+ - Example: Emphasize the outliers of the votes for Democrats in the 2020 presidential election.
55
+
56
+ ---
57
+
58
+ ## **Instructions:**
59
+
60
+ - Call the appropriate tool for the layer based on the user's request
61
+ - Use exact field names from the layer info (not aliases)
62
+ - Use exact layer IDs from the layer info
63
+ - Match field types to tool requirements (each tool describes its field requirements in its description)
64
+ - Select appropriate color schemes and themes based on the data and user intent, only if user asks for them
65
+ - If the user asks for a specific style, use that tool
66
+ - If the user is vague, use your judgment to recommend the best tool
67
+
68
+ **Remember:** Each layer styling tool will apply a renderer to a layer, make it visible, and return results.
69
+ `;export{e as default};
@@ -0,0 +1,36 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./CFDTXKJ6.js";var e=`# Navigation Tool Instructions
3
+
4
+ CRITICAL: You are FORBIDDEN from making multiple tool calls. You MUST make exactly ONE tool call.
5
+
6
+ Assigned task:
7
+ {assignedTask}
8
+
9
+ Latest user request:
10
+ {userRequest}
11
+
12
+ Prior steps:
13
+ {priorSteps}
14
+
15
+ Use the assigned task as the primary instruction for the current query. The question will **not** be restated again here.
16
+ Use the latest user request as supporting context when needed.
17
+ Use prior steps only when the assigned task clearly depends on earlier results.
18
+
19
+ Detected intent:
20
+ {intent}
21
+
22
+ {bookmarksSection}
23
+
24
+ {layersSection}
25
+
26
+ {fieldsSection}
27
+
28
+ Current zoom level: {currentZoom}
29
+
30
+ Rules:
31
+
32
+ - Call exactly one navigation tool
33
+ - Use ONLY provided layerIds and fields if present
34
+ - Do NOT invent layerIds or field names
35
+ - If required context is missing, fall back to a valid non-layer tool
36
+ `;export{e as default};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import e from"./KFH2OM2D.js";import{a as S,b as P}from"./Z5UVAVHJ.js";import c from"./GPSI4ROI.js";import a from"./PBZ25RYU.js";import{a as I}from"./PIZFXU2N.js";import{b as v,f as E}from"./SFKRR7GW.js";import{I as d,J as m,K as b,N as C,Q as y,h as g,j as n}from"./CAQR2NSG.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:w},{a:f,b:c,c:p,d:R,e:_,f:O},{a:x,b:$}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await M(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function M(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function N({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var D=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):W(r,t)},W=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await J(r)).execute(e)}async function J(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var L=g`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,u=class extends b{constructor(){super(),this.classificationModel=x(this),this.messages=I(),this.formMainContentRef=d(),this.bannerRef=d(),this._classificationDataTask=$(this),this._formCreationTask=new P(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await D(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this.cleanupItemClassificationWatchHandle(),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this._itemClassificationWatchPortalItem=this.portalItem,this._itemClassificationWatchPortalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=O(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=p(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=E()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=L}async destroy(){this.cleanupItemClassificationWatchHandle(),await this.destroyManagedChildren(),await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await _(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await w(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=v(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=p(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await D(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await N({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,V=e[o]?.valueExpressionResult,A=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:V,attributeValidationResult:A})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}cleanupItemClassificationWatchHandle(){this._itemClassificationWatchHandle?.remove(),this._itemClassificationWatchHandle=void 0,this._itemClassificationWatchPortalItem?.removeHandles("arcgis-classification-config"),this._itemClassificationWatchPortalItem=void 0}async destroyManagedChildren(){let t=this.bannerRef.value;!t?.autoDestroyDisabled||t.manager?.destroyed||await t.destroy()}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===S.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification} .autoDestroyDisabled=${this.autoDestroyDisabled} ${m(this.bannerRef)}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${m(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",u);return u},"arcade","core/reactiveUtils",a,c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{d as m}from"./32DRTMS4.js";import{G as d,H as p,I as u,J as s,L as o,O as h,h as n,j as a,u as c}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";var v=n`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-status-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-color-status-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`,l=class extends u{constructor(){super(...arguments),this._direction=m(),this.inputEl=d(),this.isInvalid=!1,this.currentError="",this.inputValue="",this.label="",this.value="",this.errorMessage="",this.min=-180,this.max=180,this.validateRelated=()=>!0,this.relatedErrorMessage="",this.inputId="",this.arcgisCoordChange=c()}static{this.properties={isInvalid:16,currentError:16,inputValue:16,label:1,value:1,errorMessage:1,min:9,max:9,validateRelated:0,relatedErrorMessage:1,inputId:1}}static{this.styles=v}checkRelatedField(){return!this.inputValue||!this.isInvalid||!this.validate(this.inputValue)?"":this.inputValue}isValid(){return!this.isInvalid}setFocus(){this.inputEl.value?.focus()}willUpdate(t){t.has("value")&&this.validate(t.get("value"))}isValidCoord(t,r,i){if(!t?.match(/^-?[0-9]*(\.|,)?[0-9]+$/u))return!1;let e=this.parseNumber(t);return e>=r&&e<=i}validate(t){if(this.isInvalid=!this.isValidCoord(t,this.min,this.max),this.isInvalid)return this.currentError=this.errorMessage,!1;let r=this.parseNumber(t);return this.isInvalid=!this.validateRelated(r),this.isInvalid?(this.currentError=this.relatedErrorMessage,!1):!0}parseNumber(t){let r=`-${Array.from({length:10},(e,g)=>g.toString()).join("")}`,i=t.replace(",",".");return i=Array.from(i).filter(e=>r.includes(e)||e===".").join(""),parseFloat(i)}render(){return a`<div class=${s({"coord-field":!0,"is-rtl":this._direction==="rtl"})}><label class="coord-label" for=${this.inputId??o}>${this.label}</label><calcite-input-number number-button-type=none id=${this.inputId??o} class=${s({"coordinate-input":!0})} .value=${`${this.parseNumber(this.value)}`} @calciteInputNumberChange=${t=>{this.inputValue=t.target.value,this.validate(this.inputValue)&&this.arcgisCoordChange.emit(this.inputValue)}} .status=${this.isInvalid?"invalid":"valid"} ${p(this.inputEl)}></calcite-input-number>${this.isInvalid&&a`<div class="coord-error-message"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon><div class="coord-error-message__text">${this.currentError}</div></div>`||""}</div>`}};h("arcgis-portal-extent-picker-coord-field",l);export{l as ArcgisPortalExtentPickerCoordField};
2
+ import{d as m}from"./SFKRR7GW.js";import{I as d,J as p,K as u,L as s,N as o,Q as h,h as n,j as a,v as c}from"./CAQR2NSG.js";import"./CFDTXKJ6.js";var v=n`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-status-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-color-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-color-status-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`,l=class extends u{constructor(){super(...arguments),this._direction=m(),this.inputEl=d(),this.isInvalid=!1,this.currentError="",this.inputValue="",this.label="",this.value="",this.errorMessage="",this.min=-180,this.max=180,this.validateRelated=()=>!0,this.relatedErrorMessage="",this.inputId="",this.arcgisCoordChange=c()}static{this.properties={isInvalid:16,currentError:16,inputValue:16,label:1,value:1,errorMessage:1,min:9,max:9,validateRelated:0,relatedErrorMessage:1,inputId:1}}static{this.styles=v}checkRelatedField(){return!this.inputValue||!this.isInvalid||!this.validate(this.inputValue)?"":this.inputValue}isValid(){return!this.isInvalid}setFocus(){this.inputEl.value?.focus()}willUpdate(t){t.has("value")&&this.validate(t.get("value"))}isValidCoord(t,r,i){if(!t?.match(/^-?[0-9]*(\.|,)?[0-9]+$/u))return!1;let e=this.parseNumber(t);return e>=r&&e<=i}validate(t){if(this.isInvalid=!this.isValidCoord(t,this.min,this.max),this.isInvalid)return this.currentError=this.errorMessage,!1;let r=this.parseNumber(t);return this.isInvalid=!this.validateRelated(r),this.isInvalid?(this.currentError=this.relatedErrorMessage,!1):!0}parseNumber(t){let r=`-${Array.from({length:10},(e,g)=>g.toString()).join("")}`,i=t.replace(",",".");return i=Array.from(i).filter(e=>r.includes(e)||e===".").join(""),parseFloat(i)}render(){return a`<div class=${s({"coord-field":!0,"is-rtl":this._direction==="rtl"})}><label class="coord-label" for=${this.inputId??o}>${this.label}</label><calcite-input-number number-button-type=none id=${this.inputId??o} class=${s({"coordinate-input":!0})} .value=${`${this.parseNumber(this.value)}`} @calciteInputNumberChange=${t=>{this.inputValue=t.target.value,this.validate(this.inputValue)&&this.arcgisCoordChange.emit(this.inputValue)}} .status=${this.isInvalid?"invalid":"valid"} ${p(this.inputEl)}></calcite-input-number>${this.isInvalid&&a`<div class="coord-error-message"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon><div class="coord-error-message__text">${this.currentError}</div></div>`||""}</div>`}};h("arcgis-portal-extent-picker-coord-field",l);export{l as ArcgisPortalExtentPickerCoordField};
@@ -0,0 +1,146 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import"./CFDTXKJ6.js";var e=`# ArcGIS JavaScript SDK FeatureLayerView Query Assistant
3
+
4
+ You are a GIS assistant that generates query parameters for the ArcGIS JavaScript SDK FeatureLayerView \`queryFeatures()\` method.
5
+
6
+ Analyze the assigned task and construct appropriate query parameters for each relevant layer. Only include parameters that are necessary to answer the assigned task.
7
+
8
+ ## Layer and Field Information
9
+
10
+ In addition to field info, layer info with layerId, name, and description will also be provided.
11
+ It will be an array of multiple layers.
12
+
13
+ You are only allowed to use the field names listed under each layer. Do not invent or use any fields not listed.
14
+
15
+ {layerFieldInfo}
16
+
17
+ ## Critical Guard \u2014 Do NOT Hallucinate Fields
18
+
19
+ If the assigned task asks for a filter that requires a field not present in the list above, do not invent the field and do not include it.
20
+
21
+ Instead:
22
+ If you can still answer something with the allowed fields, do so (for example: return an unfiltered count).
23
+ Otherwise, return a valid query with where: "1=1" and omit any unsupported filters entirely.
24
+ Never reference fields beyond those listed. If a temporal filter is requested but there is no date field in the schema, omit the temporal filter completely.
25
+
26
+ Validator: Before producing output, verify every field used exists in the listed fields. If any do not, remove the offending clause(s) and proceed per the Guard rules above.
27
+
28
+ ## Input
29
+
30
+ Assigned task:
31
+ {assignedTask}
32
+
33
+ Latest user request:
34
+ {userRequest}
35
+
36
+ Prior steps:
37
+ {priorSteps}
38
+
39
+ Last navigated features from shared state (if available):
40
+ {lastNavigatedFeatures}
41
+
42
+ Last resolved location from shared state (if available):
43
+ {lastResolvedLocation}
44
+
45
+ Use the assigned task as the primary instruction for the current query.
46
+ Use the latest user request as supporting context when needed.
47
+ Use prior steps only when the assigned task or user request clearly depends on earlier results.
48
+ Use shared-state context (\`lastResolvedLocation\`, \`lastNavigatedFeatures\`) for referential follow-ups when relevant.
49
+ Use chat history only when necessary to understand conversational references, and do not override the assigned task.
50
+
51
+ ### Anchor selection rule (strict, single source of truth)
52
+
53
+ When the request is referential (for example: "this", "it", "that", "those", "them", "of those", "the same one(s)"), choose exactly one anchor using this priority order:
54
+
55
+ 1. Explicit entity named in the current request (if present)
56
+ 2. \`lastResolvedLocation\` (if present and the request refers to a place/location)
57
+ 3. \`lastNavigatedFeatures\` (if present)
58
+ 4. The immediately previous successful relevant step from \`priorSteps\`
59
+
60
+ After selecting the anchor, keep that anchor for this query and do not switch to an older entity.
61
+ If \`lastNavigatedFeatures\` is used as the anchor, reuse its \`layerId\` and \`where\` for query scope unless the current request explicitly overrides it.
62
+
63
+ ### Fresh WHERE clause rule
64
+
65
+ Start with a fresh WHERE clause for each new question. Do not inherit filters from previous questions UNLESS the assigned task explicitly references previous results (see "Referencing Previously Identified Features" below).
66
+
67
+ ### Rules for generating WHERE clause SQL expressions:
68
+
69
+ - Use only the field's **\`name\`** in the output expression.
70
+ - Use metadata (\`alias\`, \`description\`, \`statistics\`) only to help understand the user's meaning \u2014 not in the syntax.
71
+ - Use field \`type\` to choose appropriate operators:
72
+ - **String** \u2192 \`LIKE '%value%'\`, \`=\`, \`IN (...)\` (prefer \`LIKE\` over \`=\`)
73
+ - **Number/Date** \u2192 \`=\`, \`<\`, \`>\`, \`BETWEEN\`, etc.
74
+ - Use fields with the **highest \`relevanceScore\`**.
75
+ - DO NOT use subqueries or \`SELECT\` keyword.
76
+ - Combine conditions with \`AND\`, \`OR\`, or \`NOT\` as appropriate.
77
+ - **Coded-value domain fields** \u2192 Always use the numeric/string **code** in WHERE clauses, never the domain name. Domain values are listed under each field as \`code=name\` pairs
78
+ - **Range domain fields** \u2192 Use the listed min/max as valid bounds for comparisons.
79
+ - If no meaningful layer filter can be generated, do not call a tool.
80
+
81
+ ## Referencing Previously Identified Features
82
+
83
+ This is an exception to the "fresh WHERE clause" rule above.
84
+
85
+ - If the anchored context is \`lastResolvedLocation\` with a point, prefer \`geometryFilter.point\` and use \`where: "1=1"\` unless the user asked for additional attribute filters.
86
+ - Only use \`useCurrentExtent: true\` when the user explicitly asks about the current view/map extent (for example: "in my view", "on my map", "visible now").
87
+ - If the anchored context includes specific feature IDs/objectIds, scope to those IDs.
88
+ - Otherwise, use the anchored \`layerId\` + \`where\` combination.
89
+
90
+ ### Mixed Questions
91
+
92
+ If a question has both aggregate and display components (e.g., "How many wells have depth > 100? Show them"):
93
+
94
+ - Focus ONLY on the aggregate part ("how many") for this query
95
+ - The visualization part ("show them") is handled by a separate system
96
+
97
+ ## RULES
98
+
99
+ DO NOT generate sub queries or nested queries as they are not supported by ArcGIS.
100
+
101
+ When dealing with geometry and proximity and spatial queries:
102
+
103
+ 1. TARGET LAYER = What you want to FIND/RETURN in results
104
+ 2. GEOMETRY LAYER = The location to search FROM (with distance buffer)
105
+
106
+ For questions like "Is [specific item A] near/within [any of type B]":
107
+
108
+ - Target: Type B (what we're searching for)
109
+ - Geometry: Specific item A (where we're searching from)
110
+
111
+ Examples:
112
+
113
+ Q: "Is well P132_1873 within 300m from a protected area?"
114
+ Target: Protected Areas (what we want to find)
115
+ Geometry: Well (where="ID = 'P132_1873'" - single point)
116
+ Result: Returns which protected areas are nearby
117
+
118
+ Q: "Find roads within 500m of park X"
119
+ Target: Roads (what we want to find)
120
+ Geometry: Park X (specific location)
121
+ Result: Returns which roads are nearby
122
+
123
+ Key principle: The geometry layer should be the SIMPLER geometry (ideally a single feature or small set),
124
+ not a large collection that requires union operations.
125
+
126
+ ### NOTE:
127
+
128
+ If the assigned task includes no filter (where: 1=1) and the answer can be derived from precomputed fieldStatistics, do NOT call a tool. Instead, respond directly using the provided statistics.
129
+
130
+ If you cannot answer directly, you MUST call a tool.
131
+
132
+ ## SQL-92 Date/Time Syntax
133
+
134
+ User timezone: {userTimezone} ({userTimezoneOffset})
135
+
136
+ Database stores dates in UTC. Convert user's local time to UTC.
137
+
138
+ To convert: if offset is \`-08:00\`, add 8 hours. If \`-05:00\`, add 5 hours.
139
+
140
+ Format: \`TIMESTAMP 'YYYY-MM-DD HH:MM:SS'\`
141
+
142
+ ## Your Task
143
+
144
+ 1. Analyze the assigned task and the provided layer and field information.
145
+ 2. Select zero or one most appropriate tool to call based on the assigned task.
146
+ `;export{e as default};
@@ -0,0 +1,66 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as Ee}from"./6K7GPATC.js";import{a as ze}from"./4ISLOZQ3.js";import{a as _e}from"./PIZFXU2N.js";import"./SFKRR7GW.js";import{K as Re,Q as Le,h as $e,j as z,v as oe}from"./CAQR2NSG.js";import"./CFDTXKJ6.js";var K=function(){return K=Object.assign||function(t){for(var r,s=1,n=arguments.length;s<n;s++){r=arguments[s];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},K.apply(this,arguments)},ce={exports:{}},b={},ue={exports:{}},E={};function Be(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function gt(e,t,r){}function dt(e,t,r){}var kt=/javascript\s*\:/img;function bt(e,t){return kt.test(t)?"":t}E.whiteList=Be();E.getDefaultWhiteList=Be;E.onAttr=gt;E.onIgnoreAttr=dt;E.safeAttrValue=bt;var mt={indexOf:function(e,t){var r,s;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,s=e.length;r<s;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var s,n;if(Array.prototype.forEach)return e.forEach(t,r);for(s=0,n=e.length;s<n;s++)t.call(r,e[s],s,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},W=mt;function xt(e,t){e=W.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,s=!1,n=0,i=0,l="";function a(){if(!s){var p=W.trim(e.slice(n,i)),u=p.indexOf(":");if(u!==-1){var f=W.trim(p.slice(0,u)),g=W.trim(p.slice(u+1));if(f){var h=t(n,l.length,f,g,p);h&&(l+=h+"; ")}}}n=i+1}for(;i<r;i++){var c=e[i];if(c==="/"&&e[i+1]==="*"){var o=e.indexOf("*/",i+2);if(o===-1)break;i=o+1,n=i+1,s=!1}else c==="("?s=!0:c===")"?s=!1:c===";"?s||a():c===`
3
+ `&&a()}return W.trim(l)}var wt=xt,Q=E,yt=wt;function Ie(e){return e==null}function vt(e){var t={};for(var r in e)t[r]=e[r];return t}function qe(e){e=vt(e||{}),e.whiteList=e.whiteList||Q.whiteList,e.onAttr=e.onAttr||Q.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Q.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Q.safeAttrValue,this.options=e}qe.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,s=r.whiteList,n=r.onAttr,i=r.onIgnoreAttr,l=r.safeAttrValue,a=yt(e,function(c,o,p,u,f){var g=s[p],h=!1;if(g===!0?h=g:typeof g=="function"?h=g(u):g instanceof RegExp&&(h=g.test(u)),h!==!0&&(h=!1),u=l(p,u),!!u){var m={position:o,sourcePosition:c,source:f,isWhite:h};if(h){var x=n(p,u,m);return Ie(x)?p+":"+u:x}else{var x=i(p,u,m);if(!Ie(x))return x}}});return a};var At=qe;(function(e,t){var r=E,s=At;function n(l,a){var c=new s(a);return c.process(l)}t=e.exports=n,t.FilterCSS=s;for(var i in r)t[i]=r[i]})(ue,ue.exports);var pe=ue.exports,fe={indexOf:function(e,t){var r,s;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,s=e.length;r<s;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var s,n;if(Array.prototype.forEach)return e.forEach(t,r);for(s=0,n=e.length;s<n;s++)t.call(r,e[s],s,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},St=pe.FilterCSS,Tt=pe.getDefaultWhiteList,Y=fe;function De(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Fe=new St;function $t(e,t,r){}function Rt(e,t,r){}function Lt(e,t,r){}function _t(e,t,r){}function Ve(e){return e.replace(Et,"&lt;").replace(It,"&gt;")}function zt(e,t,r,s){if(r=He(r),t==="href"||t==="src"){if(r=Y.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(M.lastIndex=0,M.test(r))return""}else if(t==="style"){if(Ce.lastIndex=0,Ce.test(r)||(Pe.lastIndex=0,Pe.test(r)&&(M.lastIndex=0,M.test(r))))return"";s!==!1&&(s=s||Fe,r=s.process(r))}return r=Xe(r),r}var Et=/</g,It=/>/g,Ct=/"/g,Pt=/&quot;/g,Ot=/&#([a-zA-Z0-9]*);?/gim,Bt=/&colon;?/gim,qt=/&newline;?/gim,M=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Ce=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Pe=/u\s*r\s*l\s*\(.*/gi;function Ne(e){return e.replace(Ct,"&quot;")}function We(e){return e.replace(Pt,'"')}function Ge(e){return e.replace(Ot,function(r,s){return s[0]==="x"||s[0]==="X"?String.fromCharCode(parseInt(s.substr(1),16)):String.fromCharCode(parseInt(s,10))})}function je(e){return e.replace(Bt,":").replace(qt," ")}function Ze(e){for(var t="",r=0,s=e.length;r<s;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Y.trim(t)}function He(e){return e=We(e),e=Ge(e),e=je(e),e=Ze(e),e}function Xe(e){return e=Ne(e),e=Ve(e),e}function Dt(){return""}function Ft(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function s(l){return r?!0:Y.indexOf(e,l)!==-1}var n=[],i=!1;return{onIgnoreTag:function(l,a,c){if(s(l))if(c.isClosing){var o="[/removed]",p=c.position+o.length;return n.push([i!==!1?i:c.position,p]),i=!1,o}else return i||(i=c.position),"[removed]";else return t(l,a,c)},remove:function(l){var a="",c=0;return Y.forEach(n,function(o){a+=l.slice(c,o[0]),c=o[1]}),a+=l.slice(c),a}}}function Vt(e){for(var t="",r=0;r<e.length;){var s=e.indexOf("<!--",r);if(s===-1){t+=e.slice(r);break}t+=e.slice(r,s);var n=e.indexOf("-->",s);if(n===-1)break;r=n+3}return t}function Nt(e){var t=e.split("");return t=t.filter(function(r){var s=r.charCodeAt(0);return s===127?!1:s<=31?s===10||s===13:!0}),t.join("")}b.whiteList=De();b.getDefaultWhiteList=De;b.onTag=$t;b.onIgnoreTag=Rt;b.onTagAttr=Lt;b.onIgnoreTagAttr=_t;b.safeAttrValue=zt;b.escapeHtml=Ve;b.escapeQuote=Ne;b.unescapeQuote=We;b.escapeHtmlEntities=Ge;b.escapeDangerHtml5Entities=je;b.clearNonPrintableCharacter=Ze;b.friendlyAttrValue=He;b.escapeAttrValue=Xe;b.onIgnoreTagStripAll=Dt;b.StripTagBody=Ft;b.stripCommentTag=Vt;b.stripBlankChar=Nt;b.cssFilter=Fe;b.getDefaultCSSWhiteList=Tt;var ee={},$=fe;function Wt(e){var t=$.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=$.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function Gt(e){return e.slice(0,2)==="</"}function jt(e,t,r){var s="",n=0,i=!1,l=!1,a=0,c=e.length,o="",p="";e:for(a=0;a<c;a++){var u=e.charAt(a);if(i===!1){if(u==="<"){i=a;continue}}else if(l===!1){if(u==="<"){s+=r(e.slice(n,a)),i=a,n=a;continue}if(u===">"){s+=r(e.slice(n,i)),p=e.slice(i,a+1),o=Wt(p),s+=t(i,s.length,o,p,Gt(p)),n=a+1,i=!1;continue}if(u==='"'||u==="'")for(var f=1,g=e.charAt(a-f);g.trim()===""||g==="=";){if(g==="="){l=u;continue e}g=e.charAt(a-++f)}}else if(u===l){l=!1;continue}}return n<e.length&&(s+=r(e.substr(n))),s}var Zt=/[^a-zA-Z0-9\\_:.-]/gim;function Ht(e,t){var r=0,s=0,n=[],i=!1,l=e.length;function a(f,g){if(f=$.trim(f),f=f.replace(Zt,"").toLowerCase(),!(f.length<1)){var h=t(f,g||"");h&&n.push(h)}}for(var c=0;c<l;c++){var o=e.charAt(c),p,u;if(i===!1&&o==="="){i=e.slice(r,c),r=c+1,s=e.charAt(r)==='"'||e.charAt(r)==="'"?r:Qt(e,c+1);continue}if(i!==!1&&c===s){if(u=e.indexOf(o,c+1),u===-1)break;p=$.trim(e.slice(s+1,u)),a(i,p),i=!1,c=u,r=c+1;continue}if(/\s|\n|\t/.test(o))if(e=e.replace(/\s|\n|\t/g," "),i===!1)if(u=Xt(e,c),u===-1){p=$.trim(e.slice(r,c)),a(p),i=!1,r=c+1;continue}else{c=u-1;continue}else if(u=Mt(e,c-1),u===-1){p=$.trim(e.slice(r,c)),p=Oe(p),a(i,p),i=!1,r=c+1;continue}else continue}return r<e.length&&(i===!1?a(e.slice(r)):a(i,Oe($.trim(e.slice(r))))),$.trim(n.join(" "))}function Xt(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function Qt(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function Mt(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function Ut(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Oe(e){return Ut(e)?e.substr(1,e.length-2):e}ee.parseTag=jt;ee.parseAttr=Ht;var Jt=pe.FilterCSS,y=b,Qe=ee,Kt=Qe.parseTag,Yt=Qe.parseAttr,J=fe;function U(e){return e==null}function er(e){var t=J.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=J.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=J.trim(e.slice(0,-1))),{html:e,closing:r}}function tr(e){var t={};for(var r in e)t[r]=e[r];return t}function rr(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(s){return s.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function Me(e){e=tr(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=y.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=rr(e.whiteList||e.allowList):e.whiteList=y.whiteList,e.onTag=e.onTag||y.onTag,e.onTagAttr=e.onTagAttr||y.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||y.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||y.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||y.safeAttrValue,e.escapeHtml=e.escapeHtml||y.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Jt(e.css))}Me.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,s=r.whiteList,n=r.onTag,i=r.onIgnoreTag,l=r.onTagAttr,a=r.onIgnoreTagAttr,c=r.safeAttrValue,o=r.escapeHtml,p=t.cssFilter;r.stripBlankChar&&(e=y.stripBlankChar(e)),r.allowCommentTag||(e=y.stripCommentTag(e));var u=!1;r.stripIgnoreTagBody&&(u=y.StripTagBody(r.stripIgnoreTagBody,i),i=u.onIgnoreTag);var f=Kt(e,function(g,h,m,x,H){var L={sourcePosition:g,position:h,isClosing:H,isWhite:Object.prototype.hasOwnProperty.call(s,m)},_=n(m,x,L);if(!U(_))return _;if(L.isWhite){if(L.isClosing)return"</"+m+">";var X=er(x),V=s[m],T=Yt(X.html,function(O,B){var le=J.indexOf(V,O)!==-1,N=l(m,O,B,le);return U(N)?le?(B=c(m,O,B,p),B?O+'="'+B+'"':O):(N=a(m,O,B,le),U(N)?void 0:N):N});return x="<"+m,T&&(x+=" "+T),X.closing&&(x+=" /"),x+=">",x}else return _=i(m,x,L),U(_)?o(x):_},o);return u&&(f=u.remove(f)),f};var sr=Me;(function(e,t){var r=b,s=ee,n=sr;function i(a,c){var o=new n(c);return o.process(a)}t=e.exports=i,t.filterXSS=i,t.FilterXSS=n,(function(){for(var a in r)t[a]=r[a];for(var c in s)t[c]=s[c]})();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(ce,ce.exports);var q=ce.exports,nr=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},Ue=(function(){function e(t,r){var s=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=K(K({},q.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(i,l,a,c){return i==="a"&&l==="href"||(i==="img"||i==="source")&&l==="src"?s.sanitizeUrl(a):q.safeAttrValue(i,l,a,c)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var n;t&&!r?n=t:t&&r?(n=Object.create(this.arcgisFilterOptions),n.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(i){if(i==="whiteList")n.whiteList=s._extendObjectOfArrays([s.arcgisWhiteList,t.whiteList||{}]);else if(i==="css"){var l=t.css.whiteList;l!=null&&t.css instanceof Object&&Object.keys(l).forEach(function(a){return n.css.whiteList[a]=l[a]})}else n[i]=t[i]})):(n=Object.create(this.arcgisFilterOptions),n.whiteList=this.arcgisWhiteList,n.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=n,this._xssFilter=new q.FilterXSS(n)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var s=(r??{}).isProtocolRequired,n=s===void 0?!0:s,i=this._trim(t.substring(0,t.indexOf(":"))),l=t==="/",a=/^#/.test(t),c=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return l||a||c?q.escapeAttrValue(t):!i&&!n?q.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,s,n){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,s,n):q.safeAttrValue(t,r,s,n)},e.prototype.validate=function(t,r){r===void 0&&(r={});var s=this.sanitize(t,r);return{isValid:t===s,sanitized:s}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(s){return r._entityMap[s]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(s,n){return r.test(s)?s:"&#x".concat(Number(t.charCodeAt(n)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(s){Object.keys(s).forEach(function(n){Array.isArray(s[n])&&Array.isArray(r[n])?r[n]=r[n].concat(s[n]):r[n]=s[n]})}),r},e.prototype._iterateOverObject=function(t,r){var s=this;r===void 0&&(r={});try{var n=!1,i=void 0;if(Array.isArray(t))i=t.reduce(function(a,c){var o=s.validate(c,r);return o.isValid?a.concat([c]):(n=!0,a.concat([o.sanitized]))},[]);else if(nr(t)){var l=Object.keys(t);i=l.reduce(function(a,c){var o=t[c],p=s.validate(o,r);return p.isValid?a[c]=o:(n=!0,a[c]=p.sanitized),a},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return n?i:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e})();function ke(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var P=ke();function nt(e){P=e}var I={exec:()=>null};function D(e){let t=[];return r=>{let s=Math.max(0,Math.min(3,r-1)),n=t[s];return n||(n=e(s),t[s]=n),n}}function d(e,t=""){let r=typeof e=="string"?e:e.source,s={replace:(n,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(w.caret,"$1"),r=r.replace(n,l),s},getRegex:()=>new RegExp(r,t)};return s}var ir=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),w={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:D(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:D(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:D(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:D(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:D(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:D(e=>new RegExp(`^ {0,${e}}>`))},ar=/^(?:[ \t]*(?:\n|$))+/,lr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,or=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Z=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,cr=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,be=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,it=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,at=d(it).replace(/bull/g,be).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),ur=d(it).replace(/bull/g,be).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),me=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pr=/^[^\n]+/,xe=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,fr=d(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),hr=d(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,be).getRegex(),ie="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",we=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,gr=d("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",we).replace("tag",ie).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lt=d(me).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ie).getRegex(),dr=d(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lt).getRegex(),ye={blockquote:dr,code:lr,def:fr,fences:or,heading:cr,hr:Z,html:gr,lheading:at,list:hr,newline:ar,paragraph:lt,table:I,text:pr},Je=d("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ie).getRegex(),kr={...ye,lheading:ur,table:Je,paragraph:d(me).replace("hr",Z).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Je).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ie).getRegex()},br={...ye,html:d(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",we).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(me).replace("hr",Z).replace("heading",` *#{1,6} *[^
4
+ ]`).replace("lheading",at).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},mr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ot=/^( {2,}|\\)\n(?!\s*$)/,wr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,F=/[\p{P}\p{S}]/u,ae=/[\s\p{P}\p{S}]/u,ve=/[^\s\p{P}\p{S}]/u,yr=d(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ae).getRegex(),ct=/(?!~)[\p{P}\p{S}]/u,vr=/(?!~)[\s\p{P}\p{S}]/u,Ar=/(?:[^\s\p{P}\p{S}]|~)/u,Sr=d(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ir?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ut=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Tr=d(ut,"u").replace(/punct/g,F).getRegex(),$r=d(ut,"u").replace(/punct/g,ct).getRegex(),pt="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Rr=d(pt,"gu").replace(/notPunctSpace/g,ve).replace(/punctSpace/g,ae).replace(/punct/g,F).getRegex(),Lr=d(pt,"gu").replace(/notPunctSpace/g,Ar).replace(/punctSpace/g,vr).replace(/punct/g,ct).getRegex(),_r=d("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ve).replace(/punctSpace/g,ae).replace(/punct/g,F).getRegex(),zr=d(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,F).getRegex(),Er="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ir=d(Er,"gu").replace(/notPunctSpace/g,ve).replace(/punctSpace/g,ae).replace(/punct/g,F).getRegex(),Cr=d(/\\(punct)/,"gu").replace(/punct/g,F).getRegex(),Pr=d(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Or=d(we).replace("(?:-->|$)","-->").getRegex(),Br=d("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Or).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),re=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,qr=d(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",re).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=d(/^!?\[(label)\]\[(ref)\]/).replace("label",re).replace("ref",xe).getRegex(),ht=d(/^!?\[(ref)\](?:\[\])?/).replace("ref",xe).getRegex(),Dr=d("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",ht).getRegex(),Ke=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ae={_backpedal:I,anyPunctuation:Cr,autolink:Pr,blockSkip:Sr,br:ot,code:xr,del:I,delLDelim:I,delRDelim:I,emStrongLDelim:Tr,emStrongRDelimAst:Rr,emStrongRDelimUnd:_r,escape:mr,link:qr,nolink:ht,punctuation:yr,reflink:ft,reflinkSearch:Dr,tag:Br,text:wr,url:I},Fr={...Ae,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",re).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",re).getRegex()},he={...Ae,emStrongRDelimAst:Lr,emStrongLDelim:$r,delLDelim:zr,delRDelim:Ir,url:d(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ke).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:d(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ke).getRegex()},Vr={...he,br:d(ot).replace("{2,}","*").getRegex(),text:d(he.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},te={normal:ye,gfm:kr,pedantic:br},G={normal:Ae,gfm:he,breaks:Vr,pedantic:Fr},Nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ye=e=>Nr[e];function S(e,t){if(t){if(w.escapeTest.test(e))return e.replace(w.escapeReplace,Ye)}else if(w.escapeTestNoEncode.test(e))return e.replace(w.escapeReplaceNoEncode,Ye);return e}function et(e){try{e=encodeURI(e).replace(w.percentDecode,"%")}catch{return null}return e}function tt(e,t){let r=e.replace(w.findPipe,(i,l,a)=>{let c=!1,o=l;for(;--o>=0&&a[o]==="\\";)c=!c;return c?"|":" |"}),s=r.split(w.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(w.slashPipe,"|");return s}function R(e,t,r){let s=e.length;if(s===0)return"";let n=0;for(;n<s;){let i=e.charAt(s-n-1);if(i===t&&!r)n++;else if(i!==t&&r)n++;else break}return e.slice(0,s-n)}function rt(e){let t=e.split(`
5
+ `),r=t.length-1;for(;r>=0&&w.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join(`
6
+ `)}function Wr(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])r++;else if(e[s]===t[1]&&(r--,r<0))return s;return r>0?-2:-1}function Gr(e,t=0){let r=t,s="";for(let n of e)if(n===" "){let i=4-r%4;s+=" ".repeat(i),r+=i}else s+=n,r++;return s}function st(e,t,r,s,n){let i=t.href,l=t.title||null,a=e[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,c}function jr(e,t,r){let s=e.match(r.other.indentCodeCompensation);if(s===null)return t;let n=s[1];return t.split(`
7
+ `).map(i=>{let l=i.match(r.other.beginningSpace);if(l===null)return i;let[a]=l;return a.length>=n.length?i.slice(n.length):i}).join(`
8
+ `)}var se=class{options;rules;lexer;constructor(e){this.options=e||P}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=this.options.pedantic?t[0]:rt(t[0]),s=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:s}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],s=jr(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let s=R(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:R(t[0],`
9
+ `),depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:R(t[0],`
10
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=R(t[0],`
11
+ `).split(`
12
+ `),s="",n="",i=[];for(;r.length>0;){let l=!1,a=[],c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),l=!0;else if(!l)a.push(r[c]);else break;r=r.slice(c);let o=a.join(`
13
+ `),p=o.replace(this.rules.other.blockquoteSetextReplace,`
14
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
15
+ ${o}`:o,n=n?`${n}
16
+ ${p}`:p;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,i,!0),this.lexer.state.top=u,r.length===0)break;let f=i.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let g=f,h=g.raw+`
17
+ `+r.join(`
18
+ `),m=this.blockquote(h);i[i.length-1]=m,s=s.substring(0,s.length-g.raw.length)+m.raw,n=n.substring(0,n.length-g.text.length)+m.text;break}else if(f?.type==="list"){let g=f,h=g.raw+`
19
+ `+r.join(`
20
+ `),m=this.list(h);i[i.length-1]=m,s=s.substring(0,s.length-f.raw.length)+m.raw,n=n.substring(0,n.length-g.raw.length)+m.raw,r=h.substring(i.at(-1).raw.length).split(`
21
+ `);continue}}return{type:"blockquote",raw:s,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),s=r.length>1,n={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");let i=this.rules.other.listItemRegex(r),l=!1;for(;e;){let c=!1,o="",p="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;o=t[0],e=e.substring(o.length);let u=Gr(t[2].split(`
22
+ `,1)[0],t[1].length),f=e.split(`
23
+ `,1)[0],g=!u.trim(),h=0;if(this.options.pedantic?(h=2,p=u.trimStart()):g?h=t[1].length+1:(h=u.search(this.rules.other.nonSpaceChar),h=h>4?1:h,p=u.slice(h),h+=t[1].length),g&&this.rules.other.blankLine.test(f)&&(o+=f+`
24
+ `,e=e.substring(f.length+1),c=!0),!c){let m=this.rules.other.nextBulletRegex(h),x=this.rules.other.hrRegex(h),H=this.rules.other.fencesBeginRegex(h),L=this.rules.other.headingBeginRegex(h),_=this.rules.other.htmlBeginRegex(h),X=this.rules.other.blockquoteBeginRegex(h);for(;e;){let V=e.split(`
25
+ `,1)[0],T;if(f=V,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),T=f):T=f.replace(this.rules.other.tabCharGlobal," "),H.test(f)||L.test(f)||_.test(f)||X.test(f)||m.test(f)||x.test(f))break;if(T.search(this.rules.other.nonSpaceChar)>=h||!f.trim())p+=`
26
+ `+T.slice(h);else{if(g||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||H.test(u)||L.test(u)||x.test(u))break;p+=`
27
+ `+f}g=!f.trim(),o+=V+`
28
+ `,e=e.substring(V.length+1),u=T.slice(h)}}n.loose||(l?n.loose=!0:this.rules.other.doubleBlankLine.test(o)&&(l=!0)),n.items.push({type:"list_item",raw:o,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),n.raw+=o}let a=n.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]);let o=c.tokens[0];if(c.task&&(o?.type==="text"||o?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),o.raw=o.raw.replace(this.rules.other.listReplaceTask,""),o.text=o.text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(c.raw);if(p){let u={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};c.checked=u.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}else c.task&&(c.task=!1);if(!n.loose){let p=c.tokens.filter(f=>f.type==="space"),u=p.length>0&&p.some(f=>this.rules.other.anyLine.test(f.raw));n.loose=u}}if(n.loose)for(let c of n.items){c.loose=!0;for(let o of c.tokens)o.type==="text"&&(o.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t){let r=rt(t[0]);return{type:"html",block:!0,raw:r,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:r}}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:R(t[0],`
29
+ `),href:s,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=tt(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
30
+ `):[],i={type:"table",raw:R(t[0],`
31
+ `),header:[],align:[],rows:[]};if(r.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?i.align.push("right"):this.rules.other.tableAlignCenter.test(l)?i.align.push("center"):this.rules.other.tableAlignLeft.test(l)?i.align.push("left"):i.align.push(null);for(let l=0;l<r.length;l++)i.header.push({text:r[l],tokens:this.lexer.inline(r[l]),header:!0,align:i.align[l]});for(let l of n)i.rows.push(tt(l,i.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:R(t[0],`
32
+ `),depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
33
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=R(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=Wr(t[2],"()");if(i===-2)return;if(i>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let s=t[2],n="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],n=i[3])}else n=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),st(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[s.toLowerCase()];if(!n){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return st(r,n,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!r||this.rules.inline.punctuation.exec(r))){let n=[...s[0]].length-1,i,l,a=n,c=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);(s=o.exec(t))!==null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(l=[...i].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){c+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+c);let p=[...s[0]][0].length,u=e.slice(0,n+s.index+p+l);if(Math.min(n,l)%2){let g=u.slice(1,-1);return{type:"em",raw:u,text:g,tokens:this.lexer.inlineTokens(g)}}let f=u.slice(2,-2);return{type:"strong",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let n=[...s[0]].length-1,i,l,a=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(s=c.exec(t))!==null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i||(l=[...i].length,l!==n))continue;if(s[3]||s[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let o=[...s[0]][0].length,p=e.slice(0,n+s.index+o+l),u=p.slice(n,-n);return{type:"del",raw:p,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,s;return t[2]==="@"?(r=t[1],s="mailto:"+r):(r=t[1],s=r),{type:"link",raw:t[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,s;if(t[2]==="@")r=t[0],s="mailto:"+r;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);r=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},v=class ge{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||P,this.options.tokenizer=this.options.tokenizer||new se,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:w,block:te.normal,inline:G.normal};this.options.pedantic?(r.block=te.pedantic,r.inline=G.pedantic):this.options.gfm&&(r.block=te.gfm,this.options.breaks?r.inline=G.breaks:r.inline=G.gfm),this.tokenizer.rules=r}static get rules(){return{block:te,inline:G}}static lex(t,r){return new ge(r).lex(t)}static lexInline(t,r){return new ge(r).inlineTokens(t)}lex(t){t=t.replace(w.carriageReturn,`
34
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],s=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(w.tabCharGlobal," ").replace(w.spaceLine,""));let n=1/0;for(;t;){if(t.length<n)n=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(a=>(i=a.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let a=r.at(-1);i.raw.length===1&&a!==void 0?a.raw+=`
35
+ `:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
36
+ `)?"":`
37
+ `)+i.raw,a.text+=`
38
+ `+i.text,this.inlineQueue.at(-1).src=a.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let a=r.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
39
+ `)?"":`
40
+ `)+i.raw,a.text+=`
41
+ `+i.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},r.push(i));continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}let l=t;if(this.options.extensions?.startBlock){let a=1/0,c=t.slice(1),o;this.options.extensions.startBlock.forEach(p=>{o=p.call({lexer:this},c),typeof o=="number"&&o>=0&&(a=Math.min(a,o))}),a<1/0&&a>=0&&(l=t.substring(0,a+1))}if(this.state.top&&(i=this.tokenizer.paragraph(l))){let a=r.at(-1);s&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
42
+ `)?"":`
43
+ `)+i.raw,a.text+=`
44
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(i),s=l.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let a=r.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
45
+ `)?"":`
46
+ `)+i.raw,a.text+=`
47
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):r.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){this.tokenizer.lexer=this;let s=t,n=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)o.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)i=n[2]?n[2].length:0,s=s.slice(0,n.index+i)+"["+"a".repeat(n[0].length-i-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let l=!1,a="",c=1/0;for(;t;){if(t.length<c)c=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}l||(a=""),l=!1;let o;if(this.options.extensions?.inline?.some(u=>(o=u.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.escape(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.tag(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.link(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(o.raw.length);let u=r.at(-1);o.type==="text"&&u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):r.push(o);continue}if(o=this.tokenizer.emStrong(t,s,a)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.codespan(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.br(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.del(t,s,a)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.autolink(t)){t=t.substring(o.raw.length),r.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(t))){t=t.substring(o.raw.length),r.push(o);continue}let p=t;if(this.options.extensions?.startInline){let u=1/0,f=t.slice(1),g;this.options.extensions.startInline.forEach(h=>{g=h.call({lexer:this},f),typeof g=="number"&&g>=0&&(u=Math.min(u,g))}),u<1/0&&u>=0&&(p=t.substring(0,u+1))}if(o=this.tokenizer.inlineText(p)){t=t.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(a=o.raw.slice(-1)),l=!0;let u=r.at(-1);u?.type==="text"?(u.raw+=o.raw,u.text+=o.text):r.push(o);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return r}infiniteLoopError(t){let r="Infinite loop on byte: "+t;if(this.options.silent)console.error(r);else throw new Error(r)}},ne=class{options;parser;constructor(e){this.options=e||P}space(e){return""}code({text:e,lang:t,escaped:r}){let s=(t||"").match(w.notSpaceStart)?.[0],n=e.replace(w.endingNewline,"")+`
48
+ `;return s?'<pre><code class="language-'+S(s)+'">'+(r?n:S(n,!0))+`</code></pre>
49
+ `:"<pre><code>"+(r?n:S(n,!0))+`</code></pre>
50
+ `}blockquote({tokens:e}){return`<blockquote>
51
+ ${this.parser.parse(e)}</blockquote>
52
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
53
+ `}hr(e){return`<hr>
54
+ `}list(e){let t=e.ordered,r=e.start,s="";for(let l=0;l<e.items.length;l++){let a=e.items[l];s+=this.listitem(a)}let n=t?"ol":"ul",i=t&&r!==1?' start="'+r+'"':"";return"<"+n+i+`>
55
+ `+s+"</"+n+`>
56
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
57
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
58
+ `}table(e){let t="",r="";for(let n=0;n<e.header.length;n++)r+=this.tablecell(e.header[n]);t+=this.tablerow({text:r});let s="";for(let n=0;n<e.rows.length;n++){let i=e.rows[n];r="";for(let l=0;l<i.length;l++)r+=this.tablecell(i[l]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
59
+ <thead>
60
+ `+t+`</thead>
61
+ `+s+`</table>
62
+ `}tablerow({text:e}){return`<tr>
63
+ ${e}</tr>
64
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
65
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${S(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let s=this.parser.parseInline(r),n=et(e);if(n===null)return s;e=n;let i='<a href="'+e+'"';return t&&(i+=' title="'+S(t)+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let n=et(e);if(n===null)return S(r);e=n;let i=`<img src="${e}" alt="${S(r)}"`;return t&&(i+=` title="${S(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:S(e.text)}},Se=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},A=class de{options;renderer;textRenderer;constructor(t){this.options=t||P,this.options.renderer=this.options.renderer||new ne,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Se}static parse(t,r){return new de(r).parse(t)}static parseInline(t,r){return new de(r).parseInline(t)}parse(t){this.renderer.parser=this;let r="";for(let s=0;s<t.length;s++){let n=t[s];if(this.options.extensions?.renderers?.[n.type]){let l=n,a=this.options.extensions.renderers[l.type].call({parser:this},l);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){r+=a||"";continue}}let i=n;switch(i.type){case"space":{r+=this.renderer.space(i);break}case"hr":{r+=this.renderer.hr(i);break}case"heading":{r+=this.renderer.heading(i);break}case"code":{r+=this.renderer.code(i);break}case"table":{r+=this.renderer.table(i);break}case"blockquote":{r+=this.renderer.blockquote(i);break}case"list":{r+=this.renderer.list(i);break}case"checkbox":{r+=this.renderer.checkbox(i);break}case"html":{r+=this.renderer.html(i);break}case"def":{r+=this.renderer.def(i);break}case"paragraph":{r+=this.renderer.paragraph(i);break}case"text":{r+=this.renderer.text(i);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}parseInline(t,r=this.renderer){this.renderer.parser=this;let s="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=a||"";continue}}let l=i;switch(l.type){case"escape":{s+=r.text(l);break}case"html":{s+=r.html(l);break}case"link":{s+=r.link(l);break}case"image":{s+=r.image(l);break}case"checkbox":{s+=r.checkbox(l);break}case"strong":{s+=r.strong(l);break}case"em":{s+=r.em(l);break}case"codespan":{s+=r.codespan(l);break}case"br":{s+=r.br(l);break}case"del":{s+=r.del(l);break}case"text":{s+=r.text(l);break}default:{let a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return s}},j=class{options;block;constructor(e){this.options=e||P}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?v.lex:v.lexInline}provideParser(e=this.block){return e?A.parse:A.parseInline}},Zr=class{defaults=ke();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=A;Renderer=ne;TextRenderer=Se;Lexer=v;Tokenizer=se;Hooks=j;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let s of e)switch(r=r.concat(t.call(this,s)),s.type){case"table":{let n=s;for(let i of n.header)r=r.concat(this.walkTokens(i.tokens,t));for(let i of n.rows)for(let l of i)r=r.concat(this.walkTokens(l.tokens,t));break}case"list":{let n=s;r=r.concat(this.walkTokens(n.items,t));break}default:{let n=s;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(i=>{let l=n[i].flat(1/0);r=r.concat(this.walkTokens(l,t))}):n.tokens&&(r=r.concat(this.walkTokens(n.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let i=t.renderers[n.name];i?t.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=i.apply(this,l)),a}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[n.level];i?i.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),s.extensions=t),r.renderer){let n=this.defaults.renderer||new ne(this.defaults);for(let i in r.renderer){if(!(i in n))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,a=r.renderer[l],c=n[l];n[l]=(...o)=>{let p=a.apply(n,o);return p===!1&&(p=c.apply(n,o)),p||""}}s.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new se(this.defaults);for(let i in r.tokenizer){if(!(i in n))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,a=r.tokenizer[l],c=n[l];n[l]=(...o)=>{let p=a.apply(n,o);return p===!1&&(p=c.apply(n,o)),p}}s.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new j;for(let i in r.hooks){if(!(i in n))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,a=r.hooks[l],c=n[l];j.passThroughHooks.has(i)?n[l]=o=>{if(this.defaults.async&&j.passThroughHooksRespectAsync.has(i))return(async()=>{let u=await a.call(n,o);return c.call(n,u)})();let p=a.call(n,o);return c.call(n,p)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let u=await a.apply(n,o);return u===!1&&(u=await c.apply(n,o)),u})();let p=a.apply(n,o);return p===!1&&(p=c.apply(n,o)),p}}s.hooks=n}if(r.walkTokens){let n=this.defaults.walkTokens,i=r.walkTokens;s.walkTokens=function(l){let a=[];return a.push(i.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return v.lex(e,t??this.defaults)}parser(e,t){return A.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let s={...r},n={...this.defaults,...s},i=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(t):t,a=await(n.hooks?await n.hooks.provideLexer(e):e?v.lex:v.lexInline)(l,n),c=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser(e):e?A.parse:A.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(i);try{n.hooks&&(t=n.hooks.preprocess(t));let l=(n.hooks?n.hooks.provideLexer(e):e?v.lex:v.lexInline)(t,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser(e):e?A.parse:A.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return i(l)}}}onError(e,t){return r=>{if(r.message+=`
66
+ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+S(r.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(r);throw r}}},C=new Zr;function k(e,t){return C.parse(e,t)}k.options=k.setOptions=function(e){return C.setOptions(e),k.defaults=C.defaults,nt(k.defaults),k};k.getDefaults=ke;k.defaults=P;k.use=function(...e){return C.use(...e),k.defaults=C.defaults,nt(k.defaults),k};k.walkTokens=function(e,t){return C.walkTokens(e,t)};k.parseInline=C.parseInline;k.Parser=A;k.parser=A.parse;k.Renderer=ne;k.TextRenderer=Se;k.Lexer=v;k.lexer=v.lex;k.Tokenizer=se;k.Hooks=j;k.parse=k;var Mr=k.options,Ur=k.setOptions,Jr=k.use,Kr=k.walkTokens,Yr=k.parseInline;var es=A.parse,ts=v.lex;var Hr=$e`.interrupt-container{display:flex;flex-direction:column;gap:.75rem}.interrupt-actions{display:flex;justify-content:flex-end;gap:.5rem}.interrupt-message{white-space:normal}// \`:where()\` to reset styles of common elements in the message content without increasing specificity .interrupt-message :where(p){margin:0}// \`:where()\` to reset styles of list elements and add consistent indentation for nested lists without increasing specificity .interrupt-message :where(ul,ol){margin:0;padding-inline-start:1.25rem}`;k.use({gfm:!0,breaks:!0,async:!1});var Xr=new Ue,Te=class extends Re{constructor(){super(...arguments),this.#e=[],this._messages=_e({blocking:!0}),this.arcgisCancel=oe(),this.arcgisSubmit=oe()}static{this.properties={type:1,message:1,options:0}}static{this.styles=Hr}#e;_renderMessageContent(){let t=this.message??"",r=k.parse(t,{async:!1});return Xr.sanitize(r)}_renderInterruptInput(){let{_messages:t,type:r,options:s}=this;switch(r){case"single-select":return z`<calcite-list class="interrupt-list" .label=${t.singleSelectLabel} selection-mode=single-persist @calciteListChange=${n=>this.#e=n.target.selectedItems[0]?.value}>${s?.map(n=>z`<calcite-list-item .label=${n} .value=${n}></calcite-list-item>`)}</calcite-list>`;case"multi-select":return z`<calcite-list class="interrupt-list" .label=${t.multiSelectLabel} selection-mode=multiple @calciteListChange=${n=>this.#e=n.target.selectedItems.map(i=>i.value)}>${s?.map(n=>z`<calcite-list-item .label=${n} .value=${n}></calcite-list-item>`)}</calcite-list>`;case"text-input":return z`<calcite-input class="interrupt-input" .label=${t.textInputLabel} @calciteInputInput=${n=>this.#e=n.target.value}></calcite-input>`;case"boolean-choice":return null;default:return ze(r)}}render(){let{_messages:t,type:r}=this,s=r==="boolean-choice";return z`<div class="interrupt-container"><calcite-notice open kind=neutral width=full><div slot=title>${s?t.titleConfirm:t.titleInput}</div><div slot=message class="interrupt-message">${Ee(this._renderMessageContent())}</div></calcite-notice>${this._renderInterruptInput()}<div class="interrupt-actions"><calcite-button appearance=outline @click=${()=>this.arcgisCancel.emit()}>${s?t.cancelButton:t.skipButton}</calcite-button><calcite-button appearance=solid @click=${()=>this.arcgisSubmit.emit(r==="boolean-choice"?!0:this.#e)}>${s?t.confirmButton:t.submitButton}</calcite-button></div></div>`}};Le("arcgis-portal-ai-assistant-interrupt",Te);export{Te as ArcgisPortalAiAssistantInterrupt};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as n}from"./BCUEYBNI.js";export default $arcgis.t(([a])=>{var i=async(o,t,e)=>{try{return{result:await o.queryItems({...e,query:`title:${t}`})}}catch(r){return console.error(r),{error:{code:"unhandledError"}}}},l=async(o,t,e)=>{let r=`${t.restUrl}/content/users/${o.id}/items/${e}/generateContext`;try{return{result:(await a(r,{method:"post",responseType:"json",query:{f:"json"}})).data}}catch(s){return console.error("Error fetching item context:",s),{error:{code:"unhandledError"}}}};async function p(o,t={}){return await o.queryGroups(t)}async function m(o,t){let e=t.title.trim();if(!e)return{error:{code:"unhandledError",message:"Group title is required."}};try{let{data:r}=await a(`${n(o)}community/createGroup`,{method:"post",responseType:"json",query:{f:"json",...t,title:e}});return!r.success||!r.group?.id?{error:{code:"unhandledError",message:"Unable to create a group with the provided title."}}:{result:{id:r.group.id,title:r.group.title||e}}}catch(r){return console.error("Error creating portal group:",r),{error:{code:"unhandledError",message:r.details.messages.join(",")}}}}async function g(o,t,e){if(!e.length)return{error:{code:"unhandledError",message:"At least one username is required."}};try{let{data:r}=await a(`${n(o)}community/groups/${t}/addUsers`,{method:"post",responseType:"json",query:{f:"json",users:e.join(",")}}),s=r.notAdded;return{result:{addedUsernames:s?.length?e.filter(d=>!s.includes(d)):e,notAddedUsers:r.notAddedDetails}}}catch(r){return console.error("Error adding users to portal group:",r),{error:{code:"unhandledError"}}}}return{a:i,b:l,c:p,d:m,e:g}},"request")