@arcgis/core 5.2.0-next.3 → 5.2.0-next.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/Graphic.d.ts +2 -1
  2. package/Map.js +1 -1
  3. package/analysis/ShadowCast/MinDurationOptions.d.ts +3 -5
  4. package/analysis/ShadowCast/TotalDurationOptions.d.ts +7 -9
  5. package/analysis/ShadowCastAnalysis.d.ts +7 -6
  6. package/arcgisGlobal.d.ts +5 -0
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{29bbc0d6d847b065d10e.js → 062aadf426fe97a76bbb.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0aaee272520c6e5bb617.js +1 -0
  10. package/assets/esri/core/workers/chunks/{12053c1213465d07d2f6.js → 0b445c1cf281f158c1f1.js} +1 -1
  11. package/assets/esri/core/workers/chunks/0fbf9bf52ecb4cd8293b.js +1 -0
  12. package/assets/esri/core/workers/chunks/{701125f6cdd91ff3655f.js → 1252da05832e576d4def.js} +2 -2
  13. package/assets/esri/core/workers/chunks/163ce1be8bfe20e77f97.js +1 -0
  14. package/assets/esri/core/workers/chunks/{e87d02af6d6b05e19d93.js → 16713986893adfbc9331.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{9bd713d96502ddc2ce25.js → 1765042635084f75d2b3.js} +1 -1
  16. package/assets/esri/core/workers/chunks/18ebf1d3ed05c8057f7d.js +1 -0
  17. package/assets/esri/core/workers/chunks/1a527c0740d9f4fa0791.js +1 -0
  18. package/assets/esri/core/workers/chunks/1a95370ddc22729ab3c6.js +1 -0
  19. package/assets/esri/core/workers/chunks/{c88fd4f69cb2b53b48ec.js → 1b0765403b06294b3e1d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/1bd8a7f92a428eedb22e.js +1 -0
  21. package/assets/esri/core/workers/chunks/233ff588798c8a5eedf4.js +1 -0
  22. package/assets/esri/core/workers/chunks/24acf3dd541347c2b297.js +1 -0
  23. package/assets/esri/core/workers/chunks/24d9e4f1c7b8ff0d2cce.js +1 -0
  24. package/assets/esri/core/workers/chunks/2562d8905bd05ef6fd07.js +1 -0
  25. package/assets/esri/core/workers/chunks/{e5d969214d9eda5c0b4c.js → 2a5dbed88bbd96cfac9f.js} +1 -1
  26. package/assets/esri/core/workers/chunks/2bcd4d395bfe6a19ccc8.js +1 -0
  27. package/assets/esri/core/workers/chunks/2e11b4e9d66474a60064.js +1 -0
  28. package/assets/esri/core/workers/chunks/{fbcf09526dc1bbe94b91.js → 2e8db0f05df2e38a14e1.js} +2 -2
  29. package/assets/esri/core/workers/chunks/3192586ec7fc73ed1165.js +1 -0
  30. package/assets/esri/core/workers/chunks/{9a11ff75009fef45b8c1.js → 325bfac7cfa28a6d568f.js} +1 -1
  31. package/assets/esri/core/workers/chunks/32f24a66f684de3c243d.js +1 -0
  32. package/assets/esri/core/workers/chunks/38ca59db0e8f45bd7811.js +1 -0
  33. package/assets/esri/core/workers/chunks/3bf6d55511cd7722eb93.js +1 -0
  34. package/assets/esri/core/workers/chunks/40df6ffeb61fea80aae3.js +1 -0
  35. package/assets/esri/core/workers/chunks/423a9882abd4a6dadf86.js +1 -0
  36. package/assets/esri/core/workers/chunks/425c04b26a6ec6d04b08.js +1 -0
  37. package/assets/esri/core/workers/chunks/4364a3e706294bb6ae41.js +1 -0
  38. package/assets/esri/core/workers/chunks/438f35d41c6851736818.js +30 -0
  39. package/assets/esri/core/workers/chunks/44e52fe98ffafe6a2807.js +1 -0
  40. package/assets/esri/core/workers/chunks/47d49777a3b3cd8e18bd.js +1 -0
  41. package/assets/esri/core/workers/chunks/4bfffdfbe6d467f143a4.js +1 -0
  42. package/assets/esri/core/workers/chunks/4d09ef7c57ab7f9782fe.js +1 -0
  43. package/assets/esri/core/workers/chunks/4e97c01698ef36cc5e0e.js +1 -0
  44. package/assets/esri/core/workers/chunks/5022413f5a41b5d435ea.js +1 -0
  45. package/assets/esri/core/workers/chunks/{8ade869fa9bae446266a.js → 51816d79c6be15e4bfcf.js} +1 -1
  46. package/assets/esri/core/workers/chunks/544174c33628846284a1.js +1 -0
  47. package/assets/esri/core/workers/chunks/{cf9b0ba30a75c030ca92.js → 5524a71d1abc9568ce26.js} +1 -1
  48. package/assets/esri/core/workers/chunks/552945a73a95cd2a9f54.js +1 -0
  49. package/assets/esri/core/workers/chunks/{ba31616de9d73d83d867.js → 557e39e5156b313597f9.js} +1 -1
  50. package/assets/esri/core/workers/chunks/55d168c13491fcdfb284.js +1 -0
  51. package/assets/esri/core/workers/chunks/{5ef37f37e405b3bb5450.js → 59dafa1e1340ea4043e6.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{0a530fbbb4486c670ea2.js → 5c7aff9604b4576a0e1d.js} +1 -1
  53. package/assets/esri/core/workers/chunks/603177137eb680afe371.js +1 -0
  54. package/assets/esri/core/workers/chunks/624b1bb269744142b835.js +1 -0
  55. package/assets/esri/core/workers/chunks/643c7506f8fe8e06acd2.js +1 -0
  56. package/assets/esri/core/workers/chunks/65621650a53f69f7b05a.js +1 -0
  57. package/assets/esri/core/workers/chunks/65f02eca694cc1c9f5a7.js +1 -0
  58. package/assets/esri/core/workers/chunks/{271e42b7cd3c3441839e.js → 6a53c8db554be55c5885.js} +46 -36
  59. package/assets/esri/core/workers/chunks/6af88bb722bbb37db198.js +2 -0
  60. package/assets/esri/core/workers/chunks/6d696beddcc5fbed5875.js +1 -0
  61. package/assets/esri/core/workers/chunks/{a70fa35b2d19460637e9.js → 70d8f5bdb452cee41536.js} +2 -2
  62. package/assets/esri/core/workers/chunks/728151d24334027af635.js +1 -0
  63. package/assets/esri/core/workers/chunks/728ad5bbbcbf88d6249f.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0d2bc1be5802681666a4.js → 77859a61d059738d057f.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{03a4543b94f9adeb1852.js → 7a3b05e25de2ff150f38.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{340f2c996f62f7f5ceae.js → 7a823bb1b72764897dd5.js} +1 -1
  67. package/assets/esri/core/workers/chunks/7bbffe07e62897928773.js +1 -0
  68. package/assets/esri/core/workers/chunks/7c292f7b181f3b93352b.js +1 -0
  69. package/assets/esri/core/workers/chunks/{f69c44479ee3fd8c831d.js → 7d220f574ebf2740c208.js} +1 -1
  70. package/assets/esri/core/workers/chunks/7eb94fc75926bc739233.js +1 -0
  71. package/assets/esri/core/workers/chunks/{24b43fb12fc3009fdc30.js → 7f1fcddc8dd42a1b67d9.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{e95ce76b5b816256a519.js → 7f54d3835c0ce573a942.js} +1 -1
  73. package/assets/esri/core/workers/chunks/804ab5f614efa12a131b.js +1 -0
  74. package/assets/esri/core/workers/chunks/823789261ca3338f0fa8.js +1 -0
  75. package/assets/esri/core/workers/chunks/{71e12db99589c98a4357.js → 8477b5fdd99c6ac5c27b.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{5cdf87e7a59ace38df87.js → 84b0b6e099d949e0fea5.js} +1 -1
  77. package/assets/esri/core/workers/chunks/{be1e4c3ec53fc92a26f1.js → 8598997340682113a2a5.js} +1 -1
  78. package/assets/esri/core/workers/chunks/86443e47ad99e555753a.js +1 -0
  79. package/assets/esri/core/workers/chunks/86a767c2b0b1e37ff493.js +1 -0
  80. package/assets/esri/core/workers/chunks/{702a3ef9e1b3442cbee7.js → 8b8b63be961eb73250a0.js} +1 -1
  81. package/assets/esri/core/workers/chunks/{27d6ad4ca5ab8c9d62cd.js → 8c443c52c846a096a250.js} +1 -1
  82. package/assets/esri/core/workers/chunks/{86161025b53b916328ff.js → 8ca88cfc0b9f84dc5832.js} +1 -1
  83. package/assets/esri/core/workers/chunks/9133c1b7cc1c9da27deb.js +1 -0
  84. package/assets/esri/core/workers/chunks/{d4749eb8a47869477037.js → 9250615c78f8570a9cda.js} +1 -1
  85. package/assets/esri/core/workers/chunks/986d8c3907aeeb18c4f6.js +1 -0
  86. package/assets/esri/core/workers/chunks/98e489c2b85feded7776.js +1 -0
  87. package/assets/esri/core/workers/chunks/9d27cc631bab8aa7479e.js +1 -0
  88. package/assets/esri/core/workers/chunks/9f23a61c60949459c14f.js +30 -0
  89. package/assets/esri/core/workers/chunks/a03c4c0bf138734a002e.js +1 -0
  90. package/assets/esri/core/workers/chunks/{40df608337d562553ce1.js → a0fce639319d59becd01.js} +2 -2
  91. package/assets/esri/core/workers/chunks/{e4b2120d7ee1c998b1fc.js → aa03f770178693167aa0.js} +1 -1
  92. package/assets/esri/core/workers/chunks/{762e23466308f22d7076.js → aea384f4d88121da8f54.js} +1 -1
  93. package/assets/esri/core/workers/chunks/aea439d4c2308f88b295.js +1 -0
  94. package/assets/esri/core/workers/chunks/{7995e6983456c779adf9.js → b002304a45856b024b46.js} +1 -1
  95. package/assets/esri/core/workers/chunks/b44f1d08784f2e50c853.js +1 -0
  96. package/assets/esri/core/workers/chunks/ba693317ed3939587f30.js +1 -0
  97. package/assets/esri/core/workers/chunks/be0eab592db0e651b023.js +30 -0
  98. package/assets/esri/core/workers/chunks/c1b6de0d728d25d7905a.js +1 -0
  99. package/assets/esri/core/workers/chunks/{f8b884b529064df4a30a.js → caf80facb0322be054ab.js} +1 -1
  100. package/assets/esri/core/workers/chunks/{25d795a1697803d77e56.js → ce0e627a5e1cb78adce8.js} +1 -1
  101. package/assets/esri/core/workers/chunks/{18c4207b1cb0777560ba.js → cf3036711bbe6095eaed.js} +1 -1
  102. package/assets/esri/core/workers/chunks/d21bf107698fef03125e.js +1 -0
  103. package/assets/esri/core/workers/chunks/d6d87bfa9e6d233385a9.js +262 -0
  104. package/assets/esri/core/workers/chunks/{63378b0b4265a547656b.js → d8ec0afb2b91ccf32e55.js} +1 -1
  105. package/assets/esri/core/workers/chunks/d97c0c18202b8c578f8c.js +1 -0
  106. package/assets/esri/core/workers/chunks/{2f99a95facddc44319a9.js → da3c54e27a808f4fcc18.js} +1 -1
  107. package/assets/esri/core/workers/chunks/dc259eed58fde3f5cb5c.js +1 -0
  108. package/assets/esri/core/workers/chunks/dc6d50e1097a920ff820.js +1 -0
  109. package/assets/esri/core/workers/chunks/e6e15e9e890b864fb395.js +1 -0
  110. package/assets/esri/core/workers/chunks/e755477dc78e9d6038d4.js +1 -0
  111. package/assets/esri/core/workers/chunks/ea8f642b1db933d2c26f.js +1 -0
  112. package/assets/esri/core/workers/chunks/eabd4a78221b7e733793.js +1 -0
  113. package/assets/esri/core/workers/chunks/{39987c06636e757d1f00.js → eda083e9d12e45da0a7b.js} +1 -1
  114. package/assets/esri/core/workers/chunks/edb55329305becdb204f.js +1 -0
  115. package/assets/esri/core/workers/chunks/f58ddf37dee066a5c0d8.js +1 -0
  116. package/assets/esri/core/workers/chunks/fb0afb41a3d87d59f574.js +1 -0
  117. package/assets/esri/core/workers/chunks/{5c6742728fa705d2e16e.js → fc9fbc8e4e459edf4e37.js} +1 -1
  118. package/assets/esri/core/workers/chunks/fe2325efd0d8ad8369ed.js +1 -0
  119. package/assets/esri/themes/base/widgets/_BatchAttributeForm.scss +53 -7
  120. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -13
  121. package/assets/esri/themes/dark/main.css +1 -1
  122. package/assets/esri/themes/light/main.css +1 -1
  123. package/assets/esri/themes/light/view.css +1 -1
  124. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ar.json +1 -1
  125. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bg.json +1 -1
  126. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_bs.json +1 -1
  127. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ca.json +1 -1
  128. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_cs.json +1 -1
  129. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_da.json +1 -1
  130. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_de.json +1 -1
  131. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_el.json +1 -1
  132. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_es.json +1 -1
  133. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_et.json +1 -1
  134. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fi.json +1 -1
  135. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_fr.json +1 -1
  136. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_he.json +1 -1
  137. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hr.json +1 -1
  138. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_hu.json +1 -1
  139. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_id.json +1 -1
  140. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_it.json +1 -1
  141. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ja.json +1 -1
  142. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ko.json +1 -1
  143. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lt.json +1 -1
  144. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_lv.json +1 -1
  145. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_nl.json +1 -1
  146. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_no.json +1 -1
  147. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pl.json +1 -1
  148. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-BR.json +1 -1
  149. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_pt-PT.json +1 -1
  150. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ro.json +1 -1
  151. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_ru.json +1 -1
  152. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sk.json +1 -1
  153. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sl.json +1 -1
  154. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sr.json +1 -1
  155. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_sv.json +1 -1
  156. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_th.json +1 -1
  157. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_tr.json +1 -1
  158. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_uk.json +1 -1
  159. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_vi.json +1 -1
  160. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-CN.json +1 -1
  161. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-HK.json +1 -1
  162. package/assets/esri/views/3d/analysis/ShadowCast/t9n/ShadowCastAnalysis_zh-TW.json +1 -1
  163. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ar.json +1 -1
  164. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bg.json +1 -1
  165. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_bs.json +1 -1
  166. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ca.json +1 -1
  167. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_cs.json +1 -1
  168. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_da.json +1 -1
  169. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_de.json +1 -1
  170. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_el.json +1 -1
  171. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_es.json +1 -1
  172. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_et.json +1 -1
  173. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fi.json +1 -1
  174. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_fr.json +1 -1
  175. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_he.json +1 -1
  176. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hr.json +1 -1
  177. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_hu.json +1 -1
  178. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_id.json +1 -1
  179. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_it.json +1 -1
  180. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ja.json +1 -1
  181. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ko.json +1 -1
  182. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lt.json +1 -1
  183. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_lv.json +1 -1
  184. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_nl.json +1 -1
  185. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_no.json +1 -1
  186. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pl.json +1 -1
  187. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-BR.json +1 -1
  188. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_pt-PT.json +1 -1
  189. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ro.json +1 -1
  190. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_ru.json +1 -1
  191. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sk.json +1 -1
  192. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sl.json +1 -1
  193. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sr.json +1 -1
  194. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_sv.json +1 -1
  195. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_th.json +1 -1
  196. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_tr.json +1 -1
  197. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_uk.json +1 -1
  198. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_vi.json +1 -1
  199. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-CN.json +1 -1
  200. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-HK.json +1 -1
  201. package/assets/esri/widgets/BasemapGallery/t9n/BasemapGallery_zh-TW.json +1 -1
  202. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm.json +1 -1
  203. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ar.json +1 -1
  204. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bg.json +1 -1
  205. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_bs.json +1 -1
  206. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ca.json +1 -1
  207. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_cs.json +1 -1
  208. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_da.json +1 -1
  209. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_de.json +1 -1
  210. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_el.json +1 -1
  211. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_en.json +1 -1
  212. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_es.json +1 -1
  213. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_et.json +1 -1
  214. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fi.json +1 -1
  215. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_fr.json +1 -1
  216. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_he.json +1 -1
  217. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hr.json +1 -1
  218. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_hu.json +1 -1
  219. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_id.json +1 -1
  220. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_it.json +1 -1
  221. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ja.json +1 -1
  222. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ko.json +1 -1
  223. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lt.json +1 -1
  224. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_lv.json +1 -1
  225. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_nl.json +1 -1
  226. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_no.json +1 -1
  227. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pl.json +1 -1
  228. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-BR.json +1 -1
  229. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_pt-PT.json +1 -1
  230. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ro.json +1 -1
  231. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_ru.json +1 -1
  232. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sk.json +1 -1
  233. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sl.json +1 -1
  234. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sr.json +1 -1
  235. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_sv.json +1 -1
  236. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_th.json +1 -1
  237. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_tr.json +1 -1
  238. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_uk.json +1 -1
  239. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_vi.json +1 -1
  240. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-CN.json +1 -1
  241. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-HK.json +1 -1
  242. package/assets/esri/widgets/BatchAttributeForm/t9n/BatchAttributeForm_zh-TW.json +1 -1
  243. package/chunks/GlobalIllumination.glsl.js +40 -30
  244. package/chunks/GlobalIlluminationBlur.glsl.js +1 -1
  245. package/chunks/ShadowCastVisualize.glsl.js +20 -23
  246. package/config.js +1 -1
  247. package/core/screenUtils.js +1 -1
  248. package/editing/templates/TemplateListItem.d.ts +61 -0
  249. package/editing/templates/TemplateListItem.js +2 -0
  250. package/geometry/support/heightModelInfoUtils.js +1 -1
  251. package/interfaces.d.ts +21 -0
  252. package/kernel.js +1 -1
  253. package/layers/AnnotationLayer.d.ts +42 -0
  254. package/layers/AnnotationLayer.js +2 -0
  255. package/layers/DimensionFeatureLayer.d.ts +36 -1
  256. package/layers/DimensionFeatureLayer.js +1 -1
  257. package/layers/FeatureLayer.d.ts +43 -14
  258. package/layers/FeatureLayer.js +1 -1
  259. package/layers/ImageryTileLayer.js +1 -1
  260. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  261. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  262. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  263. package/layers/mixins/PortalLayer.js +1 -1
  264. package/layers/mixins/TiledImagery.js +1 -1
  265. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  266. package/layers/raster/datasets/RasterFactory.js +1 -1
  267. package/layers/support/SymbolLayerDrawing.d.ts +10 -0
  268. package/layers/support/rasterJobHelper.js +2 -0
  269. package/layers/types.d.ts +3 -4
  270. package/networks/support/networkFieldUtils.js +1 -1
  271. package/package.json +1 -1
  272. package/rest/support/AttributeBinsQuery.d.ts +5 -5
  273. package/rest/support/OutDistance.d.ts +50 -0
  274. package/rest/support/OutDistance.js +1 -1
  275. package/rest/support/Query.d.ts +46 -5
  276. package/rest/support/Query.js +1 -1
  277. package/rest/support/TopFeaturesQuery.d.ts +5 -5
  278. package/support/basemapEnsureType.js +1 -1
  279. package/support/revision.js +1 -1
  280. package/symbols/cim/CIMOperators.js +1 -1
  281. package/symbols/cim/CIMSymbolHelper.js +1 -1
  282. package/symbols/cim/utils.js +1 -1
  283. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  284. package/views/2d/engine/webgl/mesh/factories/FeatureMeshFactory.js +1 -1
  285. package/views/2d/engine/webgl/mesh/factories/ResourceProxy.js +1 -1
  286. package/views/2d/engine/webgl/mesh/templates/shapingUtils.js +1 -1
  287. package/views/2d/engine/webgl/shaderGraph/techniques/createTestMeshData.js +1 -1
  288. package/views/2d/engine/webgl/shaderGraph/techniques/featureTechniqueUtils.js +1 -1
  289. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
  290. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriter.js +1 -1
  291. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
  292. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ViewInfo.js +1 -1
  293. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/vector-tiles/VTLShaderCircle.js +1 -1
  294. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  295. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  296. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  297. package/views/2d/engine/webgl/util/AnnotationMatcher.js +2 -0
  298. package/views/2d/engine/webgl/util/DimensionMatcher.js +2 -0
  299. package/views/2d/engine/webgl/util/Matcher.js +1 -1
  300. package/views/2d/engine/webgl/util/createMatcher.js +1 -1
  301. package/views/2d/layerViewModuleImportUtils.js +1 -1
  302. package/views/2d/layers/AnnotationLayerView2D.js +2 -0
  303. package/views/2d/layers/{DimensionLayerView2D.js → DimensionFeatureLayerView2D.js} +1 -1
  304. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  305. package/views/2d/layers/MapImageLayerView2D.js +1 -1
  306. package/views/2d/layers/RouteLayerView2D.js +1 -1
  307. package/views/2d/layers/TileLayerView2D.js +1 -1
  308. package/views/2d/layers/VectorTileLayerView2D.js +1 -1
  309. package/views/2d/layers/features/FeatureContainer.js +1 -1
  310. package/views/2d/layers/features/Processor.js +1 -1
  311. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +2 -0
  312. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  313. package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
  314. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  315. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  316. package/views/2d/layers/features/layerAdapters/KnowledgeGraphSublayerAdapter.js +1 -1
  317. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  318. package/views/2d/layers/features/layerAdapters/OrientedImageryLayerAdapter.js +1 -1
  319. package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
  320. package/views/2d/layers/features/layerAdapters/StreamLayerAdapter.js +1 -1
  321. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  322. package/views/2d/layers/features/schema/processor/SimpleProcessorSchema.js +1 -1
  323. package/views/2d/layers/features/sources/strategies/support/queryAdapters.js +1 -1
  324. package/views/2d/layers/features/support/FeatureMetadata.js +1 -1
  325. package/views/2d/layers/features/support/FeatureSetReaderAnnotationJSON.js +2 -0
  326. package/views/2d/layers/features/support/FeatureSetReaderDimensionJSON.js +2 -0
  327. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  328. package/views/2d/layers/support/annodime/DimensionInfo.js +2 -0
  329. package/views/2d/layers/support/annodime/DimensionMatcherSchema.js +2 -0
  330. package/views/2d/layers/support/annodime/PrivateDimensionEffect.js +2 -0
  331. package/views/2d/layers/support/annodime/PrivatePlacementMultipoint.js +2 -0
  332. package/views/2d/layers/support/annodime/annotationGraphic.js +2 -0
  333. package/views/2d/layers/support/annodime/annotationSchema.js +2 -0
  334. package/views/2d/layers/support/annodime/annotationUtils.js +2 -0
  335. package/views/2d/layers/support/annodime/cimAnnotations.js +2 -0
  336. package/views/2d/layers/support/annodime/dimensionSchema.js +2 -0
  337. package/views/2d/layers/support/annodime/dimensionSymbols.js +2 -0
  338. package/views/2d/layers/support/annodime/dimensionUtils.js +2 -0
  339. package/views/2d/layers/support/annodime/fields.js +2 -0
  340. package/views/2d/layers/support/annodime/unsupported.js +2 -0
  341. package/views/2d/layers/support/annodime/utils.js +2 -0
  342. package/views/2d/layers/support/annodime/virtualFields.js +2 -0
  343. package/views/2d/support/clippingUtils.js +1 -1
  344. package/views/2d/support/hitTestUtils.js +1 -1
  345. package/views/2d/types.d.ts +5 -1
  346. package/views/3d/analysis/ShadowCast/ShadowCastTooltip.js +1 -1
  347. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  348. package/views/3d/interactive/editingTools/transform/ExtentTransformTool.js +1 -1
  349. package/views/3d/layerViewModuleImportUtils.js +1 -1
  350. package/views/3d/layers/MapImageLayerView3D.js +1 -1
  351. package/views/3d/layers/TileLayerView3D.js +1 -1
  352. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  353. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  354. package/views/3d/support/pointsOfInterest/PointsOfInterest.js +1 -1
  355. package/views/3d/terrain/isTerrainSurfaceLayer.js +1 -1
  356. package/views/3d/types.d.ts +2 -0
  357. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  358. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  359. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  360. package/views/3d/webgl-engine/shaders/ditherNoise.glsl.js +1 -1
  361. package/views/3d/webgl-engine/shaders/oitResolution.glsl.js +1 -1
  362. package/views/PopupView.d.ts +3 -3
  363. package/views/PopupView.js +1 -1
  364. package/views/SceneView.js +1 -1
  365. package/views/View2D.js +1 -1
  366. package/views/draw/DrawTool.d.ts +34 -1
  367. package/views/layers/AnnotationLayerView.d.ts +18 -0
  368. package/views/layers/AnnotationLayerView.js +2 -0
  369. package/views/layers/DimensionFeatureLayerView.d.ts +18 -0
  370. package/views/layers/DimensionFeatureLayerView.js +2 -0
  371. package/views/layers/FeatureLikeLayerView.d.ts +2 -1
  372. package/views/layers/FeatureLikeLayerView.js +1 -1
  373. package/views/layers/ImageryLayerView.d.ts +1 -1
  374. package/views/layers/ImageryLayerView.js +1 -1
  375. package/views/layers/ImageryTileLayerView.js +1 -1
  376. package/views/layers/WMSLayerView.js +1 -1
  377. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  378. package/widgets/BasemapToggle/BasemapToggleViewModel.js +1 -1
  379. package/widgets/BatchAttributeForm/attachmentUtils.js +1 -1
  380. package/widgets/BatchAttributeForm/css.js +1 -1
  381. package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
  382. package/widgets/BatchAttributeForm/inputs/UtilityNetworkAssociationsElementInput.js +1 -1
  383. package/widgets/BatchAttributeForm/rendered-content/RelationshipDetails.js +2 -0
  384. package/widgets/BatchAttributeForm.d.ts +26 -1
  385. package/widgets/BatchAttributeForm.js +1 -1
  386. package/widgets/FeatureForm.js +1 -1
  387. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  388. package/widgets/OrientedImageryViewer/css.js +1 -1
  389. package/widgets/OrientedImageryViewer.js +1 -1
  390. package/widgets/Print/PrintViewModel.js +1 -1
  391. package/widgets/Sketch/support/PluginManager.js +1 -1
  392. package/widgets/Sketch.js +1 -1
  393. package/widgets/support/iconUtils.js +1 -1
  394. package/assets/esri/core/workers/chunks/0175098da590a7109539.js +0 -1
  395. package/assets/esri/core/workers/chunks/019a4fe7e085b2fc6ae9.js +0 -1
  396. package/assets/esri/core/workers/chunks/023837e5d9d2b6af66d8.js +0 -1
  397. package/assets/esri/core/workers/chunks/03c46880b69ce75a010f.js +0 -1
  398. package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +0 -1
  399. package/assets/esri/core/workers/chunks/04ea806b933d4dd41609.js +0 -1
  400. package/assets/esri/core/workers/chunks/074f5e6aaeafca13bf72.js +0 -1
  401. package/assets/esri/core/workers/chunks/0e549d942d6cba1608cf.js +0 -1
  402. package/assets/esri/core/workers/chunks/13a8346abe5509167578.js +0 -1
  403. package/assets/esri/core/workers/chunks/13d43a0683c42b94feb6.js +0 -1
  404. package/assets/esri/core/workers/chunks/1ebb613bbe09fcf274d8.js +0 -1
  405. package/assets/esri/core/workers/chunks/27d7c701306efeea6b82.js +0 -1
  406. package/assets/esri/core/workers/chunks/2b9661700743d1f9717e.js +0 -1
  407. package/assets/esri/core/workers/chunks/2bdfae998371e3aa9f2d.js +0 -1
  408. package/assets/esri/core/workers/chunks/2f0a3b22fc46d832e240.js +0 -1
  409. package/assets/esri/core/workers/chunks/2ffffc1931b2e27c6617.js +0 -1
  410. package/assets/esri/core/workers/chunks/32f128a1615d71bbe899.js +0 -2
  411. package/assets/esri/core/workers/chunks/375bdaf44e1ed6141601.js +0 -1
  412. package/assets/esri/core/workers/chunks/3835097520296b0517af.js +0 -1
  413. package/assets/esri/core/workers/chunks/41074d383af3662673ca.js +0 -1
  414. package/assets/esri/core/workers/chunks/4605a68e40c5c3ac6e3e.js +0 -1
  415. package/assets/esri/core/workers/chunks/4b01858e05a4b90331a4.js +0 -30
  416. package/assets/esri/core/workers/chunks/4b130db9b7b4e2e32ea4.js +0 -1
  417. package/assets/esri/core/workers/chunks/4bfeac7338df9e0b7ce1.js +0 -1
  418. package/assets/esri/core/workers/chunks/4c5cdd2712c938fafc5d.js +0 -1
  419. package/assets/esri/core/workers/chunks/4fa3840672c33adb9171.js +0 -1
  420. package/assets/esri/core/workers/chunks/4ffcca40e7aa24c8cc35.js +0 -1
  421. package/assets/esri/core/workers/chunks/534dd93c72ea448ee908.js +0 -1
  422. package/assets/esri/core/workers/chunks/548c34ea88f113d03c93.js +0 -30
  423. package/assets/esri/core/workers/chunks/5ea0096a282e87a269bd.js +0 -1
  424. package/assets/esri/core/workers/chunks/66fe1634c6e8f72fc653.js +0 -1
  425. package/assets/esri/core/workers/chunks/6920e7f700a9ba280dba.js +0 -1
  426. package/assets/esri/core/workers/chunks/6b1f2b36bdc6b2ff2ea5.js +0 -1
  427. package/assets/esri/core/workers/chunks/6b66a6f69aa03338c346.js +0 -1
  428. package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +0 -1
  429. package/assets/esri/core/workers/chunks/708bd77e6d723e3f0aa8.js +0 -1
  430. package/assets/esri/core/workers/chunks/75a7de23c05435ec7649.js +0 -1
  431. package/assets/esri/core/workers/chunks/75dfdd85abbac26ac899.js +0 -1
  432. package/assets/esri/core/workers/chunks/798c4d3201fcc9f2a42b.js +0 -1
  433. package/assets/esri/core/workers/chunks/817fd88fe9a48caf69fb.js +0 -1
  434. package/assets/esri/core/workers/chunks/82f7d83a2073d1b0111c.js +0 -1
  435. package/assets/esri/core/workers/chunks/860465c4f44c373d0a1c.js +0 -1
  436. package/assets/esri/core/workers/chunks/89250d268dc2554a9ece.js +0 -1
  437. package/assets/esri/core/workers/chunks/89916fe83f48b2df4b0d.js +0 -1
  438. package/assets/esri/core/workers/chunks/8a68884d40f6f6de1d12.js +0 -1
  439. package/assets/esri/core/workers/chunks/8c8fed53c12fb80ef2ed.js +0 -1
  440. package/assets/esri/core/workers/chunks/8ff83c59462dea6e3427.js +0 -1
  441. package/assets/esri/core/workers/chunks/961995d8da45a9203255.js +0 -1
  442. package/assets/esri/core/workers/chunks/978b7d10054e17161145.js +0 -1
  443. package/assets/esri/core/workers/chunks/a9c9c00432ee41ec91ba.js +0 -1
  444. package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +0 -1
  445. package/assets/esri/core/workers/chunks/b041c22885193bdd3004.js +0 -1
  446. package/assets/esri/core/workers/chunks/b684ff4bc93bd60d6a19.js +0 -1
  447. package/assets/esri/core/workers/chunks/bb2f6b0fcdfb8b158e26.js +0 -1
  448. package/assets/esri/core/workers/chunks/cd2b2babcdc130b4c368.js +0 -1
  449. package/assets/esri/core/workers/chunks/cedf3e316d6f89cf7005.js +0 -1
  450. package/assets/esri/core/workers/chunks/d39f5590022d910ee951.js +0 -1
  451. package/assets/esri/core/workers/chunks/d412a43060441d347fb4.js +0 -1
  452. package/assets/esri/core/workers/chunks/d41b847d08c42e5329d6.js +0 -262
  453. package/assets/esri/core/workers/chunks/d52172439db02a349542.js +0 -1
  454. package/assets/esri/core/workers/chunks/d8c2bed12f937228c763.js +0 -1
  455. package/assets/esri/core/workers/chunks/de916dd0c11aefb6832e.js +0 -1
  456. package/assets/esri/core/workers/chunks/ea2bf7c543cc536400b7.js +0 -30
  457. package/assets/esri/core/workers/chunks/ecf4d07917efc97eb991.js +0 -1
  458. package/assets/esri/core/workers/chunks/eda51e512eff551ad858.js +0 -1
  459. package/assets/esri/core/workers/chunks/f14e3693cd644265f909.js +0 -1
  460. package/assets/esri/core/workers/chunks/f52c6efc5a2abf5ac845.js +0 -1
  461. package/assets/esri/core/workers/chunks/f635a8e3b0bfeda99ed5.js +0 -1
  462. package/assets/esri/core/workers/chunks/f9f331c76c96743d8522.js +0 -1
  463. package/assets/esri/core/workers/chunks/fcbacca99c5a3ee5b69a.js +0 -1
  464. package/symbols/dimensions/effects/LinearDimensionArrowEffect.js +0 -2
  465. package/symbols/dimensions/effects/LinearDimensionExtensionLineEffect.js +0 -2
  466. package/symbols/dimensions/effects/LinearDimensionLeaderLineEffect.js +0 -2
  467. package/symbols/dimensions/effects/LinearDimensionLineEffect.js +0 -2
  468. package/symbols/dimensions/effects/LinearDimensionPointEffect.js +0 -2
  469. package/symbols/dimensions/effects/LinearDimensionTextEffect.js +0 -2
  470. package/views/2d/layers/features/support/FeatureSetReaderDimension.js +0 -2
  471. package/views/3d/webgl-engine/effects/globalIllumination/BlueNoise.js +0 -2
  472. package/views/layers/support/dimensionUtils.js +0 -2
  473. /package/assets/esri/core/workers/chunks/{701125f6cdd91ff3655f.js.LICENSE.txt → 1252da05832e576d4def.js.LICENSE.txt} +0 -0
  474. /package/assets/esri/core/workers/chunks/{fbcf09526dc1bbe94b91.js.LICENSE.txt → 2e8db0f05df2e38a14e1.js.LICENSE.txt} +0 -0
  475. /package/assets/esri/core/workers/chunks/{32f128a1615d71bbe899.js.LICENSE.txt → 6af88bb722bbb37db198.js.LICENSE.txt} +0 -0
  476. /package/assets/esri/core/workers/chunks/{40df608337d562553ce1.js.LICENSE.txt → 70d8f5bdb452cee41536.js.LICENSE.txt} +0 -0
  477. /package/assets/esri/core/workers/chunks/{a70fa35b2d19460637e9.js.LICENSE.txt → a0fce639319d59becd01.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2639],{68197(e,t,r){r.d(t,{A:()=>c});var s=r(40876),n=r(4576),i=r(34727),a=r(56507);function o(e){return(0,i.qE)((0,a.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class c{static blendColors(e,t,r,s=new c){return s.r=Math.round(e.r+(t.r-e.r)*r),s.g=Math.round(e.g+(t.g-e.g)*r),s.b=Math.round(e.b+(t.b-e.b)*r),s.a=e.a+(t.a-e.a)*r,s._sanitize()}static fromRgb(e,t){const r=(0,s.lT)(e);return r?c.fromArray(r,t):null}static fromHex(e,t=new c){const r=(0,s.oW)(e);return r?c.fromArray(r,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.Eq)(e);return r?c.fromArray(r,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)c.fromString(e,this);else if((0,n.yc)(e))c.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,s=3===r||4===r,n=4===r||8===r,i=`#${l(this.r,s)}${l(this.g,s)}${l(this.b,s)}${n?l(Math.round(255*this.a),s):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=o(this.r),r=o(this.g),s=o(this.b);return 0===e||1!==this.a?[t,r,s,o(255*this.a)]:[t,r,s]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,r,s){this.r=e,this.g=t,this.b=r,this.a=s}}c.prototype.declaredClass="esri.Color"},52106(e,t,r){r.d(t,{A:()=>A});var s,n,i=r(5482),a=r(37838),o=r(69540),l=r(51447),c=r(25482),u=r(53966),h=r(36708),g=r(24326),d=r(91429),p=r(12195),f=r(65864),m=r(50498),y=r(55156),b=r(60950),_=r(54339),v=r(94128),T=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const s=e[r];s&&(t[r]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let A=class extends((0,o.OU)(c.o)){static{s=v.Z}static{n=this}constructor(e){super(e),this[s]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,g.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,_.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,_.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,p.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=s),"attributes"===e&&(n.attributeName=s),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const s=(0,f.rS)(e[r]);s&&(t[r]=s)}return 0!==Object.keys(t).length?t:null}}})],A.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,d.MZ)({value:null})],A.prototype,"attributes",null),(0,i.Cg)([(0,d.MZ)({value:null,types:m.yR,json:{read:f.rS}})],A.prototype,"geometry",null),(0,i.Cg)([(0,d.MZ)()],A.prototype,"distance",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,i.Cg)([(0,d.MZ)({type:a.A,value:null})],A.prototype,"popupTemplate",null),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],A.prototype,"statisticsAggregatedIds",void 0),(0,i.Cg)([(0,d.MZ)({value:null,types:T.Es})],A.prototype,"symbol",null),(0,i.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=n=(0,i.Cg)([(0,d.$K)("esri.Graphic")],A)},11221(e,t,r){r.d(t,{t1:()=>T,Jn:()=>w,Rn:()=>_,An:()=>v});var s=r(52106),n=r(48938),i=r(23732),a=r(87449),o=r(5482),l=r(93833),c=r(60999);class u{constructor(e,t){this._parent=e,this._abortSignal=t,this._done=!1,this._features=null,this._batchMutex=new c.aD,this._currentPage=null,this._pageCursor=-1}get _numAvailable(){return null==this._currentPage||this._pageCursor<0?0:Math.max(this._currentPage.length-this._pageCursor,0)}_takeNFeatures(e){if(null==this._currentPage)return[];const t=this._currentPage.slice(this._pageCursor,this._pageCursor+e);return this._pageCursor+=t.length,t.map(e=>s.A.fromJSON(e))}_takeOneFeature(){const e=this._currentPage[this._pageCursor];return this._pageCursor+=1,s.A.fromJSON(e)}async _nextBatch(){if(this._done)return!1;const e=await(this._features??=this._parent.queryAll(this._abortSignal));let t;do{if(t=await e.next(),t.done)return this._done=!0,this._currentPage=null,this._pageCursor=-1,!1}while(t.value.length<=0);return this._currentPage=t.value,this._pageCursor=0,!0}async nextBatchAsArcadeFeatures(e,t){const r=await this.nextBatch(e);return null==r?r:r.map(e=>l.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}async nextBatch(e){const t={stack:[],error:void 0,hasError:!1};try{if(this._done)return null;if(e<=0)return[];if((0,o.mS)(t,await this._batchMutex.acquire(),!1),this._numAvailable>=e)return this._takeNFeatures(e);const r=[];let s=e;do{const e=this._takeNFeatures(s);s-=e.length,r.push(e)}while(s>0&&await this._nextBatch());const n=r.flat();return n.length>0?n:null}catch(e){t.error=e,t.hasError=!0}finally{(0,o.hk)(t)}}async next(){const e={stack:[],error:void 0,hasError:!1};try{return this._done?null:((0,o.mS)(e,await this._batchMutex.acquire(),!1),this._numAvailable>=1||await this._nextBatch()?this._takeOneFeature():null)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}var h=r(33325),g=r(50145),d=r(71163),p=r(5479),f=r(89696),m=r(16930),y=r(65864),b=r(95466);function _(e,t){for(const r of e)null!=r.geometry&&(r.geometry.spatialReference??=t)}const v=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class T{constructor(){this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await(this._parent?.load()),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new m.A({wkid:4326}),this.geometryType=h.ik.point)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=b.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return null!=this._allFeatures}async queryAll(e){null==this._allFeatures&&(this._allFeatures=this._queryAll().then(e=>(0,p.N5)(e)));const t=(await this._allFeatures)();return null==e||e===n._?t:async function*(){for await(const r of t)(0,a.dZ)(e),yield r}()}async databaseType(){if(7===this._databaseType){if(null!==i.A.applicationCache){const e=i.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==i.A.applicationCache&&i.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==i.A.applicationCache&&i.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{dbType:2,probeSql:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{dbType:3,probeSql:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{dbType:1,probeSql:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.probeSql))return t.dbType;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.dr("NotImplemented")}isTable(){return this._parent?.isTable()??!1}async first(e){if(this._hasCachedFeatures)return this.iterator(e).next();const t=await this.query({limit:1,abortSignal:e});for await(const e of t.features)if(e.length>0)return s.A.fromJSON(e[0]);return null}async isEmpty(e){return this._totalCount>=0?0===this._totalCount:null==await this.first(e)}async calculateStatistic(e,t,r,s){await this._ensureLoaded();let n=await this.queryStat({stat:e,field:t,limit:r,abortSignal:s});return!1===n.calculated&&(n=await this._manualStat(e,t,r,s)),n.result}async _manualStat(e,t,r,s){let n=null;switch(e.toLowerCase()){case"count":{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};const e=await this.queryAll(s);let t=0;for await(const r of e)t+=r.length;return this._totalCount=t,{calculated:!0,result:t}}case"distinct":return n=await(0,g.dM)(this,t,r,s),{calculated:!0,result:n};case"avg":case"mean":return n=await(0,g.i2)(this,t,s),{calculated:!0,result:n};case"stdev":return n=await(0,g.b$)(this,t,s),{calculated:!0,result:n};case"variance":return n=await(0,g.GV)(this,t,s),{calculated:!0,result:n};case"sum":return n=await(0,g.cz)(this,t,s),{calculated:!0,result:n};case"min":return n=await(0,g.jk)(this,t,s),{calculated:!0,result:n};case"max":return n=await(0,g.T9)(this,t,s),{calculated:!0,result:n};default:return{calculated:!0,result:0}}}iterator(e){return new u(this,e)}async sumArea(e,t,r){let s=0;for await(const n of await this.queryAll(r))for(const r of n)null!=r.geometry&&(s+=null!=t?await(0,d.C)("geodeticArea",[r.geometry,e,t]):await(0,d.C)("area",[r.geometry,e]));return s}async sumLength(e,t,r){let s=0;for await(const n of await this.queryAll(r))for(const r of n)null!=r.geometry&&(s+=null!=t?await(0,d.C)("geodeticLength",[r.geometry,e,t]):await(0,d.C)("length",[r.geometry,e]));return s}async count(e){return await this.load(),this.calculateStatistic("count",f.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??n._)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,r,s,n){return this._parent.queryAttachments(e,t,r,s,n)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,h.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===h.yT[this.geometryType]?"esriGeometryNull":h.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];for await(const r of await this.queryAll(t))for(const t of r){const r={geometry:t.geometry??null,attributes:t.attributes};if(null!==r.geometry&&r.geometry.spatialReference){const{spatialReference:e,...t}=r.geometry;r.geometry=t}e.push(r)}return JSON.stringify({...this.schema(),features:e,spatialReference:this.spatialReference.toJSON()})}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const r=[];for await(const s of await this.queryAll(e))for(const e of s){const s={geometry:e.geometry?!0===t?.keepGeometryType?(0,y.rS)(e.geometry):e.geometry:null,attributes:e.attributes};if(null!==s.geometry&&s.geometry.spatialReference&&!0!==t?.keepGeometryType){delete s.geometry.spatialReference;const{spatialReference:e,...t}=s.geometry;s.geometry=t}r.push(s)}return{...this.schema(),features:r,spatialReference:!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON()}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?"unknown":this.dateFieldsTimeZone||"UTC"}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class w extends T{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}},23732(e,t,r){r.d(t,{A:()=>s});class s{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},87449(e,t,r){r.d(t,{dZ:()=>a,dr:()=>i});var s=r(799);const n={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class i extends Error{constructor(e,t){super((0,s.HC)(n[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,i)}}function a(e){if(null!=e&&e?.aborted)throw new i("Cancelled")}},80609(e,t,r){r.d(t,{C6:()=>v,DA:()=>S,F1:()=>b,F6:()=>f,IY:()=>T,Ju:()=>I,Kb:()=>d,Mi:()=>u,Nf:()=>y,R8:()=>m,YY:()=>c,bD:()=>h,bm:()=>_,kg:()=>g,oj:()=>N});var s=r(66131),n=r(33325),i=r(1262),a=r(15032),o=r(89696),l=r(92647);function c(e,t){return p(e?.parseTree,t,e?.parameters)}function u(e,t,r){return p(e,t,r)}function h(e,t,r,s){const n=p(e.parseTree,0,e.parameters,t,r);return o.A.create(n,{fieldsIndex:s,timeZone:e.timeZone,currentUser:e.currentUser})}function g(e,t,r="AND"){return o.A.create("(("+c(e,0)+")"+r+"("+c(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e){return!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column}function p(e,t,r,s=null,a=null){let o,l,c,u;switch(e.type){case"interval":return N(p(e.value,t,r,s,a),e.qualifier,e.op);case"case-expression":{let n=" CASE ";"simple"===e.format&&(n+=p(e.operand,t,r,s,a));for(let i=0;i<e.clauses.length;i++)n+=" WHEN "+p(e.clauses[i].operand,t,r,s,a)+" THEN "+p(e.clauses[i].value,t,r,s,a);return null!==e.else&&(n+=" ELSE "+p(e.else,t,r,s,a)),n+=" END ",n}case"parameter":{const s=r[e.value.toLowerCase()];if("string"==typeof s)return"'"+r[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,n.$P)(s))return _(s,t);if((0,n.Lk)(s))return _(s,t);if((0,n.eg)(s))return b(s,t);if((0,n.rX)(s))return m(s,t);if((0,n.f0)(s))return y(s,t);if(Array.isArray(s)){const e=[];for(let r=0;r<s.length;r++)"string"==typeof s[r]?e.push("'"+s[r].toString().replaceAll("'","''")+"'"):(0,n.$P)(s[r])||(0,n.Lk)(s[r])?e.push(_(s[r],t)):(0,n.eg)(s[r])?e.push(b(s[r],t)):(0,n.rX)(s[r])?e.push(m(s[r],t)):(0,n.f0)(s[r])?e.push(y(s[r],t)):e.push(s[r].toString());return e}return s.toString()}case"expression-list":l=[];for(const n of e.value)l.push(p(n,t,r,s,a));return l;case"unary-expression":return" ( NOT "+p(e.expr,t,r,s,a)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+p(e.left,t,r,s,a)+" AND "+p(e.right,t,r,s,a)+") ";case"OR":return" ("+p(e.left,t,r,s,a)+" OR "+p(e.right,t,r,s,a)+") ";case"IS":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return" ("+p(e.left,t,r,s,a)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return" ("+p(e.left,t,r,s,a)+" IS NOT NULL )";case"IN":return o=[],"expression-list"===e.right.type?(o=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" IN ("+o.join(",")+")) "):(u=p(e.right,t,r,s,a),Array.isArray(u)?" ("+p(e.left,t,r,s,a)+" IN ("+u.join(",")+")) ":" ("+p(e.left,t,r,s,a)+" IN ("+u+")) ");case"NOT IN":return o=[],"expression-list"===e.right.type?(o=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" NOT IN ("+o.join(",")+")) "):(u=p(e.right,t,r,s,a),Array.isArray(u)?" ("+p(e.left,t,r,s,a)+" NOT IN ("+u.join(",")+")) ":" ("+p(e.left,t,r,s,a)+" NOT IN ("+u+")) ");case"BETWEEN":return c=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" BETWEEN "+c[0]+" AND "+c[1]+" ) ";case"NOTBETWEEN":return c=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" NOT BETWEEN "+c[0]+" AND "+c[1]+" ) ";case"LIKE":return""!==e.escape?" ("+p(e.left,t,r,s,a)+" LIKE "+p(e.right,t,r,s,a)+" ESCAPE '"+e.escape+"') ":" ("+p(e.left,t,r,s,a)+" LIKE "+p(e.right,t,r,s,a)+") ";case"NOT LIKE":return""!==e.escape?" ("+p(e.left,t,r,s,a)+" NOT LIKE "+p(e.right,t,r,s,a)+" ESCAPE '"+e.escape+"') ":" ("+p(e.left,t,r,s,a)+" NOT LIKE "+p(e.right,t,r,s,a)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+p(e.left,t,r,s,a)+" "+e.operator+" "+p(e.right,t,r,s,a)+") ";case"||":return" ("+p(e.left,t,r,s,a)+" "+(2===t?"+":e.operator)+" "+p(e.right,t,r,s,a)+") "}throw new i.L("UnsupportedOperator",{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return v(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return s&&s.toLowerCase()===e.column.toLowerCase()?"("+a+")":d(e);case"data-type":return e.value;case"function":{const n=p(e.args,t,r,s,a);return f(e.name,n,t)}}throw new i.L("UnsupportedSyntax",{node:e.type})}function f(e,t,r){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new i.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new i.L("InvalidFunctionParameters",{function:"truncate"});return 2===r?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"char_length"});switch(r){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase()});let r=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(r+=","),r+=t[e];return r+=")",r}case"lower":case"lcase":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(r){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(r){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new i.L("InvalidFunctionParameters",{function:e})}function m(e,t){const r=e.toDateTime(),s=0===r.hour&&0===r.minute&&0===r.second&&0===r.millisecond;switch(t){case 6:case 0:case 1:return s?`date '${r.toFormat("yyyy-LL-dd")}'`:`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return s?`TO_DATE('${r.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${r.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${r.toFormat(s?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function y(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function b(e,t){switch(e instanceof a.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function _(e,t){return m(s.lY.dateTimeToArcadeDate((0,n.Lk)(e)?e:l.c9.fromJSDate(e)),t)}function v(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function T(e,t,r={}){const s={},n={},i={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?i[e.type]:void 0;s[e.name.toLowerCase()]=void 0===t?"":t}for(const e in r){const t=i[r[e]];n[e.toLowerCase()]=void 0===t?"":t}switch(w(s,e.parseTree,e.parameters,n)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function w(e,t,r,s){let a;switch(t.type){case"interval":return"integer";case"case-expression":{const n=[];if("simple"===t.format){for(let i=0;i<t.clauses.length;i++)n.push(w(e,t.clauses[i].value,r,s));null!==t.else&&n.push(w(e,t.else,r,s))}else{for(let i=0;i<t.clauses.length;i++)n.push(w(e,t.clauses[i].value,r,s));null!==t.else&&n.push(w(e,t.else,r,s))}return C(n)}case"parameter":{const e=s[t.value.toLowerCase()];if(void 0===e&&r){const e=r[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,n.$P)(e))return"date";if((0,n.rX)(e))return"date";if((0,n.f0)(e))return"date-only";if((0,n.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const n=[];for(const i of t.value)n.push(w(e,i,r,s));return n}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new i.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return C([w(e,t.left,r,s),w(e,t.right,r,s)]);case"||":return"string";default:throw new i.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{const r=e[t.column.toLowerCase()];return void 0===r?"":r}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(a=w(e,t.args,r,s),Array.isArray(a)){if(a.length<=0)return"double";a=a[0]}return a;case"sign":return"integer";case"ceiling":case"floor":case"abs":return a=w(e,t.args,r,s),Array.isArray(a)&&(a=C(a)),"integer"===a||"double"===a?a:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return a=w(e,t.args,r,s),Array.isArray(a)?a.length>0?a[0]:"":a}return""}throw new i.L("UnsupportedSyntax",{node:t.type})}const A={boolean:1,string:2,integer:3,double:4,date:5};function C(e){if(e){let t="";for(const r of e)""!==r&&(t=""===t||A[t]<A[r]?r:t);return t}return""}function I(e,t){return L(e.parseTree,t)}function S(e){return"column-reference"===e?.parseTree.type}function L(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return L(e.operand,t)||L(e.value,t);case"case-expression":for(const r of e.clauses)if(L(r,t))return!0;return!("simple"!==e.format||!L(e.operand,t))||!(null===e.else||!L(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const r of e.value)if(L(r,t))return!0;return!1;case"unary-expression":return L(e.expr,t);case"binary-expression":return L(e.left,t)||L(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return L(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function N(e,t,r){let s="";return s="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+r+" "+e+" "+s}},50145(e,t,r){r.d(t,{Dp:()=>u,GV:()=>p,T9:()=>g,b$:()=>f,cz:()=>m,dM:()=>b,i2:()=>d,jk:()=>h});var s=r(87449),n=(r(33325),r(80609)),i=r(44729),a=r(55612),o=r(15032);function l(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/e.length}function c(e){const t=l(e);let r=0;for(let s=0;s<e.length;s++)r+=(t-e[s])**2;return r/(e.length-1)}function u(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return null}async function h(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.min.apply(Math,s)}async function g(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.max.apply(Math,s)}async function d(e,t,r){let s="";t&&!(0,n.DA)(t)&&(s=(0,n.IY)(t,e.fields));const i=await y(e,t,r);if(0===i.length)return null;const a=l(i);return null===a?a:"integer"===s?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(a):a}async function p(e,t,r){const s=await y(e,t,r);return 0===s.length?null:c(s)}async function f(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.sqrt(c(s))}async function m(e,t,r){const s=await y(e,t,r);return 0===s.length?null:function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}(s)}async function y(e,t,r){const n=await e.queryAll(r),l=[],c={ticker:0};for await(const e of n){if(c.ticker+=e.length,c.ticker>=100&&(c.ticker=0,await new Promise(e=>{setTimeout(e,0)})),r?.aborted)throw new s.dr("Cancelled");for(const r of e){const e=t?.calculateValue(r);null===e||(l[l.length]=e instanceof i.n||e instanceof o.k?e.toNumber():e instanceof a.g?e.toMilliseconds():e)}}return l}async function b(e,t,r=1e3,n=null){if(null==t)return[];const l=await e.queryAll(n),c=[],u=new Set,h={ticker:0};for await(const e of l){if(h.ticker+=e.length,h.ticker>=100&&(h.ticker=0,await new Promise(e=>{setTimeout(e,0)})),n?.aborted)throw new s.dr("Cancelled");for(const s of e){const e=t.calculateValue(s);let n=e;if(e instanceof i.n?n="!!DATEONLY!!-"+e.toString():e instanceof a.g?n="!!TSOFFSETONLY!!-"+e.toString():e instanceof o.k?n="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(n="!!DATE!!-"+e.toString()),null!=e&&(u.has(n)||(c.push(e),u.add(n))),c.length>=r&&-1!==r)return c}}return c}},71163(e,t,r){r.d(t,{C:()=>l});var s=r(29953);let n,i,a=!1;function o(){return n??=(0,s.ho)("arcadeGeometryOperatorsWorker").then(e=>{i=e,a=!0,n=void 0})}async function l(e,t){return a?i.apply("invokeGeometryOp",[e,t]):(await o(),l(e,t))}},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>f,TS:()=>i,Tf:()=>b,V6:()=>n,Vm:()=>p,ay:()=>l,c1:()=>m,c4:()=>a,j5:()=>c,lT:()=>h,oW:()=>u,xV:()=>v});const s={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!s[e]||!!s[e.toLowerCase()]}function i(e){return s[e]??s[e.toLowerCase()]}function a(e){return[...i(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const s=6*r;return s<1?e+(t-e)*s:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,s=1){const n=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,a=2*r-i;return[Math.round(255*o(a,i,n+1/3)),Math.round(255*o(a,i,n)),Math.round(255*o(a,i,n-1/3)),s]}function c(e){const t=e.length>5,r=t?8:4,s=(1<<r)-1,n=t?1:17,i=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return i&&(l=a&s,a>>=r,o[3]=n*l/255),l=a&s,a>>=r,o[2]=n*l,l=a&s,a>>=r,o[1]=n*l,l=a&s,a>>=r,o[0]=n*l,o}function u(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),s=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,s+16*s,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),g(t)}return g(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function g(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?f(e[3]):1,e}function d(e){let t=n(e)?i(e):null;return t??=h(e),t??=u(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return y(e,0,1)}function m(e){return Math.round(y(e,0,255))}function y(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=2.2,_=1/b;function v(e){return e**_}},69540(e,t,r){r.d(t,{OU:()=>u,Pw:()=>h});var s=r(5482),n=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,s=t.store,n={},l=new Map;for(const t in r){const a=r[t],o=s?.originOf(t),c=a.clonable;if(a.readOnly||!1===c||7!==o&&0!==o&&5!==o&&4!==o)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,i.TU)(u,e),null!=u&&null==h)continue;0===o?l.set(t,h):n[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,o.oY)(c)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return c}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=u(n.A)},7762(e,t,r){r.d(t,{A:()=>O});var s,n=r(5482),i=r(98291),a=r(4576),o=r(65529),l=r(36563),c=r(4718),u=r(53966),h=r(93687),g=r(76030),d=r(56507),p=r(62788),f=r(10107),m=r(7695),y=r(64108),b=r(95488),_=r(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class T{constructor(e,t,r,s,n){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=n}}const w=new h.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function A(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function C(e){return e?e instanceof k?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function I(e){if(e?.length)return e[0]}function S(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function L(e,t,r,s){t&&t.forEach((t,n,i)=>{e.push(t),L(e,r.call(s,t,n,i),r,s)})}const E=new Set,N=new Set,M=new Set,F=new Map;let x=0,k=s=class extends o.nJ{static ofType(e){if(!e)return s;if(F.has(e))return F.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,n.Cg)([(0,m.u)({Type:e,ensureType:"function"==typeof e?(0,d.dp)(e):(0,d.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),F.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:x++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,C(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t);return this._splice(r,0,C(e)),this._emitAfterChanges(1),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,p.gc)(this._observable);const t=e.map(C);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const r=this._splice(0,this.length),s=r.length;for(let n=0;n<s;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(A)}destroyMany(e){const t=this.removeMany(e);return t.forEach(A),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);const r=[];return L(r,this,e,t),new s(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);const r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=I(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=I(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+S(t,r,e+1,i+1),a=this._splice(i,s);a&&a.length>0&&n.push.apply(n,a),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=I(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,p.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const s=(t?2:0)|(r.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(e){return(0,p.gc)(this._observable),this.toArray().map(t=>(0,_.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,g._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(a=s.splice(e,t),this.hasEventListener("before-remove")){const t=w.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=a.length;r<n;r++)i=a[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=w.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let r=0;r<t;r++)e.reset(a[r]),this.emit("after-remove",e);w.release(e)}}if(r?.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),a=e===this.length;if(t||i){const n=w.acquire();n.target=this,n.cancellable=!0;const o=w.acquire();o.target=this,o.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(a?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(o.reset(l),this.emit("after-add",o)))):(a?s.push(l):s.splice(e++,0,l),this._length=s.length,o.reset(l),this.emit("after-add",o));w.release(o),w.release(n)}else{if(a)for(const e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||a?.length)&&this._notifyChangeEvent(r,a),this.hasEventListener("after-splice")){const s=new T(this,r,a,e,t);this.emit("after-splice",s)}return a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=w.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,w.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;E.clear(),N.clear(),M.clear();for(const{added:t,removed:r}of e){if(t)if(0===M.size&&0===N.size)for(const e of t)E.add(e);else for(const e of t)N.has(e)?(M.add(e),N.delete(e)):M.has(e)||E.add(e);if(r)if(0===M.size&&0===E.size)for(const e of r)N.add(e);else for(const e of r)E.has(e)?E.delete(e):(M.delete(e),N.add(e))}const r=i.A.acquire();E.forEach(e=>{r.push(e)});const s=i.A.acquire();N.forEach(e=>{s.push(e)});const n=this._items,a=t.items,o=i.A.acquire();if(M.forEach(e=>{a.indexOf(e)!==n.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||s.length||o.length)){const e={target:this,added:r,removed:s,moved:o},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.A.release(r),i.A.release(s),i.A.release(o)}E.clear(),N.clear(),M.clear()}};(0,n.Cg)([(0,f.MZ)()],k.prototype,"_updating",void 0),(0,n.Cg)([(0,f.MZ)()],k.prototype,"_length",void 0),(0,n.Cg)([(0,f.MZ)()],k.prototype,"length",null),(0,n.Cg)([(0,f.MZ)()],k.prototype,"items",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],k.prototype,"updating",null),k=s=(0,n.Cg)([(0,y.$)("esri.core.Collection")],k);const O=k},4902(e,t,r){r.d(t,{s:()=>a});var s=r(5482),n=r(64108);let i=0;const a=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};a(class{})},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},36708(e,t,r){r.d(t,{C_:()=>g,OH:()=>f,Vh:()=>m,on:()=>h,pc:()=>y,wB:()=>l,z7:()=>c});var s=r(37955),n=r(36563),i=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return u(e,t,r,d)}function c(e,t,r={}){return u(e,t,r,p)}function u(e,t,r={},s){let n=null;const a=r.once?(e,r)=>{s(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(n=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){const t=e();a(t,t)}return n}function h(e,t,r,a={}){let o=null,c=null,u=null;function h(){o&&c&&(c.remove(),a.onListenerRemove?.(o),o=null,c=null)}function g(e){a.once&&a.once&&(0,i.xt)(u),r(e)}const d=l(e,(e,r)=>{h(),(0,s.wb)(e)&&(o=e,c=(0,s.on)(e,t,g),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,n.hA)(()=>{d.remove(),h()}),u}function g(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let o=null;function l(){o=(0,i.xt)(o)}return new Promise((s,i)=>{o=(0,n.vE)([(0,a.u7)(r,()=>{l(),i((0,a.NK)())}),u(e,e=>{l(),s(e)},{sync:!1,once:!0},t??d)])})}(e,p,t)}function d(e){return!0}function p(e){return!!e}r(80559);const f={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},90629(e,t,r){r.d(t,{Lz:()=>n,PN:()=>i,cr:()=>a,gs:()=>l,r_:()=>c,tc:()=>o});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function n(e){return e?e/72*96:0}function i(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),a="px"===s?i(r):r;return n?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}},50498(e,t,r){r.d(t,{Ye:()=>h,gy:()=>u,iI:()=>d,yR:()=>g});var s=r(66552),n=r(5443),i=r(91075),a=r(48526),o=r(86738),l=r(39829),c=r(82799);const u=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),g={base:i.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:c.A,polygon:l.A}},d=new s.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,r){r.d(t,{I:()=>n,e:()=>s});const s=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&s in t?e[s]:void 0;var t}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2639],{68197(e,t,r){r.d(t,{A:()=>c});var s=r(40876),n=r(4576),i=r(34727),a=r(56507);function o(e){return(0,i.qE)((0,a.Vr)(e),0,255)}function l(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class c{static blendColors(e,t,r,s=new c){return s.r=Math.round(e.r+(t.r-e.r)*r),s.g=Math.round(e.g+(t.g-e.g)*r),s.b=Math.round(e.b+(t.b-e.b)*r),s.a=e.a+(t.a-e.a)*r,s._sanitize()}static fromRgb(e,t){const r=(0,s.lT)(e);return r?c.fromArray(r,t):null}static fromHex(e,t=new c){const r=(0,s.oW)(e);return r?c.fromArray(r,t):null}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.Eq)(e);return r?c.fromArray(r,t):null}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(e){return e??=[0,0,0,0],e[0]=this.r/255,e[1]=this.g/255,e[2]=this.b/255,e[3]=null!=this.a?this.a:1,e}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){if("string"==typeof e)c.fromString(e,this);else if((0,n.yc)(e))c.fromArray(e,this);else{const t=e;this._set(t.r??0,t.g??0,t.b??0,t.a??1),e instanceof c||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,s=3===r||4===r,n=4===r||8===r,i=`#${l(this.r,s)}${l(this.g,s)}${l(this.b,s)}${n?l(Math.round(255*this.a),s):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=0){const t=o(this.r),r=o(this.g),s=o(this.b);return 0===e||1!==this.a?[t,r,s,o(255*this.a)]:[t,r,s]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,r,s){this.r=e,this.g=t,this.b=r,this.a=s}}c.prototype.declaredClass="esri.Color"},52106(e,t,r){r.d(t,{A:()=>A});var s,n,i=r(5482),a=r(37838),o=r(69540),l=r(51447),c=r(25482),u=r(53966),h=r(36708),g=r(24326),d=r(91429),p=r(12195),f=r(65864),m=r(50498),y=r(55156),b=r(60950),_=r(54339),v=r(94128),T=r(33910);function w(e){if(null==e)return null;const t={};for(const r in e){const s=e[r];s&&(t[r]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let A=class extends((0,o.OU)(c.o)){static{s=v.Z}static{n=this}constructor(e){super(e),this[s]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,g.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,l.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,y.I)(this.origin);if(e)return(0,_.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,_.r)(this,t):null}getGlobalId(){const e=(0,y.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:w(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,p.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,s){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=s),"attributes"===e&&(n.attributeName=s),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)(()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,h.z7)(()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0,()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)},{equals:(e,t)=>e===t,sync:!0})])}};(0,i.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const s=(0,f.rS)(e[r]);s&&(t[r]=s)}return 0!==Object.keys(t).length?t:null}}})],A.prototype,"aggregateGeometries",null),(0,i.Cg)([(0,d.MZ)({value:null})],A.prototype,"attributes",null),(0,i.Cg)([(0,d.MZ)({value:null,types:m.yR,json:{read:f.rS}})],A.prototype,"geometry",null),(0,i.Cg)([(0,d.MZ)()],A.prototype,"distance",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean})],A.prototype,"isAggregate",void 0),(0,i.Cg)([(0,d.MZ)({clonable:!1})],A.prototype,"layer",void 0),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],A.prototype,"origin",void 0),(0,i.Cg)([(0,d.MZ)({type:a.A,value:null})],A.prototype,"popupTemplate",null),(0,i.Cg)([(0,d.MZ)({clonable:"reference"})],A.prototype,"sourceLayer",void 0),(0,i.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],A.prototype,"statisticsAggregatedIds",void 0),(0,i.Cg)([(0,d.MZ)({value:null,types:T.Es})],A.prototype,"symbol",null),(0,i.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],A.prototype,"_version",void 0),(0,i.Cg)([(0,d.MZ)({type:Boolean,value:!0})],A.prototype,"visible",null),A=n=(0,i.Cg)([(0,d.$K)("esri.Graphic")],A)},11221(e,t,r){r.d(t,{t1:()=>T,Jn:()=>w,Rn:()=>_,An:()=>v});var s=r(52106),n=r(48938),i=r(23732),a=r(87449),o=r(5482),l=r(93833),c=r(60999);class u{constructor(e,t){this._parent=e,this._abortSignal=t,this._done=!1,this._features=null,this._batchMutex=new c.aD,this._currentPage=null,this._pageCursor=-1}get _numAvailable(){return null==this._currentPage||this._pageCursor<0?0:Math.max(this._currentPage.length-this._pageCursor,0)}_takeNFeatures(e){if(null==this._currentPage)return[];const t=this._currentPage.slice(this._pageCursor,this._pageCursor+e);return this._pageCursor+=t.length,t.map(e=>s.A.fromJSON(e))}_takeOneFeature(){const e=this._currentPage[this._pageCursor];return this._pageCursor+=1,s.A.fromJSON(e)}async _nextBatch(){if(this._done)return!1;const e=await(this._features??=this._parent.queryAll(this._abortSignal));let t;do{if(t=await e.next(),t.done)return this._done=!0,this._currentPage=null,this._pageCursor=-1,!1}while(t.value.length<=0);return this._currentPage=t.value,this._pageCursor=0,!0}async nextBatchAsArcadeFeatures(e,t){const r=await this.nextBatch(e);return null==r?r:r.map(e=>l.Xj.createFromGraphicLikeObject(e.geometry,e.attributes,this._parent,t))}async nextBatch(e){const t={stack:[],error:void 0,hasError:!1};try{if(this._done)return null;if(e<=0)return[];if((0,o.mS)(t,await this._batchMutex.acquire(),!1),this._numAvailable>=e)return this._takeNFeatures(e);const r=[];let s=e;do{const e=this._takeNFeatures(s);s-=e.length,r.push(e)}while(s>0&&await this._nextBatch());const n=r.flat();return n.length>0?n:null}catch(e){t.error=e,t.hasError=!0}finally{(0,o.hk)(t)}}async next(){const e={stack:[],error:void 0,hasError:!1};try{return this._done?null:((0,o.mS)(e,await this._batchMutex.acquire(),!1),this._numAvailable>=1||await this._nextBatch()?this._takeOneFeature():null)}catch(t){e.error=t,e.hasError=!0}finally{(0,o.hk)(e)}}}var h=r(33325),g=r(50145),d=r(71163),p=r(5479),f=r(89696),m=r(16930),y=r(65864),b=r(95466);function _(e,t){for(const r of e)null!=r.geometry&&(r.geometry.spatialReference??=t)}const v=Object.freeze({ordered:!0,filterApplied:!0,spatialFilterApplied:!0,features:Object.freeze({next:()=>Promise.resolve({done:!0,value:void 0}),[Symbol.asyncIterator](){return this}})});class T{constructor(){this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._parent=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=7,this._databaseTypeProbed=null,this._loadPromise=null,this._allFeatures=null,this._fieldsIndex=null,this.typeIdField=null,this.types=null,this.subtypeField=null,this.subtypes=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return await(this._parent?.load()),this._initialiseFeatureSet(),this}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types,this.subtypeField=this._parent.subtypeField,this.subtypes=this._parent.subtypes):(this.fields=[],this.typeIdField="",this.subtypeField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new m.A({wkid:4326}),this.geometryType=h.ik.point)}getField(e,t){return e=e.toLowerCase(),(t||this.fields).find(t=>t.name.toLowerCase()===e)}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=b.A.fromLayer({timeInfo:this.timeInfo,editFieldsInfo:this.editFieldsInfo,dateFieldsTimeZone:this.dateFieldsTimeZone,datesInUnknownTimezone:this.datesInUnknownTimezone,fields:this.fields})),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}nativeCapabilities(){return this._parent.nativeCapabilities()}get _hasCachedFeatures(){return null!=this._allFeatures}async queryAll(e){null==this._allFeatures&&(this._allFeatures=this._queryAll().then(e=>(0,p.N5)(e)));const t=(await this._allFeatures)();return null==e||e===n._?t:async function*(){for await(const r of t)(0,a.dZ)(e),yield r}()}async databaseType(){if(7===this._databaseType){if(null!==i.A.applicationCache){const e=i.A.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==i.A.applicationCache&&i.A.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==i.A.applicationCache&&i.A.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{dbType:2,probeSql:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{dbType:3,probeSql:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{dbType:1,probeSql:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.probeSql))return t.dbType;return 1}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new a.dr("NotImplemented")}isTable(){return this._parent?.isTable()??!1}async first(e){if(this._hasCachedFeatures)return this.iterator(e).next();const t=await this.query({limit:1,abortSignal:e});for await(const e of t.features)if(e.length>0)return s.A.fromJSON(e[0]);return null}async isEmpty(e){return this._totalCount>=0?0===this._totalCount:null==await this.first(e)}async calculateStatistic(e,t,r,s){await this._ensureLoaded();let n=await this.queryStat({stat:e,field:t,limit:r,abortSignal:s});return!1===n.calculated&&(n=await this._manualStat(e,t,r,s)),n.result}async _manualStat(e,t,r,s){let n=null;switch(e.toLowerCase()){case"count":{if(this._totalCount>=0)return{calculated:!0,result:this._totalCount};const e=await this.queryAll(s);let t=0;for await(const r of e)t+=r.length;return this._totalCount=t,{calculated:!0,result:t}}case"distinct":return n=await(0,g.dM)(this,t,r,s),{calculated:!0,result:n};case"avg":case"mean":return n=await(0,g.i2)(this,t,s),{calculated:!0,result:n};case"stdev":return n=await(0,g.b$)(this,t,s),{calculated:!0,result:n};case"variance":return n=await(0,g.GV)(this,t,s),{calculated:!0,result:n};case"sum":return n=await(0,g.cz)(this,t,s),{calculated:!0,result:n};case"min":return n=await(0,g.jk)(this,t,s),{calculated:!0,result:n};case"max":return n=await(0,g.T9)(this,t,s),{calculated:!0,result:n};default:return{calculated:!0,result:0}}}iterator(e){return new u(this,e)}async sumArea(e,t,r){let s=0;for await(const n of await this.queryAll(r))for(const r of n)null!=r.geometry&&(s+=null!=t?await(0,d.C)("geodeticArea",[r.geometry,e,t]):await(0,d.C)("area",[r.geometry,e]));return s}async sumLength(e,t,r){let s=0;for await(const n of await this.queryAll(r))for(const r of n)null!=r.geometry&&(s+=null!=t?await(0,d.C)("geodeticLength",[r.geometry,e,t]):await(0,d.C)("length",[r.geometry,e]));return s}async count(e){return await this.load(),this.calculateStatistic("count",f.A.create("1",{fieldsIndex:this.getFieldsIndex(),timeZone:this.dateFieldsTimeZoneDefaultUTC}),-1,e??n._)}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,r,s,n){return this._parent.queryAttachments(e,t,r,s,n)}serviceUrl(){return this._parent.serviceUrl()}subtypeMetadata(){return this.subtypeField&&this.subtypes?{subtypeField:this.subtypeField,subtypes:this.subtypes?this.subtypes.map(e=>({name:e.name,code:e.code})):[]}:this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map(e=>({name:e.name,code:e.id})):[]}:null}relationshipMetadata(){return this._parent.relationshipMetadata()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,h.nE)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===h.yT[this.geometryType]?"esriGeometryNull":h.yT[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];for await(const r of await this.queryAll(t))for(const t of r){const r={geometry:t.geometry??null,attributes:t.attributes};if(null!==r.geometry&&r.geometry.spatialReference){const{spatialReference:e,...t}=r.geometry;r.geometry=t}e.push(r)}return JSON.stringify({...this.schema(),features:e,spatialReference:this.spatialReference.toJSON()})}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return this._parent.getRootFeatureSet()}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const r=[];for await(const s of await this.queryAll(e))for(const e of s){const s={geometry:e.geometry?!0===t?.keepGeometryType?(0,y.rS)(e.geometry):e.geometry:null,attributes:e.attributes};if(null!==s.geometry&&s.geometry.spatialReference&&!0!==t?.keepGeometryType){delete s.geometry.spatialReference;const{spatialReference:e,...t}=s.geometry;s.geometry=t}r.push(s)}return{...this.schema(),features:r,spatialReference:!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON()}}fieldTimeZone(e){return this.getFieldsIndex().getTimeZone(e)}get preferredTimeZone(){return this._parent?.preferredTimeZone??null}get dateFieldsTimeZone(){return this._parent?.dateFieldsTimeZone??null}get dateFieldsTimeZoneDefaultUTC(){return this.datesInUnknownTimezone?"unknown":this.dateFieldsTimeZone||"UTC"}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}getFeatureSetInfo(){return this._parent?this._parent.getFeatureSetInfo():Promise.resolve(null)}}class w extends T{constructor(){super(...arguments),this._parent=null}getRootFeatureSet(){return this}}},23732(e,t,r){r.d(t,{A:()=>s});class s{static{this.applicationCache=null}constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}},87449(e,t,r){r.d(t,{dZ:()=>a,dr:()=>i});var s=r(799);const n={Cancelled:"Cancelled",InvalidStatResponse:"Invalid statistics response from service",InvalidRequest:"Invalid request",RequestFailed:"Request failed - {reason}",MissingFeatures:"Missing features",AggregationFieldNotFound:"Aggregation field not found",DataElementsNotFound:"Data elements not found on service",NeverReach:"Encountered unreachable logic",NotImplemented:"Not implemented"};class i extends Error{constructor(e,t){super((0,s.HC)(n[e],t)),this.declaredRootClass="esri.arcade.featureset.support.featureseterror",Error.captureStackTrace&&Error.captureStackTrace(this,i)}}function a(e){if(null!=e&&e?.aborted)throw new i("Cancelled")}},80609(e,t,r){r.d(t,{C6:()=>v,DA:()=>S,F1:()=>b,F6:()=>f,IY:()=>T,Ju:()=>I,Kb:()=>d,Mi:()=>u,Nf:()=>y,R8:()=>m,YY:()=>c,bD:()=>h,bm:()=>_,kg:()=>g,oj:()=>N});var s=r(66131),n=r(33325),i=r(1262),a=r(15032),o=r(89696),l=r(92647);function c(e,t){return p(e?.parseTree,t,e?.parameters)}function u(e,t,r){return p(e,t,r)}function h(e,t,r,s){const n=p(e.parseTree,0,e.parameters,t,r);return o.A.create(n,{fieldsIndex:s,timeZone:e.timeZone,currentUser:e.currentUser})}function g(e,t,r="AND"){return o.A.create("(("+c(e,0)+")"+r+"("+c(t,0)+"))",{fieldsIndex:e.fieldsIndex,timeZone:e.timeZone,currentUser:e.currentUser})}function d(e){return!0===e.delimited?`"${e.column.split('"').join('""')}"`:e.column}function p(e,t,r,s=null,a=null){let o,l,c,u;switch(e.type){case"interval":return N(p(e.value,t,r,s,a),e.qualifier,e.op);case"case-expression":{let n=" CASE ";"simple"===e.format&&(n+=p(e.operand,t,r,s,a));for(let i=0;i<e.clauses.length;i++)n+=" WHEN "+p(e.clauses[i].operand,t,r,s,a)+" THEN "+p(e.clauses[i].value,t,r,s,a);return null!==e.else&&(n+=" ELSE "+p(e.else,t,r,s,a)),n+=" END ",n}case"parameter":{const s=r[e.value.toLowerCase()];if("string"==typeof s)return"'"+r[e.value.toLowerCase()].toString().replaceAll("'","''")+"'";if((0,n.$P)(s))return _(s,t);if((0,n.Lk)(s))return _(s,t);if((0,n.eg)(s))return b(s,t);if((0,n.rX)(s))return m(s,t);if((0,n.f0)(s))return y(s,t);if(Array.isArray(s)){const e=[];for(let r=0;r<s.length;r++)"string"==typeof s[r]?e.push("'"+s[r].toString().replaceAll("'","''")+"'"):(0,n.$P)(s[r])||(0,n.Lk)(s[r])?e.push(_(s[r],t)):(0,n.eg)(s[r])?e.push(b(s[r],t)):(0,n.rX)(s[r])?e.push(m(s[r],t)):(0,n.f0)(s[r])?e.push(y(s[r],t)):e.push(s[r].toString());return e}return s.toString()}case"expression-list":l=[];for(const n of e.value)l.push(p(n,t,r,s,a));return l;case"unary-expression":return" ( NOT "+p(e.expr,t,r,s,a)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+p(e.left,t,r,s,a)+" AND "+p(e.right,t,r,s,a)+") ";case"OR":return" ("+p(e.left,t,r,s,a)+" OR "+p(e.right,t,r,s,a)+") ";case"IS":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return" ("+p(e.left,t,r,s,a)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new i.L("UnsupportedIsRhs");return" ("+p(e.left,t,r,s,a)+" IS NOT NULL )";case"IN":return o=[],"expression-list"===e.right.type?(o=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" IN ("+o.join(",")+")) "):(u=p(e.right,t,r,s,a),Array.isArray(u)?" ("+p(e.left,t,r,s,a)+" IN ("+u.join(",")+")) ":" ("+p(e.left,t,r,s,a)+" IN ("+u+")) ");case"NOT IN":return o=[],"expression-list"===e.right.type?(o=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" NOT IN ("+o.join(",")+")) "):(u=p(e.right,t,r,s,a),Array.isArray(u)?" ("+p(e.left,t,r,s,a)+" NOT IN ("+u.join(",")+")) ":" ("+p(e.left,t,r,s,a)+" NOT IN ("+u+")) ");case"BETWEEN":return c=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" BETWEEN "+c[0]+" AND "+c[1]+" ) ";case"NOTBETWEEN":return c=p(e.right,t,r,s,a)," ("+p(e.left,t,r,s,a)+" NOT BETWEEN "+c[0]+" AND "+c[1]+" ) ";case"LIKE":return""!==e.escape?" ("+p(e.left,t,r,s,a)+" LIKE "+p(e.right,t,r,s,a)+" ESCAPE '"+e.escape+"') ":" ("+p(e.left,t,r,s,a)+" LIKE "+p(e.right,t,r,s,a)+") ";case"NOT LIKE":return""!==e.escape?" ("+p(e.left,t,r,s,a)+" NOT LIKE "+p(e.right,t,r,s,a)+" ESCAPE '"+e.escape+"') ":" ("+p(e.left,t,r,s,a)+" NOT LIKE "+p(e.right,t,r,s,a)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+p(e.left,t,r,s,a)+" "+e.operator+" "+p(e.right,t,r,s,a)+") ";case"||":return" ("+p(e.left,t,r,s,a)+" "+(2===t?"+":e.operator)+" "+p(e.right,t,r,s,a)+") "}throw new i.L("UnsupportedOperator",{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replaceAll("'","''")+"'";case"timestamp":return`timestamp '${e.value}'`;case"date":return`date '${e.value}'`;case"time":return`time '${e.value}'`;case"number":return e.value.toString();case"current-time":return v(e.mode,t);case"current-user":return"CURRENT_USER";case"column-reference":return s&&s.toLowerCase()===e.column.toLowerCase()?"("+a+")":d(e);case"data-type":return e.value;case"function":{const n=p(e.args,t,r,s,a);return f(e.name,n,t)}}throw new i.L("UnsupportedSyntax",{node:e.type})}function f(e,t,r){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"ceiling"});return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new i.L("InvalidFunctionParameters",{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new i.L("InvalidFunctionParameters",{function:"truncate"});return 2===r?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"char_length"});switch(r){case 2:return"LEN("+t[0]+")";case 3:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new i.L("InvalidFunctionParameters",{function:e.toLowerCase()});let r=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(r+=","),r+=t[e];return r+=")",r}case"lower":case"lcase":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new i.L("InvalidFunctionParameters",{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(r){case 3:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case 2:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replaceAll("'","")+" FROM "+t[1]+")";case"cast":{let e="";switch(r){case 3:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 4:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case 2:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new i.L("InvalidFunctionParameters",{function:e})}function m(e,t){const r=e.toDateTime(),s=0===r.hour&&0===r.minute&&0===r.second&&0===r.millisecond;switch(t){case 6:case 0:case 1:return s?`date '${r.toFormat("yyyy-LL-dd")}'`:`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case 3:return s?`TO_DATE('${r.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${r.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case 2:return`'${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case 5:return`#${r.toFormat(s?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case 4:return`TIMESTAMP '${r.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`timestamp '${r.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function y(e,t){switch(t){case 6:case 0:case 1:default:return e.toSQLWithKeyword();case 3:return`TO_DATE('${e.toFormat("Y-MM-DD")}'`;case 2:return`'${e.toFormat("Y-MM-DD")}'`;case 5:return`#${e.toFormat("Y-MM-DD")}#`;case 4:return`TIMESTAMP '${e.toFormat("Y-MM-DD")}'`}}function b(e,t){switch(e instanceof a.k&&(e=e.toStorageString()),t){case 3:return`TO_DATE('${e}', 'HH24:MI:SS')`;case 2:return`'${e}'`;default:return`time '${e}'`}}function _(e,t){return m(s.lY.dateTimeToArcadeDate((0,n.Lk)(e)?e:l.c9.fromJSDate(e)),t)}function v(e,t){switch(t){case 6:case 0:case 1:case 3:case 5:default:return"date"===e?"CURRENT_DATE":"time"===e?"CURRENT_TIME":"CURRENT_TIMESTAMP";case 2:return"date"===e?"CAST(GETDATE() AS DATE)":"time"===e?"CAST(GETDATE() AS TIME)":"GETDATE()";case 4:return"date"===e?"CURRENT_DATE":"time"===e?"LOCALTIME":"CURRENT_TIMESTAMP"}}function T(e,t,r={}){const s={},n={},i={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeBigInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeTimeOnly:"time-only",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimestampOffset:"timestamp-offset",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer","big-integer":"integer",single:"double","time-only":"time-only","date-only":"date-only","timestamp-offset":"timestemp-offset",double:"double",date:"date",guid:"guid","global-id":"guid",string:"string"};for(const e of t){const t=e.type?i[e.type]:void 0;s[e.name.toLowerCase()]=void 0===t?"":t}for(const e in r){const t=i[r[e]];n[e.toLowerCase()]=void 0===t?"":t}switch(w(s,e.parseTree,e.parameters,n)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"date-only":return"date-only";case"time-only":return"time-only";case"timestamp-offset":return"timestamp-offset";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function w(e,t,r,s){let a;switch(t.type){case"interval":return"integer";case"case-expression":{const n=[];if("simple"===t.format){for(let i=0;i<t.clauses.length;i++)n.push(w(e,t.clauses[i].value,r,s));null!==t.else&&n.push(w(e,t.else,r,s))}else{for(let i=0;i<t.clauses.length;i++)n.push(w(e,t.clauses[i].value,r,s));null!==t.else&&n.push(w(e,t.else,r,s))}return C(n)}case"parameter":{const e=s[t.value.toLowerCase()];if(void 0===e&&r){const e=r[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,n.$P)(e))return"date";if((0,n.rX)(e))return"date";if((0,n.f0)(e))return"date-only";if((0,n.eg)(e))return"time-only";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const n=[];for(const i of t.value)n.push(w(e,i,r,s));return n}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new i.L("UnsupportedIsRhs");return"boolean";case"*":case"-":case"+":case"/":return C([w(e,t.left,r,s),w(e,t.right,r,s)]);case"||":return"string";default:throw new i.L("UnsupportedOperator",{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":return"date";case"timestamp":return t.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"current-time":return"time"===t.mode?"time-only":"date";case"current-user":return"string";case"column-reference":{const r=e[t.column.toLowerCase()];return void 0===r?"":r}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return!0===t.args?.value[1]?.value?.withtimezone?"timestamp-offset":"date";case"time":return"time-only";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(a=w(e,t.args,r,s),Array.isArray(a)){if(a.length<=0)return"double";a=a[0]}return a;case"sign":return"integer";case"ceiling":case"floor":case"abs":return a=w(e,t.args,r,s),Array.isArray(a)&&(a=C(a)),"integer"===a||"double"===a?a:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return a=w(e,t.args,r,s),Array.isArray(a)?a.length>0?a[0]:"":a}return""}throw new i.L("UnsupportedSyntax",{node:t.type})}const A={boolean:1,string:2,integer:3,double:4,date:5};function C(e){if(e){let t="";for(const r of e)""!==r&&(t=""===t||A[t]<A[r]?r:t);return t}return""}function I(e,t){return L(e.parseTree,t)}function S(e){return"column-reference"===e?.parseTree.type}function L(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return L(e.operand,t)||L(e.value,t);case"case-expression":for(const r of e.clauses)if(L(r,t))return!0;return!("simple"!==e.format||!L(e.operand,t))||!(null===e.else||!L(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"time":case"string":case"number":return!1;case"expression-list":for(const r of e.value)if(L(r,t))return!0;return!1;case"unary-expression":return L(e.expr,t);case"binary-expression":return L(e.left,t)||L(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return L(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function N(e,t,r){let s="";return s="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+r+" "+e+" "+s}},50145(e,t,r){r.d(t,{Dp:()=>u,GV:()=>p,T9:()=>g,b$:()=>f,cz:()=>m,dM:()=>b,i2:()=>d,jk:()=>h});var s=r(87449),n=(r(33325),r(80609)),i=r(44729),a=r(55612),o=r(15032);function l(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/e.length}function c(e){const t=l(e);let r=0;for(let s=0;s<e.length;s++)r+=(t-e[s])**2;return r/(e.length-1)}function u(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return null}async function h(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.min.apply(Math,s)}async function g(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.max.apply(Math,s)}async function d(e,t,r){let s="";t&&!(0,n.DA)(t)&&(s=(0,n.IY)(t,e.fields));const i=await y(e,t,r);if(0===i.length)return null;const a=l(i);return null===a?a:"integer"===s?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(a):a}async function p(e,t,r){const s=await y(e,t,r);return 0===s.length?null:c(s)}async function f(e,t,r){const s=await y(e,t,r);return 0===s.length?null:Math.sqrt(c(s))}async function m(e,t,r){const s=await y(e,t,r);return 0===s.length?null:function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}(s)}async function y(e,t,r){const n=await e.queryAll(r),l=[],c={ticker:0};for await(const e of n){if(c.ticker+=e.length,c.ticker>=100&&(c.ticker=0,await new Promise(e=>{setTimeout(e,0)})),r?.aborted)throw new s.dr("Cancelled");for(const r of e){const e=t?.calculateValue(r);null===e||(l[l.length]=e instanceof i.n||e instanceof o.k?e.toNumber():e instanceof a.g?e.toMilliseconds():e)}}return l}async function b(e,t,r=1e3,n=null){if(null==t)return[];const l=await e.queryAll(n),c=[],u=new Set,h={ticker:0};for await(const e of l){if(h.ticker+=e.length,h.ticker>=100&&(h.ticker=0,await new Promise(e=>{setTimeout(e,0)})),n?.aborted)throw new s.dr("Cancelled");for(const s of e){const e=t.calculateValue(s);let n=e;if(e instanceof i.n?n="!!DATEONLY!!-"+e.toString():e instanceof a.g?n="!!TSOFFSETONLY!!-"+e.toString():e instanceof o.k?n="!!TIMEONLY!!-"+e.toString():e instanceof Date&&(n="!!DATE!!-"+e.toString()),null!=e&&(u.has(n)||(c.push(e),u.add(n))),c.length>=r&&-1!==r)return c}}return c}},71163(e,t,r){r.d(t,{C:()=>l});var s=r(29953);let n,i,a=!1;function o(){return n??=(0,s.ho)("arcadeGeometryOperatorsWorker").then(e=>{i=e,a=!0,n=void 0})}async function l(e,t){return a?i.apply("invokeGeometryOp",[e,t]):(await o(),l(e,t))}},40876(e,t,r){r.d(t,{Eq:()=>d,G1:()=>f,TS:()=>i,Tf:()=>b,V6:()=>n,Vm:()=>p,ay:()=>l,c1:()=>m,c4:()=>a,j5:()=>c,lT:()=>h,oW:()=>u,xV:()=>v});const s={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(e){return!!s[e]||!!s[e.toLowerCase()]}function i(e){return s[e]??s[e.toLowerCase()]}function a(e){return[...i(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const s=6*r;return s<1?e+(t-e)*s:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,s=1){const n=(e%360+360)%360/360,i=r<=.5?r*(t+1):r+t-r*t,a=2*r-i;return[Math.round(255*o(a,i,n+1/3)),Math.round(255*o(a,i,n)),Math.round(255*o(a,i,n-1/3)),s]}function c(e){const t=e.length>5,r=t?8:4,s=(1<<r)-1,n=t?1:17,i=t?9===e.length:5===e.length;let a=Number("0x"+e.slice(1));if(isNaN(a))return null;const o=[0,0,0,1];let l;return i&&(l=a&s,a>>=r,o[3]=n*l/255),l=a&s,a>>=r,o[2]=n*l,l=a&s,a>>=r,o[1]=n*l,l=a&s,a>>=r,o[0]=n*l,o}function u(e){if(!e.startsWith("#")||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const t=parseInt(e.slice(1,2),16),r=parseInt(e.slice(2,3),16),s=parseInt(e.slice(3,4),16),n=4===e.length?15:parseInt(e.slice(4),16);return[t+16*t,r+16*r,s+16*s,(n+16*n)/255]}case 7:case 9:return[parseInt(e.slice(1,3),16),parseInt(e.slice(3,5),16),parseInt(e.slice(5,7),16),(7===e.length?255:parseInt(e.slice(7),16))/255];default:return null}}function h(e){const t=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(t){const e=t[2].split(/\s*,\s*/),r=t[1];if("rgb"===r&&3===e.length||"rgba"===r&&4===e.length){if(e[0].endsWith("%")){const t=e.map(e=>2.56*parseFloat(e));return 4===e.length&&(t[3]=parseFloat(e[3])),g(t)}return g(e.map(e=>parseFloat(e)))}if("hsl"===r&&3===e.length||"hsla"===r&&4===e.length)return l(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3]??"1"))}return null}function g(e){return e[0]=m(e[0]),e[1]=m(e[1]),e[2]=m(e[2]),e[3]=4===e.length?f(e[3]):1,e}function d(e){let t=n(e)?i(e):null;return t??=h(e),t??=u(e),t}function p(e){const t=d(e);return null!=t?[t[0]/255,t[1]/255,t[2]/255,t[3]]:null}function f(e){return y(e,0,1)}function m(e){return Math.round(y(e,0,255))}function y(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}const b=2.2,_=1/b;function v(e){return e**_}},69540(e,t,r){r.d(t,{OU:()=>u,Pw:()=>h});var s=r(5482),n=r(69622),i=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const c=Symbol("ClonableMixin"),u=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=c}clone(e){const t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,s=t.store,n={},l=new Map;for(const t in r){const a=r[t],o=s?.originOf(t),c=a.clonable;if(a.readOnly||!1===c||7!==o&&0!==o&&5!==o&&4!==o)continue;const u=this[t];let h=null;if("function"==typeof c)h=c(u,e);else if("reference"===c)h=u;else if(h=(0,i.TU)(u,e),null!=u&&null==h)continue;0===o?l.set(t,h):n[t]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,o.oY)(c)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return c}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},h=u(n.A)},7762(e,t,r){r.d(t,{A:()=>O});var s,n=r(5482),i=r(98291),a=r(4576),o=r(65529),l=r(36563),c=r(4718),u=r(53966),h=r(93687),g=r(76030),d=r(56507),p=r(62788),f=r(10107),m=r(7695),y=r(64108),b=r(95488),_=r(12195);class v{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class T{constructor(e,t,r,s,n){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=n}}const w=new h.A(()=>new v,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function A(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function C(e){return e?e instanceof k?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function I(e){if(e?.length)return e[0]}function S(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function L(e,t,r,s){t&&t.forEach((t,n,i)=>{e.push(t),L(e,r.call(s,t,n,i),r,s)})}const E=new Set,N=new Set,M=new Set,F=new Map;let x=0,k=s=class extends o.nJ{static ofType(e){if(!e)return s;if(F.has(e))return F.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,n.Cg)([(0,m.u)({Type:e,ensureType:"function"==typeof e?(0,d.dp)(e):(0,d.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,y.$)(`esri.core.Collection<${t}>`)],r),F.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:x++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,C(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t);return this._splice(r,0,C(e)),this._emitAfterChanges(1),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(c.o8)})}concat(...e){(0,p.gc)(this._observable);const t=e.map(C);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const r=this._splice(0,this.length),s=r.length;for(let n=0;n<s;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(A)}destroyMany(e){const t=this.removeMany(e);return t.forEach(A),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);const r=[];return L(r,this,e,t),new s(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);const r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=I(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=I(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+S(t,r,e+1,i+1),a=this._splice(i,s);a&&a.length>0&&n.push.apply(n,a),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=I(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,p.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const s=(t?2:0)|(r.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(e){return(0,p.gc)(this._observable),this.toArray().map(t=>(0,_.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,g._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(a=s.splice(e,t),this.hasEventListener("before-remove")){const t=w.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=a.length;r<n;r++)i=a[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);w.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=w.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let r=0;r<t;r++)e.reset(a[r]),this.emit("after-remove",e);w.release(e)}}if(r?.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),a=e===this.length;if(t||i){const n=w.acquire();n.target=this,n.cancellable=!0;const o=w.acquire();o.target=this,o.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(a?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(o.reset(l),this.emit("after-add",o)))):(a?s.push(l):s.splice(e++,0,l),this._length=s.length,o.reset(l),this.emit("after-add",o));w.release(o),w.release(n)}else{if(a)for(const e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||a?.length)&&this._notifyChangeEvent(r,a),this.hasEventListener("after-splice")){const s=new T(this,r,a,e,t);this.emit("after-splice",s)}return a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=w.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,w.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=w.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),w.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;E.clear(),N.clear(),M.clear();for(const{added:t,removed:r}of e){if(t)if(0===M.size&&0===N.size)for(const e of t)E.add(e);else for(const e of t)N.has(e)?(M.add(e),N.delete(e)):M.has(e)||E.add(e);if(r)if(0===M.size&&0===E.size)for(const e of r)N.add(e);else for(const e of r)E.has(e)?E.delete(e):(M.delete(e),N.add(e))}const r=i.A.acquire();E.forEach(e=>{r.push(e)});const s=i.A.acquire();N.forEach(e=>{s.push(e)});const n=this._items,a=t.items,o=i.A.acquire();if(M.forEach(e=>{a.indexOf(e)!==n.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||s.length||o.length)){const e={target:this,added:r,removed:s,moved:o},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.A.release(r),i.A.release(s),i.A.release(o)}E.clear(),N.clear(),M.clear()}};(0,n.Cg)([(0,f.MZ)()],k.prototype,"_updating",void 0),(0,n.Cg)([(0,f.MZ)()],k.prototype,"_length",void 0),(0,n.Cg)([(0,f.MZ)()],k.prototype,"length",null),(0,n.Cg)([(0,f.MZ)()],k.prototype,"items",null),(0,n.Cg)([(0,f.MZ)({readOnly:!0})],k.prototype,"updating",null),k=s=(0,n.Cg)([(0,y.$)("esri.core.Collection")],k);const O=k},4902(e,t,r){r.d(t,{s:()=>a});var s=r(5482),n=r(64108);let i=0;const a=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};a(class{})},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},36708(e,t,r){r.d(t,{C_:()=>g,OH:()=>f,Vh:()=>m,on:()=>h,pc:()=>y,wB:()=>l,z7:()=>c});var s=r(37955),n=r(36563),i=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return u(e,t,r,d)}function c(e,t,r={}){return u(e,t,r,p)}function u(e,t,r={},s){let n=null;const a=r.once?(e,r)=>{s(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(n=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){const t=e();a(t,t)}return n}function h(e,t,r,a={}){let o=null,c=null,u=null;function h(){o&&c&&(c.remove(),a.onListenerRemove?.(o),o=null,c=null)}function g(e){a.once&&a.once&&(0,i.xt)(u),r(e)}const d=l(e,(e,r)=>{h(),(0,s.wb)(e)&&(o=e,c=(0,s.on)(e,t,g),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,n.hA)(()=>{d.remove(),h()}),u}function g(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let o=null;function l(){o=(0,i.xt)(o)}return new Promise((s,i)=>{o=(0,n.vE)([(0,a.u7)(r,()=>{l(),i((0,a.NK)())}),u(e,e=>{l(),s(e)},{sync:!1,once:!0},t??d)])})}(e,p,t)}function d(e){return!0}function p(e){return!!e}r(80559);const f={sync:!0},m={initial:!0},y={sync:!0,initial:!0}},90629(e,t,r){r.d(t,{Lz:()=>n,PN:()=>i,cr:()=>a,gs:()=>l,r_:()=>c,tc:()=>o}),r(39829);const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function n(e){return e?e/72*96:0}function i(e){return e?72*e/96:0}function a(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),n=e.startsWith("-"),a="px"===s?i(r):r;return n?-a:a}return console.warn("screenUtils.toPt: input not recognized!"),null}return e}function o(e=0,t=0){return{x:e,y:t}}function l(e=0,t=0){return[e,t]}function c(e=0,t=0,r=0){return[e,t,r]}},50498(e,t,r){r.d(t,{Ye:()=>h,gy:()=>u,iI:()=>d,yR:()=>g});var s=r(66552),n=r(5443),i=r(91075),a=r(48526),o=r(86738),l=r(39829),c=r(82799);const u=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),h=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),g={base:i.A,key:"type",typeMap:{extent:n.A,multipoint:a.A,point:o.A,polyline:c.A,polygon:l.A}},d=new s.J({esriGeometryBezier3Curve:"cubic-bezier",esriGeometryCircularArc:"circular-arc",esriGeometryEllipticArc:"elliptic-arc"},{ignoreUnknown:!0})},55156(e,t,r){r.d(t,{I:()=>n,e:()=>s});const s=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&s in t?e[s]:void 0;var t}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3937],{85334(e,t,r){r.d(t,{$:()=>M,IB:()=>s,Iy:()=>x,N2:()=>g,RH:()=>v,ZD:()=>b});var n=r(68197),o=r(4576),i=r(4718);function s(e){return"r"in e&&"g"in e&&"b"in e}function a(e){return"h"in e&&"s"in e&&"v"in e}function c(e){return"l"in e&&"a"in e&&"b"in e}function l(e){return"l"in e&&"c"in e&&"h"in e}r(34727),r(78955),r(91829);const f=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],u=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function p(e,t){const r=[];let n,o;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,s=e[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=e[n][o]*t[o];r.push(a)}return r}function m(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=p(f,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function h(e){const t=p(u,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function y(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function d(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function M(e){return s(e)?e:l(e)?function(e){return h(d(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):c(e)?function(e){return h(d(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?h(e):a(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,o=n*r,i=o*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(e):e}function g(e){return a(e)?e:function(e){const t=e.r,r=e.g,n=e.b,o=Math.max(t,r,n),i=o-Math.min(t,r,n);let s=o,a=0===i?0:o===t?(r-n)/i%6:o===r?(n-t)/i+2:(t-r)/i+4,c=0===i?0:i/s;return a<0&&(a+=6),a*=60,c*=100,s*=100/255,{h:a,s:c,v:s}}(M(e))}function b(e){return c(e)?e:function(e){return y(m(e))}(M(e))}function v(e){return l(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:t,c:o,h:i}}(y(m(e)))}(M(e))}function x(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){const r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,o.k4)((0,i.o8)(e),r.seed)),e.length>=t){const r=[],n=(e.length-1)/(t-1);for(let o=0;o<t;o++){const t=Math.round(o*n);r.push(e[t].clone())}return r}return function(e,t,r={}){const n=[],i=e.length-1,s=Math.ceil((t-e.length)/i);e:for(let o=0;o<i;o++){const i=e[o],a=e[o+1];for(let o=1;o<=s;o++){const c=o/(s+1);if(n.push(k(i,a,c,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,o.k4)(n,r.seed??1)]}(e,t,r)}const C=(e,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function k(e,t,r,i={}){const s=e.r,a=e.g,c=e.b,l=t.r,f=t.g,u=t.b,p=Math.round(s+(l-s)*r),m=Math.round(a+(f-a)*r),h=Math.round(c+(u-c)*r);if(!i.offset)return new n.A([p,m,h]);const y=(0,o.Mo)(i.seed);return new n.A([C(p,y),C(m,y),C(h,y)])}},62577(e,t,r){function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function o(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:n}=e,o=r[0]??1,i=r[1]??1;return{originPosition:"lowerLeft",scale:[o,"lowerLeft"===t?i:-i,r[2]??1,r[3]??1],translate:[n[0]??0,n[1]??0,n[2]??0,n[3]??0]}}function i({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function s({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function c({scale:e,translate:t},r){return r*e[1]+t[1]}function l({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function f({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function u(e,t){return e&&t?y:e&&!t?m:!e&&t?h:p}r.d(t,{$X:()=>v,B2:()=>s,Gy:()=>M,IE:()=>i,P5:()=>x,Q1:()=>o,SW:()=>g,Tr:()=>b,VV:()=>n});const p=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i];const{scale:s,originPosition:l}=e,f=s[0],u="lowerLeft"===l?s[1]:-s[1];for(let e=1;e<t.length;e++){const[n,s]=t[e];o+=f*n,i+=u*s,r[e]=[o,i]}return r},m=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i,l(e,n[2])];const{scale:s,originPosition:f}=e,u=s[0],p="lowerLeft"===f?s[1]:-s[1];for(let n=1;n<t.length;n++){const[s,a,c]=t[n];o+=u*s,i+=p*a,r[n]=[o,i,l(e,c)]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i,f(e,n[2])];const{scale:s,originPosition:l}=e,u=s[0],p="lowerLeft"===l?s[1]:-s[1];for(let n=1;n<t.length;n++){const[s,a,c]=t[n];o+=u*s,i+=p*a,r[n]=[o,i,f(e,c)]}return r},y=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i,l(e,n[2]),f(e,n[3])];const{scale:s,originPosition:u}=e,p=s[0],m="lowerLeft"===u?s[1]:-s[1];for(let n=1;n<t.length;n++){const[s,a,c,u]=t[n];o+=p*s,i+=m*a,r[n]=[o,i,l(e,c),f(e,u)]}return r};function d(e,t,r){const n=new Array(r.length);for(let o=0;o<r.length;o++)n[o]=t(e,r[o]);return n}function M(e,t,r){const n=o(e);return t.x=i(n,r.x),t.y=s(n,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(n,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(n,r.m)),t}function g(e,t,r,n=r?.hasZ??!1,i=r?.hasM??!1){if(null!=r){const s=o(e);t.points=u(n,i)(s,r.points),t.hasZ=n,t.hasM=i}return t}function b(e,t,r,n=null!=r?.z,i=null!=r?.m){if(null==r)return t;const s=o(e);return t.x=a(s,r.x),t.y=c(s,r.y),n&&(t.z=l(s,r.z)),i&&(t.m=f(s,r.m)),t}function v(e,t,r,n=r?.hasZ??!1,i=r?.hasM??!1){if(null!=r){const s=o(e);t.rings=d(s,u(n,i),r.rings),t.hasZ=n,t.hasM=i}return t}function x(e,t,r,n=r?.hasZ??!1,i=r?.hasM??!1){if(null!=r){const s=o(e);t.paths=d(s,u(n,i),r.paths),t.hasZ=n,t.hasM=i}return t}},73937(e,t,r){r.d(t,{OverrideHelper:()=>d});var n=r(68197),o=r(85334),i=r(4718),s=r(95466),a=r(55674),c=r(93397),l=r(49186),f=r(53966),u=r(62577);function p(e,t,r,n,o,i){if(null==e)return null;const s=e.references("geometry")&&i?h(t,n,i):t,a=e.repurposeFeature(s,o);try{return e.evaluate(a,r)}catch(e){return f.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}const m=new Map;function h(e,t,r){const{transform:n,hasZ:o,hasM:i}=r;m.has(t)||m.set(t,function(e){const t={};switch(e){case"esriGeometryPoint":return(e,r,n,o)=>(0,u.Tr)(r,t,e,n,o);case"esriGeometryPolygon":return(e,r,n,o)=>(0,u.$X)(r,t,e,n,o);case"esriGeometryPolyline":return(e,r,n,o)=>(0,u.P5)(r,t,e,n,o);case"esriGeometryMultipoint":return(e,r,n,o)=>(0,u.SW)(r,t,e,n,o);default:return f.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new l.A("mapview-arcade",`Unable to handle geometryType: ${e}`)),e=>e}}(t));const s=m.get(t)(e.geometry,n,o,i);return{...e,geometry:s}}const y=e=>{if(!e)return[0,0,0,0];const{r:t,g:r,b:n,a:o}=e;return[t,r,n,255*o]};class d{static findApplicableOverrides(e,t,r){if(e&&t){if(e.primitiveName){let n=!1;for(const t of r)if(t.primitiveName===e.primitiveName){n=!0;break}if(!n)for(const n of t)n.primitiveName===e.primitiveName&&r.push(n)}switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(e.effects)for(const n of e.effects)d.findApplicableOverrides(n,t,r);if(e.symbolLayers)for(const n of e.symbolLayers)d.findApplicableOverrides(n,t,r);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(e.effects)for(const n of e.effects)d.findApplicableOverrides(n,t,r);if(e.markerPlacement&&d.findApplicableOverrides(e.markerPlacement,t,r),"CIMVectorMarker"===e.type){if(e.markerGraphics)for(const n of e.markerGraphics)d.findApplicableOverrides(n,t,r),d.findApplicableOverrides(n.symbol,t,r)}else"CIMCharacterMarker"===e.type?d.findApplicableOverrides(e.symbol,t,r):"CIMHatchFill"===e.type?d.findApplicableOverrides(e.lineSymbol,t,r):"CIMPictureMarker"===e.type&&d.findApplicableOverrides(e.animatedSymbolProperties,t,r)}}}static findEffectOverrides(e,t){if(!e)return null;if("CIMGeometricEffectDashes"===e.type&&(0,c.FH)(e),!t||!e.primitiveName)return{type:"cim-effect-param",effect:e,overrides:[]};const r=(0,c.rB)(e),n=e.primitiveName,o=[];for(const e of t)e.primitiveName===n&&o.push((0,c.rB)(e));return{type:"cim-effect-param",effect:r,overrides:(0,c.pk)(o)}}static async resolveSymbolOverrides(e,t,r,n,o,a,l){if(!e?.symbol)return null;let{symbol:f,primitiveOverrides:u}=e;const p=!!u;if(!p&&!n)return f;f=(0,i.o8)(f),u=(0,i.o8)(u);let m=!0;if(t||(t={attributes:{}},m=!1),p){if(m||(u=u.filter(e=>!e.valueExpressionInfo?.expression.includes("$feature"))),l||(u=u.filter(e=>!e.valueExpressionInfo?.expression.includes("$view"))),u.length>0){const e=(0,c.O2)(t.attributes),n={spatialReference:r,fields:e,geometryType:o};await d.createRenderExpressions(u,n),d.evaluateOverrides(u,t,o??"esriGeometryPoint",a,l,new s.A(e))}d.applyOverrides(f,u)}return n&&d.applyDictionaryTextOverrides(f,t,n,null),f}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(e,t){const r=[];for(const n of e){const e=n.valueExpressionInfo;if(!e||d._expressionToRenderExpression.has(e.expression))continue;const o=(0,a.Ad)(e.expression,t.spatialReference);r.push(o),o.then(t=>d._expressionToRenderExpression.set(e.expression,t))}r.length>0&&await Promise.all(r)}static evaluateOverrides(e,t,r,n,i,s){const a={$view:{scale:i?.scale}};for(const i of e){i.value&&"object"==typeof i.value&&(0,o.IB)(i.value)&&("Color"===i.propertyName||"StrokeColor"===i.propertyName)&&(i.value=y(i.value));const e=i.valueExpressionInfo;if(!e)continue;const c=d._expressionToRenderExpression.get(e.expression);c&&(i.value=p(c,t,a,r,s,n))}}static applyDictionaryTextOverrides(e,t,r,n,o="Normal"){if(e?.type)switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{const i=e.symbolLayers;if(!i)return;for(const s of i)s&&"CIMVectorMarker"===s.type&&d.applyDictionaryTextOverrides(s,t,r,n,"CIMTextSymbol"===e.type?e.textCase:o)}break;case"CIMVectorMarker":{const o=e.markerGraphics;if(!o)return;for(const e of o)e&&d.applyDictionaryTextOverrides(e,t,r,n)}break;case"CIMMarkerGraphic":{const i=e.textString;if(i&&i.includes("[")){const s=(0,c.gQ)(i,r);e.textString=(0,c.FM)(t,s,n,o)}}}}static applyOverrides(e,t,r,n){if(e.primitiveName)for(const o of t)if(o.primitiveName===e.primitiveName){const t=(0,c.YF)(o.propertyName);if(n&&n.push({cim:e,nocapPropertyName:t,value:e[t]}),r){let t=!1;for(const n of r)n.primitiveName===e.primitiveName&&(t=!0);t||r.push(o)}null!=o.value&&(e[t]=o.value)}switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(e.effects)for(const o of e.effects)d.applyOverrides(o,t,r,n);if(e.symbolLayers)for(const o of e.symbolLayers)d.applyOverrides(o,t,r,n);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(e.effects)for(const o of e.effects)d.applyOverrides(o,t,r,n);if("CIMVectorMarker"===e.type&&e.markerGraphics)for(const o of e.markerGraphics)d.applyOverrides(o,t,r,n),d.applyOverrides(o.symbol,t,r,n)}}static restoreOverrides(e){for(const t of e)t.cim[t.nocapPropertyName]=t.value}static buildOverrideKey(e){let t="";for(const r of e)void 0!==r.value&&(t+=`${r.primitiveName}${r.propertyName}${JSON.stringify(r.value)}`);return t}static toValue(e,t){if("DashTemplate"===e)return t.split(" ").map(e=>Number(e));if("Color"===e){const e=new n.A(t).toRgba();return e[3]*=255,e}return t}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3650],{85334(e,t,r){r.d(t,{$:()=>M,IB:()=>s,Iy:()=>x,N2:()=>g,RH:()=>v,ZD:()=>b});var n=r(68197),o=r(4576),i=r(4718);function s(e){return"r"in e&&"g"in e&&"b"in e}function a(e){return"h"in e&&"s"in e&&"v"in e}function c(e){return"l"in e&&"a"in e&&"b"in e}function l(e){return"l"in e&&"c"in e&&"h"in e}r(34727),r(78955),r(91829);const f=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],u=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function p(e,t){const r=[];let n,o;if(e[0].length!==t.length)throw new Error("dimensions do not match");const i=e.length,s=e[0].length;let a=0;for(n=0;n<i;n++){for(a=0,o=0;o<s;o++)a+=e[n][o]*t[o];r.push(a)}return r}function m(e){const t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=p(f,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function h(e){const t=p(u,[e.x/100,e.y/100,e.z/100]).map(e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function y(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function d(e){const t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function M(e){return s(e)?e:l(e)?function(e){return h(d(function(e){const t=e.l,r=e.c,n=e.h;return{l:t,a:r*Math.cos(n),b:r*Math.sin(n)}}(e)))}(e):c(e)?function(e){return h(d(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?h(e):a(e)?function(e){const t=(e.h+360)%360/60,r=e.s/100,n=e.v/100*255,o=n*r,i=o*(1-Math.abs(t%2-1));let s;switch(Math.floor(t)){case 0:s={r:o,g:i,b:0};break;case 1:s={r:i,g:o,b:0};break;case 2:s={r:0,g:o,b:i};break;case 3:s={r:0,g:i,b:o};break;case 4:s={r:i,g:0,b:o};break;case 5:case 6:s={r:o,g:0,b:i};break;default:s={r:0,g:0,b:0}}return s.r=Math.round(s.r+n-o),s.g=Math.round(s.g+n-o),s.b=Math.round(s.b+n-o),s}(e):e}function g(e){return a(e)?e:function(e){const t=e.r,r=e.g,n=e.b,o=Math.max(t,r,n),i=o-Math.min(t,r,n);let s=o,a=0===i?0:o===t?(r-n)/i%6:o===r?(n-t)/i+2:(t-r)/i+4,c=0===i?0:i/s;return a<0&&(a+=6),a*=60,c*=100,s*=100/255,{h:a,s:c,v:s}}(M(e))}function b(e){return c(e)?e:function(e){return y(m(e))}(M(e))}function v(e){return l(e)?e:function(e){return function(e){const t=e.l,r=e.a,n=e.b,o=Math.sqrt(r*r+n*n);let i=Math.atan2(n,r);return i=i>0?i:i+2*Math.PI,{l:t,c:o,h:i}}(y(m(e)))}(M(e))}function x(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new n.A(e):e)).length||1===t){const r=[],n=e[0];for(let e=0;e<t;e++)r.push(n.clone());return r}if(r.shuffle&&(e=(0,o.k4)((0,i.o8)(e),r.seed)),e.length>=t){const r=[],n=(e.length-1)/(t-1);for(let o=0;o<t;o++){const t=Math.round(o*n);r.push(e[t].clone())}return r}return function(e,t,r={}){const n=[],i=e.length-1,s=Math.ceil((t-e.length)/i);e:for(let o=0;o<i;o++){const i=e[o],a=e[o+1];for(let o=1;o<=s;o++){const c=o/(s+1);if(n.push(k(i,a,c,r)),n.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,o.k4)(n,r.seed??1)]}(e,t,r)}const C=(e,t)=>{const r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function k(e,t,r,i={}){const s=e.r,a=e.g,c=e.b,l=t.r,f=t.g,u=t.b,p=Math.round(s+(l-s)*r),m=Math.round(a+(f-a)*r),h=Math.round(c+(u-c)*r);if(!i.offset)return new n.A([p,m,h]);const y=(0,o.Mo)(i.seed);return new n.A([C(p,y),C(m,y),C(h,y)])}},62577(e,t,r){function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function o(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:n}=e,o=r[0]??1,i=r[1]??1;return{originPosition:"lowerLeft",scale:[o,"lowerLeft"===t?i:-i,r[2]??1,r[3]??1],translate:[n[0]??0,n[1]??0,n[2]??0,n[3]??0]}}function i({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function s({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function c({scale:e,translate:t},r){return r*e[1]+t[1]}function l({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function f({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function u(e,t){return e&&t?y:e&&!t?m:!e&&t?h:p}r.d(t,{$X:()=>v,B2:()=>s,Gy:()=>M,IE:()=>i,P5:()=>x,Q1:()=>o,SW:()=>g,Tr:()=>b,VV:()=>n});const p=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i];const{scale:s,originPosition:l}=e,f=s[0],u="lowerLeft"===l?s[1]:-s[1];for(let e=1;e<t.length;e++){const[n,s]=t[e];o+=f*n,i+=u*s,r[e]=[o,i]}return r},m=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i,l(e,n[2])];const{scale:s,originPosition:f}=e,u=s[0],p="lowerLeft"===f?s[1]:-s[1];for(let n=1;n<t.length;n++){const[s,a,c]=t[n];o+=u*s,i+=p*a,r[n]=[o,i,l(e,c)]}return r},h=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i,f(e,n[2])];const{scale:s,originPosition:l}=e,u=s[0],p="lowerLeft"===l?s[1]:-s[1];for(let n=1;n<t.length;n++){const[s,a,c]=t[n];o+=u*s,i+=p*a,r[n]=[o,i,f(e,c)]}return r},y=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const n=t[0];let o=a(e,n[0]),i=c(e,n[1]);r[0]=[o,i,l(e,n[2]),f(e,n[3])];const{scale:s,originPosition:u}=e,p=s[0],m="lowerLeft"===u?s[1]:-s[1];for(let n=1;n<t.length;n++){const[s,a,c,u]=t[n];o+=p*s,i+=m*a,r[n]=[o,i,l(e,c),f(e,u)]}return r};function d(e,t,r){const n=new Array(r.length);for(let o=0;o<r.length;o++)n[o]=t(e,r[o]);return n}function M(e,t,r){const n=o(e);return t.x=i(n,r.x),t.y=s(n,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(n,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(n,r.m)),t}function g(e,t,r,n=r?.hasZ??!1,i=r?.hasM??!1){if(null!=r){const s=o(e);t.points=u(n,i)(s,r.points),t.hasZ=n,t.hasM=i}return t}function b(e,t,r,n=null!=r?.z,i=null!=r?.m){if(null==r)return t;const s=o(e);return t.x=a(s,r.x),t.y=c(s,r.y),n&&(t.z=l(s,r.z)),i&&(t.m=f(s,r.m)),t}function v(e,t,r,n=r?.hasZ??!1,i=r?.hasM??!1){if(null!=r){const s=o(e);t.rings=d(s,u(n,i),r.rings),t.hasZ=n,t.hasM=i}return t}function x(e,t,r,n=r?.hasZ??!1,i=r?.hasM??!1){if(null!=r){const s=o(e);t.paths=d(s,u(n,i),r.paths),t.hasZ=n,t.hasM=i}return t}},23650(e,t,r){r.d(t,{OverrideHelper:()=>u});var n=r(68197),o=r(85334),i=r(4718),s=r(95466),a=r(55674),c=r(93397),l=r(37615);const f=e=>{if(!e)return[0,0,0,0];const{r:t,g:r,b:n,a:o}=e;return[t,r,n,255*o]};class u{static findApplicableOverrides(e,t,r){if(e&&t){if(e.primitiveName){let n=!1;for(const t of r)if(t.primitiveName===e.primitiveName){n=!0;break}if(!n)for(const n of t)n.primitiveName===e.primitiveName&&r.push(n)}switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(e.effects)for(const n of e.effects)u.findApplicableOverrides(n,t,r);if(e.symbolLayers)for(const n of e.symbolLayers)u.findApplicableOverrides(n,t,r);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":case"CIMVectorMarker":case"CIMCharacterMarker":case"CIMPictureMarker":if(e.effects)for(const n of e.effects)u.findApplicableOverrides(n,t,r);if(e.markerPlacement&&u.findApplicableOverrides(e.markerPlacement,t,r),"CIMVectorMarker"===e.type){if(e.markerGraphics)for(const n of e.markerGraphics)u.findApplicableOverrides(n,t,r),u.findApplicableOverrides(n.symbol,t,r)}else"CIMCharacterMarker"===e.type?u.findApplicableOverrides(e.symbol,t,r):"CIMHatchFill"===e.type?u.findApplicableOverrides(e.lineSymbol,t,r):"CIMPictureMarker"===e.type&&u.findApplicableOverrides(e.animatedSymbolProperties,t,r)}}}static findEffectOverrides(e,t){if(!e)return null;if("CIMGeometricEffectDashes"===e.type&&(0,c.FH)(e),!t||!e.primitiveName)return{type:"cim-effect-param",effect:e,overrides:[]};const r=(0,c.rB)(e),n=e.primitiveName,o=[];for(const e of t)e.primitiveName===n&&o.push((0,c.rB)(e));return{type:"cim-effect-param",effect:r,overrides:(0,c.pk)(o)}}static async resolveSymbolOverrides(e,t,r,n,o,a,l){if(!e?.symbol)return null;let{symbol:f,primitiveOverrides:p}=e;const m=!!p;if(!m&&!n)return f;f=(0,i.o8)(f),p=(0,i.o8)(p);let h=!0;if(t||(t={attributes:{}},h=!1),m){if(h||(p=p.filter(e=>!e.valueExpressionInfo?.expression.includes("$feature"))),l||(p=p.filter(e=>!e.valueExpressionInfo?.expression.includes("$view"))),p.length>0){const e=(0,c.O2)(t.attributes),n={spatialReference:r,fields:e,geometryType:o};await u.createRenderExpressions(p,n),u.evaluateOverrides(p,t,o??"esriGeometryPoint",a,l,new s.A(e))}u.applyOverrides(f,p)}return n&&u.applyDictionaryTextOverrides(f,t,n,null),f}static{this._expressionToRenderExpression=new Map}static async createRenderExpressions(e,t){const r=[];for(const n of e){const e=n.valueExpressionInfo;if(!e||u._expressionToRenderExpression.has(e.expression))continue;const o=(0,a.Ad)(e.expression,t.spatialReference);r.push(o),o.then(t=>u._expressionToRenderExpression.set(e.expression,t))}r.length>0&&await Promise.all(r)}static evaluateOverrides(e,t,r,n,i,s){const a={$view:{scale:i?.scale}};for(const i of e){i.value&&"object"==typeof i.value&&(0,o.IB)(i.value)&&("Color"===i.propertyName||"StrokeColor"===i.propertyName)&&(i.value=f(i.value));const e=i.valueExpressionInfo;if(!e)continue;const c=u._expressionToRenderExpression.get(e.expression);c&&(i.value=(0,l.A)(c,t,a,r,s,n))}}static applyDictionaryTextOverrides(e,t,r,n,o="Normal"){if(e?.type)switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":case"CIMTextSymbol":{const i=e.symbolLayers;if(!i)return;for(const s of i)s&&"CIMVectorMarker"===s.type&&u.applyDictionaryTextOverrides(s,t,r,n,"CIMTextSymbol"===e.type?e.textCase:o)}break;case"CIMVectorMarker":{const o=e.markerGraphics;if(!o)return;for(const e of o)e&&u.applyDictionaryTextOverrides(e,t,r,n)}break;case"CIMMarkerGraphic":{const i=e.textString;if(i&&i.includes("[")){const s=(0,c.gQ)(i,r);e.textString=(0,c.FM)(t,s,n,o)}}}}static applyOverrides(e,t,r,n){if(e.primitiveName)for(const o of t)if(o.primitiveName===e.primitiveName){const t=(0,c.YF)(o.propertyName);if(n&&n.push({cim:e,nocapPropertyName:t,value:e[t]}),r){let t=!1;for(const n of r)n.primitiveName===e.primitiveName&&(t=!0);t||r.push(o)}null!=o.value&&(e[t]=o.value)}switch(e.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":if(e.effects)for(const o of e.effects)u.applyOverrides(o,t,r,n);if(e.symbolLayers)for(const o of e.symbolLayers)u.applyOverrides(o,t,r,n);break;case"CIMTextSymbol":break;case"CIMSolidStroke":case"CIMSolidFill":case"CIMVectorMarker":if(e.effects)for(const o of e.effects)u.applyOverrides(o,t,r,n);if("CIMVectorMarker"===e.type&&e.markerGraphics)for(const o of e.markerGraphics)u.applyOverrides(o,t,r,n),u.applyOverrides(o.symbol,t,r,n)}}static restoreOverrides(e){for(const t of e)t.cim[t.nocapPropertyName]=t.value}static buildOverrideKey(e){let t="";for(const r of e)void 0!==r.value&&(t+=`${r.primitiveName}${r.propertyName}${JSON.stringify(r.value)}`);return t}static toValue(e,t){if("DashTemplate"===e)return t.split(" ").map(e=>Number(e));if("Color"===e){const e=new n.A(t).toRgba();return e[3]*=255,e}return t}}},37615(e,t,r){r.d(t,{A:()=>s});var n=r(49186),o=r(53966),i=r(62577);function s(e,t,r,n,i,s){if(null==e)return null;const a=e.references("geometry")&&s?c(t,n,s):t,l=e.repurposeFeature(a,i);try{return e.evaluate(l,r)}catch(e){return o.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}const a=new Map;function c(e,t,r){const{transform:s,hasZ:c,hasM:l}=r;a.has(t)||a.set(t,function(e){const t={};switch(e){case"esriGeometryPoint":return(e,r,n,o)=>(0,i.Tr)(r,t,e,n,o);case"esriGeometryPolygon":return(e,r,n,o)=>(0,i.$X)(r,t,e,n,o);case"esriGeometryPolyline":return(e,r,n,o)=>(0,i.P5)(r,t,e,n,o);case"esriGeometryMultipoint":return(e,r,n,o)=>(0,i.SW)(r,t,e,n,o);default:return o.A.getLogger("esri.views.2d.support.arcadeOnDemand").error(new n.A("mapview-arcade",`Unable to handle geometryType: ${e}`)),e=>e}}(t));const f=a.get(t)(e.geometry,s,c,l);return{...e,geometry:f}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9829],{29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function i(t,n,r,e,i,s,o,a,u){return[t,n,r,e,i,s,o,a,u]}r.d(n,{fA:()=>i,vt:()=>e,zK:()=>s});const s=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:i},Symbol.toStringTag,{value:"Module"}))},34304(t,n,r){r.d(n,{DF:()=>u,FD:()=>i,Ov:()=>s,ct:()=>c});let e=1e-6;function i(){return e}const s=Math.random,o=Math.PI/180,a=180/Math.PI;function u(t){return t*o}function c(t){return t*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:s,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:i,setEpsilon:function(t){e=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},77690(t,n,r){r.d(n,{B8:()=>a,Ge:()=>m,I0:()=>f,KC:()=>u,a4:()=>c,hZ:()=>s,hs:()=>l,lw:()=>h,mg:()=>o,z0:()=>i});var e=r(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function s(t,n,r,e,i,s,o,a,u,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=u,t[8]=c,t}function o(t,n){if(t===n){const r=n[1],e=n[2],i=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=i}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function a(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=h*o-a*c,f=-h*s+a*u,m=c*s-o*u;let M=r*l+e*f+i*m;return M?(M=1/M,t[0]=l*M,t[1]=(-h*e+i*c)*M,t[2]=(a*e-i*o)*M,t[3]=f*M,t[4]=(h*r-i*u)*M,t[5]=(-a*r+i*s)*M,t[6]=m*M,t[7]=(-c*r+e*u)*M,t[8]=(o*r-e*s)*M,t):null}function u(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8];return t[0]=o*h-a*c,t[1]=i*c-e*h,t[2]=e*a-i*o,t[3]=a*u-s*h,t[4]=r*h-i*u,t[5]=i*s-r*a,t[6]=s*c-o*u,t[7]=e*u-r*c,t[8]=r*o-e*s,t}function c(t){const n=t[0],r=t[1],e=t[2],i=t[3],s=t[4],o=t[5],a=t[6],u=t[7],c=t[8];return n*(c*s-o*u)+r*(-c*i+o*a)+e*(u*i-s*a)}function h(t,n,r){const e=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=r[0],m=r[1],M=r[2],g=r[3],x=r[4],d=r[5],p=r[6],y=r[7],b=r[8];return t[0]=f*e+m*o+M*c,t[1]=f*i+m*a+M*h,t[2]=f*s+m*u+M*l,t[3]=g*e+x*o+d*c,t[4]=g*i+x*a+d*h,t[5]=g*s+x*u+d*l,t[6]=p*e+y*o+b*c,t[7]=p*i+y*a+b*h,t[8]=p*s+y*u+b*l,t}function l(t,n,r){const e=r[0],i=r[1],s=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t[6]=s*n[6],t[7]=s*n[7],t[8]=s*n[8],t}function f(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],o=r+r,a=e+e,u=i+i,c=r*o,h=e*o,l=e*a,f=i*o,m=i*a,M=i*u,g=s*o,x=s*a,d=s*u;return t[0]=1-l-M,t[3]=h-d,t[6]=f+x,t[1]=h+d,t[4]=1-c-M,t[7]=m-g,t[2]=f-x,t[5]=m+g,t[8]=1-c-l,t}function m(t,n){const r=n[0],e=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],m=n[11],M=n[12],g=n[13],x=n[14],d=n[15],p=r*a-e*o,y=r*u-i*o,b=r*c-s*o,v=e*u-i*a,P=e*c-s*a,I=i*c-s*u,R=h*g-l*M,N=h*x-f*M,S=h*d-m*M,q=l*x-f*g,z=l*d-m*g,A=f*d-m*x;let Z=p*A-y*z+b*q+v*S-P*N+I*R;return Z?(Z=1/Z,t[0]=(a*A-u*z+c*q)*Z,t[1]=(u*S-o*A-c*N)*Z,t[2]=(o*z-a*S+c*R)*Z,t[3]=(i*z-e*A-s*q)*Z,t[4]=(r*A-i*S+s*N)*Z,t[5]=(e*S-r*z-s*R)*Z,t[6]=(g*I-x*P+d*v)*Z,t[7]=(x*b-M*I-d*y)*Z,t[8]=(M*P-g*b+d*p)*Z,t):null}function M(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const g=h,x=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const r=t[0],i=t[1],s=t[2],o=t[3],a=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=n[0],m=n[1],M=n[2],g=n[3],x=n[4],d=n[5],p=n[6],y=n[7],b=n[8],v=(0,e.FD)();return Math.abs(r-f)<=v*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(s-M)<=v*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(o-g)<=v*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(a-x)<=v*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(u-d)<=v*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(c-p)<=v*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(h-y)<=v*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(l-b)<=v*Math.max(1,Math.abs(l),Math.abs(b))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:i,fromQuat:f,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],i=t[1],s=t[2],o=t[3],a=t[4],u=t[5],c=t[6],h=t[7],l=t[8];return Math.abs(1-(r*r+o*o+c*c))<=n&&Math.abs(1-(i*i+a*a+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n},mul:g,multiply:h,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:m,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],i=n[2],s=n[4],o=n[5],a=n[6],u=n[8],c=n[9],h=n[10],l=h*o-a*c,f=-h*s+a*u,m=c*s-o*u,M=r*l+e*f+i*m;if(!M)return null;const g=1/M;return t[0]=l*g,t[1]=(-h*e+i*c)*g,t[2]=(a*e-i*o)*g,t[3]=f*g,t[4]=(h*r-i*u)*g,t[5]=(-a*r+i*s)*g,t[6]=m*g,t[7]=(-c*r+e*u)*g,t[8]=(o*r-e*s)*g,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=Math.sin(r),m=Math.cos(r);return t[0]=m*e+f*o,t[1]=m*i+f*a,t[2]=m*s+f*u,t[3]=m*o-f*e,t[4]=m*a-f*i,t[5]=m*u-f*s,t[6]=c,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,r){const e=r[0],i=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=i*n[3],t[4]=i*n[4],t[5]=i*n[5],t},set:s,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:x,subtract:M,translate:function(t,n,r){const e=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=r[0],m=r[1];return t[0]=e,t[1]=i,t[2]=s,t[3]=o,t[4]=a,t[5]=u,t[6]=f*e+m*o+c,t[7]=f*i+m*a+h,t[8]=f*s+m*u+l,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},37585(t,n,r){r.d(n,{C:()=>s,Cc:()=>P,Io:()=>g,LI:()=>m,Om:()=>v,Re:()=>u,S8:()=>b,T9:()=>l,WQ:()=>a,aI:()=>S,e$:()=>R,hG:()=>x,hZ:()=>o,hs:()=>M,jb:()=>z,l0:()=>I,qE:()=>f,t2:()=>N,xg:()=>E,ze:()=>y});var e=r(34727),i=r(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t}function o(t,n,r){return t[0]=n,t[1]=r,t}function a(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t}function u(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t}function c(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t}function l(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t}function f(t,n,r,i){return t[0]=(0,e.qE)(n[0],r[0],i[0]),t[1]=(0,e.qE)(n[1],r[1],i[1]),t}function m(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function M(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t}function g(t,n){const r=n[0]-t[0],e=n[1]-t[1];return Math.sqrt(r*r+e*e)}function x(t,n){const r=n[0]-t[0],e=n[1]-t[1];return r*r+e*e}function d(t){const n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function p(t){const n=t[0],r=t[1];return n*n+r*r}function y(t,n){return t[0]=-n[0],t[1]=-n[1],t}function b(t,n){const r=n[0],e=n[1];let i=r*r+e*e;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i),t}function v(t,n){return t[0]*n[0]+t[1]*n[1]}function P(t,n,r,e){const i=n[0],s=n[1];return t[0]=i+e*(r[0]-i),t[1]=s+e*(r[1]-s),t}function I(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[2]*i+r[4],t[1]=r[1]*e+r[3]*i+r[5],t}function R(t,n,r,e){const i=n[0]-r[0],s=n[1]-r[1],o=Math.sin(e),a=Math.cos(e);return t[0]=i*a-s*o+r[0],t[1]=i*o+s*a+r[1],t}function N(t,n){return t[0]===n[0]&&t[1]===n[1]}function S(t,n){const r=t[0],e=t[1],s=n[0],o=n[1],a=(0,i.FD)();return Math.abs(r-s)<=a*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-o)<=a*Math.max(1,Math.abs(e),Math.abs(o))}const q=d,z=u,A=c,Z=h,E=g,_=x,w=p;Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:function(t,n){const r=t[0],e=t[1],i=n[0],s=n[1];let o=r*r+e*e;o>0&&(o=1/Math.sqrt(o));let a=i*i+s*s;a>0&&(a=1/Math.sqrt(a));const u=(r*i+e*s)*o*a;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:f,copy:s,cross:function(t,n,r){const e=n[0]*r[1]-n[1]*r[0];return t[0]=t[1]=0,t[2]=e,t},dist:E,distance:g,div:Z,divide:h,dot:v,equals:S,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:q,length:d,lerp:P,max:l,min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t},mul:A,multiply:c,negate:y,normalize:b,projectAndScale:function(t,n,r,e,i){let s=n[0]-r[0],o=n[1]-r[1];const a=(e[0]*s+e[1]*o)*(i-1);return s=e[0]*a,o=e[1]*a,t[0]=n[0]+s,t[1]=n[1]+o,t},random:function(t,n=1){const r=2*(0,i.Ov)()*Math.PI;return t[0]=Math.cos(r)*n,t[1]=Math.sin(r)*n,t},rotate:R,round:m,scale:M,scaleAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t},set:o,sqrDist:_,sqrLen:w,squaredDistance:x,squaredLength:p,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:z,subtract:u,transformMat2:function(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[2]*i,t[1]=r[1]*e+r[3]*i,t},transformMat2d:I,transformMat3:function(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[3]*i+r[6],t[1]=r[1]*e+r[4]*i+r[7],t},transformMat4:function(t,n,r){const e=n[0],i=n[1];return t[0]=r[0]*e+r[4]*i+r[12],t[1]=r[1]*e+r[5]*i+r[13],t}},Symbol.toStringTag,{value:"Module"}))},39829(t,n,r){r.d(n,{A:()=>P});var e,i=r(5482),s=r(4576),o=r(51447),a=r(4718),u=r(53966),c=r(91429),h=r(5443),l=r(91075),f=r(86738),m=r(16930),M=r(12359),g=r(94078),x=r(95108),d=r(90634),p=r(28735),y=r(56993),b=r(43937);function v(t){return!Array.isArray(t[0])}let P=e=class extends l.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:r}=t;let i=!1,s=!1;for(const t of n)t.hasZ&&(i=!0),t.hasM&&(s=!0);const o={rings:n.map(t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(i&&t.hasZ){const r=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(r)}if(s&&t.hasM){const r=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(r)}return n}),spatialReference:r};return i&&(o.hasZ=!0),s&&(o.hasM=!0),new e(o)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:r,hasZ:e,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:e??=!0,r??=!0;break;case 3:e??=!0!==r,r??=!e;break;default:e??=!1,r??=!1}return i??=m.A.WGS84,{...t,hasM:r,hasZ:e,rings:n,spatialReference:i}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,o.Lx)(u.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const t=(0,M.Ve)(this);return t?f.A.fromJSON(t):null}writeCurveRings(t,n){n.curveRings=(0,a.o8)(t)}get extent(){const t=(0,d.v)(this),{spatialReference:n}=this;return t?new h.A({...t,spatialReference:n}):null}writeRings(t,n){n.rings=(0,a.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,r=n.length;if(v(t)){const e=[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n].toArray();n[r]=e}else n[r]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new e;return t.spatialReference=this.spatialReference,t.rings=(0,a.o8)(this.rings),t.curveRings=(0,a.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,r=t.spatialReference;if(null!=n!=(null!=r))return!1;if(null!=n&&null!=r&&!n.equals(r))return!1;if(this.rings.length!==t.rings.length)return!1;const e=([t,n,r,e],[i,s,o,a])=>t===i&&n===s&&(null==r&&null==o||r===o)&&(null==e&&null==a||e===a);for(let n=0;n<this.rings.length;n++){const r=this.rings[n],i=t.rings[n];if(!(0,s.aI)(r,i,e))return!1}return!0}contains(t){if(!t)return!1;const n=(0,p.Cv)(t,this.spatialReference);return(0,g.m3)(this,null!=n?n:t)}isClockwise(t){const n=v(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,x.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const r=this.rings[t][n],e=this.hasZ,i=this.hasM;return e&&!i?new f.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!e?new f.A(r[0],r[1],void 0,r[2],this.spatialReference):e&&i?new f.A(r[0],r[1],r[2],r[3],this.spatialReference):new f.A(r[0],r[1],this.spatialReference)}insertPoint(t,n,r){return this._validateInputs(t,n,!0)?((0,y.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[t].splice(n,0,r),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const r=new f.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],r=this.spatialReference,e=n.map(t=>new f.A(t,r));return this.notifyChange("rings"),e}setPoint(t,n,r){return this._validateInputs(t,n)?((0,y.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[t][n]=r,this.notifyChange("rings"),this):this}_validateInputs(t,n,r=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const e=this.rings[t];if(r&&(n<0||n>e.length))return!1;if(!r&&(n<0||n>=e.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"cache",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"centroid",null),(0,i.Cg)([(0,c.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],P.prototype,"curveRings",void 0),(0,i.Cg)([(0,b.K)("curveRings")],P.prototype,"writeCurveRings",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],P.prototype,"extent",null),(0,i.Cg)([(0,c.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],P.prototype,"rings",void 0),(0,i.Cg)([(0,b.K)("rings")],P.prototype,"writeRings",null),P=e=(0,i.Cg)([(0,c.$K)("esri.geometry.Polygon")],P),P.prototype.toJSON.isDefaultToJSON=!0},51118(t,n,r){function e(t){const n=[];for(t.reset();t.nextPath();){const r=[];for(;t.nextPoint();){const n=[t.x,t.y];t.hasZ&&n.push(t.z),t.hasM&&n.push(t.m),r.push(n)}n.push(r)}return t.reset(),n}function i(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}r.d(n,{A:()=>i,x:()=>e})},537(t,n,r){r.d(n,{B$:()=>x,LJ:()=>d,Pj:()=>b,Rg:()=>M,Yz:()=>p,z8:()=>g});var e=r(19419),i=r(79567),s=r(52006);function o(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function u(t){return void 0!==t.x&&void 0!==t.y}function c(t){return void 0!==t.paths}function h(t){return void 0!==t.rings}function l(t){return function(n,r){return null==n?r:null==r?n:t(n,r)}}const f=l(Math.min),m=l(Math.max);function M(t,n){return c(n)?p(t,n.curvePaths??n.paths,!1,!1)??t:h(n)?p(t,n.curveRings??n.rings,!1,!1)??t:a(n)?b(t,n.points,!1,!1,!1,!1):o(n)?y(t,n):(u(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function g(t){let n,r,i,s;for(t.reset(),n=i=1/0,r=s=-1/0;t.nextPath();){const e=x(t);n=Math.min(e[0],n),i=Math.min(e[1],i),r=Math.max(e[2],r),s=Math.max(e[3],s)}return(0,e.vt)([n,i,r,s])}function x(t){let n,r,i,s;for(n=i=1/0,r=s=-1/0;t.nextPoint();)n=Math.min(t.x,n),i=Math.min(t.y,i),r=Math.max(t.x,r),s=Math.max(t.y,s);return(0,e.vt)([n,i,r,s])}function d(t,n){return c(n)?p(t,n.curvePaths??n.paths,!0,!1)??t:h(n)?p(t,n.curveRings??n.rings,!0,!1)??t:a(n)?b(t,n.points,!0,!1,!0,!1):o(n)?y(t,n,0,0,!0,!1):(u(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function p(t,n,r,o){const a=r?3:2;if(!n.length||!n[0].length)return null;let u,c,h,l,[M,g]=(0,s.yP)(n[0][0]),x=M,d=g;for(let t=0;t<n.length;t++){const p=n[t];for(let t=0;t<p.length;t++){const n=(0,s.yP)(p[t]),[y,b]=n;if(M=f(M,y),g=f(g,b),x=m(x,y),d=m(d,b),r&&n.length>2){const t=n[2];u=f(u,t),c=m(c,t)}if(o&&n.length>a){const t=n[a];h=f(h,t),l=m(l,t)}const v=p[t];if((0,s.Xq)(v)||t<1)continue;const P=(0,s.yP)(p[t-1]),I=(0,e.fA)(M,g,x,d);[M,g,x,d]=(0,i.e)(I,P,v)}}return r?o?(t[0]=M,t[1]=g,t[2]=u,t[3]=h,t[4]=x,t[5]=d,t[6]=c,t[7]=l,t.length=8,t):(t[0]=M,t[1]=g,t[2]=u,t[3]=x,t[4]=d,t[5]=c,t.length=6,t):o?(t[0]=M,t[1]=g,t[2]=h,t[3]=x,t[4]=d,t[5]=l,t.length=6,t):(t[0]=M,t[1]=g,t[2]=x,t[3]=d,t.length=4,t)}function y(t,n,r,e,i,s){const o=n.xmin,a=n.xmax,u=n.ymin,c=n.ymax;let h=n.zmin,l=n.zmax,f=n.mmin,m=n.mmax;return i?(h=h||0,l=l||0,s?(f=f||0,m=m||0,t[0]=o,t[1]=u,t[2]=h,t[3]=f,t[4]=a,t[5]=c,t[6]=l,t[7]=m,t):(t[0]=o,t[1]=u,t[2]=h,t[3]=a,t[4]=c,t[5]=l,t)):s?(f=f||0,m=m||0,t[0]=o,t[1]=u,t[2]=f,t[3]=a,t[4]=c,t[5]=m,t):(t[0]=o,t[1]=u,t[2]=a,t[3]=c,t)}function b(t,n,r,e,i,s){const o=r?3:2,a=e&&s,u=r&&i;if(!n.length||!n[0].length)return null;let c,h,l,M,[g,x]=n[0],[d,p]=n[0];for(let t=0;t<n.length;t++){const r=n[t],[e,i]=r;if(g=f(g,e),x=f(x,i),d=m(d,e),p=m(p,i),u&&r.length>2){const t=r[2];c=f(c,t),h=m(h,t)}if(a&&r.length>o){const t=r[o];l=f(c,t),M=m(h,t)}}return i?(c=c||0,h=h||0,s?(l=l||0,M=M||0,t[0]=g,t[1]=x,t[2]=c,t[3]=l,t[4]=d,t[5]=p,t[6]=h,t[7]=M,t):(t[0]=g,t[1]=x,t[2]=c,t[3]=d,t[4]=p,t[5]=h,t)):s?(l=l||0,M=M||0,t[0]=g,t[1]=x,t[2]=l,t[3]=d,t[4]=p,t[5]=M,t):(t[0]=g,t[1]=x,t[2]=d,t[3]=p,t)}},12359(t,n,r){r.d(n,{IK:()=>h,TP:()=>l,Ve:()=>a,Z4:()=>s,l8:()=>o,w2:()=>c});var e=r(51118),i=r(95108);function s(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function o(t){return function(t,n){if(!t?.length)return null;const r=[],e=[],s=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let r=0,i=t.length;r<i;r++){const i=u(t[r],n,s);i&&e.push(i)}if(e.sort((t,r)=>{let e=t[2]-r[2];return 0===e&&n&&(e=t[4]-r[4]),e}),e.length&&(r[0]=e[0][0],r[1]=e[0][1],n&&(r[2]=e[0][3]),(r[0]<s[0]||r[0]>s[1]||r[1]<s[2]||r[1]>s[3]||n&&(r[2]<s[4]||r[2]>s[5]))&&(r.length=0)),!r.length){const e=t[0]&&t[0].length?function(t,n){const r=n?[0,0,0]:[0,0],e=n?[0,0,0]:[0,0];let s=0,o=0,a=0,u=0;for(let c=0,h=t.length;c<h-1;c++){const h=t[c],l=t[c+1];if(h&&l){r[0]=h[0],r[1]=h[1],e[0]=l[0],e[1]=l[1],n&&h.length>2&&l.length>2&&(r[2]=h[2],e[2]=l[2]);const t=(0,i.R3)(r,e);if(t){s+=t;const r=(0,i.t9)(h,l);o+=t*r[0],a+=t*r[1],n&&r.length>2&&(u+=t*r[2])}}}return s>0?n?[o/s,a/s,u/s]:[o/s,a/s]:t.length?t[0]:null}(t[0],n):null;if(!e)return null;r[0]=e[0],r[1]=e[1],n&&e.length>2&&(r[2]=e[2])}return r}(t.rings,t.hasZ??!1)}function a(t){const n=o(t);if(!n)return null;const{hasZ:r,spatialReference:e}=t,[i,s,a]=n;return isNaN(i)||isNaN(s)||r&&isNaN(a)?null:{x:i,y:s,z:r?a:void 0,spatialReference:e}}function u(t,n,r){let e=0,i=0,s=0,o=0,a=0;const u=t.length?t[0][0]:0,c=t.length?t[0][1]:0,h=t.length&&n?t[0][2]:0;for(let l=0;l<t.length;l++){const f=t[l],m=t[(l+1)%t.length],[M,g,x]=f,d=M-u,p=g-c,[y,b,v]=m,P=y-u,I=b-c,R=d*I-P*p;if(o+=R,e+=(d+P)*R,i+=(p+I)*R,n&&f.length>2&&m.length>2){const t=x-h,n=v-h,r=d*n-P*t;s+=(t+n)*r,a+=r}M<r[0]&&(r[0]=M),M>r[1]&&(r[1]=M),g<r[2]&&(r[2]=g),g>r[3]&&(r[3]=g),n&&(x<r[4]&&(r[4]=x),x>r[5]&&(r[5]=x))}if(o>0&&(o*=-1),a>0&&(a*=-1),!o)return null;o*=.5,a*=.5;const l=[e/(6*o)+u,i/(6*o)+c,o];return n&&(r[4]===r[5]||0===a?(l[3]=(r[4]+r[5])/2,l[4]=0):(l[3]=s/(6*a)+h,l[4]=a)),l}function c(t,n){let r=0,e=0,i=0;t.nextPoint();const s=t.pathSize?t.x:0,o=t.pathSize?t.y:0;for(let a=0;a<t.pathSize;a++){t.seekInPath(a);const u=[t.x,t.y];t.seekInPath((a+1)%t.pathSize);const c=[t.x,t.y],[h,l]=u,f=h-s,m=l-o,[M,g]=c,x=M-s,d=g-o,p=f*d-x*m;i+=p,r+=(f+x)*p,e+=(m+d)*p,h<n[0]&&(n[0]=h),h>n[1]&&(n[1]=h),l<n[2]&&(n[2]=l),l>n[3]&&(n[3]=l)}return i>0&&(i*=-1),i?(i*=.5,[r/(6*i)+s,e/(6*i)+o,i]):null}function h(t){const{hasZ:n,totalSize:r}=t;if(0===r)return null;const s=[],o=[],a=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=u((0,e.A)(t),t.hasZ,a);n&&o.push(n)}if(o.sort((t,r)=>{let e=t[2]-r[2];return 0===e&&n&&(e=t[4]-r[4]),e}),o.length&&(s[0]=o[0][0],s[1]=o[0][1],n&&(s[2]=o[0][3]),(s[0]<a[0]||s[0]>a[1]||s[1]<a[2]||s[1]>a[3]||n&&(s[2]<a[4]||s[2]>a[5]))&&(s.length=0)),!s.length){t.reset(),t.nextPath();const r=t.pathSize?function(t){const{hasZ:n}=t,r=n?[0,0,0]:[0,0],e=n?[0,0,0]:[0,0];let s=0,o=0,a=0,u=0;if(t.nextPoint()){let c=t.x,h=t.y,l=t.z;for(;t.nextPoint();){const f=t.x,m=t.y,M=t.z;r[0]=c,r[1]=h,e[0]=f,e[1]=m,n&&(r[2]=l,e[2]=M);const g=(0,i.R3)(r,e);if(g){s+=g;const t=(0,i.t9)(r,e);o+=g*t[0],a+=g*t[1],n&&t.length>2&&(u+=g*t[2])}c=f,h=m,l=M}}return s>0?n?[o/s,a/s,u/s]:[o/s,a/s]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!r)return null;s[0]=r[0],s[1]=r[1],n&&r.length>2&&(s[2]=r[2])}return s}function l(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<1e-6){const n=h(t);return n?[n[0],n[1]]:null}const r=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const e=[t.x,t.y];for(t.reset();t.nextPath();)m(r,e,t);return r[0]*=1/n,r[1]*=1/n,r[0]+=e[0],r[1]+=e[1],r}const f=1/3;function m(t,n,r){if(!t||!r||r.pathSize<3)return null;r.nextPoint();const e=r.x,i=r.y;r.nextPoint();let s,o=r.x-e,a=r.y-i,u=0,c=0;for(;r.nextPoint();)u=r.x-e,c=r.y-i,s=.5*f*(u*a-c*o),t[0]+=s*(o+u),t[1]+=s*(a+c),o=u,a=c;const h=r.getCurrentRingArea(),l=[e,i];return l[0]-=n[0],l[1]-=n[1],l[0]*=h,l[1]*=h,t[0]+=l[0],t[1]+=l[1],t}},95108(t,n,r){r.d(n,{$3:()=>c,Ng:()=>o,R3:()=>i,Yl:()=>u,gR:()=>s,m3:()=>l,t9:()=>a});var e=r(4576);function i(t,n){const r=n[0]-t[0],e=n[1]-t[1];if(t.length>2&&n.length>2){const i=t[2]-n[2];return Math.sqrt(r*r+e*e+i*i)}return Math.sqrt(r*r+e*e)}function s(t,n,r,e){const[i,s]=n,[o,a]=r,[u,c]=e,h=u-o,l=c-a,f=h*h+l*l,m=(i-o)*h+(s-a)*l,M=Math.min(1,Math.max(0,m/f));return t[0]=o+h*M,t[1]=a+l*M,t}function o(t,n,r,e,i,s){let o=r,a=e,u=i-o,c=s-a;if(0!==u||0!==c){const r=((t-o)*u+(n-a)*c)/(u*u+c*c);r>1?(o=i,a=s):r>0&&(o+=u*r,a+=c*r)}return u=t-o,c=n-a,u*u+c*c}function a(t,n){return function(t,n,r){const e=t[0]+r*(n[0]-t[0]),i=t[1]+r*(n[1]-t[1]);return t.length>2&&n.length>2?[e,i,t[2]+r*(n[2]-t[2])]:[e,i]}(t,n,.5)}function u(t){const n=t.length;let r=0;for(let e=0;e<n-1;++e)r+=i(t[e],t[e+1]);return r}function c(t,n=0,r=1){let e=0;const i=t.length;let s=t[0];for(let o=1;o<i;o++){const i=t[o];e+=(i[n]-s[n])*(i[r]+s[r]),s=i}if(h(t)){const i=t[0];e+=(i[n]-s[n])*(i[r]+s[r])}return e>=0}function h(t){const n=t.length;return n>0&&!(0,e.aI)(t[0],t[n-1])}function l(t){if("rings"in t)for(const n of t.rings)h(n)&&n.push(n[0].slice())}r(52006)},4305(t,n,r){r.d(n,{B4:()=>u,jK:()=>h,lM:()=>f,m_:()=>l,ty:()=>M});var e=r(34727),i=(r(37585),r(19419)),s=r(15507);const o=[0,0];function a(t){const n=1-t,r=n*n,e=t*t;return[r*n,3*t*r,3*e*n,e*t]}function u(t,n,r,e,i){const[s,o,u,c]=a(i);return[t[0]*s+n[0]*o+r[0]*u+e[0]*c,t[1]*s+n[1]*o+r[1]*u+e[1]*c]}function c(t,n,r,e,i){const[s,o,u,c]=a(i);return t*s+n*o+r*u+e*c}function h(t,n,r){const e=t,[i,a,u]=n.b,c=(0,s.RS)([0,0],e,a,r),h=(0,s.RS)(o,a,u,r),l=(0,s.RS)([0,0],u,i,r),f=(0,s.RS)([0,0],c,h,r),m=(0,s.RS)([0,0],h,l,r);return[{b:[(0,s.RS)([],f,m,r),c,f]},{b:[[...i],m,l]}]}function l(t,n,r){const i=t,[o,a,c]=n.b,h=(0,s.R)(r,[.1,.5,.9],t=>{const n=1-t,[r,e]=u(i,a,c,o,t);return[r,e,3*n*n*(a[0]-i[0])+6*n*t*(c[0]-a[0])+3*t*t*(o[0]-c[0]),3*n*n*(a[1]-i[1])+6*n*t*(c[1]-a[1])+3*t*t*(o[1]-c[1]),6*n*(c[0]-2*a[0]+i[0])+6*t*(o[0]-2*c[0]+a[0]),6*n*(c[1]-2*a[1]+i[1])+6*t*(o[1]-2*c[1]+a[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0;const f=h.map(t=>{const n=u(i,a,c,o,t),[e,s]=n,h=r[0]-e,f=r[1]-s,m=Math.sqrt(h*h+f*f);return l=Math.min(m,l),{t,curvePoint:n,distance:m}}),m=[];for(const t of f){const{t:n,distance:r}=t;(0,e.b6)(r,l)&&!m.some(({t})=>(0,e.Sp)(t,n))&&m.push(t)}return m}function f(t,n,r){const e=n,[s,o,a]=r.b;if((0,i.tK)(t,e),(0,i.tK)(t,s),(0,i.Rj)(t,o[0],o[1])&&(0,i.Rj)(t,a[0],a[1]))return t;for(const n of m(e[0],o[0],a[0],s[0]))n>0&&n<1&&(0,i.nw)(t,c(e[0],o[0],a[0],s[0],n));for(const n of m(e[1],o[1],a[1],s[1]))n>0&&n<1&&(0,i.IO)(t,c(e[1],o[1],a[1],s[1],n));return t}function m(t,n,r,e){const i=3*(3*(n-r)-t+e),s=6*(t-2*n+r),o=3*(n-t);if(0===i)return 0!==s?[-o/s]:[];const a=Math.sqrt(s*s-4*i*o);return[(-s+a)/(2*i),(-s-a)/(2*i)]}function M(t,n,r){let e=0,i=[n];for(let n=0;n<16;n++){let n=t;const o=[];for(const t of i)o.push(...h(n,t,.5)),n=t.b[0];i=o,n=t,e=0;let a=0;for(const t of i){const[r,i,o]=t.b,u=Math.sqrt((0,s.kb)(n,r));e+=(u+(Math.sqrt((0,s.kb)(n,i))+Math.sqrt((0,s.kb)(i,o))+Math.sqrt((0,s.kb)(o,r))))/2,a+=u,n=r}if(e-a<r)return e}return e}},513(t,n,r){r.d(n,{KP:()=>o,X0:()=>h,fM:()=>c,mq:()=>u,zW:()=>l});var e=r(19419),i=r(59803),s=r(15507);class o{constructor(t,n,r,e,i,s){this.cx=t,this.cy=n,this.radius=r,this.thetaStart=e,this.thetaEnd=i,this.isInvalid=s}get startPoint(){const{cx:t,cy:n,radius:r,thetaStart:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}get endPoint(){const{cx:t,cy:n,radius:r,thetaEnd:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}}function a(t,n){const{cx:r,cy:e,radius:i}=t;return[r+i*Math.cos(n),e+i*Math.sin(n)]}function u(t,n){if(t.isInvalid)return(0,s.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:r,thetaEnd:e}=t;return a(t,r*(1-n)+e*n)}function c(t,n){if(t.isInvalid)return(0,i.T)(t.startPoint,t.endPoint,n);const{cx:r,cy:e,thetaStart:o,thetaEnd:u}=t,[c,h]=n,l=(0,s.Pf)((0,s.yN)(o,u),Math.atan2(h-e,c-r)),f=a(t,l);return{t:(l-o)/(u-o),curvePoint:f,distance:Math.sqrt((0,s.kb)(n,f))}}function h(t,n){if(n.isInvalid)return(0,e.tK)(t,n.startPoint),(0,e.tK)(t,n.endPoint),t;const{cx:r,cy:i,radius:o,thetaStart:u,thetaEnd:c}=n;(0,e.tK)(t,a(n,u)),(0,e.tK)(t,a(n,c));const h=(0,s.yN)(u,c),l=Math.PI/2;let f=0;for(const n of[[r+o,i],[r,i+o],[r-o,i],[r,i-o]])f=(0,s.Cp)(h,f),f>h.min&&f<h.max&&(0,e.tK)(t,n),f+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:r,thetaEnd:e}=t;return n*Math.abs(e-r)}},50954(t,n,r){r.d(n,{GX:()=>h,pM:()=>c});var e=r(77690),i=r(29242),s=(r(37585),r(513)),o=r(15507);const a=(0,i.vt)();function u(t,n,r){const[i,s]=t,[u,c]=n,[h,l]=r;(0,e.hZ)(a,i,u,h,s,c,l,1,1,1);const f=(0,e.a4)(a),m=4*f/((0,o.kb)(t,n)+(0,o.kb)(n,r)+(0,o.kb)(r,t));if(!isFinite(m)||Math.abs(m)<1e-8)return null;const M=i**2+s**2,g=u**2+c**2,x=h**2+l**2;(0,e.hZ)(a,M,g,x,s,c,l,1,1,1);const d=(0,e.a4)(a);return(0,e.hZ)(a,M,g,x,i,u,h,1,1,1),[d/f*.5,(0,e.a4)(a)/f*-.5]}function c(t,n){const[r,e]=n.c,i=u(t,e,r),a=null==i,c=i??(0,o.RS)([],t,r,.5),[h,l]=t,[f,m]=e,[M,g]=r,[x,d]=c,p=h-x,y=l-d,b=Math.sqrt(p*p+y*y),v=(0,o.t7)(l-d,h-x),P=(0,o.t7)(m-d,f-x);let I=(0,o.t7)(g-d,M-x);return(P-v)*(I-P)<0&&(I+=2*Math.sign(v-I)*Math.PI),new s.KP(x,d,b,v,I,a)}function h(t,n,r){const e=(0,s.mq)(t,r/2),i=(0,s.mq)(t,r),o=(0,s.mq)(t,(r+1)/2);return[{c:[i,e]},{c:[[...n.c[0]],o]}]}},79567(t,n,r){r.d(n,{e:()=>h});var e=r(19419),i=r(4305),s=r(513),o=r(50954),a=r(52006),u=r(49663),c=r(46068);function h(t,n,r){if((0,a.Xq)(r))return(0,e.tK)(t,n),(0,e.tK)(t,r),t;if((0,a.n1)(r))return(0,i.lM)(t,n,r);if((0,a.aO)(r)){const e=(0,o.pM)(n,r);return(0,s.X0)(t,e)}if((0,a.DA)(r)){const e=(0,u.io)(n,r);return(0,s.X0)(t,e)}return(0,c.DL)(t,n,r)}},52006(t,n,r){function e(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function i(t){return"curveRings"in t?t.curveRings:t.curvePaths}function s(t){return"b"in t}function o(t){return"c"in t}function a(t){return Array.isArray(t)}function u(t){return"a"in t}function c(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function l(t,n){return i(t).flat().some(t=>function(t,n){return!(a(t)||(s(t)?n.has("cubic-bezier"):o(t)?n.has("circular-arc"):!c(t)&&!h(t)||n.has("elliptic-arc")))}(t,n))}function f(t){return a(t)?t:s(t)?t.b[0]:o(t)?t.c[0]:t.a[0]}function m(t){if(s(t)){const[n,r,e]=t.b;return{b:[[...n],[...r],[...e]]}}if(o(t)){const[n,r]=t.c;return{c:[[...n],[...r]]}}if(a(t))return[...t];if(c(t)){const[n,r,e,i]=t.a;return{a:[[...n],[...r],e,i]}}if(h(t)){const[n,r,e,i,s,o,a]=t.a;return{a:[[...n],[...r],e,i,s,o,a]}}return t}r.d(n,{DA:()=>c,Ed:()=>e,FD:()=>i,FG:()=>u,V8:()=>l,Xq:()=>a,aO:()=>o,n1:()=>s,tk:()=>m,wY:()=>h,yP:()=>f}),r(4576)},49663(t,n,r){r.d(n,{io:()=>o,xG:()=>a});var e=r(34727),i=(r(37585),r(513)),s=r(15507);function o(t,n){const[r,o,a,u]=n.a,[c,h]=t,[l,f]=r,[m,M]=o,g=c-m,x=h-M,d=Math.sqrt(g*g+x*x),p=l-m,y=f-M,b=Math.sqrt(p*p+y*y),v=0===d||0===b||!(0,e.b6)(d,b),P=d,[I,R]=(0,s.Gz)((0,s.t7)(h-M,c-m),Math.atan2(f-M,l-m),a,u);return new i.KP(m,M,P,I,R,v)}function a(t,n,r){const{cx:e,cy:s,thetaStart:o,thetaEnd:a}=t,[u,c,h,l]=n.a,f=o*(1-r)+a*r;return[{a:[(0,i.mq)(t,r),[e,s],Math.abs(f-o)<Math.PI?1:0,l]},{a:[[...u],[e,s],Math.abs(a-f)<Math.PI?1:0,l]}]}},46068(t,n,r){r.d(n,{DL:()=>m,ED:()=>l,SW:()=>u,Uk:()=>h,pb:()=>f,xm:()=>M}),r(77690);var e=r(29242),i=(r(37585),r(19419)),s=r(52006),o=r(15507);class a{constructor(t,n,r,e,i,s,o,a,u){this.cx=t,this.cy=n,this.a=r,this.b=e,this.cosR=i,this.sinR=s,this.u1=o,this.u2=a,this.isInvalid=u}}function u(t,n){const[r,e,i,s,u,c,h]=n.a,[l,f]=t,[m,M]=r,[g,x]=e,d=c*h,p=Math.cos(u),y=Math.sin(u),[b,v]=(0,o.Gz)((0,o.t7)(1/d*(f-x)*p-1/d*(l-g)*y,1/c*(f-x)*y+1/c*(l-g)*p),Math.atan2(1/d*(M-x)*p-1/d*(m-g)*y,1/c*(M-x)*y+1/c*(m-g)*p),i,s);return new a(g,x,c,d,p,y,b,v,0===c||0===d)}function c(t,n){const{a:r,b:e,cosR:i,sinR:s,cx:o,cy:a}=t,u=Math.cos(n),c=Math.sin(n);return[r*u*i-e*c*s+o,r*u*s+e*c*i+a]}function h(t,n){const{u1:r,u2:e}=t;return c(t,r*(1-n)+e*n)}function l(t,n,r){if(r<0||r>1)return[];if(0===r||1===r)return[(0,s.tk)(n)];const[e,[i,o],a,u,c,l,f]=n.a,{u1:m,u2:M}=t,g=m*(1-r)+M*r;return[{a:[[...h(t,r)],[i,o],Math.abs(g-m)<Math.PI?1:0,u,c,l,f]},{a:[[...e],[i,o],Math.abs(M-g)<Math.PI?1:0,u,c,l,f]}]}function f(t,n){const{a:r,b:e,cosR:i,sinR:s,u1:a,u2:u}=t,h=Math.PI/6,l=(0,o.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const o=Math.cos(n),a=Math.sin(n),[u,h]=c(t,n);return[u,h,-r*i*a-e*s*o,-r*s*a+e*i*o,-r*i*o+e*s*a,-r*s*o-e*i*a]}),f=(0,o.yN)(a,u),m=new Set(l.map(t=>(0,o.Cp)(f,t)).filter(t=>t>f.min&&t<f.max));m.add(a),m.add(u);let M,g,x=1/0;for(const r of m){const e=c(t,r),[i,s]=e,o=n[0]-i,h=n[1]-s,l=o*o+h*h;l<x&&(M=(r-a)/(u-a),g=e,x=l)}return{t:M,curvePoint:g,distance:Math.sqrt(x)}}function m(t,n,r){const e=u(n,r),{a:s,b:a,u1:h,u2:l,cosR:f,sinR:m,isInvalid:M}=e,g=r.a[0];if((0,i.tK)(t,n),(0,i.tK)(t,g),M)return t;const x=Math.atan2(-a*m,s*f),d=x+Math.PI,p=Math.atan2(a*f,s*m),y=p+Math.PI,b=(0,o.yN)(h,l);for(const n of[x,d,p,y].map(t=>(0,o.Cp)(b,t)))n>b.min&&n<b.max&&(0,i.tK)(t,c(e,n));return t}function M(t,n,r){const[e,i,s,a,l,f,m]=n.a,M=u(t,n),{u1:g,u2:x,isInvalid:d}=M,p=x-g;if(d)return Math.sqrt((0,o.kb)(t,e));const y=[0,0];let b=0,v=[h(M,0),h(M,.25),h(M,.5),h(M,.75),h(M,1)];for(let t=0;t<14;t++){const t=v.length-1,n=p/(2*t),e=[];for(let r=0;r<t;r++)e.push(v[r]),e.push(c(M,g+(2*r+1)*n));e.push(v[v.length-1]),v=e,b=0;let s=0;for(let t=1;t<v.length;t++){const n=v[t-1],r=v[t];if(b+=Math.sqrt((0,o.kb)(n,r)),t>1){const e=v[t-2],a=(0,o.M_)(y,e,n,i,r);s+=a?Math.sqrt((0,o.kb)(n,a)):Math.abs(r[0]-n[0])+Math.abs(r[1]-n[1])}else s+=b}if(s-b<r)return b}return b}(0,e.vt)(),(0,e.vt)(),(0,e.vt)(),(0,e.vt)()},59803(t,n,r){r.d(n,{T:()=>s});var e=r(34727),i=r(15507);function s(t,n,r){const[s,o]=t,[a,u]=n,[c,h]=r,[l,f]=[a-s,u-o];let m=l*(c-s)+f*(h-o);m/=l**2+f**2,m=isNaN(m)?0:(0,e.qE)(m,0,1);const M=(0,i.RS)([0,0],t,n,m);return{t:m,curvePoint:M,distance:Math.sqrt((0,i.kb)(M,r))}}},15507(t,n,r){r.d(n,{Cp:()=>g,Gz:()=>M,M_:()=>u,Pf:()=>x,R:()=>d,RS:()=>s,kb:()=>o,t7:()=>h,yE:()=>a,yN:()=>m});var e=r(34727),i=r(37585);function s(t,n,r,e){return t[0]=n[0]*(1-e)+r[0]*e,t[1]=n[1]*(1-e)+r[1]*e,t}function o(t,n){return(0,i.hG)(t,n)}function a(t,n,r){const e=o(n,r);if(0===e)return o(n,t);const i=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);return i*i/e}function u(t,n,r,e,i){const[s,o]=n,[a,u]=r,[c,h]=e,[l,f]=i,m=(s-a)*(h-f)-(o-u)*(c-l);if(0===m)return null;const M=(s*u-o*a)*(c-l)-(s-a)*(c*f-h*l),g=(s*u-o*a)*(h-f)-(o-u)*(c*f-h*l);return t[0]=M/m,t[1]=g/m,t}const c=2*Math.PI;function h(t,n){const r=Math.atan2(t,n);return r<0?r+c:r}function l(t){return Math.abs(t)%c}function f(t){const n=l(t);return n<Math.PI?n:c-n}function m(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function M(t,n,r,i){if((0,e.Sp)(l(t-n),0))return r?[t,t]:[t,i?t-c:t+c];const[s,o]=i?[t-c,t]:[t,t+c];return[t,g({min:s,max:o},n)]}function g({min:t,max:n},r){let e;return e=n-r,e>=c?(e-=e%c,r+e):(e=r-t,e>=c?(e-=e%c,r-e):r)}function x(t,n){const r=g(t,n);return r>t.min&&r<t.max?r:f(r-t.min)<f(r-t.max)?t.min:t.max}function d(t,n,r,e=10){return n.map(n=>{let i=n;for(let n=0;n<e;n++){const[n,e,s,o,a,u]=r(i),c=t[0]-n,h=t[1]-e,l=-s,f=-o;i+=-(2*c*l+2*h*f)/(2*l*l+2*c*-a+2*f*f+2*h*-u||1e-6)}return i})}},90634(t,n,r){r.d(n,{HA:()=>h,Z3:()=>m,ge:()=>l,v:()=>f});var e=r(537);const i=[];function s(t,n,r,e){return{xmin:t,ymin:n,xmax:r,ymax:e}}function o(t,n,r,e,i,s){return{xmin:t,ymin:n,zmin:r,xmax:e,ymax:i,zmax:s}}function a(t,n,r,e,i,s){return{xmin:t,ymin:n,mmin:r,xmax:e,ymax:i,mmax:s}}function u(t,n,r,e,i,s,o,a){return{xmin:t,ymin:n,zmin:r,mmin:e,xmax:i,ymax:s,zmax:o,mmax:a}}function c(t,n=!1,r=!1){return n?r?u(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):o(t[0],t[1],t[2],t[3],t[4],t[5]):r?a(t[0],t[1],t[2],t[3],t[4],t[5]):s(t[0],t[1],t[2],t[3])}function h(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:r,z:e,m:i}=t,c=null!=i;return null!=e?c?u(n,r,e,i,n,r,e,i):o(n,r,e,n,r,e):c?a(n,r,i,n,r,i):s(n,r,n,r)}(t):function(t){return void 0!==t.rings}(t)?f(t):function(t){return void 0!==t.paths}(t)?m(t):function(t){return void 0!==t.points}(t)?l(t):null:null}function l(t){const{hasZ:n,hasM:r,points:s}=t,o=(0,e.Pj)(i,s,n??!1,r??!1,n??!1,r??!1);return o?c(o,n,r):null}function f(t){const{hasZ:n,hasM:r,rings:s,curveRings:o}=t,a=(0,e.Yz)(i,o??s,n??!1,r??!1);return a?c(a,n,r):null}function m(t){const{hasZ:n,hasM:r,paths:s,curvePaths:o}=t,a=(0,e.Yz)(i,o??s,n??!1,r??!1);return a?c(a,n,r):null}},56993(t,n,r){function e(t,n,r=!1){let{hasM:e,hasZ:i}=t;Array.isArray(n)?4!==n.length||e||i?3===n.length&&r&&!e?(i=!0,e=!1):3===n.length&&e&&i&&(e=!1,i=!1):(e=!0,i=!0):(i=!i&&n.hasZ&&(!e||n.hasM),e=!e&&n.hasM&&(!i||n.hasZ)),t.hasZ=i,t.hasM=e}r.d(n,{h:()=>e})}}]);