@arcgis/core 4.23.0-next.20220123 → 4.23.0-next.20220128

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 (624) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
  5. package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
  6. package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
  7. package/assets/esri/core/workers/chunks/0cd0a6eef51fc5b9ea61.js +1 -0
  8. package/assets/esri/core/workers/chunks/{d1454155ee1b8a421cbb.js → 0d02c6ad1f4688bfa374.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
  10. package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
  11. package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
  12. package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → 17de7a324dfa7f57ad5d.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
  16. package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
  17. package/assets/esri/core/workers/chunks/1c733b7db092a2a88ef3.js +1 -0
  18. package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
  19. package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
  20. package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{b2ae5fc4f787ea568b88.js → 2460f3b6ada6ae900dec.js} +1 -1
  22. package/assets/esri/core/workers/chunks/27474b007988855bea9d.js +1 -0
  23. package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
  24. package/assets/esri/core/workers/chunks/{4d539878bfbd7c549e60.js → 2c8fe9bc988c3c5760a5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/2e899ef5881b4ec6fa55.js +1 -0
  26. package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
  27. package/assets/esri/core/workers/chunks/357033117dfe61eb81ea.js +1 -0
  28. package/assets/esri/core/workers/chunks/37c03cfc19086ce631c6.js +1 -0
  29. package/assets/esri/core/workers/chunks/391e96192d1ec4e55ce2.js +1 -0
  30. package/assets/esri/core/workers/chunks/3c673495e5f507c4a9e5.js +1 -0
  31. package/assets/esri/core/workers/chunks/422537fc3df707bb62c9.js +1 -0
  32. package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
  33. package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
  34. package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{44b01d42d4ec72913229.js → 4954fd86b48cc68b737c.js} +1 -1
  36. package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
  37. package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
  38. package/assets/esri/core/workers/chunks/4be35af7d6babbfe9d84.js +1 -0
  39. package/assets/esri/core/workers/chunks/5457962a70bd3c557a75.js +1 -0
  40. package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
  41. package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
  42. package/assets/esri/core/workers/chunks/57b349d1dbc0bed75b79.js +1 -0
  43. package/assets/esri/core/workers/chunks/5bcb3240b3c005e5fe72.js +1 -0
  44. package/assets/esri/core/workers/chunks/5d11b97b667921d67ae7.js +1 -0
  45. package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
  46. package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
  47. package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
  48. package/assets/esri/core/workers/chunks/{4c9084a04948b6924749.js → 655b55ac0cd533d7e9d7.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
  50. package/assets/esri/core/workers/chunks/{9cdaba126ac7fa5f33f0.js → 6cd5e4380d29b9a3c344.js} +1 -1
  51. package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
  52. package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
  53. package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{64276aacaafa4c8a15bd.js → 7dcf52d3db3903c8eb9f.js} +1 -1
  55. package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
  56. package/assets/esri/core/workers/chunks/{625d2663daa8e0cf64b0.js → 85b1f36790df95b17659.js} +1 -1
  57. package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
  58. package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
  59. package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
  60. package/assets/esri/core/workers/chunks/94515fb3ef38067eeadd.js +1 -0
  61. package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
  62. package/assets/esri/core/workers/chunks/952980635afc7ec81804.js +1 -0
  63. package/assets/esri/core/workers/chunks/9876a1bae350795fab36.js +1 -0
  64. package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
  65. package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
  66. package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
  67. package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
  68. package/assets/esri/core/workers/chunks/aa04b90b82bf70caaae4.js +1 -0
  69. package/assets/esri/core/workers/chunks/aeaa1667c2d9f1b3366b.js +1 -0
  70. package/assets/esri/core/workers/chunks/b2d2de935487257c568b.js +1 -0
  71. package/assets/esri/core/workers/chunks/b3f5e91116112b0b612a.js +1 -0
  72. package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
  73. package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
  74. package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
  75. package/assets/esri/core/workers/chunks/bac9fc90e6756e211160.js +1 -0
  76. package/assets/esri/core/workers/chunks/be588873c16770ceb9ef.js +1 -0
  77. package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
  78. package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
  79. package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
  80. package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
  81. package/assets/esri/core/workers/chunks/c2253a9f29c1aabb2b75.js +1 -0
  82. package/assets/esri/core/workers/chunks/{d39b7983b68d6e5b404d.js → cdbc005eebec1503b99d.js} +1 -1
  83. package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
  84. package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
  85. package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
  86. package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → db3c729ce0c0b2690dc9.js} +1 -1
  87. package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
  88. package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
  89. package/assets/esri/core/workers/chunks/{a7b1b75643ed31489495.js → e0c8d61c7a85ce15499a.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
  91. package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
  92. package/assets/esri/core/workers/chunks/e287f49184d076af17e2.js +1 -0
  93. package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
  94. package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
  95. package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
  96. package/assets/esri/core/workers/chunks/e9e5196b44b6923be1a3.js +1 -0
  97. package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
  98. package/assets/esri/core/workers/chunks/eb82ff10cef2bde6e57f.js +1 -0
  99. package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
  100. package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
  101. package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
  102. package/assets/esri/core/workers/chunks/ee6e0db58dc64410e687.js +1 -0
  103. package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
  104. package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
  105. package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
  106. package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
  107. package/assets/esri/themes/base/_mixins.scss +4 -1
  108. package/assets/esri/themes/base/icons/style.scss +11 -2
  109. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +13 -10
  110. package/assets/esri/themes/base/widgets/_CoordinateConversion.scss +4 -2
  111. package/assets/esri/themes/base/widgets/_Directions.scss +5 -3
  112. package/assets/esri/themes/base/widgets/_Editor.scss +5 -2
  113. package/assets/esri/themes/base/widgets/_ElevationProfile.scss +6 -4
  114. package/assets/esri/themes/base/widgets/_FeatureTable.scss +6 -0
  115. package/assets/esri/themes/base/widgets/_ItemList.scss +1 -1
  116. package/assets/esri/themes/base/widgets/_LayerList.scss +13 -9
  117. package/assets/esri/themes/base/widgets/_Popup.scss +4 -2
  118. package/assets/esri/themes/base/widgets/_Print.scss +24 -11
  119. package/assets/esri/themes/base/widgets/_Search.scss +4 -2
  120. package/assets/esri/themes/base/widgets/_TableList.scss +9 -7
  121. package/assets/esri/themes/base/widgets/_Weather.scss +12 -0
  122. package/assets/esri/themes/base/widgets/_Widget.scss +18 -9
  123. package/assets/esri/themes/dark/main.css +1 -1
  124. package/assets/esri/themes/dark-blue/main.css +1 -1
  125. package/assets/esri/themes/dark-green/main.css +1 -1
  126. package/assets/esri/themes/dark-purple/main.css +1 -1
  127. package/assets/esri/themes/dark-red/main.css +1 -1
  128. package/assets/esri/themes/light/main.css +1 -1
  129. package/assets/esri/themes/light/view.css +1 -1
  130. package/assets/esri/themes/light-blue/main.css +1 -1
  131. package/assets/esri/themes/light-green/main.css +1 -1
  132. package/assets/esri/themes/light-purple/main.css +1 -1
  133. package/assets/esri/themes/light-red/main.css +1 -1
  134. package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
  135. package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
  136. package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
  137. package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
  138. package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
  139. package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
  140. package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
  141. package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
  142. package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
  143. package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
  144. package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
  145. package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
  146. package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
  147. package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
  148. package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
  149. package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
  150. package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
  151. package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
  152. package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
  153. package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
  154. package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
  155. package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
  156. package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
  157. package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
  158. package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
  159. package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
  160. package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
  161. package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
  162. package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
  163. package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
  164. package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
  165. package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
  166. package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
  167. package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
  168. package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
  169. package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
  170. package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
  171. package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
  172. package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
  173. package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
  174. package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
  175. package/chunks/BlendLayers.glsl.js +2 -2
  176. package/chunks/ChapmanAtmosphere.glsl.js +17 -17
  177. package/chunks/CheckerBoard.glsl.js +3 -3
  178. package/chunks/Clouds.glsl.js +2 -2
  179. package/chunks/CloudsComposition.glsl.js +1 -1
  180. package/chunks/ColorMaterial.glsl.js +12 -12
  181. package/chunks/ComponentShader.glsl.js +21 -21
  182. package/chunks/Compositing.glsl.js +1 -1
  183. package/chunks/DefaultMaterial.glsl.js +33 -33
  184. package/chunks/EdgeShaderProgram.glsl.js +7 -7
  185. package/chunks/Fog.glsl.js +10 -12
  186. package/chunks/HUDMaterial.glsl.js +2 -2
  187. package/chunks/HighlightComposition.glsl.js +5 -5
  188. package/chunks/ImageMaterial.glsl.js +6 -6
  189. package/chunks/LaserlinePath.glsl.js +8 -8
  190. package/chunks/LineCallout.glsl.js +6 -6
  191. package/chunks/MeasurementArrow.glsl.js +1 -1
  192. package/chunks/NativeLine.glsl.js +1 -1
  193. package/chunks/Path.glsl.js +5 -5
  194. package/chunks/Pattern.glsl.js +9 -9
  195. package/chunks/PointRenderer.glsl.js +14 -14
  196. package/chunks/Precipitation.glsl.js +91 -0
  197. package/chunks/RealisticTree.glsl.js +21 -21
  198. package/chunks/RibbonLine.glsl.js +11 -11
  199. package/chunks/SMAA.glsl.js +40 -40
  200. package/chunks/ShadedColorMaterial.glsl.js +12 -12
  201. package/chunks/ShadowCast.glsl.js +6 -6
  202. package/chunks/ShadowHighlight.glsl.js +4 -4
  203. package/chunks/SimpleAtmosphere.glsl.js +3 -3
  204. package/chunks/SlicePlaneMaterial.glsl.js +3 -3
  205. package/chunks/Stars.glsl.js +3 -3
  206. package/chunks/Terrain.glsl.js +3 -3
  207. package/chunks/TextureOnly.glsl.js +2 -2
  208. package/chunks/WaterSurface.glsl.js +22 -22
  209. package/chunks/boundedPlane.js +1 -1
  210. package/chunks/pe.js +1 -1
  211. package/chunks/vec3.js +1 -1
  212. package/chunks/vxlLayer.js +1 -1
  213. package/core/accessorSupport/ensureType.js +1 -1
  214. package/core/accessorSupport/get.js +1 -1
  215. package/core/accessorSupport/read.js +1 -1
  216. package/core/accessorSupport/set.js +1 -1
  217. package/core/accessorSupport/watch.js +1 -1
  218. package/core/accessorSupport/write.js +1 -1
  219. package/core/clock.js +1 -1
  220. package/core/jsonMap.js +1 -1
  221. package/core/libs/gl-matrix-2/math/vec3.js +1 -1
  222. package/core/loadAll.js +1 -1
  223. package/core/promiseUtils.js +1 -1
  224. package/core/reactiveUtils.js +1 -1
  225. package/form/ExpressionInfo.js +1 -1
  226. package/geometry/pe.js +1 -1
  227. package/geometry/support/axisAngleDegrees.js +1 -1
  228. package/geometry/support/frustum.js +1 -1
  229. package/geometry/support/plane.js +1 -1
  230. package/interfaces.d.ts +263 -35
  231. package/layers/VectorTileLayer.js +1 -1
  232. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  233. package/layers/graphics/featureConversionUtils.js +1 -1
  234. package/layers/support/LayerContingentValuesCache.js +1 -1
  235. package/layers/support/TileInfo.js +1 -1
  236. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  237. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  238. package/package.json +2 -2
  239. package/popup/content/AttachmentsContent.js +1 -1
  240. package/popup/content/support/mediaInfoTypes.js +1 -1
  241. package/rest/print.js +1 -1
  242. package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
  243. package/support/arcadeOnDemand.js +1 -1
  244. package/support/featureFlags.js +1 -1
  245. package/support/revision.js +1 -1
  246. package/symbols/FillSymbol3DLayer.js +1 -1
  247. package/symbols/IconSymbol3DLayer.js +1 -1
  248. package/symbols/LabelSymbol3D.js +1 -1
  249. package/symbols/ObjectSymbol3DLayer.js +1 -1
  250. package/symbols/PointSymbol3D.js +1 -1
  251. package/symbols/Symbol3D.js +1 -1
  252. package/symbols/WebStyleSymbol.js +1 -1
  253. package/symbols/cim/CIMSymbolHelper.js +1 -1
  254. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  255. package/symbols/cim/cimAnalyzer.js +1 -1
  256. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  257. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  258. package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
  259. package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
  260. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  261. package/symbols/support/Symbol3DIconOutline.js +1 -1
  262. package/symbols/support/Symbol3DOutline.js +1 -1
  263. package/symbols/support/Symbol3DVerticalOffset.js +1 -1
  264. package/symbols/support/Thumbnail.js +1 -1
  265. package/symbols/support/previewCIMSymbol.js +1 -1
  266. package/symbols/support/previewSymbol2D.js +1 -1
  267. package/symbols/support/previewSymbol3D.js +1 -1
  268. package/symbols/support/previewWebStyleSymbol.js +1 -1
  269. package/symbols/support/svgUtils.js +1 -1
  270. package/symbols/support/webStyleSymbolUtils.js +1 -1
  271. package/symbols.js +1 -1
  272. package/views/2d/MapViewConstraints.js +1 -1
  273. package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
  274. package/views/2d/engine/webgl/brushes/raster/BrushRasterBitmap.js +1 -1
  275. package/views/2d/engine/webgl/mesh/templates/WGLFillTemplate.js +1 -1
  276. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  277. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  278. package/views/2d/viewpointUtils.js +1 -1
  279. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  280. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  281. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  282. package/views/3d/environment/CloudsComposition.js +1 -1
  283. package/views/3d/environment/CloudsGenerator.js +1 -1
  284. package/views/3d/environment/CloudsPresets.js +1 -1
  285. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  286. package/views/3d/environment/Fog.glsl.js +1 -1
  287. package/views/3d/environment/Fog.js +1 -1
  288. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  289. package/views/3d/environment/Precipitation.glsl.js +5 -0
  290. package/views/3d/environment/Precipitation.js +5 -0
  291. package/views/3d/environment/PrecipitationTechnique.js +5 -0
  292. package/views/3d/environment/RainyWeather.js +1 -1
  293. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  294. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  295. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  296. package/views/3d/environment/SnowyWeather.js +5 -0
  297. package/views/3d/environment/Stars.glsl.js +1 -1
  298. package/views/3d/environment/Stars.js +1 -1
  299. package/views/3d/environment/weather.js +1 -1
  300. package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
  301. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  302. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  303. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  304. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  305. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  306. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  307. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  308. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  309. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  310. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  311. package/views/3d/layers/GraphicsLayerView3D.js +1 -1
  312. package/views/3d/layers/GraphicsView3D.js +1 -1
  313. package/views/3d/layers/I3SMeshView3D.js +1 -1
  314. package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
  315. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  316. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  317. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  318. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  319. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  320. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  321. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  322. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  323. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  324. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  325. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  326. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  327. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  328. package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
  329. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  330. package/views/3d/layers/graphics/lineUtils.js +1 -1
  331. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  332. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  333. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  334. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  335. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  336. package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
  337. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  338. package/views/3d/layers/support/patternUtils.js +1 -1
  339. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  340. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  341. package/views/3d/support/LaserLineRenderer.js +1 -1
  342. package/views/3d/support/LaserlinePathData.js +1 -1
  343. package/views/3d/support/pointsOfInterest/Focus.js +1 -1
  344. package/views/3d/support/sunUtils.js +1 -1
  345. package/views/3d/terrain/OverlayRenderer.js +1 -1
  346. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  347. package/views/3d/terrain/TerrainRenderer.js +1 -1
  348. package/views/3d/terrain/TerrainSurface.js +1 -1
  349. package/views/3d/terrain/Tile.js +1 -1
  350. package/views/3d/terrain/terrainUtils.js +1 -1
  351. package/views/3d/terrain/tileUtils.js +1 -1
  352. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  353. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  354. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  355. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  356. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  357. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  358. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  359. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  360. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
  361. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
  362. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
  363. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
  364. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  365. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  366. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  367. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  368. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
  369. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
  370. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  371. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
  372. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
  373. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
  374. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  375. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
  376. package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
  377. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
  378. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
  379. package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
  380. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
  381. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  382. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
  383. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
  384. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
  385. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
  386. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
  387. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
  388. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
  389. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
  390. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
  391. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  392. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +22 -14
  393. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +2 -2
  394. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  395. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  396. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
  397. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  398. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  399. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  400. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  401. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  402. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  403. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  404. package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
  405. package/views/3d/webgl-engine/lib/Material.js +1 -1
  406. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  407. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  408. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  409. package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
  410. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  411. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  412. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  413. package/views/3d/webgl-engine/lib/TextRenderer.js +1 -1
  414. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  415. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  416. package/views/3d/{layers/graphics/IGraphics3DFeatureProcessor.js → webgl-engine/lib/TextureUniformName.js} +0 -0
  417. package/views/3d/webgl-engine/lib/UniformName.js +4 -0
  418. package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
  419. package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
  420. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  421. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  422. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  423. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  424. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  425. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  426. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  427. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  428. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  429. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  430. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  431. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  432. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  433. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  434. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  435. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  436. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  437. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  438. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  439. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  440. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  441. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  442. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  443. package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
  444. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  445. package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
  446. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  447. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  448. package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
  449. package/views/3d/webgl-engine/parts/Model.js +1 -1
  450. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  451. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  452. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  453. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  454. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  455. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  456. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  457. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  458. package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
  459. package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
  460. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  461. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  462. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  463. package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
  464. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  465. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  466. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  467. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  468. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  469. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  470. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  471. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  472. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  473. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  474. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  475. package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
  476. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  477. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  478. package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
  479. package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
  480. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  481. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  482. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
  483. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
  484. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
  485. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
  486. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
  487. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
  488. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
  489. package/views/MapView.js +1 -1
  490. package/views/SceneView.js +1 -1
  491. package/views/View.js +1 -1
  492. package/views/input/recognizers/DoubleTapDrag.js +1 -1
  493. package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
  494. package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
  495. package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
  496. package/views/interactive/dragEventPipeline.js +1 -1
  497. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  498. package/views/support/DefaultsFromMap.js +1 -1
  499. package/views/support/WatchUpdatingTracking.js +1 -1
  500. package/views/support/projectionUtils.js +5 -0
  501. package/views/webgl/BufferObject.js +1 -1
  502. package/views/webgl/InstanceCounter.js +1 -1
  503. package/views/webgl/Program.js +1 -1
  504. package/views/webgl/rasterUtils.js +1 -1
  505. package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
  506. package/widgets/Attachments.js +1 -1
  507. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  508. package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
  509. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  510. package/widgets/BasemapGallery.js +1 -1
  511. package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
  512. package/widgets/FeatureForm/InputField.js +1 -1
  513. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  514. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  515. package/widgets/FeatureTable.js +1 -1
  516. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  517. package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
  518. package/widgets/Popup/PopupViewModel.js +1 -1
  519. package/widgets/Popup/actionUtils.js +1 -1
  520. package/widgets/Search/support/locatorUtils.js +1 -1
  521. package/widgets/Search.js +1 -1
  522. package/widgets/Slice/SliceViewModel.js +1 -1
  523. package/widgets/Slider/SliderViewModel.js +1 -1
  524. package/widgets/Slider.js +1 -1
  525. package/widgets/Weather/WeatherViewModel.js +1 -1
  526. package/widgets/Weather/css.js +1 -1
  527. package/widgets/Weather/enums.js +5 -0
  528. package/widgets/Weather.js +1 -1
  529. package/widgets/support/InteractiveAnalysisViewModel.js +1 -1
  530. package/widgets/support/InteractiveToolViewModel.js +1 -1
  531. package/assets/components/assets/calcite-icon/checkSquareF16.json +0 -1
  532. package/assets/components/assets/calcite-icon/checkSquareF24.json +0 -1
  533. package/assets/components/assets/calcite-icon/checkSquareF32.json +0 -1
  534. package/assets/components/assets/calcite-icon/lineSolid4.json +0 -1
  535. package/assets/components/assets/calcite-icon/squareF16.json +0 -1
  536. package/assets/components/assets/calcite-icon/squareF24.json +0 -1
  537. package/assets/components/assets/calcite-icon/squareF32.json +0 -1
  538. package/assets/components/assets/calcite-icon/xHexagon16.json +0 -1
  539. package/assets/components/assets/calcite-icon/xHexagon24.json +0 -1
  540. package/assets/components/assets/calcite-icon/xHexagon32.json +0 -1
  541. package/assets/components/assets/calcite-icon/xHexagonF16.json +0 -1
  542. package/assets/components/assets/calcite-icon/xHexagonF24.json +0 -1
  543. package/assets/components/assets/calcite-icon/xHexagonF32.json +0 -1
  544. package/assets/components/assets/calcite-icon/xOctagonF16.json +0 -1
  545. package/assets/components/assets/calcite-icon/xOctagonF24.json +0 -1
  546. package/assets/components/assets/calcite-icon/xOctagonF32.json +0 -1
  547. package/assets/esri/core/workers/chunks/09da224052976e290828.js +0 -1
  548. package/assets/esri/core/workers/chunks/0bf079e752ab79468478.js +0 -1
  549. package/assets/esri/core/workers/chunks/0c3e3a5baf54bd5e210c.js +0 -1
  550. package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
  551. package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
  552. package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
  553. package/assets/esri/core/workers/chunks/20411bb8e04703962ce6.js +0 -1
  554. package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
  555. package/assets/esri/core/workers/chunks/22b09e276c9b9f22f0f8.js +0 -1
  556. package/assets/esri/core/workers/chunks/23745a5ab47c840dc452.js +0 -1
  557. package/assets/esri/core/workers/chunks/2416f8bf8bbd2ec786ab.js +0 -1
  558. package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
  559. package/assets/esri/core/workers/chunks/2e445a8735ea2adb641a.js +0 -1
  560. package/assets/esri/core/workers/chunks/32f8c4af7e70ebdcb19e.js +0 -1
  561. package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
  562. package/assets/esri/core/workers/chunks/390d9021169e65c10eb8.js +0 -1
  563. package/assets/esri/core/workers/chunks/3a9740dccda6a733313c.js +0 -1
  564. package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
  565. package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
  566. package/assets/esri/core/workers/chunks/43cdff2418325e163420.js +0 -1
  567. package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
  568. package/assets/esri/core/workers/chunks/5383a8f3e4ec1a8a4fcd.js +0 -1
  569. package/assets/esri/core/workers/chunks/5538639a49c7cc2eca63.js +0 -1
  570. package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
  571. package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
  572. package/assets/esri/core/workers/chunks/60371c0f750cde87656d.js +0 -1
  573. package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
  574. package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
  575. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
  576. package/assets/esri/core/workers/chunks/67162b3e2cc1b5dc6818.js +0 -1
  577. package/assets/esri/core/workers/chunks/739e579150bf466d43ae.js +0 -1
  578. package/assets/esri/core/workers/chunks/74df1f3e1e2e524a89d2.js +0 -1
  579. package/assets/esri/core/workers/chunks/76eef4799f6c5fff7e2d.js +0 -1
  580. package/assets/esri/core/workers/chunks/7baf6b1f3f050aa67ae4.js +0 -1
  581. package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
  582. package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
  583. package/assets/esri/core/workers/chunks/8967288145f8fbd20e7d.js +0 -1
  584. package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
  585. package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
  586. package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
  587. package/assets/esri/core/workers/chunks/99a777693e4539f0b03b.js +0 -1
  588. package/assets/esri/core/workers/chunks/9cb2ae42a8e328b1d98d.js +0 -1
  589. package/assets/esri/core/workers/chunks/9d3c58a0ef634d95b7bd.js +0 -1
  590. package/assets/esri/core/workers/chunks/a6ff3db3493543df81bc.js +0 -1
  591. package/assets/esri/core/workers/chunks/a8c13529367c037cdd94.js +0 -1
  592. package/assets/esri/core/workers/chunks/a96afc176041f698c7a1.js +0 -1
  593. package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
  594. package/assets/esri/core/workers/chunks/ac8dca61ade28c542ae2.js +0 -1
  595. package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
  596. package/assets/esri/core/workers/chunks/afa6912454f2a5ffadce.js +0 -1
  597. package/assets/esri/core/workers/chunks/b2beb6e1fd2ee6503830.js +0 -1
  598. package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
  599. package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
  600. package/assets/esri/core/workers/chunks/bab1cfd0a901181622af.js +0 -1
  601. package/assets/esri/core/workers/chunks/be2b7cce79fd41627931.js +0 -1
  602. package/assets/esri/core/workers/chunks/c080114a69fa95b88d22.js +0 -1
  603. package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
  604. package/assets/esri/core/workers/chunks/c13dfdd548dcb1bdb294.js +0 -1
  605. package/assets/esri/core/workers/chunks/c6bd943fe8fd13bb4806.js +0 -1
  606. package/assets/esri/core/workers/chunks/c6f94b92e866b881d9b9.js +0 -1
  607. package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
  608. package/assets/esri/core/workers/chunks/cd7d83d127e085d52584.js +0 -1
  609. package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
  610. package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
  611. package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
  612. package/assets/esri/core/workers/chunks/d52108864136c5a8a618.js +0 -1
  613. package/assets/esri/core/workers/chunks/da1c2873bdbc0956dca0.js +0 -1
  614. package/assets/esri/core/workers/chunks/de03439ca2c9782bf325.js +0 -1
  615. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
  616. package/assets/esri/core/workers/chunks/e079cb1d53aca15b7df2.js +0 -1
  617. package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
  618. package/assets/esri/core/workers/chunks/e6df9839b551569fbc62.js +0 -1
  619. package/assets/esri/core/workers/chunks/e97e986120aaadad7d4c.js +0 -1
  620. package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
  621. package/assets/esri/core/workers/chunks/f678293de9a6d8f5b5db.js +0 -1
  622. package/assets/esri/core/workers/chunks/f8e7755240a94b499e1f.js +0 -1
  623. package/assets/esri/core/workers/chunks/fd3e5d823dc7917f4b8f.js +0 -1
  624. package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8014,36,6006],{1692:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(43697),i=r(66577),s=r(51773),o=r(78223),l=r(15923),a=(r(80442),r(22974)),u=r(92604),c=r(70586),d=r(31263),p=r(1153),h=r(52011);u.Z.getLogger("esri.core.Clonable");const f=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,p.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,n={},i=new Map;for(const e in t){const s=t[e],o=null==r?void 0:r.originOf(e);if(s.readOnly||!1===s.clonable||o!==d.s3.USER&&o!==d.s3.DEFAULTS)continue;const l=this[e];let u=null;const c=s.clonable;u="function"==typeof c?c(l):"reference"===c?l:(0,a.Vo)(l),null!=l&&null==u||(o===d.s3.DEFAULTS?i.set(e,u):n[e]=u)}const s=new(0,Object.getPrototypeOf(this).constructor)(n);if(i.size){var o;const e=null==(o=(0,p.vw)(s))?void 0:o.store;if(e)for(const[t,r]of i)e.set(t,r,d.s3.DEFAULTS)}return s}};return t=(0,n._)([(0,h.j)("esri.core.Clonable")],t),t};let y=class extends(f(l.Z)){};y=(0,n._)([(0,h.j)("esri.core.Clonable")],y);var m=r(96674),g=r(99001),b=r(5600),v=(r(67676),r(75215),r(33955));let _=class extends(f(m.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,g.D)(),configurable:!0})}normalizeCtorArgs(e,t,r,n){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:n}}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),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,c.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes&&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},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{geometry:(0,c.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,c.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,c.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,n){if(!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}};(0,n._)([(0,b.Cb)({value:null})],_.prototype,"attributes",null),(0,n._)([(0,b.Cb)({value:null,types:i.qM,json:{read:v.im}})],_.prototype,"geometry",null),(0,n._)([(0,b.Cb)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"layer",void 0),(0,n._)([(0,b.Cb)({type:s.Z})],_.prototype,"popupTemplate",void 0),(0,n._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,n._)([(0,b.Cb)({value:null,types:o.LB})],_.prototype,"symbol",null),(0,n._)([(0,b.Cb)({type:Boolean,value:!0})],_.prototype,"visible",null),_=(0,n._)([(0,h.j)("esri.Graphic")],_),(_||(_={})).generateUID=g.D;const w=_},57435:(e,t,r)=>{r.d(t,{Z:()=>d});var n=r(43697),i=r(80539),s=r(3920),o=r(70586),l=(r(20102),r(92604),r(26258),r(87538)),a=r(5600),u=(r(67676),r(80442),r(75215),r(52011));let c=class extends((0,s.p)(i.Z)){constructor(e){super(e),this.getCollections=null}initialize(){this.handles.add((0,l.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,o.pC)(this.getCollections)?this.getCollections():null;if((0,o.Wi)(e))return void this.removeAll();let t=0;for(const r of e)(0,o.pC)(r)&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new i.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction?this.itemFilterFunction:e=>!!e;for(const n of t)if(n){if(r(n)){const t=this.indexOf(n,e);t>=0?t!==e&&this.reorder(n,e):this.add(n,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(n);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,n._)([(0,a.Cb)()],c.prototype,"getCollections",void 0),(0,n._)([(0,a.Cb)()],c.prototype,"getChildrenFunction",void 0),(0,n._)([(0,a.Cb)()],c.prototype,"itemFilterFunction",void 0),c=(0,n._)([(0,u.j)("esri.core.CollectionFlattener")],c);const d=c},3920:(e,t,r)=>{r.d(t,{r:()=>c,p:()=>u});var n=r(43697),i=r(15923),s=r(61247),o=r(5600),l=r(52011),a=r(89749);const u=e=>{let t=class extends e{destroy(){var e,t;this.destroyed||(null==(e=this._get("handles"))||e.destroy(),null==(t=this._get("updatingHandles"))||t.destroy())}get handles(){return this._get("handles")||new s.Z}get updatingHandles(){return this._get("updatingHandles")||new a.t}};return(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,n._)([(0,l.j)("esri.core.HandleOwner")],t),t};let c=class extends(u(i.Z)){};c=(0,n._)([(0,l.j)("esri.core.HandleOwner")],c)},16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>_});var n=r(43697),i=r(15923),s=r(70586),o=r(41103),l=r(22974),a=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,l.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const n=this._originStores[r];n&&n.forEach(((n,i)=>{e&&e.has(i)||t.set(i,(0,l.d9)(n),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let n=this._originStores[r];if(n||(n=new Map,this._originStores[r]=n),n.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const n=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),n!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const n=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return n}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],n=r&&r.get(e),i=this._values.get(e);return this._values.set(e,n),this._propertyOriginMap.set(e,t),i!==n}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),d=r(1153),p=r(52011);const h=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,d.vw)(this)),r=t.store,n=new u;t.store=n,(0,o.M)(t,r,n)}read(e,t){(0,c.i)(this,e,t)}getAtOrigin(e,t){const r=f(this),n=(0,a.M9)(t);if("string"==typeof e)return r.get(e,n);const i={};return e.forEach((e=>{i[e]=r.get(e,n)})),i}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return f(this).originOf(e)}revert(e,t){const r=f(this),n=(0,a.M9)(t),i=(0,d.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(n):[e]:e,s.forEach((e=>{i.invalidate(e),r.revert(e,n),i.commit(e)}))}};return t=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function f(e){return(0,d.vw)(e).store}let y=class extends(h(i.Z)){};y=(0,n._)([(0,p.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return b(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,d.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=b(this),r=(0,a.M9)(e),n=t.keys(r);for(const e of n)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=b(this),n=(0,a.M9)(t),i=this.get(e);for(let t=n+1;t<a.kk;++t)r.delete(e,t);r.set(e,i,n)}toJSON(e){return this.write({},e)}};return t=(0,n._)([(0,p.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function b(e){return(0,d.vw)(e).store}const v=e=>{let t=class extends(g(h(e))){constructor(...e){super(...e)}};return t=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],t),t};let _=class extends(v(i.Z)){};_=(0,n._)([(0,p.j)("esri.core.MultiOriginJSONSupport")],_)},36030:(e,t,r)=>{r.d(t,{J:()=>s});var n=r(35454),i=r(5600);function s(e,t={}){var r;const s=e instanceof n.X?e:new n.X(e,t),o={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?s.apiValues:String,json:{type:s.jsonValues,read:(null==t||!t.readOnly)&&{reader:s.read},write:{writer:s.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(o.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(o.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(o.json.name=t.name),(0,i.Cb)(o)}},74085:(e,t,r)=>{function n(e){}r.d(t,{Bg:()=>n}),r(80442)},91460:(e,t,r)=>{function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=i(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{vT:()=>n,on:()=>i,IH:()=>s})},95330:(e,t,r)=>{r.d(t,{e4:()=>I,$6:()=>a,Ue:()=>u,zE:()=>c,dD:()=>w,hh:()=>U,vr:()=>V,Ds:()=>F,as:()=>S,WW:()=>C,R8:()=>_,D_:()=>v,Hc:()=>h,y8:()=>E,fu:()=>m,$F:()=>g,d1:()=>x,DB:()=>O,r9:()=>f,k_:()=>d,H9:()=>y,Yn:()=>P,gx:()=>T,Hl:()=>b});const n=(i=globalThis,{setTimeout:(e,t)=>{const r=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(r)}}});var i,s=r(20102),o=r(91460),l=(r(92604),r(70586));function a(e){return Promise.all(e)}function u(e){return new Promise(((t,r)=>{try{e(t,r)}catch(e){Promise.resolve().then((()=>r(e)))}}))}function c(e="Aborted"){return new s.Z("AbortError",e)}function d(e,t="Aborted"){if(h(e))throw c(t)}function p(e){return(0,l.pC)(e)?"aborted"in e?e:e.signal:e}function h(e){const t=p(e);return(0,l.pC)(t)&&t.aborted}function f(e){if(v(e))throw e}function y(e){if(!v(e))throw e}function m(e,t){const r=p(e);if(!(0,l.Wi)(r)){if(!r.aborted)return(0,o.IH)(r,"abort",(()=>t()));t()}}function g(e,t){const r=p(e);if(!(0,l.Wi)(r))return d(r),(0,o.IH)(r,"abort",(()=>t(c())))}function b(e,t){const r=p(t);return(0,l.Wi)(r)?e:new Promise(((r,n)=>{let i=m(t,(()=>n(c())));const s=()=>i=(0,l.hw)(i);e.then(s,s),e.then(r,n)}))}function v(e){return e&&"AbortError"===e.name}function _(e){return e.catch((e=>{if(!v(e))throw e}))}function w(){let e=null;const t=new Promise(((t,r)=>{e={promise:void 0,resolve:t,reject:r}}));return e.promise=t,e}function S(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return S(t.map((t=>e[t]))).then((e=>{const r={};return t.forEach(((t,n)=>r[t]=e[n])),r}))}const t=e;return u((e=>{const r=[];let n=t.length;0===n&&e(r),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};r.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--n,0===n&&e(r)}))}))}))}function C(e){return S(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function x(e){return Promise.reject(e)}function O(e){return Promise.resolve(e)}function I(e,t,r){const n=new AbortController;return m(r,(()=>n.abort())),new Promise(((r,i)=>{let s=setTimeout((()=>{s=0,r(t)}),e);m(n,(()=>{s&&(clearTimeout(s),i(c()))}))}))}function E(e){return e&&"function"==typeof e.then}function T(e){return E(e)?e:Promise.resolve(e)}function F(e,t=-1){let r,n,i,s,o=null;const a=(...u)=>{if(r){n=u,s&&s.reject(c()),s=w();const e=(0,l.j0)(s.promise);if(o){const e=o;o=null,e.abort()}return e}if(i=s||w(),s=null,t>0){const n=new AbortController;r=T(e(...u,n.signal));const i=r;I(t).then((()=>{r===i&&(s?n.abort():o=n)}))}else r=1,r=T(e(...u));const d=()=>{const e=n;n=i=r=o=null,null!=e&&a(...e)},p=r,h=i;return p.then(d,d),p.then(h.resolve,h.reject),(0,l.j0)(h.promise)};return a}function U(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),i=t=>{e(t)};return i.resolve=t=>e(t),i.reject=e=>t(e),i.timeout=(e,t)=>n.setTimeout((()=>i.reject(t)),e),i.promise=r,i}function V(e,t){let r,n=new AbortController;const i=e(n.signal);let s={promise:i,finished:!1,abort:()=>{n&&(n.abort(),n=null)}};const o=()=>{s&&(s.finished=!0,s=null),(0,l.pC)(r)&&(r.remove(),r=null),n=null};return i.then(o,o),r=m(t,(()=>{(0,l.pC)(s)&&s.abort()})),s}function P(e){return Promise.resolve().then((()=>{d(e)}))}},67900:(e,t,r)=>{r.d(t,{gV:()=>Z,En:()=>C,Z7:()=>F,c9:()=>T,_R:()=>I,qE:()=>P,cM:()=>E,hd:()=>c,ty:()=>x,Jo:()=>M,$C:()=>O}),r(80442);var n=r(35454),i=r(70586),s=r(24678),o=r(82971),l=r(68441),a=r(8744),u=r(58116);const c=39.37,d=l.sv.radius*Math.PI/200,p=/UNIT\[([^\]]+)\]\]$/i,h=u.Z,f=/UNIT\[([^\]]+)\]/i,y=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),m=(0,n.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),g=e=>e*e,b=e=>e*e*e,v={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:g(.001)},"square-centimeters":{inBaseUnits:g(.01)},"square-decimeters":{inBaseUnits:g(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:g(1e3)},"square-inches":{inBaseUnits:g(.0254)},"square-feet":{inBaseUnits:g(.3048)},"square-yards":{inBaseUnits:g(.9144)},"square-miles":{inBaseUnits:g(1609.344)},"square-us-feet":{inBaseUnits:g(1200/3937)},acres:{inBaseUnits:.0015625*g(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*b(.001)},"cubic-centimeters":{inBaseUnits:1e3*b(.01)},"cubic-decimeters":{inBaseUnits:1e3*b(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*b(1e3)},"cubic-inches":{inBaseUnits:1e3*b(.0254)},"cubic-feet":{inBaseUnits:1e3*b(.3048)},"cubic-yards":{inBaseUnits:1e3*b(.9144)},"cubic-miles":{inBaseUnits:1e3*b(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},_=function(){const e={};for(const t in v)for(const r in v[t].units)e[r]=t;return e}();function w(e){const t=_[e];if(t)return t;throw new Error("unknown measure")}function S(e,t=null){return t=t||w(e),v[t].baseUnit===e}function C(e,t,r){if(t===r)return e;const n=w(t);if(n!==w(r))throw new Error("incompatible units");const i=S(t,n)?e:function(e,t,r){return e*v[r].units[t].inBaseUnits}(e,t,n);return S(r,n)?i:function(e,t,r){return e/v[r].units[t].inBaseUnits}(i,r,n)}function x(e,t,r){return C(e,t,"meters")/(r*Math.PI/180)}function O(e){return m.fromJSON(e.toLowerCase())||null}function I(e){if(e&&"object"==typeof e&&!(0,a.N$)(e))return 1;const t=T(e);return t>1e5?1:t}function E(e){return T(e)>=(e instanceof o.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":P(e)}function T(e,t=l.sv.metersPerDegree){return F(e,!0)||t}function F(e,t=!1){let r,n,i=null;if(null!=e&&("object"==typeof e?(r=e.wkid,n=e.wkt):"number"==typeof e?r=e:"string"==typeof e&&(n=e)),r){if((0,a.o$)(r))return l.yr.metersPerDegree;if((0,a.ME)(r))return l.Z1.metersPerDegree;i=h.values[h[r]],!i&&t&&y.has(r)&&(i=d)}else n&&(j(n)?i=U(p.exec(n),i):N(n)&&(i=U(f.exec(n),i)));return i}function U(e,t){return e&&e[1]?V(e[1]):t}function V(e){return parseFloat(e.split(",")[1])}function P(e){let t,r,n=null;if(null!=e&&("object"==typeof e?(t=e.wkid,r=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(r=e)),t)n=h.units[h[t]];else if(r){const e=j(r)?p:N(r)?f:null;if(e){const t=e.exec(r);t&&t[1]&&(n=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let r=t&&t[1];if(!r||-1===h.units.indexOf(r)){const t=V(e);r=null;const n=h.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<1e-7){r=h.units[e];break}}return r}(t[1]))}}return(0,i.pC)(n)?O(n):null}function N(e){return/^GEOCCS/i.test(e)}function j(e){return/^PROJCS/i.test(e)}const R={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},L={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},Z=(0,n.w)()(R),M=(0,n.w)()(L);(0,n.w)()({...R,...L})},17452:(e,t,r)=>{r.d(t,{R9:()=>b,qg:()=>F,tD:()=>N,ZN:()=>pe,fl:()=>he,Ie:()=>ue,sJ:()=>X,AH:()=>W,io:()=>K,L:()=>C,TI:()=>S,vt:()=>le,oh:()=>Z,P$:()=>B,Ml:()=>fe,ed:()=>j,b7:()=>T,D6:()=>M,tm:()=>R,YP:()=>z,jc:()=>H,HK:()=>J,$U:()=>re,oC:()=>ee,kl:()=>q,v_:()=>G,hF:()=>k,_l:()=>Q,PF:()=>D,Fv:()=>$,B7:()=>E,u0:()=>O,Yd:()=>oe,Hu:()=>de,Qj:()=>ae,hO:()=>ne,mN:()=>x});var n=r(68773),i=r(20102),s=r(92604),o=r(70586);const l=s.Z.getLogger("esri.core.urlUtils"),a=n.Z.request,u="esri/config: esriConfig.request.proxyUrl is not set.",c=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,d=/^\s*http:/i,p=/^\s*https:/i,h=/^\s*file:/i,f=/:\d+$/,y=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,m=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class b{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,o.j0)(this.uri.match(m));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,o.j0)(this.authority.match(g)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const v={};let _=new b(n.Z.applicationUrl);let w=function(){const e=(0,o.j0)(_.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${_.scheme}://${_.host}${null!=_.port?`:${_.port}`:""}${t}`}();const S=()=>_,C=()=>w;function x(e){const t={path:null,query:null},r=new b(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=O(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function O(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,i;t<0?(n=decodeURIComponent(e),i=""):(n=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(i):r[n]=i}return r}function I(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function E(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const i=encodeURIComponent(r)+"=",s=t&&t[r];return s?i+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>I(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):I(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function T(e=!1){let t,r=a.proxyUrl;if("string"==typeof e){t=re(e);const n=j(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw l.warn(u),new i.Z("urlutils:proxy-not-set",u);return t&&ie()&&(r=ne(r)),x(r)}function F(e){const t=j(e);let r,n;if(t){const e=V(t.proxyUrl);r=e.path,n=e.query?O(e.query):null}if(r){const t=x(e);e=r+"?"+t.path;const i=E({...n,...t.query});i&&(e=`${e}?${i}`)}return e}const U={path:"",query:""};function V(e){const t=e.indexOf("?");return-1!==t?(U.path=e.slice(0,t),U.query=e.slice(t+1)):(U.path=e,U.query=null),U}function P(e){return(e=se(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=V(e).path),!0)).toLowerCase()}function N(e){const t={proxyUrl:e.proxyUrl,urlPrefix:P(e.urlPrefix)},r=a.proxyRules,n=t.urlPrefix;let i=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;i=e;break}0===t.indexOf(n)&&(i=e+1)}return r.splice(i,0,t),i}function j(e){const t=a.proxyRules,r=P(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function R(e,t){return e=L(e),t=L(t),se(e)===se(t)}function L(e){const t=(e=$(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function Z(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=a.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function M(e,t,r=!1){const n=ce(e),i=ce(t);return!(!r&&n.scheme!==i.scheme)&&null!=n.host&&null!=i.host&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function q(e){if("string"==typeof e){if(!z(e))return!0;e=ce(e)}if(M(e,_))return!0;const t=a.trustedServers||[];for(let r=0;r<t.length;r++){const n=A(t[r]);for(let t=0;t<n.length;t++)if(M(e,n[t]))return!0}return!1}function A(e){return v[e]||(te(e)||ee(e)?v[e]=[new b(k(e))]:v[e]=[new b(`http://${e}`),new b(`https://${e}`)]),v[e]}function k(e,t=w,r){return ee(e)?r&&r.preserveProtocolRelative?e:"http"===_.scheme&&_.authority===B(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(G("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function D(e,t=w,r){if(!z(e))return e;const n=$(e),i=n.toLowerCase(),s=$(t).toLowerCase().replace(/\/+$/,""),o=r?$(r).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==s.indexOf(o))return e;const l=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let a=l(i,"/",i.indexOf("//")+2),u=-1;for(;i.slice(0,a+1)===s.slice(0,a)+"/"&&(u=a+1,a!==i.length);)a=l(i,"/",a+1);if(-1===u)return e;if(o&&u<o.length)return e;e=n.slice(u);const c=s.slice(u-1).replace(/[^/]+/g,"").length;if(c>0)for(let t=0;t<c;t++)e=`../${e}`;else e=`./${e}`;return e}function $(e){return function(e){const t=a.httpsDomains;if(!function(e){return d.test(e)||"http"===_.scheme&&ee(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),f.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===_.scheme&&n===_.authority&&!y.test(e)||(ie()&&n===_.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||ie()&&!j(e))&&(e=ne(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=V(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=k(e=e.trim()))))}function G(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(z(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return h.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function B(e,t=!1){if(H(e)||J(e))return null;let r=e.indexOf("://");if(-1===r&&ee(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function z(e){return ee(e)||te(e)}function H(e){return null!=e&&"blob:"===e.slice(0,5)}function J(e){return"data:"===e.slice(0,5)}function W(e){const t=X(e);if(!t||!t.isBase64)return null;const r=atob(t.data),n=new Uint8Array(r.length);for(let e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Y);if(!t)return null;const[,r,n,i]=t;return{mediaType:r,isBase64:!!n,data:i}}function Q(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function K(e,t){(function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);return r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function ee(e){return null!=e&&void 0!==e&&"/"===e[0]&&"/"===e[1]}function te(e){return c.test(e)}function re(e){return p.test(e)||"https"===_.scheme&&ee(e)}function ne(e){return ee(e)?`https:${e}`:e.replace(d,"https:")}function ie(){return"https"===_.scheme}function se(e,t=!1){return ee(e)?e.slice(2):(e=e.replace(c,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function oe(e){let t=0;if(z(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(null==t||!t.length)return n;const i=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(i,"")}function ae(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&z(e)))return e;const n=e.indexOf("//"),i=e.indexOf("/",n+2),s=e.indexOf(":",n+2),o=Math.min(i<0?e.length:i,s<0?e.length:s);return e.slice(n+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(o)}`}function ce(e){return"string"==typeof e?new b(k(e)):(e.scheme||(e.scheme=_.scheme),e)}function de(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function pe(e,t,r){const n=x(e),i=n.query||{};return i[t]=String(r),`${n.path}?${E(i)}`}function he(e,t){const r=x(e),n=r.query||{};for(const e in t)n[e]=t[e];const i=E(n);return i?`${r.path}?${i}`:r.path}function fe(e){if((0,o.Wi)(e))return null;const t=e.match(ye);return t?t[1]:null}const ye=/.*?\.([^\/]*)$/},43050:(e,t,r)=>{r.d(t,{S1:()=>o,on:()=>d,OY:()=>c,cm:()=>a,N1:()=>l,LR:()=>u,tH:()=>p});var n=r(91460),i=(r(22974),r(95330));const s=/\?(\.|$)/g;function o(e,t,r,n){const i=Array.isArray(t)?t:t.indexOf(",")>-1?t.split(","):[t],o=function(e,t,r,n){return e.watch(t,r,n)}(e,t,r,n);for(const t of i){const n=t.trim().replace(s,"$1"),i=e.get(n);r.call(e,i,i,n,e)}return o}function l(e,t,r,n){return p(e,t,h,r,n)}function a(e,t,r,n){return p(e,t,f,r,n)}function u(e,t,r,n){return p(e,t,y,r,n)}function c(e,t,r,n){return p(e,t,m,r,n)}function d(e,t,r,i,s,l,a){const u={};function c(t){const n=u[t];n&&(l&&l(n.target,t,e,r),n.handle.remove(),delete u[t])}const d=o(e,t,((t,o,l)=>{c(l),(0,n.vT)(t)&&(u[l]={handle:(0,n.on)(t,r,i),target:t},s&&s(t,l,e,r))}),a);return{remove(){d.remove();for(const e in u)c(e)}}}function p(e,t,r,n,s){const o="function"==typeof n?n:null,l="object"==typeof n?n:null;"boolean"==typeof n&&(s=n);let a,u=!1;function c(){a&&(a.remove(),a=null)}const d=(0,i.dD)();(0,i.fu)(l,(()=>{c(),d.reject((0,i.zE)())}));const p={then:d.promise.then.bind(d.promise),catch:d.promise.catch.bind(d.promise),remove:c};return Object.freeze(p),a=function(e,t,r,n,i){const s=e.watch(t,((t,i,s,o)=>{r&&!r(t)||null==n||n.call(e,t,i,s,o)}),i);if(Array.isArray(t))for(const i of t){const s=e.get(i);r&&r(s)&&(null==n||n.call(e,s,s,t,e))}else{const i=e.get(t);r&&r(i)&&(null==n||n.call(e,i,i,t,e))}return s}(e,t,r,((t,r,n,i)=>{u=!0,c(),o&&o.call(e,t,r,n,i),d.resolve({value:t,oldValue:r,propertyName:n,target:i})}),s),u&&c(),p}function h(e){return!!e}function f(e){return!e}function y(e){return!0===e}function m(e){return!1===e}},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var n=r(75215),i=r(6570),s=r(9361),o=r(65091),l=r(13473),a=r(17332),u=r(58901);r(82971),r(86973),r(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:l.Z,polyline:u.Z,polygon:a.Z}};(0,n.N7)(c)},24678:(e,t,r)=>{r.d(t,{GG:()=>l,HQ:()=>a,VY:()=>u,wY:()=>c,Iu:()=>p,e8:()=>h,rS:()=>d});var n=r(82971),i=r(68441),s=r(8744);function o(e){return new n.Z({wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`})}const l=o(i.sv),a=o(i.yr),u=o(i.Z1),c=new n.Z({wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${i.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`});function d(e){return e&&((0,s.BZ)(e)||e===a)?a:e&&((0,s.V2)(e)||e===u)?u:l}function p(e){return e&&((0,s.BZ)(e)||e===a)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function h(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},33955:(e,t,r)=>{r.d(t,{im:()=>y,q9:()=>b,Ji:()=>m,YX:()=>c,aW:()=>d,wp:()=>p,oU:()=>f,l9:()=>h});var n=r(70586),i=r(6570),s=r(9361),o=r(65091),l=r(13473),a=r(17332),u=r(58901);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function d(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function h(e){return void 0!==e.paths}function f(e){return void 0!==e.rings}function y(e){return(0,n.Wi)(e)?null:e instanceof s.Z?e:p(e)?l.Z.fromJSON(e):h(e)?u.Z.fromJSON(e):f(e)?a.Z.fromJSON(e):d(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":h(e)?"esriGeometryPolyline":f(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function b(e){return e&&g[e]||null}},86973:(e,t,r)=>{r.d(t,{Mk:()=>i,P$:()=>s});var n=r(35454);const i=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,n.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>l,qh:()=>a,i8:()=>s,Nv:()=>o});var n=r(80442),i=r(17452);const s="4.23",o={async request(e,t){var n;const{default:s}=await r.e(3172).then(r.bind(r,3172)),o=e.options,l=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===l||"native-request-init"===l?"native-request-init":["blob","json","text"].includes(l)&&null!=(n=(0,i.oh)(e.url))&&n.after?l:"array-buffer";const a=await s(e.url,o),u={data:a.data,ssl:a.ssl};switch(a.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let l;function a(e){l=e}function u(e){const t=l&&l.findCredential(e);return t&&t.token?(0,i.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")||((0,n.Z)("edge")||(0,n.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},42756:(e,t,r)=>{r.r(t),r.d(t,{default:()=>H});var n=r(43697),i=(r(66577),r(80539)),s=r(57435),o=r(70586),l=r(16453),a=r(95330),u=r(17452),c=r(5600),d=(r(67676),r(80442),r(75215)),p=r(71715),h=r(52011),f=r(30556),y=r(82971),m=r(29600),g=r(71612),b=r(38009),v=r(16859),_=r(34760),w=r(72965),S=r(21506),C=r(32448),x=r(96674),O=r(83379),I=r(19153),E=r(43050),T=r(90578),F=r(68773),U=r(40330),V=(r(51773),r(3172)),P=r(22974),N=r(60437),j=r(20322);r(91423),r(74889);const R={esriGeometryPoint:"points",esriGeometryPolyline:"polylines",esriGeometryPolygon:"polygons"};function L(e){const t=e.folders||[],r=t.slice(),n=new Map,i=new Map,s=new Map,o=new Map,l=new Map,a={esriGeometryPoint:i,esriGeometryPolyline:s,esriGeometryPolygon:o};(e.featureCollection&&e.featureCollection.layers||[]).forEach((e=>{const t=(0,P.d9)(e);t.featureSet.features=[];const r=e.featureSet.geometryType;n.set(r,t);const l=e.layerDefinition.objectIdField;"esriGeometryPoint"===r?q(i,l,e.featureSet.features):"esriGeometryPolyline"===r?q(s,l,e.featureSet.features):"esriGeometryPolygon"===r&&q(o,l,e.featureSet.features)})),e.groundOverlays&&e.groundOverlays.forEach((e=>{l.set(e.id,e)})),t.forEach((t=>{t.networkLinkIds.forEach((n=>{const i=function(e,t,r){const n=function(e,t){let r;return t.some((t=>t.id===e&&(r=t,!0))),r}(e,r);return n&&(n.parentFolderId=t,n.networkLink=n),n}(n,t.id,e.networkLinks);i&&r.push(i)}))})),r.forEach((e=>{if(e.featureInfos){e.points=(0,P.d9)(n.get("esriGeometryPoint")),e.polylines=(0,P.d9)(n.get("esriGeometryPolyline")),e.polygons=(0,P.d9)(n.get("esriGeometryPolygon")),e.mapImages=[];for(const t of e.featureInfos)switch(t.type){case"esriGeometryPoint":case"esriGeometryPolyline":case"esriGeometryPolygon":{const r=a[t.type].get(t.id);r&&e[R[t.type]].featureSet.features.push(r);break}case"GroundOverlay":{const r=l.get(t.id);r&&e.mapImages.push(r);break}}e.fullExtent=A([e])}}));const u=A(r);return{folders:t,sublayers:r,extent:u}}function Z(e,t,r,n){const i=U.id&&U.id.findCredential(e);e=(0,u.fl)(e,{token:i&&i.token});const s=F.Z.kmlServiceUrl;return(0,V.default)(s,{query:{url:e,model:"simple",folders:"",refresh:0!==r||void 0,outSR:JSON.stringify(t)},responseType:"json",signal:n})}function M(e,t,r=null,n=[]){const i=[],s={},o=t.sublayers,l=t.folders.map((e=>e.id));return o.forEach((t=>{const o=new e;if(r?o.read(t,r):o.read(t),n.length&&l.indexOf(o.id)>-1&&(o.visible=-1!==n.indexOf(o.id)),s[t.id]=o,null!=t.parentFolderId&&-1!==t.parentFolderId){const e=s[t.parentFolderId];e.sublayers||(e.sublayers=[]),e.sublayers.unshift(o)}else i.unshift(o)})),i}function q(e,t,r){r.forEach((r=>{e.set(r.attributes[t],r)}))}function A(e){const t=(0,N.Ue)(N.Gv),r=(0,N.Ue)(N.Gv);for(const n of e){if(n.polygons&&n.polygons.featureSet&&n.polygons.featureSet.features)for(const e of n.polygons.featureSet.features)(0,j.Yg)(t,e.geometry),(0,N.TC)(r,t);if(n.polylines&&n.polylines.featureSet&&n.polylines.featureSet.features)for(const e of n.polylines.featureSet.features)(0,j.Yg)(t,e.geometry),(0,N.TC)(r,t);if(n.points&&n.points.featureSet&&n.points.featureSet.features)for(const e of n.points.featureSet.features)(0,j.Yg)(t,e.geometry),(0,N.TC)(r,t);if(n.mapImages)for(const e of n.mapImages)(0,j.Yg)(t,e.extent),(0,N.TC)(r,t)}return(0,N.fS)(r,N.Gv)?null:{xmin:r[0],ymin:r[1],zmin:r[2],xmax:r[3],ymax:r[4],zmax:r[5],spatialReference:y.Z.WGS84}}var k,D=r(6570);let $=k=class extends(C.Z.EventedMixin((0,x.eC)(O.Z))){constructor(){super(...arguments),this._sublayersHandles=null,this.description=null,this.id=null,this.networkLink=null,this.title=null,this.sourceJSON=null,this.fullExtent=null}initialize(){(0,E.N1)(this,"networkLink").then((()=>(0,E.LR)(this,"visible"))).then((()=>this.load()))}load(e){if(!this.networkLink)return;if(this.networkLink.viewFormat)return;const t=(0,o.pC)(e)?e.signal:null,r=this._fetchService(this._get("networkLink").href,t).then((e=>{const t=A(e.sublayers);this.fullExtent=D.Z.fromJSON(t),this.sourceJSON=e;const r=(0,d.se)(i.Z.ofType(k),M(k,e));this.sublayers?this.sublayers.addMany(r):this.sublayers=r,this.layer.emit("sublayer-update"),this.layer&&this.layer.notifyChange("visibleSublayers")}));return this.addResolvingPromise(r),Promise.resolve(this)}set sublayers(e){const t=this._get("sublayers");t&&(t.forEach((e=>{e.parent=null,e.layer=null})),this._sublayersHandles.forEach((e=>e.remove())),this._sublayersHandles=null),e&&(e.forEach((e=>{e.parent=this,e.layer=this.layer})),this._sublayersHandles=[e.on("after-add",(({item:e})=>{e.parent=this,e.layer=this.layer})),e.on("after-remove",(({item:e})=>{e.parent=null,e.layer=null}))]),this._set("sublayers",e)}castSublayers(e){return(0,d.se)(i.Z.ofType(k),e)}get visible(){return this._get("visible")}set visible(e){this._get("visible")!==e&&(this._set("visible",e),this.layer&&this.layer.notifyChange("visibleSublayers"))}readVisible(e,t){return!!t.visibility}set layer(e){this._set("layer",e),this.sublayers&&this.sublayers.forEach((t=>t.layer=e))}_fetchService(e,t){return Z(e,this.layer.outSpatialReference,this.layer.refreshInterval,t).then((e=>L(e.data)))}};(0,n._)([(0,c.Cb)()],$.prototype,"description",void 0),(0,n._)([(0,c.Cb)()],$.prototype,"id",void 0),(0,n._)([(0,c.Cb)({readOnly:!0,value:null})],$.prototype,"networkLink",void 0),(0,n._)([(0,c.Cb)({json:{write:{allowNull:!0}}})],$.prototype,"parent",void 0),(0,n._)([(0,c.Cb)({value:null,json:{write:{allowNull:!0}}})],$.prototype,"sublayers",null),(0,n._)([(0,T.p)("sublayers")],$.prototype,"castSublayers",null),(0,n._)([(0,c.Cb)({value:null,json:{read:{source:"name",reader:e=>(0,I.Cb)(e)}}})],$.prototype,"title",void 0),(0,n._)([(0,c.Cb)({value:!0})],$.prototype,"visible",null),(0,n._)([(0,p.r)("visible",["visibility"])],$.prototype,"readVisible",null),(0,n._)([(0,c.Cb)()],$.prototype,"sourceJSON",void 0),(0,n._)([(0,c.Cb)({value:null})],$.prototype,"layer",null),(0,n._)([(0,c.Cb)({type:D.Z})],$.prototype,"fullExtent",void 0),$=k=(0,n._)([(0,h.j)("esri.layers.support.KMLSublayer")],$);const G=$,B=["kml","xml"];let z=class extends((0,g.h)((0,_.Q)((0,w.M)((0,b.q)((0,v.I)((0,l.R)(m.Z))))))){constructor(...e){super(...e),this._visibleFolders=[],this.allSublayers=new s.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.outSpatialReference=y.Z.WGS84,this.path=null,this.legendEnabled=!1,this.operationalLayerType="KML",this.sublayers=null,this.type="kml",this.url=null}initialize(){this.watch("sublayers",((e,t)=>{t&&t.forEach((e=>{e.parent=null,e.layer=null})),e&&e.forEach((e=>{e.parent=this,e.layer=this}))}),!0),this.on("sublayer-update",(()=>this.notifyChange("fullExtent")))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readSublayersFromItemOrWebMap(e,t){this._visibleFolders=t.visibleFolders}readSublayers(e,t,r){return M(G,t,r,this._visibleFolders)}writeSublayers(e,t){const r=[],n=e.toArray();for(;n.length;){const e=n[0];e.networkLink||(e.visible&&r.push(e.id),e.sublayers&&n.push(...e.sublayers.toArray())),n.shift()}t.visibleFolders=r}get title(){const e=this._get("title");return e&&"defaults"!==this.originOf("title")?e:this.url?(0,u.vt)(this.url,B)||"KML":e||""}set title(e){this._set("title",e)}get visibleSublayers(){const e=this.sublayers,t=[],r=e=>{e.visible&&(t.push(e),e.sublayers&&e.sublayers.forEach(r))};return e&&e.forEach(r),t}get fullExtent(){return this._recomputeFullExtent()}load(e){const t=(0,o.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["KML"]},e).catch(a.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}destroy(){super.destroy(),this.allSublayers.destroy()}async _fetchService(e){const t=L((await Promise.resolve().then((()=>this.resourceInfo?{ssl:!1,data:this.resourceInfo}:Z(this.url,this.outSpatialReference,this.refreshInterval,e)))).data);t&&this.read(t,{origin:"service"})}_recomputeFullExtent(){let e=null;(0,o.pC)(this.extent)&&(e=this.extent.clone());const t=r=>{if(r.sublayers)for(const n of r.sublayers.items)t(n),n.visible&&n.fullExtent&&((0,o.pC)(e)?e.union(n.fullExtent):e=n.fullExtent.clone())};return t(this),e}};(0,n._)([(0,c.Cb)({readOnly:!0})],z.prototype,"allSublayers",void 0),(0,n._)([(0,c.Cb)({type:y.Z})],z.prototype,"outSpatialReference",void 0),(0,n._)([(0,c.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],z.prototype,"path",void 0),(0,n._)([(0,c.Cb)({readOnly:!0,json:{read:!1,write:!1}})],z.prototype,"legendEnabled",void 0),(0,n._)([(0,c.Cb)({type:["show","hide","hide-children"]})],z.prototype,"listMode",void 0),(0,n._)([(0,c.Cb)({type:["KML"]})],z.prototype,"operationalLayerType",void 0),(0,n._)([(0,c.Cb)({})],z.prototype,"resourceInfo",void 0),(0,n._)([(0,c.Cb)({type:i.Z.ofType(G),json:{write:{ignoreOrigin:!0}}})],z.prototype,"sublayers",void 0),(0,n._)([(0,p.r)(["web-map","portal-item"],"sublayers",["visibleFolders"])],z.prototype,"readSublayersFromItemOrWebMap",null),(0,n._)([(0,p.r)("service","sublayers",["sublayers"])],z.prototype,"readSublayers",null),(0,n._)([(0,f.c)("sublayers")],z.prototype,"writeSublayers",null),(0,n._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],z.prototype,"type",void 0),(0,n._)([(0,c.Cb)({json:{origins:{"web-map":{read:{source:"title"}}},write:{ignoreOrigin:!0}}})],z.prototype,"title",null),(0,n._)([(0,c.Cb)(S.HQ)],z.prototype,"url",void 0),(0,n._)([(0,c.Cb)({readOnly:!0})],z.prototype,"visibleSublayers",null),(0,n._)([(0,c.Cb)({type:D.Z})],z.prototype,"extent",void 0),(0,n._)([(0,c.Cb)()],z.prototype,"fullExtent",null),z=(0,n._)([(0,h.j)("esri.layers.KMLLayer")],z);const H=z},29600:(e,t,r)=>{r.d(t,{Z:()=>_});var n=r(43697),i=r(68773),s=(r(66577),r(3172)),o=r(20102),l=r(32448),a=r(10699),u=r(83379),c=r(92604),d=r(95330),p=r(17452),h=r(5600),f=(r(67676),r(80442),r(75215),r(52011)),y=r(6570),m=r(82971);let g=0;const b=c.Z.getLogger("esri.layers.Layer");let v=class extends(l.Z.EventedMixin((0,a.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,n=await r.e(3529).then(r.bind(r,63529));try{return await n.fromUrl(t)}catch(e){throw b.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},n=await r.e(4579).then(r.bind(r,44579));try{return await n.fromItem(t)}catch(e){const r=t&&t.portalItem,n=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||i.Z.portalUrl;throw b.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+n+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,d.D_)(e)||c.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,p.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,n._)([(0,h.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n._)([(0,h.Cb)({type:y.Z})],v.prototype,"fullExtent",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n._)([(0,h.Cb)({type:String})],v.prototype,"id",void 0),(0,n._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n._)([(0,h.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n._)([(0,h.Cb)()],v.prototype,"parent",void 0),(0,n._)([(0,h.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n._)([(0,h.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n._)([(0,h.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n._)([(0,h.Cb)({type:m.Z})],v.prototype,"spatialReference",void 0),(0,n._)([(0,h.Cb)({type:String})],v.prototype,"title",void 0),(0,n._)([(0,h.Cb)({type:String,readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n._)([(0,h.Cb)()],v.prototype,"url",void 0),(0,n._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n._)([(0,f.j)("esri.layers.Layer")],v);const _=v},16859:(e,t,r)=>{r.d(t,{I:()=>_});var n=r(43697),i=r(40330),s=r(3172),o=r(66643),l=r(20102),a=r(92604),u=r(70586),c=r(95330),d=r(17452),p=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),f=r(52011),y=r(30556),m=r(65587),g=r(15235),b=r(86082);const v=a.Z.getLogger("esri.layers.mixins.PortalLayer"),_=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const n=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await n.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,c.D_)(e)||v.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==i.id?void 0:i.id.findCredential(this.url):null;if(!t)return!0;const r=w.credential===t?w.user:await this._fetchEditingUser(e);return w.credential=t,w.user=r,(0,u.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const n=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(n)return n;const l=i.id.findServerInfo(this.url);if(null==l||!l.owningSystemUrl)return null;const a=`${l.owningSystemUrl}/sharing/rest`,c=m.Z.getDefault();if(c&&c.loaded&&(0,d.Fv)(c.restUrl)===(0,d.Fv)(a))return c.user;const p=`${a}/community/self`,h=(0,u.pC)(e)?e.signal:null,f=await(0,o.q6)((0,s.default)(p,{authMode:"no-prompt",query:{f:"json"},signal:h}));return f.ok?b.default.fromJSON(f.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,n=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||m.Z.getDefault());return r&&n&&!(0,d.tm)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,n._)([(0,p.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,n._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,n._)([(0,y.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,n._)([(0,p.Cb)()],t.prototype,"resourceReferences",void 0),(0,n._)([(0,p.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,n._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},w={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>g});var n=r(43697),i=r(92604),s=r(95330),o=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(80539),u=(r(20102),r(26258),r(87538));const c=new a.Z,d=new WeakMap;function p(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function h(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:h(t,e%t):0}let f=0,y=0;function m(){const e=Date.now();for(const r of c)if(r.refreshInterval){var t;e-(null!=(t=d.get(r))?t:0)+5>=6e4*r.refreshInterval&&(d.set(r,e),r.refresh(e))}}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of c)t=h(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?d.get(r)||d.set(r,e):d.delete(r);if(t!==y){if(y=t,clearInterval(f),0===y)return void(f=0);f=setInterval(m,y)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){p(e)&&c.push(e)}(this)}),(()=>{}))}destroy(){var e;p(e=this)&&c.includes(e)&&c.remove(e)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{i.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,n._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,n._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,n._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,n._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},1231:(e,t,r)=>{r.d(t,{Z:()=>m});var n,i=r(43697),s=r(35454),o=r(96674),l=r(5600),a=(r(67676),r(80442),r(75215)),u=r(36030),c=r(71715),d=r(52011),p=r(72729),h=r(86719);const f=new s.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=n=class extends o.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?r.value:null}readValueType(e,{description:t}){let r;try{r=JSON.parse(t)}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],y.prototype,"readDescription",null),(0,i._)([(0,l.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],y.prototype,"domain",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i._)([(0,l.Cb)({type:a.z8,json:{write:!0}})],y.prototype,"length",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i._)([(0,u.J)(h.v)],y.prototype,"type",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],y.prototype,"readValueType",null),y=n=(0,i._)([(0,d.j)("esri.layers.support.Field")],y);const m=y},72729:(e,t,r)=>{r.d(t,{im:()=>O,V5:()=>x}),r(80442);var n,i=r(43697),s=r(22974),o=r(5600),l=(r(75215),r(36030)),a=r(52011),u=r(96674);r(67676);let c=n=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,i._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,i._)([(0,a.j)("esri.layers.support.CodedValue")],c);const d=c,p=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,i._)([(0,l.J)(p)],h.prototype,"type",void 0),h=(0,i._)([(0,a.j)("esri.layers.support.Domain")],h);const f=h;var y;let m=y=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,o.Cb)({type:[d],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,i._)([(0,l.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,i._)([(0,a.j)("esri.layers.support.CodedValueDomain")],m);const g=m;var b;r(92604),r(37697);let v=b=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,i._)([(0,l.J)({inherited:"inherited"})],v.prototype,"type",void 0),v=b=(0,i._)([(0,a.j)("esri.layers.support.InheritedDomain")],v);const _=v;var w;let S=w=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],S.prototype,"maxValue",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],S.prototype,"minValue",void 0),(0,i._)([(0,l.J)({range:"range"})],S.prototype,"type",void 0),S=w=(0,i._)([(0,a.j)("esri.layers.support.RangeDomain")],S);const C=S,x={key:"type",base:f,typeMap:{range:S,"coded-value":g,inherited:_}};function O(e){if(!e||!e.type)return null;switch(e.type){case"range":return C.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return _.fromJSON(e)}return null}},86719:(e,t,r)=>{r.d(t,{v:()=>n});const n=new(r(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},35671:(e,t,r)=>{r.d(t,{io:()=>g,AB:()=>m,gd:()=>y,Mu:()=>_,Q0:()=>f,YN:()=>c,UF:()=>p,O5:()=>b,os:()=>w,H7:()=>V,qN:()=>P,Pz:()=>R,Qc:()=>L,vP:()=>D});var n,i,s=r(20102),o=r(78286);(i=n||(n={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var l=r(59266);const a=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],u=["field","normalizationField"];function c(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(d(a,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)d(u,e,t)}function d(e,t,r){if(e)for(const n of e){const e=(0,o.hS)(n,t),i=e&&"function"!=typeof e&&r.get(e);i&&(0,o.RB)(n,i.name,t)}}function p(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const r=t.get(e.startField),n=t.get(e.endField);e.startField=r&&r.name||null,e.endField=n&&n.name||null}else{const r=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=r&&r.name||null,e.endTimeField=n&&n.name||null}}const h=new Set;function f(e,t){return e&&t?(h.clear(),y(h,e,t),Array.from(h).sort()):[]}function y(e,t,r){var n;if(r)if(null!=t&&null!=(n=t.fields)&&n.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const n of r)m(e,t,n);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)e.add(t)}}function m(e,t,r){if("string"==typeof r)if(t){const n=t.get(r);n&&e.add(n.name)}else e.add(r)}async function g(e,t,r){var n;if(!r)return;const{arcadeUtils:i}=await(0,l.LC)(),s=i.extractFieldNames(r,null==t||null==(n=t.fields)?void 0:n.map((e=>e.name)));for(const r of s)m(e,t,r)}function b({displayField:e,fields:t}){return e||(t&&t.length?v(t,"name-or-title")||v(t,"unique-identifier")||v(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function v(e,t){for(const r of e)if(r&&r.valueType&&r.valueType===t)return r.name;return null}async function _(e,t){const{labelingInfo:n,fieldsIndex:i}=t;n&&n.length&&await Promise.all(n.map((t=>async function(e,t,n){if(!n)return;const i=n.getLabelExpression(),o=n.where;if("arcade"===i.type)await g(e,t,i.expression);else{const r=i.expression.match(/{[^}]*}/g);r&&r.forEach((r=>{m(e,t,r.slice(1,-1))}))}await async function(e,t,n){if(n&&"1=1"!==n){const i=(await Promise.all([r.e(1534),r.e(5732)]).then(r.bind(r,41534))).WhereClause.create(n,t);if(!i.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");y(e,t,i.fieldNames)}}(e,t,o)}(e,i,t))))}function w(e){const t=e.defaultValue;return void 0!==t&&F(e,t)?t:e.nullable?null:void 0}function S(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function C(e){return null===e||S(e)}const x="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function O(e){return null===e||x(e)}function I(e){return null!=e&&"string"==typeof e}function E(e){return null===e||I(e)}function T(){return!0}function F(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":r=e.nullable?O:x;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?C:S;break;case"string":case"esriFieldTypeString":r=e.nullable?E:I;break;default:r=T}return 1===arguments.length?r:r(t)}const U=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function V(e){return null!=e&&U.has(e.type)}function P(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var N,j;function R(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function L(e,t){return e.nullable&&null===t?null:V(e)&&!function(e,t){const r="string"==typeof e?Z(e):e;return!!r&&(r.isInteger?x(t)&&t>=r.min&&t<=r.max:t>=r.min&&t<=r.max)}(e.type,Number(t))?N.OUT_OF_RANGE:F(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const r="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<r||+t>i)return n.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return n.INVALID_CODED_VALUE}return null}(e.domain,t):null:j.INVALID_TYPE}function Z(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return M;case"esriFieldTypeInteger":case"integer":return q;case"esriFieldTypeSingle":case"single":return A;case"esriFieldTypeDouble":case"double":return k}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(N||(N={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(j||(j={}));const M={min:-32768,max:32767,isInteger:!0},q={min:-2147483648,max:2147483647,isInteger:!0},A={min:-34e37,max:12e37,isInteger:!1},k={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function D(e,t,r){switch(e){case n.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case n.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case j.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case N.OUT_OF_RANGE:{const{min:e,max:n}=Z(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}},12501:(e,t,r)=>{r.r(t),r.d(t,{default:()=>O});var n,i=r(43697),s=r(22303),o=r(3172),l=r(20102),a=r(22974),u=r(92604),c=r(13867),d=r(70586),p=r(95330),h=r(19153),f=r(5600),y=(r(75215),r(52011)),m=r(30556),g=r(35671),b=r(5499),v=r(12571),_=r(59266),w=r(17386);const S=u.Z.getLogger("esri.renderers.DictionaryRenderer"),C={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};let x=n=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._ongoingRequests=new Map,this._symbolCache=new c.Z(100),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,r,n){null!=n&&n.origin||super.writeVisualVariables(e,t,r,n)}clone(){return new n({config:(0,a.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,a.d9)(this.fieldMap),url:(0,a.d9)(this.url),visualVariables:(0,a.d9)(this.visualVariables)})}async getSymbolAsync(e,t){let r;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{r=await this._dictionaryPromise}catch(e){if((0,p.D_)(e))return this._dictionaryPromise=null,null}const n={};if(this.fieldMap)for(const t of this._symbolFields){const r=this.fieldMap[t];if(r&&null!==e.attributes[r]&&void 0!==e.attributes[r]){const i=""+e.attributes[r];n[t]=i}else n[t]=""}const i=r(n,t);if(!i||"string"!=typeof i)return null;const o=(0,h.hP)(i).toString(),l=this._symbolCache.get(o);if(l)return l.catch((()=>{this._symbolCache.pop(o)})),l;const a=i.split(";"),u=[],c=[];for(const e of a)if(e&&0!==e.length)if(-1===e.indexOf("po:"))if(-1!==e.indexOf("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){u.push(t);break}}else this._itemNames.has(e)&&u.push(e);else{const t=e.substr(3).split("|");if(3===t.length){const e=t[0],r=t[1];let n=t[2];if("DashTemplate"===r)n=n.split(" ").map((e=>Number(e)));else if("Color"===r){const e=new s.Z(n).toRgba();n=[e[0],e[1],e[2],255*e[3]]}else n=Number(n);c.push({primitiveName:e,propertyName:r,value:n})}}const f=!(0,d.pC)(e.geometry)||!e.geometry.hasZ&&"point"===e.geometry.type,y=this._cimPartsToCIMSymbol(u,c,f,t);return this._symbolCache.put(o,y,1),y}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,g.io)(e,t,this.scaleExpression);for(const r in this.fieldMap){const n=this.fieldMap[r];t.has(n)&&e.add(n)}}get arcadeRequired(){return!0}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void S.error("no valid URL!");const t=(0,d.pC)(e)?e.abortOptions:null,r=(0,o.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...t}),[{data:n}]=await Promise.all([r,(0,_.LC)()]);if(!n)throw this._dictionaryPromise=null,new l.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const i=n.expression,s=n.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+n.cimRefTemplateUrl,this._itemNames=new Set(n.itemsNames),this._symbolFields=s.symbol;const a={};if(this.config){const e=this.config;for(const t in e)a[t]=e[t]}if(s.configuration)for(const e of s.configuration)a.hasOwnProperty(e.name)||(a[e.name]=e.value);const u=[];if((0,d.pC)(e)&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const r=this.fieldMap[t],n=e.fields.filter((e=>e.name===r));n.length>0&&u.push({...n[0],name:t})}return this._dictionaryPromise=(0,_.pp)(i,(0,d.pC)(e)?e.spatialReference:null,u,a).then((e=>{const t={scale:0};return(r,n)=>{const i=e.repurposeFeature({geometry:null,attributes:r});return t.scale=(0,d.pC)(n)?n.scale:void 0,e.evaluate({$feature:i,$view:t})}})).catch((e=>(S.error("Creating dictinoary expression failed:",e),null))),this._dictionaryPromise}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._symbolFields}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const r=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),n=(0,o.default)(r,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,n);try{return(await n).data}catch(t){return this._ongoingRequests.delete(e),Promise.reject(t)}}_combineSymbolParts(e,t,r){if(!e||0===e.length)return null;const n={...e[0]};if(e.length>1){n.symbolLayers=[];for(const t of e){const e=t;n.symbolLayers.unshift(...e.symbolLayers)}}return r&&(n.callout=C),{type:"CIMSymbolReference",symbol:n,primitiveOverrides:t}}async _cimPartsToCIMSymbol(e,t,r,n){const i=new Array(e.length);for(let t=0;t<e.length;t++)i[t]=this._getSymbolPart(e[t],n);const s=await Promise.all(i);return new w.Z({data:this._combineSymbolParts(s,t,r)})}};(0,i._)([(0,f.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],x.prototype,"config",void 0),(0,i._)([(0,f.Cb)({type:Object,json:{write:!0}})],x.prototype,"fieldMap",void 0),(0,i._)([(0,f.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],x.prototype,"scaleExpression",void 0),(0,i._)([(0,m.c)("scaleExpression")],x.prototype,"writeData",null),(0,i._)([(0,f.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],x.prototype,"scaleExpressionTitle",void 0),(0,i._)([(0,f.Cb)({type:String,json:{write:!0}})],x.prototype,"url",void 0),(0,i._)([(0,m.c)("visualVariables")],x.prototype,"writeVisualVariables",null),x=n=(0,i._)([(0,y.j)("esri.renderers.DictionaryRenderer")],x);const O=x},95088:(e,t,r)=>{r.d(t,{Z:()=>T});var n,i=r(43697),s=r(22303),o=r(22974),l=r(44422),a=r(75215),u=r(36030),c=r(5600),d=r(52011),p=r(35671),h=r(5499),f=r(12571),y=r(96674),m=r(92604),g=(r(67676),r(80442),r(90578));const b=m.Z.getLogger("esri.renderers.support.AttributeColorInfo");let v=n=class extends y.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(b.error(".field: field must be a string value"),null):(0,a.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new n({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,i._)([(0,c.Cb)({type:s.Z,json:{type:[Number],write:!0}})],v.prototype,"color",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"field",void 0),(0,i._)([(0,g.p)("field")],v.prototype,"castField",null),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpression",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpressionTitle",void 0),v=n=(0,i._)([(0,d.j)("esri.renderers.support.AttributeColorInfo")],v);const _=v;var w;let S=w=class extends y.wq{constructor(){super(...arguments),this.unit=null}clone(){return new w({unit:this.unit})}};(0,i._)([(0,c.Cb)({type:String,json:{write:!0}})],S.prototype,"unit",void 0),S=w=(0,i._)([(0,d.j)("esri.renderers.support.DotDensityLegendOptions")],S);const C=S;var x,O=r(20256),I=r(4095);let E=x=class extends((0,f.W)(h.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new s.Z([0,0,0,0]),this.blendDots=!0,this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new I.Z,this.dotValue=null,this.referenceDotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new O.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes&&this.attributes.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new x({attributes:(0,o.d9)(this.attributes),backgroundColor:(0,o.d9)(this.backgroundColor),dotBlendingEnabled:(0,o.d9)(this.dotBlendingEnabled),dotShape:(0,o.d9)(this.dotShape),dotSize:(0,o.d9)(this.dotSize),dotValue:(0,o.d9)(this.dotValue),legendOptions:(0,o.d9)(this.legendOptions),outline:(0,o.d9)(this.outline),referenceScale:(0,o.d9)(this.referenceScale),visualVariables:(0,o.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes.map((e=>e.field||e.valueExpression||""))}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const r of this.attributes)r.valueExpression&&await(0,p.io)(e,t,r.valueExpression),r.field&&e.add(r.field)}};(0,i._)([(0,c.Cb)({type:[_],json:{write:!0}})],E.prototype,"attributes",void 0),(0,i._)([(0,c.Cb)({type:s.Z,json:{write:!0}})],E.prototype,"backgroundColor",void 0),(0,i._)([(0,c.Cb)({type:Boolean}),(0,l.B)("dotBlendingEnabled")],E.prototype,"blendDots",void 0),(0,i._)([(0,c.Cb)({type:Boolean,json:{write:!0}})],E.prototype,"dotBlendingEnabled",void 0),(0,i._)([(0,c.Cb)({type:String,json:{write:!1}})],E.prototype,"dotShape",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!1}})],E.prototype,"dotSize",void 0),(0,i._)([(0,c.Cb)({type:C,json:{write:!0}})],E.prototype,"legendOptions",void 0),(0,i._)([(0,c.Cb)({type:I.Z,json:{default:null,write:!0}})],E.prototype,"outline",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],E.prototype,"dotValue",void 0),(0,i._)([(0,c.Cb)({type:Number}),(0,l.B)("dotValue")],E.prototype,"referenceDotValue",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],E.prototype,"referenceScale",void 0),(0,i._)([(0,c.Cb)({type:Number,json:{write:!0}})],E.prototype,"seed",void 0),(0,i._)([(0,u.J)({dotDensity:"dot-density"})],E.prototype,"type",void 0),E=x=(0,i._)([(0,d.j)("esri.renderers.DotDensityRenderer")],E);const T=E},79056:(e,t,r)=>{r.d(t,{Z:()=>g});var n,i=r(43697),s=r(22303),o=r(22974),l=r(5600),a=(r(75215),r(36030)),u=r(52011),c=r(35671),d=r(5499),p=r(96674);r(67676),r(80442);let h=n=class extends p.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new n({color:this.color,ratio:this.ratio})}};(0,i._)([(0,l.Cb)({type:s.Z,json:{write:!0}})],h.prototype,"color",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],h.prototype,"ratio",void 0),h=n=(0,i._)([(0,u.j)("esri.renderers.support.HeatmapColorStop")],h);const f=h;var y;let m=y=class extends d.Z{constructor(e){super(e),this.blurRadius=10,this.colorStops=[new f({ratio:0,color:new s.Z("rgba(255, 140, 0, 0)")}),new f({ratio:.75,color:new s.Z("rgba(255, 140, 0, 1)")}),new f({ratio:.9,color:new s.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.maxPixelIntensity=100,this.minPixelIntensity=0,this.type="heatmap"}async collectRequiredFields(e,t){const r=this.field;r&&"string"==typeof r&&(0,c.AB)(e,t,r)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new y({blurRadius:this.blurRadius,colorStops:(0,o.d9)(this.colorStops),field:this.field,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity})}};(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],m.prototype,"blurRadius",void 0),(0,i._)([(0,l.Cb)({type:[f],json:{write:!0}})],m.prototype,"colorStops",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"field",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:null==r})}}})],m.prototype,"fieldOffset",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],m.prototype,"maxPixelIntensity",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{write:!0}})],m.prototype,"minPixelIntensity",void 0),(0,i._)([(0,a.J)({heatmap:"heatmap"})],m.prototype,"type",void 0),m=y=(0,i._)([(0,u.j)("esri.renderers.HeatmapRenderer")],m);const g=m},84382:(e,t,r)=>{r.d(t,{Z:()=>h});var n,i=r(43697),s=r(22974),o=r(5600),l=(r(75215),r(36030)),a=r(52011),u=r(5499),c=r(12571),d=r(9833);let p=n=class extends((0,c.W)(u.Z)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map((r=>r.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new n({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,s.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i._)([(0,o.Cb)(d.G)],p.prototype,"symbol",void 0),(0,i._)([(0,l.J)({simple:"simple"})],p.prototype,"type",void 0),p=n=(0,i._)([(0,a.j)("esri.renderers.SimpleRenderer")],p);const h=p},91423:(e,t,r)=>{r.d(t,{a:()=>l});var n=r(20941),i=r(63213),s=r(32400);const o=(0,i.d)({types:s.A});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(r&&r.messages&&r.messages.push(new n.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):o(e,t,r):null}},99282:(e,t,r)=>{r.d(t,{a:()=>s});var n=r(67900),i=r(68441);const s={inches:(0,n.En)(1,"meters","inches"),feet:(0,n.En)(1,"meters","feet"),"us-feet":(0,n.En)(1,"meters","us-feet"),yards:(0,n.En)(1,"meters","yards"),miles:(0,n.En)(1,"meters","miles"),"nautical-miles":(0,n.En)(1,"meters","nautical-miles"),millimeters:(0,n.En)(1,"meters","millimeters"),centimeters:(0,n.En)(1,"meters","centimeters"),decimeters:(0,n.En)(1,"meters","decimeters"),meters:(0,n.En)(1,"meters","meters"),kilometers:(0,n.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,n.ty)(1,"meters",i.sv.radius)}},32400:(e,t,r)=>{r.d(t,{A:()=>c,o:()=>d});var n=r(16050),i=r(12501),s=r(95088),o=r(79056),l=r(5499),a=r(84382),u=r(30687);const c={key:"type",base:l.Z,typeMap:{heatmap:o.Z,simple:a.Z,"unique-value":u.Z,"class-breaks":n.Z,"dot-density":s.Z,dictionary:i.default},errorContext:"renderer"},d={key:"type",base:l.Z,typeMap:{simple:a.Z,"unique-value":u.Z,"class-breaks":n.Z},errorContext:"renderer"}},51706:(e,t,r)=>{var n,i;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?n.Expression:e.field&&"string"==typeof e.field?n.Field:n.Unknown}function a(e,t){const r=t||l(e),s=e.valueUnit||"unknown";return r===n.Unknown?i.Constant:e.stops?i.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?i.ClampedLinear:"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?i.Proportional:i.Additive:i.Identity:i.RealWorldSize}r.d(t,{RY:()=>n,hL:()=>i,PS:()=>l,QW:()=>a,iY:()=>s,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(n||(n={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(i||(i={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>S,Lq:()=>f,Km:()=>y,cM:()=>m,ap:()=>g,V3:()=>_,B3:()=>h});var n=r(22303),i=r(1692),s=r(74085),o=r(92604),l=r(70586),a=r(99282),u=r(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),d=new i.Z,p=Math.PI,h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function f(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.ColorVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const s="number"==typeof t,o=s?null:t,a=o&&o.attributes;let u=s?t:null;const d=i.field,{ipData:p,hasExpression:h}=i.cache;let f=i.cache.compiledFunc;if(!d&&!h){const e=i.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(h){if(!(0,l.pC)(r)||!(0,l.pC)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),s=t.createExecContext(o,n);if(!f){const e=t.createSyntaxTree(i.valueExpression);f=t.createFunction(e),i.cache.compiledFunc=f}u=t.executeFunction(f,s)}else a&&(u=a[d]);const y=i.normalizationField,m=a?parseFloat(a[y]):void 0;if(null!=u&&(!y||s||!isNaN(m)&&0!==m)){isNaN(m)||s||(u/=m);const e=w(u,p);if(e){const t=e[0],s=e[1],o=t===s?i.stops[t].color:n.Z.blendColors(i.stops[t].color,i.stops[s].color,e[2],(0,l.pC)(r)?r.color:void 0);return new n.Z(o)}}}function y(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.OpacityVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const i="number"==typeof t,s=i?null:t,o=s&&s.attributes;let a=i?t:null;const u=n.field,{ipData:d,hasExpression:p}=n.cache;let h=n.cache.compiledFunc;if(!u&&!p){const e=n.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof a)if(p){if((0,l.Wi)(r)||(0,l.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),o=t.createExecContext(s,i);if(!h){const e=t.createSyntaxTree(n.valueExpression);h=t.createFunction(e),n.cache.compiledFunc=h}a=t.executeFunction(h,o)}else o&&(a=o[u]);const f=n.normalizationField,y=o?parseFloat(o[f]):void 0;if(null!=a&&(!f||i||!isNaN(y)&&0!==y)){isNaN(y)||i||(a/=y);const e=w(a,d);if(e){const t=e[0],r=e[1];if(t===r)return n.stops[t].opacity;{const i=n.stops[t].opacity;return i+(n.stops[r].opacity-i)*e[2]}}}}function m(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.RotationVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const i=n.axis||"heading",s="heading"===i&&"arithmetic"===n.rotationType?90:0,o="heading"===i&&"arithmetic"===n.rotationType?-1:1,a="number"==typeof t?null:t,u=a&&a.attributes,d=n.field,{hasExpression:p}=n.cache;let h=n.cache.compiledFunc,f=0;if(!d&&!p)return f;if(p){if((0,l.Wi)(r)||(0,l.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),s=t.createExecContext(a,i);if(!h){const e=t.createSyntaxTree(n.valueExpression);h=t.createFunction(e),n.cache.compiledFunc=h}f=t.executeFunction(h,s)}else u&&(f=u[d]||0);return f="number"!=typeof f||isNaN(f)?null:s+o*f,f}function g(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.SizeVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const i=function(e,t,r,n,i){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,n){return e+(b(t.minSize,r,n)||t.minDataValue)}(e,t,r,n);case u.hL.Constant:return function(e,t,r){const n=e.stops;let i=n&&n.length&&n[0].size;return null==i&&(i=e.minSize),b(i,t,r)}(t,r,n);case u.hL.ClampedLinear:return function(e,t,r,n){const i=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),s=b(t.minSize,r,n),o=b(t.maxSize,r,n),a=(0,l.pC)(n)?n.shape:void 0;if(e<=t.minDataValue)return s;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&a){const e="circle"===a,t=e?p*(s/2)**2:s*s,r=t+i*((e?p*(o/2)**2:o*o)-t);return e?2*Math.sqrt(r/p):Math.sqrt(r)}return s+i*(o-s)}(e,t,r,n);case u.hL.Proportional:return function(e,t,r,n){const i=(0,l.pC)(n)?n.shape:void 0,s=e/t.minDataValue,o=b(t.minSize,r,n),a=b(t.maxSize,r,n);let u=null;return u="circle"===i?2*Math.sqrt(s*(o/2)**2):"square"===i||"diamond"===i||"image"===i?Math.sqrt(s*o**2):s*o,v(u,o,a)}(e,t,r,n);case u.hL.Stops:return function(e,t,r,n,i){const[s,o,l]=w(e,i);if(s===o)return b(t.stops[s].size,r,n);{const e=b(t.stops[s].size,r,n);return e+(b(t.stops[o].size,r,n)-e)*l}}(e,t,r,n,i);case u.hL.RealWorldSize:return function(e,t,r,n){const i=((0,l.pC)(n)&&n.resolution?n.resolution:1)*a.a[t.valueUnit],s=b(t.minSize,r,n),o=b(t.maxSize,r,n),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/p)/i:"radius"===u||"distance"===u?2*e/i:e/i,v(c,s,o)}(e,t,r,n);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const n="number"==typeof t,i=n?null:t,s=i&&i.attributes;let o=n?t:null;const{isScaleDriven:a}=e.cache;let d=e.cache.compiledFunc;if(a){const t=(0,l.pC)(r)?r.scale:void 0,n=(0,l.pC)(r)?r.view:void 0;o=null==t||"3d"===n?function(e){let t=null,r=null;const n=e.stops;return n?(t=n[0].value,r=n[n.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!n)switch(e.inputValueType){case u.RY.Expression:{if((0,l.Wi)(r)||(0,l.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},n=r.arcade.arcadeUtils,s=n.getViewInfo(t),a=n.createExecContext(i,s);if(!d){const t=n.createSyntaxTree(e.valueExpression);d=n.createFunction(t),e.cache.compiledFunc=d}o=n.executeFunction(d,a);break}case u.RY.Field:s&&(o=s[e.field]);break;case u.RY.Unknown:o=null}if(!(0,u.qh)(o))return null;if(n||!e.normalizationField)return o;const p=s?parseFloat(s[e.normalizationField]):null;return(0,u.qh)(p)&&0!==p?o/p:null}(n,t,r),n,t,r,n.cache.ipData);return null==i||isNaN(i)?0:i}function b(e,t,r){return null==e?null:(0,u.iY)(e)?g(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function _(e,t,r){const{isScaleDriven:n}=e.cache;if(!(n&&"3d"===r||t))return null;const i={scale:t,view:r};let s=b(e.minSize,d,i),o=b(e.maxSize,d,i);if(null!=s||null!=o){if(s>o){const e=o;o=s,s=e}return{minSize:s,maxSize:o}}}function w(e,t){if(!t)return;let r=0,n=t.length-1;return t.some(((t,i)=>e<t?(n=i,!0):(r=i,!1))),[r,n,(e-t[r])/(t[n]-t[r])]}function S(e,t,r){const n=["proportional","proportional","proportional"];for(const i of e){const e=i.useSymbolValue?"symbol-value":g(i,t,r);switch(i.axis){case"width":n[0]=e;break;case"depth":n[1]=e;break;case"height":n[2]=e;break;case"width-and-depth":n[0]=e,n[1]=e;break;case"all":case void 0:case null:n[0]=e,n[1]=e,n[2]=e;break;default:(0,s.Bg)(i.axis)}}return n}},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n,i=r(43697),s=r(66577),o=r(1692),l=r(35454),a=r(96674),u=r(22974),c=r(70586),d=r(5600),p=(r(75215),r(71715)),h=r(52011),f=r(30556),y=r(82971),m=r(33955),g=r(1231);const b=new l.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends a.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=y.Z.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const i=e[t],s=o.Z.fromJSON(i),l=i.geometry&&i.geometry.spatialReference;(0,c.pC)(s.geometry)&&!l&&(s.geometry.spatialReference=r),n.push(s)}return n}writeGeometryType(e,t,r,n){if(e)return void b.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(e&&(0,c.pC)(e.geometry))return void b.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,m.im)(e);return!r&&t.spatialReference&&(n.spatialReference=y.Z.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,c.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e&&e[r];n.geometry=t&&t.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((i-e)/r)));for(let e=0,t=s.length;e<t;e++)o((0,c.Wg)(s[e].geometry))||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[s,o]}=r,l=this._getHydrationFunction(e,(e=>e*s+n),(e=>i-e*o));for(const{geometry:e}of t)(0,c.pC)(e)&&l(e);return this.transform=null,this}_quantizePoints(e,t,r){let n,i;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===n&&o===i||(s.push([e-n,o-i]),n=e,i=o)}else n=t(l[0]),i=r(l[1]),s.push([n,i])}return s.length>0?s:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,m.oU)(e)?e.rings:e.paths,i=[];for(let e=0,s=n.length;e<s;e++){const s=n[e],o=this._quantizePoints(s,t,r);o&&i.push(o)}return i.length>0?((0,m.oU)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const n=(0,m.oU)(e)?e.rings:e.paths;let i,s;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(i+=n[0],s+=n[1]):(i=n[0],s=n[1]),n[0]=t(i),n[1]=r(s)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const n=e.points;let i,s;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(i+=o[0],s+=o[1]):(i=o[0],s=o[1]),o[0]=t(i),o[1]=r(s)}}:void 0}};(0,i._)([(0,d.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,i._)([(0,d.Cb)({type:[o.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,i._)([(0,p.r)("features")],v.prototype,"readFeatures",null),(0,i._)([(0,d.Cb)({type:[g.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,i._)([(0,d.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:b.read}}})],v.prototype,"geometryType",void 0),(0,i._)([(0,f.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,i._)([(0,d.Cb)({types:s.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,i._)([(0,p.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,i._)([(0,d.Cb)({type:y.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i._)([(0,f.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,i._)([(0,d.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,i._)([(0,h.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v},59266:(e,t,r)=>{r.d(t,{mz:()=>c,pp:()=>u,WW:()=>l,Yi:()=>a,LC:()=>o}),r(66577);var n=r(70586),i=r(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([r.e(9490),r.e(6690)]).then(r.bind(r,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const l=(e,t,r)=>c.create(e,t,r,null,["$feature"]),a=(e,t,r)=>c.create(e,t,r,null,["$feature","$view"]),u=(e,t,r,n)=>c.create(e,t,r,n,["$feature","$view"]);class c{constructor(e,t,r,n,i,s,o,l){this.script=e,this.evaluate=i;const a=Array.isArray(o)?o:o.fields;this.fields=a,this._syntaxTree=n,this._arcade=t,this._arcadeDictionary=r,this._arcadeFeature=s,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,s,l,a){const{arcade:u,Feature:d,Dictionary:p}=await o(),h=i.Z.fromJSON(t),f=u.parseScript(e,a),y=l.reduce(((e,t)=>({...e,[t]:null})),{});let m=null;(0,n.pC)(s)&&(m=new p(s),m.immutable=!0,y.$config=null);const g=u.scriptUsesGeometryEngine(f)&&u.enableGeometrySupport(),b=u.scriptUsesFeatureSet(f)&&u.enableFeatureSetSupport(),v=u.scriptIsAsync(f)&&u.enableAsyncSupport(),_={vars:y,spatialReference:h,useAsync:!!v},w=new p;w.immutable=!1,w.setField("scale",0);const S=u.compileScript(f,_);return await Promise.all([g,b,v]),new c(e,u,p,f,(e=>("$view"in e&&e.$view&&(w.setField("scale",e.$view.scale),e.$view=w),m&&(e.$config=m),S({vars:e,spatialReference:h}))),new d,r,h)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89749:(e,t,r)=>{r.d(t,{t:()=>d});var n=r(43697),i=r(15923),s=r(61247),o=r(70586),l=r(17445),a=r(1654),u=r(5600),c=r(52011);let d=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new s.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,r={}){const n=++this.handleId;r.sync||this._installSyncUpdatingWatch(e,n);const i=(0,l.YP)(e,t,r);return this.handles.add(i,n),{remove:()=>this.handles.remove(n)}}addOnCollectionChange(e,t,{initial:r=!1}={}){const n=++this.handleId;return this.handles.add([(0,l.on)(e,"after-changes",this._createSyncUpdatingCallback(),l.Z_),(0,l.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0})],n),{remove:()=>this.handles.remove(n)}}addPromise(e){if((0,o.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(p)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const r=()=>this.handles.remove(t);return e.then(r,r),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}_installSyncUpdatingWatch(e,t){const r=this._createSyncUpdatingCallback(),n=(0,l.YP)(e,r,{sync:!0,equals:()=>!1});return this.handles.add(n,t),n}_createSyncUpdatingCallback(){return()=>{this.handles.remove(p),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,a.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(p))})),p)}}};(0,n._)([(0,u.Cb)({readOnly:!0})],d.prototype,"updating",void 0),d=(0,n._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],d);const p=-42;var h,f;(f=h||(h={}))[f.NONE=0]="NONE",f[f.SYNC=1]="SYNC",f[f.INIT=2]="INIT"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8961],{82397:(e,t,n)=>{n.d(t,{vY:()=>l,J9:()=>f,U1:()=>g,Ie:()=>d,G6:()=>m});var r=n(70586);n(33955);const o=(e,t,n)=>[t,n],s=(e,t,n)=>[t,n,e[2]],i=(e,t,n)=>[t,n,e[2],e[3]];function l(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],translate:(0,r.pC)(e.extent)?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function c({scale:e,translate:t},n){return n*e[0]+t[0]}function u({scale:e,translate:t},n){return t[1]-n*e[1]}function h(e,t,n){const r=new Array(n.length);if(!n.length)return r;const[o,s]=e.scale;let i=c(e,n[0][0]),l=u(e,n[0][1]);r[0]=t(n[0],i,l);for(let e=1;e<n.length;e++){const c=n[e];i+=c[0]*o,l-=c[1]*s,r[e]=t(c,i,l)}return r}function a(e,t,n){const r=new Array(n.length);for(let o=0;o<n.length;o++)r[o]=h(e,t,n[o]);return r}function f(e,t,n,l,c){return(0,r.pC)(n)&&(t.points=function(e,t,n,r){return h(e,n?r?i:s:r?s:o,t)}(e,n.points,l,c)),t}function g(e,t,n,o,s){return(0,r.Wi)(n)||(t.x=c(e,n.x),t.y=u(e,n.y),t!==n&&(o&&(t.z=n.z),s&&(t.m=n.m))),t}function d(e,t,n,l,c){return(0,r.pC)(n)&&(t.rings=function(e,t,n,r){return a(e,n?r?i:s:r?s:o,t)}(e,n.rings,l,c)),t}function m(e,t,n,l,c){return(0,r.pC)(n)&&(t.paths=function(e,t,n,r){return a(e,n?r?i:s:r?s:o,t)}(e,n.paths,l,c)),t}},70272:(e,t,n)=>{n.d(t,{nd:()=>i,ZP:()=>o,S6:()=>s});var r=n(70586);class o{constructor(e=null,t={},n,r){this.geometry=e,this.attributes=t,this.centroid=n,this.objectId=r,this.displayId=0,this.geohashX=0,this.geohashY=0}weakClone(){const e=new o(this.geometry,this.attributes,this.centroid,this.objectId);return e.displayId=this.displayId,e.geohashX=this.geohashX,e.geohashY=this.geohashY,e}}function s(e){return!((0,r.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)}class i extends o{}},44876:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(){this.objectIdFieldName=null,this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new r;return e.objectIdFieldName=this.objectIdFieldName,e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},5428:(e,t,n)=>{n.d(t,{Z:()=>r});class r{constructor(e=[],t=[],n=!1){this.lengths=null!=e?e:[],this.coords=null!=t?t:[],this.hasIndeterminateRingOrder=n}get isPoint(){return 0===this.lengths.length}get maxLength(){return Math.max(...this.lengths)}get size(){return this.lengths.reduce(((e,t)=>e+t))}forEachVertex(e){let t=0;this.lengths.length||e(this.coords[0],this.coords[1]);for(let n=0;n<this.lengths.length;n++){const r=this.lengths[n];for(let n=0;n<r;n++)e(this.coords[2*(n+t)],this.coords[2*(n+t)+1]);t+=r}}clone(e){return e?(e.set(this.coords),new r(this.lengths.slice(),e,this.hasIndeterminateRingOrder)):new r(this.lengths.slice(),this.coords.slice(),this.hasIndeterminateRingOrder)}}},98732:(e,t,n)=>{n.d(t,{XA:()=>U,h_:()=>X,Yn:()=>$,GH:()=>O,Uy:()=>W,EI:()=>A,cn:()=>_,di:()=>S,Iv:()=>q,fQ:()=>G,eG:()=>L,J6:()=>R,oB:()=>se,zj:()=>Q,$:()=>ee,lz:()=>oe,RZ:()=>B,Nh:()=>H,Jd:()=>I,IN:()=>b,hY:()=>ne,lM:()=>J,$g:()=>te});var r=n(20102),o=n(92604),s=n(70586),i=n(33955),l=n(70272),c=n(44876),u=n(5428);function h(e,t){return e?t?4:3:t?3:2}const a=o.Z.getLogger("esri.layers.graphics.featureConversionUtils"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0},g=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s},d=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+2]},m=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+3]},y=(e,t,n,r,o,s)=>{e[n]=o,e[n+1]=s,e[n+2]=t[r+2],e[n+3]=t[r+3]};function p(e,t,n,r){if(e){if(n)return t&&r?y:d;if(t&&r)return m}else if(t&&r)return d;return g}function I({scale:e,translate:t},n){return Math.round((n-t[0])/e[0])}function b({scale:e,translate:t},n){return Math.round((t[1]-n)/e[1])}function w({scale:e,translate:t},n){return n*e[0]+t[0]}function Z({scale:e,translate:t},n){return t[1]-n*e[1]}function G(e,t,n){return e?t?n?C(e):P(e):n?F(e):M(e):null}function M(e){const t=e.coords;return{x:t[0],y:t[1]}}function N(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e}function P(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2]}}function T(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e}function F(e){const t=e.coords;return{x:t[0],y:t[1],m:t[2]}}function x(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.m,e}function C(e){const t=e.coords;return{x:t[0],y:t[1],z:t[2],m:t[3]}}function k(e,t){return e.coords[0]=t.x,e.coords[1]=t.y,e.coords[2]=t.z,e.coords[3]=t.m,e}function j(e,t){return e&&t?k:e?T:t?x:N}function q(e,t,n){if((0,s.Wi)(e))return null;const r=h(t,n),o=[];for(let t=0;t<e.coords.length;t+=r){const n=[];for(let o=0;o<r;o++)n.push(e.coords[t+o]);o.push(n)}return t?n?{points:o,hasZ:t,hasM:n}:{points:o,hasZ:t}:n?{points:o,hasM:n}:{points:o}}function v(e,t,n=h(t.hasZ,t.hasM)){e.lengths[0]=t.points.length;const r=e.coords;let o=0;for(const e of t.points)for(let t=0;t<n;t++)r[o++]=e[t];return e}function R(e,t,n){if(!e)return null;const r=h(t,n),{coords:o,lengths:s}=e,i=[];let l=0;for(const e of s){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(o[l++]);t.push(e)}i.push(t)}return t?n?{paths:i,hasZ:t,hasM:n}:{paths:i,hasZ:t}:n?{paths:i,hasM:n}:{paths:i}}function z(e,t,n=h(t.hasZ,t.hasM)){const{lengths:r,coords:o}=e;let s=0;for(const e of t.paths){for(const t of e)for(let e=0;e<n;e++)o[s++]=t[e];r.push(e.length)}return e}function L(e,t,n){if(!e)return null;const r=h(t,n),{coords:o,lengths:s}=e,i=[];let l=0;for(const e of s){const t=[];for(let n=0;n<e;n++){const e=[];for(let t=0;t<r;t++)e.push(o[l++]);t.push(e)}i.push(t)}return t?n?{rings:i,hasZ:t,hasM:n}:{rings:i,hasZ:t}:n?{rings:i,hasM:n}:{rings:i}}function W(e,t,n=t.hasZ,r=t.hasM){return function(e,t,n,r){const o=h(n,r),{lengths:s,coords:i}=e;let l=0;s.length=i.length=0;for(const e of t){for(const t of e)for(let e=0;e<o;e++)i[l++]=t[e];s.push(e.length)}}(e,t.rings,n,r),e}const Y=[],E=[];function U(e,t,n,r,o){Y[0]=e;const[s]=$(E,Y,t,n,r,o);return Y.length=E.length=0,s}function $(e,t,n,o,i,c){if(e.length=0,!n){for(const n of t){const t=n.attributes[c];e.push(new l.ZP(null,n.attributes,null,t))}return e}switch(n){case"esriGeometryPoint":return function(e,t,n,r,o){const s=j(n,r);for(const n of t){const{geometry:t,attributes:r}=n;let i;t&&(i=s(new u.Z,t)),e.push(new l.ZP(i,r,null,r[o]))}return e}(e,t,o,i,c);case"esriGeometryMultipoint":return function(e,t,n,r,o){const s=h(n,r);for(const n of t){const t=n.geometry,r=n.attributes;let i;t&&(i=v(new u.Z,t,s)),e.push(new l.ZP(i,r,null,r[o]))}return e}(e,t,o,i,c);case"esriGeometryPolyline":return function(e,t,n,r,o){const s=h(n,r);for(const n of t){const t=n.geometry,r=n.attributes;let i;t&&(i=z(new u.Z,t,s)),e.push(new l.ZP(i,r,null,r[o]))}return e}(e,t,o,i,c);case"esriGeometryPolygon":return function(e,t,n,r,o){for(const i of t){const t=i.geometry,c=i.centroid,h=i.attributes;let a;t&&(a=W(new u.Z,t,n,r)),(0,s.pC)(c)?e.push(new l.ZP(a,h,N(new u.Z,c),h[o])):e.push(new l.ZP(a,h,null,h[o]))}return e}(e,t,o,i,c);default:a.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`)),e.length=0}return e}function A(e,t,n,r){E[0]=e,V(Y,E,t,n,r);const o=Y[0];return Y.length=E.length=0,o}function O(e,t,n){if((0,s.Wi)(e))return null;const o=new u.Z;return"hasZ"in e&&null==t&&(t=e.hasZ),"hasM"in e&&null==n&&(n=e.hasM),(0,i.wp)(e)?j(null!=t?t:null!=e.z,null!=n?n:null!=e.m)(o,e):(0,i.oU)(e)?W(o,e,t,n):(0,i.l9)(e)?z(o,e,h(t,n)):(0,i.aW)(e)?v(o,e,h(t,n)):void a.error("convertFromGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${e}'`))}function S(e,t,n,o){const i=e&&("coords"in e?e:e.geometry);if((0,s.Wi)(i))return null;switch(t){case"esriGeometryPoint":{let e=M;return n&&o?e=C:n?e=P:o&&(e=F),e(i)}case"esriGeometryMultipoint":return q(i,n,o);case"esriGeometryPolyline":return R(i,n,o);case"esriGeometryPolygon":return L(i,n,o);default:return void a.error("convertToGeometry:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${t}'`))}}function V(e,t,n,o,i){if(e.length=0,(0,s.Wi)(n))return function(e,t){for(const n of t)e.push({attributes:n.attributes});return e}(e,t);switch(n){case"esriGeometryPoint":return function(e,t,n,r){let o=M;n&&r?o=C:n?o=P:r&&(o=F);for(const n of t){const{geometry:t,attributes:r}=n,i=(0,s.pC)(t)?o(t):null;e.push({attributes:r,geometry:i})}return e}(e,t,o,i);case"esriGeometryMultipoint":return function(e,t,n,r){for(const o of t){const{geometry:t,attributes:s}=o;let i;t&&(i=q(t,n,r)),e.push({attributes:s,geometry:i})}return e}(e,t,o,i);case"esriGeometryPolyline":return function(e,t,n,r){for(const o of t){const{geometry:t,attributes:i}=o;let l;(0,s.pC)(t)&&(l=R(t,n,r)),e.push({attributes:i,geometry:l})}return e}(e,t,o,i);case"esriGeometryPolygon":return function(e,t,n,r){for(const o of t){const{geometry:t,attributes:i,centroid:l}=o;let c;if((0,s.pC)(t)&&(c=L(t,n,r)),l){const t=M(l);e.push({attributes:i,centroid:t,geometry:c})}else e.push({attributes:i,geometry:c})}return e}(e,t,o,i);default:a.error("convertToFeatureSet:unknown-geometry",new r.Z(`Unable to parse unknown geometry type '${n}'`))}return e}function _(e){const{objectIdFieldName:t,spatialReference:n,transform:r,fields:o,hasM:s,hasZ:i,features:l,geometryType:c,exceededTransferLimit:u,uniqueIdField:h,queryGeometry:a,queryGeometryType:f}=e,g={features:V([],l,c,i,s),fields:o,geometryType:c,objectIdFieldName:t,spatialReference:n,uniqueIdField:h,queryGeometry:S(a,f,!1,!1)};return r&&(g.transform=r),u&&(g.exceededTransferLimit=u),s&&(g.hasM=s),i&&(g.hasZ=i),g}function X(e,t){const n=new c.Z,{hasM:o,hasZ:s,features:i,objectIdFieldName:l,spatialReference:u,geometryType:h,exceededTransferLimit:f,transform:g,fields:d}=e;return d&&(n.fields=d),n.geometryType=h,n.objectIdFieldName=l||t,n.spatialReference=u,n.objectIdFieldName?(i&&$(n.features,i,h,s,o,n.objectIdFieldName),f&&(n.exceededTransferLimit=f),o&&(n.hasM=o),s&&(n.hasZ=s),g&&(n.transform=g),n):(a.error(new r.Z("optimized-features:invalid-objectIdFieldName","objectIdFieldName is missing")),n)}function J(e){const{transform:t,features:n,hasM:r,hasZ:o}=e;if(!t)return e;for(const e of n)(0,s.pC)(e.geometry)&&te(e.geometry,e.geometry,r,o,t),e.centroid&&te(e.centroid,e.centroid,r,o,t);return e.transform=null,e}function B(e,t){const{geometryType:n,features:r,hasM:o,hasZ:s}=t;if(!e)return t;for(let t=0;t<r.length;t++){const i=r[t],l=i.weakClone();l.geometry=new u.Z,H(l.geometry,i.geometry,o,s,n,e),i.centroid&&(l.centroid=new u.Z,H(l.centroid,i.centroid,o,s,"esriGeometryPoint",e)),r[t]=l}return t.transform=e,t}function H(e,t,n,r,o,i,l=n,c=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),(0,s.Wi)(t)||!t.coords.length)return null;const u=f[o],{coords:a,lengths:g}=t,d=h(n,r),m=h(n&&l,r&&c),y=p(n,r,l,c);if(!g.length)return y(e.coords,a,0,0,I(i,a[0]),b(i,a[1])),e.lengths.length&&(e.lengths.length=0),e.coords.length=d,e;let w,Z,G,M,N=0,P=0,T=P;for(const t of g){if(t<u)continue;let n=0;P=T,G=w=I(i,a[N]),M=Z=b(i,a[N+1]),y(e.coords,a,P,N,G,M),n++,N+=d,P+=m;for(let r=1;r<t;r++,N+=d)G=I(i,a[N]),M=b(i,a[N+1]),G===w&&M===Z||(y(e.coords,a,P,N,G-w,M-Z),P+=m,n++,w=G,Z=M);n>=u&&(e.lengths.push(n),T=P)}return e.coords.length=T,e.coords.length?e:null}function Q(e,t,n,r,o,s,i=n,l=r){if(e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0),!t||!t.coords.length)return null;const c=f[o],{coords:u,lengths:a}=t,g=h(n,r),d=h(n&&i,r&&l),m=p(n,r,i,l);if(!a.length)return m(e.coords,u,0,0,u[0],u[1]),e.lengths.length&&(e.lengths.length=0),e.coords.length=g,e;let y=0;const I=s*s;for(const t of a){if(t<c){y+=t*g;continue}const n=e.coords.length/d,r=y,o=y+(t-1)*g;m(e.coords,u,e.coords.length,r,u[r],u[r+1]),K(e.coords,u,g,I,m,r,o),m(e.coords,u,e.coords.length,o,u[o],u[o+1]);const s=e.coords.length/d-n;s>=c?e.lengths.push(s):e.coords.length=n*d,y+=t*g}return e.coords.length?e:null}function D(e,t,n,r){const o=e[t],s=e[t+1],i=e[n],l=e[n+1],c=e[r],u=e[r+1];let h=i,a=l,f=c-h,g=u-a;if(0!==f||0!==g){const e=((o-h)*f+(s-a)*g)/(f*f+g*g);e>1?(h=c,a=u):e>0&&(h+=f*e,a+=g*e)}return f=o-h,g=s-a,f*f+g*g}function K(e,t,n,r,o,s,i){let l,c=r,u=0;for(let e=s+n;e<i;e+=n)l=D(t,e,s,i),l>c&&(u=e,c=l);c>r&&(u-s>n&&K(e,t,n,r,o,s,u),o(e,t,e.length,u,t[u],t[u+1]),i-u>n&&K(e,t,n,r,o,u,i))}function ee(e,t,n,r){if((0,s.Wi)(t)||!t.coords||!t.coords.length)return null;const o=h(n,r);let i=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(t&&t.coords){const e=t.coords;for(let t=0;t<e.length;t+=o){const n=e[t],r=e[t+1];i=Math.min(i,n),c=Math.max(c,n),l=Math.min(l,r),u=Math.max(u,r)}}return e[0]=i,e[1]=l,e[2]=c,e[3]=u,e}function te(e,t,n,r,o){const{coords:s,lengths:i}=t,l=n?r?y:d:r?d:g,c=h(n,r);if(!s.length)return e!==t&&(e.lengths.length=0,e.coords.length=0),e;if(!i.length)return l(e.coords,s,0,0,w(o,s[0]),Z(o,s[1])),e!==t&&(e.lengths.length=0,e.coords.length=c),e;const[u,a]=o.scale;let f=0;for(let t=0;t<i.length;t++){const n=i[t];e.lengths[t]=n;let r=w(o,s[f]),h=Z(o,s[f+1]);l(e.coords,s,f,f,r,h),f+=c;for(let t=1;t<n;t++,f+=c)r+=s[f]*u,h-=s[f+1]*a,l(e.coords,s,f,f,r,h)}return e!==t&&(e.lengths.length=i.length,e.coords.length=s.length),e}function ne(e,t,n,r,o,s){const i=h(n,r),l=p(n,r,o,s),c=t.coords;e.coords.length=0,e.lengths.length=0,e.lengths.push(...t.lengths);for(let t=0;t<c.length;t+=i)l(e.coords,c,e.coords.length,t,c[t],c[t+1]);return e}function re(e,t,n,r){let o=0,s=e[r*t],i=e[r*(t+1)];for(let l=1;l<n;l++){const n=s+e[r*(t+l)],c=i+e[r*(t+l)+1],u=(n-s)*(c+i);s=n,i=c,o+=u}return.5*o}function oe(e,t){const{coords:n,lengths:r}=e;let o=0,s=0;for(let e=0;e<r.length;e++)s+=re(n,o,r[e],t),o+=e;return Math.abs(s)}function se(e,t){if((0,s.Wi)(e))return null;const n=e.clone(),r=e.coords,o=e.lengths;let i=0;for(let e=0;e<o.length;e++){const s=o[e];let l=r[t*i],c=r[t*i+1];for(let e=1;e<s;e++){const o=l+r[t*(i+e)],s=c+r[t*(i+e)+1];n.coords[t*(i+e)]=o,n.coords[t*(i+e)+1]=s,l=o,c=s}i+=s}return n}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2730],{92722:(e,t,n)=>{n.d(t,{lG:()=>v,q9:()=>a,my:()=>T,O3:()=>F});var i=n(20102),r=n(70272),o=n(5428),s=n(35671);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function a(e){return l[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*c(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];t+=i[0]*r[1]-r[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function f(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return h(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const i of t.coordinates)h(e,i,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const i of t.coordinates){m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const i=t.coordinates;m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n);return e}(e,t,n)}}function m(e,t,n){const i=y(t);!function(e){return!p(e)}(i)?h(e,i,n):w(e,i,n)}function g(e,t,n){const i=y(t);!function(e){return p(e)}(i)?h(e,i,n):w(e,i,n)}function h(e,t,n){for(const i of t)b(e,i,n);e.lengths.push(t.length)}function w(e,t,n){for(let i=t.length-1;i>=0;i--)b(e,t[i],n);e.lengths.push(t.length)}function b(e,t,n){const[i,r,o]=t;e.coords.push(i,r),n.hasZ&&e.coords.push(o||0)}function S(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const n="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,r=new RegExp(".*(CRS84H?|4326)$","i");if(!n||!r.test(n))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function T(e,t={}){const n=[],i=new Set,r=new Set;let o,l=!1,p=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:s,id:u}=t;if((!e||(f||(f=a(e.type)),a(e.type)===f))&&(l||(l=d(c(e))),y||(y=null!=u,y&&(o=typeof u,p=Object.keys(s).filter((e=>s[e]===u)))),y&&null!=u&&(p.length>1?p=p.filter((e=>s[e]===u)):1===p.length&&(p=s[p[0]]===u?p:[])),!m&&s)){let e=!0;for(const t in s){if(i.has(t))continue;const o=s[t];if(null==o){e=!1,r.add(t);continue}const l=S(o);"unknown"!==l?(r.delete(t),i.add(t),n.push({name:t,alias:t,type:l})):r.add(t)}m=e}}const g=p&&1===p.length&&p[0]||null;if(g)for(const e of n)if(e.name===g&&(0,s.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:l,objectIdFieldName:g,objectIdFieldType:o,unknownFields:Array.from(r)}}function v(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const l of e){var s;const{geometry:e,properties:u,id:c}=l;if(e&&a(e.type)!==n)continue;const d=u||{};let p=null!=(s=d[i])?s:null;i&&null!=c&&!d[i]&&(d[i]=p=c);const y=new r.ZP(e?f(new o.Z,e,t):null,d,null,p);yield y}}(u(e),t))}},25278:(e,t,n)=>{n.d(t,{MS:()=>c,Dm:()=>a,Hq:()=>u,bU:()=>l});var i=n(80442),r=n(22974),o=n(61159),s=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}function a(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const i=new Function(n);return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},16467:(e,t,n)=>{n.d(t,{$9:()=>w,Lu:()=>h,w9:()=>b,j:()=>S,G4:()=>F,gp:()=>T,eS:()=>v,d:()=>j,yN:()=>I,WW:()=>k}),n(66577);var i=n(3172),r=n(20102),o=n(92604),s=n(70586),l=n(8744),a=n(40488),u=n(98732),c=n(44876),d=n(92722),p=n(25278),y=n(99514),f=n(86719),m=n(82971);const g=o.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),h="http://www.opengis.net/def/crs/",w=`${h}OGC/1.3/CRS84`;async function b(e,t,n={},o=5){const{links:l}=e,a=N(l,"items","application/geo+json")||N(l,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(a))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:u}=await(0,i.default)(a.href,{signal:n.signal,query:{limit:o,...n.customParameters,token:n.apiKey},headers:{accept:"application/geo+json"}});await(0,d.O3)(u);const c=(0,d.my)(u,{geometryType:t.geometryType}),m=t.fields||c.fields||[],h=null!=t.hasZ?t.hasZ:c.hasZ,w=c.geometryType,b=t.objectIdField||c.objectIdFieldName||"OBJECTID";let S=t.timeInfo;const F=m.find((e=>e.name===b));if(F)F.type="esriFieldTypeOID",F.editable=!1,F.nullable=!1;else{if(!c.objectIdFieldType)throw new r.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:b,alias:b,type:"esriFieldTypeOID",editable:!1,nullable:!1})}if(b!==c.objectIdFieldName){const e=m.find((e=>e.name===c.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===c.fields&&c.unknownFields.length>0&&g.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:c.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new r.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(-1===f.v.jsonValues.indexOf(e.type))throw new r.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(S){const e=new y.Z(m);if(S.startTimeField){const t=e.get(S.startTimeField);t?(S.startTimeField=t.name,t.type="esriFieldTypeDate"):S.startTimeField=null}if(S.endTimeField){const t=e.get(S.endTimeField);t?(S.endTimeField=t.name,t.type="esriFieldTypeDate"):S.endTimeField=null}if(S.trackIdField){const t=e.get(S.trackIdField);t?S.trackIdField=t.name:(S.trackIdField=null,g.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}S.startTimeField||S.endTimeField||(g.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}return{drawingInfo:w?(0,p.bU)(w):null,geometryType:w,fields:m,hasZ:!!h,objectIdField:b,timeInfo:S}}async function S(e,t={}){const{links:n}=e,o=N(n,"data","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function F(e,t={}){const{links:n}=e,o=N(n,"conformance","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function T(e,t={}){const{apiKey:n,customParameters:r,signal:o}=t,{data:s}=await(0,i.default)(e,{signal:o,headers:{accept:"application/json"},query:{...r,token:n}});return s}async function v(e,t={}){const n="application/vnd.oai.openapi+json;version=3.0",r=N(e.links,"service-desc",n);if((0,s.Wi)(r))return g.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:o,customParameters:l,signal:a}=t,{data:u}=await(0,i.default)(r.href,{signal:a,headers:{accept:n},query:{...l,token:o}});return u}function j(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=null==t?void 0:t.groups;if(!n)return null;const{authority:i,code:r}=n;switch(i.toLowerCase()){case"ogc":switch(r.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function I(e,t,n){const i=await k(e,t,n);return(0,u.cn)(i)}async function k(e,t,n){const{capabilities:{query:{maxRecordCount:o}},collection:p,layerDefinition:y,queryParameters:{apiKey:f,customParameters:g},spatialReference:h,supportedCrs:w}=e,{links:b}=p,S=N(b,"items","application/geo+json")||N(b,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(S))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:F,num:T,start:v,timeExtent:j,where:I}=t;if(t.objectIds)throw new r.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const k=m.Z.fromJSON(h),O=(0,s.Pt)(t.outSpatialReference,k),P=O.isWGS84?null:C(O,w),Z=V(F,w),x=function(e){if((0,s.Wi)(e))return null;const{start:t,end:n}=e;return`${(0,s.pC)(t)?t.toISOString():".."}/${(0,s.pC)(n)?n.toISOString():".."}`}(j),G=(D=I,(0,s.Wi)(D)||!D||"1=1"===D?null:D),M=null!=T?T:null!=v&&void 0!==v?10:o,{data:_}=await(0,i.default)(S.href,{...n,query:{...g,...Z,crs:P,datetime:x,query:G,limit:M,startindex:v,token:f},headers:{accept:"application/geo+json"}});var D;let q=!1;_.links&&(q=!!_.links.find((e=>"next"===e.rel))),!q&&Number.isInteger(_.numberMatched)&&Number.isInteger(_.numberReturned)&&(q=_.numberReturned<_.numberMatched);const{fields:L,globalIdField:R,hasM:W,hasZ:J,objectIdField:$}=y,A=y.geometryType,B=(0,d.lG)(_,{geometryType:A,hasZ:J,objectIdField:$});if(!P&&O.isWebMercator)for(const e of B)if((0,s.pC)(e.geometry)){const t=(0,u.di)(e.geometry,A,J,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,u.GH)((0,a.iV)(t,O))}for(const e of B)e.objectId=e.attributes[$];const E=P||!P&&O.isWebMercator?O.toJSON():l.Zn,U=new c.Z;return U.exceededTransferLimit=q,U.features=B,U.fields=L,U.geometryType=A,U.globalIdFieldName=R,U.hasM=W,U.hasZ=J,U.objectIdFieldName=$,U.spatialReference=E,U}function C(e,t){var n,i,r;const{isWebMercator:o,wkid:s}=e;if(!s)return null;const l=o?null!=(n=null!=(i=null!=(r=t[3857])?r:t[102100])?i:t[102113])?n:t[900913]:t[e.wkid];return l?`${h}${l}`:null}function O(e){if((0,s.Wi)(e))return"";const{xmin:t,ymin:n,xmax:i,ymax:r}=e;return`${t},${n},${i},${r}`}function V(e,t){if(!function(e){return(0,s.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:O(e)};const i=C(n,t);return(0,s.pC)(i)?{bbox:O(e),"bbox-crs":i}:n.isWebMercator?{bbox:O((0,a.iV)(e,m.Z.WGS84))}:null}function N(e,t,n){return e.find((e=>e.rel===t&&e.type===n))||e.find((e=>e.rel===t&&!e.type))}},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var i,r=n(43697),o=n(35454),s=n(96674),l=n(5600),a=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),d=n(52011),p=n(72729),y=n(86719);const f=new o.Xn({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,l.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,l.Cb)({type:a.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=i=(0,r._)([(0,d.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>I,V5:()=>j}),n(80442);var i,r=n(43697),o=n(22974),s=n(5600),l=(n(75215),n(36030)),a=n(52011),u=n(96674);n(67676);let c=i=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=i=(0,r._)([(0,a.j)("esri.layers.support.CodedValue")],c);const d=c,p=new(n(35454).Xn)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,r._)([(0,l.J)(p)],y.prototype,"type",void 0),y=(0,r._)([(0,a.j)("esri.layers.support.Domain")],y);const f=y;var m;let g=m=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,s.Cb)({type:[d],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,r._)([(0,l.J)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=m=(0,r._)([(0,a.j)("esri.layers.support.CodedValueDomain")],g);const h=g;var w;n(92604),n(37697);let b=w=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new w}};(0,r._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=w=(0,r._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const S=b;var F;let T=F=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new F({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,r._)([(0,l.J)({range:"range"})],T.prototype,"type",void 0),T=F=(0,r._)([(0,a.j)("esri.layers.support.RangeDomain")],T);const v=T,j={key:"type",base:f,typeMap:{range:T,"coded-value":h,inherited:S}};function I(e){if(!e||!e.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>i});const i=new(n(35454).Xn)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},58333:(e,t,n)=>{n.d(t,{I4:()=>r,lF:()=>s,ET:()=>o,qP:()=>l,eG:()=>a,lj:()=>c,wW:()=>u});const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2730],{92722:(e,t,n)=>{n.d(t,{lG:()=>v,q9:()=>a,my:()=>T,O3:()=>F});var i=n(20102),r=n(70272),o=n(5428),s=n(35671);const l={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function a(e){return l[e]}function*u(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*c(e){if(!e)return null;switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function p(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=e[(n+1)%e.length];t+=i[0]*r[1]-r[0]*i[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function f(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return h(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const i of t.coordinates)h(e,i,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const i of t.coordinates){m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const i=t.coordinates;m(e,i[0],n);for(let t=1;t<i.length;t++)g(e,i[t],n);return e}(e,t,n)}}function m(e,t,n){const i=y(t);!function(e){return!p(e)}(i)?h(e,i,n):w(e,i,n)}function g(e,t,n){const i=y(t);!function(e){return p(e)}(i)?h(e,i,n):w(e,i,n)}function h(e,t,n){for(const i of t)b(e,i,n);e.lengths.push(t.length)}function w(e,t,n){for(let i=t.length-1;i>=0;i--)b(e,t[i],n);e.lengths.push(t.length)}function b(e,t,n){const[i,r,o]=t;e.coords.push(i,r),n.hasZ&&e.coords.push(o||0)}function S(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:t}=e;if(!t)return;const n="string"==typeof t?t:"name"===t.type?t.properties.name:"EPSG"===t.type?t.properties.code:null,r=new RegExp(".*(CRS84H?|4326)$","i");if(!n||!r.test(n))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:t})}function T(e,t={}){const n=[],i=new Set,r=new Set;let o,l=!1,p=null,y=!1,{geometryType:f=null}=t,m=!1;for(const t of u(e)){const{geometry:e,properties:s,id:u}=t;if((!e||(f||(f=a(e.type)),a(e.type)===f))&&(l||(l=d(c(e))),y||(y=null!=u,y&&(o=typeof u,p=Object.keys(s).filter((e=>s[e]===u)))),y&&null!=u&&(p.length>1?p=p.filter((e=>s[e]===u)):1===p.length&&(p=s[p[0]]===u?p:[])),!m&&s)){let e=!0;for(const t in s){if(i.has(t))continue;const o=s[t];if(null==o){e=!1,r.add(t);continue}const l=S(o);"unknown"!==l?(r.delete(t),i.add(t),n.push({name:t,alias:t,type:l})):r.add(t)}m=e}}const g=p&&1===p.length&&p[0]||null;if(g)for(const e of n)if(e.name===g&&(0,s.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:f,hasZ:l,objectIdFieldName:g,objectIdFieldType:o,unknownFields:Array.from(r)}}function v(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:i}=t;for(const l of e){var s;const{geometry:e,properties:u,id:c}=l;if(e&&a(e.type)!==n)continue;const d=u||{};let p=null!=(s=d[i])?s:null;i&&null!=c&&!d[i]&&(d[i]=p=c);const y=new r.ZP(e?f(new o.Z,e,t):null,d,null,p);yield y}}(u(e),t))}},25278:(e,t,n)=>{n.d(t,{MS:()=>c,Dm:()=>a,Hq:()=>u,bU:()=>l});var i=n(80442),r=n(22974),o=n(61159),s=n(58333);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.I4:"esriGeometryPolyline"===e?s.ET:s.lF}}}function a(e,t){if((0,i.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this.${t} = null;`;for(const t in e)n+=`this${t.includes(".")?`["${t}"]`:`.${t}`} = ${JSON.stringify(e[t])};`;const i=new Function(n);return()=>new i}catch(n){return()=>({[t]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.d9)(e)}}]}function c(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:o.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},16467:(e,t,n)=>{n.d(t,{$9:()=>w,Lu:()=>h,w9:()=>b,j:()=>S,G4:()=>F,gp:()=>T,eS:()=>v,d:()=>j,yN:()=>I,WW:()=>k}),n(66577);var i=n(3172),r=n(20102),o=n(92604),s=n(70586),l=n(8744),a=n(40488),u=n(98732),c=n(44876),d=n(92722),p=n(25278),y=n(99514),f=n(86719),m=n(82971);const g=o.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),h="http://www.opengis.net/def/crs/",w=`${h}OGC/1.3/CRS84`;async function b(e,t,n={},o=5){const{links:l}=e,a=N(l,"items","application/geo+json")||N(l,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(a))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:u}=await(0,i.default)(a.href,{signal:n.signal,query:{limit:o,...n.customParameters,token:n.apiKey},headers:{accept:"application/geo+json"}});await(0,d.O3)(u);const c=(0,d.my)(u,{geometryType:t.geometryType}),m=t.fields||c.fields||[],h=null!=t.hasZ?t.hasZ:c.hasZ,w=c.geometryType,b=t.objectIdField||c.objectIdFieldName||"OBJECTID";let S=t.timeInfo;const F=m.find((e=>e.name===b));if(F)F.type="esriFieldTypeOID",F.editable=!1,F.nullable=!1;else{if(!c.objectIdFieldType)throw new r.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");m.unshift({name:b,alias:b,type:"esriFieldTypeOID",editable:!1,nullable:!1})}if(b!==c.objectIdFieldName){const e=m.find((e=>e.name===c.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}m===c.fields&&c.unknownFields.length>0&&g.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:c.unknownFields}});for(const e of m){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new r.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(-1===f.v.jsonValues.indexOf(e.type))throw new r.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(S){const e=new y.Z(m);if(S.startTimeField){const t=e.get(S.startTimeField);t?(S.startTimeField=t.name,t.type="esriFieldTypeDate"):S.startTimeField=null}if(S.endTimeField){const t=e.get(S.endTimeField);t?(S.endTimeField=t.name,t.type="esriFieldTypeDate"):S.endTimeField=null}if(S.trackIdField){const t=e.get(S.trackIdField);t?S.trackIdField=t.name:(S.trackIdField=null,g.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:S}}))}S.startTimeField||S.endTimeField||(g.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:S}}),S=null)}return{drawingInfo:w?(0,p.bU)(w):null,geometryType:w,fields:m,hasZ:!!h,objectIdField:b,timeInfo:S}}async function S(e,t={}){const{links:n}=e,o=N(n,"data","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function F(e,t={}){const{links:n}=e,o=N(n,"conformance","application/json")||N(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,s.Wi)(o))throw new r.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:l,customParameters:a,signal:u}=t,{data:c}=await(0,i.default)(o.href,{signal:u,headers:{accept:"application/json"},query:{...a,token:l}});return c}async function T(e,t={}){const{apiKey:n,customParameters:r,signal:o}=t,{data:s}=await(0,i.default)(e,{signal:o,headers:{accept:"application/json"},query:{...r,token:n}});return s}async function v(e,t={}){const n="application/vnd.oai.openapi+json;version=3.0",r=N(e.links,"service-desc",n);if((0,s.Wi)(r))return g.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:o,customParameters:l,signal:a}=t,{data:u}=await(0,i.default)(r.href,{signal:a,headers:{accept:n},query:{...l,token:o}});return u}function j(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=null==t?void 0:t.groups;if(!n)return null;const{authority:i,code:r}=n;switch(i.toLowerCase()){case"ogc":switch(r.toLowerCase()){case"crs27":return m.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return m.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(r,10);return Number.isNaN(e)?null:e}default:return null}}async function I(e,t,n){const i=await k(e,t,n);return(0,u.cn)(i)}async function k(e,t,n){const{capabilities:{query:{maxRecordCount:o}},collection:p,layerDefinition:y,queryParameters:{apiKey:f,customParameters:g},spatialReference:h,supportedCrs:w}=e,{links:b}=p,S=N(b,"items","application/geo+json")||N(b,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,s.Wi)(S))throw new r.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:F,num:T,start:v,timeExtent:j,where:I}=t;if(t.objectIds)throw new r.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const k=m.Z.fromJSON(h),O=(0,s.Pt)(t.outSpatialReference,k),P=O.isWGS84?null:C(O,w),Z=V(F,w),x=function(e){if((0,s.Wi)(e))return null;const{start:t,end:n}=e;return`${(0,s.pC)(t)?t.toISOString():".."}/${(0,s.pC)(n)?n.toISOString():".."}`}(j),G=(D=I,(0,s.Wi)(D)||!D||"1=1"===D?null:D),M=null!=T?T:null!=v&&void 0!==v?10:o,{data:_}=await(0,i.default)(S.href,{...n,query:{...g,...Z,crs:P,datetime:x,query:G,limit:M,startindex:v,token:f},headers:{accept:"application/geo+json"}});var D;let q=!1;_.links&&(q=!!_.links.find((e=>"next"===e.rel))),!q&&Number.isInteger(_.numberMatched)&&Number.isInteger(_.numberReturned)&&(q=_.numberReturned<_.numberMatched);const{fields:L,globalIdField:R,hasM:W,hasZ:J,objectIdField:$}=y,A=y.geometryType,B=(0,d.lG)(_,{geometryType:A,hasZ:J,objectIdField:$});if(!P&&O.isWebMercator)for(const e of B)if((0,s.pC)(e.geometry)){const t=(0,u.di)(e.geometry,A,J,!1);t.spatialReference=m.Z.WGS84,e.geometry=(0,u.GH)((0,a.iV)(t,O))}for(const e of B)e.objectId=e.attributes[$];const E=P||!P&&O.isWebMercator?O.toJSON():l.Zn,U=new c.Z;return U.exceededTransferLimit=q,U.features=B,U.fields=L,U.geometryType=A,U.globalIdFieldName=R,U.hasM=W,U.hasZ=J,U.objectIdFieldName=$,U.spatialReference=E,U}function C(e,t){var n,i,r;const{isWebMercator:o,wkid:s}=e;if(!s)return null;const l=o?null!=(n=null!=(i=null!=(r=t[3857])?r:t[102100])?i:t[102113])?n:t[900913]:t[e.wkid];return l?`${h}${l}`:null}function O(e){if((0,s.Wi)(e))return"";const{xmin:t,ymin:n,xmax:i,ymax:r}=e;return`${t},${n},${i},${r}`}function V(e,t){if(!function(e){return(0,s.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:O(e)};const i=C(n,t);return(0,s.pC)(i)?{bbox:O(e),"bbox-crs":i}:n.isWebMercator?{bbox:O((0,a.iV)(e,m.Z.WGS84))}:null}function N(e,t,n){return e.find((e=>e.rel===t&&e.type===n))||e.find((e=>e.rel===t&&!e.type))}},1231:(e,t,n)=>{n.d(t,{Z:()=>g});var i,r=n(43697),o=n(35454),s=n(96674),l=n(5600),a=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),d=n(52011),p=n(72729),y=n(86719);const f=new o.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null}readDescription(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?n.value:null}readValueType(e,{description:t}){let n;try{n=JSON.parse(t)}catch(e){}return n?f.fromJSON(n.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,r._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,r._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,r._)([(0,l.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],m.prototype,"domain",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,r._)([(0,l.Cb)({type:a.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,r._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,r._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,r._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=i=(0,r._)([(0,d.j)("esri.layers.support.Field")],m);const g=m},72729:(e,t,n)=>{n.d(t,{im:()=>I,V5:()=>j}),n(80442);var i,r=n(43697),o=n(22974),s=n(5600),l=(n(75215),n(36030)),a=n(52011),u=n(96674);n(67676);let c=i=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,r._)([(0,s.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=i=(0,r._)([(0,a.j)("esri.layers.support.CodedValue")],c);const d=c,p=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,r._)([(0,l.J)(p)],y.prototype,"type",void 0),y=(0,r._)([(0,a.j)("esri.layers.support.Domain")],y);const f=y;var m;let g=m=class extends f{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const n=String(e);this.codedValues.some((e=>(String(e.code)===n&&(t=e.name),!!t)))}return t}clone(){return new m({codedValues:(0,o.d9)(this.codedValues),name:this.name})}};(0,r._)([(0,s.Cb)({type:[d],json:{write:!0}})],g.prototype,"codedValues",void 0),(0,r._)([(0,l.J)({codedValue:"coded-value"})],g.prototype,"type",void 0),g=m=(0,r._)([(0,a.j)("esri.layers.support.CodedValueDomain")],g);const h=g;var w;n(92604),n(37697);let b=w=class extends f{constructor(e){super(e),this.type="inherited"}clone(){return new w}};(0,r._)([(0,l.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=w=(0,r._)([(0,a.j)("esri.layers.support.InheritedDomain")],b);const S=b;var F;let T=F=class extends f{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new F({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,n){t[n]=[this.minValue||0,e]}}}})],T.prototype,"maxValue",void 0),(0,r._)([(0,s.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range&&t.range[0]},write:{target:"range",writer(e,t,n){t[n]=[e,this.maxValue||0]}}}})],T.prototype,"minValue",void 0),(0,r._)([(0,l.J)({range:"range"})],T.prototype,"type",void 0),T=F=(0,r._)([(0,a.j)("esri.layers.support.RangeDomain")],T);const v=T,j={key:"type",base:f,typeMap:{range:T,"coded-value":h,inherited:S}};function I(e){if(!e||!e.type)return null;switch(e.type){case"range":return v.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return S.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>i});const i=new(n(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},58333:(e,t,n)=>{n.d(t,{I4:()=>r,lF:()=>s,ET:()=>o,qP:()=>l,eG:()=>a,lj:()=>c,wW:()=>u});const i=[252,146,31,255],r={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},s={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3471],{44422:(e,t,i)=>{i.d(t,{B:()=>l});var s=i(5600);function l(e,t){const i=t?{...t,source:e}:e;return(0,s.Cb)({aliasOf:i})}},16050:(e,t,i)=>{i.d(t,{Z:()=>q});var s,l=i(43697),n=i(78223),o=i(35454),r=i(22974),a=i(92604),u=i(70586),d=i(5600),p=i(90578),c=i(36030),y=i(71715),f=i(52011),h=i(30556),m=i(75215),b=i(35671),g=i(5499),v=i(12571),S=i(32984),I=i(9833),_=i(66338),w=i(59266);const V=a.Z.getLogger("esri.renderers.ClassBreaksRenderer"),x="percent-of-total",C="field",k=new o.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:x,esriNormalizeByField:C}),F=(0,m.se)(S.Z);let B=s=class extends((0,v.W)(g.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new S.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const l=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&l.forEach((e=>delete e.classMinValue)),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(V.error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=(t?C:i&&x)||null,t&&i&&V.warn("warning: both normalizationField and normalizationTotal are set!")):e!==C&&e!==x||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new S.Z({minValue:e,maxValue:t,symbol:(0,n.se)(i)}):F((0,r.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&V.warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,w.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void V.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))){const e=await(0,w.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,r.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,r.d9)(this.visualVariables),legendOptions:(0,r.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,b.io)(e,t,this.valueExpression)];(0,b.AB)(e,t,this.field),(0,b.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:n}=(0,u.Pt)(t,{});let o=this._compiledValueExpression.valueExpression===this.valueExpression?this._compiledValueExpression.compiledFunction:null;const r=(0,u.Wg)(n).arcadeUtils;if(!o){const e=r.createSyntaxTree(this.valueExpression);o=r.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=this.valueExpression;const a=r.executeFunction(o,r.createExecContext(e,r.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._getBreakIndexfromInfos(a)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(i[this.normalizationField]);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==x||isNaN(e)){if(s===C&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l._)([(0,d.Cb)(I.K)],B.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,d.Cb)({type:[S.Z]})],B.prototype,"classBreakInfos",void 0),(0,l._)([(0,y.r)("classBreakInfos")],B.prototype,"readClassBreakInfos",null),(0,l._)([(0,h.c)("classBreakInfos")],B.prototype,"writeClassBreakInfos",null),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"defaultLabel",void 0),(0,l._)([(0,d.Cb)(I.G)],B.prototype,"defaultSymbol",void 0),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"field",void 0),(0,l._)([(0,p.p)("field")],B.prototype,"castField",null),(0,l._)([(0,d.Cb)({type:Boolean})],B.prototype,"isMaxInclusive",void 0),(0,l._)([(0,d.Cb)({type:_.Z,json:{write:!0}})],B.prototype,"legendOptions",void 0),(0,l._)([(0,d.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],B.prototype,"minValue",null),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"normalizationField",void 0),(0,l._)([(0,d.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],B.prototype,"normalizationTotal",void 0),(0,l._)([(0,d.Cb)({type:k.apiValues,value:null,json:{type:k.jsonValues,read:k.read,write:k.write}})],B.prototype,"normalizationType",null),(0,l._)([(0,c.J)({classBreaks:"class-breaks"})],B.prototype,"type",void 0),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"valueExpression",void 0),(0,l._)([(0,d.Cb)({type:String,json:{write:!0}})],B.prototype,"valueExpressionTitle",void 0),B=s=(0,l._)([(0,f.j)("esri.renderers.ClassBreaksRenderer")],B);const q=B},30687:(e,t,i)=>{i.d(t,{Z:()=>M});var s,l=i(43697),n=i(78223),o=i(20102),r=i(22974),a=i(92604),u=i(70586),d=i(78286),p=i(5600),c=i(90578),y=i(36030),f=i(71715),h=i(52011),m=i(30556),b=i(22862),g=i(75215),v=i(35671),S=i(65587),I=i(5499),_=i(12571),w=i(9833),V=i(66338),x=i(44262),C=i(59266),k=i(25929),F=i(27391),B=i(59390);const q=a.Z.getLogger("esri.renderers.UniqueValueRenderer"),E=(0,g.se)(x.Z);let O=s=class extends((0,_.W)(I.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this.type="unique-value",this.backgroundFillSymbol=null,this.field=null,this.field2=null,this.field3=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.fieldDelimiter=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const n=e.find((e=>e.value===t[l].value));n?(0,b.Hg)(n,t[l])?(s.changed.push({type:"complete",oldValue:n,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:n,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find((t=>t.value===e[l].value))||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[])}get _cache(){return{compiledFunc:null}}castField(e){return null==e||"function"==typeof e?e:(0,g.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new o.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):q.error(".field: cannot write field to JSON since it's not a string value")}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}readPortal(e,t,i){return i.portal||S.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,k.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,k.t)(e.styleUrl,s))}set uniqueValueInfos(e){this.styleOrigin?q.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void q.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?E(e):new x.Z({value:e,symbol:(0,n.se)(t)}),this.uniqueValueInfos.push(i),this._valueInfoMap[i.value]=i}removeUniqueValueInfo(e){if(this.styleOrigin)q.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");else for(let t=0;t<this.uniqueValueInfos.length;t++)if(this.uniqueValueInfos[t].value===e+""){delete this._valueInfoMap[e],this.uniqueValueInfos.splice(t,1);break}}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade))&&(i={...i,arcade:await(0,C.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&((0,u.Wi)(t)||(0,u.Wi)(t.arcade)))return void q.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&((0,u.Wi)(i)||(0,u.Wi)(i.arcade))){const e=await(0,C.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos)t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${JSON.stringify(this.backgroundFillSymbol)}.${JSON.stringify(this.defaultSymbol)}.${this.uniqueValueInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new s({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,r.d9)(this.defaultSymbol),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,r.d9)(this.visualVariables),legendOptions:(0,r.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,r.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,r.d9)(this.uniqueValueInfos);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,r.d9)(this.styleOrigin))),Object.freeze(t)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,F.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new B.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new x.Z({value:i.name,symbol:s});t.push(l),this._valueInfoMap[i.name]=l})),this._set("uniqueValueInfos",Object.freeze(t)),!this.defaultSymbol&&this.uniqueValueInfos.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateValueInfoMap(){this._valueInfoMap={},this.uniqueValueInfos.forEach((e=>this._valueInfoMap[e.value+""]=e))}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:n}=(0,u.Pt)(t,{});let o=this._cache.compiledFunc;const r=(0,u.Wg)(n).arcadeUtils;if(!o){const e=r.createSyntaxTree(this.valueExpression);o=r.createFunction(e),this._cache.compiledFunc=o}const a=r.executeFunction(o,r.createExecContext(e,r.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,l=this.field3,n=[];t&&n.push(i[t]),e&&n.push(i[e]),l&&n.push(i[l]),s=n.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||S.Z.getDefault());const l=i.populateFromStyle();return l.catch((t=>{q.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),l}static fromStyleUrl(e,t){const i=new s(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const l=i.populateFromStyle();return l.catch((t=>{q.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),l}};(0,l._)([(0,p.Cb)({readOnly:!0})],O.prototype,"_cache",null),(0,l._)([(0,y.J)({uniqueValue:"unique-value"})],O.prototype,"type",void 0),(0,l._)([(0,p.Cb)(w.K)],O.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,p.Cb)({json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],O.prototype,"field",void 0),(0,l._)([(0,c.p)("field")],O.prototype,"castField",null),(0,l._)([(0,m.c)("field")],O.prototype,"writeField",null),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"field2",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"field3",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"valueExpression",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"valueExpressionTitle",void 0),(0,l._)([(0,p.Cb)({type:V.Z,json:{write:!0}})],O.prototype,"legendOptions",void 0),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"defaultLabel",void 0),(0,l._)([(0,p.Cb)((0,d.RH)({...w.G},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],O.prototype,"defaultSymbol",null),(0,l._)([(0,p.Cb)({type:String,json:{write:!0}})],O.prototype,"fieldDelimiter",void 0),(0,l._)([(0,p.Cb)({type:S.Z,readOnly:!0})],O.prototype,"portal",void 0),(0,l._)([(0,f.r)("portal",["styleName"])],O.prototype,"readPortal",null),(0,l._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],O.prototype,"styleOrigin",void 0),(0,l._)([(0,f.r)("styleOrigin",["styleName","styleUrl"])],O.prototype,"readStyleOrigin",null),(0,l._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],O.prototype,"writeStyleOrigin",null),(0,l._)([(0,p.Cb)({type:[x.Z],json:{write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],O.prototype,"uniqueValueInfos",null),O=s=(0,l._)([(0,h.j)("esri.renderers.UniqueValueRenderer")],O);const M=O},32984:(e,t,i)=>{i.d(t,{Z:()=>d});var s,l=i(43697),n=i(96674),o=i(5600),r=(i(67676),i(80442),i(75215),i(52011)),a=i(9833);let u=s=class extends n.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,o.Cb)(a.G)],u.prototype,"symbol",void 0),u=s=(0,l._)([(0,r.j)("esri.renderers.support.ClassBreakInfo")],u);const d=u},44262:(e,t,i)=>{i.d(t,{Z:()=>d});var s,l=i(43697),n=i(96674),o=i(5600),r=(i(67676),i(80442),i(75215),i(52011)),a=i(9833);let u=s=class extends n.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)(a.G)],u.prototype,"symbol",void 0),(0,l._)([(0,o.Cb)({type:[String,Number],json:{type:String,write:{writer:(e,t)=>{t.value=null==e?void 0:e.toString()}}}})],u.prototype,"value",void 0),u=s=(0,l._)([(0,r.j)("esri.renderers.support.UniqueValueInfo")],u);const d=u},9833:(e,t,i)=>{i.d(t,{K:()=>u,G:()=>a});var s=i(78223),l=i(63213),n=i(21878),o=i(89164),r=i(86114);const a={types:s.QT,json:{write:{writer:n.c},origins:{"web-scene":{types:s.f_,write:{writer:n.c},read:{reader:(0,l.d)({types:s.f_})}}}}},u={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:n.c},origins:{"web-scene":{type:r.Z,write:{writer:n.c}}}}}},21878:(e,t,i)=>{i.d(t,{i:()=>v,c:()=>g});var s=i(78223),l=i(20102),n=i(70586),o=i(87223),r=i(59390),a=i(42143),u=i(4095),d=i(98587),p=i(77987),c=i(37898),y=i(20256),f=i(86114),h=i(78724),m=i(20825);const b={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t,i,g){const v=function(e,t,i){if(!e)return null;if(i&&"web-scene"===i.origin&&!(e instanceof o.Z)&&!(e instanceof r.Z)){const o=function(e,t=b){if(!e)return{symbol:null};const{retainId:i=b.retainId,ignoreDrivers:n=b.ignoreDrivers,hasLabelingContext:o=b.hasLabelingContext,retainCIM:g=b.retainCIM}=t;let v;if((0,s.dU)(e)||e instanceof r.Z)v=e.clone();else if("cim"===e.type){var S,I;const t=null==(S=e.data)||null==(I=S.symbol)?void 0:I.type;if("CIMPointSymbol"!==t)return{error:new l.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};v=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)v=d.Z.fromSimpleLineSymbol(e);else if(e instanceof p.Z)v=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof c.Z)v=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof y.Z)v=f.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof h.Z))return{error:new l.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=o?m.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}if(i&&"cim"!==v.type&&(v.id=e.id),n&&(0,s.dU)(v))for(let e=0;e<v.symbolLayers.length;++e)v.symbolLayers.getItemAt(e)._ignoreDrivers=!0;return{symbol:v}}(e,{retainCIM:!0});return(0,n.pC)(o.symbol)?o.symbol.write(t,i):(i.messages&&i.messages.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:i,error:o.error})),null)}return i&&"web-map"===i.origin&&"web-style"===e.type?(i.messages&&i.messages.push(new l.Z("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in webmaps. Use CIMSymbol instead when working with WebMap in MapView.`,{symbol:e,context:i})),null):e.write(t,i)}(e,{},g);v&&(t[i]=v)}function v(e,t){return(0,s.S9)(e,null,t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6348,5732],{5732:(e,t,i)=>{i.d(t,{a:()=>s,c:()=>r,g:()=>n});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},66577:(e,t,i)=>{i.d(t,{qM:()=>u});var r=i(75215),n=i(6570),s=i(9361),o=i(65091),l=i(13473),a=i(17332),d=i(58901);i(82971),i(86973),i(33955);const u={base:s.Z,key:"type",typeMap:{extent:n.Z,multipoint:o.Z,point:l.Z,polyline:d.Z,polygon:a.Z}};(0,r.N7)(u)},60437:(e,t,i)=>{i.d(t,{Gv:()=>p,Ue:()=>n,cS:()=>h,fS:()=>y,TC:()=>o,pp:()=>l,JR:()=>f,al:()=>s,t8:()=>c,Tn:()=>u,op:()=>d,dp:()=>a});var r=i(70586);function n(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,r,s,o,l=n()){return l[0]=e,l[1]=t,l[2]=i,l[3]=r,l[4]=s,l[5]=o,l}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function a(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function d(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function u(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?c(e,p):n(p)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function m(e){return 6===e.length}function y(e,t,i){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!m(e)||!m(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(6570),i(24470);const p=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];n()},33955:(e,t,i)=>{i.d(t,{im:()=>y,q9:()=>_,Ji:()=>p,YX:()=>u,aW:()=>c,wp:()=>h,oU:()=>m,l9:()=>f});var r=i(70586),n=i(6570),s=i(9361),o=i(65091),l=i(13473),a=i(17332),d=i(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function h(e){return void 0!==e.x&&void 0!==e.y}function f(e){return void 0!==e.paths}function m(e){return void 0!==e.rings}function y(e){return(0,r.Wi)(e)?null:e instanceof s.Z?e:h(e)?l.Z.fromJSON(e):f(e)?d.Z.fromJSON(e):m(e)?a.Z.fromJSON(e):c(e)?o.Z.fromJSON(e):u(e)?n.Z.fromJSON(e):null}function p(e){return e?h(e)?"esriGeometryPoint":f(e)?"esriGeometryPolyline":m(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:l.Z,esriGeometryPolyline:d.Z,esriGeometryPolygon:a.Z,esriGeometryEnvelope:n.Z,esriGeometryMultipoint:o.Z};function _(e){return e&&g[e]||null}},86973:(e,t,i)=>{i.d(t,{Mk:()=>n,P$:()=>s});var r=i(35454);const n=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),s=(0,r.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},37549:(e,t,i)=>{i.d(t,{H:()=>o});var r=i(80442),n=i(24133);const s={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.QB(9,(0,r.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((i,r)=>{e[t++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3],e.search(s,i)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},57191:(e,t,i)=>{i.d(t,{Z:()=>y});var r=i(20102),n=i(32448),s=i(92604),o=i(70586),l=i(60437),a=i(24470),d=i(98732),u=i(37549),c=i(29730),h=i(70272),f=i(5428);const m={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new h.ZP(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(e.centroid||(e.centroid=(0,c.Y)(new f.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)};class y{constructor(e){this.geometryInfo=e,this._boundsStore=new u.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new n.Z,this.featureAdapter=m}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=(0,a.Ue)(a.Gv);return this._featuresById.forEach((t=>{const i=this._boundsStore.get(t.objectId);i&&(e[0]=Math.min(i[0],e[0]),e[1]=Math.min(i[1],e[1]),e[2]=Math.max(i[2],e[2]),e[3]=Math.max(i[3],e[3]))})),e}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{(0,o.pC)(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,i){for(const r of e){const e=this._boundsStore.get(r.objectId);e&&t((0,l.JR)(i,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,i)=>{this._markedIds.has(i)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void s.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new r.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let n;if(this._markedIds.add(t),i?(e.displayId=i.displayId,n=this._boundsStore.get(t),this._boundsStore.delete(t)):(0,o.pC)(this.onFeatureAdd)&&this.onFeatureAdd(e),(0,o.Wi)(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);n=(0,d.$)((0,o.pC)(n)?n:(0,a.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),(0,o.pC)(n)&&this._boundsStore.set(t,n),this._featuresById.set(t,e)}_remove(e){return(0,o.pC)(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},23095:(e,t,i)=>{i.d(t,{av:()=>l,d1:()=>d,b:()=>y,O0:()=>c,og:()=>m});var r=i(8744),n=i(35671);class s{constructor(){this.code=null,this.description=null}}class o{constructor(e){this.error=new s,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function l(e){return new o(e)}class a{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function d(e){return new a(e)}const u=new Set;function c(e,t,i,r=!1,s){u.clear();for(const o in i){const a=e.get(o);if(!a)continue;const d=i[o],c=h(a,d);if(c!==d&&s&&s.push({name:"invalid-value-type",message:"attribute value was converted to match the field type",details:{field:a,originalValue:d,sanitizedValue:c}}),u.add(a.name),a&&(r||a.editable)){const e=(0,n.Qc)(a,c);if(e)return l((0,n.vP)(e,a,c));t[a.name]=c}}for(const t of e.requiredFields)if(!u.has(t.name))return l(`missing required field "${t.name}"`);return null}function h(e,t){let i=t;return"string"==typeof t&&(0,n.H7)(e)?i=parseFloat(t):null!=t&&(0,n.qN)(e)&&"string"!=typeof t&&(i=String(t)),(0,n.Pz)(i)}let f;function m(e,t){if(!e||!(0,r.JY)(t))return e;if("rings"in e||"paths"in e){if(!f)throw new TypeError("geometry engine not loaded");return f.simplify(t,e)}return e}async function y(e,t){!(0,r.JY)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return f||(f=await Promise.all([i.e(5837),i.e(247)]).then(i.bind(i,30247)),f)}()}},99514:(e,t,i)=>{i.d(t,{Z:()=>o});var r=i(35671);function n(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class o{constructor(e){if(this.fields=e,this._fieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!e)return;const t=[];for(const o of e){const e=o&&o.name;if(e){const a=l(e);this._fieldsMap.set(e,o),this._fieldsMap.set(a,o),t.push(a),"date"===(i=o).type||"esriFieldTypeDate"===i.type?(this.dateFields.push(o),this._dateFieldsSet.add(o)):(0,r.H7)(o)&&(this._numericFieldsSet.add(o),this.numericFields.push(o)),n(o)||s(o)||(o.editable=null==o.editable||!!o.editable,o.nullable=null==o.nullable||!!o.nullable)}}var i;t.sort(),this.uid=t.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)n(e)||s(e)||e.nullable||void 0!==(0,r.os)(e)||this._requiredFields.push(e)}return this._requiredFields}has(e){return null!=this.get(e)}get(e){return null!=e?this._fieldsMap.get(e)||this._fieldsMap.get(l(e)):void 0}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){const t=this.get(e);if(t)return t.name}}function l(e){return e.toLowerCase().trim()}},86719:(e,t,i)=>{i.d(t,{v:()=>r});const r=new(i(35454).X)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml"})},35671:(e,t,i)=>{i.d(t,{io:()=>g,AB:()=>p,gd:()=>y,Mu:()=>I,Q0:()=>m,YN:()=>u,UF:()=>h,O5:()=>_,os:()=>v,H7:()=>Z,qN:()=>A,Pz:()=>O,Qc:()=>L,vP:()=>U});var r,n,s=i(20102),o=i(78286);(n=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",n.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var l=i(59266);const a=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],d=["field","normalizationField"];function u(e,t){if(null!=e&&null!=t)for(const i of Array.isArray(e)?e:[e])if(c(a,i,t),"visualVariables"in i&&i.visualVariables)for(const e of i.visualVariables)c(d,e,t)}function c(e,t,i){if(e)for(const r of e){const e=(0,o.hS)(r,t),n=e&&"function"!=typeof e&&i.get(e);n&&(0,o.RB)(r,n.name,t)}}function h(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const i=t.get(e.startField),r=t.get(e.endField);e.startField=i&&i.name||null,e.endField=r&&r.name||null}else{const i=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=i&&i.name||null,e.endTimeField=r&&r.name||null}}const f=new Set;function m(e,t){return e&&t?(f.clear(),y(f,e,t),Array.from(f).sort()):[]}function y(e,t,i){var r;if(i)if(null!=t&&null!=(r=t.fields)&&r.length)if(i.includes("*"))for(const{name:i}of t.fields)e.add(i);else for(const r of i)p(e,t,r);else{if(i.includes("*"))return e.clear(),void e.add("*");for(const t of i)e.add(t)}}function p(e,t,i){if("string"==typeof i)if(t){const r=t.get(i);r&&e.add(r.name)}else e.add(i)}async function g(e,t,i){var r;if(!i)return;const{arcadeUtils:n}=await(0,l.LC)(),s=n.extractFieldNames(i,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const i of s)p(e,t,i)}function _({displayField:e,fields:t}){return e||(t&&t.length?b(t,"name-or-title")||b(t,"unique-identifier")||b(t,"type-or-category")||function(e){for(const t of e){if(!t||!t.name)continue;const e=t.name.toLowerCase();if(e.indexOf("name")>-1||e.indexOf("title")>-1)return t.name}return null}(t):null)}function b(e,t){for(const i of e)if(i&&i.valueType&&i.valueType===t)return i.name;return null}async function I(e,t){const{labelingInfo:r,fieldsIndex:n}=t;r&&r.length&&await Promise.all(r.map((t=>async function(e,t,r){if(!r)return;const n=r.getLabelExpression(),o=r.where;if("arcade"===n.type)await g(e,t,n.expression);else{const i=n.expression.match(/{[^}]*}/g);i&&i.forEach((i=>{p(e,t,i.slice(1,-1))}))}await async function(e,t,r){if(r&&"1=1"!==r){const n=(await Promise.all([i.e(1534),i.e(5732)]).then(i.bind(i,41534))).WhereClause.create(r,t);if(!n.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");y(e,t,n.fieldNames)}}(e,t,o)}(e,n,t))))}function v(e){const t=e.defaultValue;return void 0!==t&&C(e,t)?t:e.nullable?null:void 0}function F(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function S(e){return null===e||F(e)}const w="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function T(e){return null===e||w(e)}function x(e){return null!=e&&"string"==typeof e}function M(e){return null===e||x(e)}function B(){return!0}function C(e,t){let i;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":i=e.nullable?T:w;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":i=e.nullable?S:F;break;case"string":case"esriFieldTypeString":i=e.nullable?M:x;break;default:i=B}return 1===arguments.length?i:i(t)}const N=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function Z(e){return null!=e&&N.has(e.type)}function A(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var E,G;function O(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function L(e,t){return e.nullable&&null===t?null:Z(e)&&!function(e,t){const i="string"==typeof e?D(e):e;return!!i&&(i.isInteger?w(t)&&t>=i.min&&t<=i.max:t>=i.min&&t<=i.max)}(e.type,Number(t))?E.OUT_OF_RANGE:C(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const i="range"in e?e.range[0]:e.minValue,n="range"in e?e.range[1]:e.maxValue;if(+t<i||+t>n)return r.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==e.codedValues||e.codedValues.every((e=>null==e||e.code!==t)))return r.INVALID_CODED_VALUE}return null}(e.domain,t):null:G.INVALID_TYPE}function D(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return P;case"esriFieldTypeInteger":case"integer":return V;case"esriFieldTypeSingle":case"single":return R;case"esriFieldTypeDouble":case"double":return $}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(E||(E={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(G||(G={}));const P={min:-32768,max:32767,isInteger:!0},V={min:-2147483648,max:2147483647,isInteger:!0},R={min:-34e37,max:12e37,isInteger:!1},$={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function U(e,t,i){switch(e){case r.INVALID_CODED_VALUE:return`Value ${i} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${i} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case G.INVALID_TYPE:return`Value ${i} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case E.OUT_OF_RANGE:{const{min:e,max:r}=D(t.type);return`Value ${i} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},98046:(e,t,i)=>{i.d(t,{Z:()=>f});var r,n=i(43697),s=i(22303),o=i(22974),l=i(5600),a=i(75215),d=i(36030),u=i(52011),c=i(899);let h=r=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new r({fromColor:(0,o.d9)(this.fromColor),toColor:(0,o.d9)(this.toColor),algorithm:this.algorithm})}};(0,n._)([(0,d.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,n._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,n._)([(0,l.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],h.prototype,"toColor",void 0),(0,n._)([(0,l.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=r=(0,n._)([(0,u.j)("esri.rest.support.AlgorithmicColorRamp")],h);const f=h},899:(e,t,i)=>{i.d(t,{Z:()=>a});var r=i(43697),n=i(96674),s=i(5600),o=(i(67676),i(80442),i(75215),i(52011));let l=class extends n.wq{constructor(e){super(e),this.type=null}};(0,r._)([(0,s.Cb)({readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,r._)([(0,o.j)("esri.rest.support.ColorRamp")],l);const a=l},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var r,n=i(43697),s=i(22974),o=i(5600),l=(i(75215),i(52011)),a=i(98046),d=i(899);let u=r=class extends d.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new r({colorRamps:(0,s.d9)(this.colorRamps)})}};(0,n._)([(0,o.Cb)({type:[a.Z],json:{write:!0}})],u.prototype,"colorRamps",void 0),(0,n._)([(0,o.Cb)({type:["multipart"]})],u.prototype,"type",void 0),u=r=(0,n._)([(0,l.j)("esri.rest.support.MultipartColorRamp")],u);const c=u},94593:(e,t,i)=>{i.d(t,{i:()=>l,V:()=>o});var r=i(98046),n=i(899),s=i(1515);const o={key:"type",base:n.Z,typeMap:{algorithmic:r.Z,multipart:s.Z}};function l(e){return e&&e.type?"algorithmic"===e.type?r.Z.fromJSON(e):"multipart"===e.type?s.Z.fromJSON(e):null:null}},59266:(e,t,i)=>{i.d(t,{mz:()=>u,pp:()=>d,WW:()=>l,Yi:()=>a,LC:()=>o}),i(66577);var r=i(70586),n=i(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([i.e(9490),i.e(6690)]).then(i.bind(i,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const l=(e,t,i)=>u.create(e,t,i,null,["$feature"]),a=(e,t,i)=>u.create(e,t,i,null,["$feature","$view"]),d=(e,t,i,r)=>u.create(e,t,i,r,["$feature","$view"]);class u{constructor(e,t,i,r,n,s,o,l){this.script=e,this.evaluate=n;const a=Array.isArray(o)?o:o.fields;this.fields=a,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=i,this._arcadeFeature=s,this._spatialReference=l,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,i,s,l,a){const{arcade:d,Feature:c,Dictionary:h}=await o(),f=n.Z.fromJSON(t),m=d.parseScript(e,a),y=l.reduce(((e,t)=>({...e,[t]:null})),{});let p=null;(0,r.pC)(s)&&(p=new h(s),p.immutable=!0,y.$config=null);const g=d.scriptUsesGeometryEngine(m)&&d.enableGeometrySupport(),_=d.scriptUsesFeatureSet(m)&&d.enableFeatureSetSupport(),b=d.scriptIsAsync(m)&&d.enableAsyncSupport(),I={vars:y,spatialReference:f,useAsync:!!b},v=new h;v.immutable=!1,v.setField("scale",0);const F=d.compileScript(m,I);return await Promise.all([g,_,b]),new u(e,d,h,m,(e=>("$view"in e&&e.$view&&(v.setField("scale",e.$view.scale),e.$view=v),p&&(e.$config=p),F({vars:e,spatialReference:f}))),new c,i,f)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}repurposeAdapter(e){return this._arcadeFeature.repurposeFromAdapter(e,{fields:this.fields}),this._arcadeFeature}createDictionary(){return new this._arcadeDictionary}referencesMember(e){return this._arcade.referencesMember(this._syntaxTree,e)}referencesFunction(e){return this._arcade.referencesFunction(this._syntaxTree,e)}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}extractFieldLiterals(){return this._arcade.extractExpectedFieldLiterals(this._syntaxTree)}}},89164:(e,t,i)=>{i.d(t,{Z:()=>f});var r=i(43697),n=i(22303),s=i(35454),o=i(96674),l=i(5600),a=(i(67676),i(80442),i(75215),i(71715)),d=i(52011);const u=new s.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,h=class extends o.wq{constructor(e){super(e),this.id="sym"+c++,this.type=null,this.color=new n.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r._)([(0,l.Cb)({type:u.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:u.write}}})],h.prototype,"type",void 0),(0,r._)([(0,l.Cb)({type:n.Z,json:{write:{allowNull:!0}}})],h.prototype,"color",void 0),(0,r._)([(0,a.r)("color")],h.prototype,"readColor",null),h=(0,r._)([(0,d.j)("esri.symbols.Symbol")],h);const f=h}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2398],{73506:(e,t,n)=>{n.d(t,{Qp:()=>G,P_:()=>N,ut:()=>_,Hq:()=>E,zD:()=>x,tB:()=>b,nF:()=>g,VO:()=>y,Mk:()=>c,kZ:()=>O,kr:()=>z}),n(66577);var r=n(20102),o=n(70586),i=n(67900),s=n(83305),a=n(44547),l=n(6570),f=n(13473);function c(e,t,n){return!(0,a.Up)(e,t,n)}function u(e,t,n){const o=c(e,t,n);if(o&&!(0,a.kR)())throw new r.Z("rasterprojectionhelper-project","projection engine is not loaded");return o}const p=function(e,t,n,r=0){if(1===n[0])return[0,0];let o=1,i=-1,s=1,a=-1;for(let t=0;t<e.length;t+=2)isNaN(e[t])||(o=o>e[t]?e[t]:o,i=i>e[t]?i:e[t],s=s>e[t+1]?e[t+1]:s,a=a>e[t+1]?a:e[t+1]);const{cols:l,rows:f}=t,c=(i-o)/l/n[0],u=(a-s)/f/n[1],p=2*r;let m=0,h=!1,x=[0,0];for(let t=0;t<l-3;t++){for(let n=0;n<f-3;n++){const r=t*f*2+2*n,o=(e[r]+e[r+4]+e[r+4*f]+e[r+4*f+4])/4,i=(e[r+1]+e[r+5]+e[r+4*f+1]+e[r+4*f+5])/4,s=Math.abs((o-e[r+2*f+2])/c),a=Math.abs((i-e[r+2*f+3])/u);if(s+a>m&&(m=s+a,x=[s,a]),p&&m>p){h=!0;break}}if(h)break}return x},m={3395:20037508.342789244,3410:17334193.943686873,3857:20037508.342788905,3975:17367530.445161372,4087:20037508.342789244,4088:20015108.787169147,6933:17367530.445161372,32662:20037508.342789244,53001:20015086.79602057,53002:10007543.39801029,53003:20015086.79602057,53004:20015086.79602057,53016:14152803.599503474,53017:17333573.624304302,53034:20015086.79602057,53079:20015114.352186374,53080:20015114.352186374,54001:20037508.342789244,54002:10018754.171394624,54003:20037508.342789244,54004:20037508.342789244,54016:14168658.027268292,54017:17367530.44516137,54034:20037508.342789244,54079:20037508.342789244,54080:20037508.342789244,54100:20037508.342789244,54101:20037508.342789244},h=new Map;async function x(){if((0,a.kR)())return null;await(0,a.zD)()}function y(e,t,n,r=null){if(e.spatialReference.equals(t))return e;u(e.spatialReference,t,r);const i=n.center,s=new l.Z({xmin:i.x-e.x/2,xmax:i.x+e.x/2,ymin:i.y-e.y/2,ymax:i.y+e.y/2,spatialReference:e.spatialReference}),f=(0,a.iV)(s,t,r);return(0,o.Wi)(f)?null:{x:f.xmax-f.xmin,y:f.ymax-f.ymin}}function d(e,t=.01){return(0,i.c9)(e)?t/(0,i.c9)(e):0}function g(e,t,n=null,r=!0){const i=e.spatialReference;if(i.equals(t))return e;u(i,t,n);const s=(0,a.iV)(e,t,n);if(!r||!s)return s;const l=T(i,!0),f=T(t,!0),c=d(i);return c&&(0,o.pC)(l)&&(0,o.pC)(f)&&(s.x>0&&Math.abs(e.x-l[0])<c?s.x-=f[1]-f[0]:s.x<0&&Math.abs(e.x-l[1])<c&&(s.x+=f[1]-f[0])),s}function C(e){const{inSR:t,outSR:n,datumTransformation:r,preferPE:i}=e;if(t.equals(n)){const{points:t}=M(e,null);return t}if(t.isWebMercator&&n.isWGS84||t.isWGS84&&n.isWebMercator)return function(e){const{cols:t,rows:n,xres:r,yres:o,usePixelCenter:i,inSR:s,outSR:l}=e;let{xmin:c,ymax:u}=e;i&&(c+=r/2,u-=o/2);const p=[],m=[],h=Math.max(t,n);for(let e=0;e<h;e++){const i=c+r*Math.min(t,e),h=u-o*Math.min(n,e),x=(0,a.iV)(new f.Z({x:i,y:h,spatialReference:s}),l);e<=t&&p.push(x.x),e<=n&&m.push(x.y)}const x=[];for(let e=0;e<t;e++)for(let t=0;t<n;t++)x.push([p[e],m[t]]);return x}(e);if(u(t,n,r)&&i){if(t.isGeographic)return w(e);const n=v(t);if((0,o.pC)(n))return w(e)}return function(e){const{points:t}=M(e,null),n=t.map((t=>new f.Z(t[0],t[1],e.inSR)));return(0,a.iV)(n,e.outSR,e.datumTransformation).map((e=>e?[e.x,e.y]:[NaN,NaN]))}(e)}function w(e){const{inSR:t,outSR:n,datumTransformation:r}=e,i=v(t),{points:a,mask:l}=M(e,i);if(!t.isGeographic){const e=t.wkid?s.e.coordsys(t.wkid):s.e.fromString(t.isGeographic?s.f.PE_TYPE_GEOGCS:s.f.PE_TYPE_PROJCS,t.wkt);s.g.projToGeog(e,a.length,a)}if((0,o.pC)(r)&&r.steps.length&&r.steps.forEach((e=>{const t=e.wkid?s.e.geogtran(e.wkid):s.e.fromString(s.f.PE_TYPE_GEOGTRAN,e.wkt);s.h.geogToGeog(t,a.length,a,null,e.isInverse?s.f.PE_TRANSFORM_2_TO_1:s.f.PE_TRANSFORM_1_TO_2)})),!n.isGeographic){const e=v(n,!0),t=(0,o.pC)(e)&&e.isEnvelope?[e.bbox[1],e.bbox[3]]:[-90,90];!function(e,t){const[n,r]=t;for(let t=0;t<e.length;t++){const o=e[t][1];(o<n||o>r)&&(e[t]=[NaN,NaN])}}(a,t);const r=n.wkid?s.e.coordsys(n.wkid):s.e.fromString(n.isGeographic?s.f.PE_TYPE_GEOGCS:s.f.PE_TYPE_PROJCS,n.wkt);s.g.geogToProj(r,a.length,a)}let f=a;if(l&&a.length!==l.length){f=[];for(let e=0,t=0;e<l.length;e++)l[e]?f.push(a[t++]):f.push([NaN,NaN])}return f}function v(e,t=!1){let n=e.wkid||e.wkt;if(!n||e.isGeographic)return null;if(n=String(n),h.has(n)){const e=h.get(n);return t?null==e?void 0:e.gcs:null==e?void 0:e.pcs}const r=e.wkid?s.e.coordsys(e.wkid):s.e.fromString(e.isGeographic?s.f.PE_TYPE_GEOGCS:s.f.PE_TYPE_PROJCS,e.wkt),o=R(r,d(e,1e-4)),i=R(r,0,!0);return h.set(n,{pcs:o,gcs:i}),t?i:o}function R(e,t=0,n=!1){const r=s.j.generate(e),o=n?e.horizonGcsGenerate():e.horizonPcsGenerate();if(null==o||!o.length)return null;let i=!1,a=o.find((e=>1===e.getInclusive()&&1===e.getKind()));if(!a){if(a=o.find((e=>1===e.getInclusive()&&0===e.getKind())),!a)return null;i=!0}const l=r.isPannableRectangle(),f=a.getCoord();if(i)return{isEnvelope:i,isPannable:l,vertices:f,coef:null,bbox:[f[0][0]-t,f[0][1]-t,f[1][0]+t,f[1][1]+t]};let c=0;const u=[];let[p,m]=f[0],[h,x]=f[0];for(let e=0,t=f.length;e<t;e++){c++,c===t&&(c=0);const[n,r]=f[e],[o,i]=f[c];if(i===r)u.push([n,o,r,i,2]);else{const e=(o-n)/(i-r||1e-4),t=n-e*r;r<i?u.push([e,t,r,i,0]):u.push([e,t,i,r,1])}p=p<n?p:n,m=m<r?m:r,h=h>n?h:n,x=x>r?x:r}return{isEnvelope:!1,isPannable:l,vertices:f,coef:u,bbox:[p,m,h,x]}}function M(e,t){const n=[],{cols:r,rows:i,xres:s,yres:a,usePixelCenter:l}=e;let{xmin:f,ymax:c}=e;if(l&&(f+=s/2,c-=a/2),!(0,o.pC)(t)){for(let e=0;e<r;e++)for(let t=0;t<i;t++)n.push([f+s*e,c-a*t]);return{points:n}}const u=new Uint8Array(r*i);if(t.isEnvelope){const{bbox:[e,o,l,p]}=t;for(let m=0,h=0;m<r;m++){const r=f+s*m,x=t.isPannable||r>=e&&r<=l;for(let e=0;e<i;e++,h++){const t=c-a*e;x&&t>=o&&t<=p&&(n.push([r,t]),u[h]=1)}}return{points:n,mask:u}}const{coef:p}=t,m=[];for(let e=0;e<i;e++){const t=c-a*e,n=[],r=[];for(let e=0;e<p.length;e++){const[o,i,s,a,l]=p[e];if(t===s&&s===a)n.push(o),n.push(i),r.push(2),r.push(2);else if(t>=s&&t<=a){const e=o*t+i;n.push(e),r.push(l)}}let o=n;if(n.length>2){let e=2===r[0]?0:r[0],t=n[0];o=[];for(let i=1;i<r.length;i++)2===r[i]&&i!==r.length-1||(r[i]!==e&&(o.push(0===e?Math.min(t,n[i-1]):Math.max(t,n[i-1])),e=r[i],t=n[i]),i===r.length-1&&o.push(0===r[i]?Math.min(t,n[i]):Math.max(t,n[i])));o.sort(((e,t)=>e-t))}else n[0]>n[1]&&(o=[n[1],n[0]]);m.push(o)}for(let e=0,t=0;e<r;e++){const r=f+s*e;for(let e=0;e<i;e++,t++){const o=c-a*e,i=m[e];if(2===i.length)r>=i[0]&&r<=i[1]&&(n.push([r,o]),u[t]=1);else if(i.length>2){let e=!1;for(let t=0;t<i.length;t+=2)if(r>=i[t]&&r<=i[t+1]){e=!0;break}e&&(n.push([r,o]),u[t]=1)}}}return{points:n,mask:u}}function P(e){const t=_(e[0].spatialReference);if(e.length<2||!(0,o.pC)(t))return e[0];let{xmin:n,xmax:r,ymin:i,ymax:s}=e[0];for(let n=1;n<e.length;n++){const o=e[n];r=o.xmax+t*n,i=Math.min(i,o.ymin),s=Math.max(s,o.ymax)}return new l.Z({xmin:n,xmax:r,ymin:i,ymax:s,spatialReference:e[0].spatialReference})}function b(e,t,n=null,r=!0){if(e.spatialReference.equals(t))return e;const i=E(e),s=_(e.spatialReference,!0),a=_(t);if(0===i||(0,o.Wi)(s)||(0,o.Wi)(a))return S(e,t,n,r);const f=e.clone().normalize();if(1===f.length&&e.xmax<s&&e.xmax-s/2>d(e.spatialReference)){const{xmin:t,xmax:n}=e;for(let r=0;r<=i;r++){const o=0===r?t:-s/2,a=r===i?n-s*r:s/2;f[r]=new l.Z({xmin:o,xmax:a,ymin:e.ymin,ymax:e.ymax,spatialReference:e.spatialReference})}}return P(f.map((e=>S(e,t,n,r))).filter((e=>!!e)))}function S(e,t,n=null,r=!0,i=!0){const s=e.spatialReference;if(s.equals(t))return e;u(s,t,n);const l=(0,a.iV)(e,t,n);if(i&&t.isWebMercator&&l&&(l.ymax=Math.min(20037508.342787,l.ymax),l.ymin=Math.max(-20037508.342787,l.ymin),l.ymin>=l.ymax))return null;if(!r||!l)return l;const c=T(s,!0),p=T(t,!0);if((0,o.Wi)(c)||(0,o.Wi)(p))return l;const m=d(s,.001),h=d(s,500),x=d(t,.001);if(Math.abs(l.xmin-p[0])<x&&Math.abs(l.xmax-p[1])<x){const r=Math.abs(e.xmin-c[0]),o=Math.abs(c[1]-e.xmax);if(r<m&&o>h){l.xmin=p[0];const r=[];r.push(new f.Z(e.xmax,e.ymin,s)),r.push(new f.Z(e.xmax,(e.ymin+e.ymax)/2,s)),r.push(new f.Z(e.xmax,e.ymax,s));const o=r.map((e=>g(e,t,n))).filter((e=>!isNaN(null==e?void 0:e.x))).map((e=>e.x));l.xmax=Math.max.apply(null,o)}if(o<m&&r>h){l.xmax=p[1];const r=[];r.push(new f.Z(e.xmin,e.ymin,s)),r.push(new f.Z(e.xmin,(e.ymin+e.ymax)/2,s)),r.push(new f.Z(e.xmin,e.ymax,s));const o=r.map((e=>g(e,t,n))).filter((e=>!isNaN(null==e?void 0:e.x))).map((e=>e.x));l.xmin=Math.min.apply(null,o)}}else{const e=d(t,.001);Math.abs(l.xmin-p[0])<e&&(l.xmin=p[0]),Math.abs(l.xmax-p[1])<e&&(l.xmax=p[1])}return l}function _(e,t=!1){const n=t?20037508.342787:20037508.342788905;return e.isWebMercator?2*n:e.wkid&&e.isGeographic?360:2*m[e.wkid]||null}function T(e,t=!1){if(e.isGeographic)return[-180,180];const n=_(e,t);return(0,o.pC)(n)?[-n/2,n/2]:null}function k(e,t,n,r){let o=(e-t)/n;return o-Math.floor(o)!=0?o=Math.floor(o):r&&(o-=1),o}function E(e,t=!1){const n=_(e.spatialReference);if(!(0,o.pC)(n))return 0;const r=t?0:-n/2,i=d(e.spatialReference),s=!t&&Math.abs(e.xmax-n/2)<i?n/2:e.xmax,a=!t&&Math.abs(e.xmin+n/2)<i?-n/2:e.xmin;return k(s,r,n,!0)-k(a,r,n,!1)}function N(e){const t=e.storageInfo.origin.x,n=_(e.spatialReference,!0);if(!(0,o.pC)(n))return{originX:t,halfWorldWidth:null,pyramidsInfo:null};const r=n/2,{nativePixelSize:i,storageInfo:s,extent:a}=e,{maximumPyramidLevel:l,blockWidth:f,pyramidScalingFactor:c}=s;let u=i.x;const p=[],m=(0,o.pC)(e.transform)&&"gcs-shift"===e.transform.type,h=t+(m?0:r),x=m?n-t:r-t;for(let e=0;e<=l;e++){const e=(a.xmax-t)/u/f,n=e-Math.floor(e)==0?e:Math.ceil(e),r=x/u/f,o=r-Math.floor(r)==0?r:Math.ceil(r),i=Math.floor(h/u/f),s=Math.round(h/u)%f,l=(f-Math.round(x/u)%f)%f;p.push({resolutionX:u,blockWidth:f,datsetColumnCount:n,worldColumnCountFromOrigin:o,leftMargin:s,rightPadding:l,originColumnOffset:i}),u*=c}return{originX:t,halfWorldWidth:r,pyramidsInfo:p,hasGCSSShiftTransform:m}}function G(e){const t=e.isAdaptive&&null==e.spacing;let n=e.spacing||[32,32],r=Z(e),i={cols:r.size[0]+1,rows:r.size[1]+1};const s=r.outofBoundPointCount>0&&r.outofBoundPointCount<r.offsets.length/2;let a=r.outofBoundPointCount===r.offsets.length/2||t&&s?[0,0]:p(r.offsets,i,n,4);const l=(a[0]+a[1])/2;if(t&&(s||l>4)){const t=e.projectedExtent.spatialReference;c(t,e.srcBufferExtent.spatialReference,e.datumTransformation)&&(t.isGeographic||(0,o.pC)(v(t))),n=[4,4],r=Z({...e,spacing:n}),i={cols:r.size[0]+1,rows:r.size[1]+1},a=p(r.offsets,i,n,4)}return r.error=a,n[0]>1&&(r.coefficients=function(e,t,n){const{cols:r,rows:o}=t,i=new Float32Array((r-1)*(o-1)*2*6),s=new Float32Array([-0,-1,1,-1,1,-0,1,-0,-0]),a=new Float32Array([-1,1,0,0,-1,1,1,0,0]);for(let t=0;t<r-1;t++){for(let n=0;n<o-1;n++){let l=t*o*2+2*n;const f=e[l],c=e[l+1],u=e[l+2],p=e[l+3];l+=2*o;const m=e[l],h=e[l+1],x=e[l+2],y=e[l+3];let d=0,g=12*(n*(r-1)+t);for(let e=0;e<3;e++)i[g++]=s[d++]*f+s[d++]*u+s[d++]*x;d=0;for(let e=0;e<3;e++)i[g++]=s[d++]*c+s[d++]*p+s[d++]*y;d=0;for(let e=0;e<3;e++)i[g++]=a[d++]*f+a[d++]*m+a[d++]*x;d=0;for(let e=0;e<3;e++)i[g++]=a[d++]*c+a[d++]*h+a[d++]*y}if(n)for(let e=0;e<i.length;e++)isNaN(i[e])&&(i[e]=-1)}return i}(r.offsets,i,s)),r}function Z(e){const{projectedExtent:t,srcBufferExtent:n,pixelSize:r,datumTransformation:i,rasterTransform:s}=e,a=t.spatialReference,l=n.spatialReference;u(a,l);const{xmin:c,ymin:p,xmax:m,ymax:h}=t,x=_(l),y=(0,o.pC)(x)&&(e.hasWrapAround||"gcs-shift"===(null==s?void 0:s.type)),g=e.spacing||[32,32],w=g[0]*r.x,v=g[1]*r.y,R=1===g[0],M=Math.ceil((m-c)/w-.1/g[0])+(R?0:1),P=Math.ceil((h-p)/v-.1/g[1])+(R?0:1),b=C({cols:M,rows:P,xmin:c,ymax:h,xres:w,yres:v,inSR:a,outSR:l,datumTransformation:i,preferPE:g[0]<=4,usePixelCenter:R}),S=[];let T,k=0;const E=R?-1:NaN,{xmin:N,xmax:G,ymax:Z,width:O,height:z}=n,W=d(l,500);for(let e=0;e<M;e++){const t=[];for(let n=0;n<P;n++){let r=b[e*P+n];if(y&&r[0]>G&&r[0]>x/2-W&&(r[0]-=x),!r||isNaN(r[0])||isNaN(r[1]))S.push(E),S.push(E),t.push(null),k++;else{if(s){const e=s.inverseTransform(new f.Z({x:r[0],y:r[1],spatialReference:l}));r=[e.x,e.y]}t.push(r),e>0&&y&&T[n]&&r[0]<T[n][0]&&(r[0]+=x),S.push((r[0]-N)/O),S.push((Z-r[1])/z)}}T=t}return{offsets:S,error:null,coefficients:null,outofBoundPointCount:k,spacing:g,size:R?[M,P]:[M-1,P-1]}}function O(e){const t=e.clone().normalize();return 1===t.length?t[0]:P(t)}function z(e,t,n){const{storageInfo:r,pixelSize:i}=t;let s,a=!1;const{pyramidResolutions:l}=r;if((0,o.pC)(l)&&l.length){const r=(e.x+e.y)/2,o=l[l.length-1],c=(o.x+o.y)/2,u=(i.x+i.y)/2;if(r<=u)s=0;else if(r>=c)s=l.length,a=r/c>8;else{let e,t=u;for(let o=1;o<=l.length;o++){if(e=(l[o-1].x+l[o-1].y)/2,r<=e){r===e?s=o:"down"===n?(s=o-1,a=r/t>8):s="up"===n||r-t>e-r||r/t>2?o:o-1;break}t=e}}const p=0===s?i:l[s-1];return{pyramidLevel:s,pyramidResolution:new f.Z({x:p.x,y:p.y,spatialReference:t.spatialReference}),excessiveReading:a}}const c=Math.log(e.x/i.x)/Math.LN2,u=Math.log(e.y/i.y)/Math.LN2,p=t.storageInfo.maximumPyramidLevel||0;s="down"===n?Math.floor(Math.min(c,u)):"up"===n?Math.ceil(Math.max(c,u)):Math.round((c+u)/2),s<0?s=0:s>p&&(a=s>p+3,s=p);const m=2**s;return{pyramidLevel:s,pyramidResolution:new f.Z({x:m*t.nativePixelSize.x,y:m*t.nativePixelSize.y,spatialReference:t.spatialReference}),excessiveReading:a}}},48700:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(43697),o=n(96674),i=n(5600),s=(n(67676),n(80442),n(75215),n(52011));let a=class extends o.wq{get affectsPixelSize(){return!1}forwardTransform(e){return e}inverseTransform(e){return e}};(0,r._)([(0,i.Cb)()],a.prototype,"affectsPixelSize",null),(0,r._)([(0,i.Cb)({json:{write:!0}})],a.prototype,"spatialReference",void 0),a=(0,r._)([(0,s.j)("esri.layers.support.rasterTransforms.BaseRasterTransform")],a);const l=a},29680:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(43697),o=n(5600),i=(n(67676),n(80442),n(75215),n(36030)),s=n(52011),a=n(48700);let l=class extends a.Z{constructor(){super(...arguments),this.type="gcs-shift",this.tolerance=1e-8}forwardTransform(e){return"point"===(e=e.clone()).type?(e.x>180+this.tolerance&&(e.x-=360),e):(e.xmin>=180-this.tolerance?(e.xmax-=360,e.xmin-=360):e.xmax>180+this.tolerance&&(e.xmin=-180,e.xmax=180),e)}inverseTransform(e){return"point"===(e=e.clone()).type?(e.x<-this.tolerance&&(e.x+=360),e):(e.xmin<-this.tolerance&&(e.xmin+=360,e.xmax+=360),e)}};(0,r._)([(0,i.J)({GCSShiftXform:"gcs-shift"})],l.prototype,"type",void 0),(0,r._)([(0,o.Cb)()],l.prototype,"tolerance",void 0),l=(0,r._)([(0,s.j)("esri.layers.support.rasterTransforms.GCSShiftTransform")],l);const f=l},87390:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(43697),o=(n(66577),n(5600)),i=(n(67676),n(80442),n(75215),n(36030)),s=n(71715),a=n(52011),l=n(30556),f=n(48700),c=n(13473),u=n(6570);function p(e,t,n){const{x:r,y:o}=t;if(n<2)return{x:e[0]+r*e[2]+o*e[4],y:e[1]+r*e[3]+o*e[5]};if(2===n){const t=r*r,n=o*o,i=r*o;return{x:e[0]+r*e[2]+o*e[4]+t*e[6]+i*e[8]+n*e[10],y:e[1]+r*e[3]+o*e[5]+t*e[7]+i*e[9]+n*e[11]}}const i=r*r,s=o*o,a=r*o,l=i*r,f=i*o,c=r*s,u=o*s;return{x:e[0]+r*e[2]+o*e[4]+i*e[6]+a*e[8]+s*e[10]+l*e[12]+f*e[14]+c*e[16]+u*e[18],y:e[1]+r*e[3]+o*e[5]+i*e[7]+a*e[9]+s*e[11]+l*e[13]+f*e[15]+c*e[17]+u*e[19]}}function m(e,t,n){const{xmin:r,ymin:o,xmax:i,ymax:s,spatialReference:a}=t;let l=[];if(n<2)l.push({x:r,y:s}),l.push({x:i,y:s}),l.push({x:r,y:o}),l.push({x:i,y:o});else{let e=10;for(let t=0;t<e;t++)l.push({x:r,y:o+(s-o)*t/(e-1)}),l.push({x:i,y:o+(s-o)*t/(e-1)});e=8;for(let t=1;t<=e;t++)l.push({x:r+(i-r)*t/e,y:o}),l.push({x:r+(i-r)*t/e,y:s})}l=l.map((t=>p(e,t,n)));const f=l.map((e=>e.x)),c=l.map((e=>e.y));return new u.Z({xmin:Math.min.apply(null,f),xmax:Math.max.apply(null,f),ymin:Math.min.apply(null,c),ymax:Math.max.apply(null,c),spatialReference:a})}let h=class extends f.Z{constructor(){super(...arguments),this.polynomialOrder=1,this.type="polynomial"}readForwardCoefficients(e,t){const{coeffX:n,coeffY:r}=t;if(null==n||!n.length||null==r||!r.length||n.length!==r.length)return null;const o=[];for(let e=0;e<n.length;e++)o.push(n[e]),o.push(r[e]);return o}writeForwardCoefficients(e,t,n){const r=[],o=[];for(let t=0;t<(null==e?void 0:e.length);t++)t%2==0?r.push(e[t]):o.push(e[t]);t.coeffX=r,t.coeffY=o}get inverseCoefficients(){let e=this._get("inverseCoefficients");const t=this._get("forwardCoefficients");return!e&&t&&this.polynomialOrder<2&&(e=function(e){const[t,n,r,o,i,s]=e,a=r*s-i*o,l=i*o-r*s;return[(i*n-t*s)/a,(r*n-t*o)/l,s/a,o/l,-i/a,-r/l]}(t)),e}set inverseCoefficients(e){this._set("inverseCoefficients",e)}readInverseCoefficients(e,t){const{inverseCoeffX:n,inverseCoeffY:r}=t;if(null==n||!n.length||null==r||!r.length||n.length!==r.length)return null;const o=[];for(let e=0;e<n.length;e++)o.push(n[e]),o.push(r[e]);return o}writeInverseCoefficients(e,t,n){const r=[],o=[];for(let t=0;t<(null==e?void 0:e.length);t++)t%2==0?r.push(e[t]):o.push(e[t]);t.inverseCoeffX=r,t.inverseCoeffY=o}get affectsPixelSize(){return this.polynomialOrder>0}forwardTransform(e){if("point"===e.type){const t=p(this.forwardCoefficients,e,this.polynomialOrder);return new c.Z({x:t.x,y:t.y,spatialReference:e.spatialReference})}return m(this.forwardCoefficients,e,this.polynomialOrder)}inverseTransform(e){if("point"===e.type){const t=p(this.inverseCoefficients,e,this.polynomialOrder);return new c.Z({x:t.x,y:t.y,spatialReference:e.spatialReference})}return m(this.inverseCoefficients,e,this.polynomialOrder)}};(0,r._)([(0,o.Cb)({json:{write:!0}})],h.prototype,"polynomialOrder",void 0),(0,r._)([(0,o.Cb)()],h.prototype,"forwardCoefficients",void 0),(0,r._)([(0,s.r)("forwardCoefficients",["coeffX","coeffY"])],h.prototype,"readForwardCoefficients",null),(0,r._)([(0,l.c)("forwardCoefficients")],h.prototype,"writeForwardCoefficients",null),(0,r._)([(0,o.Cb)({json:{write:!0}})],h.prototype,"inverseCoefficients",null),(0,r._)([(0,s.r)("inverseCoefficients",["inverseCoeffX","inverseCoeffY"])],h.prototype,"readInverseCoefficients",null),(0,r._)([(0,l.c)("inverseCoefficients")],h.prototype,"writeInverseCoefficients",null),(0,r._)([(0,o.Cb)()],h.prototype,"affectsPixelSize",null),(0,r._)([(0,i.J)({PolynomialXform:"polynomial"})],h.prototype,"type",void 0),h=(0,r._)([(0,a.j)("esri.layers.support.rasterTransforms.PolynomialTransform")],h);const x=h},87521:(e,t,n)=>{n.d(t,{j:()=>m,c:()=>h});var r=n(29680),o=n(43697),i=(n(92604),n(75215),n(67676),n(80442),n(37697),n(36030)),s=n(52011),a=n(48700);let l=class extends a.Z{constructor(){super(...arguments),this.type="identity"}};(0,o._)([(0,i.J)({IdentityXform:"identity"})],l.prototype,"type",void 0),l=(0,o._)([(0,s.j)("esri.layers.support.rasterTransforms.IdentityTransform")],l);const f=l;var c=n(87390);const u={GCSShiftXform:r.Z,IdentityXform:f,PolynomialXform:c.Z},p=Object.keys(u);function m(e){const t=null==e?void 0:e.type;return!e||p.includes(t)}function h(e){if(!(null==e?void 0:e.type))return null;const t=u[null==e?void 0:e.type];if(t){const n=new t;return n.read(e),n}return null}}}]);