@arcgis/core 4.23.0-next.20220127 → 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 (312) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0463ba46df855a92b9c0.js +1 -0
  3. package/assets/esri/core/workers/chunks/{e657ba0cab29f05d02da.js → 0cd0a6eef51fc5b9ea61.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{e4896cf85fb2da8a9cc7.js → 17de7a324dfa7f57ad5d.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{c36f84daa7736878418d.js → 197ec52641aed20029c6.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{0317f37b6c8705b363fd.js → 1c733b7db092a2a88ef3.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{9387db408f496e7dd003.js → 214910032945dd2d86b0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{d835b2a683fcd8aeeed8.js → 27474b007988855bea9d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{8001b0e514bfffe9d7f8.js → 357033117dfe61eb81ea.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{5948923e07bd1662c24a.js → 37c03cfc19086ce631c6.js} +1 -1
  11. package/assets/esri/core/workers/chunks/3c673495e5f507c4a9e5.js +1 -0
  12. package/assets/esri/core/workers/chunks/44f0c3663b293afbd172.js +1 -0
  13. package/assets/esri/core/workers/chunks/483d5d8593d96d0f0b15.js +1 -0
  14. package/assets/esri/core/workers/chunks/49a1a633bb0d93764aae.js +1 -0
  15. package/assets/esri/core/workers/chunks/{5f1dcb6556820cd0aa31.js → 4be35af7d6babbfe9d84.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{f9ff3eaf4eb324429fbd.js → 5457962a70bd3c557a75.js} +1 -1
  17. package/assets/esri/core/workers/chunks/57856b4a9b8784a69844.js +1 -0
  18. package/assets/esri/core/workers/chunks/{56274b37ff74ca0d68a6.js → 5d11b97b667921d67ae7.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{ba5eb394f098968c22d2.js → 655b55ac0cd533d7e9d7.js} +1 -1
  20. package/assets/esri/core/workers/chunks/7903a3e2e0faff0f86c0.js +1 -0
  21. package/assets/esri/core/workers/chunks/918bb7a7d901544a7367.js +1 -0
  22. package/assets/esri/core/workers/chunks/949b2269457302ffc64b.js +1 -0
  23. package/assets/esri/core/workers/chunks/{601e697dc7414bda128a.js → 952980635afc7ec81804.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{e8741bf421f80213f1d3.js → 9876a1bae350795fab36.js} +1 -1
  25. package/assets/esri/core/workers/chunks/99619fcb772807c74f3b.js +1 -0
  26. package/assets/esri/core/workers/chunks/{3f343f792fd9f44d6f25.js → b3f5e91116112b0b612a.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{4c76146014dc15143ba3.js → be588873c16770ceb9ef.js} +1 -1
  28. package/assets/esri/core/workers/chunks/d1fe53b597351dc58305.js +1 -0
  29. package/assets/esri/core/workers/chunks/{b62e3dccd9f662c0afeb.js → db3c729ce0c0b2690dc9.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{199670a3a564ebe3bd79.js → e218bde41ffbcc5194f5.js} +1 -1
  31. package/assets/esri/core/workers/chunks/e21b211913aefde47e30.js +1 -0
  32. package/assets/esri/core/workers/chunks/{c9cbf8135e95f0f42cd9.js → e287f49184d076af17e2.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{bde1d5b0a7717350986e.js → e4019b63a1fe74e2c842.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{6e6a3c5866e8d8820457.js → eb82ff10cef2bde6e57f.js} +1 -1
  35. package/assets/esri/core/workers/chunks/ebc6f4764b82d4104c65.js +1 -0
  36. package/assets/esri/core/workers/chunks/{842db82733635dbf25cb.js → ee6e0db58dc64410e687.js} +1 -1
  37. package/assets/esri/core/workers/chunks/f0a9f161805fc7a30fc5.js +1 -0
  38. package/assets/esri/core/workers/chunks/ff6abdc72076f3994659.js +981 -0
  39. package/chunks/BlendLayers.glsl.js +2 -2
  40. package/chunks/ChapmanAtmosphere.glsl.js +17 -17
  41. package/chunks/CheckerBoard.glsl.js +3 -3
  42. package/chunks/Clouds.glsl.js +2 -2
  43. package/chunks/CloudsComposition.glsl.js +1 -1
  44. package/chunks/ColorMaterial.glsl.js +12 -12
  45. package/chunks/ComponentShader.glsl.js +3 -3
  46. package/chunks/Compositing.glsl.js +1 -1
  47. package/chunks/DefaultMaterial.glsl.js +33 -33
  48. package/chunks/EdgeShaderProgram.glsl.js +7 -7
  49. package/chunks/Fog.glsl.js +10 -12
  50. package/chunks/HUDMaterial.glsl.js +2 -2
  51. package/chunks/HighlightComposition.glsl.js +5 -5
  52. package/chunks/ImageMaterial.glsl.js +6 -6
  53. package/chunks/LaserlinePath.glsl.js +8 -8
  54. package/chunks/LineCallout.glsl.js +6 -6
  55. package/chunks/MeasurementArrow.glsl.js +1 -1
  56. package/chunks/NativeLine.glsl.js +1 -1
  57. package/chunks/Path.glsl.js +5 -5
  58. package/chunks/Pattern.glsl.js +9 -9
  59. package/chunks/PointRenderer.glsl.js +14 -14
  60. package/chunks/Precipitation.glsl.js +2 -2
  61. package/chunks/RealisticTree.glsl.js +21 -21
  62. package/chunks/RibbonLine.glsl.js +11 -11
  63. package/chunks/SMAA.glsl.js +40 -40
  64. package/chunks/ShadedColorMaterial.glsl.js +12 -12
  65. package/chunks/ShadowCast.glsl.js +6 -6
  66. package/chunks/ShadowHighlight.glsl.js +4 -4
  67. package/chunks/SimpleAtmosphere.glsl.js +3 -3
  68. package/chunks/SlicePlaneMaterial.glsl.js +3 -3
  69. package/chunks/Stars.glsl.js +3 -3
  70. package/chunks/Terrain.glsl.js +11 -11
  71. package/chunks/TextureOnly.glsl.js +2 -2
  72. package/chunks/WaterSurface.glsl.js +5 -5
  73. package/chunks/boundedPlane.js +1 -1
  74. package/core/accessorSupport/watch.js +1 -1
  75. package/core/loadAll.js +1 -1
  76. package/geometry/support/frustum.js +1 -1
  77. package/geometry/support/plane.js +1 -1
  78. package/interfaces.d.ts +204 -10
  79. package/layers/VectorTileLayer.js +1 -1
  80. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  81. package/layers/graphics/featureConversionUtils.js +1 -1
  82. package/layers/support/LayerContingentValuesCache.js +1 -1
  83. package/layers/support/TileInfo.js +1 -1
  84. package/package.json +1 -1
  85. package/smartMapping/statistics/support/predominanceUtils.d.ts +4 -0
  86. package/support/revision.js +1 -1
  87. package/symbols/FillSymbol3DLayer.js +1 -1
  88. package/symbols/IconSymbol3DLayer.js +1 -1
  89. package/symbols/ObjectSymbol3DLayer.js +1 -1
  90. package/symbols/Symbol3D.js +1 -1
  91. package/symbols/WebStyleSymbol.js +1 -1
  92. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  93. package/symbols/support/IconSymbol3DLayerResource.js +1 -1
  94. package/symbols/support/ObjectSymbol3DLayerResource.js +1 -1
  95. package/symbols/support/Symbol3DAnchorPosition2D.js +1 -1
  96. package/symbols/support/Symbol3DAnchorPosition3D.js +1 -1
  97. package/symbols/support/Symbol3DFillMaterial.js +1 -1
  98. package/symbols/support/Symbol3DIconOutline.js +1 -1
  99. package/symbols/support/Symbol3DOutline.js +1 -1
  100. package/symbols/support/Thumbnail.js +1 -1
  101. package/symbols/support/webStyleSymbolUtils.js +1 -1
  102. package/views/2d/engine/vectorTiles/SchemaHelper.js +1 -1
  103. package/views/3d/environment/ChapmanAtmosphere.glsl.js +1 -1
  104. package/views/3d/environment/ChapmanAtmosphere.js +1 -1
  105. package/views/3d/environment/CloudsComposition.glsl.js +1 -1
  106. package/views/3d/environment/CloudsGenerator.js +1 -1
  107. package/views/3d/environment/Fog.glsl.js +1 -1
  108. package/views/3d/environment/Fog.js +1 -1
  109. package/views/3d/environment/PanoramicAtmosphere.js +1 -1
  110. package/views/3d/environment/Precipitation.glsl.js +1 -1
  111. package/views/3d/environment/Precipitation.js +1 -1
  112. package/views/3d/environment/PrecipitationTechnique.js +1 -1
  113. package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
  114. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  115. package/views/3d/environment/Stars.glsl.js +1 -1
  116. package/views/3d/environment/Stars.js +1 -1
  117. package/views/3d/interactive/analysisTools/slice/sliceToolUtils.js +1 -1
  118. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  119. package/views/3d/interactive/visualElements/MeasurementAreaVisualElement.js +1 -1
  120. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  121. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  122. package/views/3d/interactive/visualElements/PointVisualElement.js +1 -1
  123. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  124. package/views/3d/layers/FeatureLayerViewBase3D.js +1 -1
  125. package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
  126. package/views/3d/layers/I3SMeshView3D.js +1 -1
  127. package/views/3d/layers/VectorTileLayerView3D.js +1 -1
  128. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  129. package/views/3d/layers/graphics/ElevationAligners.js +1 -1
  130. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  131. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  132. package/views/3d/layers/graphics/Graphics3DLineCalloutSymbolLayer.js +1 -1
  133. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  134. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  135. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  136. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  137. package/views/3d/layers/graphics/lineUtils.js +1 -1
  138. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  139. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  140. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  141. package/views/3d/layers/i3s/I3SBinaryReader.js +1 -1
  142. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  143. package/views/3d/layers/support/HeatmapFeatureProcessor.js +5 -0
  144. package/views/3d/layers/support/overlayImageUtils.js +1 -1
  145. package/views/3d/layers/support/patternUtils.js +1 -1
  146. package/views/3d/state/controllers/local/PinchAndPanController.js +1 -1
  147. package/views/3d/support/FrustumExtentIntersection.js +1 -1
  148. package/views/3d/support/LaserLineRenderer.js +1 -1
  149. package/views/3d/support/LaserlinePathData.js +1 -1
  150. package/views/3d/terrain/OverlayRenderer.js +1 -1
  151. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  152. package/views/3d/terrain/TerrainRenderer.js +1 -1
  153. package/views/3d/terrain/TerrainSurface.js +1 -1
  154. package/views/3d/terrain/Tile.js +1 -1
  155. package/views/3d/terrain/terrainUtils.js +1 -1
  156. package/views/3d/terrain/tileUtils.js +1 -1
  157. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  158. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  159. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
  160. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentData.glsl.js +10 -10
  161. package/views/3d/webgl-engine/collections/Component/Material/shader/ComponentShader.glsl.js +1 -1
  162. package/views/3d/webgl-engine/collections/Component/SourceGeometry.js +1 -1
  163. package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
  164. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  165. package/views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js +2 -2
  166. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSizeScaling.glsl.js +2 -2
  167. package/views/3d/webgl-engine/core/shaderLibrary/ScreenSpacePass.js +2 -2
  168. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +2 -2
  169. package/views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js +4 -4
  170. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PathVertexPosition.glsl.js +1 -1
  171. package/views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js +1 -1
  172. package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +1 -1
  173. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +1 -1
  174. package/views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js +3 -3
  175. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js +1 -1
  176. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js +6 -6
  177. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexPosition.glsl.js +12 -12
  178. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +4 -4
  179. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js +1 -1
  180. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +16 -16
  181. package/views/3d/webgl-engine/core/shaderLibrary/default/RealisticTree.glsl.js +1 -1
  182. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +5 -5
  183. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js +3 -3
  184. package/views/3d/webgl-engine/core/shaderLibrary/raster/BasicGrid.glsl.js +2 -2
  185. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeMaterialColor.glsl.js +6 -6
  186. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +2 -2
  187. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeShadingNormal.glsl.js +10 -11
  188. package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +2 -2
  189. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassGeometryTest.glsl.js +2 -2
  190. package/views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js +2 -2
  191. package/views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js +6 -6
  192. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -4
  193. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -6
  194. package/views/3d/webgl-engine/core/shaderLibrary/shading/Reprojection.glsl.js +4 -4
  195. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceReflections.glsl.js +5 -5
  196. package/views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js +1 -1
  197. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +10 -10
  198. package/views/3d/webgl-engine/core/shaderLibrary/terrain/Terrain.glsl.js +1 -1
  199. package/views/3d/webgl-engine/core/shaderLibrary/util/BlendLayers.glsl.js +1 -1
  200. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +4 -4
  201. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  202. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  203. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  204. package/views/3d/webgl-engine/lib/DefaultVertexBufferLayouts.js +1 -1
  205. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  206. package/views/3d/webgl-engine/lib/GeometryUtil.js +1 -1
  207. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  208. package/views/3d/webgl-engine/lib/MagnifierHelper.js +1 -1
  209. package/views/3d/webgl-engine/lib/Material.js +1 -1
  210. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  211. package/views/3d/webgl-engine/lib/SSAOHelper.js +1 -1
  212. package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
  213. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  214. package/views/3d/webgl-engine/lib/SmaaRenderPass.js +1 -1
  215. package/views/3d/webgl-engine/lib/TextTextureAtlas.js +1 -1
  216. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  217. package/views/3d/webgl-engine/lib/TextureUniformName.js +4 -0
  218. package/views/3d/webgl-engine/lib/UniformName.js +4 -0
  219. package/views/3d/webgl-engine/lib/VertexAttribute.js +5 -0
  220. package/views/3d/webgl-engine/lib/basicInterfaces.js +1 -1
  221. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  222. package/views/3d/webgl-engine/lib/edgeRendering/EdgeRenderer.js +1 -1
  223. package/views/3d/webgl-engine/lib/edgeRendering/EdgeShaderTechnique.js +1 -1
  224. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  225. package/views/3d/webgl-engine/lib/edgeRendering/bufferLayouts.js +1 -1
  226. package/views/3d/webgl-engine/lib/lodRendering/InstanceData.js +1 -1
  227. package/views/3d/webgl-engine/lib/lodRendering/RenderInstanceData.js +1 -1
  228. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  229. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  230. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  231. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  232. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  233. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  234. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  235. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  236. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  237. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  238. package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
  239. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  240. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  241. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  242. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  243. package/views/3d/webgl-engine/materials/VisualVariableMaterialParameters.js +1 -1
  244. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  245. package/views/3d/webgl-engine/materials/internal/DefaultBufferWriter.js +1 -1
  246. package/views/3d/webgl-engine/materials/internal/MaterialUtil.js +1 -1
  247. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  248. package/views/3d/webgl-engine/materials/internal/waterMaterialUtils.js +1 -1
  249. package/views/3d/webgl-engine/shaders/CheckerBoard.glsl.js +1 -1
  250. package/views/3d/webgl-engine/shaders/CheckerBoardTechnique.js +1 -1
  251. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  252. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  253. package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
  254. package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
  255. package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
  256. package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
  257. package/views/3d/webgl-engine/shaders/HighlightComposition.glsl.js +1 -1
  258. package/views/3d/webgl-engine/shaders/HighlightTechnique.js +1 -1
  259. package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
  260. package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
  261. package/views/3d/webgl-engine/shaders/LaserlinePath.glsl.js +1 -1
  262. package/views/3d/webgl-engine/shaders/LaserlinePathTechnique.js +1 -1
  263. package/views/3d/webgl-engine/shaders/LineCallout.glsl.js +1 -1
  264. package/views/3d/webgl-engine/shaders/LineCalloutTechnique.js +1 -1
  265. package/views/3d/webgl-engine/shaders/Magnifier.glsl.js +1 -1
  266. package/views/3d/webgl-engine/shaders/MeasurementArrow.glsl.js +1 -1
  267. package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
  268. package/views/3d/webgl-engine/shaders/Pattern.glsl.js +1 -1
  269. package/views/3d/webgl-engine/shaders/PatternTechnique.js +1 -1
  270. package/views/3d/webgl-engine/shaders/PointRenderer.glsl.js +1 -1
  271. package/views/3d/webgl-engine/shaders/RealisticTreeTechnique.js +1 -1
  272. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  273. package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
  274. package/views/3d/webgl-engine/shaders/SMAA.glsl.js +1 -1
  275. package/views/3d/webgl-engine/shaders/ShadedColorMaterial.glsl.js +1 -1
  276. package/views/3d/webgl-engine/shaders/ShadedColorMaterialTechnique.js +1 -1
  277. package/views/3d/webgl-engine/shaders/ShadowCastTechnique.js +1 -1
  278. package/views/3d/webgl-engine/shaders/ShadowHighlightTechnique.js +1 -1
  279. package/views/3d/webgl-engine/shaders/SlicePlaneMaterial.glsl.js +1 -1
  280. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  281. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/AdjustProjectedPosition.glsl.js +10 -10
  282. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/DiscardShortEdges.glsl.js +1 -1
  283. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeShaderProgram.glsl.js +1 -1
  284. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/EdgeUtil.glsl.js +21 -21
  285. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineAmplitude.glsl.js +6 -6
  286. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/LineOffset.glsl.js +13 -13
  287. package/views/3d/webgl-engine/shaders/sources/edgeRenderer/UnpackAttributes.glsl.js +6 -6
  288. package/views/SceneView.js +1 -1
  289. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  290. package/views/support/WatchUpdatingTracking.js +1 -1
  291. package/views/webgl/BufferObject.js +1 -1
  292. package/views/webgl/InstanceCounter.js +1 -1
  293. package/views/webgl/Program.js +1 -1
  294. package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
  295. package/widgets/FeatureTemplates/FeatureTemplatesViewModel.js +1 -1
  296. package/widgets/Search/support/locatorUtils.js +1 -1
  297. package/widgets/Search.js +1 -1
  298. package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +0 -1
  299. package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +0 -1
  300. package/assets/esri/core/workers/chunks/392b6382e06652dd4c80.js +0 -1
  301. package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +0 -1
  302. package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +0 -1
  303. package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +0 -1
  304. package/assets/esri/core/workers/chunks/663ad15b86936eb06b69.js +0 -1
  305. package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +0 -1
  306. package/assets/esri/core/workers/chunks/9796d54ff12b6429164a.js +0 -1
  307. package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +0 -1
  308. package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +0 -1
  309. package/assets/esri/core/workers/chunks/de6cff7b6cbbf99b20d1.js +0 -981
  310. package/assets/esri/core/workers/chunks/dee9929d95e9fe26929c.js +0 -1
  311. package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +0 -1
  312. package/assets/esri/core/workers/chunks/e59764ee8cf25d4f74e2.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6204],{1692:(e,t,n)=>{n.d(t,{Z:()=>S});var r=n(43697),i=n(66577),s=n(51773),o=n(78223),a=n(15923),l=(n(80442),n(22974)),u=n(92604),c=n(70586),d=n(31263),f=n(1153),p=n(52011);u.Z.getLogger("esri.core.Clonable");const h=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,f.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,n=e.store,r={},i=new Map;for(const e in t){const s=t[e],o=null==n?void 0:n.originOf(e);if(s.readOnly||!1===s.clonable||o!==d.s3.USER&&o!==d.s3.DEFAULTS)continue;const a=this[e];let u=null;const c=s.clonable;u="function"==typeof c?c(a):"reference"===c?a:(0,l.Vo)(a),null!=a&&null==u||(o===d.s3.DEFAULTS?i.set(e,u):r[e]=u)}const s=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){var o;const e=null==(o=(0,f.vw)(s))?void 0:o.store;if(e)for(const[t,n]of i)e.set(t,n,d.s3.DEFAULTS)}return s}};return t=(0,r._)([(0,p.j)("esri.core.Clonable")],t),t};let m=class extends(h(a.Z)){};m=(0,r._)([(0,p.j)("esri.core.Clonable")],m);var y=n(96674),g=n(99001),v=n(5600),b=(n(67676),n(75215),n(33955));let w=class extends(h(y.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,n,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:n,popupTemplate:r}}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 n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,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,n,r){if(!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}};(0,r._)([(0,v.Cb)({value:null})],w.prototype,"attributes",null),(0,r._)([(0,v.Cb)({value:null,types:i.qM,json:{read:b.im}})],w.prototype,"geometry",null),(0,r._)([(0,v.Cb)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,r._)([(0,v.Cb)({clonable:"reference"})],w.prototype,"layer",void 0),(0,r._)([(0,v.Cb)({type:s.Z})],w.prototype,"popupTemplate",void 0),(0,r._)([(0,v.Cb)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,r._)([(0,v.Cb)({value:null,types:o.LB})],w.prototype,"symbol",null),(0,r._)([(0,v.Cb)({type:Boolean,value:!0})],w.prototype,"visible",null),w=(0,r._)([(0,p.j)("esri.Graphic")],w),(w||(w={})).generateUID=g.D;const S=w},3920:(e,t,n)=>{n.d(t,{r:()=>c,p:()=>u});var r=n(43697),i=n(15923),s=n(61247),o=n(5600),a=n(52011),l=n(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 l.t}};return(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,a.j)("esri.core.HandleOwner")],t),t};let c=class extends(u(i.Z)){};c=(0,r._)([(0,a.j)("esri.core.HandleOwner")],c)},36030:(e,t,n)=>{n.d(t,{J:()=>s});var r=n(35454),i=n(5600);function s(e,t={}){var n;const s=e instanceof r.X?e:new r.X(e,t),o={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?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,n)=>{function r(e){}n.d(t,{Bg:()=>r}),n(80442)},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=i(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{vT:()=>r,on:()=>i,IH:()=>s})},95330:(e,t,n)=>{n.d(t,{e4:()=>U,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>S,hh:()=>V,vr:()=>E,Ds:()=>F,as:()=>x,WW:()=>_,R8:()=>w,D_:()=>b,Hc:()=>p,y8:()=>O,fu:()=>y,$F:()=>g,d1:()=>C,DB:()=>T,r9:()=>h,k_:()=>d,H9:()=>m,Yn:()=>N,gx:()=>I,Hl:()=>v});const r=(i=globalThis,{setTimeout:(e,t)=>{const n=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(n)}}});var i,s=n(20102),o=n(91460),a=(n(92604),n(70586));function l(e){return Promise.all(e)}function u(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new s.Z("AbortError",e)}function d(e,t="Aborted"){if(p(e))throw c(t)}function f(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=f(e);return(0,a.pC)(t)&&t.aborted}function h(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function y(e,t){const n=f(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,o.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=f(e);if(!(0,a.Wi)(n))return d(n),(0,o.IH)(n,"abort",(()=>t(c())))}function v(e,t){const n=f(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let i=y(t,(()=>r(c())));const s=()=>i=(0,a.hw)(i);e.then(s,s),e.then(n,r)}))}function b(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!b(e))throw e}))}function S(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function x(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return x(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return u((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};n.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function _(e){return x(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function C(e){return Promise.reject(e)}function T(e){return Promise.resolve(e)}function U(e,t,n){const r=new AbortController;return y(n,(()=>r.abort())),new Promise(((n,i)=>{let s=setTimeout((()=>{s=0,n(t)}),e);y(r,(()=>{s&&(clearTimeout(s),i(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function I(e){return O(e)?e:Promise.resolve(e)}function F(e,t=-1){let n,r,i,s,o=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=S();const e=(0,a.j0)(s.promise);if(o){const e=o;o=null,e.abort()}return e}if(i=s||S(),s=null,t>0){const r=new AbortController;n=I(e(...u,r.signal));const i=n;U(t).then((()=>{n===i&&(s?r.abort():o=r)}))}else n=1,n=I(e(...u));const d=()=>{const e=r;r=i=n=o=null,null!=e&&l(...e)},f=n,p=i;return f.then(d,d),f.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function V(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),i=t=>{e(t)};return i.resolve=t=>e(t),i.reject=e=>t(e),i.timeout=(e,t)=>r.setTimeout((()=>i.reject(t)),e),i.promise=n,i}function E(e,t){let n,r=new AbortController;const i=e(r.signal);let s={promise:i,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const o=()=>{s&&(s.finished=!0,s=null),(0,a.pC)(n)&&(n.remove(),n=null),r=null};return i.then(o,o),n=y(t,(()=>{(0,a.pC)(s)&&s.abort()})),s}function N(e){return Promise.resolve().then((()=>{d(e)}))}},67900:(e,t,n)=>{n.d(t,{gV:()=>P,En:()=>_,Z7:()=>F,c9:()=>I,_R:()=>U,qE:()=>N,cM:()=>O,hd:()=>c,ty:()=>C,Jo:()=>R,$C:()=>T}),n(80442);var r=n(35454),i=n(70586),s=n(24678),o=n(82971),a=n(68441),l=n(8744),u=n(58116);const c=39.37,d=a.sv.radius*Math.PI/200,f=/UNIT\[([^\]]+)\]\]$/i,p=u.Z,h=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.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,v=e=>e*e*e,b={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*v(.001)},"cubic-centimeters":{inBaseUnits:1e3*v(.01)},"cubic-decimeters":{inBaseUnits:1e3*v(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*v(1e3)},"cubic-inches":{inBaseUnits:1e3*v(.0254)},"cubic-feet":{inBaseUnits:1e3*v(.3048)},"cubic-yards":{inBaseUnits:1e3*v(.9144)},"cubic-miles":{inBaseUnits:1e3*v(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const e={};for(const t in b)for(const n in b[t].units)e[n]=t;return e}();function S(e){const t=w[e];if(t)return t;throw new Error("unknown measure")}function x(e,t=null){return t=t||S(e),b[t].baseUnit===e}function _(e,t,n){if(t===n)return e;const r=S(t);if(r!==S(n))throw new Error("incompatible units");const i=x(t,r)?e:function(e,t,n){return e*b[n].units[t].inBaseUnits}(e,t,r);return x(n,r)?i:function(e,t,n){return e/b[n].units[t].inBaseUnits}(i,n,r)}function C(e,t,n){return _(e,t,"meters")/(n*Math.PI/180)}function T(e){return y.fromJSON(e.toLowerCase())||null}function U(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=I(e);return t>1e5?1:t}function O(e){return I(e)>=(e instanceof o.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":N(e)}function I(e,t=a.sv.metersPerDegree){return F(e,!0)||t}function F(e,t=!1){let n,r,i=null;if(null!=e&&("object"==typeof e?(n=e.wkid,r=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(r=e)),n){if((0,l.o$)(n))return a.yr.metersPerDegree;if((0,l.ME)(n))return a.Z1.metersPerDegree;i=p.values[p[n]],!i&&t&&m.has(n)&&(i=d)}else r&&($(r)?i=V(f.exec(r),i):L(r)&&(i=V(h.exec(r),i)));return i}function V(e,t){return e&&e[1]?E(e[1]):t}function E(e){return parseFloat(e.split(",")[1])}function N(e){let t,n,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)r=p.units[p[t]];else if(n){const e=$(n)?f:L(n)?h:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||-1===p.units.indexOf(n)){const t=E(e);n=null;const r=p.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=p.units[e];break}}return n}(t[1]))}}return(0,i.pC)(r)?T(r):null}function L(e){return/^GEOCCS/i.test(e)}function $(e){return/^PROJCS/i.test(e)}const q={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"},A={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,r.w)()(q),R=(0,r.w)()(A);(0,r.w)()({...q,...A})},17452:(e,t,n)=>{n.d(t,{R9:()=>v,qg:()=>F,tD:()=>L,ZN:()=>fe,fl:()=>pe,Ie:()=>ue,sJ:()=>X,AH:()=>W,io:()=>K,L:()=>_,TI:()=>x,vt:()=>ae,oh:()=>P,P$:()=>Z,Ml:()=>he,ed:()=>$,b7:()=>I,D6:()=>R,tm:()=>q,YP:()=>z,jc:()=>H,HK:()=>J,$U:()=>ne,oC:()=>ee,kl:()=>j,v_:()=>B,hF:()=>D,_l:()=>Q,PF:()=>G,Fv:()=>M,B7:()=>O,u0:()=>T,Yd:()=>oe,Hu:()=>de,Qj:()=>le,hO:()=>re,mN:()=>C});var r=n(68773),i=n(20102),s=n(92604),o=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),l=r.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,f=/^\s*https:/i,p=/^\s*file:/i,h=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{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(y));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 b={};let w=new v(r.Z.applicationUrl);let S=function(){const e=(0,o.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const x=()=>w,_=()=>S;function C(e){const t={path:null,query:null},n=new v(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=T(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function T(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,i;t<0?(r=decodeURIComponent(e),i=""):(r=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(i):n[r]=i}return n}function U(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function O(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const i=encodeURIComponent(n)+"=",s=t&&t[n];return s?i+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>U(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):U(r)?i+encodeURIComponent(JSON.stringify(r)):i+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function I(e=!1){let t,n=l.proxyUrl;if("string"==typeof e){t=ne(e);const r=$(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(u),new i.Z("urlutils:proxy-not-set",u);return t&&ie()&&(n=re(n)),C(n)}function F(e){const t=$(e);let n,r;if(t){const e=E(t.proxyUrl);n=e.path,r=e.query?T(e.query):null}if(n){const t=C(e);e=n+"?"+t.path;const i=O({...r,...t.query});i&&(e=`${e}?${i}`)}return e}const V={path:"",query:""};function E(e){const t=e.indexOf("?");return-1!==t?(V.path=e.slice(0,t),V.query=e.slice(t+1)):(V.path=e,V.query=null),V}function N(e){return(e=se(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=E(e).path),!0)).toLowerCase()}function L(e){const t={proxyUrl:e.proxyUrl,urlPrefix:N(e.urlPrefix)},n=l.proxyRules,r=t.urlPrefix;let i=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;i=e;break}0===t.indexOf(r)&&(i=e+1)}return n.splice(i,0,t),i}function $(e){const t=l.proxyRules,n=N(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function q(e,t){return e=A(e),t=A(t),se(e)===se(t)}function A(e){const t=(e=M(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function P(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=l.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function R(e,t,n=!1){const r=ce(e),i=ce(t);return!(!n&&r.scheme!==i.scheme)&&null!=r.host&&null!=i.host&&r.host.toLowerCase()===i.host.toLowerCase()&&r.port===i.port}function j(e){if("string"==typeof e){if(!z(e))return!0;e=ce(e)}if(R(e,w))return!0;const t=l.trustedServers||[];for(let n=0;n<t.length;n++){const r=k(t[n]);for(let t=0;t<r.length;t++)if(R(e,r[t]))return!0}return!1}function k(e){return b[e]||(te(e)||ee(e)?b[e]=[new v(D(e))]:b[e]=[new v(`http://${e}`),new v(`https://${e}`)]),b[e]}function D(e,t=S,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===Z(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function G(e,t=S,n){if(!z(e))return e;const r=M(e),i=r.toLowerCase(),s=M(t).toLowerCase().replace(/\/+$/,""),o=n?M(n).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==s.indexOf(o))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let l=a(i,"/",i.indexOf("//")+2),u=-1;for(;i.slice(0,l+1)===s.slice(0,l)+"/"&&(u=l+1,l!==i.length);)l=a(i,"/",l+1);if(-1===u)return e;if(o&&u<o.length)return e;e=r.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 M(e){return function(e){const t=l.httpsDomains;if(!function(e){return d.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),h.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&r===w.authority&&!m.test(e)||(ie()&&r===w.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||ie()&&!$(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=E(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=D(e=e.trim()))))}function B(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const n=[];if(z(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return p.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function Z(e,t=!1){if(H(e)||J(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),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 n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Y);if(!t)return null;const[,n,r,i]=t;return{mediaType:n,isBase64:!!r,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 n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!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 ne(e){return f.test(e)||"https"===w.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(d,"https:")}function ie(){return"https"===w.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 n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ae(e,t){if(!e)return"";const n=C(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const i=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(i,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&z(e)))return e;const r=e.indexOf("//"),i=e.indexOf("/",r+2),s=e.indexOf(":",r+2),o=Math.min(i<0?e.length:i,s<0?e.length:s);return e.slice(r+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(o)}`}function ce(e){return"string"==typeof e?new v(D(e)):(e.scheme||(e.scheme=w.scheme),e)}function de(e,t){const n=C(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function fe(e,t,n){const r=C(e),i=r.query||{};return i[t]=String(n),`${r.path}?${O(i)}`}function pe(e,t){const n=C(e),r=n.query||{};for(const e in t)r[e]=t[e];const i=O(r);return i?`${n.path}?${i}`:n.path}function he(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),i=n(6570),s=n(9361),o=n(65091),a=n(13473),l=n(17332),u=n(58901);n(82971),n(86973),n(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,r.N7)(c)},24678:(e,t,n)=>{n.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>c,Iu:()=>f,e8:()=>p,rS:()=>d});var r=n(82971),i=n(68441),s=n(8744);function o(e){return new r.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 a=o(i.sv),l=o(i.yr),u=o(i.Z1),c=new r.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===l)?l:e&&((0,s.V2)(e)||e===u)?u:a}function f(e){return e&&((0,s.BZ)(e)||e===l)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function p(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},33955:(e,t,n)=>{n.d(t,{im:()=>m,q9:()=>v,Ji:()=>y,YX:()=>c,aW:()=>d,wp:()=>f,oU:()=>h,l9:()=>p});var r=n(70586),i=n(6570),s=n(9361),o=n(65091),a=n(13473),l=n(17332),u=n(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 f(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function m(e){return(0,r.Wi)(e)?null:e instanceof s.Z?e:f(e)?a.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):h(e)?l.Z.fromJSON(e):d(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?f(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function v(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>i});var r=n(67900);function i(e,t){const n=t||e.extent,i=e.width,s=(0,r.c9)(n&&n.spatialReference);return n&&i?n.width/i*s*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>i,P$:()=>s});var r=n(35454);const i=(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"})},40330:(e,t,n)=>{n.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>s,Nv:()=>o});var r=n(80442),i=n(17452);const s="4.23",o={async request(e,t){var r;const{default:s}=await n.e(3172).then(n.bind(n,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(r=(0,i.oh)(e.url))&&r.after?a:"array-buffer";const l=await s(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.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 a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,i.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")||((0,r.Z)("edge")||(0,r.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},1231:(e,t,n)=>{n.d(t,{Z:()=>y});var r,i=n(43697),s=n(35454),o=n(96674),a=n(5600),l=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),d=n(52011),f=n(72729),p=n(86719);const h=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 m=r=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 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?h.fromJSON(n.fieldValueType):null}clone(){return new r({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,a.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,a.Cb)()],m.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,i._)([(0,a.Cb)({types:f.V5,json:{read:{reader:f.im},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,u.J)(p.v)],m.prototype,"type",void 0),(0,i._)([(0,a.Cb)()],m.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=r=(0,i._)([(0,d.j)("esri.layers.support.Field")],m);const y=m},66677:(e,t,n)=>{n.d(t,{ld:()=>h,B5:()=>d,M8:()=>y,G:()=>w,Qc:()=>f,DR:()=>p,Nm:()=>g,XG:()=>v,a7:()=>m,wH:()=>b});var r=n(70586),i=n(17452),s=n(25929);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},a=Object.values(o),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return!!l.test(e)}function f(e){const t=(0,i.mN)(e),n=t.path.match(l)||t.path.match(u);if(!n)return null;const[,r,s,a,c]=n,d=s.indexOf("/");return{title:h(-1!==d?s.slice(d+1):s),serverType:o[a.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:r}}}function p(e){const t=(0,i.mN)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function h(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const n=[];if(e){const t=f(e);(0,r.pC)(t)&&t.title&&n.push(t.title)}if(t){const e=h(t);n.push(e)}if(2===n.length){if(-1!==n[0].toLowerCase().indexOf(n[1].toLowerCase()))return n[0];if(-1!==n[1].toLowerCase().indexOf(n[0].toLowerCase()))return n[1]}return n.join(" - ")}function y(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),n=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&n}function g(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function v(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const n=(0,i.mN)(t),s=f(n.path);let o;if((0,r.pC)(s))null!=s.sublayer&&null==e.layer.layerId&&(o=s.sublayer),t=s.url.path;else if(e.nonStandardUrlAllowed){const e=p(n.path);(0,r.pC)(e)&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:o}}function b(e,t,n,r,o){(0,s.w)(t,r,"url",o),r.url&&null!=e.layerId&&(r.url=(0,i.v_)(r.url,n,e.layerId.toString()))}function w(e){if(!e)return!1;const t=e.toLowerCase(),n=-1!==t.indexOf("/services/"),r=-1!==t.indexOf("/mapserver/wmsserver"),i=-1!==t.indexOf("/imageserver/wmsserver"),s=-1!==t.indexOf("/wmsserver");return n&&(r||i||s)}},72729:(e,t,n)=>{n.d(t,{im:()=>T,V5:()=>C}),n(80442);var r,i=n(43697),s=n(22974),o=n(5600),a=(n(75215),n(36030)),l=n(52011),u=n(96674);n(67676);let c=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({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=r=(0,i._)([(0,l.j)("esri.layers.support.CodedValue")],c);const d=c,f=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.J)(f)],p.prototype,"type",void 0),p=(0,i._)([(0,l.j)("esri.layers.support.Domain")],p);const h=p;var m;let y=m=class extends h{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,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,o.Cb)({type:[d],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,a.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=m=(0,i._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var v;n(92604),n(37697);let b=v=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new v}};(0,i._)([(0,a.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=v=(0,i._)([(0,l.j)("esri.layers.support.InheritedDomain")],b);const w=b;var S;let x=S=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({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,n){t[n]=[this.minValue||0,e]}}}})],x.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,n){t[n]=[e,this.maxValue||0]}}}})],x.prototype,"minValue",void 0),(0,i._)([(0,a.J)({range:"range"})],x.prototype,"type",void 0),x=S=(0,i._)([(0,l.j)("esri.layers.support.RangeDomain")],x);const _=x,C={key:"type",base:h,typeMap:{range:x,"coded-value":g,inherited:w}};function T(e){if(!e||!e.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=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"})},35671:(e,t,n)=>{n.d(t,{io:()=>g,AB:()=>y,gd:()=>m,Mu:()=>w,Q0:()=>h,YN:()=>c,UF:()=>f,O5:()=>v,os:()=>S,H7:()=>E,qN:()=>N,Pz:()=>q,Qc:()=>A,vP:()=>G});var r,i,s=n(20102),o=n(78286);(i=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=n(59266);const l=["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 n of Array.isArray(e)?e:[e])if(d(l,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)d(u,e,t)}function d(e,t,n){if(e)for(const r of e){const e=(0,o.hS)(r,t),i=e&&"function"!=typeof e&&n.get(e);i&&(0,o.RB)(r,i.name,t)}}function f(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const n=t.get(e.startField),r=t.get(e.endField);e.startField=n&&n.name||null,e.endField=r&&r.name||null}else{const n=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=n&&n.name||null,e.endTimeField=r&&r.name||null}}const p=new Set;function h(e,t){return e&&t?(p.clear(),m(p,e,t),Array.from(p).sort()):[]}function m(e,t,n){var r;if(n)if(null!=t&&null!=(r=t.fields)&&r.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const r of n)y(e,t,r);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)e.add(t)}}function y(e,t,n){if("string"==typeof n)if(t){const r=t.get(n);r&&e.add(r.name)}else e.add(n)}async function g(e,t,n){var r;if(!n)return;const{arcadeUtils:i}=await(0,a.LC)(),s=i.extractFieldNames(n,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const n of s)y(e,t,n)}function v({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 n of e)if(n&&n.valueType&&n.valueType===t)return n.name;return null}async function w(e,t){const{labelingInfo:r,fieldsIndex:i}=t;r&&r.length&&await Promise.all(r.map((t=>async function(e,t,r){if(!r)return;const i=r.getLabelExpression(),o=r.where;if("arcade"===i.type)await g(e,t,i.expression);else{const n=i.expression.match(/{[^}]*}/g);n&&n.forEach((n=>{y(e,t,n.slice(1,-1))}))}await async function(e,t,r){if(r&&"1=1"!==r){const i=(await Promise.all([n.e(1534),n.e(5732)]).then(n.bind(n,41534))).WhereClause.create(r,t);if(!i.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,i.fieldNames)}}(e,t,o)}(e,i,t))))}function S(e){const t=e.defaultValue;return void 0!==t&&F(e,t)?t:e.nullable?null:void 0}function x(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function _(e){return null===e||x(e)}const C="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function T(e){return null===e||C(e)}function U(e){return null!=e&&"string"==typeof e}function O(e){return null===e||U(e)}function I(){return!0}function F(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":n=e.nullable?T:C;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?_:x;break;case"string":case"esriFieldTypeString":n=e.nullable?O:U;break;default:n=I}return 1===arguments.length?n:n(t)}const V=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function E(e){return null!=e&&V.has(e.type)}function N(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var L,$;function q(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function A(e,t){return e.nullable&&null===t?null:E(e)&&!function(e,t){const n="string"==typeof e?P(e):e;return!!n&&(n.isInteger?C(t)&&t>=n.min&&t<=n.max:t>=n.min&&t<=n.max)}(e.type,Number(t))?L.OUT_OF_RANGE:F(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const n="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<n||+t>i)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:$.INVALID_TYPE}function P(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return R;case"esriFieldTypeInteger":case"integer":return j;case"esriFieldTypeSingle":case"single":return k;case"esriFieldTypeDouble":case"double":return D}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(L||(L={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}($||($={}));const R={min:-32768,max:32767,isInteger:!0},j={min:-2147483648,max:2147483647,isInteger:!0},k={min:-34e37,max:12e37,isInteger:!1},D={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function G(e,t,n){switch(e){case r.INVALID_CODED_VALUE:return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case $.INVALID_TYPE:return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case L.OUT_OF_RANGE:{const{min:e,max:r}=P(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},99282:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(67900),i=n(68441);const s={inches:(0,r.En)(1,"meters","inches"),feet:(0,r.En)(1,"meters","feet"),"us-feet":(0,r.En)(1,"meters","us-feet"),yards:(0,r.En)(1,"meters","yards"),miles:(0,r.En)(1,"meters","miles"),"nautical-miles":(0,r.En)(1,"meters","nautical-miles"),millimeters:(0,r.En)(1,"meters","millimeters"),centimeters:(0,r.En)(1,"meters","centimeters"),decimeters:(0,r.En)(1,"meters","decimeters"),meters:(0,r.En)(1,"meters","meters"),kilometers:(0,r.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.ty)(1,"meters",i.sv.radius)}},51706:(e,t,n)=>{var r,i;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function l(e,t){const n=t||a(e),s=e.valueUnit||"unknown";return n===r.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}n.d(t,{RY:()=>r,hL:()=>i,PS:()=>a,QW:()=>l,iY:()=>s,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),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,n)=>{n.d(t,{PR:()=>x,Lq:()=>h,Km:()=>m,cM:()=>y,ap:()=>g,V3:()=>w,B3:()=>p});var r=n(22303),i=n(1692),s=n(74085),o=n(92604),a=n(70586),l=n(99282),u=n(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),d=new i.Z,f=Math.PI,p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(e,t,n){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,l=o&&o.attributes;let u=s?t:null;const d=i.field,{ipData:f,hasExpression:p}=i.cache;let h=i.cache.compiledFunc;if(!d&&!p){const e=i.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(p){if(!(0,a.pC)(n)||!(0,a.pC)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},t=n.arcade.arcadeUtils,r=t.getViewInfo(e),s=t.createExecContext(o,r);if(!h){const e=t.createSyntaxTree(i.valueExpression);h=t.createFunction(e),i.cache.compiledFunc=h}u=t.executeFunction(h,s)}else l&&(u=l[d]);const m=i.normalizationField,y=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||s||!isNaN(y)&&0!==y)){isNaN(y)||s||(u/=y);const e=S(u,f);if(e){const t=e[0],s=e[1],o=t===s?i.stops[t].color:r.Z.blendColors(i.stops[t].color,i.stops[s].color,e[2],(0,a.pC)(n)?n.color:void 0);return new r.Z(o)}}}function m(e,t,n){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.OpacityVariable"!==r.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 l=i?t:null;const u=r.field,{ipData:d,hasExpression:f}=r.cache;let p=r.cache.compiledFunc;if(!u&&!f){const e=r.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(f){if((0,a.Wi)(n)||(0,a.Wi)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},t=n.arcade.arcadeUtils,i=t.getViewInfo(e),o=t.createExecContext(s,i);if(!p){const e=t.createSyntaxTree(r.valueExpression);p=t.createFunction(e),r.cache.compiledFunc=p}l=t.executeFunction(p,o)}else o&&(l=o[u]);const h=r.normalizationField,m=o?parseFloat(o[h]):void 0;if(null!=l&&(!h||i||!isNaN(m)&&0!==m)){isNaN(m)||i||(l/=m);const e=S(l,d);if(e){const t=e[0],n=e[1];if(t===n)return r.stops[t].opacity;{const i=r.stops[t].opacity;return i+(r.stops[n].opacity-i)*e[2]}}}}function y(e,t,n){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.RotationVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const i=r.axis||"heading",s="heading"===i&&"arithmetic"===r.rotationType?90:0,o="heading"===i&&"arithmetic"===r.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,d=r.field,{hasExpression:f}=r.cache;let p=r.cache.compiledFunc,h=0;if(!d&&!f)return h;if(f){if((0,a.Wi)(n)||(0,a.Wi)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},t=n.arcade.arcadeUtils,i=t.getViewInfo(e),s=t.createExecContext(l,i);if(!p){const e=t.createSyntaxTree(r.valueExpression);p=t.createFunction(e),r.cache.compiledFunc=p}h=t.executeFunction(p,s)}else u&&(h=u[d]||0);return h="number"!=typeof h||isNaN(h)?null:s+o*h,h}function g(e,t,n){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.SizeVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const i=function(e,t,n,r,i){switch(t.transformationType){case u.hL.Additive:return function(e,t,n,r){return e+(v(t.minSize,n,r)||t.minDataValue)}(e,t,n,r);case u.hL.Constant:return function(e,t,n){const r=e.stops;let i=r&&r.length&&r[0].size;return null==i&&(i=e.minSize),v(i,t,n)}(t,n,r);case u.hL.ClampedLinear:return function(e,t,n,r){const i=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),s=v(t.minSize,n,r),o=v(t.maxSize,n,r),l=(0,a.pC)(r)?r.shape:void 0;if(e<=t.minDataValue)return s;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?f*(s/2)**2:s*s,n=t+i*((e?f*(o/2)**2:o*o)-t);return e?2*Math.sqrt(n/f):Math.sqrt(n)}return s+i*(o-s)}(e,t,n,r);case u.hL.Proportional:return function(e,t,n,r){const i=(0,a.pC)(r)?r.shape:void 0,s=e/t.minDataValue,o=v(t.minSize,n,r),l=v(t.maxSize,n,r);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,b(u,o,l)}(e,t,n,r);case u.hL.Stops:return function(e,t,n,r,i){const[s,o,a]=S(e,i);if(s===o)return v(t.stops[s].size,n,r);{const e=v(t.stops[s].size,n,r);return e+(v(t.stops[o].size,n,r)-e)*a}}(e,t,n,r,i);case u.hL.RealWorldSize:return function(e,t,n,r){const i=((0,a.pC)(r)&&r.resolution?r.resolution:1)*l.a[t.valueUnit],s=v(t.minSize,n,r),o=v(t.maxSize,n,r),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/f)/i:"radius"===u||"distance"===u?2*e/i:e/i,b(c,s,o)}(e,t,n,r);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,n){const r="number"==typeof t,i=r?null:t,s=i&&i.attributes;let o=r?t:null;const{isScaleDriven:l}=e.cache;let d=e.cache.compiledFunc;if(l){const t=(0,a.pC)(n)?n.scale:void 0,r=(0,a.pC)(n)?n.view:void 0;o=null==t||"3d"===r?function(e){let t=null,n=null;const r=e.stops;return r?(t=r[0].value,n=r[r.length-1].value):(t=e.minDataValue||0,n=e.maxDataValue||0),(t+n)/2}(e):t}else if(!r)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(n)||(0,a.Wi)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},r=n.arcade.arcadeUtils,s=r.getViewInfo(t),l=r.createExecContext(i,s);if(!d){const t=r.createSyntaxTree(e.valueExpression);d=r.createFunction(t),e.cache.compiledFunc=d}o=r.executeFunction(d,l);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(r||!e.normalizationField)return o;const f=s?parseFloat(s[e.normalizationField]):null;return(0,u.qh)(f)&&0!==f?o/f:null}(r,t,n),r,t,n,r.cache.ipData);return null==i||isNaN(i)?0:i}function v(e,t,n){return null==e?null:(0,u.iY)(e)?g(e,t,n):(0,u.qh)(e)?e:null}function b(e,t,n){return(0,u.qh)(n)&&e>n?n:(0,u.qh)(t)&&e<t?t:e}function w(e,t,n){const{isScaleDriven:r}=e.cache;if(!(r&&"3d"===n||t))return null;const i={scale:t,view:n};let s=v(e.minSize,d,i),o=v(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 S(e,t){if(!t)return;let n=0,r=t.length-1;return t.some(((t,i)=>e<t?(r=i,!0):(n=i,!1))),[n,r,(e-t[n])/(t[r]-t[n])]}function x(e,t,n){const r=["proportional","proportional","proportional"];for(const i of e){const e=i.useSymbolValue?"symbol-value":g(i,t,n);switch(i.axis){case"width":r[0]=e;break;case"depth":r[1]=e;break;case"height":r[2]=e;break;case"width-and-depth":r[0]=e,r[1]=e;break;case"all":case void 0:case null:r[0]=e,r[1]=e,r[2]=e;break;default:(0,s.Bg)(i.axis)}}return r}},59266:(e,t,n)=>{n.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>o}),n(66577);var r=n(70586),i=n(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([n.e(9490),n.e(6690)]).then(n.bind(n,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const a=(e,t,n)=>c.create(e,t,n,null,["$feature"]),l=(e,t,n)=>c.create(e,t,n,null,["$feature","$view"]),u=(e,t,n,r)=>c.create(e,t,n,r,["$feature","$view"]);class c{constructor(e,t,n,r,i,s,o,a){this.script=e,this.evaluate=i;const l=Array.isArray(o)?o:o.fields;this.fields=l,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=n,this._arcadeFeature=s,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,n,s,a,l){const{arcade:u,Feature:d,Dictionary:f}=await o(),p=i.Z.fromJSON(t),h=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,r.pC)(s)&&(y=new f(s),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(h)&&u.enableGeometrySupport(),v=u.scriptUsesFeatureSet(h)&&u.enableFeatureSetSupport(),b=u.scriptIsAsync(h)&&u.enableAsyncSupport(),w={vars:m,spatialReference:p,useAsync:!!b},S=new f;S.immutable=!1,S.setField("scale",0);const x=u.compileScript(h,w);return await Promise.all([g,v,b]),new c(e,u,f,h,(e=>("$view"in e&&e.$view&&(S.setField("scale",e.$view.scale),e.$view=S),y&&(e.$config=y),x({vars:e,spatialReference:p}))),new d,n,p)}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)}}},58333:(e,t,n)=>{n.d(t,{I4:()=>i,lF:()=>o,ET:()=>s,qP:()=>a,eG:()=>l,lj:()=>c,wW:()=>u});const r=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={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},l={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}},89749:(e,t,n)=>{n.d(t,{t:()=>d});var r=n(43697),i=n(15923),s=n(61247),o=n(70586),a=n(17445),l=n(1654),u=n(5600),c=n(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,n={}){const r=++this.handleId;n.sync||this._installSyncUpdatingWatch(e,r);const i=(0,a.YP)(e,t,n);return this.handles.add(i,r),{remove:()=>this.handles.remove(r)}}addOnCollectionChange(e,t,{initial:n=!1}={}){const r=++this.handleId;return this.handles.add([(0,a.on)(e,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(e,"change",t,{onListenerAdd:n?e=>t({added:e.items,removed:[],moved:[],target:e}):void 0})],r),{remove:()=>this.handles.remove(r)}}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(f)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const n=()=>this.handles.remove(t);return e.then(n,n),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}_installSyncUpdatingWatch(e,t){const n=this._createSyncUpdatingCallback(),r=(0,a.YP)(e,n,{sync:!0,equals:()=>!1});return this.handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this.handles.remove(f),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(f))})),f)}}};(0,r._)([(0,u.Cb)({readOnly:!0})],d.prototype,"updating",void 0),d=(0,r._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],d);const f=-42;var p,h;(h=p||(p={}))[h.NONE=0]="NONE",h[h.SYNC=1]="SYNC",h[h.INIT=2]="INIT"},410:(e,t,n)=>{function r(e){var t;const n=e.layer;return"floorInfo"in n&&null!=(t=n.floorInfo)&&t.floorField&&"floors"in e.view?o(e.view.floors,n.floorInfo.floorField):null}function i(e,t){var n;return"floorInfo"in t&&null!=(n=t.floorInfo)&&n.floorField?o(e,t.floorInfo.floorField):null}function s(e,t){const{definitionExpression:n}=t;return e?n?`(${n}) AND (${e})`:e:n}function o(e,t){if(null==e||!e.length)return null;const n=e.filter((e=>""!==e)).map((e=>`'${e}'`));return n.push("''"),`${t} IN (${n.join(",")}) OR ${t} IS NULL`}n.d(t,{Hp:()=>s,cx:()=>r,ff:()=>i})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6204],{1692:(e,t,n)=>{n.d(t,{Z:()=>S});var r=n(43697),i=n(66577),s=n(51773),o=n(78223),a=n(15923),l=(n(80442),n(22974)),u=n(92604),c=n(70586),d=n(31263),f=n(1153),p=n(52011);u.Z.getLogger("esri.core.Clonable");const h=e=>{let t=class extends e{clone(){const e=(0,c.s3)((0,f.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,n=e.store,r={},i=new Map;for(const e in t){const s=t[e],o=null==n?void 0:n.originOf(e);if(s.readOnly||!1===s.clonable||o!==d.s3.USER&&o!==d.s3.DEFAULTS)continue;const a=this[e];let u=null;const c=s.clonable;u="function"==typeof c?c(a):"reference"===c?a:(0,l.Vo)(a),null!=a&&null==u||(o===d.s3.DEFAULTS?i.set(e,u):r[e]=u)}const s=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){var o;const e=null==(o=(0,f.vw)(s))?void 0:o.store;if(e)for(const[t,n]of i)e.set(t,n,d.s3.DEFAULTS)}return s}};return t=(0,r._)([(0,p.j)("esri.core.Clonable")],t),t};let m=class extends(h(a.Z)){};m=(0,r._)([(0,p.j)("esri.core.Clonable")],m);var y=n(96674),g=n(99001),v=n(5600),b=(n(67676),n(75215),n(33955));let w=class extends(h(y.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,n,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:n,popupTemplate:r}}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 n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,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,n,r){if(!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:n};"attributes"===e&&(i.attributeName=r),this.layer.graphicChanged(i)}};(0,r._)([(0,v.Cb)({value:null})],w.prototype,"attributes",null),(0,r._)([(0,v.Cb)({value:null,types:i.qM,json:{read:b.im}})],w.prototype,"geometry",null),(0,r._)([(0,v.Cb)({type:Boolean})],w.prototype,"isAggregate",void 0),(0,r._)([(0,v.Cb)({clonable:"reference"})],w.prototype,"layer",void 0),(0,r._)([(0,v.Cb)({type:s.Z})],w.prototype,"popupTemplate",void 0),(0,r._)([(0,v.Cb)({clonable:"reference"})],w.prototype,"sourceLayer",void 0),(0,r._)([(0,v.Cb)({value:null,types:o.LB})],w.prototype,"symbol",null),(0,r._)([(0,v.Cb)({type:Boolean,value:!0})],w.prototype,"visible",null),w=(0,r._)([(0,p.j)("esri.Graphic")],w),(w||(w={})).generateUID=g.D;const S=w},3920:(e,t,n)=>{n.d(t,{r:()=>c,p:()=>u});var r=n(43697),i=n(15923),s=n(61247),o=n(5600),a=n(52011),l=n(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 l.t}};return(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,a.j)("esri.core.HandleOwner")],t),t};let c=class extends(u(i.Z)){};c=(0,r._)([(0,a.j)("esri.core.HandleOwner")],c)},36030:(e,t,n)=>{n.d(t,{J:()=>s});var r=n(35454),i=n(5600);function s(e,t={}){var n;const s=e instanceof r.X?e:new r.X(e,t),o={type:null==(n=null==t?void 0:t.ignoreUnknown)||n?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,n)=>{function r(e){}n.d(t,{Bg:()=>r}),n(80442)},91460:(e,t,n)=>{function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function i(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=i(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{vT:()=>r,on:()=>i,IH:()=>s})},95330:(e,t,n)=>{n.d(t,{e4:()=>U,$6:()=>l,Ue:()=>u,zE:()=>c,dD:()=>S,hh:()=>V,vr:()=>E,Ds:()=>F,as:()=>x,WW:()=>_,R8:()=>w,D_:()=>b,Hc:()=>p,y8:()=>O,fu:()=>y,$F:()=>g,d1:()=>C,DB:()=>T,r9:()=>h,k_:()=>d,H9:()=>m,Yn:()=>N,gx:()=>I,Hl:()=>v});const r=(i=globalThis,{setTimeout:(e,t)=>{const n=i.setTimeout(e,t);return{remove:()=>i.clearTimeout(n)}}});var i,s=n(20102),o=n(91460),a=(n(92604),n(70586));function l(e){return Promise.all(e)}function u(e){return new Promise(((t,n)=>{try{e(t,n)}catch(e){Promise.resolve().then((()=>n(e)))}}))}function c(e="Aborted"){return new s.Z("AbortError",e)}function d(e,t="Aborted"){if(p(e))throw c(t)}function f(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function p(e){const t=f(e);return(0,a.pC)(t)&&t.aborted}function h(e){if(b(e))throw e}function m(e){if(!b(e))throw e}function y(e,t){const n=f(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,o.IH)(n,"abort",(()=>t()));t()}}function g(e,t){const n=f(e);if(!(0,a.Wi)(n))return d(n),(0,o.IH)(n,"abort",(()=>t(c())))}function v(e,t){const n=f(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let i=y(t,(()=>r(c())));const s=()=>i=(0,a.hw)(i);e.then(s,s),e.then(n,r)}))}function b(e){return e&&"AbortError"===e.name}function w(e){return e.catch((e=>{if(!b(e))throw e}))}function S(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}function x(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e);return x(t.map((t=>e[t]))).then((e=>{const n={};return t.forEach(((t,r)=>n[t]=e[r])),n}))}const t=e;return u((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const i={promise:t||Promise.resolve(t)};n.push(i),i.promise.then((e=>{i.value=e})).catch((e=>{i.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}function _(e){return x(e).then((e=>e.filter((e=>!!e.value)).map((e=>e.value))))}function C(e){return Promise.reject(e)}function T(e){return Promise.resolve(e)}function U(e,t,n){const r=new AbortController;return y(n,(()=>r.abort())),new Promise(((n,i)=>{let s=setTimeout((()=>{s=0,n(t)}),e);y(r,(()=>{s&&(clearTimeout(s),i(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function I(e){return O(e)?e:Promise.resolve(e)}function F(e,t=-1){let n,r,i,s,o=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=S();const e=(0,a.j0)(s.promise);if(o){const e=o;o=null,e.abort()}return e}if(i=s||S(),s=null,t>0){const r=new AbortController;n=I(e(...u,r.signal));const i=n;U(t).then((()=>{n===i&&(s?r.abort():o=r)}))}else n=1,n=I(e(...u));const d=()=>{const e=r;r=i=n=o=null,null!=e&&l(...e)},f=n,p=i;return f.then(d,d),f.then(p.resolve,p.reject),(0,a.j0)(p.promise)};return l}function V(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),i=t=>{e(t)};return i.resolve=t=>e(t),i.reject=e=>t(e),i.timeout=(e,t)=>r.setTimeout((()=>i.reject(t)),e),i.promise=n,i}function E(e,t){let n,r=new AbortController;const i=e(r.signal);let s={promise:i,finished:!1,abort:()=>{r&&(r.abort(),r=null)}};const o=()=>{s&&(s.finished=!0,s=null),(0,a.pC)(n)&&(n.remove(),n=null),r=null};return i.then(o,o),n=y(t,(()=>{(0,a.pC)(s)&&s.abort()})),s}function N(e){return Promise.resolve().then((()=>{d(e)}))}},67900:(e,t,n)=>{n.d(t,{gV:()=>P,En:()=>_,Z7:()=>F,c9:()=>I,_R:()=>U,qE:()=>N,cM:()=>O,hd:()=>c,ty:()=>C,Jo:()=>R,$C:()=>T}),n(80442);var r=n(35454),i=n(70586),s=n(24678),o=n(82971),a=n(68441),l=n(8744),u=n(58116);const c=39.37,d=a.sv.radius*Math.PI/200,f=/UNIT\[([^\]]+)\]\]$/i,p=u.Z,h=/UNIT\[([^\]]+)\]/i,m=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),y=(0,r.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,v=e=>e*e*e,b={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*v(.001)},"cubic-centimeters":{inBaseUnits:1e3*v(.01)},"cubic-decimeters":{inBaseUnits:1e3*v(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*v(1e3)},"cubic-inches":{inBaseUnits:1e3*v(.0254)},"cubic-feet":{inBaseUnits:1e3*v(.3048)},"cubic-yards":{inBaseUnits:1e3*v(.9144)},"cubic-miles":{inBaseUnits:1e3*v(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w=function(){const e={};for(const t in b)for(const n in b[t].units)e[n]=t;return e}();function S(e){const t=w[e];if(t)return t;throw new Error("unknown measure")}function x(e,t=null){return t=t||S(e),b[t].baseUnit===e}function _(e,t,n){if(t===n)return e;const r=S(t);if(r!==S(n))throw new Error("incompatible units");const i=x(t,r)?e:function(e,t,n){return e*b[n].units[t].inBaseUnits}(e,t,r);return x(n,r)?i:function(e,t,n){return e/b[n].units[t].inBaseUnits}(i,n,r)}function C(e,t,n){return _(e,t,"meters")/(n*Math.PI/180)}function T(e){return y.fromJSON(e.toLowerCase())||null}function U(e){if(e&&"object"==typeof e&&!(0,l.N$)(e))return 1;const t=I(e);return t>1e5?1:t}function O(e){return I(e)>=(e instanceof o.Z?(0,s.Iu)(e).metersPerDegree:1e5)?"meters":N(e)}function I(e,t=a.sv.metersPerDegree){return F(e,!0)||t}function F(e,t=!1){let n,r,i=null;if(null!=e&&("object"==typeof e?(n=e.wkid,r=e.wkt):"number"==typeof e?n=e:"string"==typeof e&&(r=e)),n){if((0,l.o$)(n))return a.yr.metersPerDegree;if((0,l.ME)(n))return a.Z1.metersPerDegree;i=p.values[p[n]],!i&&t&&m.has(n)&&(i=d)}else r&&($(r)?i=V(f.exec(r),i):L(r)&&(i=V(h.exec(r),i)));return i}function V(e,t){return e&&e[1]?E(e[1]):t}function E(e){return parseFloat(e.split(",")[1])}function N(e){let t,n,r=null;if(null!=e&&("object"==typeof e?(t=e.wkid,n=e.wkt):"number"==typeof e?t=e:"string"==typeof e&&(n=e)),t)r=p.units[p[t]];else if(n){const e=$(n)?f:L(n)?h:null;if(e){const t=e.exec(n);t&&t[1]&&(r=function(e){const t=/[\\"\\']{1}([^\\"\\']+)/.exec(e);let n=t&&t[1];if(!n||-1===p.units.indexOf(n)){const t=E(e);n=null;const r=p.values;for(let e=0;e<r.length;++e)if(Math.abs(t-r[e])<1e-7){n=p.units[e];break}}return n}(t[1]))}}return(0,i.pC)(r)?T(r):null}function L(e){return/^GEOCCS/i.test(e)}function $(e){return/^PROJCS/i.test(e)}const A={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"},q={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},P=(0,r.w)()(A),R=(0,r.w)()(q);(0,r.w)()({...A,...q})},17452:(e,t,n)=>{n.d(t,{R9:()=>v,qg:()=>F,tD:()=>L,ZN:()=>fe,fl:()=>pe,Ie:()=>ue,sJ:()=>X,AH:()=>W,io:()=>K,L:()=>_,TI:()=>x,vt:()=>ae,oh:()=>P,P$:()=>Z,Ml:()=>he,ed:()=>$,b7:()=>I,D6:()=>R,tm:()=>A,YP:()=>z,jc:()=>H,HK:()=>J,$U:()=>ne,oC:()=>ee,kl:()=>j,v_:()=>B,hF:()=>D,_l:()=>Q,PF:()=>G,Fv:()=>M,B7:()=>O,u0:()=>T,Yd:()=>oe,Hu:()=>de,Qj:()=>le,hO:()=>re,mN:()=>C});var r=n(68773),i=n(20102),s=n(92604),o=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),l=r.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,f=/^\s*https:/i,p=/^\s*file:/i,h=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),g=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{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(y));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 b={};let w=new v(r.Z.applicationUrl);let S=function(){const e=(0,o.j0)(w.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${w.scheme}://${w.host}${null!=w.port?`:${w.port}`:""}${t}`}();const x=()=>w,_=()=>S;function C(e){const t={path:null,query:null},n=new v(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=T(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function T(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,i;t<0?(r=decodeURIComponent(e),i=""):(r=decodeURIComponent(e.slice(0,t)),i=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(i):n[r]=i}return n}function U(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function O(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const i=encodeURIComponent(n)+"=",s=t&&t[n];return s?i+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>U(e)?i+encodeURIComponent(JSON.stringify(e)):i+encodeURIComponent(e))).join("&"):U(r)?i+encodeURIComponent(JSON.stringify(r)):i+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function I(e=!1){let t,n=l.proxyUrl;if("string"==typeof e){t=ne(e);const r=$(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(u),new i.Z("urlutils:proxy-not-set",u);return t&&ie()&&(n=re(n)),C(n)}function F(e){const t=$(e);let n,r;if(t){const e=E(t.proxyUrl);n=e.path,r=e.query?T(e.query):null}if(n){const t=C(e);e=n+"?"+t.path;const i=O({...r,...t.query});i&&(e=`${e}?${i}`)}return e}const V={path:"",query:""};function E(e){const t=e.indexOf("?");return-1!==t?(V.path=e.slice(0,t),V.query=e.slice(t+1)):(V.path=e,V.query=null),V}function N(e){return(e=se(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=E(e).path),!0)).toLowerCase()}function L(e){const t={proxyUrl:e.proxyUrl,urlPrefix:N(e.urlPrefix)},n=l.proxyRules,r=t.urlPrefix;let i=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;i=e;break}0===t.indexOf(r)&&(i=e+1)}return n.splice(i,0,t),i}function $(e){const t=l.proxyRules,n=N(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function A(e,t){return e=q(e),t=q(t),se(e)===se(t)}function q(e){const t=(e=M(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function P(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=l.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function R(e,t,n=!1){const r=ce(e),i=ce(t);return!(!n&&r.scheme!==i.scheme)&&null!=r.host&&null!=i.host&&r.host.toLowerCase()===i.host.toLowerCase()&&r.port===i.port}function j(e){if("string"==typeof e){if(!z(e))return!0;e=ce(e)}if(R(e,w))return!0;const t=l.trustedServers||[];for(let n=0;n<t.length;n++){const r=k(t[n]);for(let t=0;t<r.length;t++)if(R(e,r[t]))return!0}return!1}function k(e){return b[e]||(te(e)||ee(e)?b[e]=[new v(D(e))]:b[e]=[new v(`http://${e}`),new v(`https://${e}`)]),b[e]}function D(e,t=S,n){return ee(e)?n&&n.preserveProtocolRelative?e:"http"===w.scheme&&w.authority===Z(e).slice(2)?`http:${e}`:`https:${e}`:te(e)?e:(0,o.j0)(B("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function G(e,t=S,n){if(!z(e))return e;const r=M(e),i=r.toLowerCase(),s=M(t).toLowerCase().replace(/\/+$/,""),o=n?M(n).toLowerCase().replace(/\/+$/,""):null;if(o&&0!==s.indexOf(o))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let l=a(i,"/",i.indexOf("//")+2),u=-1;for(;i.slice(0,l+1)===s.slice(0,l)+"/"&&(u=l+1,l!==i.length);)l=a(i,"/",l+1);if(-1===u)return e;if(o&&u<o.length)return e;e=r.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 M(e){return function(e){const t=l.httpsDomains;if(!function(e){return d.test(e)||"http"===w.scheme&&ee(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),h.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===w.scheme&&r===w.authority&&!m.test(e)||(ie()&&r===w.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||ie()&&!$(e))&&(e=re(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=E(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=D(e=e.trim()))))}function B(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const n=[];if(z(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return p.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function Z(e,t=!1){if(H(e)||J(e))return null;let n=e.indexOf("://");if(-1===n&&ee(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),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 n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const Y=/^data:(.*?)(;base64)?,(.*)$/;function X(e){const t=e.match(Y);if(!t)return null;const[,n,r,i]=t;return{mediaType:n,isBase64:!!r,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 n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!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 ne(e){return f.test(e)||"https"===w.scheme&&ee(e)}function re(e){return ee(e)?`https:${e}`:e.replace(d,"https:")}function ie(){return"https"===w.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 n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ae(e,t){if(!e)return"";const n=C(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(null==t||!t.length)return r;const i=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(i,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&z(e)))return e;const r=e.indexOf("//"),i=e.indexOf("/",r+2),s=e.indexOf(":",r+2),o=Math.min(i<0?e.length:i,s<0?e.length:s);return e.slice(r+2,o).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(o)}`}function ce(e){return"string"==typeof e?new v(D(e)):(e.scheme||(e.scheme=w.scheme),e)}function de(e,t){const n=C(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function fe(e,t,n){const r=C(e),i=r.query||{};return i[t]=String(n),`${r.path}?${O(i)}`}function pe(e,t){const n=C(e),r=n.query||{};for(const e in t)r[e]=t[e];const i=O(r);return i?`${n.path}?${i}`:n.path}function he(e){if((0,o.Wi)(e))return null;const t=e.match(me);return t?t[1]:null}const me=/.*?\.([^\/]*)$/},66577:(e,t,n)=>{n.d(t,{qM:()=>c});var r=n(75215),i=n(6570),s=n(9361),o=n(65091),a=n(13473),l=n(17332),u=n(58901);n(82971),n(86973),n(33955);const c={base:s.Z,key:"type",typeMap:{extent:i.Z,multipoint:o.Z,point:a.Z,polyline:u.Z,polygon:l.Z}};(0,r.N7)(c)},24678:(e,t,n)=>{n.d(t,{GG:()=>a,HQ:()=>l,VY:()=>u,wY:()=>c,Iu:()=>f,e8:()=>p,rS:()=>d});var r=n(82971),i=n(68441),s=n(8744);function o(e){return new r.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 a=o(i.sv),l=o(i.yr),u=o(i.Z1),c=new r.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===l)?l:e&&((0,s.V2)(e)||e===u)?u:a}function f(e){return e&&((0,s.BZ)(e)||e===l)?i.yr:e&&((0,s.V2)(e)||e===u)?i.Z1:i.sv}function p(e){return(0,s.o$)(e)?i.yr:(0,s.ME)(e)?i.Z1:i.sv}},33955:(e,t,n)=>{n.d(t,{im:()=>m,q9:()=>v,Ji:()=>y,YX:()=>c,aW:()=>d,wp:()=>f,oU:()=>h,l9:()=>p});var r=n(70586),i=n(6570),s=n(9361),o=n(65091),a=n(13473),l=n(17332),u=n(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 f(e){return void 0!==e.x&&void 0!==e.y}function p(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function m(e){return(0,r.Wi)(e)?null:e instanceof s.Z?e:f(e)?a.Z.fromJSON(e):p(e)?u.Z.fromJSON(e):h(e)?l.Z.fromJSON(e):d(e)?o.Z.fromJSON(e):c(e)?i.Z.fromJSON(e):null}function y(e){return e?f(e)?"esriGeometryPoint":p(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":d(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:a.Z,esriGeometryPolyline:u.Z,esriGeometryPolygon:l.Z,esriGeometryEnvelope:i.Z,esriGeometryMultipoint:o.Z};function v(e){return e&&g[e]||null}},91040:(e,t,n)=>{n.d(t,{yZ:()=>i});var r=n(67900);function i(e,t){const n=t||e.extent,i=e.width,s=(0,r.c9)(n&&n.spatialReference);return n&&i?n.width/i*s*r.hd*96:0}},86973:(e,t,n)=>{n.d(t,{Mk:()=>i,P$:()=>s});var r=n(35454);const i=(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"})},40330:(e,t,n)=>{n.d(t,{Dp:()=>u,id:()=>a,qh:()=>l,i8:()=>s,Nv:()=>o});var r=n(80442),i=n(17452);const s="4.23",o={async request(e,t){var r;const{default:s}=await n.e(3172).then(n.bind(n,3172)),o=e.options,a=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===a||"native-request-init"===a?"native-request-init":["blob","json","text"].includes(a)&&null!=(r=(0,i.oh)(e.url))&&r.after?a:"array-buffer";const l=await s(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.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 a;function l(e){a=e}function u(e){const t=a&&a.findCredential(e);return t&&t.token?(0,i.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")||((0,r.Z)("edge")||(0,r.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},1231:(e,t,n)=>{n.d(t,{Z:()=>y});var r,i=n(43697),s=n(35454),o=n(96674),a=n(5600),l=(n(67676),n(80442),n(75215)),u=n(36030),c=n(71715),d=n(52011),f=n(72729),p=n(86719);const h=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 m=r=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 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?h.fromJSON(n.fieldValueType):null}clone(){return new r({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,a.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,i._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,i._)([(0,a.Cb)()],m.prototype,"description",void 0),(0,i._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,i._)([(0,a.Cb)({types:f.V5,json:{read:{reader:f.im},write:!0}})],m.prototype,"domain",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,i._)([(0,u.J)(p.v)],m.prototype,"type",void 0),(0,i._)([(0,a.Cb)()],m.prototype,"valueType",void 0),(0,i._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),m=r=(0,i._)([(0,d.j)("esri.layers.support.Field")],m);const y=m},66677:(e,t,n)=>{n.d(t,{ld:()=>h,B5:()=>d,M8:()=>y,G:()=>w,Qc:()=>f,DR:()=>p,Nm:()=>g,XG:()=>v,a7:()=>m,wH:()=>b});var r=n(70586),i=n(17452),s=n(25929);const o={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},a=Object.values(o),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${a.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return!!l.test(e)}function f(e){const t=(0,i.mN)(e),n=t.path.match(l)||t.path.match(u);if(!n)return null;const[,r,s,a,c]=n,d=s.indexOf("/");return{title:h(-1!==d?s.slice(d+1):s),serverType:o[a.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:r}}}function p(e){const t=(0,i.mN)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function h(e){return(e=e.replace(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const n=[];if(e){const t=f(e);(0,r.pC)(t)&&t.title&&n.push(t.title)}if(t){const e=h(t);n.push(e)}if(2===n.length){if(-1!==n[0].toLowerCase().indexOf(n[1].toLowerCase()))return n[0];if(-1!==n[1].toLowerCase().indexOf(n[0].toLowerCase()))return n[1]}return n.join(" - ")}function y(e){if(!e)return!1;const t=-1!==(e=e.toLowerCase()).indexOf(".arcgis.com/"),n=-1!==e.indexOf("//services")||-1!==e.indexOf("//tiles")||-1!==e.indexOf("//features");return t&&n}function g(e,t){return e?(0,i.Qj)((0,i.Hu)(e,t)):e}function v(e){let{url:t}=e;if(!t)return{url:t};t=(0,i.Hu)(t,e.logger);const n=(0,i.mN)(t),s=f(n.path);let o;if((0,r.pC)(s))null!=s.sublayer&&null==e.layer.layerId&&(o=s.sublayer),t=s.url.path;else if(e.nonStandardUrlAllowed){const e=p(n.path);(0,r.pC)(e)&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,i.Qj)(t),layerId:o}}function b(e,t,n,r,o){(0,s.w)(t,r,"url",o),r.url&&null!=e.layerId&&(r.url=(0,i.v_)(r.url,n,e.layerId.toString()))}function w(e){if(!e)return!1;const t=e.toLowerCase(),n=-1!==t.indexOf("/services/"),r=-1!==t.indexOf("/mapserver/wmsserver"),i=-1!==t.indexOf("/imageserver/wmsserver"),s=-1!==t.indexOf("/wmsserver");return n&&(r||i||s)}},72729:(e,t,n)=>{n.d(t,{im:()=>T,V5:()=>C}),n(80442);var r,i=n(43697),s=n(22974),o=n(5600),a=(n(75215),n(36030)),l=n(52011),u=n(96674);n(67676);let c=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({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=r=(0,i._)([(0,l.j)("esri.layers.support.CodedValue")],c);const d=c,f=new(n(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i._)([(0,a.J)(f)],p.prototype,"type",void 0),p=(0,i._)([(0,l.j)("esri.layers.support.Domain")],p);const h=p;var m;let y=m=class extends h{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,s.d9)(this.codedValues),name:this.name})}};(0,i._)([(0,o.Cb)({type:[d],json:{write:!0}})],y.prototype,"codedValues",void 0),(0,i._)([(0,a.J)({codedValue:"coded-value"})],y.prototype,"type",void 0),y=m=(0,i._)([(0,l.j)("esri.layers.support.CodedValueDomain")],y);const g=y;var v;n(92604),n(37697);let b=v=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new v}};(0,i._)([(0,a.J)({inherited:"inherited"})],b.prototype,"type",void 0),b=v=(0,i._)([(0,l.j)("esri.layers.support.InheritedDomain")],b);const w=b;var S;let x=S=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({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,n){t[n]=[this.minValue||0,e]}}}})],x.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,n){t[n]=[e,this.maxValue||0]}}}})],x.prototype,"minValue",void 0),(0,i._)([(0,a.J)({range:"range"})],x.prototype,"type",void 0),x=S=(0,i._)([(0,l.j)("esri.layers.support.RangeDomain")],x);const _=x,C={key:"type",base:h,typeMap:{range:x,"coded-value":g,inherited:w}};function T(e){if(!e||!e.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return w.fromJSON(e)}return null}},86719:(e,t,n)=>{n.d(t,{v:()=>r});const r=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"})},35671:(e,t,n)=>{n.d(t,{io:()=>g,AB:()=>y,gd:()=>m,Mu:()=>w,Q0:()=>h,YN:()=>c,UF:()=>f,O5:()=>v,os:()=>S,H7:()=>E,qN:()=>N,Pz:()=>A,Qc:()=>q,vP:()=>G});var r,i,s=n(20102),o=n(78286);(i=r||(r={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",i.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";var a=n(59266);const l=["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 n of Array.isArray(e)?e:[e])if(d(l,n,t),"visualVariables"in n&&n.visualVariables)for(const e of n.visualVariables)d(u,e,t)}function d(e,t,n){if(e)for(const r of e){const e=(0,o.hS)(r,t),i=e&&"function"!=typeof e&&n.get(e);i&&(0,o.RB)(r,i.name,t)}}function f(e,t){if(null!=e&&null!=t&&t.fields.length)if("startField"in e){const n=t.get(e.startField),r=t.get(e.endField);e.startField=n&&n.name||null,e.endField=r&&r.name||null}else{const n=t.get(e.startTimeField),r=t.get(e.endTimeField);e.startTimeField=n&&n.name||null,e.endTimeField=r&&r.name||null}}const p=new Set;function h(e,t){return e&&t?(p.clear(),m(p,e,t),Array.from(p).sort()):[]}function m(e,t,n){var r;if(n)if(null!=t&&null!=(r=t.fields)&&r.length)if(n.includes("*"))for(const{name:n}of t.fields)e.add(n);else for(const r of n)y(e,t,r);else{if(n.includes("*"))return e.clear(),void e.add("*");for(const t of n)e.add(t)}}function y(e,t,n){if("string"==typeof n)if(t){const r=t.get(n);r&&e.add(r.name)}else e.add(n)}async function g(e,t,n){var r;if(!n)return;const{arcadeUtils:i}=await(0,a.LC)(),s=i.extractFieldNames(n,null==t||null==(r=t.fields)?void 0:r.map((e=>e.name)));for(const n of s)y(e,t,n)}function v({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 n of e)if(n&&n.valueType&&n.valueType===t)return n.name;return null}async function w(e,t){const{labelingInfo:r,fieldsIndex:i}=t;r&&r.length&&await Promise.all(r.map((t=>async function(e,t,r){if(!r)return;const i=r.getLabelExpression(),o=r.where;if("arcade"===i.type)await g(e,t,i.expression);else{const n=i.expression.match(/{[^}]*}/g);n&&n.forEach((n=>{y(e,t,n.slice(1,-1))}))}await async function(e,t,r){if(r&&"1=1"!==r){const i=(await Promise.all([n.e(1534),n.e(5732)]).then(n.bind(n,41534))).WhereClause.create(r,t);if(!i.isStandardized)throw new s.Z("fieldUtils:collectFilterFields","Where clause is not standardized");m(e,t,i.fieldNames)}}(e,t,o)}(e,i,t))))}function S(e){const t=e.defaultValue;return void 0!==t&&F(e,t)?t:e.nullable?null:void 0}function x(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function _(e){return null===e||x(e)}const C="isInteger"in Number?Number.isInteger:e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e;function T(e){return null===e||C(e)}function U(e){return null!=e&&"string"==typeof e}function O(e){return null===e||U(e)}function I(){return!0}function F(e,t){let n;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":n=e.nullable?T:C;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":n=e.nullable?_:x;break;case"string":case"esriFieldTypeString":n=e.nullable?O:U;break;default:n=I}return 1===arguments.length?n:n(t)}const V=new Set(["integer","small-integer","single","double","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble"]);function E(e){return null!=e&&V.has(e.type)}function N(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}var L,$;function A(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function q(e,t){return e.nullable&&null===t?null:E(e)&&!function(e,t){const n="string"==typeof e?P(e):e;return!!n&&(n.isInteger?C(t)&&t>=n.min&&t<=n.max:t>=n.min&&t<=n.max)}(e.type,Number(t))?L.OUT_OF_RANGE:F(e,t)?e.domain?function(e,t){switch(e.type){case"range":{const n="range"in e?e.range[0]:e.minValue,i="range"in e?e.range[1]:e.maxValue;if(+t<n||+t>i)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:$.INVALID_TYPE}function P(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return R;case"esriFieldTypeInteger":case"integer":return j;case"esriFieldTypeSingle":case"single":return k;case"esriFieldTypeDouble":case"double":return D}}!function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"}(L||(L={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}($||($={}));const R={min:-32768,max:32767,isInteger:!0},j={min:-2147483648,max:2147483647,isInteger:!0},k={min:-34e37,max:12e37,isInteger:!1},D={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1};function G(e,t,n){switch(e){case r.INVALID_CODED_VALUE:return`Value ${n} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.VALUE_OUT_OF_RANGE:return`Value ${n} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case $.INVALID_TYPE:return`Value ${n} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case L.OUT_OF_RANGE:{const{min:e,max:r}=P(t.type);return`Value ${n} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${r}`}}}},99282:(e,t,n)=>{n.d(t,{a:()=>s});var r=n(67900),i=n(68441);const s={inches:(0,r.En)(1,"meters","inches"),feet:(0,r.En)(1,"meters","feet"),"us-feet":(0,r.En)(1,"meters","us-feet"),yards:(0,r.En)(1,"meters","yards"),miles:(0,r.En)(1,"meters","miles"),"nautical-miles":(0,r.En)(1,"meters","nautical-miles"),millimeters:(0,r.En)(1,"meters","millimeters"),centimeters:(0,r.En)(1,"meters","centimeters"),decimeters:(0,r.En)(1,"meters","decimeters"),meters:(0,r.En)(1,"meters","meters"),kilometers:(0,r.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,r.ty)(1,"meters",i.sv.radius)}},51706:(e,t,n)=>{var r,i;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?r.Expression:e.field&&"string"==typeof e.field?r.Field:r.Unknown}function l(e,t){const n=t||a(e),s=e.valueUnit||"unknown";return n===r.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}n.d(t,{RY:()=>r,hL:()=>i,PS:()=>a,QW:()=>l,iY:()=>s,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(r||(r={})),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,n)=>{n.d(t,{PR:()=>x,Lq:()=>h,Km:()=>m,cM:()=>y,ap:()=>g,V3:()=>w,B3:()=>p});var r=n(22303),i=n(1692),s=n(74085),o=n(92604),a=n(70586),l=n(99282),u=n(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),d=new i.Z,f=Math.PI,p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function h(e,t,n){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,l=o&&o.attributes;let u=s?t:null;const d=i.field,{ipData:f,hasExpression:p}=i.cache;let h=i.cache.compiledFunc;if(!d&&!p){const e=i.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(p){if(!(0,a.pC)(n)||!(0,a.pC)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},t=n.arcade.arcadeUtils,r=t.getViewInfo(e),s=t.createExecContext(o,r);if(!h){const e=t.createSyntaxTree(i.valueExpression);h=t.createFunction(e),i.cache.compiledFunc=h}u=t.executeFunction(h,s)}else l&&(u=l[d]);const m=i.normalizationField,y=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||s||!isNaN(y)&&0!==y)){isNaN(y)||s||(u/=y);const e=S(u,f);if(e){const t=e[0],s=e[1],o=t===s?i.stops[t].color:r.Z.blendColors(i.stops[t].color,i.stops[s].color,e[2],(0,a.pC)(n)?n.color:void 0);return new r.Z(o)}}}function m(e,t,n){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.OpacityVariable"!==r.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 l=i?t:null;const u=r.field,{ipData:d,hasExpression:f}=r.cache;let p=r.cache.compiledFunc;if(!u&&!f){const e=r.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(f){if((0,a.Wi)(n)||(0,a.Wi)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},t=n.arcade.arcadeUtils,i=t.getViewInfo(e),o=t.createExecContext(s,i);if(!p){const e=t.createSyntaxTree(r.valueExpression);p=t.createFunction(e),r.cache.compiledFunc=p}l=t.executeFunction(p,o)}else o&&(l=o[u]);const h=r.normalizationField,m=o?parseFloat(o[h]):void 0;if(null!=l&&(!h||i||!isNaN(m)&&0!==m)){isNaN(m)||i||(l/=m);const e=S(l,d);if(e){const t=e[0],n=e[1];if(t===n)return r.stops[t].opacity;{const i=r.stops[t].opacity;return i+(r.stops[n].opacity-i)*e[2]}}}}function y(e,t,n){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.RotationVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const i=r.axis||"heading",s="heading"===i&&"arithmetic"===r.rotationType?90:0,o="heading"===i&&"arithmetic"===r.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,d=r.field,{hasExpression:f}=r.cache;let p=r.cache.compiledFunc,h=0;if(!d&&!f)return h;if(f){if((0,a.Wi)(n)||(0,a.Wi)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},t=n.arcade.arcadeUtils,i=t.getViewInfo(e),s=t.createExecContext(l,i);if(!p){const e=t.createSyntaxTree(r.valueExpression);p=t.createFunction(e),r.cache.compiledFunc=p}h=t.executeFunction(p,s)}else u&&(h=u[d]||0);return h="number"!=typeof h||isNaN(h)?null:s+o*h,h}function g(e,t,n){const r="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!r)return;if("esri.renderers.visualVariables.SizeVariable"!==r.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const i=function(e,t,n,r,i){switch(t.transformationType){case u.hL.Additive:return function(e,t,n,r){return e+(v(t.minSize,n,r)||t.minDataValue)}(e,t,n,r);case u.hL.Constant:return function(e,t,n){const r=e.stops;let i=r&&r.length&&r[0].size;return null==i&&(i=e.minSize),v(i,t,n)}(t,n,r);case u.hL.ClampedLinear:return function(e,t,n,r){const i=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),s=v(t.minSize,n,r),o=v(t.maxSize,n,r),l=(0,a.pC)(r)?r.shape:void 0;if(e<=t.minDataValue)return s;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?f*(s/2)**2:s*s,n=t+i*((e?f*(o/2)**2:o*o)-t);return e?2*Math.sqrt(n/f):Math.sqrt(n)}return s+i*(o-s)}(e,t,n,r);case u.hL.Proportional:return function(e,t,n,r){const i=(0,a.pC)(r)?r.shape:void 0,s=e/t.minDataValue,o=v(t.minSize,n,r),l=v(t.maxSize,n,r);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,b(u,o,l)}(e,t,n,r);case u.hL.Stops:return function(e,t,n,r,i){const[s,o,a]=S(e,i);if(s===o)return v(t.stops[s].size,n,r);{const e=v(t.stops[s].size,n,r);return e+(v(t.stops[o].size,n,r)-e)*a}}(e,t,n,r,i);case u.hL.RealWorldSize:return function(e,t,n,r){const i=((0,a.pC)(r)&&r.resolution?r.resolution:1)*l.a[t.valueUnit],s=v(t.minSize,n,r),o=v(t.maxSize,n,r),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/f)/i:"radius"===u||"distance"===u?2*e/i:e/i,b(c,s,o)}(e,t,n,r);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,n){const r="number"==typeof t,i=r?null:t,s=i&&i.attributes;let o=r?t:null;const{isScaleDriven:l}=e.cache;let d=e.cache.compiledFunc;if(l){const t=(0,a.pC)(n)?n.scale:void 0,r=(0,a.pC)(n)?n.view:void 0;o=null==t||"3d"===r?function(e){let t=null,n=null;const r=e.stops;return r?(t=r[0].value,n=r[r.length-1].value):(t=e.minDataValue||0,n=e.maxDataValue||0),(t+n)/2}(e):t}else if(!r)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(n)||(0,a.Wi)(n.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:n.viewingMode,scale:n.scale,spatialReference:n.spatialReference},r=n.arcade.arcadeUtils,s=r.getViewInfo(t),l=r.createExecContext(i,s);if(!d){const t=r.createSyntaxTree(e.valueExpression);d=r.createFunction(t),e.cache.compiledFunc=d}o=r.executeFunction(d,l);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(r||!e.normalizationField)return o;const f=s?parseFloat(s[e.normalizationField]):null;return(0,u.qh)(f)&&0!==f?o/f:null}(r,t,n),r,t,n,r.cache.ipData);return null==i||isNaN(i)?0:i}function v(e,t,n){return null==e?null:(0,u.iY)(e)?g(e,t,n):(0,u.qh)(e)?e:null}function b(e,t,n){return(0,u.qh)(n)&&e>n?n:(0,u.qh)(t)&&e<t?t:e}function w(e,t,n){const{isScaleDriven:r}=e.cache;if(!(r&&"3d"===n||t))return null;const i={scale:t,view:n};let s=v(e.minSize,d,i),o=v(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 S(e,t){if(!t)return;let n=0,r=t.length-1;return t.some(((t,i)=>e<t?(r=i,!0):(n=i,!1))),[n,r,(e-t[n])/(t[r]-t[n])]}function x(e,t,n){const r=["proportional","proportional","proportional"];for(const i of e){const e=i.useSymbolValue?"symbol-value":g(i,t,n);switch(i.axis){case"width":r[0]=e;break;case"depth":r[1]=e;break;case"height":r[2]=e;break;case"width-and-depth":r[0]=e,r[1]=e;break;case"all":case void 0:case null:r[0]=e,r[1]=e,r[2]=e;break;default:(0,s.Bg)(i.axis)}}return r}},59266:(e,t,n)=>{n.d(t,{mz:()=>c,pp:()=>u,WW:()=>a,Yi:()=>l,LC:()=>o}),n(66577);var r=n(70586),i=n(82971);let s;function o(){return s||(s=(async()=>{const e=await Promise.all([n.e(9490),n.e(6690)]).then(n.bind(n,96690));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),s}const a=(e,t,n)=>c.create(e,t,n,null,["$feature"]),l=(e,t,n)=>c.create(e,t,n,null,["$feature","$view"]),u=(e,t,n,r)=>c.create(e,t,n,r,["$feature","$view"]);class c{constructor(e,t,n,r,i,s,o,a){this.script=e,this.evaluate=i;const l=Array.isArray(o)?o:o.fields;this.fields=l,this._syntaxTree=r,this._arcade=t,this._arcadeDictionary=n,this._arcadeFeature=s,this._spatialReference=a,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,n,s,a,l){const{arcade:u,Feature:d,Dictionary:f}=await o(),p=i.Z.fromJSON(t),h=u.parseScript(e,l),m=a.reduce(((e,t)=>({...e,[t]:null})),{});let y=null;(0,r.pC)(s)&&(y=new f(s),y.immutable=!0,m.$config=null);const g=u.scriptUsesGeometryEngine(h)&&u.enableGeometrySupport(),v=u.scriptUsesFeatureSet(h)&&u.enableFeatureSetSupport(),b=u.scriptIsAsync(h)&&u.enableAsyncSupport(),w={vars:m,spatialReference:p,useAsync:!!b},S=new f;S.immutable=!1,S.setField("scale",0);const x=u.compileScript(h,w);return await Promise.all([g,v,b]),new c(e,u,f,h,(e=>("$view"in e&&e.$view&&(S.setField("scale",e.$view.scale),e.$view=S),y&&(e.$config=y),x({vars:e,spatialReference:p}))),new d,n,p)}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)}}},58333:(e,t,n)=>{n.d(t,{I4:()=>i,lF:()=>o,ET:()=>s,qP:()=>a,eG:()=>l,lj:()=>c,wW:()=>u});const r=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={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},l={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}},89749:(e,t,n)=>{n.d(t,{t:()=>d});var r=n(43697),i=n(15923),s=n(61247),o=n(70586),a=n(17445),l=n(1654),u=n(5600),c=n(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,n={}){const r=++this.handleId;n.sync||this._installSyncUpdatingWatch(e,r);const i=(0,a.YP)(e,t,n);return this.handles.add(i,r),{remove:()=>this.handles.remove(r)}}addOnCollectionChange(e,t,{initial:n=!1}={}){const r=++this.handleId;return this.handles.add([(0,a.on)(e,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(e,"change",t,{onListenerAdd:n?e=>t({added:e.toArray(),removed:[]}):void 0})],r),{remove:()=>this.handles.remove(r)}}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(f)||this._set("updating",!1))}},t),this.pendingPromises.add(e),this._set("updating",!0);const n=()=>this.handles.remove(t);return e.then(n,n),e}removeAll(){this.pendingPromises.clear(),this.handles.removeAll(),this._set("updating",!1)}_installSyncUpdatingWatch(e,t){const n=this._createSyncUpdatingCallback(),r=(0,a.YP)(e,n,{sync:!0,equals:()=>!1});return this.handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this.handles.remove(f),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(f))})),f)}}};(0,r._)([(0,u.Cb)({readOnly:!0})],d.prototype,"updating",void 0),d=(0,r._)([(0,c.j)("esri.views.support.WatchUpdatingTracking")],d);const f=-42;var p,h;(h=p||(p={}))[h.NONE=0]="NONE",h[h.SYNC=1]="SYNC",h[h.INIT=2]="INIT"},410:(e,t,n)=>{function r(e){var t;const n=e.layer;return"floorInfo"in n&&null!=(t=n.floorInfo)&&t.floorField&&"floors"in e.view?o(e.view.floors,n.floorInfo.floorField):null}function i(e,t){var n;return"floorInfo"in t&&null!=(n=t.floorInfo)&&n.floorField?o(e,t.floorInfo.floorField):null}function s(e,t){const{definitionExpression:n}=t;return e?n?`(${n}) AND (${e})`:e:n}function o(e,t){if(null==e||!e.length)return null;const n=e.filter((e=>""!==e)).map((e=>`'${e}'`));return n.push("''"),`${t} IN (${n.join(",")}) OR ${t} IS NULL`}n.d(t,{Hp:()=>s,cx:()=>r,ff:()=>i})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8216],{1692:(e,t,r)=>{r.d(t,{Z:()=>w});var s=r(43697),o=r(66577),i=r(51773),n=r(78223),a=r(15923),l=(r(80442),r(22974)),u=r(92604),p=r(70586),c=r(31263),d=r(1153),h=r(52011);u.Z.getLogger("esri.core.Clonable");const y=e=>{let t=class extends e{clone(){const e=(0,p.s3)((0,d.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,r=e.store,s={},o=new Map;for(const e in t){const i=t[e],n=null==r?void 0:r.originOf(e);if(i.readOnly||!1===i.clonable||n!==c.s3.USER&&n!==c.s3.DEFAULTS)continue;const a=this[e];let u=null;const p=i.clonable;u="function"==typeof p?p(a):"reference"===p?a:(0,l.Vo)(a),null!=a&&null==u||(n===c.s3.DEFAULTS?o.set(e,u):s[e]=u)}const i=new(0,Object.getPrototypeOf(this).constructor)(s);if(o.size){var n;const e=null==(n=(0,d.vw)(i))?void 0:n.store;if(e)for(const[t,r]of o)e.set(t,r,c.s3.DEFAULTS)}return i}};return t=(0,s._)([(0,h.j)("esri.core.Clonable")],t),t};let m=class extends(y(a.Z)){};m=(0,s._)([(0,h.j)("esri.core.Clonable")],m);var f=r(96674),g=r(99001),b=r(5600),v=(r(67676),r(75215),r(33955));let _=class extends(y(f.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,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:r,popupTemplate:s}}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,p.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,p.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,p.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,p.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,r,s){if(!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:r};"attributes"===e&&(o.attributeName=s),this.layer.graphicChanged(o)}};(0,s._)([(0,b.Cb)({value:null})],_.prototype,"attributes",null),(0,s._)([(0,b.Cb)({value:null,types:o.qM,json:{read:v.im}})],_.prototype,"geometry",null),(0,s._)([(0,b.Cb)({type:Boolean})],_.prototype,"isAggregate",void 0),(0,s._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"layer",void 0),(0,s._)([(0,b.Cb)({type:i.Z})],_.prototype,"popupTemplate",void 0),(0,s._)([(0,b.Cb)({clonable:"reference"})],_.prototype,"sourceLayer",void 0),(0,s._)([(0,b.Cb)({value:null,types:n.LB})],_.prototype,"symbol",null),(0,s._)([(0,b.Cb)({type:Boolean,value:!0})],_.prototype,"visible",null),_=(0,s._)([(0,h.j)("esri.Graphic")],_),(_||(_={})).generateUID=g.D;const w=_},99880:(e,t,r)=>{r.d(t,{V:()=>l});var s=r(68773),o=(r(3172),r(20102)),i=r(92604),n=r(17452);const a=i.Z.getLogger("esri.assets");function l(e){if(!s.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,n.v_)(s.Z.assetsPath,e)}},3920:(e,t,r)=>{r.d(t,{r:()=>p,p:()=>u});var s=r(43697),o=r(15923),i=r(61247),n=r(5600),a=r(52011),l=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 i.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,s._)([(0,n.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,s._)([(0,n.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,s._)([(0,a.j)("esri.core.HandleOwner")],t),t};let p=class extends(u(o.Z)){};p=(0,s._)([(0,a.j)("esri.core.HandleOwner")],p)},36030:(e,t,r)=>{r.d(t,{J:()=>i});var s=r(35454),o=r(5600);function i(e,t={}){var r;const i=e instanceof s.X?e:new s.X(e,t),n={type:null==(r=null==t?void 0:t.ignoreUnknown)||r?i.apiValues:String,json:{type:i.jsonValues,read:(null==t||!t.readOnly)&&{reader:i.read},write:{writer:i.write}}};return void 0!==(null==t?void 0:t.readOnly)&&(n.readOnly=!!t.readOnly),void 0!==(null==t?void 0:t.default)&&(n.json.default=t.default),void 0!==(null==t?void 0:t.name)&&(n.json.name=t.name),(0,o.Cb)(n)}},74085:(e,t,r)=>{function s(e){}r.d(t,{Bg:()=>s}),r(80442)},80903:(e,t,r)=>{r.d(t,{Z:()=>l});var s=r(50758),o=r(92604),i=r(95330),n=r(25045);const a=o.Z.getLogger("esri.core.workers.Connection");class l{constructor(){this._clients=new Array,this._clientPromises=new Array,this._clientIdx=0}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((r,s)=>{let o=!0;const a=e=>{(0,i.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,i.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new n.default(e,t),a(r),this._clients[o])),(()=>(a(s),null))):(this._clients[o]=new n.default(l,t),this._clientPromises[o]=Promise.resolve(this._clients[o]),a(r))}}))}broadcast(e,t,r){const s=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const i=this._clientPromises[o];s[o]=i.then((s=>s.invoke(e,t,r)))}return s}close(){for(const e of this._clientPromises)e.then((e=>e.close()));this._clients.length=0,this._clientPromises.length=0}getAvailableClient(){let e;for(let t=0;t<this._clients.length;++t){const r=this._clients[t];if(r){if(!r.isBusy())return Promise.resolve(r)}else e=e||[],e.push(this._clientPromises[t])}return e?Promise.race(e):(this._clientIdx=(this._clientIdx+1)%this._clients.length,Promise.resolve(this._clients[this._clientIdx]))}invoke(e,t,r){let s=null;return Array.isArray(r)?(a.warn("invoke()","The transferList parameter is deprecated, use the options object instead"),s={transferList:r}):s=r,this.closed?Promise.reject(new Error("Connection closed")):this.getAvailableClient().then((r=>r.invoke(e,t,s)))}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,s.AL)(this._clients.map((r=>r.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let r=t.length;for(let s=0;s<this._clientPromises.length;++s)this._clientPromises[s].then((o=>{t[s]=o.openPort(),0==--r&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},25045:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(40330),o=r(20102),i=r(91460),n=r(70586),a=r(95330),l=r(94362),u=r(17202);const p={statsWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(966)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(4547),r.e(2781),r.e(6481),r.e(6459),r.e(3553)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(5404)]).then(r.bind(r,2255)),GeoJSONSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(8961),r.e(147)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(5638),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(3578),r.e(8961),r.e(7054),r.e(4325),r.e(2730),r.e(7783)]).then(r.bind(r,97783)),PointCloudWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(9294),r.e(9474)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(176),r.e(2398),r.e(5340)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(4556),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(2303),r.e(4325),r.e(1785),r.e(6810),r.e(9872)]).then(r.bind(r,56456))},{CLOSE:c,ABORT:d,INVOKE:h,RESPONSE:y,OPEN_PORT:m,ON:f}=l.Cs;class g{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class b{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new g((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const s=new b(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=s),b.clients.set(s,r),t.port2}static loadWorker(e){const t=p[e];return t?t():Promise.resolve(null)}close(){this._post({type:c}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const s=r&&r.signal,i=r&&r.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const n=(0,l.jt)();return new Promise(((r,o)=>{const l=(0,a.$F)(s,(()=>{var e;const t=this._outJobs.get(n);t&&(this._outJobs.delete(n),null==(e=t.abortHandle)||e.remove(),this._post({type:d,jobId:n}),o((0,a.zE)()))})),u={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(n,u),this._post({type:h,jobId:n,methodName:e,abortable:null!=s},t,i)}))}on(e,t){const r=new MessageChannel;function s(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",s),r.port1.start(),{remove(){r.port1.postMessage({type:l.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",s)}}}openPort(){const e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,n.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case y:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case c:this._onCloseMessage();break;case m:this._onOpenPortMessage(t);break;case f:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,s=t.get(r);this._invokeQueue.push(e),s&&(s.controller&&s.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&b.clients.get(this)===e&&e.destroy(),b.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:s,abortable:o}=e,i=o?new AbortController:null,n=this._inJobs;let u,p=this._client,c=p[t];try{if(!c&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)p=p[e[t]],c=p[e[t+1]]}if("function"!=typeof c)throw new TypeError(`${t} is not a function`);u=c.call(p,s,{client:this,signal:i?i.signal:null})}catch(e){return void this._post({type:y,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(u)?(n.set(r,{controller:i,promise:u}),u.then((e=>{n.has(r)&&(n.delete(r),this._post({type:y,jobId:r},e))}),(e=>{n.has(r)&&(n.delete(r),(0,a.D_)(e)||this._post({type:y,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},u)}_onOpenPortMessage(e){new b(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),s=(0,i.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(s.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:i}=e,n=this._outJobs;if(!n.has(r))return;const a=n.get(r);n.delete(r),null==(t=a.abortHandle)||t.remove(),s?a.reject(o.Z.fromJSON(JSON.parse(s))):a.resolve(i)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}b.kernelInfo={revision:u.$,version:s.i8,buildDate:u.r},b.clients=new Map},94362:(e,t,r)=>{r.d(t,{Cs:()=>s,jt:()=>a,oi:()=>u,QM:()=>p,AB:()=>l});var s,o,i=r(80442);(o=s||(s={}))[o.HANDSHAKE=0]="HANDSHAKE",o[o.OPEN=1]="OPEN",o[o.OPENED=2]="OPENED",o[o.RESPONSE=3]="RESPONSE",o[o.INVOKE=4]="INVOKE",o[o.ABORT=5]="ABORT",o[o.CLOSE=6]="CLOSE",o[o.OPEN_PORT=7]="OPEN_PORT",o[o.ON=8]="ON";let n=0;function a(){return n++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function u(e,t,r,o){if(t.type===s.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==s.INVOKE&&t.type!==s.RESPONSE)return void e.postMessage(t);let i;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=c(o),t.data=r):(i=c(r.transferList),t.data=r.result),i?e.postMessage(t,i):e.postMessage(t)}function p(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function c(e){if(!e||!e.length)return null;if((0,i.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},69285:(e,t,r)=>{r.d(t,{k:()=>n});var s=r(70586),o=r(67900),i=r(8744);function n(e,t,r){if((0,s.Wi)(t)||(0,s.Wi)(r)||r.vcsWkid||(0,i.fS)(t,r))return null;const n=(0,o._R)(t)/(0,o._R)(r);if(1===n)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){e&&null!=e.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const r of e.paths)for(const e of r)e.length>2&&(e[2]*=t)}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const r of e.rings)for(const e of r)e.length>2&&(e[2]*=t)}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryExtent":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return null}}},70082:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(43697),o=r(35454),i=r(96674),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011));const l=new o.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends i.wq{constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"name",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"description",void 0),(0,s._)([(0,n.Cb)({json:{read:l.read,write:l.write}})],u.prototype,"drawingTool",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,s._)([(0,a.j)("esri.layers.support.FeatureTemplate")],u);const p=u},16451:(e,t,r)=>{r.d(t,{Z:()=>d});var s=r(43697),o=r(96674),i=r(5600),n=(r(67676),r(80442),r(75215),r(71715)),a=r(52011),l=r(30556),u=r(72729),p=r(70082);let c=class extends o.wq{constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e)){var s;e[t]&&(r[t]=null==(s=e[t])?void 0:s.toJSON())}t.domains=r}};(0,s._)([(0,i.Cb)({json:{write:!0}})],c.prototype,"id",void 0),(0,s._)([(0,i.Cb)({json:{write:!0}})],c.prototype,"name",void 0),(0,s._)([(0,i.Cb)({json:{write:!0}})],c.prototype,"domains",void 0),(0,s._)([(0,n.r)("domains")],c.prototype,"readDomains",null),(0,s._)([(0,l.c)("domains")],c.prototype,"writeDomains",null),(0,s._)([(0,i.Cb)({type:[p.Z],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,s._)([(0,a.j)("esri.layers.support.FeatureType")],c);const d=c},14147:(e,t,r)=>{r.d(t,{W:()=>p});var s=r(40330),o=r(3172),i=r(70586),n=r(95330),a=r(67284),l=r(65587),u=r(15235);class p{constructor(e,t,r,s){this.parsedUrl=e,this.portalItem=t,this.apiKey=r,this.signal=s,this.rootDocument=null;const o=this.parsedUrl.path.match(/^(.*)\/SceneServer\/layers\/([\d]*)\/?$/i);o&&(this.urlParts={root:o[1],layerId:parseInt(o[2],10)})}async fetch(){var e;if(!this.urlParts)return null;const t=null!=(e=this.portalItem)?e:await this._portalItemFromServiceItemId();if((0,i.Wi)(t))return this._loadFromUrl();const r=await this._findAndLoadRelatedPortalItem(t);return(0,i.Wi)(r)?null:this._loadFeatureLayerFromPortalItem(r)}async fetchPortalItem(){var e;if(!this.urlParts)return null;const t=null!=(e=this.portalItem)?e:await this._portalItemFromServiceItemId();return(0,i.Wi)(t)?null:this._findAndLoadRelatedPortalItem(t)}async _fetchRootDocument(){if((0,i.pC)(this.rootDocument))return this.rootDocument;if((0,i.Wi)(this.urlParts))return this.rootDocument={},{};const e={query:{f:"json",token:this.apiKey},responseType:"json",signal:this.signal},t=`${this.urlParts.root}/SceneServer`;try{const r=await(0,o.default)(t,e);this.rootDocument=r.data}catch{this.rootDocument={}}return this.rootDocument}async _fetchServiceOwningPortalUrl(){var e;const t=null==(e=s.id)?void 0:e.findServerInfo(this.parsedUrl.path);if(null!=t&&t.owningSystemUrl)return t.owningSystemUrl;const r=this.parsedUrl.path.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const e=(await(0,o.default)(r,{query:{f:"json"},responseType:"json",signal:this.signal})).data.owningSystemUrl;if(e)return e}catch(e){(0,n.r9)(e)}return null}async _findAndLoadRelatedPortalItem(e){try{return(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:this.signal})).find((e=>"Feature Service"===e.type))||null}catch(e){return(0,n.r9)(e),null}}async _loadFeatureLayerFromPortalItem(e){await e.load({signal:this.signal});const t=await this._findMatchingAssociatedSublayerUrl(e.url);return new a.default({url:t,portalItem:e}).load({signal:this.signal})}async _loadFromUrl(){const e=await this._findMatchingAssociatedSublayerUrl(`${this.urlParts.root}/FeatureServer`);return new a.default({url:e}).load({signal:this.signal})}async _findMatchingAssociatedSublayerUrl(e){const t=e.replace(/^(.*FeatureServer)(\/[\d]*\/?)?$/i,"$1"),r={query:{f:"json"},responseType:"json",authMode:"no-prompt",signal:this.signal},s=this.urlParts.layerId,i=this._fetchRootDocument(),n=(0,o.default)(t,r),[a,l]=await Promise.all([n,i]),u=l&&l.layers,p=a.data&&a.data.layers;if(!Array.isArray(p))throw new Error("expected layers array");if(Array.isArray(u)){for(let e=0;e<Math.min(u.length,p.length);e++)if(u[e].id===s)return`${t}/${p[e].id}`}else if(s<p.length)return`${t}/${p[s].id}`;throw new Error("could not find matching associated sublayer")}async _portalItemFromServiceItemId(){const e=(await this._fetchRootDocument()).serviceItemId;if(!e)return null;const t=new u.default({id:e,apiKey:this.apiKey}),r=await this._fetchServiceOwningPortalUrl();(0,i.pC)(r)&&(t.portal=new l.Z({url:r}));try{return t.load({signal:this.signal})}catch(e){return(0,n.r9)(e),null}}}},1231:(e,t,r)=>{r.d(t,{Z:()=>f});var s,o=r(43697),i=r(35454),n=r(96674),a=r(5600),l=(r(67676),r(80442),r(75215)),u=r(36030),p=r(71715),c=r(52011),d=r(72729),h=r(86719);const y=new i.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=s=class extends n.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?y.fromJSON(r.fieldValueType):null}clone(){return new s({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,o._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,a.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,a.Cb)()],m.prototype,"description",void 0),(0,o._)([(0,p.r)("description")],m.prototype,"readDescription",null),(0,o._)([(0,a.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.J)(h.v)],m.prototype,"type",void 0),(0,o._)([(0,a.Cb)()],m.prototype,"valueType",void 0),(0,o._)([(0,p.r)("valueType",["description"])],m.prototype,"readValueType",null),m=s=(0,o._)([(0,c.j)("esri.layers.support.Field")],m);const f=m},51161:(e,t,r)=>{r.d(t,{H3:()=>g,QI:()=>c,U4:()=>l,Yh:()=>h});var s=r(43697),o=r(96674),i=r(5600),n=(r(67676),r(80442),r(75215),r(36030)),a=r(52011);let l=class extends o.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,s._)([(0,i.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,s._)([(0,i.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,s._)([(0,i.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,s._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let u=class extends o.wq{constructor(){super(...arguments),this.factor=1}};(0,s._)([(0,i.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],u.prototype,"id",void 0),(0,s._)([(0,i.Cb)({type:Number})],u.prototype,"factor",void 0),u=(0,s._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],u);let p=class extends o.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,s._)([(0,i.Cb)({type:[Number]})],p.prototype,"baseColorFactor",void 0),(0,s._)([(0,i.Cb)({type:u})],p.prototype,"baseColorTexture",void 0),(0,s._)([(0,i.Cb)({type:u})],p.prototype,"metallicRoughnessTexture",void 0),(0,s._)([(0,i.Cb)({type:Number})],p.prototype,"metallicFactor",void 0),(0,s._)([(0,i.Cb)({type:Number})],p.prototype,"roughnessFactor",void 0),p=(0,s._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],p);let c=class extends o.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,s._)([(0,n.J)({opaque:"opaque",mask:"mask",blend:"blend"})],c.prototype,"alphaMode",void 0),(0,s._)([(0,i.Cb)({type:Number})],c.prototype,"alphaCutoff",void 0),(0,s._)([(0,i.Cb)({type:Boolean})],c.prototype,"doubleSided",void 0),(0,s._)([(0,n.J)({none:"none",back:"back",front:"front"})],c.prototype,"cullFace",void 0),(0,s._)([(0,i.Cb)({type:u})],c.prototype,"normalTexture",void 0),(0,s._)([(0,i.Cb)({type:u})],c.prototype,"occlusionTexture",void 0),(0,s._)([(0,i.Cb)({type:u})],c.prototype,"emissiveTexture",void 0),(0,s._)([(0,i.Cb)({type:[Number]})],c.prototype,"emissiveFactor",void 0),(0,s._)([(0,i.Cb)({type:p})],c.prototype,"pbrMetallicRoughness",void 0),c=(0,s._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],c);let d=class extends o.wq{};(0,s._)([(0,i.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,s._)([(0,n.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,s._)([(0,a.j)("esri.layer.support.I3STextureFormat")],d);let h=class extends o.wq{constructor(){super(...arguments),this.atlas=!1}};(0,s._)([(0,i.Cb)({type:[d]})],h.prototype,"formats",void 0),(0,s._)([(0,i.Cb)({type:Boolean})],h.prototype,"atlas",void 0),h=(0,s._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],h);let y=class extends o.wq{};(0,s._)([(0,n.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],y.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number})],y.prototype,"component",void 0),y=(0,s._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],y);let m=class extends o.wq{};(0,s._)([(0,n.J)({draco:"draco"})],m.prototype,"encoding",void 0),(0,s._)([(0,i.Cb)({type:[String]})],m.prototype,"attributes",void 0),m=(0,s._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let f=class extends o.wq{constructor(){super(...arguments),this.offset=0}};(0,s._)([(0,i.Cb)({type:Number})],f.prototype,"offset",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"position",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"normal",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"uv0",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"color",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"uvRegion",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"featureId",void 0),(0,s._)([(0,i.Cb)({type:y})],f.prototype,"faceRange",void 0),(0,s._)([(0,i.Cb)({type:m})],f.prototype,"compressedAttributes",void 0),f=(0,s._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],f);let g=class extends o.wq{};(0,s._)([(0,n.J)({triangle:"triangle"})],g.prototype,"topology",void 0),(0,s._)([(0,i.Cb)()],g.prototype,"geometryBuffers",void 0),g=(0,s._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],g)},56765:(e,t,r)=>{r.d(t,{Z:()=>p});var s,o=r(43697),i=r(80539),n=r(96674),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011));let u=s=class extends n.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new s({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=s=(0,o._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],u);const p=u},15506:(e,t,r)=>{r.d(t,{C:()=>s});const s={attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1},data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1},query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},72729:(e,t,r)=>{r.d(t,{im:()=>x,V5:()=>P}),r(80442);var s,o=r(43697),i=r(22974),n=r(5600),a=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let p=s=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,o._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,o._)([(0,n.Cb)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=s=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],p);const c=p,d=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,o._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,o._)([(0,a.J)(d)],h.prototype,"type",void 0),h=(0,o._)([(0,l.j)("esri.layers.support.Domain")],h);const y=h;var m;let f=m=class extends y{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 m({codedValues:(0,i.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,n.Cb)({type:[c],json:{write:!0}})],f.prototype,"codedValues",void 0),(0,o._)([(0,a.J)({codedValue:"coded-value"})],f.prototype,"type",void 0),f=m=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],f);const g=f;var b;r(92604),r(37697);let v=b=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,o._)([(0,a.J)({inherited:"inherited"})],v.prototype,"type",void 0),v=b=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],v);const _=v;var w;let S=w=class extends y{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,o._)([(0,n.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,o._)([(0,n.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,o._)([(0,a.J)({range:"range"})],S.prototype,"type",void 0),S=w=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],S);const C=S,P={key:"type",base:y,typeMap:{range:S,"coded-value":g,inherited:_}};function x(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:()=>s});const s=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"})},51706:(e,t,r)=>{var s,o;function i(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function a(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function l(e,t){const r=t||a(e),i=e.valueUnit||"unknown";return r===s.Unknown?o.Constant:e.stops?o.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?o.ClampedLinear:"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?o.Proportional:o.Additive:o.Identity:o.RealWorldSize}r.d(t,{RY:()=>s,hL:()=>o,PS:()=>a,QW:()=>l,iY:()=>i,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),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"}(o||(o={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>S,Lq:()=>y,Km:()=>m,cM:()=>f,ap:()=>g,V3:()=>_,B3:()=>h});var s=r(22303),o=r(1692),i=r(74085),n=r(92604),a=r(70586),l=r(99282),u=r(51706);const p=n.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),c=new o.Z,d=Math.PI,h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function y(e,t,r){const o="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!o)return;if("esri.renderers.visualVariables.ColorVariable"!==o.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const i="number"==typeof t,n=i?null:t,l=n&&n.attributes;let u=i?t:null;const c=o.field,{ipData:d,hasExpression:h}=o.cache;let y=o.cache.compiledFunc;if(!c&&!h){const e=o.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(h){if(!(0,a.pC)(r)||!(0,a.pC)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,s=t.getViewInfo(e),i=t.createExecContext(n,s);if(!y){const e=t.createSyntaxTree(o.valueExpression);y=t.createFunction(e),o.cache.compiledFunc=y}u=t.executeFunction(y,i)}else l&&(u=l[c]);const m=o.normalizationField,f=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||i||!isNaN(f)&&0!==f)){isNaN(f)||i||(u/=f);const e=w(u,d);if(e){const t=e[0],i=e[1],n=t===i?o.stops[t].color:s.Z.blendColors(o.stops[t].color,o.stops[i].color,e[2],(0,a.pC)(r)?r.color:void 0);return new s.Z(n)}}}function m(e,t,r){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!s)return;if("esri.renderers.visualVariables.OpacityVariable"!==s.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const o="number"==typeof t,i=o?null:t,n=i&&i.attributes;let l=o?t:null;const u=s.field,{ipData:c,hasExpression:d}=s.cache;let h=s.cache.compiledFunc;if(!u&&!d){const e=s.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(d){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,o=t.getViewInfo(e),n=t.createExecContext(i,o);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}l=t.executeFunction(h,n)}else n&&(l=n[u]);const y=s.normalizationField,m=n?parseFloat(n[y]):void 0;if(null!=l&&(!y||o||!isNaN(m)&&0!==m)){isNaN(m)||o||(l/=m);const e=w(l,c);if(e){const t=e[0],r=e[1];if(t===r)return s.stops[t].opacity;{const o=s.stops[t].opacity;return o+(s.stops[r].opacity-o)*e[2]}}}}function f(e,t,r){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const o=s.axis||"heading",i="heading"===o&&"arithmetic"===s.rotationType?90:0,n="heading"===o&&"arithmetic"===s.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,c=s.field,{hasExpression:d}=s.cache;let h=s.cache.compiledFunc,y=0;if(!c&&!d)return y;if(d){if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,o=t.getViewInfo(e),i=t.createExecContext(l,o);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}y=t.executeFunction(h,i)}else u&&(y=u[c]||0);return y="number"!=typeof y||isNaN(y)?null:i+n*y,y}function g(e,t,r){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void p.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const o=function(e,t,r,s,o){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,s){return e+(b(t.minSize,r,s)||t.minDataValue)}(e,t,r,s);case u.hL.Constant:return function(e,t,r){const s=e.stops;let o=s&&s.length&&s[0].size;return null==o&&(o=e.minSize),b(o,t,r)}(t,r,s);case u.hL.ClampedLinear:return function(e,t,r,s){const o=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),i=b(t.minSize,r,s),n=b(t.maxSize,r,s),l=(0,a.pC)(s)?s.shape:void 0;if(e<=t.minDataValue)return i;if(e>=t.maxDataValue)return n;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?d*(i/2)**2:i*i,r=t+o*((e?d*(n/2)**2:n*n)-t);return e?2*Math.sqrt(r/d):Math.sqrt(r)}return i+o*(n-i)}(e,t,r,s);case u.hL.Proportional:return function(e,t,r,s){const o=(0,a.pC)(s)?s.shape:void 0,i=e/t.minDataValue,n=b(t.minSize,r,s),l=b(t.maxSize,r,s);let u=null;return u="circle"===o?2*Math.sqrt(i*(n/2)**2):"square"===o||"diamond"===o||"image"===o?Math.sqrt(i*n**2):i*n,v(u,n,l)}(e,t,r,s);case u.hL.Stops:return function(e,t,r,s,o){const[i,n,a]=w(e,o);if(i===n)return b(t.stops[i].size,r,s);{const e=b(t.stops[i].size,r,s);return e+(b(t.stops[n].size,r,s)-e)*a}}(e,t,r,s,o);case u.hL.RealWorldSize:return function(e,t,r,s){const o=((0,a.pC)(s)&&s.resolution?s.resolution:1)*l.a[t.valueUnit],i=b(t.minSize,r,s),n=b(t.maxSize,r,s),{valueRepresentation:u}=t;let p=null;return p="area"===u?2*Math.sqrt(e/d)/o:"radius"===u||"distance"===u?2*e/o:e/o,v(p,i,n)}(e,t,r,s);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const s="number"==typeof t,o=s?null:t,i=o&&o.attributes;let n=s?t:null;const{isScaleDriven:l}=e.cache;let c=e.cache.compiledFunc;if(l){const t=(0,a.pC)(r)?r.scale:void 0,s=(0,a.pC)(r)?r.view:void 0;n=null==t||"3d"===s?function(e){let t=null,r=null;const s=e.stops;return s?(t=s[0].value,r=s[s.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!s)switch(e.inputValueType){case u.RY.Expression:{if((0,a.Wi)(r)||(0,a.Wi)(r.arcade))return void p.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},s=r.arcade.arcadeUtils,i=s.getViewInfo(t),l=s.createExecContext(o,i);if(!c){const t=s.createSyntaxTree(e.valueExpression);c=s.createFunction(t),e.cache.compiledFunc=c}n=s.executeFunction(c,l);break}case u.RY.Field:i&&(n=i[e.field]);break;case u.RY.Unknown:n=null}if(!(0,u.qh)(n))return null;if(s||!e.normalizationField)return n;const d=i?parseFloat(i[e.normalizationField]):null;return(0,u.qh)(d)&&0!==d?n/d:null}(s,t,r),s,t,r,s.cache.ipData);return null==o||isNaN(o)?0:o}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:s}=e.cache;if(!(s&&"3d"===r||t))return null;const o={scale:t,view:r};let i=b(e.minSize,c,o),n=b(e.maxSize,c,o);if(null!=i||null!=n){if(i>n){const e=n;n=i,i=e}return{minSize:i,maxSize:n}}}function w(e,t){if(!t)return;let r=0,s=t.length-1;return t.some(((t,o)=>e<t?(s=o,!0):(r=o,!1))),[r,s,(e-t[r])/(t[s]-t[r])]}function S(e,t,r){const s=["proportional","proportional","proportional"];for(const o of e){const e=o.useSymbolValue?"symbol-value":g(o,t,r);switch(o.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,i.Bg)(o.axis)}}return s}},28694:(e,t,r)=>{r.d(t,{p:()=>i});var s=r(70586),o=r(69285);function i(e,t,r){if(!r||!r.features||!r.hasZ)return;const i=(0,o.k)(r.geometryType,t,e.outSpatialReference);if(!(0,s.Wi)(i))for(const e of r.features)i(e.geometry)}},58333:(e,t,r)=>{r.d(t,{I4:()=>o,lF:()=>n,ET:()=>i,qP:()=>a,eG:()=>l,lj:()=>p,wW:()=>u});const s=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},i={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},n={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={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},l={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},p={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},89749:(e,t,r)=>{r.d(t,{t:()=>c});var s=r(43697),o=r(15923),i=r(61247),n=r(70586),a=r(17445),l=r(1654),u=r(5600),p=r(52011);let c=class extends o.Z{constructor(){super(...arguments),this.updating=!1,this.handleId=0,this.handles=new i.Z,this.scheduleHandleId=0,this.pendingPromises=new Set}destroy(){this.removeAll(),this.handles.destroy()}add(e,t,r={}){const s=++this.handleId;r.sync||this._installSyncUpdatingWatch(e,s);const o=(0,a.YP)(e,t,r);return this.handles.add(o,s),{remove:()=>this.handles.remove(s)}}addOnCollectionChange(e,t,{initial:r=!1}={}){const s=++this.handleId;return this.handles.add([(0,a.on)(e,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(e,"change",t,{onListenerAdd:r?e=>t({added:e.toArray(),removed:[]}):void 0})],s),{remove:()=>this.handles.remove(s)}}addPromise(e){if((0,n.Wi)(e))return e;const t=++this.handleId;this.handles.add({remove:()=>{this.pendingPromises.delete(e)&&(0!==this.pendingPromises.size||this.handles.has(d)||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(),s=(0,a.YP)(e,r,{sync:!0,equals:()=>!1});return this.handles.add(s,t),s}_createSyncUpdatingCallback(){return()=>{this.handles.remove(d),++this.scheduleHandleId;const e=this.scheduleHandleId;this._get("updating")||this._set("updating",!0),this.handles.add((0,l.Os)((()=>{e===this.scheduleHandleId&&(this._set("updating",this.pendingPromises.size>0),this.handles.remove(d))})),d)}}};(0,s._)([(0,u.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,s._)([(0,p.j)("esri.views.support.WatchUpdatingTracking")],c);const d=-42;var h,y;(y=h||(h={}))[y.NONE=0]="NONE",y[y.SYNC=1]="SYNC",y[y.INIT=2]="INIT"}}]);