@arcgis/core 6.0.0-next.26 → 6.0.0-next.28

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 (343) hide show
  1. package/Map.d.ts +6 -0
  2. package/analysis/AreaMeasurementAnalysis.d.ts +4 -2
  3. package/analysis/DirectLineMeasurementAnalysis.d.ts +8 -4
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/0363d29fc665d169ebc4.js +1 -0
  6. package/assets/esri/core/workers/chunks/037c67ef5c4398d5954d.js +1 -0
  7. package/assets/esri/core/workers/chunks/03f33cb78b5405ab7e23.js +1 -0
  8. package/assets/esri/core/workers/chunks/07b726a46864501b90a0.js +1 -0
  9. package/assets/esri/core/workers/chunks/0864da8f8f147016cf1c.js +1 -0
  10. package/assets/esri/core/workers/chunks/{768389f7f8dba6080df7.js → 0cc7fba402a93e6d2455.js} +2 -2
  11. package/assets/esri/core/workers/chunks/0cfdeb53fb7d5532cf01.js +1 -0
  12. package/assets/esri/core/workers/chunks/112ed86f812e4400a7e0.js +1 -0
  13. package/assets/esri/core/workers/chunks/177f353ce72133e2eeed.js +1 -0
  14. package/assets/esri/core/workers/chunks/1dc6f093028530a492e6.js +1 -0
  15. package/assets/esri/core/workers/chunks/2294254af2c6afb560ee.js +1 -0
  16. package/assets/esri/core/workers/chunks/23a4806b4cdf7cc32e4d.js +1 -0
  17. package/assets/esri/core/workers/chunks/2447d2e2a4a3ab8fcf94.js +1 -0
  18. package/assets/esri/core/workers/chunks/271ae7deccb94112c2df.js +1 -0
  19. package/assets/esri/core/workers/chunks/2df37a9a95ceebb87a5f.js +1 -0
  20. package/assets/esri/core/workers/chunks/2e00c155e447e4930442.js +1 -0
  21. package/assets/esri/core/workers/chunks/2e9a1673b1d51aa082b6.js +1 -0
  22. package/assets/esri/core/workers/chunks/344f5334ad95c7974349.js +1 -0
  23. package/assets/esri/core/workers/chunks/348f1def9cd2ddf92e87.js +1 -0
  24. package/assets/esri/core/workers/chunks/{8e4206068c6953bb7df2.js → 3a47fc97c400fca2c736.js} +1 -1
  25. package/assets/esri/core/workers/chunks/47c97640ec525676918b.js +1 -0
  26. package/assets/esri/core/workers/chunks/50763ea061d5fb3f2e49.js +1 -0
  27. package/assets/esri/core/workers/chunks/518ab22f80c3300bcfff.js +1 -0
  28. package/assets/esri/core/workers/chunks/58609bf94f72bc4f1952.js +1 -0
  29. package/assets/esri/core/workers/chunks/586a929bc037e23857af.js +1 -0
  30. package/assets/esri/core/workers/chunks/58d10e0b35968680fd9f.js +1 -0
  31. package/assets/esri/core/workers/chunks/59bc55880e6fd8ce20c0.js +1 -0
  32. package/assets/esri/core/workers/chunks/{7c75a8ee266c36baa902.js → 5eec1c1162779574f46e.js} +1 -1
  33. package/assets/esri/core/workers/chunks/62a0abcf45a2bd14ecbe.js +1 -0
  34. package/assets/esri/core/workers/chunks/63c4412c16d8a44a5668.js +1 -0
  35. package/assets/esri/core/workers/chunks/6b4c3411f63a9ad9354c.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f528ac5c648ca6a98582.js → 711cfb84659cb4437679.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{9dd1fc56eb1ea6eb705e.js → 76e27e36050a3dd9d249.js} +1 -1
  38. package/assets/esri/core/workers/chunks/76f877e2d2493d56afab.js +1 -0
  39. package/assets/esri/core/workers/chunks/77463141652bf1ca6fb2.js +1 -0
  40. package/assets/esri/core/workers/chunks/7d3f7940815fa5dc244e.js +1 -0
  41. package/assets/esri/core/workers/chunks/914a0b5d9fef683cdf9c.js +1 -0
  42. package/assets/esri/core/workers/chunks/96f87c8efd4b11b37686.js +1 -0
  43. package/assets/esri/core/workers/chunks/97ec46605f16333144b7.js +1 -0
  44. package/assets/esri/core/workers/chunks/{7b482afb9fd1229f5707.js → 9934e8e19f94e9169eea.js} +1 -1
  45. package/assets/esri/core/workers/chunks/99f51d5d9da6e9bfc430.js +1 -0
  46. package/assets/esri/core/workers/chunks/9aebe876b1a2fb075f9c.js +1 -0
  47. package/assets/esri/core/workers/chunks/9c3db7a7c05fa0e81f0a.js +1 -0
  48. package/assets/esri/core/workers/chunks/{6f1d6453184e0a1530ad.js → 9c4961213ac6ec283dd9.js} +25 -25
  49. package/assets/esri/core/workers/chunks/a2cc53ad1a514167e4b8.js +1 -0
  50. package/assets/esri/core/workers/chunks/a33ba23aee3f8f40200f.js +1 -0
  51. package/assets/esri/core/workers/chunks/{45ba4aa87a4732198596.js → b13d8f4e4e80ef00b1bd.js} +1 -1
  52. package/assets/esri/core/workers/chunks/b3801d58c024224917df.js +1 -0
  53. package/assets/esri/core/workers/chunks/b3aa29589dcfb5b93106.js +1 -0
  54. package/assets/esri/core/workers/chunks/b3dbcf43f136ba2dadc5.js +1 -0
  55. package/assets/esri/core/workers/chunks/b9596d862da1ec342cd3.js +1 -0
  56. package/assets/esri/core/workers/chunks/bc1fcc9c897461e68e29.js +1 -0
  57. package/assets/esri/core/workers/chunks/{8b4e9fd88c0c313416d4.js → be04f40f8b403befd0ef.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{150e7a7bd5df25693da7.js → c90388932a7825d9d933.js} +1 -1
  59. package/assets/esri/core/workers/chunks/ca21786e519c914fc9e1.js +1 -0
  60. package/assets/esri/core/workers/chunks/cdb5c26fed7d9a97db49.js +1 -0
  61. package/assets/esri/core/workers/chunks/cdf0c7706d3e1221f49b.js +1 -0
  62. package/assets/esri/core/workers/chunks/d63e181f0e48bde73395.js +1 -0
  63. package/assets/esri/core/workers/chunks/d77888c84a8b49478807.js +1 -0
  64. package/assets/esri/core/workers/chunks/d7f2f1708d2a2668676c.js +1 -0
  65. package/assets/esri/core/workers/chunks/{13c64087be3b2985a21b.js → dbda982485d3fe26c729.js} +1 -1
  66. package/assets/esri/core/workers/chunks/dc7aa0a1eb6c6e361f9f.js +1 -0
  67. package/assets/esri/core/workers/chunks/ec1c4d66142b6efb0e8b.js +1 -0
  68. package/assets/esri/core/workers/chunks/ef2c3febcceedc44b3ac.js +1 -0
  69. package/assets/esri/core/workers/chunks/f08a2a262a3b55149396.js +1 -0
  70. package/assets/esri/core/workers/chunks/f2d56f5c15d5977e1d19.js +1 -0
  71. package/assets/esri/core/workers/chunks/ffe2077a9df7c838ea27.js +1 -0
  72. package/assets/esri/layers/raster/formats/lerc-wasm.wasm +0 -0
  73. package/chunks/BlendLayers.glsl.js +1 -1
  74. package/chunks/Component.glsl.js +9 -12
  75. package/chunks/GaussianSplat.glsl.js +65 -21
  76. package/chunks/GaussianSplatDepth.glsl.js +45 -4
  77. package/chunks/GaussianSplatShadow.glsl.js +73 -19
  78. package/chunks/GlobalIllumination.glsl.js +17 -47
  79. package/chunks/LineMarker.glsl.js +32 -31
  80. package/chunks/OITAddEmission.glsl.js +1 -1
  81. package/chunks/RasterColorizer.glsl.js +1 -1
  82. package/chunks/RibbonLine.glsl.js +36 -36
  83. package/chunks/Terrain.glsl.js +3 -4
  84. package/chunks/Water.glsl.js +22 -23
  85. package/config.js +1 -1
  86. package/core/ReentrantObjectPool.js +1 -1
  87. package/core/memoryEstimations.js +1 -1
  88. package/core/workers/workers.js +2 -2
  89. package/core/workers.d.ts +1 -1
  90. package/form/elements/inputs/DynamicChoiceInput.d.ts +2 -2
  91. package/form/elements/inputs.d.ts +126 -25
  92. package/form/elements/inputs.js +1 -1
  93. package/form/elements.d.ts +1 -0
  94. package/geometry/operators/containsOperator.d.ts +1 -1
  95. package/geometry/operators/densifyOperator.d.ts +1 -1
  96. package/geometry/operators/differenceOperator.d.ts +6 -4
  97. package/geometry/operators/distanceOperator.d.ts +1 -1
  98. package/geometry/operators/geodesicProximityOperator.d.ts +8 -8
  99. package/geometry/operators/graphicBufferOperator.d.ts +6 -6
  100. package/geometry/operators/integrateOperator.d.ts +2 -2
  101. package/geometry/operators/intersectsOperator.d.ts +3 -3
  102. package/geometry/operators/linesToPolygonsOperator.d.ts +2 -2
  103. package/geometry/operators/locateBetweenOperator.d.ts +2 -2
  104. package/geometry/operators/minimumBoundingCircleOperator.d.ts +1 -1
  105. package/geometry/operators/multiPartToSinglePartOperator.d.ts +2 -2
  106. package/geometry/operators/polygonSlicerOperator.d.ts +2 -2
  107. package/geometry/operators/projectOperator.d.ts +2 -2
  108. package/geometry/operators/proximityOperator.d.ts +15 -15
  109. package/geometry/operators/shapePreservingProjectOperator.d.ts +2 -2
  110. package/geometry/operators/simplifyOperator.d.ts +2 -2
  111. package/geometry/operators/support/GeographicTransformationStep.d.ts +3 -3
  112. package/geometry/operators/support/Transformation.d.ts +8 -8
  113. package/geometry/operators/support/geographicTransformationUtils.d.ts +3 -3
  114. package/geometry/operators/symmetricDifferenceOperator.d.ts +2 -2
  115. package/geometry/operators/withinOperator.d.ts +3 -3
  116. package/geometry/support/Indices.js +1 -1
  117. package/graphic/MapNotesGraphicOrigin.d.ts +1 -0
  118. package/kernel.js +1 -1
  119. package/layers/GeospatialPDFLayer.d.ts +2 -2
  120. package/layers/GeospatialPDFLayer.js +1 -1
  121. package/layers/MapNotesLayer.d.ts +3 -2
  122. package/layers/ParquetLayer.d.ts +1 -1
  123. package/layers/VectorTileLayer.d.ts +10 -1
  124. package/layers/buildingSublayers/BuildingGroupSublayer.d.ts +2 -1
  125. package/layers/geospatialPDF/CIM2DLayerview.js +2 -0
  126. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  127. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  128. package/layers/mixins/SublayersOwner.js +1 -1
  129. package/layers/orientedImagery/transformations/imageToWorld.js +1 -1
  130. package/layers/orientedImagery/transformations/rectifyMapPoint.js +1 -1
  131. package/layers/support/Sublayer.d.ts +2 -2
  132. package/layers/support/Sublayer.js +1 -1
  133. package/layers/support/SubtypeSublayer.js +1 -1
  134. package/layers/support/layerUtils.js +1 -1
  135. package/package.json +3 -3
  136. package/popup/FeaturesModel.js +1 -1
  137. package/popup/support/featureUtils.js +1 -1
  138. package/rest/featureService/FeatureService.d.ts +0 -5
  139. package/rest/networks/support/TraceLocation.d.ts +2 -1
  140. package/rest/networks/support/TraceResult.d.ts +0 -4
  141. package/rest/support/AttributeBinsQuery.d.ts +3 -2
  142. package/rest/support/ImageGPSInfoParameters.d.ts +2 -1
  143. package/rest/support/OutDistance.d.ts +2 -2
  144. package/rest/support/Query.d.ts +3 -2
  145. package/rest/support/TopFeaturesQuery.d.ts +2 -1
  146. package/rest/support/types.d.ts +10 -1
  147. package/smartMapping/raster/renderers/flow.d.ts +2 -1
  148. package/smartMapping/renderers/color.d.ts +11 -8
  149. package/smartMapping/renderers/location.d.ts +7 -4
  150. package/smartMapping/renderers/predominance.d.ts +7 -4
  151. package/smartMapping/renderers/relationship.d.ts +7 -4
  152. package/smartMapping/renderers/size.d.ts +6 -4
  153. package/smartMapping/renderers/type.d.ts +7 -4
  154. package/smartMapping/renderers/types.d.ts +15 -0
  155. package/smartMapping/renderers/univariateColorSize.d.ts +4 -2
  156. package/smartMapping/statistics/histogramForTimeSeries.js +1 -1
  157. package/smartMapping/statistics/summaryStatisticsForTimeSeries.js +1 -1
  158. package/smartMapping/symbology/flow.d.ts +2 -1
  159. package/smartMapping/symbology/types.d.ts +2 -1
  160. package/support/BasemapStyle.d.ts +2 -2
  161. package/symbols/cim/CIMCursor.js +1 -1
  162. package/symbols/cim/types.d.ts +7 -9
  163. package/tables/elements.d.ts +1 -0
  164. package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
  165. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  166. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  167. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterVertexPack.js +1 -1
  168. package/views/2d/engine/webgl/textureUtils.js +1 -1
  169. package/views/2d/layers/GeospatialPDFLayerView2D.js +1 -1
  170. package/views/2d/layers/MediaLayerView2D.js +1 -1
  171. package/views/2d/layers/TileLayerView2D.js +1 -1
  172. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  173. package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementPathHelper.js +1 -1
  174. package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
  175. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  176. package/views/3d/analysis/support/projectionUtils.js +1 -1
  177. package/views/3d/environment/SunLighting.d.ts +15 -2
  178. package/views/3d/environment/VirtualLighting.d.ts +15 -2
  179. package/views/3d/input/SceneInputManager.js +1 -1
  180. package/views/3d/input/handlers/ground/GroundMouseWheelMove.js +2 -0
  181. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  182. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  183. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  184. package/views/3d/layers/GeospatialPDFLayerView3D.js +1 -1
  185. package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
  186. package/views/3d/layers/graphics/Graphics3DBufferGraphicLayer.js +1 -1
  187. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  188. package/views/3d/layers/graphics/Graphics3DDrapedGraphicLayerBase.js +1 -1
  189. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  190. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  191. package/views/3d/layers/graphics/Graphics3DGraphic.js +1 -1
  192. package/views/3d/layers/graphics/Graphics3DGraphicCreationContext.js +1 -1
  193. package/views/3d/layers/graphics/Graphics3DLodInstanceGraphicLayer.js +1 -1
  194. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  195. package/views/3d/layers/graphics/Graphics3DObject3DGraphicLayer.js +1 -1
  196. package/views/3d/layers/graphics/Graphics3DStageObjectGraphicLayer.js +1 -1
  197. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  198. package/views/3d/layers/graphics/Labeler.js +1 -1
  199. package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
  200. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  201. package/views/3d/layers/support/StageLayerElevationProvider.js +1 -1
  202. package/views/3d/layers/support/featureReference.js +1 -1
  203. package/views/3d/navigation/Navigation3D.js +1 -1
  204. package/views/3d/state/controllers/GroundMouseWheelController.js +2 -0
  205. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  206. package/views/3d/state/utils/groundNavigationUtils.js +1 -1
  207. package/views/3d/terrain/BlendLayers.glsl.js +1 -1
  208. package/views/3d/terrain/PatchRenderData.js +1 -1
  209. package/views/3d/terrain/RasterColorizer.glsl.js +1 -1
  210. package/views/3d/terrain/TerrainData.js +1 -1
  211. package/views/3d/terrain/TerrainRenderer.js +1 -1
  212. package/views/3d/terrain/TerrainSurface.js +1 -1
  213. package/views/3d/terrain/TextureFader.js +1 -1
  214. package/views/3d/terrain/TextureReference.js +1 -1
  215. package/views/3d/terrain/TileCompositor.js +1 -1
  216. package/views/3d/terrain/TileRenderInfo.js +1 -1
  217. package/views/3d/terrain/TileRenderer.js +1 -1
  218. package/views/3d/terrain/terrainUtils.js +1 -1
  219. package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTangent.glsl.js +7 -8
  220. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +25 -25
  221. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +3 -5
  222. package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +6 -0
  223. package/views/3d/webgl-engine/core/shaderLibrary/shading/getLocalUp.glsl.js +4 -0
  224. package/views/3d/webgl-engine/core/shaderLibrary/terrain/TerrainTexture.glsl.js +1 -1
  225. package/views/3d/webgl-engine/core/shaderLibrary/terrain/{TileBackground.glsl.js → blendLayers.glsl.js} +10 -11
  226. package/views/3d/webgl-engine/core/shaderLibrary/util/GaussianSplatEvaluation.glsl.js +8 -2
  227. package/views/3d/webgl-engine/core/shaderLibrary/util/cameraUniforms.js +1 -1
  228. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.glsl.js +1 -1
  229. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  230. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationTechniqueConfiguration.js +1 -1
  231. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  232. package/views/3d/webgl-engine/lib/BoundingInfo.js +1 -1
  233. package/views/3d/webgl-engine/lib/BufferGeometry.js +1 -1
  234. package/views/3d/webgl-engine/lib/BufferObject3D.js +1 -1
  235. package/views/3d/webgl-engine/lib/DirtyEvents.js +1 -1
  236. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  237. package/views/3d/webgl-engine/lib/ManagedTexture.js +1 -1
  238. package/views/3d/webgl-engine/lib/ModelDirtySet.js +1 -1
  239. package/views/3d/webgl-engine/lib/Object3D.js +1 -1
  240. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  241. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  242. package/views/3d/webgl-engine/lib/TextureBackedBuffer/TextureBuffer.js +1 -1
  243. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  244. package/views/3d/webgl-engine/lib/geometryMemoryUtils.js +2 -0
  245. package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
  246. package/views/3d/webgl-engine/shaders/GaussianSplat.glsl.js +1 -1
  247. package/views/3d/webgl-engine/shaders/GaussianSplatDepth.glsl.js +1 -1
  248. package/views/3d/webgl-engine/shaders/GaussianSplatPass.glsl.js +61 -108
  249. package/views/3d/webgl-engine/shaders/GaussianSplatShadow.glsl.js +1 -1
  250. package/views/3d/webgl-engine/shaders/LineMarker.glsl.js +1 -1
  251. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  252. package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
  253. package/views/VideoView.js +1 -1
  254. package/views/draw/DrawOperation.js +1 -1
  255. package/views/draw/DrawScreenTool.js +1 -1
  256. package/views/input/types.d.ts +2 -4
  257. package/views/interactive/options/LabelOptions.d.ts +5 -5
  258. package/views/interactive/options/SnappingOptions.d.ts +2 -2
  259. package/views/selection/SelectionOperation.js +1 -1
  260. package/views/selection/types.d.ts +43 -3
  261. package/views/support/layerViewUtils.js +1 -1
  262. package/views/support/selectionUtils.js +1 -1
  263. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +0 -1
  264. package/widgets/Editor/VisibleElements.d.ts +4 -0
  265. package/widgets/Editor.d.ts +2 -0
  266. package/widgets/FeatureTable.js +1 -1
  267. package/widgets/Features/FeaturesViewModel.js +1 -1
  268. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  269. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  270. package/widgets/OrientedImageryViewer/services/SuperimposeService.js +1 -1
  271. package/widgets/OrientedImageryViewer/support/NonPanoramicMedia.js +1 -1
  272. package/widgets/OrientedImageryViewer/support/dataCaptureUtils.js +1 -1
  273. package/widgets/OrientedImageryViewer.js +2 -2
  274. package/widgets/PanoramicViewer/utils.js +1 -1
  275. package/widgets/Print.js +1 -1
  276. package/widgets/Search/LayerSearchSource.d.ts +1 -1
  277. package/widgets/Sketch/VisibleElements.d.ts +4 -0
  278. package/widgets/Sketch.d.ts +2 -0
  279. package/widgets/support/SelectionList/GroupLayerItem.d.ts +6 -0
  280. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  281. package/widgets/support/SelectionList/ItemBase.js +1 -1
  282. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.d.ts +6 -1
  283. package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
  284. package/widgets/support/SelectionToolbar.d.ts +8 -1
  285. package/widgets/support/SelectionToolbar.js +1 -1
  286. package/widgets/support/Selector2D/selectorUtils.js +1 -1
  287. package/assets/esri/core/workers/chunks/0320cbd825f9a4222042.js +0 -1
  288. package/assets/esri/core/workers/chunks/067de1910190da228291.js +0 -1
  289. package/assets/esri/core/workers/chunks/09bd5df07eab80ae7b15.js +0 -1
  290. package/assets/esri/core/workers/chunks/164e74d586297946a717.js +0 -1
  291. package/assets/esri/core/workers/chunks/1c0c5cb13c2590aae906.js +0 -1
  292. package/assets/esri/core/workers/chunks/1c77de1e79860f8d2228.js +0 -1
  293. package/assets/esri/core/workers/chunks/24dac4970526a4e0ae63.js +0 -1
  294. package/assets/esri/core/workers/chunks/2acf2952cef69e382a35.js +0 -1
  295. package/assets/esri/core/workers/chunks/30dcf2cfb31cb70de7df.js +0 -1
  296. package/assets/esri/core/workers/chunks/371e2ddb88cc6b9a41e8.js +0 -1
  297. package/assets/esri/core/workers/chunks/42f6194633c2d879c8da.js +0 -1
  298. package/assets/esri/core/workers/chunks/44f90e75c1dc3d726a95.js +0 -1
  299. package/assets/esri/core/workers/chunks/4abd3753cd9b80e4d937.js +0 -1
  300. package/assets/esri/core/workers/chunks/4bb9a5f4ca944d3fc206.js +0 -1
  301. package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +0 -1
  302. package/assets/esri/core/workers/chunks/4d93bed14945e3d34d5c.js +0 -1
  303. package/assets/esri/core/workers/chunks/4e3f651ac76fcd53df2b.js +0 -1
  304. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +0 -1
  305. package/assets/esri/core/workers/chunks/58da3f8cf0f7f6a7e4fa.js +0 -1
  306. package/assets/esri/core/workers/chunks/5a19a9c3e01d3d415188.js +0 -1
  307. package/assets/esri/core/workers/chunks/5a830bc35adbedd33783.js +0 -1
  308. package/assets/esri/core/workers/chunks/6db0f8fe1402643fbe1a.js +0 -1
  309. package/assets/esri/core/workers/chunks/7124ad8dc5ad40dc66f3.js +0 -1
  310. package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +0 -1
  311. package/assets/esri/core/workers/chunks/7c631e2947243e2c9bde.js +0 -1
  312. package/assets/esri/core/workers/chunks/7f0f9dddc44b1f1600f0.js +0 -1
  313. package/assets/esri/core/workers/chunks/7fb7493f483cd9878bfa.js +0 -1
  314. package/assets/esri/core/workers/chunks/8e310e9cb9d84ac3ca2f.js +0 -1
  315. package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +0 -1
  316. package/assets/esri/core/workers/chunks/99a0a434ea2162166754.js +0 -1
  317. package/assets/esri/core/workers/chunks/9afc87474cef1fc4fe4a.js +0 -1
  318. package/assets/esri/core/workers/chunks/9cbde13e536676767900.js +0 -1
  319. package/assets/esri/core/workers/chunks/9cd3fcb5fca6f9dbbcd8.js +0 -1
  320. package/assets/esri/core/workers/chunks/a025ee38d402504193df.js +0 -1
  321. package/assets/esri/core/workers/chunks/a4b822ee45810c4c292a.js +0 -1
  322. package/assets/esri/core/workers/chunks/a51576d84edca88e41dd.js +0 -1
  323. package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +0 -1
  324. package/assets/esri/core/workers/chunks/ace41659a5ca0e5abfc3.js +0 -1
  325. package/assets/esri/core/workers/chunks/b01804aa6c47a220a603.js +0 -1
  326. package/assets/esri/core/workers/chunks/b3273f847405799e3362.js +0 -1
  327. package/assets/esri/core/workers/chunks/ba3d5abff65aefcb8dee.js +0 -1
  328. package/assets/esri/core/workers/chunks/bca6b469940b7b954123.js +0 -1
  329. package/assets/esri/core/workers/chunks/c0d7ae314ebfad1e3791.js +0 -1
  330. package/assets/esri/core/workers/chunks/c337fc0e6dc69c233e6d.js +0 -1
  331. package/assets/esri/core/workers/chunks/c8eae00b0ec87d8b2ff3.js +0 -1
  332. package/assets/esri/core/workers/chunks/cd9aa950cb74b09008fe.js +0 -1
  333. package/assets/esri/core/workers/chunks/e0d9dc97985561320bd4.js +0 -1
  334. package/assets/esri/core/workers/chunks/e2775b4b753306dc8477.js +0 -1
  335. package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +0 -1
  336. package/assets/esri/core/workers/chunks/ebbf425af348e6ede814.js +0 -1
  337. package/assets/esri/core/workers/chunks/efc53007cd2e4991d7d4.js +0 -1
  338. package/assets/esri/core/workers/chunks/f46e92c67986c8c09bdd.js +0 -1
  339. package/assets/esri/core/workers/chunks/f8bc474434fd365ab174.js +0 -1
  340. package/assets/esri/core/workers/chunks/f8d2225f333524ce1d88.js +0 -1
  341. package/assets/esri/core/workers/chunks/f95a1f878c9c1146180e.js +0 -1
  342. package/assets/esri/core/workers/chunks/fb37f0848196c28b7fd7.js +0 -1
  343. /package/assets/esri/core/workers/chunks/{768389f7f8dba6080df7.js.LICENSE.txt → 0cc7fba402a93e6d2455.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,3312,4780],{52106(e,t,r){r.d(t,{A:()=>S});var i,l,n=r(32198),o=r(40124),a=r(69540),s=r(51447),u=r(25482),c=r(53966),d=r(36708),p=r(24326),f=r(91429),h=r(12195),y=r(65864),m=r(50498),g=r(55156),b=r(60950),M=r(54339),C=r(94128),w=r(33910);const v=Symbol("meshGeometryHandles");function I(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let S=class extends((0,a.OU)(u.o)){static{i=C.Z}static{l=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,p.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,s.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new l({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,g.I)(this.origin);if(e)return(0,M.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,M.r)(this,t):null}getGlobalId(){let e=(0,g.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let l={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(l.action=i),"attributes"===e&&(l.attributeName=i),this.layer.graphicChanged(l)}_watchMeshGeometryChanges(){this.removeHandles(v);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],v)}};(0,n.Cg)([(0,f.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,y.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],S.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,f.MZ)({value:null})],S.prototype,"attributes",null),(0,n.Cg)([(0,f.MZ)({value:null,types:m.yR,json:{read:y.rS}})],S.prototype,"geometry",null),(0,n.Cg)([(0,f.MZ)()],S.prototype,"distance",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,n.Cg)([(0,f.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,n.Cg)([(0,f.MZ)({type:o.A,value:null})],S.prototype,"popupTemplate",null),(0,n.Cg)([(0,f.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,f.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,f.MZ)({value:null,types:w.Es})],S.prototype,"symbol",null),(0,n.Cg)([(0,f.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=l=(0,n.Cg)([(0,f.$K)("esri.Graphic")],S)},6797(e,t,r){r.d(t,{Ui:()=>p});var i=r(69622),l=r(7762),n=r(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof i.A}function s(e){return e instanceof l.A?Object.keys(e.items):a(e)?(0,n.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof l.A?e.items[t]:e[t]}function c(e){return e?e.declaredClass:null}function d(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=s(e),l=s(t);if(0===i.length&&0===l.length)return;if(!i.length||!l.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let n=l.filter(e=>!i.includes(e)),p=i.filter(e=>!l.includes(e)),f=i.filter(r=>l.includes(r)&&u(e,r)!==u(t,r)).concat(n,p).sort(),h=c(e);if(h&&o.has(h)&&f.length)return{type:"complete",oldValue:e,newValue:t};let y,m=a(e)&&a(t);for(let i of f){let l,n=u(e,i),o=u(t,i);if((m||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])l=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;l={type:"complete",oldValue:n,newValue:o}}else l="object"==typeof n&&"object"==typeof o&&c(n)===c(o)?d(n,o):{type:"complete",oldValue:n,newValue:o};null!=l&&(null==y?y={type:"partial",diff:{[i]:l}}:y.diff[i]=l)}}return y}function p(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&c(e)!==c(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},85334(e,t,r){r.d(t,{$:()=>b,IB:()=>a,Iy:()=>S,KV:()=>v,N2:()=>M,RH:()=>w,ZD:()=>C,sn:()=>I});var i=r(68197),l=r(4576),n=r(4718),o=r(34727);function a(e){return"r"in e&&"g"in e&&"b"in e}function s(e){return"h"in e&&"s"in e&&"v"in e}function u(e){return"l"in e&&"a"in e&&"b"in e}function c(e){return"l"in e&&"c"in e&&"h"in e}r(78955),r(91829);const d=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],p=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function f(e,t){let r,i,l=[];if(e[0].length!==t.length)throw Error("dimensions do not match");let n=e.length,o=e[0].length,a=0;for(r=0;r<n;r++){for(a=0,i=0;i<o;i++)a+=e[r][i]*t[i];l.push(a)}return l}function h(e){let t=[e.r/255,e.g/255,e.b/255].map(e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4),r=f(d,t);return{x:100*r[0],y:100*r[1],z:100*r[2]}}function y(e){let t=f(p,[e.x/100,e.y/100,e.z/100]).map(e=>{let t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))});return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function m(e){let t=[e.x/95.047,e.y/100,e.z/108.883].map(e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29);return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function g(e){let t=e.l,r=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map(e=>e>6/29?e**3:3*(6/29)**2*(e-4/29));return{x:95.047*r[0],y:100*r[1],z:108.883*r[2]}}function b(e){return a(e)?e:c(e)?function(e){return y(g(function(e){let t=e.l,r=e.c,i=e.h;return{l:t,a:r*Math.cos(i),b:r*Math.sin(i)}}(e)))}(e):u(e)?function(e){return y(g(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?y(e):s(e)?function(e){let t,r=(e.h+360)%360/60,i=e.s/100,l=e.v/100*255,n=l*i,o=n*(1-Math.abs(r%2-1));switch(Math.floor(r)){case 0:t={r:n,g:o,b:0};break;case 1:t={r:o,g:n,b:0};break;case 2:t={r:0,g:n,b:o};break;case 3:t={r:0,g:o,b:n};break;case 4:t={r:o,g:0,b:n};break;case 5:case 6:t={r:n,g:0,b:o};break;default:t={r:0,g:0,b:0}}return t.r=Math.round(t.r+l-n),t.g=Math.round(t.g+l-n),t.b=Math.round(t.b+l-n),t}(e):e}function M(e){return s(e)?e:function(e){let{r:t,g:r,b:i}=e,l=Math.max(t,r,i),n=l-Math.min(t,r,i),o=l,a=0===n?0:l===t?(r-i)/n%6:l===r?(i-t)/n+2:(t-r)/n+4,s=0===n?0:n/o;return a<0&&(a+=6),a*=60,s*=100,o*=100/255,{h:a,s,v:o}}(b(e))}function C(e){return u(e)?e:function(e){return m(h(e))}(b(e))}function w(e){return c(e)?e:function(e){return function(e){let t=e.l,r=e.a,i=e.b,l=Math.sqrt(r*r+i*i),n=Math.atan2(i,r);return n=n>0?n:n+2*Math.PI,{l:t,c:l,h:n}}(m(h(e)))}(b(e))}function v(e){return e[0]??=0,e[1]??=0,e[2]??=0,e}function I(e){return e.length=4,v(e),e[3]??=1,(0,o.qE)(e[3],0,1),e}function S(e,t,r={}){if(0===e.length||t<=0)return[];if(1===(e=e.map(e=>"string"==typeof e?new i.A(e):e)).length||1===t){let r=[],i=e[0];for(let e=0;e<t;e++)r.push(i.clone());return r}if(r.shuffle&&(e=(0,l.k4)((0,n.o8)(e),r.seed)),e.length>=t){let r=[],i=(e.length-1)/(t-1);for(let l=0;l<t;l++){let t=Math.round(l*i);r.push(e[t].clone())}return r}return function(e,t,r={}){let i=[],n=e.length-1,o=Math.ceil((t-e.length)/n);e:for(let l=0;l<n;l++){let n=e[l],a=e[l+1];for(let l=1;l<=o;l++){let s=l/(o+1);if(i.push(x(n,a,s,r)),i.length+e.length===t)break e}}return[...e.map(e=>e.clone()),...(0,l.k4)(i,r.seed??1)]}(e,t,r)}const F=(e,t)=>{let r=Math.floor(10*t())-5;return Math.min(255,Math.max(0,e+r))};function x(e,t,r,n={}){let o=e.r,a=e.g,s=e.b,u=t.r,c=t.g,d=t.b,p=Math.round(o+(u-o)*r),f=Math.round(a+(c-a)*r),h=Math.round(s+(d-s)*r);if(!n.offset)return new i.A([p,f,h]);let y=(0,l.Mo)(n.seed);return new i.A([F(p,y),F(f,y),F(h,y)])}},91829(e,t,r){function i(){return[0,0,0,0]}function l(e,t,r,i){return[e,t,r,i]}function n(){return l(1,1,1,1)}function o(){return l(1,0,0,0)}function a(){return l(0,1,0,0)}function s(){return l(0,0,1,0)}function u(){return l(0,0,0,1)}r.d(t,{_Y:()=>u,fA:()=>l,vt:()=>i});const c=[0,0,0,0],d=n(),p=o(),f=a(),h=s(),y=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:p,UNIT_Y:f,UNIT_Z:h,ZEROS:c,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:function(e,t,r,i){return[e,t,r,i]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t},fromValues:l,ones:n,unitW:u,unitX:o,unitY:a,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,c])},78955(e,t,r){r.d(t,{Bw:()=>m,C:()=>l,Cc:()=>C,LI:()=>p,Om:()=>M,S8:()=>b,T9:()=>d,WQ:()=>o,Z0:()=>w,aI:()=>I,hG:()=>y,hZ:()=>n,hs:()=>f,jk:()=>c,m3:()=>g,t2:()=>v});var i=r(34304);function l(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function n(e,t,r,i,l){return e[0]=t,e[1]=r,e[2]=i,e[3]=l,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function c(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function p(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function f(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){let r=t[0]-e[0],i=t[1]-e[1],l=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+i*i+l*l+n*n)}function y(e,t){let r=t[0]-e[0],i=t[1]-e[1],l=t[2]-e[2],n=t[3]-e[3];return r*r+i*i+l*l+n*n}function m(e){let t=e[0],r=e[1],i=e[2],l=e[3];return Math.sqrt(t*t+r*r+i*i+l*l)}function g(e){let t=e[0],r=e[1],i=e[2],l=e[3];return t*t+r*r+i*i+l*l}function b(e,t){let r=t[0],i=t[1],l=t[2],n=t[3],o=r*r+i*i+l*l+n*n;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=i*o,e[2]=l*o,e[3]=n*o),e}function M(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function C(e,t,r,i){let l=t[0],n=t[1],o=t[2],a=t[3];return e[0]=l+i*(r[0]-l),e[1]=n+i*(r[1]-n),e[2]=o+i*(r[2]-o),e[3]=a+i*(r[3]-a),e}function w(e,t,r){let i=t[0],l=t[1],n=t[2],o=t[3];return e[0]=r[0]*i+r[4]*l+r[8]*n+r[12]*o,e[1]=r[1]*i+r[5]*l+r[9]*n+r[13]*o,e[2]=r[2]*i+r[6]*l+r[10]*n+r[14]*o,e[3]=r[3]*i+r[7]*l+r[11]*n+r[15]*o,e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function I(e,t){let r=e[0],l=e[1],n=e[2],o=e[3],a=t[0],s=t[1],u=t[2],c=t[3],d=(0,i.FD)();return Math.abs(r-a)<=d*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(l-s)<=d*Math.max(1,Math.abs(l),Math.abs(s))&&Math.abs(n-u)<=d*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(o-c)<=d*Math.max(1,Math.abs(o),Math.abs(c))}const S=a,F=s,x=u,k=h,A=y,T=m,E=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:l,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:k,distance:h,div:x,divide:u,dot:M,equals:I,exactEquals:v,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:T,length:m,lerp:C,max:d,min:c,mul:F,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){let r,l,n,o,a,s,u=i.Ov;do{r=2*u()-1,l=2*u()-1,a=r*r+l*l}while(a>=1);do{n=2*u()-1,o=2*u()-1,s=n*n+o*o}while(s>=1);let c=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*l,e[2]=t*n*c,e[3]=t*o*c,e},round:p,scale:f,scaleAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e[2]=t[2]+r[2]*i,e[3]=t[3]+r[3]*i,e},set:n,sqrDist:A,sqrLen:E,squaredDistance:y,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:S,subtract:a,transformMat4:w,transformQuat:function(e,t,r){let i=t[0],l=t[1],n=t[2],o=r[0],a=r[1],s=r[2],u=r[3],c=u*i+a*n-s*l,d=u*l+s*i-o*n,p=u*n+o*l-a*i,f=-o*i-a*l-s*n;return e[0]=c*u+f*-o+d*-s-p*-a,e[1]=d*u+f*-a+p*-o-c*-s,e[2]=p*u+f*-s+c*-a-d*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},81583(e,t,r){r.d(t,{L:()=>a,g:()=>o});var i=r(60999),l=r(7762),n=r(92474);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){let r=[],o=(...e)=>{for(let t of e)null!=t&&(Array.isArray(t)?o(...t):l.A.isCollection(t)?t.forEach(e=>o(e)):(0,n.Zm)(t)&&r.push(t))};t(o);let a=null;if(await(0,i.Tj)(r,async e=>{let t=await(0,i.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1===t.ok&&!a&&(a=t)}),a)throw a.error;return e}},16494(e,t,r){var i=r(76361);const l=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup",..."animate.animatetransform.circle.clippath.defs.ellipse.g.image.line.lineargradient.marker.mask.path.pattern.polygon.polyline.radialgradient.rect.stop.svg.switch.symbol.text.textpath.tspan.use".split(".")].reduce((e,t)=>(e[t]=[],e),{}),n="align.alink.alt.bgcolor.border.cellpadding.cellspacing.class.color.cols.colspan.coords.d.dir.face.height.hspace.ismap.lang.marginheight.marginwidth.multiple.nohref.noresize.noshade.nowrap.ref.rel.rev.rows.rowspan.scrolling.shape.span.summary.tabindex.title.usemap.valign.value.vlink.vspace.width".split("."),o=new i.I({whiteList:l,onTagAttr:(e,t,r)=>{let i=`${t}="${r}"`;if(n.includes(t))return i},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new i.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);r.d(t,["Nd",0,a,"W5",0,o])},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>l,vD:()=>o,yS:()=>n});const i="randomUUID"in crypto;function l(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${l().toUpperCase()}}`}function o(){return`{${l()}}`}function a(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>l});const i=Symbol("idFieldsProviderSymbol");function l(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},97483(e,t,r){r.r(t),r.d(t,{default:()=>qe});var i=r(32198),l=r(69540),n=r(7762),o=r(49186),a=r(81583),s=r(91869),u=r(25728),c=r(17676),d=r(36708),p=r(39516),f=r(91429),h=r(4146),y=r(52136),m=r(18768),g=r(63074),b=r(69208),M=r(6455),C=r(47685),w=r(10086),v=r(34287),I=r(8303),S=r(54310),F=r(23502),x=r(25036),k=r(82935),A=r(60694),T=r(10873),E=r(15426),P=r(17036),L=r(30524),j=r(85334),Z=r(90360),_=r(86162),O=r(92438),R=r(96576),z=r(93618),G=r(62046),V=r(37531);const D={key:"type",base:O.A,errorContext:"renderer",typeMap:{simple:R.A,"unique-value":z.A,"class-breaks":_.A}},N=(0,Z.C)({types:D}),B=["#ed5151","#149ece","#a7c636","#9e559c","#fc921f","#ffde3e","#f789d8","#b7814a","#3caf99","#6b6bd6","#b54779","#7f7f7f"];var q=r(40124),U=r(4902),$=r(4718),K=r(92474),W=r(53966),H=r(97768),J=r(93637),X=r(89317),Y=r(78247),Q=r(16930),ee=r(83960),te=r(41910),re=r(55156),ie=r(60950),le=r(89808),ne=r(99959);const oe=Symbol("isSubtypeGroupGraphicOriginSymbol");var ae;class se extends ne.A{get[(ae=oe,ie.ym)](){return this.sublayer}get[re.e](){return this.sublayer}get[le.Q](){return this.layer}get[te.e7](){return this.sublayer}constructor(e){super(),this[ae]=!0,this.type="subtype-group",this.sublayer=e}get layer(){return this.sublayer.parent}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var ue=r(29005),ce=r(30279),de=r(16194),pe=r(46499),fe=r(39383),he=r(17311),ye=r(54546),me=r(97552),ge=r(30291),be=r(59868),Me=r(43440),Ce=r(43937),we=r(36005);const ve=(0,P.p)();let Ie=0;function Se(e,t){let r=e.json.write;return"object"!=typeof r&&(r=e.json.write={}),r.ignoreOrigin=!0,t?.spatialOnly&&(r.layerContainerTypes=X.K),e}function Fe(e){let t={write:{ignoreOrigin:!0}};return e?.name&&(t.name=e.name),"object"==typeof t.write&&(e?.spatialOnly&&(t.write.layerContainerTypes=X.K),e?.target&&(t.write.target=e.target)),t}function xe(e){switch(e){case"point":case"multipoint":return be.UK.clone();case"polyline":return be.A7.clone();case"polygon":case"multipatch":return be.Cx.clone();default:return null}}function ke(e){return Te(e,"user")===e}function Ae(e){return Te(e,"service")}function Te(e,t){return(e.parent?.getAtOrigin("sublayers",t))?.find(({subtypeCode:t})=>t===e.subtypeCode)}function Ee(e,t){return null==e?null:t.subtypes?.find(t=>t.code===e)}function Pe(e,t){let r=null;switch(t.geometryType){case"esriGeometryPoint":case"esriGeometryMultipoint":r="point";break;case"esriGeometryPolyline":r="line";break;case"esriGeometryPolygon":case"esriGeometryMultiPatch":r="polygon";break;default:t.type,r=null}let i={},l=Ee(e,t);if(null!=l){let{defaultValues:e}=l;for(let t in e)i[t]=e[t]}return i[t.subtypeField]=e,new ue.A({name:"New Feature",drawingTool:r,prototype:{attributes:i}})}let Le=class extends((0,u.M)((0,l.OU)((0,U.s)(K.x_)))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.fieldOverrides=null,this.fieldsIndex=null,this.formTemplate=null,this.graphicOrigin=new se(this),this.id=`${Date.now().toString(16)}-subtype-sublayer-${Ie++}`,this.type="subtype-sublayer",this.labelsVisible=!0,this.labelingInfo=null,this.layerType="ArcGISFeatureLayer",this.legendEnabled=!0,this.listMode="show",this.minScale=0,this.maxScale=0,this.opacity=1,this.parent=null,this.popupEnabled=!0,this.popupTemplate=null,this.subtypeCode=null,this.visible=!0}load(e){return(0,L.yp)(this.renderer,this.fieldsIndex),Promise.resolve(this)}get _titleCreator(){let e=this._get("_titleCreator");return(0,H.pR)(e),new he.A({fieldsIndex:this.fieldsIndex,objectIdField:this.objectIdField,displayField:this.parent?.displayField??"",fields:this.fields,effectivePopupTemplate:this.popupTemplate??this.defaultPopupTemplate})}get capabilities(){return this.parent?.capabilities}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get effectiveEditingEnabled(){let{parent:e}=this;return e?e.effectiveEditingEnabled&&this.editingEnabled:this.editingEnabled}get elevationInfo(){return this.parent?.elevationInfo}get featureTitleFields(){return[...this._titleCreator.requiredFields]}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;let t=(0,de.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,de.QX)(this)||null}writeFieldOverrides(e,t,r){let i,{fields:l,parent:n}=this;if(l){i=[];let e=0;l.forEach(({name:t,alias:r,editable:l,visible:o})=>{if(!o)return;let a=n?.fields?.find(e=>e.name===t);if(!a)return;let s={name:t},u=!1;r!==a.alias&&(s.alias=r,u=!0),l!==a.editable&&(s.editable=l,u=!0),i.push(s),u&&e++}),0===e&&i.length===l.length&&(i=null)}else i=(0,$.o8)(e);i?.length&&(0,J.sM)(r,i,t)}get fields(){let{parent:e,fieldOverrides:t,subtypeCode:r}=this,i=e?.fields;if(!e||!i?.length)return null;let{subtypes:l,subtypeField:n}=e,o=l?.find(e=>e.code===r),a=o?.defaultValues,s=o?.domains,u=[];for(let e of i){let i=e.clone(),{name:l}=i,o=t?.find(e=>e.name===l);if(i.visible=!t?.length||!!o,o){let{alias:e,editable:t}=o;e&&(i.alias=e),!1===t&&(i.editable=!1)}let c=a?.[l]??null;i.defaultValue=l===n?r:c;let d=s?.[l]??null;i.domain=l===n?null:d?"inherited"===d.type?i.domain:d.clone():null,u.push(i)}return u}get floorInfo(){return this.parent?.floorInfo}get isTable(){return!!this.parent?.isTable}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?this.parent.globalIdField:(W.A.getLogger(this).error(_e("globalIdField")),null)}get effectiveScaleRange(){let e=this._get("effectiveScaleRange"),{maxScale:t,minScale:r,parent:i}=this,l={minScale:r,maxScale:t};return void 0!==i?.effectiveScaleRange&&(0,ee.RH)(l,i.effectiveScaleRange),e&&e.minScale===l.minScale&&e.maxScale===l.maxScale?e:l}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get objectIdField(){return this.parent||W.A.getLogger(this).error(_e("objectIdField")),this.parent?.objectIdField}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get defaultPopupTemplate(){return this.createPopupTemplate()}get relationships(){return this.parent?.relationships}set renderer(e){(0,L.yp)(e,this.fieldsIndex),this._override("renderer",e)}get renderer(){if(this._isOverridden("renderer"))return this._get("renderer");let{parent:e}=this;return e&&!e.isTable&&"mesh"!==e.geometryType?(ke(this)?(0,$.o8)(Ae(this)?.renderer):null)??function(e){return new R.A({symbol:xe(e)})}(e.geometryType):null}readRendererFromService(e,t,r){if("Table"===t.type)return null;let i,l=t.drawingInfo?.renderer,n=N(l,t,r),{subtypeCode:o}=this;if(null!=o&&function(e,t){return!(!t||"unique-value"!==e?.type||null==e.field||e.field.toLowerCase()!==t.toLowerCase()||e.field2||e.field3||e.valueExpression)}(n,t.subtypeField)){let e=n.uniqueValueInfos?.find(({value:e})=>(e="number"==typeof e?String(e):e)===String(o));e&&(i=new R.A({symbol:e.symbol}))}else"simple"===n?.type&&!n.visualVariables?.length&&(i=n);return i}readRenderer(e,t,r){let i=t?.layerDefinition?.drawingInfo?.renderer;if(i)return N(i,t,r)||void 0}get spatialReference(){return this.parent?.spatialReference??Q.A.WGS84}get subtypeField(){return this.parent?.subtypeField}get templates(){return this._isOverridden("templates")?this._get("templates"):(0,$.o8)(ke(this)?Ae(this)?.templates:function(e){return Te(e,"portal-item")}(this)?.templates||Ae(this)?.templates)}set templates(e){this._override("templates",e)}readTemplatesFromService(e,t){return[Pe(this.subtypeCode,t)]}get title(){return this._isOverridden("title")?this._get("title"):(ke(this)?Ae(this):null)?.title}set title(e){this._override("title",e)}readTitleFromService(e,t){let r=Ee(this.subtypeCode,t);return null==r?null:r.name}get url(){return this.parent?.url}get userHasUpdateItemPrivileges(){return!!this.parent?.userHasUpdateItemPrivileges}async addAttachment(e,t,r){let{parent:i}=this;if(!i)throw _e("addAttachment");if(e.getAttribute(i.subtypeField)!==this.subtypeCode)throw new o.A("subtype-sublayer:addAttachment","The feature provided does not belong to this SubtypeSublayer");return i.addAttachment(e,t,r)}async updateAttachment(e,t,r,i){let{parent:l}=this;if(!l)throw _e("updateAttachment");if(e.getAttribute(l.subtypeField)!==this.subtypeCode)throw new o.A("subtype-sublayer:updateAttachment","The feature provided does not belong to this SubtypeSublayer");return l.updateAttachment(e,t,r,i)}async deleteAttachments(e,t,r){let{parent:i}=this;if(!i)throw _e("deleteAttachments");if(e.getAttribute(i.subtypeField)!==this.subtypeCode)throw new o.A("subtype-sublayer:deleteAttachments","The feature provided does not belong to this SubtypeSublayer");return i.deleteAttachments(e,t,r)}async applyEdits(e,t){if(!this.parent)throw _e("applyEdits");return this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,de.xY)(this)}createPopupTemplate(e){let t=this,{parent:r,fields:i,title:l}=this;if(r){let{displayField:e,editFieldsInfo:n,objectIdField:o}=r;t={displayField:e,editFieldsInfo:n,fields:i,objectIdField:o,title:l}}return(0,ge.tn)(t,e)}createQuery(){let{parent:e}=this;if(!e)throw _e("createQuery");let t=(0,E.VZ)(e),r=`${e.fieldsIndex.get(e.subtypeField)?.name||e.subtypeField}=${this.subtypeCode}`;return t.where=(0,p.mA)(r,e.definitionExpression),t}getFeatureTitle(e,t){return this._titleCreator.getTitle(this,e,t)}getFeatureTitles(e,t){return this._titleCreator.getTitles(this,e,t)}getField(e){return this.fieldsIndex.get(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains&&this.parent){let t=(0,E.pc)(this.parent,e);if(t)return t}return this._getLayerDomain(e)}async queryAttachments(e,t){let r=await this.load();if(!r.parent)throw _e("queryAttachments");let i=e instanceof ye.A?e.clone():new ye.A(e);return i.where=Ze(i.where,r.parent.subtypeField,r.subtypeCode),r.parent.queryAttachments(i,t)}async queryFeatureCount(e,t){let r=await this.load();if(!r.parent)throw _e("queryFeatureCount");return r.parent.queryFeatureCount(je(r.parent,r,e),t)}async queryFeatures(e,t){let r=await this.load();if(!r.parent)throw _e("queryFeatures");return r.parent.queryFeatures(je(r.parent,r,e),t)}async queryObjectIds(e,t){let r=await this.load();if(!r.parent)throw _e("queryObjectIds");return r.parent.queryObjectIds(je(r.parent,r,e),t)}async queryRelatedFeatures(e,t){let r=await this.load();if(!r.parent)throw _e("queryRelatedFeatures");return r.parent.queryRelatedFeatures(e,t)}async queryRelatedFeaturesCount(e,t){let r=await this.load();if(!r.parent)throw _e("queryRelatedFeaturesCount");return r.parent.queryRelatedFeaturesCount(e,t)}_getLayerDomain(e){let t=this.fieldsIndex.get(e);return t?t.domain:null}};(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Le.prototype,"_titleCreator",null),(0,i.Cg)([(0,f.MZ)({type:Me.A,json:Fe({name:"attributeTableInfo"})})],Le.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"capabilities",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,f.MZ)({json:Fe()})],Le.prototype,"charts",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:Fe({name:"enableEditing"})})],Le.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],Le.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"elevationInfo",null),(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Le.prototype,"featureTitleFields",null),(0,i.Cg)([(0,f.MZ)({type:[ce.A],json:{name:"layerDefinition.fieldConfigurations",write:{ignoreOrigin:!0}}})],Le.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,f.MZ)({json:{name:"layerDefinition.fieldOverrides",origins:{service:{read:!1}},write:{ignoreOrigin:!0,allowNull:!0}}})],Le.prototype,"fieldOverrides",void 0),(0,i.Cg)([(0,Ce.K)("fieldOverrides")],Le.prototype,"writeFieldOverrides",null),(0,i.Cg)([(0,f.MZ)({...ve.fields,readOnly:!0,json:{read:!1}})],Le.prototype,"fields",null),(0,i.Cg)([(0,f.MZ)(ve.fieldsIndex)],Le.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"floorInfo",null),(0,i.Cg)([(0,f.MZ)({type:Y.A,json:Fe({name:"formInfo"})})],Le.prototype,"formTemplate",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,clonable:!1})],Le.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,f.MZ)({type:String,clonable:!1,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],Le.prototype,"id",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"isTable",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"geometryType",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"globalIdField",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)(Se((0,$.o8)(T.kF)))],Le.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,f.MZ)({type:[pe.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",origins:{service:{read:!1}},read:{reader:fe.w},write:{ignoreOrigin:!0,layerContainerTypes:X.K}}})],Le.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,f.MZ)({type:["ArcGISFeatureLayer"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,layerContainerTypes:X.K}}})],Le.prototype,"layerType",void 0),(0,i.Cg)([(0,f.MZ)(Se((0,$.o8)(T.fV)))],Le.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide"]})],Le.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)((()=>{let e=(0,$.o8)(T.hn);return e.json.origins.service.read=!1,Se(e,{spatialOnly:!0})})())],Le.prototype,"minScale",void 0),(0,i.Cg)([(0,f.MZ)((()=>{let e=(0,$.o8)(T.hG);return e.json.origins.service.read=!1,Se(e,{spatialOnly:!0})})())],Le.prototype,"maxScale",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Le.prototype,"effectiveScaleRange",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Le.prototype,"effectiveVisible",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"objectIdField",null),(0,i.Cg)([(0,f.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:Fe({spatialOnly:!0})})],Le.prototype,"opacity",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],Le.prototype,"parent",void 0),(0,i.Cg)([(0,f.MZ)(Se((0,$.o8)(T.M6)))],Le.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,f.MZ)({type:q.A,json:Fe({name:"popupInfo"})})],Le.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,Ce.K)("popupTemplate")],Le.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Le.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"relationships",null),(0,i.Cg)([(0,f.MZ)({types:D,json:Fe({target:"layerDefinition.drawingInfo.renderer",spatialOnly:!0})})],Le.prototype,"renderer",null),(0,i.Cg)([(0,we.w)("service","renderer",["drawingInfo.renderer","subtypeField","type"])],Le.prototype,"readRendererFromService",null),(0,i.Cg)([(0,we.w)("renderer",["layerDefinition.drawingInfo.renderer"])],Le.prototype,"readRenderer",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"spatialReference",null),(0,i.Cg)([(0,f.MZ)({type:Number,json:{origins:{service:{read:!1}},write:{ignoreOrigin:!0}}})],Le.prototype,"subtypeCode",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"subtypeField",null),(0,i.Cg)([(0,f.MZ)({type:[ue.A],json:Fe({name:"layerDefinition.templates"})})],Le.prototype,"templates",null),(0,i.Cg)([(0,we.w)("service","templates",["geometryType","subtypeField","subtypes","type"])],Le.prototype,"readTemplatesFromService",null),(0,i.Cg)([(0,f.MZ)({type:String,json:Fe()})],Le.prototype,"title",null),(0,i.Cg)([(0,we.w)("service","title",["subtypes"])],Le.prototype,"readTitleFromService",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0,json:{read:!1}})],Le.prototype,"url",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Le.prototype,"userHasUpdateItemPrivileges",null),(0,i.Cg)([(0,f.MZ)({type:Boolean,nonNullable:!0,json:Fe({name:"visibility",spatialOnly:!0})})],Le.prototype,"visible",void 0),Le=(0,i.Cg)([(0,f.$K)("esri.layers.support.SubtypeSublayer")],Le);const je=(e,t,r)=>{if(!r)return t.createQuery();let i=me.A.from(r);return i.where=Ze(i.where,e.subtypeField,t.subtypeCode),i},Ze=(e,t,r)=>{let i=RegExp(`${t}\\s*=\\s*\\d+`),l=`${t}=${r}`,n=e??"";return i.test(n)?n.replace(i,l):(0,p.mA)(l,n)},_e=e=>new o.A("subtype-sublayer:parent-missing",`This sublayer must have a parent SubtypeGroupLayer in order to use ${e}`);var Oe=r(91908),Re=r(29308),ze=r(54218),Ge=r(59923);const Ve="SubtypeGroupLayer";function De(e,t){let r=[];for(let i of e){let e=new Le;e.read(i,t),r.push(e)}return r}const Ne=(0,P.p)();let Be=class extends((0,F.Z)((0,w.j)((0,M.FJ)((0,C.w6)((0,g.dM)((0,k.e)((0,x.j)((0,S.J)((0,m.b)((0,v.q)((0,I.A)((0,u.M)((0,b.d)((0,y.p)((0,l.OU)(h.A)))))))))))))))){constructor(...e){super(...e),this._sublayerLookup=new Map,this.dynamicDataSource=null,this.fields=null,this.fieldsIndex=null,this.outFields=null,this.sublayers=new(n.A.ofType(Le)),this.useUniqueColorsForSublayers=!0,this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Feature Layer","Table"]),this.title="Layer",this.type="subtype-group",this._debouncedSaveOperations=(0,c.sg)(async(e,t,i)=>{let{save:l,saveAs:n}=await r.e(5740).then(()=>r(33359));switch(e){case 0:return l(this,t);case 1:return n(this,i,t)}}),this.addHandles((0,d.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),d.OH))}destroy(){this.source?.destroy()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(c.QP).then(async()=>{if(!this.url)throw new o.A("subtype-grouplayer:missing-url-or-source","SubtypeGroupLayer must be created with either a url or a portal item");if(null==this.layerId&&null==this.dynamicDataSource)throw new o.A("subtype-grouplayer:missing-layerid","layerId or dynamicDataSource are required for a SubtypeGroupLayer created with url");this._initLayerProperties(await this.createGraphicsSource(t))}).then(()=>(0,E.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return(0,E.C$)(this)}get operationalLayerType(){return this.isTable?"SubtypeGroupTable":"SubtypeGroupLayer"}set source(e){this._get("source")!==e&&this._set("source",e)}readTitleFromService(e,{name:t}){return this.url?(0,A.yG)(this.url,t):t}async addAttachment(e,t,r){let i=await(0,E.Xl)(this,e,t,Ve,r);return this.lastEditsEventDate=new Date,i}async updateAttachment(e,t,r,i){let l=await(0,E.bt)(this,e,t,r,Ve,i);return this.lastEditsEventDate=new Date,l}async applyEdits(e,t){return(0,E.ct)(this,e,t)}async createGraphicsSource(e){let{default:t}=await(0,c.qr)(Promise.all([r.e(893),r.e(7),r.e(3932)]).then(()=>r(60845)),e);return new t({layer:this,supportedSourceTypes:this.supportedSourceTypes}).load({signal:e})}createQuery(){let e=(0,E.VZ)(this);e.dynamicDataSource=this.dynamicDataSource;let t=this.sublayers.map(e=>e.subtypeCode);return e.where=(0,p.mA)(`${this.subtypeField} IN (${t.join(",")})`,this.definitionExpression),e}async deleteAttachments(e,t,r){let i=await(0,E.mm)(this,e,t,Ve,r);return this.lastEditsEventDate=new Date,i}async fetchRecomputedExtents(e){return(0,E.WP)(this,e,Ve)}findSublayerForFeature(e){let t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.findSublayerForSubtypeCode(r)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){if(!t?.excludeImpliedDomains){let t=(0,E.pc)(this,e);if(t)return t}let r=(0,E.Nv)(this,t?.feature);if(r){let t=r.domains?.[e];return"inherited"===t?.type?this._getLayerDomain(e):t}return this._getLayerDomain(e)}loadAll(){return(0,a.g)(this,e=>{e(this.sublayers)})}async queryAttachments(e,t){return(0,E.lV)(this,e,t,Ve)}async queryFeatures(e,t){let r=await this.load(),i=me.A.from(e)??r.createQuery(),l=i.outFields??[];l.includes(this.subtypeField)||(l.push(this.subtypeField),i.outFields=l);let n=await r.source.queryFeatures(i,t);if(n?.features)for(let e of n.features)e.origin=this.findSublayerForFeature(e)?.graphicOrigin,e.layer=e.sourceLayer=this.findSublayerForFeature(e);return n}async queryObjectIds(e,t){return(await(0,E.sg)(this,e,t,Ve)).filter(ze.Et)}async queryFeatureCount(e,t){return(0,E.Ye)(this,e,t,Ve)}async queryExtent(e,t){return(0,E.B5)(this,e,t,Ve)}async queryRelatedFeatures(e,t){return(0,E.hM)(this,e,t,Ve)}async queryRelatedFeaturesCount(e,t){return(0,E.S2)(this,e,t,Ve)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){let{origin:r,layerContainerType:i,messages:l}=t;if(this.dynamicDataSource)return(0,Ge.U4)(t,this,"a dynamic data source cannot be written to web scenes, web maps and feature service items"),null;if(this.isTable){if("web-scene"===r||"web-map"===r&&"tables"!==i)return(0,Ge.U4)(t,this,"a table source cannot be written to web scenes and web maps"),null}else if(this.loaded&&"web-map"===r&&"tables"===i)return(0,Ge.U4)(t,this,"a non-table source cannot be written to tables in web maps"),null;return this.sublayers?.length?super.write(e,t):(l?.push(new o.A("web-document-write:invalid-property",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' has invalid value for 'sublayers' property. 'sublayers' collection should contain at least one sublayer`,{layer:this})),null)}serviceSupportsSpatialReference(e){return!!this.loaded&&(0,Oe.D)(this,e)}async getFeatureTitle(e,t){let r=this.findSublayerForFeature(e);return r?await r.getFeatureTitle(e,t):this._getFeatureTitleForUnknownSublayer(e)}async getFeatureTitles(e,t){let r=new Map,i=new Map,l=[],n=[i];if(e.forEach(e=>{let n=this.findSublayerForFeature(e);if(n)(0,s.tE)(r,n,()=>[]).push(e);else{let r=e.getObjectId()??e.attributes[this.objectIdField];t?.fetchMissingFields?l.push(e):i.set(r,this._getFeatureTitleForUnknownSublayer(e))}}),l.length>0){let e=new Set(this.featureTitleFields);e.add(this.objectIdField),e.add(this.subtypeField);let t=await this.queryFeatures({outFields:[...e],returnGeometry:!1,objectIds:l.map(e=>e.getObjectId()??e.attributes[this.objectIdField])}),n=new Set;for(let e of t.features??[]){let t=e.getObjectId()??e.attributes[this.objectIdField];n.add(t);let l=this.findSublayerForFeature(e);l?(0,s.tE)(r,l,()=>[]).push(e):i.set(t,this._getFeatureTitleForUnknownSublayer(e))}for(let e of l){let t=e.getObjectId()??e.attributes[this.objectIdField];n.has(t)||i.set(t,this._getFeatureTitleForUnknownSublayer(e))}}(await Promise.all(Array.from(r).map(([e,r])=>e.getFeatureTitles(r,t)))).forEach(e=>n.push(e));let o=new Map(n.flatMap(e=>[...e]));return i.forEach((e,t)=>{o.set(t,e)}),o}get featureTitleFields(){let e=new Set;for(let t of this.sublayers){let r=t.featureTitleFields;for(let t of r)e.add(t)}return[...e]}_getLayerDomain(e){let t=this.fieldsIndex.get(e);return t?t.domain:null}_initLayerProperties(e){this._set("source",e);let{sourceJSON:t}=e;if(t&&(this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})),!this.subtypes?.length)throw new o.A("subtype-grouplayer:missing-subtypes","SubtypeGroupLayer must be created using a layer with subtypes");this._verifyFields(),(0,L.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await t.reload({signal:e}),this._initLayerProperties(t)}async hasDataChanged(){return(0,E.jp)(this)}_verifyFields(){let e=this.parsedUrl?.path??"undefined";this.objectIdField||console.log("SubtypeGroupLayer: 'objectIdField' property is not defined (url: "+e+")"),!this.isTable&&-1===e.search(/\/FeatureServer\//i)&&!this.fields?.some(e=>"geometry"===e.type)&&console.log("SubtypeGroupLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}_getFeatureTitleForUnknownSublayer(e){let{displayField:t,fieldsIndex:r,objectIdField:i}=this;if(t&&r.has(t))return e.attributes[r.get(t).name]??"";let l=e.getObjectId();return null==l?i&&r.has(i)?e.attributes[r.get(i).name]??"":"":l.toString()}};(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Be.prototype,"createQueryVersion",null),(0,i.Cg)([(0,f.MZ)({type:Re.A})],Be.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Be.prototype,"editingEnabled",null),(0,i.Cg)([(0,f.MZ)({readOnly:!0})],Be.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,f.MZ)({...Ne.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Be.prototype,"fields",void 0),(0,i.Cg)([(0,f.MZ)(Ne.fieldsIndex)],Be.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,f.MZ)(T.id)],Be.prototype,"id",void 0),(0,i.Cg)([(0,f.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],Be.prototype,"listMode",void 0),(0,i.Cg)([(0,f.MZ)({type:["SubtypeGroupLayer","SubtypeGroupTable"],json:{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0},origins:{"web-document":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}},"portal-item":{name:"layerType",read:{enabled:!0},write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],Be.prototype,"operationalLayerType",null),(0,i.Cg)([(0,f.MZ)(Ne.outFields)],Be.prototype,"outFields",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1})],Be.prototype,"source",null),(0,i.Cg)([(0,f.MZ)({type:n.A.ofType(Le),json:{origins:{service:{read:{source:"subtypes",reader(e,t,r){let i=null;if(this.useUniqueColorsForSublayers){let l=function(e,t){let r=e.drawingInfo?.renderer,i=r?N(r,e,t):null;return"simple"===i?.type?(0,V.Sx)(i.symbol,null)?i.symbol.clone():null:void 0}(t,r);i=l?function(e,t){return(0,j.Iy)(B,e,{offset:!0,shuffle:!0}).reverse().map(e=>{let r=t.clone();return"cim"===r.type?(0,G.Fe)(r,e):(0,V.dt)(r,e),new R.A({symbol:r})})}(e.length,l):null}let l=e.map(({code:e},l)=>{let n=new Le({subtypeCode:e});n.read(t,r);let o=i?.[l];return o&&n.read({drawingInfo:{renderer:o.toJSON()}},r),n});return new(n.A.ofType(Le))(l)}}}},read:{source:["layers","tables"],reader(e,t,r){let i;return"SubtypeGroupLayer"===t.layerType&&t.layers?.length?i=De(t.layers,r):"SubtypeGroupTable"===t.layerType&&t.tables?.length&&(i=De(t.tables,r)),new(n.A.ofType(Le))(i)}},write:{ignoreOrigin:!0,writer(e,t,r,i){let l=[];for(let t of e){let e=t.write({},i);l.push(e)}this.isTable?t.tables=l:t.layers=l}}}})],Be.prototype,"sublayers",void 0),(0,i.Cg)([(0,f.MZ)()],Be.prototype,"useUniqueColorsForSublayers",void 0),(0,i.Cg)([(0,f.MZ)({json:{origins:{"portal-item":{write:{enabled:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}}}}})],Be.prototype,"title",void 0),(0,i.Cg)([(0,we.w)("service","title",["name"])],Be.prototype,"readTitleFromService",null),(0,i.Cg)([(0,f.MZ)({json:{read:!1}})],Be.prototype,"type",void 0),(0,i.Cg)([(0,f.MZ)({clonable:!1,readOnly:!0})],Be.prototype,"featureTitleFields",null),Be=(0,i.Cg)([(0,f.$K)("esri.layers.SubtypeGroupLayer")],Be);const qe=Be},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function l(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>l})},52136(e,t,r){var i=r(32198),l=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,l.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},6455(e,t,r){r.d(t,{FJ:()=>g,Dp:()=>b,KV:()=>M});var i=r(32198),l=r(93637),n=r(91429),o=r(89317),a=r(69540),s=r(7762),u=r(25482),c=r(83960),d=r(13069);const p={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let f=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,d.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],f.prototype,"id",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:p})],f.prototype,"maxScale",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:p})],f.prototype,"minScale",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],f.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],f.prototype,"where",void 0),f=(0,i.Cg)([(0,n.$K)("esri.layers.support.DisplayFilter")],f);var h=r(41560),y=r(43937);let m=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(s.A.ofType(f)),this.mode="manual"}writeFilters(e,t,r,i){let l=e.toArray();"scale"===this.mode&&l.sort((e,t)=>{let r=(0,c.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===r?i:r}),t[r]=l.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,h.mW)(this,t))}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],m.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,n.MZ)({type:s.A.ofType(f),nonNullable:!0,json:{write:!0}})],m.prototype,"filters",void 0),(0,i.Cg)([(0,y.K)("filters")],m.prototype,"writeFilters",null),(0,i.Cg)([(0,n.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],m.prototype,"mode",void 0),m=(0,i.Cg)([(0,n.$K)("esri.layers.support.DisplayFilterInfo")],m);const g=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,n.MZ)(b)],r.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,n.MZ)(M)],r.prototype,"displayFilterInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},b={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:o.K,writer(e,t,r){(0,l.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},M={type:m,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:o.K},origins:{"web-scene":{write:!1,read:!1}}}}},47685(e,t,r){r.d(t,{Mk:()=>f,Zk:()=>d});var i=r(32198),l=r(65529),n=r(4718),o=r(91429),a=r(20816);const s=new l.bk;function u(e){return s.on("apply-edits",new WeakRef(e))}function c(e){return s.on("update-moment",new WeakRef(e))}function d(e,t,r=null,i=!1){let l=Promise.withResolvers();return i=null==t||i,s.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:l.promise}),l}const p=Symbol();function f(e){return"object"==typeof e&&!!e&&p in e}function h(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function y(e,t,r){let i=new URL(e).host,l=a.Z3.get(i),n=e=>!e||e===l;return n(t)&&n(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,l=class extends r{static{t=p}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:l,result:o}=e,a=t===this.url,s=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),c=h(this),d=h(this)&&y(t,i,this.gdbVersion);if(!a||c&&!d||!s&&!u&&!l)return;let p=o.then(e=>{if(this.lastEditsEventDate=new Date,s&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,n.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:l}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:l?l.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return this.emit("edits",o),o}let l={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,n.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,n.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,l.historicMoment)&&this.emit("edits",l),l}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));p.catch(()=>{}),this.emit("apply-edits",{result:p})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,l=t===this.url,n=h(this),o=h(this)&&y(t,r,this.gdbVersion),a=h(this)&&!y(t,this.gdbVersion,null);l&&n&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(c(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],l.prototype,"lastEditsEventDate",void 0),l=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],l),l}])},28032(e,t,r){r.d(t,{A:()=>s});var i=r(32198),l=r(69540),n=r(25482),o=r(91429),a=r(56400);let s=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,o.MZ)()],s.prototype,"creatorField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"creationDateField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"editorField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"editDateField",void 0),(0,i.Cg)([(0,o.MZ)()],s.prototype,"realm",void 0),(0,i.Cg)([(0,o.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,i.Cg)([(0,o.$K)("esri.layers.support.EditFieldsInfo")],s)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),l=r(69540),n=r(66552),o=r(25482),a=r(91429);const s=new n.J({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((0,l.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},30279(e,t,r){r.d(t,{A:()=>u});var i=r(32198),l=r(69540),n=r(25482),o=r(10107),a=r(64108),s=r(39663);let u=class extends((0,l.OU)(n.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({types:s.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,i.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},46499(e,t,r){r.d(t,{A:()=>S});var i,l,n=r(32198),o=(r(44208),r(66552)),a=r(25482),s=r(4718),u=r(90629),c=r(91429),d=r(90360),p=r(73913),f=r(32730),h=r(77548),y=r(59868),m=r(73838),g=r(33910),b=r(36005),M=r(43937);const C=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function w(e,t,r){return{enabled:!(0,h.TU)(r?.layer)}}function v(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function I(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let S=class extends a.o{static{i=f.vK}static{l=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),l=i[3],n=r(t[i[4]],i[5],i[6]);switch(l){case"AND":return e&&n;case"OR":return e||n}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=y.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,f.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,f.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&v(i))e=new p.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let l=e.toJSON(i);l.expression&&(t[r]=l)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,f.XJ)(this)}getLabelExpressionArcade(){return(0,f.BI)(this)}getLabelExpressionSingleField(){return(0,f.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new l({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,s.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,s.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],S.prototype,"name",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:w}}}}})],S.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:w}}}}})],S.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&I(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],S.prototype,"labelExpression",void 0),(0,n.Cg)([(0,b.w)("labelExpression")],S.prototype,"readLabelExpression",null),(0,n.Cg)([(0,M.K)("labelExpression")],S.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,c.MZ)({type:p.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return v(e)||I(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],S.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,M.K)("labelExpressionInfo")],S.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,c.MZ)({type:C.apiValues,json:{type:C.jsonValues,read:C.read,write:C.write}})],S.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],S.prototype,"offsetDistance",void 0),(0,n.Cg)([(0,c.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],S.prototype,"labelPosition",void 0),(0,n.Cg)([(0,c.MZ)({type:Number})],S.prototype,"maxScale",void 0),(0,n.Cg)([(0,M.K)("maxScale")],S.prototype,"writeMaxScale",null),(0,n.Cg)([(0,c.MZ)({type:Number})],S.prototype,"minScale",void 0),(0,n.Cg)([(0,M.K)("minScale")],S.prototype,"writeMinScale",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],S.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],S.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,c.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,d.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,d.C)({types:g.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],S.prototype,"symbol",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=l=(0,n.Cg)([(0,c.$K)("esri.layers.support.LabelClass")],S)},73913(e,t,r){r.d(t,{A:()=>c});var i,l=r(32198),n=r(25482),o=r(91429),a=r(32730),s=r(36005),u=r(43937);let c=class extends n.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"name",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"expression",void 0),(0,l.Cg)([(0,s.w)("expression",["expression","value"])],c.prototype,"readExpression",null),(0,l.Cg)([(0,u.K)("expression")],c.prototype,"writeExpression",null),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],c.prototype,"title",void 0),(0,l.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],c.prototype,"value",void 0),c=i=(0,l.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],c)},37352(e,t,r){r.d(t,{A:()=>s});var i,l=r(32198),n=r(7762),o=r(25482),a=r(91429);let s=i=class extends o.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,l.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,l.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,l.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=i=(0,l.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,r){r.d(t,{A:()=>c});var i=r(32198),l=r(69540),n=r(66552),o=r(25482),a=r(91429);const s=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let c=class extends((0,l.OU)(o.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],c.prototype,"cardinality",void 0),(0,i.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],c.prototype,"catalogId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"composite",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],c.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:u.read,write:u.write}})],c.prototype,"role",void 0),c=(0,i.Cg)([(0,a.$K)("esri.layers.support.Relationship")],c)},17311(e,t,r){r.d(t,{A:()=>f});var i=r(32198),l=r(69622),n=r(4576),o=r(60999),a=r(7762),s=r(16494),u=r(91429),c=r(30524),d=r(43668);const p=/<br\s*\/*>/gi;let f=class extends l.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)(()=>(0,d.l)()):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??Promise.all([r.e(3281),r.e(9301)]).then(()=>r(99301)).then(e=>this._featureUtils=e)}get calculatedExpressions(){let e=new a.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(let t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(let t of this.expressionsUsedInTitle)try{let r=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(r.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:r,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(r,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"==typeof e?(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter(t=>e.includes(`{expression/${t.name.toLowerCase()}}`))??[]):[]}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some(e=>!0===e.invalid)}get requiredFields(){let e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(let t of this.calculatedExpressions?.toArray()??[])try{let r=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(let t of r){let r=t.split("."),i=this.fieldsIndex.get(r.at(-1)??"");i&&e.add(i.name)}}catch{}let t=this._extractFieldNames(this.workingTitle);for(let r of t){let t=this.fieldsIndex.get(r);t&&e.add(t.name)}return null!=this.objectIdField&&e.add(this.objectIdField),e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||=this.fieldsIndex.get(this.objectIdField)?.name??"",e?`{${e}}`:""}get workingTitle(){let e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,r){let i=t.getObjectId()??t.attributes?.[e.objectIdField];return(await this.getTitles(e,[t],r)).get(i)??""}async getTitles(e,t,r){let i=new Map,l=r?.timeZone??"system";try{let[{substituteFieldsInLinksAndAttributes:n}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);r?.fetchMissingFields&&(t=await this._checkAndReQueryGraphics(e,t));let{fieldInfoMap:o,workingTitle:a}=this,u=a&&o;t.forEach(t=>{let c=t.getObjectId()??t.attributes[e.objectIdField],d=u?n({attributes:t.attributes,expressionAttributes:null,fieldInfoMap:o,globalAttributes:this._createFormattedAttributes(e,t,l).global,layer:e,text:a}):"";r?.removeHTML&&(d=s.Nd.sanitize(d).replaceAll(p," ")),i.set(c,d)})}catch{}return i}async _checkAndReQueryGraphics(e,t){let r=t.map(t=>t.getObjectId()??t.attributes[e.objectIdField]).filter(n.Ru);if(r.length!==t.length)return t;if(t.some(e=>!(0,c.Kl)(e,this.requiredFields))){let i=e.createQuery();i.where="1=1",i.outFields=[...this.requiredFields],i.objectIds=r;let l=await e.queryFeatures(i);if(l?.features.length===t.length)return l.features}return t}_createFieldInfoMap(e){let t=new Map;if(!e)return t;for(let r of e){if(!r.fieldName)continue;let e=this.fieldsIndex.get(r.fieldName)?.name??r.fieldName;r.fieldName=e,t.set(e.toLowerCase(),r)}return t}_createFormattedAttributes(e,t,r="system"){let i=this.effectivePopupTemplate?.fieldInfos??[],l={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){let r=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(let e of this.calculatedExpressions)try{l[`expression/${e.name}`]=e.func({vars:{$feature:r}})}catch{}}let n={...t.attributes,...l};return{global:this._featureUtils.formatAttributes({fieldInfos:i,attributes:n,graphic:t,timeZone:r,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,c.nw)(e).filter(e=>!(e.startsWith("relationships/")||e.startsWith("expression/")))}};(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"_arcadeTask",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"_featureUtils",void 0),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"featureUtilsPromise",null),(0,i.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"calculatedExpressions",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"displayField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"effectivePopupTemplate",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"expressionsUsedInTitle",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fieldInfoMap",null),(0,i.Cg)([(0,u.MZ)()],f.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"objectIdField",void 0),(0,i.Cg)([(0,u.MZ)()],f.prototype,"requiredFields",null),f=(0,i.Cg)([(0,u.$K)("esri.layers.support.TitleCreator")],f)},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>n});var i=r(34727),l=r(39516);function n(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){let n=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],c(r)),t[1]=Math.min(t[1],d(i));return t}(e);if(n&&((0,i.gg)(t,n[0])||(0,i.ZH)(r,n[1])))return"";let o=Array.from(a(e,t,r)),s=function(e,t,r){if(0===e.length)return!0;let l=c(e.at(0)?.minScale),n=d(e.at(-1)?.maxScale);if((0,i.ZH)(l,t)||(0,i.gg)(n,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],l=e[t+1];if((0,i.ZH)(c(l.minScale),d(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,l.IW)(e,t),"");return s&&"1=1"!==s?s:""}function*a(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)s(i.minScale,i.maxScale,t,r)&&(yield i)}}function s(e,t,r,l){return e=c(e),r=c(r),t=d(t),!(!(0,i.Sp)(r,e)&&(l??r)>e||(0,i.Hx)(t,r)||void 0!==l&&(0,i.Sp)(l,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||1/0}function d(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>s,sS:()=>c,xY:()=>u});var i=r(4718),l=r(30279),n=r(39663),o=r(30524),a=r(41227);function s(e){let{popupTemplate:t,fieldsIndex:r}=e,i=t?.fieldInfos;if(!i?.length||!r)return;let o=[];for(let e of i){let{fieldName:t,label:i}=e,a=r.get(t);if(!a)continue;let s=i&&i!==a.alias?i:null,u=(0,n.iu)(e,a);(s||u)&&o.push(new l.A({name:a.name,alias:s,fieldFormat:u}))}return o.length?o:null}function u(e){let{fields:t}=e;if(!t?.length)return;let r=[];for(let e of t){let t=(0,n.qH)(e)?(0,n.$P)(e):null;t&&r.push(new l.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function c(e,t){let{popupTemplate:r,fieldsIndex:l}=e;if(!r||!l)return;let o=function(e,t,r){t??=[],r=(0,i.o8)(r)??[];let l=!1,o=new Map;for(let r of t){let t=e.fieldsIndex.get(r.name);t&&o.set(t.name,r)}for(let t of r){let r=e.fieldsIndex.get(t.fieldName);if(!r)continue;let i=o.get(r.name);t.label=i?.alias||r.alias,t.format=(0,n.qH)(r)&&i?.fieldFormat?(0,n.PK)(i.fieldFormat,r):null,l=!0,o.delete(r.name)}for(let t of o.values()){let i=d(e,t);i&&(r.push(i),l=!0)}return l?r:null}(e,t,r.fieldInfos);if(!o)return;let a=r.clone();return a.fieldInfos=o,a}function d(e,t){let{name:r,alias:i,fieldFormat:l}=t,s=e.fieldsIndex.get(r);if(!s||!i&&!l)return;let u=i||s.alias,c=(0,n.qH)(s)&&l?(0,n.PK)(l,s):null;return new a.A({fieldName:s.name,label:u,format:c,visible:!1,isEditable:(0,o.R$)(s,e)})}},32730(e,t,r){r.d(t,{BI:()=>d,D3:()=>u,XJ:()=>c,lc:()=>s,mX:()=>f,rU:()=>p,tH:()=>b,zA:()=>C});var i=r(799);const l=RegExp("__begin__","ig"),n=RegExp("__end__","ig"),o=RegExp("^__begin__","i"),a=RegExp("__end__$","i");function s(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function c(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=s(e.labelExpression),t.type="conventional"),t}function d(e){let t=c(e);if(!t)return null;switch(t.type){case"conventional":return f(t.expression);case"arcade":return t.expression}return null}function p(e){let t=c(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(h))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function f(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=o.test(t)?t.replace(o,""):'"'+t,t=a.test(t)?t.replace(a,""):t+'"',t=t.replaceAll(l,'" + ').replaceAll(n,' + "')):t='""',t}const h=/^\s*\{([^}]+)\}\s*$/i,y=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,g=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=y.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=g.exec(e),t?t[2]:null)}const M=Symbol("LabelClassInstance");function C(e){return"object"==typeof e&&!!e&&M in e}r.d(t,["vK",0,M])},39383(e,t,r){r.d(t,{w:()=>s,z:()=>d});var i=r(49186),l=r(53966),n=r(46499);const o=()=>l.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function s(e,t,r){return e?e.map(e=>{let i=new n.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],c={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function d(e,t){let r=[];for(let l of e){let e=l.labelPlacement,n=c[t];if(!l.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!n)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(l);else{let i=n[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let a=l.clone();a.labelPlacement=i,r.push(a)}}return r}},86162(e,t,r){r.d(t,{A:()=>x});var i,l=r(32198),n=r(66552),o=r(4718),a=r(53966),s=r(91429),u=r(78888),c=r(30524),d=r(92438),p=r(63988),f=r(88542),h=r(49849),y=r(20061),m=r(80911),g=r(43668),b=r(33910),M=r(36005),C=r(43937),w=r(93223);const v="percent-of-total",I="field",S=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:v,esriNormalizeByField:I}),F=(0,u.dp)(f.A);let x=i=class extends((0,p.h)(d.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,r){if(!Array.isArray(e))return;let i=t.minValue;return e.map(e=>{let t=new f.A;return t.read(e,r),t.minValue??=i,t.maxValue??=t.minValue,i=t.maxValue,t})}writeClassBreakInfos(e,t,r,i){let l=e.map(e=>e.write({},i));this._areClassBreaksConsecutive()&&l.forEach(e=>delete e.classMinValue),t[r]=l}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,u.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&I||r&&v||null,t&&r&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===I||e===v)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,r){let i=null;i="number"==typeof e?new f.A({minValue:e,maxValue:t,symbol:(0,b.dp)(r)}):F((0,o.o8)(e)),this.classBreakInfos.push(i),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){let r=this.classBreakInfos.length;for(let i=0;i<r;i++){let r=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(r[0]===e&&r[1]===t){this.classBreakInfos.splice(i,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let r=t;this.valueExpression&&null==t?.arcade&&(r={...r,arcade:await(0,g.l)()});let i=this.getBreakIndex(e,r);return-1===i?null:this.classBreakInfos[i]}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");let r=this.getBreakIndex(e,t);return-1===r?this.defaultSymbol:(0,m.c)(this.classBreakInfos[r],t?.scale)??this.defaultSymbol}async getSymbolAsync(e,t){let r=t;if(this.valueExpression&&null==t?.arcade){let e=await(0,g.l)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),r={...r,arcade:e}}let i=this.getBreakIndex(e,r);return-1===i?this.defaultSymbol:(0,m.c)(this.classBreakInfos[i],r?.scale)??this.defaultSymbol}get symbols(){let e=[];return this.classBreakInfos.forEach(t=>{t.symbol&&e.push(t.symbol),e.push(...t.alternateSymbols??[])}),this.defaultSymbol&&e.push(this.defaultSymbol),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new i({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.o8)(this.visualVariables),legendOptions:(0,o.o8)(this.legendOptions),authoringInfo:(0,o.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){let r=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(r)}async collectSymbolFields(e,t){let r=[...this.symbols.map(r=>r.collectRequiredFields(e,t)),(0,c.Dx)(e,t,null,this.valueExpression)];(0,c.rq)(e,t,this.field),(0,c.rq)(e,t,this.normalizationField),await Promise.all(r)}getBreakIndexfromInfos(e){let t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let r=0;r<this.classBreakInfos.length;r++){let i=[this.classBreakInfos[r].minValue,this.classBreakInfos[r].maxValue];if(i[0]<=e&&(t?e<=i[1]:e<i[1]))return r}return-1}_getBreakIndexForExpression(e,t){let{viewingMode:r,scale:i,spatialReference:l,arcade:n,timeZone:o}=t??{},{valueExpression:a}=this,s=this._compiledValueExpression.valueExpression===a?this._compiledValueExpression.compiledFunction:null,u=n.arcadeUtils;if(!s){let e=u.createSyntaxTree(a);s=u.createFunction(e),this._compiledValueExpression.compiledFunction=s}this._compiledValueExpression.valueExpression=a;let c=u.executeFunction(s,u.createExecContext(e,u.getViewInfo({viewingMode:r,scale:i,spatialReference:l}),o));return this.getBreakIndexfromInfos(c)}_getBreakIndexForField(e){let t=this.field,r=e.attributes,i=this.normalizationType,l=parseFloat(r[t]);if(i){let e=this.normalizationTotal,t=parseFloat(this.normalizationField?r[this.normalizationField]:void 0);if("log"===i)l=Math.log(l)*Math.LOG10E;else if(i!==v||null==e||isNaN(e)){if(i===I&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this.getBreakIndexfromInfos(l)}_areClassBreaksConsecutive(){let e=this.classBreakInfos,t=e.length;for(let r=1;r<t;r++)if(e[r-1].maxValue!==e[r].minValue)return!1;return!0}};(0,l.Cg)([(0,s.MZ)(h.As)],x.prototype,"backgroundFillSymbol",void 0),(0,l.Cg)([(0,s.MZ)({type:[f.A],json:{write:{isRequired:!0}}})],x.prototype,"classBreakInfos",void 0),(0,l.Cg)([(0,M.w)("classBreakInfos")],x.prototype,"readClassBreakInfos",null),(0,l.Cg)([(0,C.K)("classBreakInfos")],x.prototype,"writeClassBreakInfos",null),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],x.prototype,"defaultLabel",void 0),(0,l.Cg)([(0,s.MZ)(h.z4)],x.prototype,"defaultSymbol",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],x.prototype,"field",void 0),(0,l.Cg)([(0,s.wg)("field")],x.prototype,"castField",null),(0,l.Cg)([(0,s.MZ)({type:Boolean})],x.prototype,"isMaxInclusive",void 0),(0,l.Cg)([(0,s.MZ)({type:y.A,json:{write:!0}})],x.prototype,"legendOptions",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],x.prototype,"minValue",null),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],x.prototype,"normalizationField",void 0),(0,l.Cg)([(0,s.MZ)({type:Number,json:{write:!0}})],x.prototype,"normalizationTotal",void 0),(0,l.Cg)([(0,s.MZ)({type:S.apiValues,value:null,json:{type:S.jsonValues,read:S.read,write:S.write}})],x.prototype,"normalizationType",null),(0,l.Cg)([(0,w.e)({classBreaks:"class-breaks"})],x.prototype,"type",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpression",void 0),(0,l.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],x.prototype,"valueExpressionTitle",void 0),x=i=(0,l.Cg)([(0,s.$K)("esri.renderers.ClassBreaksRenderer")],x)},88542(e,t,r){r.d(t,{A:()=>u});var i,l=r(32198),n=r(25482),o=r(91429),a=r(49849),s=r(40863);let u=i=class extends n.o{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}get alternateSymbols(){return this._get("alternateSymbols")??null}set alternateSymbols(e){e?this._set("alternateSymbols",e.map(e=>e instanceof s.A?e:(delete e.type,new s.A(e)))):this._set("alternateSymbols",null)}clone(){return new i({alternateSymbols:this.alternateSymbols?.map(e=>e.clone()),description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}};(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l.Cg)([(0,o.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,l.Cg)([(0,o.MZ)({type:[s.A],useTypeForAutocast:!1,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"alternateSymbols",null),u=i=(0,l.Cg)([(0,o.$K)("esri.renderers.support.ClassBreakInfo")],u)},41366(e,t,r){var i=r(32198),l=r(66552),n=r(53966),o=r(91429),a=r(93223);const s=(0,l.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&c||r&&u||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===c||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,o.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,s])},28076(e,t,r){var i=r(13337);const l={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:i.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,l])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>v,DW:()=>b,FM:()=>a,Kn:()=>g,Kq:()=>z,MM:()=>d,Nl:()=>I,O2:()=>S,YC:()=>A,YF:()=>F,_1:()=>C,_h:()=>o,bs:()=>k,e6:()=>u,gQ:()=>n,jn:()=>f,lW:()=>c,ll:()=>L,mA:()=>p,oI:()=>G,pM:()=>M,pV:()=>m,pk:()=>E,rB:()=>P,xo:()=>w,yX:()=>R,zb:()=>x,zr:()=>h});var i=r(28076);function l(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function n(e,t){let r=[],i=0,n=-1;do{if(n=e.indexOf("[",i),n>=i){if(n>i){let t=e.slice(i,n);r.push([t,null,l(t)])}if(i=n+1,n=e.indexOf("]",i),n>=i){if(n>i){let l=t[e.slice(i,n)];l&&r.push([null,l,!1])}i=n+1}}}while(-1!==n);if(i<e.length){let t=e.slice(i);r.push([t,null,l(t)])}return r}function o(e,t,r){let i="",l=null;for(let r of t){let[t,n,o]=r;if(null!=t&&""!==t)o?l=t:(null!=l&&(i+=l,l=null),i+=t);else{let t=e.readAttribute(n);null!=t&&""!==t&&(null!==l&&(i+=l,l=null),i+=t)}}return s(i,r)}function a(e,t,r,i){let l="",n=null;for(let i of t){let[t,o,a]=i;if(null!=t&&""!==t)a?n=t:(null!=n&&(l+=n,n=null),l+=t);else{let t=o;null!=r&&(t=T(o,r));let i=e.attributes[t];null!=i&&""!==i&&(null!=n&&(l+=n,n=null),l+=i)}}return s(l,i)}function s(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function u(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function c(e){return e.data?.symbol??null}function d(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function p(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function f(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const y=(e,t=0)=>null==e||isNaN(e)?t:e;function m(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function g(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function b(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function M(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=M(t);if(null!=e)return e}break;case"CIMTextSymbol":return M(e.symbol);case"CIMSolidFill":return e.color}return null}function C(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{let t=e.symbolLayers;if(t)for(let e of t){let t=C(e);if(null!=t)return t}break}case"CIMTextSymbol":return C(e.symbol);case"CIMSolidStroke":return e.color}}function w(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=w(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return w(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function v(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function I(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function S(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function F(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function x(e,t,r,i,l,n,o=!0){let{infos:a}=n,s=1,u=0,c=0,d=0,p=1;for(let{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:i,size:l,frameHeight:n,rotateClockWise:f,scaleSymbolsProportionally:h}of a)p=e?1:s,c=_(t,r,u,p,c),d=Z(t,r,u,p,d),n&&(h||o)&&(s*=l/n),u=O(i,f,u);let f=_(i,l,u,p,c),h=Z(i,l,u,p,d);return{size:e*s,rotation:O(t,r,u),offsetX:f,offsetY:h}}function k(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=e.symbolLayers;if(!t)return"Normal";for(let e of t)if("CIMVectorMarker"===e.type)return k(e)}break;case"CIMVectorMarker":{let t=e.markerGraphics;if(!t)return"Normal";for(let e of t)if(e.symbol)return k(e.symbol)}}return"Normal"}function A(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{let e=r.size??i.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{let e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){let e=r.size??i.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{let e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function T(e,t){if(null!==t){let r=t.get(e);return r?r.name:e}return e}function E(e){return e.map(e=>({...e,propertyName:F(e.propertyName)}))}function P(e){let t={};for(let r in e){let i=e[r];t[F(r)]=i}return t}function L(e){if(!e)return 0;let t=0;for(let r of e)t+=j(r);return t}function j(e){if(!e)return 0;if(z(e))return e.inflateSize??256;if(function(e){return"CIMSimpleLineCallout"===e.type||"CIMBackgroundCallout"===e.type||"CIMBalloonCallout"===e.type||"CIMPointSymbolCallout"===e.type}(e))return Math.abs(e.inflateSize);switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectCircularSector":return Math.abs(e.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(y(e.offsetX)),Math.abs(y(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function Z(e,t,r,i,l){let n=r*Math.PI/180;if(n){let r=Math.cos(n);return(Math.sin(n)*e+r*t)*i+l}return t*i+l}function _(e,t,r,i,l){let n=r*Math.PI/180;return n?(Math.cos(n)*e-Math.sin(n)*t)*i+l:e*i+l}function O(e,t,r){return t?r-e:r+e}function R(e,t){return Math.max(Math.min((e??t)/100,1),0)}function z(e){return e.type.startsWith("Private")}function G(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,y,"UE",0,e=>e.includes("data:image/svg+xml")])},62046(e,t,r){r.d(t,{Fe:()=>h,KU:()=>b,Nk:()=>u,X5:()=>n});var i=r(68197),l=r(93397);function n(e,t,r){if(!e)return;let i=(0,l.lW)(e),n=function(e){let t=(0,l.lW)(e);if("CIMTextSymbol"===t?.type)return t.height??0;let r=0;if(t?.symbolLayers)for(let e of t.symbolLayers)(0,l.MM)(e)&&null!=e.size&&e.size>r?r=e.size:(0,l.mA)(e)&&null!=e.width&&e.width>r?r=e.width:(0,l.jn)(e);return r}(e);0===n?function(e,t){if(e)if("CIMTextSymbol"===e.type)e.height=t;else if(e.symbolLayers)for(let r of e.symbolLayers)switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":r.size=t;break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":r.width=t}}(i,t):o(i,t/n,!1,r)}function o(e,t,r,i){if(e)if("CIMTextSymbol"===e.type)null!=e.height&&(e.height*=t);else{if(r&&e.effects)for(let r of e.effects)s(r,t);if(e.symbolLayers)for(let r of e.symbolLayers){switch(r.type){case"CIMPictureMarker":case"CIMVectorMarker":a(r,t,i);break;case"CIMPictureStroke":case"CIMSolidStroke":case"CIMGradientStroke":!i?.preserveOutlineWidth&&r.width&&(r.width*=t);break;case"CIMPictureFill":r.height&&(r.height*=t),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t);break;case"CIMHatchFill":o(r.lineSymbol,t,!0,{...i,preserveOutlineWidth:!1}),r.offsetX&&(r.offsetX*=t),r.offsetY&&(r.offsetY*=t),r.separation&&(r.separation*=t)}if(r.effects)for(let e of r.effects)s(e,t)}}}function a(e,t,r){if(e&&(e.markerPlacement&&function(e,t){switch((0,l.zr)(e)&&e.offset&&(e.offset*=t),e.type){case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineSameSize":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementAlongLineVariableSize":e.maxRandomOffset&&(e.maxRandomOffset*=t),e.placementTemplate&&e.placementTemplate.length&&(e.placementTemplate=e.placementTemplate.map(e=>e*t));break;case"CIMMarkerPlacementOnLine":e.startPointOffset&&(e.startPointOffset*=t);break;case"CIMMarkerPlacementAtExtremities":e.offsetAlongLine&&(e.offsetAlongLine*=t);break;case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementOnVertices":break;case"CIMMarkerPlacementAtRatioPositions":e.beginPosition&&(e.beginPosition*=t),e.endPosition&&(e.endPosition*=t);break;case"CIMMarkerPlacementPolygonCenter":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMMarkerPlacementInsidePolygon":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.stepX&&(e.stepX*=t),e.stepY&&(e.stepY*=t)}}(e.markerPlacement,t),e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t),e.anchorPoint&&"Absolute"===e.anchorPointUnits&&(e.anchorPoint={x:e.anchorPoint.x*t,y:e.anchorPoint.y*t}),e.size=null==e.size?0:e.size*t,"CIMVectorMarker"===e.type&&e.markerGraphics))for(let i of e.markerGraphics)e.scaleSymbolsProportionally||o(i.symbol,t,!0,r)}function s(e,t){if(!(0,l.Kq)(e))switch(e.type){case"CIMGeometricEffectArrow":case"CIMGeometricEffectDonut":e.width&&(e.width*=t);break;case"CIMGeometricEffectBuffer":e.size&&(e.size*=t);break;case"CIMGeometricEffectCut":e.beginCut&&(e.beginCut*=t),e.endCut&&(e.endCut*=t),e.middleCut&&(e.middleCut*=t);break;case"CIMGeometricEffectDashes":e.customEndingOffset&&(e.customEndingOffset*=t),e.offsetAlongLine&&(e.offsetAlongLine*=t),e.dashTemplate&&e.dashTemplate.length&&(e.dashTemplate=e.dashTemplate.map(e=>e*t));break;case"CIMGeometricEffectExtension":case"CIMGeometricEffectJog":case"CIMGeometricEffectRadial":e.length&&(e.length*=t);break;case"CIMGeometricEffectMove":e.offsetX&&(e.offsetX*=t),e.offsetY&&(e.offsetY*=t);break;case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":e.offset&&(e.offset*=t);break;case"CIMGeometricEffectRegularPolygon":e.radius&&(e.radius*=t);break;case"CIMGeometricEffectTaperedPolygon":e.fromWidth&&(e.fromWidth*=t),e.length&&(e.length*=t),e.toWidth&&(e.toWidth*=t);break;case"CIMGeometricEffectWave":e.amplitude&&(e.amplitude*=t),e.period&&(e.period*=t)}}function u(e){let t=[];return c((0,l.lW)(e),t),t.length?new i.A((0,l.e6)(t[0])):null}function c(e,t){if(!e)return;let r;r="CIMTextSymbol"===e.type?e.symbol:e;let i="CIMPolygonSymbol"===e.type;if(r?.symbolLayers)for(let e of r.symbolLayers)if(!(e.colorLocked||i&&((0,l.mA)(e)||(0,l.MM)(e)&&e.markerPlacement&&(0,l.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&d(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{c(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":d(t,e.color);break;case"CIMGradientFill":p(t,e);break;case"CIMHatchFill":c(e.lineSymbol,t)}}function d(e,t){for(let r of e)if(r.join(".")===t.join("."))return;e.push(t)}function p(e,t){switch(t.colorRamp?.type){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&f(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":f(e,t.colorRamp)}}function f(e,t){t&&(t.fromColor&&d(e,t.fromColor),t.toColor&&d(e,t.toColor))}function h(e,t,r){t instanceof i.A||(t=new i.A(t));let n=(0,l.lW)(e);n&&y(n,t,r)}function y(e,t,r){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;let n="CIMPolygonSymbol"===i?.type;if(i?.symbolLayers)for(let e of i.symbolLayers){if(e.colorLocked)continue;if(n)if(r){let{layersToColor:t}=r;if(((0,l.mA)(e)||(0,l.MM)(e)&&e.markerPlacement&&(0,l.zr)(e.markerPlacement))&&"fill"===t||(0,l.jn)(e)&&"outline"===t)continue}else if((0,l.mA)(e)||(0,l.MM)(e)&&e.markerPlacement&&(0,l.zr)(e.markerPlacement))continue;let i=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=i;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{y(e.symbol,t,r)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=i;break;case"CIMGradientFill":m(e,t);break;case"CIMHatchFill":y(e.lineSymbol,t,r)}}}function m(e,t){switch(e.colorRamp?.type){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&g(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":g(e.colorRamp,t)}}function g(e,t){if(e&&(e.fromColor&&=t.toArray(),e.toColor)){let r=t.clone();r.a=0,e.toColor=r.toArray()}}function b(e,t,r=!1){let i=(0,l.lW)(e);if(r&&(t=360-t),"CIMTextSymbol"===i?.type)i.angle=t;else if("CIMPointSymbol"===i?.type&&i.symbolLayers){let e=t-(i.angle||0);for(let t of i.symbolLayers)if((0,l.MM)(t)){let r=t.rotation||0;t.rotateClockwise?r-=e:r+=e,t.rotation=r}i.angle=t}}},93470(e,t,r){const i=[252,146,31,255],l={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},n={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,l,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{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},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,n])},37531(e,t,r){r.d(t,{dt:()=>p,GG:()=>g,UQ:()=>m,Sx:()=>c});var i=r(68197),l=r(60999),n=(r(90629),r(51850)),o=(r(76369),r(62046)),a=(r(2741),r(56507),r(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new a.q(1e3),new i.A([128,128,128]);var s=r(28975),u=r(33910);function c(e,t){if(!e)return null;let r=null;return(0,u.wk)(e)?r=function(e){let t=e.symbolLayers;if(!t)return null;let r=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(r="water"===e.type?e.color:e.material?e.material.color:null)}),r?new i.A(r):null}(e):(0,u.$y)(e)&&(r="cim"===e.type?(0,o.Nk)(e):e.color?new i.A(e.color):null),r?d(r,t):null}function d(e,t){if(null==t||null==e)return e;let r=e.toRgba();return r[3]*=t,new i.A(r)}function p(e,t,r){e&&(t||null!=r)&&(t&&=new i.A(t),(0,u.wk)(e)?function(e,t,r){let l=e.symbolLayers;if(!l)return;let n=(e,l=!1)=>{let n=t??e??null;return null!=r?.override&&(!n&&l&&(n=new i.A([255,255,255])),n&&(n.a=r.override)),d(n,r?.add)};l.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,r?.add));let t=null==e.material?null:e.material.color,i=n(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new s.A({color:i}):e.material.color=i,"outline"in e&&e.outline?.color&&null!=r?.add&&(e.outline.color=d(e.outline.color,r.add)),"marker"in e&&null!=e.marker&&(e.marker.color=n(e.marker.color))})}(e,t,r):(0,u.$y)(e)&&function(e,t,r){t??=e.color,null!=r?.override&&t&&(t.a=r.override),t&&(e.color=d(t,r?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,r?.add))}(e,t,r))}function f(e){for(let t of e)if("number"==typeof t)return t;return null}function h(e,t,r){for(let i=0;i<3;i++){let l=e[i];switch(l){case"symbol-value":{let e=r[i];return null==e?1:e/t[i]}case"proportional":break;default:if(null!=l&&t[i])return l/t[i]}}return null}function y(e,t,r,i){switch(e){case"proportional":return r*i;case"symbol-value":return t??r;default:return e}}async function m(e,t){if(e&&t){if((0,u.wk)(e))return async function(e,t){let i=e.symbolLayers;i&&await(0,l.jJ)(i,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){let r=t[2];"number"==typeof r&&(e.size=r)}(e,t);break;case"icon":case"line":case"text":!function(e,t){let r=f(t);null!=r&&(e.size=r)}(e,t);break;case"path":!function(e,t){let r=h(t,n.Un,[e.width,void 0,e.height]);null!=r&&(e.width=y(t[0],e.width,1,r),e.height=y(t[2],e.height,1,r))}(e,t);break;case"object":await async function(e,t){let{resourceSize:i,symbolSize:l}=await async function(e){let{computeObjectLayerResourceSize:t}=await r.e(5404).then(()=>r(95404)),i=await t(e,10),{width:l,height:n,depth:o}=e,a=[l,o,n],s=1;for(let e=0;e<3;e++){let t=a[e];if(null!=t){s=t/i[e];break}}for(let e=0;e<3;e++)a[e]??(a[e]=i[e]*s);return{resourceSize:i,symbolSize:a}}(e),n=h(t,i,l);null!=n&&(e.width=y(t[0],l[0],i[0],n),e.depth=y(t[1],l[1],i[1],n),e.height=y(t[2],l[2],i[2],n))}(e,t)}}(e,t))}(e,t);(0,u.$y)(e)&&function(e,t){let r=f(t);if(null!=r)switch(e.type){case"simple-marker":e.size=r;break;case"picture-marker":{let t=e.width/e.height;t>1?(e.width=r,e.height=r*t):(e.width=r*t,e.height=r);break}case"simple-line":e.width=r;break;case"text":e.font.size=r;break;case"simple-fill":case"picture-fill":break;case"cim":(0,o.X5)(e,r,{preserveOutlineWidth:!1})}}(e,t)}}function g(e,t,r){if(e&&null!=t)if((0,u.wk)(e)){let i=e.symbolLayers;i&&i.forEach(e=>{if("object"===e.type)switch(r){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,u.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,o.KU)(e,t,!0)}}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>s,w5:()=>u});var i=r(56507);const l=(0,r(13069).vD)(),n=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;let l=new URL(e).host,o=n.get(l);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function s(e,t,i=!1){if(!e||!t)return!0;let n=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(n)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(n,e,new i({sessionId:l,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,l,"Z3",0,n])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4805],{69540(e,t,r){var s=r(32198),i=r(69622),n=(r(44208),r(4718)),a=(r(53966),r(97768)),o=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),u=e=>{var t;let r=e,i=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){let t=(0,o.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");let r=t.metadata,s=t.store,i={},l=new Map;for(let t in r){let a=r[t],o=s?.originOf(t),h=a.clonable;if(a.readOnly||!1===h||7!==o&&0!==o&&5!==o&&4!==o)continue;let u=this[t],d=null;if("function"==typeof h)d=h(u,e);else if("reference"===h)d=u;else if(d=(0,n.TU)(u,e),null!=u&&null==d)continue;0===o?l.set(t,d):i[t]=d}let h=new(0,Object.getPrototypeOf(this).constructor)(i);if(l.size){let e=(0,o.oY)(h)?.store;if(e)for(let[t,r]of l)e.set(t,r,0)}return h}};return i=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],i),i},d=u(i.A);r.d(t,["OU",0,u,"Pw",0,d])},7762(e,t,r){var s,i=r(32198),n=r(98291),a=r(4576),o=r(65529),l=r(36563),h=r(4718),u=r(53966),d=r(93687),c=r(76030),f=r(78888),p=r(62788),m=r(10107),g=r(7695),_=r(64108),y=r(95488),v=r(12195);class x{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class b{constructor(e,t,r,s,i){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=i}}const I=new d.A(()=>new x,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function M(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function C(e){return e?e instanceof P?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function S(e){if(e?.length)return e[0]}function w(e,t,r,s){let i=Math.min(e.length-r,t.length-s),n=0;for(;n<i&&e[r+n]===t[s+n];)n++;return n}function A(e,t,r,s){t&&t.forEach((t,i,n)=>{e.push(t),A(e,r.call(s,t,i,n),r,s)})}const T=new Set,F=new Set,O=new Set,E=new Map;let B=0,P=s=class extends o.nJ{static ofType(e){if(!e)return s;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let r in e.typeMap){let s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,i.Cg)([(0,g.u)({Type:e,ensureType:"function"==typeof e?(0,f.dp)(e):(0,f.aq)(e)})],r.prototype,"itemType",void 0),r=(0,i.Cg)([(0,_.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new y.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:B++})}normalizeCtorArgs(e){return e?(0,a.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?u.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,p.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,C(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){let e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,p.gc)(this._observable),this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(1))return this;let r=this.getNextIndex(t);return this._splice(r,0,C(e)),this._emitAfterChanges(1),this}at(e){if((0,p.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];let e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,p.gc)(this._observable);let t=e.map(C);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let r=this._splice(0,this.length),s=r.length;for(let i=0;i<s;i++)e.call(t,r[i],i,r);this._emitAfterChanges(2)}destroyAll(){this.drain(M)}destroyMany(e){let t=this.removeMany(e);return t.forEach(M),t}every(e,t){return(0,p.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,p.gc)(this._observable);let r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,p.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,p.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,p.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,p.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,p.gc)(this._observable);let r=[];return A(r,this,e,t),new s(r)}forEach(e,t){return(0,p.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,p.gc)(this._observable),this._items[e]}getNextIndex(e){(0,p.gc)(this._observable);let t=this.length;return e??=t,e<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,p.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,p.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,p.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,p.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,p.gc)(this._observable);let r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,p.gc)(this._observable);let r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=S(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,p.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,p.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,p.gc)(this._observable);let r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,p.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,p.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;let t=S(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,p.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];let t=e instanceof s?e.toArray():e,r=this._items,i=[],n=t.length;for(let e=0;e<n;e++){let s=t[e],n=r.indexOf(s);if(n>-1){let s=1+w(t,r,e+1,n+1),a=this._splice(n,s);a&&a.length>0&&i.push.apply(i,a),e+=s-1}}return this._emitAfterChanges(2),i}reverse(){if((0,p.gc)(this._observable),this._emitBeforeChanges(4))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;let e=S(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,p.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,p.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,p.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){let t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,p.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;let s=(t?2:0)|!!r.length;if(this._emitBeforeChanges(s))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(s),i}toArray(){return(0,p.gc)(this._observable),this._items.slice()}toJSON(e){return(0,p.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,p.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,p.gc)(this._observable),this._items.toString()}unshift(...e){return(0,p.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let s,i,n=this._items,a=this.itemType;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,c._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(i=n.splice(e,t),this.hasEventListener("before-remove")){let t=I.acquire();t.target=this,t.cancellable=!0;for(let r=0,a=i.length;r<a;r++)s=i[r],t.reset(s),this.emit("before-remove",t),t.defaultPrevented&&(i.splice(r,1),n.splice(e,0,s),e+=1,--r,--a);I.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){let e=I.acquire();e.target=this,e.cancellable=!1;let t=i.length;for(let r=0;r<t;r++)e.reset(i[r]),this.emit("after-remove",e);I.release(e)}}if(r?.length){if(a){let e=[];for(let t of r){let r=a.ensureType(t);(null!=r||null==t)&&e.push(r)}r=e}let t=this.hasEventListener("before-add"),s=this.hasEventListener("after-add"),i=e===this.length;if(t||s){let a=I.acquire();a.target=this,a.cancellable=!0;let o=I.acquire();o.target=this,o.cancellable=!1;for(let l of r)t?(a.reset(l),this.emit("before-add",a),a.defaultPrevented||(i?n.push(l):n.splice(e++,0,l),this._length=n.length,s&&(o.reset(l),this.emit("after-add",o)))):(i?n.push(l):n.splice(e++,0,l),this._length=n.length,o.reset(l),this.emit("after-add",o));I.release(o),I.release(a)}else{if(i)for(let e of r)n.push(e);else n.splice(e,0,...r);this._length=n.length}}if((r?.length||i?.length)&&this._notifyChangeEvent(r,i),this.hasEventListener("after-splice")){let s=new b(this,r,i,e,t);this.emit("after-splice",s)}return i}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=I.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,I.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=I.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),I.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&=(this._timer.remove(),null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let e=t.changes;T.clear(),F.clear(),O.clear();for(let{added:t,removed:r}of e){if(t)if(0===O.size&&0===F.size)for(let e of t)T.add(e);else for(let e of t)F.has(e)?(O.add(e),F.delete(e)):O.has(e)||T.add(e);if(r)if(0===O.size&&0===T.size)for(let e of r)F.add(e);else for(let e of r)T.has(e)?T.delete(e):(O.delete(e),F.add(e))}let r=n.A.acquire();T.forEach(e=>{r.push(e)});let s=n.A.acquire();F.forEach(e=>{s.push(e)});let i=this._items,a=t.items,o=n.A.acquire();if(O.forEach(e=>{a.indexOf(e)!==i.indexOf(e)&&o.push(e)}),t.listeners&&(r.length||s.length||o.length)){let e={target:this,added:r,removed:s,moved:o},i=t.listeners.length;for(let r=0;r<i;r++){let s=t.listeners[r];s.removed||s.callback.call(this,e)}}n.A.release(r),n.A.release(s),n.A.release(o)}T.clear(),F.clear(),O.clear()}};(0,i.Cg)([(0,m.MZ)()],P.prototype,"_updating",void 0),(0,i.Cg)([(0,m.MZ)()],P.prototype,"_length",void 0),(0,i.Cg)([(0,m.MZ)()],P.prototype,"length",null),(0,i.Cg)([(0,m.MZ)()],P.prototype,"items",null),(0,i.Cg)([(0,m.MZ)({readOnly:!0})],P.prototype,"updating",null),P=s=(0,i.Cg)([(0,_.$)("esri.core.Collection")],P);const N=P;r.d(t,["A",0,N])},9775(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e=e=>e.values().next().value){this._peeker=e,this._observable=new i.I,this._items=new Set}get length(){return(0,s.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let e;for(e of this._items);return e}peek(){if(0!==this.length)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return(0,s.gc)(this._observable),this._items.has(e)}pop(){if(0===this.length)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(0===this.length)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let t=this.length;return this._items.forEach(t=>{e(t)||this._items.delete(t)}),t!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,s.gc)(this._observable),yield*this._items}}},563(e,t,r){r.d(t,{QueueProcessor:()=>h,SharedConcurrency:()=>d});var s=r(97768),i=r(17676),n=r(9775),a=r(32587),o=r(76030),l=r(44794);class h{constructor(e){this._schedule=null,this._deferreds=new a.A,this._controllers=new a.A,this._processingItems=new a.A,this._pausedSignal=(0,l.v)(!1),this.process=e.process,this.concurrency=e.concurrency,this.sharedConcurrency=e.sharedConcurrency??c,this._queue=new n.A(e.peeker)}destroy(){this.clear(),this._schedule=(0,s.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&!this.full}get full(){return this._processingItems.size>=this.concurrency||this.sharedConcurrency.full}abort(e){this._controllers.get(e)?.abort()}clear(){this._queue.clear();let e=Array.from(this._controllers.values());this._controllers.clear(),e.forEach(e=>e.abort()),this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((t,r)=>e(r))}_get(e){return this._deferreds.get(e)?.promise}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,t){let r=this._get(e);if(r)return r;let s=new AbortController,n=Promise.withResolvers(),a=t?(0,i.u7)(t,()=>s.abort()):null,o=(0,i.NY)(s.signal,()=>{let t=this._processingItems.get(e);t&&t.controller.abort(),l(),n.reject((0,i.NK)())}),l=()=>{o.remove(),a?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()};return this._deferreds.set(e,n),this._controllers.set(e,s),n.promise.then(l,l),this._queue.push(e),this._scheduleNext(),n.promise}last(){return this._queue.last()}reset(){let e=Array.from(this._processingItems.values());this.sharedConcurrency.current.value-=this._processingItems.size,this._processingItems.clear();for(let t of e)this._queue.push(t.item),t.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.has(e)&&(this._processingItems.delete(e),--this.sharedConcurrency.current.value)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,o._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency&&!this.sharedConcurrency.full;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&=(this._schedule.remove(),null)}_processResult(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(t))}_processError(e,t){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(t))}_canProcessFulfillment(e){return!(!this._deferreds.get(e.item)||this._processingItems.get(e.item)!==e)}_process(e){if(null==e)return;let t,r=new AbortController,s=new u(e,r);this._processingItems.set(e,s),this.sharedConcurrency.current.value+=1;try{t=this.process(e,r.signal)}catch(e){this._processError(s,e)}(0,i.$X)(t)?(s.promise=t,t.then(e=>this._processResult(s,e),e=>this._processError(s,e))):this._processResult(s,t)}}class u{constructor(e,t){this.item=e,this.controller=t,this.promise=null}}class d{constructor(e){this.limit=e,this.current=(0,l.v)(0)}get full(){return this.current.value>=this.limit}}const c=new d(1/0)},32587(e,t,r){r.d(t,{A:()=>n});var s=r(62788),i=r(95488);class n{constructor(e){this._observable=new i.I,this._notifyPending=!1,this._batchDepth=0,this._map=new Map(e)}get size(){return(0,s.gc)(this._observable),this._map.size}batch(e){try{this._batchDepth++,e()}finally{this._batchDepth--,this._notifyPending&&0===this._batchDepth&&(this._notifyPending=!1,this._notify())}}clear(){this._map.size>0&&(this._map.clear(),this._notify())}delete(e){let t=this._map.delete(e);return t&&this._notify(),t}entries(){return(0,s.gc)(this._observable),this._map.entries()}forEach(e,t){(0,s.gc)(this._observable),this._map.forEach((r,s)=>e.call(t,r,s,this),t)}get(e){return(0,s.gc)(this._observable),this._map.get(e)}has(e){return(0,s.gc)(this._observable),this._map.has(e)}keys(){return(0,s.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._notify(),this}transformValues(e,t=this._map.keys()){this.batch(()=>{for(let r of t){if(!this._map.has(r))continue;let t=this._map.get(r),s=e(t,r);s!==t&&this.set(r,s)}})}values(){return(0,s.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,s.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}_notify(){this._batchDepth>0?this._notifyPending=!0:this._observable.notify()}}},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function a(){return n(1,1)}function o(){return n(-1,-1)}function l(){return n(1,0)}function h(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const u=a(),d=o(),c=l(),f=h();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:u,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:o,ones:a,unitX:l,unitY:h,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,u])},36708(e,t,r){r.d(t,{C_:()=>c,on:()=>d,wB:()=>l,z7:()=>h});var s=r(37955),i=r(36563),n=r(97768),a=r(17676),o=r(14012);function l(e,t,r={}){return u(e,t,r,f)}function h(e,t,r={}){return u(e,t,r,p)}function u(e,t,r={},s){let i=null,a=r.once?(e,r)=>{s(e)&&((0,n.xt)(i),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(i=(0,o.Cn)(e,a,r.sync,r.equals),r.initial){let t=e();a(t,t)}return i}function d(e,t,r,a={}){let o=null,h=null,u=null;function d(){o&&h&&(h.remove(),a.onListenerRemove?.(o),o=null,h=null)}function c(e){a.once&&a.once&&(0,n.xt)(u),r(e)}let f=l(e,(e,r)=>{d(),(0,s.wb)(e)&&(o=e,h=(0,s.on)(e,t,c),a.onListenerAdd?.(e))},{sync:a.sync,initial:!0});return u=(0,i.hA)(()=>{f.remove(),d()}),u}function c(e,t){return function(e,t,r){if((0,a.G4)(r))return Promise.reject((0,a.NK)());let s=e();if(t?.(s))return Promise.resolve(s);let o=null;function l(){o=(0,n.xt)(o)}return new Promise((s,n)=>{o=(0,i.vE)([(0,a.u7)(r,()=>{l(),n((0,a.NK)())}),u(e,e=>{l(),s(e)},{sync:!1,once:!0},t??f)])})}(e,p,t)}function f(e){return!0}function p(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},44794(e,t,r){r.d(t,{v:()=>o});var s=r(4718),i=r(62788),n=r(95488);class a{constructor(e,t){this._observable=new n.I,this._value=e,this._equalityFunction=t}get value(){return(0,i.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=s.gh){return new a(e,t)}},88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>h,rb:()=>u,t:()=>d});var s=r(97770),i=(r(98623),r(34747));const n=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,n="system"){if("unknown"===r)return e;let a=new i.oh((0,s.wj)(n)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){let s=e.getTime(),i=d(t,r,"milliseconds");return new Date(s+i)}function h(e,t,r="system"){let{unit:n}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,s.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),h=e=>e-e%a;switch(n){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{let e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{let e=l.startOf("year"),t=("decades"===n?10:"centuries"===n?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function u(e){let t=n.exec(e);if(!t)return null;let{hh:r,mm:s,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(s)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function d(e,t,r){return 0===e?0:e*a[t]/a[r]}},87992(e,t,r){r.d(t,{JR:()=>C,ME:()=>b,MY:()=>w,NO:()=>x,Nh:()=>M,V2:()=>E,_s:()=>B,e6:()=>N,gh:()=>I,jm:()=>S,tr:()=>D,uX:()=>m});var s=r(32198),i=(r(69397),r(16930)),n=r(19419),a=r(60408),o=r(21325),l=r(513),h=r(50954),u=r(79567),d=r(52006),c=r(49663),f=r(46068),p=r(92722);class m{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:i,vertexM:n,partCount:a,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:d,segmentCountArc:c,segmentCountBezier:f}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=i,this.vertexM=n,this.partCount=a,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=d,this.segmentCountArc=c,this.segmentCountBezier=f}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:i,segmentCountArc:n,segmentCountBezier:a}=this,o=E(e,t,r,s,i,this.hasCurves(),n,a);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:i}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,i),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new g(this):[][Symbol.iterator]()}}class g{constructor(e){this.geometry=e,this.value=new _(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class _{constructor(e){this.geometry=e,this.index=-1,this._readVertex=F(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new v(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=F(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],i=t[r++],n=t[r++];return{b:[this.end,[e,s],[i,n]]}}let s=t[r++],i=t[r++],n=t[r++],a=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===n)return{c:[this.end,[h,u]]};let d=2&s?0:1,c=1&s?0:1;return{a:[this.end,[o,l],d,c,a,i,n]}}}function x(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,n.Ie)(),(0,s.mS)(r,new A(e,["vertexZ","vertexM","spatialReference"]),!1),(0,n.bx)(t,function(e){let t,{vertexCount:r,vertexXY:i,vertexZ:a,vertexM:o}=e,l=T(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(e,["vertexZ","vertexM"]),!1);let i=(0,n.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(i,e,r),e=(0,d.yP)(r)}let[a,o,h,c]=i;t={xmin:a,ymin:o,xmax:h,ymax:c,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,n,a;e=s=1/0,n=a=-1/0;for(let t=0;t<r;++t){let r=i[2*t],o=i[2*t+1];e=Math.min(e,r),n=Math.max(n,r),s=Math.min(s,o),a=Math.max(a,o)}t={xmin:e,ymin:s,xmax:n,ymax:a,spatialReference:l}}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function b(e){let t,r,s;if((0,a.fT)(e)){s="point";let{x:i,y:n,z:a,m:o}=e,l=[i,n];null!=a&&l.push(a),null!=o&&l.push(o),r=[[l]],t=1}else(0,a.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,a.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,O(t[0],(0,d.yP)(t.at(-1)))&&--e),e),0));let i=E(s,t,s.includes("point")?0:r.length,(0,a.Pv)(e),(0,a.W0)(e),(0,d.Ed)(e)),{hasZ:n,hasM:o,vertexXY:l,vertexZ:h,vertexM:u}=i;function c(e){l[2*p]=e[0],l[2*p+1]=e[1],n&&(h[p]=e[2]),o&&(u[p]=e[f]),++p}i.spatialReference=e.spatialReference??void 0;let f=i.hasZ?3:2,p=0;if(!i.isMultipart()){if(!n&&!o){for(let[e,t]of r[0])l[2*p]=e,l[2*p+1]=t,++p;return i}for(let e of r[0])c(e);return i}let m="polygon"===s,{partOffsets:g}=i,_=0;if(!(0,d.Ed)(e)){for(let e of r){if(g[_++]=p,0===e.length)continue;let t=e.length;if(m&&O(e[0],e.at(-1))&&--t,n||o)for(let r=0;r<t;++r)c(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];l[2*p]=t,l[2*p+1]=s,++p}}return g[_]=p,i}function y(e){let t=v+e;if(t<=(i.segmentParams?.length??0))return;let r=t*k;r=20*Math.ceil(r/20);let s=i.segmentParams;i.segmentParams=new Float64Array(r),null!=s&&i.segmentParams.set(s)}let v=0;for(let e of r){if(i.partOffsets[_++]=p,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];c(r);let n=p-1;(0,d.wY)(s)?(y(10),++i.segmentCountArc,v=B(r,s,i,n,v),r=s.a[0]):(0,d.DA)(s)?(y(10),++i.segmentCountArc,v=P(r,s,i,n,v),r=s.a[0]):(0,d.aO)(s)?(y(10),++i.segmentCountArc,v=N(r,s,i,n,v),r=s.c[0]):(0,d.n1)(s)?(y(4),++i.segmentCountBezier,v=D(0,s,i,n,v),r=s.b[0]):r=s}m&&O(t,r)||c(r)}return i.partOffsets[_]=p,i}function I(e){let t=F(e),{vertexCount:r,partCount:s,hasZ:i,hasM:n}=e,a=T(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:a}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:a,hasZ:i,hasM:n}}if(!e.hasCurves()){let r=[];for(let i=0;i<s;++i){let s=!!(1&e.partFlags[i]),n=e.partOffsets[i+1],a=[];for(;o<n;)a.push(t(o++));s&&a.length>0&&a.push([...a[0]]),r.push(a)}return"polygon"===e.type?{rings:r,hasZ:i,hasM:n,spatialReference:a}:{paths:r,hasZ:i,hasM:n,spatialReference:a}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:i,hasM:n,spatialReference:a}:{paths:[],curvePaths:l,hasZ:i,hasM:n,spatialReference:a}}function M(e,{lengths:t,coords:r,hasZ:s,hasM:i},n){let a=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?a:0);s??=!1,i??=!1;let h=E(e,l,a,s,i,!1,0,0);if(h.spatialReference=n??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),i&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(i),d=0,c=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[c],n=t+e-Number(o);h.partOffsets[++c]=n;for(let e=t;e<n;++e)h.vertexXY[2*e]=r[d++],h.vertexXY[2*e+1]=r[d++],s&&(h.vertexZ[e]=r[d++]),i&&(h.vertexM[e]=r[d++]);o&&(d+=u)}return h}function C({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:i,partCount:n,partOffsets:a,partFlags:o,hasZ:l,hasM:h}){let u=new p.A([],[],l,h);n=Math.max(n,1);let d=0;for(let e=0;e<n;++e){let n=a?.[e+1]??t,c=u.coords.length;for(let e=d;e<n;++e)u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(i[e]);if(o&&1&o[e]){let e=d;u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(i[e])}u.lengths.push((u.coords.length-c)/u.stride),d=n}return"point"===e&&(u.lengths.length=0),u}function S(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function w(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let i=e.getVCS();if(null==i)return{wkid:r,latestWkid:s,wkt:t};let n=i.isCustomWkid()?0:i.getOldID();if(n<=0)return{wkt:t};let a=e.getLatestVerticalID();return(a<=0||a===n)&&(a=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:n,latestVcsWkid:a}}(e.getSpatialReference()),e=e.getGeometry()),new m({...e.toFlatGeometry(),spatialReference:t})}class A{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function T({spatialReference:e}){return e instanceof i.A?e.toJSON():e}function F({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function O(e,t){return e.every((e,r)=>e===t[r])}function E(e,t,r,s,i,n,a,o){a??=0,o??=0;let l=new m({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:a,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),i&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),n&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),d=0;return l.vertexXY=new Float64Array(u,d,2*t),d+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,d,t),d+=l.vertexZ.byteLength),i&&(l.vertexM=new Float64Array(u,d,t),d+=l.vertexM.byteLength),n&&(l.segmentParams=new Float64Array(u,d,l.segmentParamCount),d+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,d,t),l.segmentIndices.fill(Z),d+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,d,r+1),d+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,d,r+1),d+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),n&&(l.segmentFlags=new Int8Array(u,d,t),l.segmentFlags.fill(1),d+=l.segmentFlags.byteLength),l}function B(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){r[n]=4,s[n]=a;let[o,[l,h],u,d,c,p,m]=t.a,g=4;d||(g|=1),u||(g|=2);let _=(0,f.SW)(e,t),[y,v]=(0,f.Uk)(_,.5);return i[a++]=g,i[a++]=p,i[a++]=m,i[a++]=c,i[a++]=l,i[a++]=h,i[a++]=_.u2-_.u1,i[a++]=_.u1,i[a++]=y,i[a++]=v,a}function P(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){r[n]=4,s[n]=a;let o=(0,c.io)(e,t);return R(o,4,...(0,l.mq)(o,.5),i,a)}function N(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:i},n,a){return r[n]=4,s[n]=a,R((0,h.pM)(e,t),0,...t.c[1],i,a)}function R(e,t,r,s,i,n){let{cx:a,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),i[n++]=t,i[n++]=u,i[n++]=1,i[n++]=0,i[n++]=a,i[n++]=o,i[n++]=h-l,i[n++]=l,i[n++]=r,i[n++]=s,n}function D(e,{b:[t,[r,s],[i,n]]},{segmentFlags:a,segmentIndices:o,segmentParams:l},h,u){return a[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=i,l[u++]=n,u}const k=1.61803,Z=-1},48526(e,t,r){r.d(t,{A:()=>g});var s,i=r(32198),n=r(4576),a=r(4718),o=r(91429),l=r(5443),h=r(91075),u=r(86738),d=r(16930),c=r(90634),f=r(47610),p=r(56993),m=r(43937);let g=s=class extends h.A{constructor(e){super(function(e){if(!e)return;let{points:t,hasM:r,hasZ:s,spatialReference:i}=e;switch(t??=[],t?.at(0)?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return i??=d.A.WGS84,{...e,hasM:r,hasZ:s,points:t,spatialReference:i}}(e)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=(0,c.ge)(this);return e?new l.A({...e,spatialReference:this.spatialReference}):null}writePoints(e,t){t.points=(0,a.o8)(this.points)}clone(){let{points:e,spatialReference:t,hasM:r,hasZ:i}=this;return new s({points:(0,a.o8)(e),spatialReference:t.clone(),hasM:r,hasZ:i})}equals(e){if(this===e)return!0;if(null==e)return!1;let t=this.spatialReference,r=e.spatialReference;return!(null!=t!=(null!=r)||null!=t&&null!=r&&!t.equals(r))&&(0,n.aI)(this.points,e.points,f.v6)}addPoint(e){return(0,p.h)(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},s=2;return this.hasZ&&(r.z=t[2],s=3),this.hasM&&(r.m=t[s]),new u.A(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new u.A(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)&&((0,p.h)(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points")),this}toJSON(e){return this.write({},e)}_validateInputs(e){return null!=e&&e>=0&&e<this.points.length}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],g.prototype,"writePoints",null),g=s=(0,i.Cg)([(0,o.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(e,t,r){r.d(t,{A:()=>p});var s,i=r(32198),n=r(4718),a=r(91429),o=r(5443),l=r(91075),h=r(86738),u=r(16930),d=r(90634),c=r(56993),f=r(43937);let p=s=class extends l.A{constructor(e){super(function(e){if(!e)return;let{paths:t,hasM:r,hasZ:s,spatialReference:i}=e;switch(t??=[],function(e){return"number"==typeof e[0]?.[0]}(t)&&(t=[t]),t[0]?.[0]?.length){case 4:s??=!0,r??=!0;break;case 3:s??=!0!==r,r??=!s;break;default:s??=!1,r??=!1}return i??=u.A.WGS84,{...e,hasM:r,hasZ:s,paths:t,spatialReference:i}}(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=(0,n.o8)(e)}get extent(){let e=(0,d.Z3)(this),{spatialReference:t}=this;return e?new o.A({...e,spatialReference:t}):null}writePaths(e,t){t.paths=(0,n.o8)(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(function(e){return!Array.isArray(e[0])}(e)){let s=[];for(let t=0,r=e.length;t<r;t++)s[t]=e[t].toArray();t[r]=s}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new s;return e.spatialReference=this.spatialReference,e.paths=(0,n.o8)(this.paths),e.curvePaths=(0,n.o8)(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],s=this.hasZ,i=this.hasM;return s&&!i?new h.A(r[0],r[1],r[2],void 0,this.spatialReference):i&&!s?new h.A(r[0],r[1],void 0,r[2],this.spatialReference):s&&i?new h.A(r[0],r[1],r[2],r[3],this.spatialReference):new h.A(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths")),this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,s=t.map(e=>new h.A(e,r));return this.notifyChange("paths"),s}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new h.A(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)&&((0,c.h)(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths")),this}_validateInputs(e,t,r=!1){if(null==e||e<0||e>=this.paths.length)return!1;if(null!=t){let s=this.paths[e];if(r&&(t<0||t>s.length)||!r&&(t<0||t>=s.length))return!1}return!0}toJSON(e){return this.write({},e)}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],p.prototype,"curvePaths",void 0),(0,i.Cg)([(0,f.K)("curvePaths")],p.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],p.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],p.prototype,"paths",void 0),(0,i.Cg)([(0,f.K)("paths")],p.prototype,"writePaths",null),p=s=(0,i.Cg)([(0,a.$K)("esri.geometry.Polyline")],p),p.prototype.toJSON.isDefaultToJSON=!0},60408(e,t,r){function s(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function i(e){return void 0!==e.points}function n(e){return void 0!==e.x&&void 0!==e.y}function a(e){return void 0!==e.paths||void 0!==e.curvePaths}function o(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function h(e){return e?n(e)?"esriGeometryPoint":a(e)?"esriGeometryPolyline":o(e)?"esriGeometryPolygon":s(e)?"esriGeometryEnvelope":i(e)?"esriGeometryMultipoint":null:null}function u(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function d(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>h,Bi:()=>o,Pv:()=>u,Rg:()=>a,U9:()=>i,W0:()=>d,ZC:()=>s,fT:()=>n,uW:()=>l})},65864(e,t,r){r.d(t,{rS:()=>u,xD:()=>c});var s=r(5443),i=r(91075),n=r(48526),a=r(86738),o=r(39829),l=r(82799),h=r(60408);function u(e){return null==e?null:e instanceof i.A?e:(0,h.fT)(e)?a.A.fromJSON(e):(0,h.Rg)(e)?l.A.fromJSON(e):(0,h.Bi)(e)?o.A.fromJSON(e):(0,h.U9)(e)?n.A.fromJSON(e):(0,h.ZC)(e)?s.A.fromJSON(e):null}const d={esriGeometryPoint:a.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:o.A};function c(e){return e&&d[e]||null}},97770(e,t,r){r.d(t,{Ey:()=>O,F8:()=>F,J2:()=>S,Yq:()=>A,_m:()=>w,iS:()=>T,wj:()=>E});var s=r(66552),i=r(73444),n=r(98623),a=r(34747);const o={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},c={year:"numeric",month:"short",day:"numeric"},f={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},m={...p,second:"numeric"},g={hourCycle:"h23"},_={...p,...g},y={...m,...g},v={"short-date":u,"short-date-short-time":{...u,...p},"short-date-short-time-24":{...u,..._},"short-date-long-time":{...u,...m},"short-date-long-time-24":{...u,...y},"short-date-le":u,"short-date-le-short-time":{...u,...p},"short-date-le-short-time-24":{...u,..._},"short-date-le-long-time":{...u,...m},"short-date-le-long-time-24":{...u,...y},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...p},"long-month-day-year-short-time-24":{...d,..._},"long-month-day-year-long-time":{...d,...m},"long-month-day-year-long-time-24":{...d,...y},"day-short-month-year":c,"day-short-month-year-short-time":{...c,...p},"day-short-month-year-short-time-24":{...c,..._},"day-short-month-year-long-time":{...c,...m},"day-short-month-year-long-time-24":{...c,...y},"long-date":f,"long-date-short-time":{...f,...p},"long-date-short-time-24":{...f,..._},"long-date-long-time":{...f,...m},"long-date-long-time-24":{...f,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":m},x=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),b={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function I(){let e=(0,i.lR)();return(e&&b[e])??(0,i.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(b.bs="sr-Latn-CS");let M=new WeakMap;const C=v["short-date-short-time"];function S(e){return v[e]}function w(e){let{dateStyle:t,timeStyle:r,hour12:s,year:i,month:n}=e,a={};return t?a.dateStyle=t:i&&(a.year=i,a.month=n||void 0),r&&!a.year&&(a.timeStyle=r,a.hour12="auto"===s?void 0:"always"===s),a}function A(e,t=C){return function(e){let t=M.get(e);if(!t){let r=I(),s=E(e.timeZone??"system"),i={...e,timeZone:s};t=new Intl.DateTimeFormat(r,i),M.set(e,t)}return t}(t).format(e)}function T(e,t=C){return A(new Date(e),{...t,...h,...l})}function F(e,t=C){return A(new Date(`1970-01-01T${e}Z`),{...t,...h,...o})}function O(e,t=C){let r=a.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return A(r.toJSDate(),t);let s=0===r.offset?"UTC":t.timeZone,i={...t,timeZone:s};return r.toLocaleString(i,{locale:I()})}function E(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,i.Ml)(()=>{M=new WeakMap}),r.d(t,["_v",0,x])},73444(e,t,r){r.d(t,{JK:()=>l,Ml:()=>g,QC:()=>d,lR:()=>u,oQ:()=>p});var s=r(36563);let i;r(44208);const n=globalThis.esriConfig?.locale,a=globalThis.document?.documentElement;function o(){let e=a?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function l(){return void 0===i&&(i=o()),i}const h=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return c(e)?.language}function d(e=l()){let t=c(e);return t?.language&&t?.extlang?e.replace(`${t.language}-`,""):e}function c(e=l()){return h.exec(e)?.groups}const f=[];function p(e){return f.push(e),(0,s.hA)(()=>{f.splice(f.indexOf(e),1)})}new Map;const m=[];function g(e){return m.push(e),(0,s.hA)(()=>m.splice(m.indexOf(e),1))}function _(){let e=o();i!==e&&([...m].forEach(t=>t(e)),i=e,[...f].forEach(t=>t(e)))}globalThis.addEventListener?.("languagechange",_),a&&new MutationObserver(()=>{_()}).observe(a,{attributeFilter:["lang"]})},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>u,e2:()=>c,f:()=>m});var s=r(44208),i=r(4718),n=r(99352),a=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let h=1;function u(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${d(t)} = null;`);for(let t in e)r+=`this${d(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${h++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function d(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const f={...n.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},p={...n.P,supportedStatistics:{...n.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function m(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?f:n.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?p:n.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},17754(e,t,r){r.d(t,{gE:()=>n,wY:()=>i,xb:()=>a});const s=2**32;function i(e){return Math.floor(e/s)%65536}function n(e){return e%s}function a(e,t){return e*s+t}},39357(e,t,r){r.d(t,{A:()=>o});var s,i=r(32198),n=r(25482),a=r(91429);let o=s=class extends n.o{constructor(e){super(e),this.name=null,this.code=null}clone(){return new s({name:this.name,code:this.code})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],o.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],o.prototype,"code",void 0),o=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.CodedValue")],o)},53177(e,t,r){r.d(t,{A:()=>u});var s,i=r(32198),n=r(4718),a=r(91429),o=r(39357),l=r(76357),h=r(93223);let u=class extends l.A{static{s=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new s({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,i.Cg)([(0,a.MZ)({type:[o.A],json:{write:{isRequired:!0}}})],u.prototype,"codedValues",void 0),(0,i.Cg)([(0,h.e)({codedValue:"coded-value"})],u.prototype,"type",void 0),u=s=(0,i.Cg)([(0,a.$K)("esri.layers.support.CodedValueDomain")],u)},76357(e,t,r){r.d(t,{A:()=>h});var s=r(32198),i=r(66552),n=r(25482),a=r(91429),o=r(93223);const l=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let h=class extends n.o{constructor(e){super(e),this.name=null,this.type=null}};(0,s.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,s.Cg)([(0,o.e)(l),(0,a.MZ)({json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),h=(0,s.Cg)([(0,a.$K)("esri.layers.support.Domain")],h)},20437(e,t,r){r.d(t,{A:()=>p});var s,i=r(32198),n=r(66552),a=r(25482),o=r(91429),l=r(78888),h=r(8631),u=r(98453),d=r(36005),c=r(93223);const f=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",currency:"currency",dateAndTime:"date-and-time",description:"description",emailAddress:"email-address",locationOrPlaceName:"location-or-place-name",marginOfError:"margin-of-error",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",phoneNumber:"phone-number",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier",url:"url"});let p=class extends a.o{static{s=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?f.fromJSON(r.fieldValueType):null}clone(){return new s({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],p.prototype,"defaultValue",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"description",void 0),(0,i.Cg)([(0,d.w)("description")],p.prototype,"readDescription",null),(0,i.Cg)([(0,o.MZ)({types:h.g,json:{read:{reader:h.r},write:!0}})],p.prototype,"domain",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"editable",void 0),(0,i.Cg)([(0,o.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],p.prototype,"length",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"nullable",void 0),(0,i.Cg)([(0,c.e)(u.m)],p.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"valueType",void 0),(0,i.Cg)([(0,d.w)("valueType",["description"])],p.prototype,"readValueType",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{read:!1}})],p.prototype,"visible",void 0),p=s=(0,i.Cg)([(0,o.$K)("esri.layers.support.Field")],p)},95466(e,t,r){r.d(t,{A:()=>h});var s=r(49186),i=r(53966),n=r(12195),a=r(30524),o=r(98623),l=r(56400);class h{static fromJSON(e){return new h(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new h(e.fields??[],d(e))}static fromLayerJSON(e){return new h(e.fields??[],d(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;let r=[];for(let e of this.fields){let t=e?.name,s=(0,a.GZ)(t);if(t&&s){let i=(0,a.NF)(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(s,e),r.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),!(0,a.te)(e)&&!(0,a.Xz)(e)&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){return(0,a.Vb)({fieldName:e,fieldsMap:this._fieldsMap,normalizedFieldsMap:this._normalizedFieldsMap})}getTimeZone(e){let t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(i.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new s.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),"UTC"):u.has(t.type)?o.L:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,n.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}const u=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function d(e){let t=new Map;if(!e.fields)return t;let r=!0===e.datesInUnknownTimezone,{timeInfo:s,editFieldsInfo:i}=e,n=(s?"startField"in s?s.startField:s.startTimeField:"")??"",h=(s?"endField"in s?s.endField:s.endTimeField:"")??"",d=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.ZS)(e.dateFieldsTimeReference):null,c=i?function(e){return"timeZone"in e}(i)?i.timeZone??d:i.dateFieldsTimeReference?(0,l.ZS)(i.dateFieldsTimeReference):d??"UTC":null,f=s?function(e){return"timeZone"in e}(s)?s.timeZone??d:s.timeReference?(0,l.ZS)(s.timeReference):d:null,p=new Map([[(0,a.NF)(i?.creationDateField??""),c],[(0,a.NF)(i?.editDateField??""),c],[(0,a.NF)(n),f],[(0,a.NF)(h),f]]);for(let{name:s,type:i}of e.fields)if(u.has(i))t.set(s,o.L);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(s,null);else if(r)t.set(s,o.L);else{let e=p.get((0,a.NF)(s??""))??d;t.set(s,e)}return t}},41628(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),n=r(91429),a=r(76357),o=r(93223);let l=class extends a.A{static{s=this}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.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>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]},isRequired:!0}}})],l.prototype,"maxValue",void 0),(0,i.Cg)([(0,n.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],l.prototype,"minValue",void 0),(0,i.Cg)([(0,o.e)({range:"range"})],l.prototype,"type",void 0),l=s=(0,i.Cg)([(0,n.$K)("esri.layers.support.RangeDomain")],l)},8631(e,t,r){r.d(t,{r:()=>c,g:()=>d});var s,i=r(53177),n=r(76357),a=r(32198),o=r(91429),l=r(93223);let h=class extends n.A{static{s=this}constructor(e){super(e),this.type="inherited"}clone(){return new s}};(0,a.Cg)([(0,l.e)({inherited:"inherited"})],h.prototype,"type",void 0),h=s=(0,a.Cg)([(0,o.$K)("esri.layers.support.InheritedDomain")],h);var u=r(41628);const d={key:"type",base:n.A,typeMap:{range:u.A,"coded-value":i.A,inherited:h}};function c(e){if(!e?.type)return null;switch(e.type){case"range":return u.A.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return h.fromJSON(e)}return null}},98453(e,t,r){const s=new(r(66552).J)({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",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"});r.d(t,["m",0,s])},50115(e,t,r){r.d(t,{OP:()=>a,V4:()=>i,rZ:()=>n}),r(44208);var s=r(53966);function i(e,t,r){if(null==e)return null;let i=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;try{return e.evaluate(i,r)}catch(e){return s.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",e),null}}function n(e){return null==e||e===1/0||e===-1/0||"number"==typeof e&&isNaN(e)}function a(e,t,r,s){if(null==e)return s??null;let i=t.readArcadeFeature();t.contextTimeZone=r.$view?.timeZone;let a=e.evaluate(i,r);return n(a)?s??null:a}},30661(e,t,r){r.d(t,{Z:()=>n});var s=r(43334),i=r(8446);class n{static{this.Shared=new n}getObjectId(e){return e.getObjectId()}getAttributes(e){return e.readAttributes()}getAttribute(e,t){return e.readAttribute(t)}getAttributeAsTimestamp(e,t){return e.readAttributeAsTimestamp(t)}cloneWithGeometry(e,t,r){let n=e.readAttributes(),a=new s.Om(t,n,null,e.getObjectId(),e.getDisplayId()),o=i.K.fromOptimizedFeatures([a],e.metadata);return o.setIndex(0),o}getGeometry(e){return e.readGeometryWorldSpace()}getCentroid(e,t){return e.readCentroidForDisplay()}}},63664(e,t,r){r.d(t,{B:()=>s});class s{constructor(e){this._statistics=e}get statistics(){return this._statistics}}},38976(e,t,r){r.d(t,{n:()=>s});class s{constructor(e){this.options=e}get hash(){return this.options.hash}}},92029(e,t,r){r.d(t,{o:()=>n}),r(69397);var s=r(50115);const i=Math.PI/180;class n{static create(e){return new n(e.map(e=>function(e){switch(e.statisticType){case"min":return new o(e);case"max":return new l(e);case"avg":return new u(e);case"avg_angle":return new d(e);case"sum":case"count":return new h(e);case"mode":return new c(e)}}(e)))}constructor(e){this._statistics=e}static get estimatedMemory(){return 160}values(){return this._statistics.values()}insert(e,t){for(let r of this._statistics)r.insert(e,t)}merge(e){for(let t=0;t<this._statistics.length;t++){let r=this._statistics[t],s=e._statistics[t];if(r.field.name!==s.field.name)throw Error("InternalError: Tried to merge incompatible statistics");r.merge(s)}}clone(){return new n(this._statistics.map(e=>e.clone()))}}class a{constructor(e){this.field=e}insert(e,t){if(!this.field.computed)return;let r=this.field.computed.read(e,t);(0,s.rZ)(r)||this._insertValue(r)}}class o extends a{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(e){this.value=Math.min(this.value,e)}merge(e){this.value=Math.min(this.value,e.value)}clone(){let e=new o(this.field);return e.value=this.value,e}}class l extends a{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(e){this.value=Math.max(this.value,e)}merge(e){this.value=Math.max(this.value,e.value)}clone(){let e=new l(this.field);return e.value=this.value,e}}class h extends a{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(e){this.value+=e}merge(e){this.value+=e.value}clone(){let e=new h(this.field);return e.value=this.value,e}}class u extends a{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(e){this._total+=e,this._count+=1}merge(e){this._total+=e._total,this._count+=e._count}clone(){let e=new u(this.field);return e._total=this._total,e._count=this._count,e}}class d extends a{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){let e=this._x/this._count,t=this._y/this._count;return 180/Math.PI*Math.atan2(t,e)}_insertValue(e){this._x+=Math.cos(e*i),this._y+=Math.sin(e*i),this._count+=1}merge(e){this._x+=e._x,this._y+=e._y,this._count+=e._count}clone(){let e=new d(this.field);return e._x=this._x,e._y=this._y,e._count=this._count,e}}class c extends a{constructor(){super(...arguments),this._frequencies=new Map}get value(){let e,t=0;for(let[r,s]of this._frequencies.entries())s>t&&(t=s,e=r);return e}_insertValue(e){let t=this._frequencies.get(e);null==t?this._frequencies.set(e,1):this._frequencies.set(e,t+1)}merge(e){for(let[t,r]of e._frequencies.entries()){let e=this._frequencies.get(t);null==e?this._frequencies.set(t,r):this._frequencies.set(t,e+r)}}clone(){let e=new c(this.field);return e._frequencies=new Map(this._frequencies),e}}},75538(e,t,r){r.d(t,{L:()=>o});var s=r(90708),i=r(92722),n=r(63664),a=r(92029);class o extends n.B{static createId(e,t){return`${e}.${t}`}static create(e,t,r,s){return new o(e,t,a.o.create(r),s)}constructor(e,t,r,s){super(r),this.gridX=e,this.gridY=t,this._worldUnitsPerCell=s,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=[new Set]}get id(){return o.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds[0].values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}get usedMemory(){return 48}clone(){let e=new o(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._firstFeatureAttributes=this._firstFeatureAttributes,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t){let r=0,s=0;if("esriGeometryPoint"===e.geometryType)r=e.readXWorldSpace(),s=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[r,s]=t.coords}this._firstFeatureAttributes=0===this._count?e.readAttributes():null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=s,this._statistics.insert(e,t),this._objectIds[0].add(e.getObjectId())}merge(e){0!==e._count&&(this._count+=e._count,this._firstFeatureAttributes=e._firstFeatureAttributes,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroidX(e){return null==e?this.centroidXWorld:(0,s.IE)(e,this.centroidXWorld)}getCentroidY(e){return null==e?this.centroidYWorld:(0,s.B2)(e,this.centroidYWorld)}getGeometry(e,t){let r=this.gridX*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell,a=new i.A([4],[r,n,r+this._worldUnitsPerCell,n,r+this._worldUnitsPerCell,n+this._worldUnitsPerCell,r,n+this._worldUnitsPerCell]);return null==t?a:(0,s.Nl)(a,"esriGeometryPolygon",t)}getCentroid(e){let t=new i.A([],[this.centroidXWorld,this.centroidYWorld]);return null==e?t:(0,s.Nl)(t,"esriGeometryPoint",e)}getGeometricCentroid(e,t){let r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,n=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,a=new i.A([],[r,n]);return null==t?a:(0,s.Nl)(a,"esriGeometryPoint",t)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return null==this._firstFeatureAttributes?e:{...e,...this._firstFeatureAttributes}}}},24506(e,t,r){r.d(t,{H:()=>u,p:()=>h});var s=r(91869),i=r(86211),n=r(38976),a=r(75538);class o{static createId(e,t){return`${e}.${t}`}constructor(e,t){this.gridX=e,this.gridY=t,this._indices=[],this.id=o.createId(e,t)}push(e){this._indices.push(e)}}var l=r(9012);function h(e,t){return 39.37*(0,i.GA)(e)*96/t}class u extends n.n{constructor(e,t){super(e),this._reader=t,this._cells=new Map,this._pixelsPerMapUnit=h(e.inner.spatialReference,e.inner.scale),this._insert(this._reader)}get _worldUnitsPerCell(){return 1*this.options.inner.cellSize/this._pixelsPerMapUnit}get usedMemory(){return 0}put(e,t){let{arcadeContextInfo:r,scale:i,fields:n}=this.options.inner,o=(0,l.N)(i,r);this._cells.forEach(r=>{let i=null;for(let l of r._indices){this._reader.setIndex(l);let h=this._reader.getObjectId();t.has(h)||(i??=(0,s.tE)(e,r.id,()=>a.L.create(r.gridX,r.gridY,n,this._worldUnitsPerCell)),i.insert(this._reader,o),t.add(h))}})}putBounded(e,t,r,i){let{arcadeContextInfo:n,scale:o,cellSize:h,fields:u}=this.options.inner,d=(0,l.N)(o,n),[c,f,p,m]=[r.xmin,r.ymin,r.xmax,r.ymax],g=Math.floor(c*this._pixelsPerMapUnit/h),_=Math.floor(f*this._pixelsPerMapUnit/h),y=Math.ceil(p*this._pixelsPerMapUnit/h),v=Math.ceil(m*this._pixelsPerMapUnit/h);for(let r=_;r<=v;r++)for(let i=g;i<=y;i++){let n=a.L.createId(i,r),o=this._cells.get(n);if(!o)continue;let l=null;for(let n of o._indices){this._reader.setIndex(n);let h=this._reader.getObjectId();t.has(h)||(l??=(0,s.tE)(e,o.id,()=>a.L.create(i,r,u,this._worldUnitsPerCell)),l.insert(this._reader,d),t.add(h))}}}_insert(e){let{featureFilter:t,sqlOptions:r,cellSize:s}=this.options.inner,i=e=>{let t=0,r=0;if("esriGeometryPoint"===e.geometryType)t=e.readXWorldSpace(),r=e.readYWorldSpace();else{let s=e.readCentroidWorldSpace();if(null==s)return;[t,r]=s.coords}let i=t*this._pixelsPerMapUnit,n=r*this._pixelsPerMapUnit,a=Math.floor(i/s),o=Math.floor(n/s);this._getCellOrCreate(a,o).push(e.getIndex())};if(null!==t)t.forEachMatch(e,r,i);else{let t=e.getCursor();for(;t.next();)i(t)}}_getCellOrCreate(e,t){let r=o.createId(e,t),s=this._cells.get(r);return s||(s=new o(e,t),this._cells.set(r,s)),s}}},40056(e,t,r){r.d(t,{K:()=>s});class s{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this.reader.invalidateAggregateIndices()}get usedMemory(){return this.reader.underlyingMemory}getObjectIds(){let e=this.reader.getCursor(),t=[];for(;e.next();)t.push(e.getObjectId());return t}registerOverrides(e){this.reader.registerOverrides(e),this.invalidate()}}},28923(e,t,r){r.d(t,{j:()=>i});var s=r(40056);class i extends s.K{constructor(e,t,r,s,i=0){super(),this._reader=e,this._queryJSON=t,this._page=r,this._end=s,this.fileIndex=i,this.chunkId=`${this.fileIndex}.${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get lodInfo(){return null}getTileReader(e){let t=this.reader.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}},5162(e,t,r){r.d(t,{HJ:()=>a,Im:()=>u,KN:()=>l});var s=r(39516),i=r(40056),n=r(8446);class a{static async create(e){let{metadata:t,definitionExpression:r}=e,i=r?await(0,s.GP)(r,t.fieldsIndex):null;return new a(t,i,r)}constructor(e,t,r){this.metadata=e,this._clause=t,this._definitionExpression=r}get hash(){return this._definitionExpression}testFeature(e){return null==this._clause||this._clause.testFeature(e)}}class o{constructor(){this.modified=new Map,this.removed=new Set}modify(e){this.modified.set(e.objectId,e),this.removed.has(e.objectId)&&this.removed.delete(e.objectId)}remove(e){this.modified.delete(e),this.removed.add(e)}get isEmpty(){return 0===this.modified.size&&0===this.removed.size}applyWhereClause(e){let t=new o;for(let[r,s]of this.modified)e.testFeature(s)?t.modified.set(r,s):t.removed.add(s.objectId);for(let e of this.removed)t.removed.add(e);return t}}class l extends i.K{constructor(e){super(),this._reader=e,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(e,t){let r=n.K.fromOptimizedFeatures(e,t);return new l(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get lodInfo(){return null}getTileReader(e){if(!this._reader.getSize())return null;let t=this.reader.queryFeaturesInBounds(e.bounds);return t.setTransformForDisplay(e.transform),t}}class h{constructor(e,t){this.inner=e,this.isWeak=t,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(e){this._parameters=e,this._overrides=new Map,this._update=new o,this._lastCleanup=0}update(e){this._parameters=e}hasOverride(e){return this._overrides.has(e)}onChunkInsert(e){if(this._overrides.size){let t=e.reader.getCursor();for(;t.next();){let e=t.getObjectId(),r=this._overrides.get(e);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){let e=t.readOptimizedFeatureWorldSpace();e.attributes={...r.inner?.attributes??{},...e.attributes},r.inner=e,this._update.modify(e),this.invalidate()}}}e.registerOverrides(this)}apply(e,t){let{updateWeak:r,removeWeak:s,update:i,remove:n,release:a}=e.commands;this.invalidate();for(let e of r){let t=new h(e,!0),r=this._overrides.get(e.objectId);r?.isStrong?r.lastWeak=t:(this._overrides.set(e.objectId,t),this._update.modify(e))}for(let e of i){let t=new h(e,!1),r=this._overrides.get(e.objectId);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e.objectId,t),this._update.modify(e)}for(let e of s){let t=new h(null,!0),r=this._overrides.get(e);r?.isStrong?r.lastWeak=t:(this._overrides.set(e,t),this._update.remove(e))}for(let e of n){let t=new h(null,!1),r=this._overrides.get(e);t.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(e,t),this._update.remove(e)}if(a.length){let e=new Set;for(let t of a){let r=this._overrides.get(t);r?.lastWeak?(this._overrides.set(t,r.lastWeak),null==r.lastWeak.inner?this._update.remove(t):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(t),e.add(t))}t.forEachUnsafe(t=>{let r=t.getObjectId();e.has(r)&&(this._update.modify(t.readOptimizedFeatureWorldSpace()),e.delete(r))});for(let t of e.values())this._update.remove(t)}}clearWeakOverrides(){for(let[e,t]of this._overrides.entries())t.isWeak&&this._overrides.delete(e);this.invalidate()}cleanup(e){if(this._overrides.size<1e4)return;let t=performance.now();if(t-this._lastCleanup<1e3)return;this._lastCleanup=t;let r=this._getWeakDeletions();if(!(r.size<1e4)){for(let t of e){let e=t.reader.withoutOverrides().getCursor();for(;e.next();){let t=e.getObjectId();r.delete(t)}}for(let e of r)this._overrides.delete(e);r.size&&this.invalidate()}}takeOverrideUpdate(){let e=this._update;return e.isEmpty?null:(this._update=new o,e.applyWhereClause(this._parameters))}asChunk(){let e=this._parameters;if(this._lastOverrideParametersHash!==e.hash&&(this._lastOverrideParametersHash=e.hash,this._chunk=null),!this._chunk){let t=[];for(let r of this._overrides.values())null!=r.inner&&e.testFeature(r.inner)&&t.push(r.inner);this._chunk=l.fromFeatures(t,e.metadata)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(e,t,r){for(let[s,i]of this._overrides.entries())if(i.isWeak&&null!=i.inner){let n=i.inner.attributes[r];n&&t.has(n)&&!e.has(n)&&e.set(n,s)}else if(null!=i.lastWeak&&null!=i.lastWeak.inner){let n=i.lastWeak.inner.attributes[r];n&&t.has(n)&&!e.has(n)&&e.set(n,s)}}_getWeakDeletions(){let e=new Set;for(let[t,r]of this._overrides.entries())r.isWeak&&null==r.inner&&e.add(t);return e}}},44320(e,t,r){r.d(t,{I:()=>l});var s=r(65529),i=r(44208),n=r(70328),a=r(30661),o=r(5162);class l{constructor(){this._chunks=new Map,this._chunksToRemove=[],this.events=new s.bk,this.featureAdapter=new a.Z}destroy(){this.clear()}clear(){for(let e of this._chunks.values())this._chunksToRemove.push(e);this._chunks.clear(),this._overrides?.clearWeakOverrides()}get usedMemory(){let e=0;for(let t of this._chunks.values())e+=t.usedMemory;return e}async update(e){if(this._overrides){let t=await o.HJ.create(e);this._overrides.update(t)}let t=this._postQueryFilter?.hash!==e.postQueryFilter?.hash;this._postQueryFilter=e.postQueryFilter;for(let e of this.insertedChunks())e.reader.applyPostQueryFilter(this._postQueryFilter),t&&e.invalidate();this._schema=e}*chunks(){this._overrides&&(yield this._overrides.asChunk()),yield*this._chunks.values()}insertedChunks(){return this._chunks.values()}insert(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.insert`),this._overrides?.onChunkInsert(e),this._chunks.set(e.chunkId,e),this._postQueryFilter&&(e.reader.applyPostQueryFilter(this._postQueryFilter),e.invalidate()),this.events.emit("changed")}remove(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e.chunkId}] SourceChunkStore.remove`),this._chunks.delete(e.chunkId),this._chunksToRemove.push(e)}removeById(e){(0,i.A)("esri-2d-update-debug")&&console.debug(`Chunk[${e}] SourceChunkStore.remove`);let t=this._chunks.get(e);this._chunks.delete(e),t&&this._chunksToRemove.push(t)}cleanup(){let e=this._chunksToRemove;return this._chunksToRemove=[],this._overrides?.cleanup(this._chunks.values()),e}async applyOverride(e){if(null==this._overrides){let e=await o.HJ.create(this._schema);this._overrides=new o.Im(e);for(let e of this._chunks.values())this._overrides.onChunkInsert(e)}this._overrides.apply(e,this),this.events.emit("changed");for(let e of this._chunks.values())e.invalidate()}takeOverrideUpdate(){return this._overrides?.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(e){let t=new Set;for(let r of this.chunks()){let s=r.reader.getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s.copy()),t.add(r))}}}forEachUnsafe(e){let t=new Set;for(let r of this.chunks()){let s=r.reader.getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s),t.add(r))}}}mapObjectIdsFromGlobalIds(e,t){let r=new Map,s=new Set(e);return this._overrides?.putWeakObjectIdsFromGlobalIds(r,s,t),this._forEachUnsafeIgnoreOverrides(e=>{let i=e.readAttribute(t);if(i&&s.has(i)&&!r.has(i)){let t=e.getObjectId();r.set(i,t)}}),r}forEachInBounds(e,t){let r=new Set;for(let s of this.chunks()){let i=s.reader.queryFeaturesInBounds(e);for(;i.next();){let e=i.getObjectId();r.has(e)||(t(i.copy()),r.add(e))}}}forEachBounds(e,t){let r=(0,n.vt)();for(let s of e)s.getBounds(r)&&t(r)}_forEachUnsafeIgnoreOverrides(e){let t=new Set;for(let r of this._chunks.values()){let s=r.reader.withoutOverrides().getCursor();for(;s.next();){let r=s.getObjectId();t.has(r)||(e(s),t.add(r))}}}}},35258(e,t,r){r.d(t,{i:()=>n});var s=r(16930),i=r(95466);class n{static minimal(e,t,r=[],s=!1,a=!1){return new n({geometryType:e,hasZ:s,hasM:a,fieldsIndex:new i.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:t},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null,layerType:void 0})}static createFeature(e){return new n(e)}constructor(e){let t;this._options=e,this._fieldsIndex=i.A.fromJSON(e.fieldsIndex),e.spatialReference&&(this._spatialReference=e.spatialReference instanceof s.A?e.spatialReference:s.A.fromJSON(e.spatialReference)),e.outSpatialReference&&(this._outSpatialReference=e.outSpatialReference instanceof s.A?e.outSpatialReference:s.A.fromJSON(e.outSpatialReference)),e.attributeSpatialReference&&(this._attributeSpatialReference=e.attributeSpatialReference instanceof s.A?e.attributeSpatialReference:s.A.fromJSON(e.attributeSpatialReference)),"object-id"===e.featureIdInfo.type&&(t=e.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:t,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get hasZ(){return this._options.hasZ}get hasM(){return this._options.hasM}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get attributeSpatialReference(){return this._attributeSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}get layerType(){return this._options.layerType}weakCloneWithAdditionalFields(e){let t=this._fieldsIndex.toJSON();return t.fields.push(...e),new n({fieldsIndex:t,geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,attributeSpatialReference:this.attributeSpatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}weakCloneWithResolvedSpatialReference(){return new n({fieldsIndex:this._fieldsIndex.toJSON(),geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.outSpatialReference,outSpatialReference:this.outSpatialReference,attributeSpatialReference:this.attributeSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types,layerType:this._options.layerType})}}},97633(e,t,r){r.d(t,{P:()=>i}),r(69397);var s=r(73250);class i{constructor(e){this._valid=s.y.create(e),this._data=Array(e)}get usedMemory(){let e=this._valid.usedMemory;if(this._data.length>0){let t="string"==typeof this._data[0]?64:16;e+=this._data.length*t}return e}has(e){return this._valid.has(e)}set(e,t){this._valid.set(e),this._data[e]=t}get(e){return this._data[e]}}},5508(e,t,r){r.d(t,{Y:()=>ge,e:()=>_e});var s=r(66131),i=r(54639),n=r(87992),a=r(65864),o=r(90708),l=r(92722);class h{constructor(e,t,r,s){this._geometry=e,this._type=t,this._hasZ=r,this._hasM=s}toJsonGeometry(){return(0,o.zv)(l.A.fromJSON(this._geometry),function(e){switch(e){case"point":return"esriGeometryPoint";case"multipoint":return"esriGeometryMultipoint";case"polyline":return"esriGeometryPolyline";case"polygon":return"esriGeometryPolygon";case"extent":return"esriGeometryEnvelope";default:throw Error(`Unexpected type: ${e}`)}}(this._type),this._hasZ,this._hasM)}toAccessorGeometry(e){let t=this.toJsonGeometry();return t.spatialReference=e,(0,a.rS)(t)}toGxGeometry(e){return e.fromFlatGeometry((0,n.Nh)(this._type,this._geometry,null))}}var u=r(44208),d=r(69397),c=r(11006);function f(e,t){if(!(this instanceof f))return new f(e,t);this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this.toBBox=t:this._initFormat(t)),this.clear()}function p(e,t,r){if(!r)return t.indexOf(e);for(var s=0;s<t.length;s++)if(r(e,t[s]))return s;return-1}function m(e,t){g(e,0,e.children.length,t,e)}function g(e,t,r,s,i){i||=w(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var n,a=t;a<r;a++)n=e.children[a],_(i,e.leaf?s(n):n);return i}function _(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function y(e,t){return e.minX-t.minX}function v(e,t){return e.minY-t.minY}function x(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function b(e){return e.maxX-e.minX+(e.maxY-e.minY)}function I(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function M(e,t){var r=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),n=Math.min(e.maxY,t.maxY);return Math.max(0,i-r)*Math.max(0,n-s)}function C(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function S(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function w(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function A(e,t,r,s,i){for(var n,a=[t,r];a.length;)(r=a.pop())-(t=a.pop())<=s||(n=t+Math.ceil((r-t)/s/2)*s,(0,c.q)(e,n,t,r,i),a.push(t,n,n,r))}f.prototype={all:function(){return this._all(this.data,[])},search:function(e){var t=this.data,r=[],s=this.toBBox;if(!S(e,t))return r;for(var i,n,a,o,l=[];t;){for(i=0,n=t.children.length;i<n;i++)a=t.children[i],S(e,o=t.leaf?s(a):a)&&(t.leaf?r.push(a):C(e,o)?this._all(a,r):l.push(a));t=l.pop()}return r},collides:function(e){var t=this.data,r=this.toBBox;if(!S(e,t))return!1;for(var s,i,n,a,o=[];t;){for(s=0,i=t.children.length;s<i;s++)if(n=t.children[s],S(e,a=t.leaf?r(n):n)){if(t.leaf||C(e,a))return!0;o.push(n)}t=o.pop()}return!1},load:function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0,r=e.length;t<r;t++)this.insert(e[t]);return this}var s=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===s.height)this._splitRoot(this.data,s);else{if(this.data.height<s.height){var i=this.data;this.data=s,s=i}this._insert(s,this.data.height-s.height-1,!0)}else this.data=s;return this},insert:function(e){return null!=e&&this._insert(e,this.data.height-1),this},clear:function(){return this.data=w([]),this},remove:function(e,t){if(null==e)return this;for(var r,s,i,n,a=this.data,o=this.toBBox(e),l=[],h=[];a||l.length;){if(a||(a=l.pop(),s=l[l.length-1],r=h.pop(),n=!0),a.leaf&&-1!==(i=p(e,a.children,t)))return a.children.splice(i,1),l.push(a),this._condense(l),this;n||a.leaf||!C(a,o)?s?(r++,a=s.children[r],n=!1):a=null:(l.push(a),h.push(r),r=0,s=a,a=a.children[0])}return this},toBBox:function(e){return e},compareMinX:y,compareMinY:v,toJSON:function(){return this.data},fromJSON:function(e){return this.data=e,this},_all:function(e,t){for(var r=[];e;)e.leaf?t.push.apply(t,e.children):r.push.apply(r,e.children),e=r.pop();return t},_build:function(e,t,r,s){var i,n=r-t+1,a=this._maxEntries;if(n<=a)return m(i=w(e.slice(t,r+1)),this.toBBox),i;s||(s=Math.ceil(Math.log(n)/Math.log(a)),a=Math.ceil(n/a**(s-1))),(i=w([])).leaf=!1,i.height=s;var o,l,h,u,d=Math.ceil(n/a),c=d*Math.ceil(Math.sqrt(a));for(A(e,t,r,c,this.compareMinX),o=t;o<=r;o+=c)for(A(e,o,h=Math.min(o+c-1,r),d,this.compareMinY),l=o;l<=h;l+=d)u=Math.min(l+d-1,h),i.children.push(this._build(e,l,u,s-1));return m(i,this.toBBox),i},_chooseSubtree:function(e,t,r,s){for(var i,n,a,o,l,h,u,d;s.push(t),!t.leaf&&s.length-1!==r;){for(u=d=1/0,i=0,n=t.children.length;i<n;i++)l=x(a=t.children[i]),(h=I(e,a)-l)<d?(d=h,u=l<u?l:u,o=a):h===d&&l<u&&(u=l,o=a);t=o||t.children[0]}return t},_insert:function(e,t,r){var s=this.toBBox,i=r?e:s(e),n=[],a=this._chooseSubtree(i,this.data,t,n);for(a.children.push(e),_(a,i);t>=0&&n[t].children.length>this._maxEntries;)this._split(n,t),t--;this._adjustParentBBoxes(i,n,t)},_split:function(e,t){var r=e[t],s=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,s);var n=this._chooseSplitIndex(r,i,s),a=w(r.children.splice(n,r.children.length-n));a.height=r.height,a.leaf=r.leaf,m(r,this.toBBox),m(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(e,t){this.data=w([e,t]),this.data.height=e.height+1,this.data.leaf=!1,m(this.data,this.toBBox)},_chooseSplitIndex:function(e,t,r){var s,i,n,a,o,l,h,u=l=1/0;for(s=t;s<=r-t;s++)a=M(i=g(e,0,s,this.toBBox),n=g(e,s,r,this.toBBox)),o=x(i)+x(n),a<u?(u=a,h=s,l=o<l?o:l):a===u&&o<l&&(l=o,h=s);return h},_chooseSplitAxis:function(e,t,r){var s=e.leaf?this.compareMinX:y,i=e.leaf?this.compareMinY:v;this._allDistMargin(e,t,r,s)<this._allDistMargin(e,t,r,i)&&e.children.sort(s)},_allDistMargin:function(e,t,r,s){e.children.sort(s);for(var i,n=this.toBBox,a=g(e,0,t,n),o=g(e,r-t,r,n),l=b(a)+b(o),h=t;h<r-t;h++)i=e.children[h],_(a,e.leaf?n(i):i),l+=b(a);for(h=r-t-1;h>=t;h--)i=e.children[h],_(o,e.leaf?n(i):i),l+=b(o);return l},_adjustParentBBoxes:function(e,t,r){for(var s=r;s>=0;s--)_(t[s],e)},_condense:function(e){for(var t,r=e.length-1;r>=0;r--)0===e[r].children.length?r>0?(t=e[r-1].children).splice(t.indexOf(e[r]),1):this.clear():m(e[r],this.toBBox)},_initFormat:function(e){var t=["return a"," - b",";"];this.compareMinX=Function("a","b",t.join(e[0])),this.compareMinY=Function("a","b",t.join(e[1])),this.toBBox=Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}};var T=r(44729),F=r(15032),O=r(36745),E=r(70328),B=r(78957),P=r(62577),N=r(62815),R=r(27647),D=r(43334),k=r(98623),Z=r(91869),Y=r(34727),W=(r(37585),r(48163)),G=r(39829),X=r(16930),z=r(19419),L=r(79258),j=r(31464);function V(e,t,r,s){if(s.isWebMercator){let s=(0,Y.KJ)(e/L.$O.radius),i=s-360*Math.floor((s+180)/360),n=[0,0];return q(n,0,(0,Y.KJ)(Math.PI/2-2*Math.atan(Math.exp(-t/L.$O.radius))),i,r),n}let i=(0,j.Cv)({x:e,y:t},s,X.A.WGS84);if(!i)return null;let n=[0,0];return q(n,0,i.y,i.x,r),n}function q(e,t,r,s,i){i%2&&(i+=1);let n=0,a=0,o=-90,l=90,h=-180,u=180;for(let e=0;e<i/2;e++){for(let t=0;t<5;t++){let r=(h+u)/2,i=+(s>r);n|=i<<29-(t+5*e),h=(1-i)*h+i*r,u=(1-i)*r+i*u}for(let t=0;t<5;t++){let s=(o+l)/2,i=+(r>s);a|=i<<29-(t+5*e),o=(1-i)*o+i*s,l=(1-i)*s+i*l}}e[2*t]=n,e[2*t+1]=a}(0,W.vt)(),(0,W.vt)();var U=r(63664),J=r(92029);class $ extends U.B{static create(e,t,r,s){let i=J.o.create(e),n=Array(32);for(let e=0;e<n.length;e++)n[e]=null;return new $(i,t,r,s,n)}constructor(e,t,r,s,i){super(e),this.xNode=t,this.yNode=r,this.depth=s,this.children=i,this._objectIds=[new Set],this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=J.o.estimatedMemory,e}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){let e=new $(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return e._count=this._count,e._xWorldTotal=this._xWorldTotal,e._yWorldTotal=this._yWorldTotal,e._xGeohashTotal=this._xGeohashTotal,e._yGeohashTotal=this._yGeohashTotal,e.next=this.next,e._objectIds=this._objectIds.map(e=>new Set(e)),e}insert(e,t,r,s){let i=0,n=0;if("esriGeometryPoint"===e.geometryType)i=e.readXWorldSpace(),n=e.readYWorldSpace();else{let t=e.readCentroidWorldSpace();if(null==t)return;[i,n]=t.coords}let a=V(i,n,t,r);a&&(this._count+=1,this._xWorldTotal+=i,this._yWorldTotal+=n,this._xGeohashTotal+=a[0],this._yGeohashTotal+=a[1],this._statistics.insert(e,s),this._objectIds[0].add(e.getObjectId()))}merge(e){0!==e._count&&(this._count+=e._count,this._xWorldTotal+=e._xWorldTotal,this._yWorldTotal+=e._yWorldTotal,this._xGeohashTotal+=e._xWorldTotal,this._yGeohashTotal+=e._yWorldTotal,this._statistics.merge(e._statistics),this._objectIds.push(...e._objectIds))}getCentroid(e){throw Error("getCentroid not supported for GeohashNode")}getGeometry(e,t){let[r,s,i,n]=this._getLngLatBounds(),a=(0,j.Cv)({rings:[[[r,s],[r,n],[i,n],[i,s],[r,s]]]},X.A.WGS84,e),l=(0,o.Ye)(a);return null==t?l:(0,o.Nl)(l,"esriGeometryPolygon",t,!1,!1)}getGeometricCentroid(e,t){let[r,s,i,n]=this._getLngLatBounds(),a={x:(r+i)/2,y:(s+n)/2},l=(0,j.Cv)(a,X.A.WGS84,e),h=(0,o.qN)(l);return null==t?h:(0,o.Nl)(h,"esriGeometryPoint",t,!1,!1)}getAttributes(){let e={aggregateId:this.id};for(let t of this._statistics.values())e[t.field.name]=t.value;return e.aggregateCount=this._count,e}find(e,t,r,s,i,n){if(s>=r)return this;let a=1-s%2,o=3*a+2*(1-a),l=2*a+3*(1-a),h=30-i-o,u=30-n-l,d=((e&7*a+3*(1-a)<<h)>>h)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,s+1,i+o,n+l)}_getLngLatBounds(){let e=this.depth,t=Math.ceil(e/2),r=Math.floor(e/2),s=30-(3*t+2*r),i=30-(2*t+3*r);return function(e,t){let r=-90,s=90,i=-180,n=180;for(let a=0;a<t;a++){let t=Math.ceil((a+1)/2),o=Math.floor((a+1)/2),l=1-a%2,h=30-(3*t+2*o),u=30-(2*t+3*o),d=2*l+3*(1-l),c=(7*l+3*(1-l)<<h&e.geohashX)>>h,f=(3*l+7*(1-l)<<u&e.geohashY)>>u;for(let e=3*l+2*(1-l)-1;e>=0;e--){let t=(i+n)/2,r=c&1<<e?1:0;i=(1-r)*i+r*t,n=(1-r)*t+r*n}for(let e=d-1;e>=0;e--){let t=(r+s)/2,i=f&1<<e?1:0;r=(1-i)*r+i*t,s=(1-i)*t+i*s}}return[i,r,n,s]}({geohashX:this.xNode<<s,geohashY:this.yNode<<i},this.depth)}}class Q{static create(e,t,r){let s=Array(32);for(let e=0;e<s.length;e++)s[e]=null;return new Q(e,t,r,s)}constructor(e,t,r,s){this.xNode=e,this.yNode=t,this.depth=r,this.children=s,this.indices=[],this.next=null}static get estimatedMemory(){let e=0;return e+=64,e+=512,e+=64,640}get id(){return`${this.xNode}.${this.yNode}`}get count(){return this.indices.length}insert(e){this.indices.push(e)}find(e,t,r,s,i,n){if(s>=r)return this;let a=1-s%2,o=3*a+2*(1-a),l=2*a+3*(1-a),h=30-i-o,u=30-n-l,d=((e&7*a+3*(1-a)<<h)>>h)+((t&3*a+7*(1-a)<<u)>>u)*(8*a+4*(1-a)),c=this.children[d];return null==c?null:c.find(e,t,r,s+1,i+o,n+l)}}class K{constructor(){this._size=0,this._depth=0,this._root=Q.create(0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}get usedMemory(){return this._size*Q.estimatedMemory}find(e,t,r){return this._root.find(e,t,r,0,0,0)}insert(e,t,r,s){let i=this._root,n=0,a=0,o=0;for(;null!==i;){if(i.insert(e.getIndex()),n>=s)return;let l=Math.ceil((n+1)/2),h=Math.floor((n+1)/2),u=1-n%2,d=30-(3*l+2*h),c=30-(2*l+3*h),f=(t&7*u+3*(1-u)<<d)>>d,p=(r&3*u+7*(1-u)<<c)>>c,m=f+p*(8*u+4*(1-u));a=a<<3*u+2*(1-u)|f,o=o<<2*u+3*(1-u)|p,i.children[m]??(i.children[m]=Q.create(a,o,n+1),this._depth=Math.max(this._depth,n+1),this._size+=1),n+=1,i=i.children[m]}}forEachInBounds(e,t){let{geohashBounds:r,level:s}=e,i=this._root;for(;null!==i;){let e=i.depth,n=i.xNode,a=i.yNode;if(e>=s){t(i),i=i.next;continue}let o=Math.ceil((e+1)/2),l=Math.floor((e+1)/2),h=1-e%2,u=30-(3*o+2*l),d=30-(2*o+3*l),c=~((1<<u)-1),f=~((1<<d)-1),p=(r.xLL&c)>>u,m=(r.yLL&f)>>d,g=(r.xTR&c)>>u,_=(r.yTR&f)>>d,y=n<<3*h+2*(1-h),v=a<<2*h+3*(1-h),x=y+8*h+4*(1-h),b=v+4*h+8*(1-h),I=Math.max(y,p),M=Math.max(v,m),C=Math.min(x,g),S=Math.min(b,_),w=null,A=null;for(let e=M;e<=S;e++)for(let t=I;t<=C;t++){let r=t-y+(e-v)*(8*h+4*(1-h)),s=i.children[r];s&&(w||(w=s,w.next=i.next),A&&(A.next=s),A=s,s.next=i.next)}i=w||i.next}}}var H=r(38976),ee=r(9012);class te extends H.n{constructor(e,t){super(e),this._reader=t,this._tree=new K,this._insert(this._reader)}get usedMemory(){return this._tree.usedMemory}putBounded(e,t,r,s){let{arcadeContextInfo:i,scale:n,geohashLevel:a,spatialReference:l,fields:h}=this.options.inner,u=(0,ee.N)(n,i),d=function(e,t,r,s){let i=[e.xmin,e.ymin,e.xmax,e.ymax],n=G.A.fromExtent((0,z.w1)(i,s)),a=(0,j.Cv)(n,s,X.A.WGS84,{extendedParams:{densificationStep:64*t}});if(!a)return null;let l=(0,o.Ye)(a,!1,!1),h=l.coords.filter((e,t)=>!(t%2)),u=l.coords.filter((e,t)=>t%2),d=Math.min(...h),c=Math.min(...u),f=Math.max(...h),p=Math.max(...u),m=V(d,c,r,X.A.WGS84),g=V(f,p,r,X.A.WGS84);return m&&g?{bounds:i,geohashBounds:{xLL:m[0],yLL:m[1],xTR:g[0],yTR:g[1]},level:r}:null}(r,s,a,l);null!=d&&this._tree.forEachInBounds(d,r=>{let s=null;for(let i of r.indices){this._reader.setIndex(i);let n=this._reader.getObjectId();t.has(n)||(s??=(0,Z.tE)(e,r.id,()=>$.create(h,r.xNode,r.yNode,r.depth)),s.insert(this._reader,a,l,u),t.add(n))}})}_insert(e){let{featureFilter:t,sqlOptions:r,geohashLevel:s,spatialReference:i}=this.options.inner,n=e=>{let t=0,r=0;if("esriGeometryPoint"===e.geometryType)t=e.readXWorldSpace(),r=e.readYWorldSpace();else{let s=e.readCentroidWorldSpace();if(null==s)return;[t,r]=s.coords}let n=V(t,r,s,i);n&&this._tree.insert(e,n[0],n[1],s)};if(null!==t)t.forEachMatch(e,r,n);else{let t=e.getCursor();for(;t.next();)n(t)}}}var re=r(24506),se=r(97633);const ie=(0,u.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],ne=ie[0],ae=ie[1],oe=ie[2],le=ie[3],he=(0,u.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],ue=he[0],de=he[1],ce=he[2],fe=(0,u.A)("featurelayer-simplify-mobile-factor")??2,pe=(0,u.A)("esri-mobile"),me=4294967295;class ge{constructor(e){this.metadata=e,this.type="FeatureSetReader",this._overrides=null,this._postQueryFilteredIds=new Set,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._aggregateCache={},this._deleted=new Set,this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}get geometryDensity(){return{sampleCount:0,densePairCount:0}}getAreaSimplificationThreshold(e,t){let r=1,s=pe?fe:1;t>4e6?r=ce*s:t>1e6?r=de*s:t>5e5?r=ue*s:t>1e5&&(r=s);let i=0;return e>4e3?i=le*r:e>2e3?i=oe*r:e>100?i=ae:e>15&&(i=ne),i}getBounds(e){!function(e,t){if(!(e.length>t))for(;e.length<=t;)e.push(0)}(this._boundsBuffer,4*this.getIndex()+4);let t=this.getBoundsXMin();if(t===me||!isFinite(t))return!1;if(0===this.getBoundsXMin()){let t=this.readGeometryWorldSpace();if(t?.isPoint&&0===t.coords[0]&&0===t.coords[1])return(0,E.BI)(e,0,0,0,0),!0;if(!t)return this.setBoundsXMin(me),!1;let r=1/0,s=1/0,i=-1/0,n=-1/0;return t.forEachVertex((e,t)=>{r=Math.min(r,e),s=Math.min(s,t),i=Math.max(i,e),n=Math.max(n,t)}),this.setBoundsXMin(r),this.setBoundsYMin(s),this.setBoundsXMax(i),this.setBoundsYMax(n),(0,E.BI)(e,r,s,i,n),!0}let r=this.getBoundsXMin(),s=this.getBoundsYMin(),i=this.getBoundsXMax(),n=this.getBoundsYMax();return(0,E.BI)(e,r,s,i,n),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(e){this._boundsBuffer[4*this.getIndex()]=e}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(e){this._boundsBuffer[4*this.getIndex()+1]=e}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(e){this._boundsBuffer[4*this.getIndex()+2]=e}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(e){this._boundsBuffer[4*this.getIndex()+3]=e}readAttributeAsTimestamp(e){let t=this.readAttribute(e);return"string"==typeof t?new Date(t).getTime():"number"==typeof t||null==t?t:null}readAttribute(e,t=!1){let r=this._readAttribute(e,t);if(void 0!==r)return r;for(let r of this._joined){r.setIndex(this.getIndex());let s=r._readAttribute(e,t);if(void 0!==s)return s}}readAttributes(){let e=this._readAttributes();for(let t of this._joined){t.setIndex(this.getIndex());let r=t._readAttributes();for(let t of Object.keys(r))e[t]=r[t]}return e}joinAttributes(e){this._joined.push(e)}registerOverrides(e){this._overrides=e}withoutOverrides(){let e=this.copy();return e._overrides=null,e._aggregateCache={},e}readOptimizedFeatureWorldSpace(){let e=this.readGeometryWorldSpace(),t=this.readAttributes(),r=this.readCentroidWorldSpace();return new D.Om(e,t,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyFeatureWorldSpace(){let e=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,o.zv)(e,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){let e=this._readX(),t=this.getInTransform();return null==t?e:e*t.scale[0]+t.translate[0]}readYWorldSpace(){let e=this._readY(),t=this.getInTransform();return null==t?e:t.translate[1]-e*t.scale[1]}readGeometryForDisplay(){let e=this._readGeometryDeltaDecoded(!0);if(!e){let e=this._createDeltaQuantizedGeometryFromServerCentroid();return e?e.deltaDecode():null}return e}readGeometryForDisplayTransformed(e){let t=this.readGeometryForDisplay();if(t&&"esriGeometryPolyline"===this.metadata.geometryType&&(t=(0,o.kz)(t,this.metadata.geometryType,e.scale[0])),t&&=(0,o.Nl)(t,this.metadata.geometryType,e,t.hasZ,t.hasM,!0),!t){let t=this.readCentroidForDisplay();if(!t)return null;let r=(0,P.IE)(e,t.coords[0]),s=(0,P.B2)(e,t.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,s).deltaDecode()}return t}_transformToWorldSpace(e){if(!e)return null;e=e.clone();let t=this.getInTransform();t&&(0,o.aQ)(e,t);let r=(0,N.d)(this.metadata.spatialReference,this.metadata.outSpatialReference);if(e.hasZ&&1!==r){let{stride:t,coords:s}=e;for(let e=2;e<s.length;e+=t)s[e]*=r}return e}readGeometryWorldSpace(){let e=this._readGeometry();return e||=this._createDeltaQuantizedGeometryFromServerCentroid(),this._transformToWorldSpace(e)}readCentroidForDisplay(){let e=this.readGeometryForDisplay();return e?this._computeDisplayCentroid(e):this._readServerCentroid()}readCentroidWorldSpace(){let e=this.readGeometryForDisplay(),t=e?this._computeDisplayCentroid(e):this._readServerCentroid();return this._transformToWorldSpace(t)}setCache(e){let t=this._caches.get(e);t??(t=new se.P(this.getSize()),this._caches.set(e,t)),this._activeCache=t}setCachedValue(e){this._activeCache.set(this.getIndex(),e)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}delete(){this._deleted.add(this.getObjectId())}getByReferenceVertexCount(){return null}get underlyingMemory(){let e=0;e+=(0,d.Qf)(this._boundsBuffer),e+=16*(this._spatialIndex?.all().length??0),e+=this._aggregateCache.gridIndex?.usedMemory??0,e+=this._aggregateCache.geohashIndex?.usedMemory??0;for(let t of this._caches.values())e+=t.usedMemory;return e}getDisplayTransform(){return null}queryFeaturesInBounds(e){let t={minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]};return _e.from(this,this.getSpatialIndex().search(t))}getSpatialIndex(){if(this._spatialIndex)return this._spatialIndex;let e=[],t=this.copy(),r=(0,E.vt)();for(let s=0;s<this.getSize();s++)t.setIndex(s),t.getBounds(r)&&e.push(t.getIndex());let s=f(9,e=>(t.setIndex(e),{minX:t.getBoundsXMin(),minY:t.getBoundsYMin(),maxX:t.getBoundsXMax(),maxY:t.getBoundsYMax()}));return s.load(e),this._spatialIndex=s,s}getGridIndex(e){return e.hash!==this._aggregateCache.gridIndex?.hash&&(this._aggregateCache.gridIndex=new re.H(e,this.copy())),this._aggregateCache.gridIndex}getGeohashIndex(e){return e.hash!==this._aggregateCache.geohashIndex?.hash&&(this._aggregateCache.geohashIndex=new te(e,this.copy())),this._aggregateCache.geohashIndex}invalidateAggregateIndices(){this._aggregateCache.gridIndex=void 0,this._aggregateCache.geohashIndex=void 0}_readGeometryDeltaDecoded(e){let t=this._readGeometry(e);if("esriGeometryPoint"===this.geometryType||!t)return t;let r=this.getInTransform();if(!t||!r)return t;let s=r.scale[2]??1,i=r.translate[2]??0,n=r.scale[3]??1,a=r.translate[3]??0,{hasZ:o,hasM:l,stride:h,size:u,coords:d}=t,c=o&&(1!==s||0!==i),f=l&&(1!==n||0!==a);if(c||f){let e=o?3:2;for(let t=0,r=h*u;t<r;t+=h)c&&(d[t+2]=s*d[t+2]+i),f&&(d[t+e]=n*d[t+e]+a)}return t.deltaDecode()}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this.fields.has(e)||this._joined.some(t=>t.hasField(e))}geometry(){let e,t=this.readGeometryWorldSpace();if(null==t)return null;switch(this.geometryType){case"esriGeometryPoint":e="point";break;case"esriGeometryMultipoint":e="multipoint";break;case"esriGeometryPolyline":e="polyline";break;case"esriGeometryPolygon":e="polygon";break;default:throw Error(`Unexpected geometry type: ${this.geometryType}`)}return function(e,t,r){let s=t.hasZ??!1,n=t.hasM??!1;return i.R.of(e,r,s,n,new h(t,e,s,n))}(e,{lengths:t.lengths,coords:t.coords,hasZ:this.hasZ,hasM:this.hasM},this.metadata.outSpatialReference)}autocastArcadeDate(e,t){return t&&t instanceof Date?this.isUnknownDateTimeField(e)?s.lY.unknownDateJSToArcadeDate(t):s.lY.dateJSAndZoneToArcadeDate(t,this.contextTimeZone??"system"):t}isUnknownDateTimeField(e){return this.metadata.fieldsIndex.getTimeZone(e)===k.L}field(e){let t=this.fields.get(e);if(t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return T.n.fromReader(this.readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return F.k.fromReader(this.readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(this.readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,this.readAttribute(e,!0));default:return this.readAttribute(e,!1)}for(let r of this._joined)if(r.setIndex(this.getIndex()),t=r.fields.get(e),t)switch(t.type){case"date-only":case"esriFieldTypeDateOnly":return T.n.fromReader(r._readAttribute(e,!1));case"time-only":case"esriFieldTypeTimeOnly":return F.k.fromReader(r._readAttribute(e,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return s.lY.fromReaderAsTimeStampOffset(r._readAttribute(e,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(e,r._readAttribute(e,!0));default:return this.readAttribute(e,!1)}throw Error(`Field ${e} does not exist`)}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(e=>e.name)}isEmpty(){return this.fields.fields.length<=0&&null==this.geometry()}castToText(e=!1){if(!e)return JSON.stringify(this.readLegacyFeatureForDisplay());let t=this.readLegacyFeatureForDisplay();if(!t)return JSON.stringify(null);let r={geometry:t.geometry,attributes:{...t.attributes}};for(let e in r.attributes){let t=r.attributes[e];t instanceof Date&&(r.attributes[e]=t.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(){return{attributes:this._readAttributes(),geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}applyPostQueryFilter(e){if(this._postQueryFilteredIds.clear(),!e)return;let t=new Set;e.forEachMatch(this,{currentUser:null},e=>{t.add(e.getObjectId())});let r=[],s=this.getCursor();for(;s.next();)t.has(s.getObjectId())||r.push(s.getObjectId());for(let e of r)this._postQueryFilteredIds.add(e)}_getExists(){let e=this.getObjectId();return!this._deleted.has(e)&&(this._overrides?!this._overrides.hasOverride(e):!this._postQueryFilteredIds.has(e))}_computeDisplayCentroid(e){if(null==this.getInTransform())return(0,R.Q)(e);let t=O.z.fromOptimized(e,this.geometryType);t.yFactor*=-1;let r=(0,B.d)(t);return r?isNaN(r[0])||isNaN(r[1])?(0,R.Q)(e):(r[1]*=-1,new l.A([],r)):null}copyInto(e){e._joined=this._joined,e._overrides=this._overrides,e._objectIdToIndex=this._objectIdToIndex,e._boundsBuffer=this._boundsBuffer,e._spatialIndex=this._spatialIndex,e._aggregateCache=this._aggregateCache,e._activeCache=this._activeCache,e._caches=this._caches,e._contextTimeZone=this._contextTimeZone,e._postQueryFilteredIds=this._postQueryFilteredIds,e._deleted=this._deleted}_readLegacyGeometryWorldSpace(){let e=this.readGeometryWorldSpace();return(0,o.zv)(e,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){let e=this._readServerCentroid();if(!e)return null;let[t,r]=e.coords;return this._createDeltaQuantizedExtrudedGeometry(t,r)}_createDeltaQuantizedExtrudedGeometry(e,t){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(e,t):this._createDeltaQuantizedExtrudedQuad(e,t)}_createDeltaQuantizedExtrudedQuad(e,t){return new l.A([5],[e-1,t,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(e,t){return new l.A([2],[e-1,t+1,1,-1])}}class _e extends ge{static from(e,t){if(e instanceof this){let r=new Set(t),s=e._indices.filter(e=>r.has(e)),i=e.copy();return i._indices=s,i._currentIndex=-1,i}return new _e(e.copy(),t)}constructor(e,t){super(e.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=e,this._indices=t}setTransformForDisplay(e){let t=this._reader.getInTransform();if(null==t)return void(this._displayTransform=(0,P.Q1)(e));let r=(0,P.Q1)(t),s=(0,P.Q1)(e),[i,n]=r.scale,[a,o]=r.translate,[l,h]=s.scale,[u,d]=s.translate,c=i/l,f=n/h,p=(a-u)/l,m=(o-d)/h;this._displayTransform={originPosition:"lowerLeft",scale:[1/c,1/f,1,1],translate:[-p/c,-m/f,0,0]}}getInTransform(){return this._reader.getInTransform()}getDisplayTransform(){return this._displayTransform}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){let e=new _e(this._reader.copy(),this._indices);return e._currentIndex=this._currentIndex,e._displayTransform=this._displayTransform,e._processorAttributes=this._processorAttributes,e}getSpatialIndex(){return this._reader.getSpatialIndex()}getGridIndex(e){throw Error("Cannot request a grid index from an indirect feature set reader.")}getGeohashIndex(e){throw Error("Cannot request a geohash index from an indirect feature set reader.")}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(e){this._reader.contextTimeZone=e}get usedMemory(){return 32+this._reader.usedMemory}setProcessorAttributes(e){this._processorAttributes=Object.assign(this._processorAttributes??{},e)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,P.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,P.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){let e=this._reader.readCentroidForDisplay()?.clone();if(e){let[t,r]=e.coords;this._displayTransform&&(e.coords[0]=(0,P.IE)(this._displayTransform,t),e.coords[1]=(0,P.B2)(this._displayTransform,r))}return e}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(e,t=!1){let r=this._reader.readAttribute(e,t);return null==r&&this._processorAttributes?this._processorAttributes[e]:r}readAttributes(){return{...this._processorAttributes,...this._reader.readAttributes()}}joinAttributes(e){return this._reader.joinAttributes(e)}getBounds(e){return this._reader.getBounds(e)}getBoundsXMin(){return this._reader.getBoundsXMin()}setBoundsXMin(e){this._reader.setBoundsXMin(e)}getBoundsYMin(){return this._reader.getBoundsYMin()}setBoundsYMin(e){this._reader.setBoundsYMin(e)}getBoundsXMax(){return this._reader.getBoundsXMax()}setBoundsXMax(e){this._reader.setBoundsXMax(e)}getBoundsYMax(){return this._reader.getBoundsYMax()}setBoundsYMax(e){this._reader.setBoundsYMax(e)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(e){return this._reader.setDisplayId(e)}setIndex(e){return this._reader.setIndex(e)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){let e=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(e&&{x:e.coords[0],y:e.coords[1]})??null}}readLegacyGeometryForDisplay(){let e=this.readGeometryForDisplay();return(0,o.zv)(e,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}get geometryDensity(){return this._reader.geometryDensity}_readAttribute(e,t){throw Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(e){return this._reader.field(e)}hasField(e){return this._reader.hasField(e)}setField(e,t){return this._reader.setField(e,t)}keys(){return this._reader.keys()}castToText(e=!1){return this._reader.castToText(e)}}},8446(e,t,r){r.d(t,{K:()=>d});var s=r(44208),i=r(90708),n=r(43334),a=r(95466),o=r(5508);const l=(0,s.A)("featurelayer-snapping-density-sample-interval"),h=(0,s.A)("featurelayer-snapping-density-max-vertices-per-feature"),u=(0,s.A)("featurelayer-snapping-density-max-distance")**2;class d extends o.Y{static fromFeatures(e,t){let{geometryType:r,hasZ:s,hasM:n,featureIdInfo:a}=t,o=(0,i.Di)([],e,r,s,n,a);for(let t=0;t<o.length;t++)o[t].displayId=e[t].displayId;return d.fromOptimizedFeatures(o,t)}static fromFeatureSet(e,t){let r=(0,i.q3)(e,t.featureIdInfo);return d.fromOptimizedFeatureSet(r,t)}static fromOptimizedFeatureSet(e,t){let r=d.fromOptimizedFeatures(e.features,t,e.transform);return r._exceededTransferLimit=e.exceededTransferLimit,r._fieldsIndex=new a.A(e.fields),r}static fromOptimizedFeatures(e,t,r){let s=new d(e,t);return s._fieldsIndex=t.fieldsIndex,s._transform=r,r&&("esriGeometryPolyline"===s.geometryType||"esriGeometryPolygon"===s.geometryType)&&(s._geometryDensity=function(e){let t={sampleCount:0,densePairCount:0};for(let r=0;r<e.length;r+=l){let s=e[r].geometry;if(!s)continue;let{coords:i,lengths:n,stride:a}=s,o=Math.min(n[0]??0,h);for(let e=1;e<o;e++){let r=e*a;t.sampleCount++;let s=i[r],n=i[r+1];s*s+n*n<=u&&t.densePairCount++}}return t}(e)),s}static empty(e){return new d([],e)}constructor(e,t){super(t),this._geometryDensity={sampleCount:0,densePairCount:0},this._featureIndex=-1,this._exceededTransferLimit=!1,this._fieldsIndex=null,this._hasZ=!1,this._hasM=!1,this._geometryType=t.geometryType,this._hasZ=t.hasZ,this._hasM=t.hasM,this._features=e}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return this._hasZ}get hasM(){return this._hasM}get geometryDensity(){return this._geometryDensity}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let e="";for(let t in this._current.attributes)e+=this._current.attributes[t];return e}getIndex(){return this._featureIndex}setIndex(e){this._featureIndex=e}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(e){this._current.displayId=e}getByReferenceVertexCount(){return this._current.vertexCount}copy(){let e=new d(this._features,this.metadata);return this.copyInto(e),e}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,n.N3)(this._current)?(0,i.Rk)(this._current.geometry,2):0}_readX(){return(0,n.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,n.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,n.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(e,t){if(!this._fieldsIndex){let t=this._current.attributes[e];if(void 0!==t)return t;let r=e.toLowerCase();for(let e in this._current.attributes)if(e.toLowerCase()===r)return this._current.attributes[e];return}let r=this._fieldsIndex.get(e);if(!r)return;let s=this._current.attributes[r.name];return null==s?s:t&&this.fields.isDateField(e)?new Date(s):s}_readAttributes(){return this._current.attributes}copyInto(e){super.copyInto(e),e._featureIndex=this._featureIndex,e._transform=this._transform,e._fieldsIndex=this._fieldsIndex,e._geometryDensity=this._geometryDensity}}},16630(e,t,r){r.d(t,{s:()=>l}),r(44208),r(69397);var s=r(70328),i=r(53929),n=r(92722),a=r(17754),o=r(5508);class l extends o.Y{constructor(e,t,r,s,i,n=new Uint32Array(r.size()),a,o,l){if(super(e),this._indexMap=t,this._inner=r,this._fileId=s,this._transform=i,this._displayIds=n,this._points=a,this._rowIds=o,this._emptyNumberValue=l,this._index=-1,this.usedMemory=32,this._size=this._inner.size(),this._coordinateStride=this._inner.coordinateStride(),this._rowIds||=this._inner.readIdsUnsafe().slice(),!this._points&&"esriGeometryPoint"===this.geometryType){let e=this._inner.readPointCoordsQuantizedUnsafe()?.slice();e?(this._emptyNumberValue=-32768,this._points=e):(this._emptyNumberValue=NaN,this._points=this._inner.readPointCoordsUnsafe()?.slice())}e.featureIdInfo.type}destroy(){super.destroy(),this._inner.free()}get fields(){return this.metadata.fieldsIndex}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return this._inner.hasZ()}get hasM(){return this._inner.hasM()}async updateFields(e,t,r,s){let i=this._inner.rowGroup(),n=new Uint32Array(this._inner.readIdsUnsafe()),a=await e.createPatch(t,i,n,r,s);this._inner.insertPatchBytes(new Uint8Array(a))}getInTransform(){return this._transform}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let e="";for(let t of this.fields.fields)e+=this._readAttribute(t.name,!1)+".";return e}getObjectId(){let e=this._rowIds[this._index];return(0,a.xb)(this._fileId,e)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(e){this._displayIds[this._index]=e}setIndex(e){this._index=e}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}getBounds(e){let t=this._inner.boundsXMin(this._index);return!!Number.isFinite(t)&&((0,s.BI)(e,t,this._inner.boundsYMin(this._index),this._inner.boundsXMax(this._index),this._inner.boundsYMax(this._index)),!0)}setBoundsXMin(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(e){throw Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(e){throw Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){let e=new l(this.metadata,this._indexMap,this._inner,this._fileId,this._transform,this._displayIds,this._points,this._rowIds,this._emptyNumberValue);return this.copyInto(e),e}copyInto(e){super.copyInto(e),e._index=this._index}_readGeometry(e){let t=this._inner.readCoordsUnsafe(this._index),r=this._inner.readLengthsUnsafe(this._index);return t&&r?new n.A(r,t,this.hasZ,this.hasM):null}_readX(){if(this._points){let e=this._points[this._coordinateStride*this._index];return e===this._emptyNumberValue?NaN:e}throw Error("InternalError: readX only supported for points")}_readY(){if(this._points){let e=this._points[this._coordinateStride*this._index+1];return e===this._emptyNumberValue?NaN:e}throw Error("InternalError: readY only supported for points")}_readServerCentroid(){return null}_readAttribute(e,t){let r=this.fields.get(e);if(!r)return;let s=this._indexMap[r.name];return null==s?this.getObjectId():(0,i.ae)(this._inner,this._index,s,r.type,t)}_readAttributes(){let e={};for(let t of this.metadata.fieldsIndex.fields){if(null==this._indexMap[t.name])continue;let r=this._readAttribute(t.name,!1);void 0!==r&&(e[t.name]=r)}return e.__OBJECTID=this.getObjectId(),e}}},73250(e,t,r){r.d(t,{y:()=>i});var s=r(69397);class i{static fromBuffer(e,t){return new i(e,t)}static create(e,t=4294967295){let r=new Uint32Array(Math.ceil(e/32));return new i(r,t)}constructor(e,t){this._mask=0,this._buf=e,this._mask=t}_getIndex(e){return Math.floor(e/32)}get usedMemory(){return(0,s.Qf)(this._buf)}has(e){let t=this._mask&e;return!!(this._buf[this._getIndex(t)]&1<<t%32)}hasRange(e,t){let r=e,s=t;for(;r%32&&r!==s;){if(this.has(r))return!0;r++}for(;s%32&&r!==s;){if(this.has(r))return!0;s--}if(r===s)return!1;for(let e=r/32;e!==s/32;e++)if(this._buf[e])return!0;return!1}set(e){let t=this._mask&e,r=this._getIndex(t),s=1<<t%32;this._buf[r]|=s}setRange(e,t){let r=e,s=t;for(;r%32&&r!==s;)this.set(r++);for(;s%32&&r!==s;)this.set(s--);if(r!==s)for(let e=r/32;e!==s/32;e++)this._buf[e]=4294967295}unset(e){let t=this._mask&e,r=this._getIndex(t),s=1<<t%32;this._buf[r]&=4294967295^s}resize(e){let t=this._buf,r=new Uint32Array(Math.ceil(e/32));r.set(t),this._buf=r}or(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=e._buf[t];return this}and(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=e._buf[t];return this}xor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=e._buf[t];return this}ior(e){for(let t=0;t<this._buf.length;t++)this._buf[t]|=~e._buf[t];return this}iand(e){for(let t=0;t<this._buf.length;t++)this._buf[t]&=~e._buf[t];return this}ixor(e){for(let t=0;t<this._buf.length;t++)this._buf[t]^=~e._buf[t];return this}any(){for(let e=0;e<this._buf.length;e++)if(this._buf[e])return!0;return!1}copy(e){for(let t=0;t<this._buf.length;t++)this._buf[t]=e._buf[t];return this}clone(){return new i(this._buf.slice(),this._mask)}clear(){for(let e=0;e<this._buf.length;e++)this._buf[e]=0;return this}forEachSet(e){for(let t=0;t<this._buf.length;t++){let r=this._buf[t],s=32*t;if(r)for(;r;)1&r&&e(s),r>>>=1,s++}}countSet(){let e=0;return this.forEachSet(t=>{e++}),e}}},9012(e,t,r){function s(e,{timeZone:t,timeExtent:r}){return{$view:{scale:e,timeZone:t,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(t,{N:()=>s})}}]);